diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte index cbab6803eb..6e2b63adbd 100644 --- a/packages/bbui/src/Button/Button.svelte +++ b/packages/bbui/src/Button/Button.svelte @@ -23,15 +23,13 @@ class:active class="spectrum-Button spectrum-Button--size{size.toUpperCase()}" {disabled} - on:click|preventDefault -> + on:click|preventDefault> {#if icon} {/if} @@ -46,4 +44,7 @@ overflow: hidden; text-overflow: ellipsis; } + .active { + color: var(--spectrum-global-color-blue-600) !important; + } diff --git a/packages/bbui/src/Styleguide/Label.svelte b/packages/bbui/src/Styleguide/Label.svelte index 4fe9458a35..5ca8b52672 100644 --- a/packages/bbui/src/Styleguide/Label.svelte +++ b/packages/bbui/src/Styleguide/Label.svelte @@ -3,7 +3,7 @@ diff --git a/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte index ad3ebf520b..2d05938f41 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/CalculateButton.svelte @@ -1,20 +1,21 @@ -
- -
- - - + + + + diff --git a/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte index aca1f3001e..285323c6d7 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/CreateViewButton.svelte @@ -1,16 +1,13 @@ -
- -
- - - + + + + diff --git a/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte index 7b5d93cf86..9ec0a86131 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ExportButton.svelte @@ -1,18 +1,15 @@ -
- -
- - - + + + + diff --git a/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte index 889b9bdcf7..5b345d6df7 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/FilterButton.svelte @@ -1,20 +1,21 @@ -
- -
- - - + + + + diff --git a/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte index cd9a0af364..e3fff01c9d 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/GroupByButton.svelte @@ -1,18 +1,21 @@ -
- -
- - - + + + + diff --git a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte index 996396d9d3..8af3f3f3f1 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte @@ -1,29 +1,25 @@ -
- -
- - + Manage Access + + + - \ No newline at end of file + permissions={resourcePermissions} /> + diff --git a/packages/builder/src/components/backend/DataTable/popovers/CalculatePopover.svelte b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte similarity index 71% rename from packages/builder/src/components/backend/DataTable/popovers/CalculatePopover.svelte rename to packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte index fb882a5dc0..3eec950edb 100644 --- a/packages/builder/src/components/backend/DataTable/popovers/CalculatePopover.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte @@ -1,5 +1,5 @@ -
-
Calculate
+
- -
- - +
diff --git a/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte b/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte index 7ee70efe21..5cf33f8d3d 100644 --- a/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte @@ -21,7 +21,7 @@ // Changes the selected role const changeRole = event => { - const id = event?.target?.value + const id = event?.detail const role = $roles.find(role => role._id === id) if (role) { selectedRole = { @@ -94,42 +94,34 @@ secondary label="Role" value={selectedRoleId} - on:change={changeRole}> - - {#each $roles as role} - - {/each} - + on:change={changeRole} + options={$roles} + placeholder="Create new role" + getOptionValue={role => role._id} + getOptionLabel={role => role.name} /> {#if selectedRole} + bind:value={selectedRole.inherits} + options={otherRoles} + getOptionValue={role => role._id} + getOptionLabel={role => role.name} + placeholder="None" /> + bind:value={selectedRole.permissionId} + options={basePermissions} + getOptionValue={x => x._id} + getOptionLabel={x => x.name} + placeholder="Choose permissions" /> {/if}
{#if !isCreating} - + {/if}
diff --git a/packages/builder/src/components/backend/DataTable/modals/ExportModal.svelte b/packages/builder/src/components/backend/DataTable/modals/ExportModal.svelte new file mode 100644 index 0000000000..0344b3a925 --- /dev/null +++ b/packages/builder/src/components/backend/DataTable/modals/ExportModal.svelte @@ -0,0 +1,37 @@ + + + + {/if} @@ -152,61 +163,22 @@ placeholder={filter.key || fields[0]} bind:value={filter.value} /> {/if} - removeFilter(idx)} /> + removeFilter(idx)} /> {/each}
+ {:else} + Add a filter to get started. {/if} - + diff --git a/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte new file mode 100644 index 0000000000..5eab472c01 --- /dev/null +++ b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte @@ -0,0 +1,24 @@ + + + + x.name} - getOptionValue={x => x.key} /> - - - - diff --git a/packages/builder/src/components/backend/DataTable/popovers/GroupByPopover.svelte b/packages/builder/src/components/backend/DataTable/popovers/GroupByPopover.svelte deleted file mode 100644 index a841e3b6ae..0000000000 --- a/packages/builder/src/components/backend/DataTable/popovers/GroupByPopover.svelte +++ /dev/null @@ -1,63 +0,0 @@ - - -
-
Group By
-