frontile 0.18.9 → 0.18.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/components/buttons/segmented-control/segmented-control.d.ts +21 -23
- package/declarations/components/buttons/segmented-control/segmented-control.d.ts.map +1 -1
- package/declarations/components/collections/calendar/calendar.d.ts +168 -103
- package/declarations/components/collections/calendar/calendar.d.ts.map +1 -1
- package/declarations/components/collections/command/input.d.ts +70 -46
- package/declarations/components/collections/command/input.d.ts.map +1 -1
- package/declarations/components/collections/command/list.d.ts +70 -33
- package/declarations/components/collections/command/list.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/body.d.ts +137 -72
- package/declarations/components/collections/simple-table/body.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/cell.d.ts +137 -72
- package/declarations/components/collections/simple-table/cell.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/column.d.ts +137 -72
- package/declarations/components/collections/simple-table/column.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/footer.d.ts +137 -72
- package/declarations/components/collections/simple-table/footer.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/header.d.ts +137 -72
- package/declarations/components/collections/simple-table/header.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/index.d.ts +137 -72
- package/declarations/components/collections/simple-table/index.d.ts.map +1 -1
- package/declarations/components/collections/simple-table/row.d.ts +137 -72
- package/declarations/components/collections/simple-table/row.d.ts.map +1 -1
- package/declarations/components/collections/table/checkbox.d.ts +30 -14
- package/declarations/components/collections/table/checkbox.d.ts.map +1 -1
- package/declarations/components/collections/table/column-visibility.d.ts +137 -72
- package/declarations/components/collections/table/column-visibility.d.ts.map +1 -1
- package/declarations/components/collections/table/sort-button.d.ts +137 -72
- package/declarations/components/collections/table/sort-button.d.ts.map +1 -1
- package/declarations/components/collections/table/table.d.ts +137 -72
- package/declarations/components/collections/table/table.d.ts.map +1 -1
- package/declarations/components/disclosure/accordion/accordion.d.ts +77 -51
- package/declarations/components/disclosure/accordion/accordion.d.ts.map +1 -1
- package/declarations/components/forms/autocomplete.d.ts +112 -28
- package/declarations/components/forms/autocomplete.d.ts.map +1 -1
- package/declarations/components/forms/checkbox-group.d.ts +21 -15
- package/declarations/components/forms/checkbox-group.d.ts.map +1 -1
- package/declarations/components/forms/checkbox.d.ts +30 -14
- package/declarations/components/forms/checkbox.d.ts.map +1 -1
- package/declarations/components/forms/date-picker/date-picker.d.ts +307 -56
- package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
- package/declarations/components/forms/input-otp.d.ts +56 -40
- package/declarations/components/forms/input-otp.d.ts.map +1 -1
- package/declarations/components/forms/input.d.ts +35 -30
- package/declarations/components/forms/input.d.ts.map +1 -1
- package/declarations/components/forms/label.d.ts +14 -13
- package/declarations/components/forms/label.d.ts.map +1 -1
- package/declarations/components/forms/native-select.d.ts +66 -18
- package/declarations/components/forms/native-select.d.ts.map +1 -1
- package/declarations/components/forms/radio-group.d.ts +21 -15
- package/declarations/components/forms/radio-group.d.ts.map +1 -1
- package/declarations/components/forms/radio.d.ts +30 -14
- package/declarations/components/forms/radio.d.ts.map +1 -1
- package/declarations/components/forms/select/select.d.ts +186 -36
- package/declarations/components/forms/select/select.d.ts.map +1 -1
- package/declarations/components/forms/switch.d.ts +56 -39
- package/declarations/components/forms/switch.d.ts.map +1 -1
- package/declarations/components/forms/textarea.d.ts +53 -16
- package/declarations/components/forms/textarea.d.ts.map +1 -1
- package/declarations/components/layout/app-layout.d.ts +168 -118
- package/declarations/components/layout/app-layout.d.ts.map +1 -1
- package/declarations/components/layout/aside.d.ts +168 -118
- package/declarations/components/layout/aside.d.ts.map +1 -1
- package/declarations/components/layout/navbar.d.ts +168 -118
- package/declarations/components/layout/navbar.d.ts.map +1 -1
- package/declarations/components/layout/sidebar.d.ts +168 -118
- package/declarations/components/layout/sidebar.d.ts.map +1 -1
- package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts +42 -31
- package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/declarations/components/navigation/pagination/pagination.d.ts +56 -39
- package/declarations/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/declarations/components/navigation/stepper/stepper.d.ts +294 -188
- package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -1
- package/declarations/components/navigation/tab-nav/tab-nav.d.ts +35 -30
- package/declarations/components/navigation/tab-nav/tab-nav.d.ts.map +1 -1
- package/declarations/components/navigation/tabs/tabs.d.ts +35 -30
- package/declarations/components/navigation/tabs/tabs.d.ts.map +1 -1
- package/declarations/components/overlays/drawer.d.ts +91 -60
- package/declarations/components/overlays/drawer.d.ts.map +1 -1
- package/declarations/components/overlays/modal.d.ts +35 -26
- package/declarations/components/overlays/modal.d.ts.map +1 -1
- package/declarations/components/overlays/popover.d.ts +2 -0
- package/declarations/components/overlays/popover.d.ts.map +1 -1
- package/declarations/components/status/badge.d.ts +4 -0
- package/declarations/components/status/badge.d.ts.map +1 -1
- package/declarations/components/utilities/avatar.d.ts +21 -20
- package/declarations/components/utilities/avatar.d.ts.map +1 -1
- package/dist/components/buttons/button-group.js +1 -1
- package/dist/components/buttons/button.js +2 -2
- package/dist/components/buttons/chip.js +1 -1
- package/dist/components/buttons/close-button.js +1 -1
- package/dist/components/buttons/segmented-control/segmented-control.js +1 -1
- package/dist/components/buttons/toggle-button.js +1 -1
- package/dist/components/collections/calendar/calendar.js +1 -1
- package/dist/components/collections/calendar/header.js +1 -1
- package/dist/components/collections/calendar/year-grid.js +1 -1
- package/dist/components/collections/command/command.js +1 -1
- package/dist/components/collections/command/list.js +1 -1
- package/dist/components/collections/dropdown/dropdown.js +2 -2
- package/dist/components/collections/dropdown/sub.js +1 -1
- package/dist/components/collections/listbox/item.js +2 -2
- package/dist/components/collections/listbox/listbox.js +2 -2
- package/dist/components/collections/table/column-visibility.js +1 -1
- package/dist/components/collections/table/sort-button.js +1 -1
- package/dist/components/collections/table/table.js +1 -1
- package/dist/components/disclosure/accordion/accordion.js +1 -1
- package/dist/components/disclosure/accordion/item.js +1 -1
- package/dist/components/forms/autocomplete.js +4 -4
- package/dist/components/forms/date-input/date-input.js +1 -1
- package/dist/components/forms/date-input/segment-group.js +1 -1
- package/dist/components/forms/date-picker/date-picker.js +2 -2
- package/dist/components/forms/date-picker/end-content.js +1 -1
- package/dist/components/forms/date-picker/time-columns.js +2 -2
- package/dist/components/forms/form-feedback.js +2 -2
- package/dist/components/forms/form.js +1 -1
- package/dist/components/forms/input-otp.js +1 -1
- package/dist/components/forms/input.js +1 -1
- package/dist/components/forms/native-select.js +2 -2
- package/dist/components/forms/select/end-content.js +1 -1
- package/dist/components/forms/select/select.js +3 -3
- package/dist/components/forms/switch.js +2 -2
- package/dist/components/layout/app-layout-state.js +1 -1
- package/dist/components/layout/app-layout.js +1 -1
- package/dist/components/layout/aside-toggle.js +1 -1
- package/dist/components/layout/aside.js +1 -1
- package/dist/components/layout/bottom-nav-more.js +2 -2
- package/dist/components/layout/bottom-nav.js +1 -1
- package/dist/components/layout/main.js +1 -1
- package/dist/components/layout/menu-toggle.js +1 -1
- package/dist/components/layout/nav-context.js +1 -1
- package/dist/components/layout/nav-folder.js +2 -2
- package/dist/components/layout/nav-item.js +1 -1
- package/dist/components/layout/nav-link.js +1 -1
- package/dist/components/layout/navbar.js +1 -1
- package/dist/components/layout/page-header.js +1 -1
- package/dist/components/layout/sidebar-group.js +1 -1
- package/dist/components/layout/sidebar-toggle.js +1 -1
- package/dist/components/layout/sidebar.js +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/components/navigation/breadcrumbs/item.js +1 -1
- package/dist/components/navigation/breadcrumbs/separator.js +1 -1
- package/dist/components/navigation/external-link.js +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -2
- package/dist/components/navigation/stepper/collapse-menu.js +1 -1
- package/dist/components/navigation/stepper/stepper.js +1 -1
- package/dist/components/navigation/tab-nav/item.js +1 -1
- package/dist/components/navigation/tab-nav/tab-nav.js +1 -1
- package/dist/components/navigation/tabs/tabs.js +1 -1
- package/dist/components/notifications/index.js +2 -2
- package/dist/components/notifications/notification-card.js +3 -3
- package/dist/components/notifications/notifications-container.js +2 -2
- package/dist/components/overlays/drawer.js +2 -2
- package/dist/components/overlays/modal.js +2 -2
- package/dist/components/overlays/overlay.js +1 -1
- package/dist/components/overlays/popover.js +44 -5
- package/dist/components/overlays/popover.js.map +1 -1
- package/dist/components/overlays/portal.js +1 -1
- package/dist/components/status/alert.js +1 -1
- package/dist/components/status/badge.js +4 -0
- package/dist/components/status/badge.js.map +1 -1
- package/dist/components/status/progress-bar.js +1 -1
- package/dist/components/utilities/avatar.js +1 -1
- package/dist/components/utilities/kbd.js +1 -1
- package/dist/components/utilities/spinner.js +1 -1
- package/dist/{control-blur-C8OnSQR5.js → control-blur-ByDW39Z2.js} +1 -1
- package/dist/{control-blur-C8OnSQR5.js.map → control-blur-ByDW39Z2.js.map} +1 -1
- package/dist/{deprecated-args-BIUjLA8y.js → deprecated-args-D6KS2fwp.js} +1 -1
- package/dist/{deprecated-args-BIUjLA8y.js.map → deprecated-args-D6KS2fwp.js.map} +1 -1
- package/dist/{dialog-CreV7aPQ.js → dialog-C5sLU1yl.js} +1 -1
- package/dist/{dialog-CreV7aPQ.js.map → dialog-C5sLU1yl.js.map} +1 -1
- package/dist/{dom-cKWVvtkd.js → dom-CbIZhRH4.js} +1 -1
- package/dist/{dom-cKWVvtkd.js.map → dom-CbIZhRH4.js.map} +1 -1
- package/dist/{icons-55dthVFk.js → icons-DqlDWFrr.js} +1 -1
- package/dist/{icons-55dthVFk.js.map → icons-DqlDWFrr.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{manager-Dge4r8Vn.js → manager-DFO_x6Jr.js} +2 -2
- package/dist/{manager-Dge4r8Vn.js.map → manager-DFO_x6Jr.js.map} +1 -1
- package/dist/{notification-card-BPfDo-Gf.js → notification-card-C4mlc9Ac.js} +3 -3
- package/dist/{notification-card-BPfDo-Gf.js.map → notification-card-C4mlc9Ac.js.map} +1 -1
- package/dist/notifications.js +2 -2
- package/dist/{reveal-within-BcqpOmSI.js → reveal-within-BbeisIjK.js} +1 -1
- package/dist/{reveal-within-BcqpOmSI.js.map → reveal-within-BbeisIjK.js.map} +1 -1
- package/dist/{runtime--fcdnjmJ-BOdRhmsS.js → runtime--fcdnjmJ-DOFHQ2m8.js} +1 -1
- package/dist/{runtime--fcdnjmJ-BOdRhmsS.js.map → runtime--fcdnjmJ-DOFHQ2m8.js.map} +1 -1
- package/dist/services/notifications.js +1 -1
- package/dist/test-support.js +3 -51
- package/dist/test-support.js.map +1 -1
- package/dist/utils/keys.js +1 -1
- package/dist/utils/listManager.js +2 -2
- package/dist/utils/ref.js +1 -1
- package/dist/utils/toggle.js +1 -1
- package/package.json +16 -16
|
@@ -8,7 +8,7 @@ import { ref } from '../../utils/ref.js';
|
|
|
8
8
|
import { CloseButton } from '../buttons/close-button.js';
|
|
9
9
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
10
10
|
import { setComponentTemplate } from '@ember/component';
|
|
11
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-
|
|
11
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
12
12
|
|
|
13
13
|
function or(arg1, arg2) {
|
|
14
14
|
return !!(arg1 || arg2);
|
|
@@ -6,10 +6,10 @@ import { assert } from '@ember/debug';
|
|
|
6
6
|
import { useStyles } from '@frontile/theme';
|
|
7
7
|
import { FormControl } from './form-control.js';
|
|
8
8
|
import { ListManager, keyAndLabelForItem } from '../../utils/listManager.js';
|
|
9
|
-
import { I as IconChevronUpDown } from '../../icons-
|
|
9
|
+
import { I as IconChevronUpDown } from '../../icons-DqlDWFrr.js';
|
|
10
10
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
11
11
|
import { setComponentTemplate } from '@ember/component';
|
|
12
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-
|
|
12
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
13
13
|
|
|
14
14
|
class NativeSelect extends Component {
|
|
15
15
|
constructor(owner, args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Spinner } from '../../utilities/spinner.js';
|
|
2
2
|
import { CloseButton } from '../../buttons/close-button.js';
|
|
3
|
-
import { I as IconChevronUpDown } from '../../../icons-
|
|
3
|
+
import { I as IconChevronUpDown } from '../../../icons-DqlDWFrr.js';
|
|
4
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
6
|
import templateOnly from '@ember/component/template-only';
|
|
@@ -4,13 +4,13 @@ import { assert } from '@ember/debug';
|
|
|
4
4
|
import { on } from '@ember/modifier';
|
|
5
5
|
import { modifier } from 'ember-modifier';
|
|
6
6
|
import { useStyles } from '@frontile/theme';
|
|
7
|
-
import { r as renamedArgValue } from '../../../deprecated-args-
|
|
7
|
+
import { r as renamedArgValue } from '../../../deprecated-args-D6KS2fwp.js';
|
|
8
8
|
import { Listbox } from '../../collections/listbox/listbox.js';
|
|
9
9
|
import { VisuallyHidden } from '../../utilities/visually-hidden.js';
|
|
10
10
|
import { Popover } from '../../overlays/popover.js';
|
|
11
11
|
import { FormControl } from '../form-control.js';
|
|
12
12
|
import { ref } from '../../../utils/ref.js';
|
|
13
|
-
import { C as ControlBlurTracker } from '../../../control-blur-
|
|
13
|
+
import { C as ControlBlurTracker } from '../../../control-blur-ByDW39Z2.js';
|
|
14
14
|
import { triggerFormInputEvent } from '../../../utils/forms-utils-index.js';
|
|
15
15
|
import { canDeselectKey, keyAndLabelForItem } from '../../../utils/listManager.js';
|
|
16
16
|
import { filterAndRankItems, limitItems } from '../../../utils/filter.js';
|
|
@@ -20,7 +20,7 @@ import { SelectedChips } from './selected-items.js';
|
|
|
20
20
|
import { SelectEndContent } from './end-content.js';
|
|
21
21
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
22
22
|
import { setComponentTemplate } from '@ember/component';
|
|
23
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
23
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
24
24
|
|
|
25
25
|
const and = (a, b) => Boolean(a) && Boolean(b);
|
|
26
26
|
/*
|
|
@@ -4,10 +4,10 @@ import { FormControl } from './form-control.js';
|
|
|
4
4
|
import { useStyles } from '@frontile/theme';
|
|
5
5
|
import { tracked } from '@ember/-internals/metal';
|
|
6
6
|
import { hash } from '@ember/helper';
|
|
7
|
-
import { r as renamedArgValue } from '../../deprecated-args-
|
|
7
|
+
import { r as renamedArgValue } from '../../deprecated-args-D6KS2fwp.js';
|
|
8
8
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
9
9
|
import { setComponentTemplate } from '@ember/component';
|
|
10
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-
|
|
10
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
11
11
|
|
|
12
12
|
class Switch extends Component {
|
|
13
13
|
static {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tracked } from '@glimmer/tracking';
|
|
2
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-
|
|
2
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Shared state for an app shell: desktop sidebar collapse, the mobile
|
|
@@ -22,7 +22,7 @@ import { Sidebar } from './sidebar.js';
|
|
|
22
22
|
import { SidebarToggle } from './sidebar-toggle.js';
|
|
23
23
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
24
24
|
import { setComponentTemplate } from '@ember/component';
|
|
25
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
25
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* A part registered with the layout. It is written after render: the parts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { on } from '@ember/modifier';
|
|
3
|
-
import { S as SidebarRightIcon } from '../../icons-
|
|
3
|
+
import { S as SidebarRightIcon } from '../../icons-DqlDWFrr.js';
|
|
4
4
|
import { AppLayoutState } from './app-layout-state.js';
|
|
5
5
|
import { standaloneStyles } from './context.js';
|
|
6
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
@@ -8,7 +8,7 @@ import { AppLayoutState } from './app-layout-state.js';
|
|
|
8
8
|
import { layoutVariants } from './context.js';
|
|
9
9
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
10
10
|
import { setComponentTemplate } from '@ember/component';
|
|
11
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
11
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* A panel beside `Main`, shown while `asideOpen` is true. From `lg` (64rem)
|
|
@@ -7,13 +7,13 @@ import { guidFor } from '@ember/object/internals';
|
|
|
7
7
|
import { modifier } from 'ember-modifier';
|
|
8
8
|
import { useStyles } from '@frontile/theme';
|
|
9
9
|
import Drawer from '../overlays/drawer.js';
|
|
10
|
-
import { E as EllipsisHorizontalIcon } from '../../icons-
|
|
10
|
+
import { E as EllipsisHorizontalIcon } from '../../icons-DqlDWFrr.js';
|
|
11
11
|
import { NavItem } from './nav-item.js';
|
|
12
12
|
import { NavFolder } from './nav-folder.js';
|
|
13
13
|
import { NavItemRegistry } from './nav-context.js';
|
|
14
14
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
15
15
|
import { setComponentTemplate } from '@ember/component';
|
|
16
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
16
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
17
17
|
|
|
18
18
|
/** Takes registrations and ignores them; see `sheetRegistry`. */const IGNORE_REGISTRATION = {
|
|
19
19
|
registerItem: () => () => {}
|
|
@@ -7,7 +7,7 @@ import { NavItem } from './nav-item.js';
|
|
|
7
7
|
import { BottomNavMore } from './bottom-nav-more.js';
|
|
8
8
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
9
9
|
import { setComponentTemplate } from '@ember/component';
|
|
10
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
10
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A bar of icon tabs along the bottom of the screen, for the primary
|
|
@@ -4,7 +4,7 @@ import { guidFor } from '@ember/object/internals';
|
|
|
4
4
|
import { standaloneStyles } from './context.js';
|
|
5
5
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
6
6
|
import { setComponentTemplate } from '@ember/component';
|
|
7
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
7
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The page's `main` landmark. Inside `AppLayout` it fills the content area
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { on } from '@ember/modifier';
|
|
3
|
-
import { M as MenuIcon } from '../../icons-
|
|
3
|
+
import { M as MenuIcon } from '../../icons-DqlDWFrr.js';
|
|
4
4
|
import { AppLayoutState } from './app-layout-state.js';
|
|
5
5
|
import { standaloneStyles } from './context.js';
|
|
6
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tracked, cached } from '@glimmer/tracking';
|
|
2
2
|
import { schedule } from '@ember/runloop';
|
|
3
3
|
import { isDestroying, isDestroyed } from '@ember/destroyable';
|
|
4
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
4
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The items registered with a `NavFolder` or a `BottomNav.More`, and what
|
|
@@ -10,14 +10,14 @@ import { useStyles, twMerge } from '@frontile/theme';
|
|
|
10
10
|
import { Collapsible } from '../utilities/collapsible.js';
|
|
11
11
|
import { Tooltip } from '../overlays/tooltip.js';
|
|
12
12
|
import { Dropdown } from '../collections/dropdown/dropdown.js';
|
|
13
|
-
import { c as ChevronRightIcon } from '../../icons-
|
|
13
|
+
import { c as ChevronRightIcon } from '../../icons-DqlDWFrr.js';
|
|
14
14
|
import { NavItem } from './nav-item.js';
|
|
15
15
|
import { NavLink } from './nav-link.js';
|
|
16
16
|
import { NavItemRegistry } from './nav-context.js';
|
|
17
17
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
18
18
|
import { setComponentTemplate } from '@ember/component';
|
|
19
19
|
import templateOnly from '@ember/component/template-only';
|
|
20
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
20
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* The folder's trigger row, the same in the rail and inline; each caller
|
|
@@ -10,7 +10,7 @@ import { NavLink } from './nav-link.js';
|
|
|
10
10
|
import { isLinkActive } from '../../utils/route-active.js';
|
|
11
11
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
12
12
|
import { setComponentTemplate } from '@ember/component';
|
|
13
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
13
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A styled navigation link. It takes the same routing arguments as
|
|
@@ -5,7 +5,7 @@ import { LinkTo } from '@ember/routing';
|
|
|
5
5
|
import { normalizeRouteArgs, isLinkActive } from '../../utils/route-active.js';
|
|
6
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
7
7
|
import { setComponentTemplate } from '@ember/component';
|
|
8
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
8
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The headless element behind a navigation item: it handles routing, active
|
|
@@ -4,7 +4,7 @@ import { useStyles } from '@frontile/theme';
|
|
|
4
4
|
import { layoutVariants } from './context.js';
|
|
5
5
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
6
6
|
import { setComponentTemplate } from '@ember/component';
|
|
7
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
7
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The top bar of the content column, rendered as a `header` landmark. It
|
|
@@ -3,7 +3,7 @@ import { cached } from '@glimmer/tracking';
|
|
|
3
3
|
import { standaloneStyles } from './context.js';
|
|
4
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
6
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The title row at the top of a page: title, description and actions. Place
|
|
@@ -4,7 +4,7 @@ import { guidFor } from '@ember/object/internals';
|
|
|
4
4
|
import { useStyles } from '@frontile/theme';
|
|
5
5
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
6
6
|
import { setComponentTemplate } from '@ember/component';
|
|
7
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
7
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A labelled set of sidebar items: a `group` named by its visible `@label`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { on } from '@ember/modifier';
|
|
3
|
-
import { f as SidebarLeftIcon } from '../../icons-
|
|
3
|
+
import { f as SidebarLeftIcon } from '../../icons-DqlDWFrr.js';
|
|
4
4
|
import { standaloneStyles } from './context.js';
|
|
5
5
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
6
6
|
import { setComponentTemplate } from '@ember/component';
|
|
@@ -13,7 +13,7 @@ import { layoutVariants } from './context.js';
|
|
|
13
13
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
14
14
|
import { setComponentTemplate } from '@ember/component';
|
|
15
15
|
import templateOnly from '@ember/component/template-only';
|
|
16
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
16
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* The sidebar navigation: a full-height `nav` landmark that can collapse to
|
|
@@ -9,7 +9,7 @@ import { BreadcrumbsEllipsis } from './ellipsis.js';
|
|
|
9
9
|
import { collapseBreadcrumbs } from './collapse.js';
|
|
10
10
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
11
11
|
import { setComponentTemplate } from '@ember/component';
|
|
12
|
-
import { a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
12
|
+
import { a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* An ordered trail of links ending in the current page.
|
|
@@ -5,7 +5,7 @@ import { LinkTo } from '@ember/routing';
|
|
|
5
5
|
import { BreadcrumbsSeparator } from './separator.js';
|
|
6
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
7
7
|
import { setComponentTemplate } from '@ember/component';
|
|
8
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
8
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* One crumb: its `<li>`, the crumb itself, and the separator that follows it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ChevronRightIcon } from '../../../icons-
|
|
1
|
+
import { c as ChevronRightIcon } from '../../../icons-DqlDWFrr.js';
|
|
2
2
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
3
|
import { setComponentTemplate } from '@ember/component';
|
|
4
4
|
import templateOnly from '@ember/component/template-only';
|
|
@@ -4,7 +4,7 @@ import { useStyles } from '@frontile/theme';
|
|
|
4
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
6
|
import templateOnly from '@ember/component/template-only';
|
|
7
|
-
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
7
|
+
import { a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
8
8
|
|
|
9
9
|
const IconExternalLink = setComponentTemplate(precompileTemplate("<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" data-test-icon=\"external-link\" ...attributes>\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25\" />\n</svg>", {
|
|
10
10
|
strictMode: true
|
|
@@ -6,10 +6,10 @@ import { useStyles } from '@frontile/theme';
|
|
|
6
6
|
import press from '../../../modifiers/press.js';
|
|
7
7
|
import { VisuallyHidden } from '../../utilities/visually-hidden.js';
|
|
8
8
|
import { paginationRange } from './range.js';
|
|
9
|
-
import { g as ChevronDoubleRightIcon, c as ChevronRightIcon, d as ChevronLeftIcon, h as ChevronDoubleLeftIcon } from '../../../icons-
|
|
9
|
+
import { g as ChevronDoubleRightIcon, c as ChevronRightIcon, d as ChevronLeftIcon, h as ChevronDoubleLeftIcon } from '../../../icons-DqlDWFrr.js';
|
|
10
10
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
11
11
|
import { setComponentTemplate } from '@ember/component';
|
|
12
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
12
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
13
13
|
|
|
14
14
|
const DEFAULT_LABELS = {
|
|
15
15
|
previous: 'Previous',
|
|
@@ -2,7 +2,7 @@ import { tracked } from '@glimmer/tracking';
|
|
|
2
2
|
import { schedule } from '@ember/runloop';
|
|
3
3
|
import { modifier } from 'ember-modifier';
|
|
4
4
|
import { autoUpdate, computePosition, offset, flip, shift } from '@floating-ui/dom';
|
|
5
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../../runtime--fcdnjmJ-
|
|
5
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
6
6
|
|
|
7
7
|
class CollapseMenu {
|
|
8
8
|
static {
|
|
@@ -13,7 +13,7 @@ import { StepperPanel } from './panel.js';
|
|
|
13
13
|
import { StepperStep } from './step.js';
|
|
14
14
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
15
15
|
import { setComponentTemplate } from '@ember/component';
|
|
16
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
16
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
17
17
|
|
|
18
18
|
class Stepper extends Component {
|
|
19
19
|
// Selection is manual -- Enter or Space -- unlike `Tabs`' automatic default:
|
|
@@ -5,7 +5,7 @@ import { LinkTo } from '@ember/routing';
|
|
|
5
5
|
import { normalizeRouteArgs, isLinkActive } from '../../../utils/route-active.js';
|
|
6
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
7
7
|
import { setComponentTemplate } from '@ember/component';
|
|
8
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
8
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
9
9
|
|
|
10
10
|
class TabNavItem extends Component {
|
|
11
11
|
static {
|
|
@@ -7,7 +7,7 @@ import { selectionIndicator } from '../../../utils/selection-indicator.js';
|
|
|
7
7
|
import { TabNavItem } from './item.js';
|
|
8
8
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
9
9
|
import { setComponentTemplate } from '@ember/component';
|
|
10
|
-
import { a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
10
|
+
import { a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A navigation bar styled like `Tabs`, for links that change the page.
|
|
@@ -9,7 +9,7 @@ import { TabsTab } from './tab.js';
|
|
|
9
9
|
import { TabsPanel } from './panel.js';
|
|
10
10
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
11
11
|
import { setComponentTemplate } from '@ember/component';
|
|
12
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-
|
|
12
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
13
13
|
|
|
14
14
|
// A class rather than a template-only component: `TOC` values are not
|
|
15
15
|
// themselves generic, so `WithBoundArgs<typeof TabsList<T>, 'context'>` below
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { N as Notification, T as Timer } from '../../manager-
|
|
1
|
+
export { N as Notification, T as Timer } from '../../manager-DFO_x6Jr.js';
|
|
2
2
|
import '@ember/service';
|
|
3
|
-
export { N as NotificationCard, a as NotificationStack } from '../../notification-card-
|
|
3
|
+
export { N as NotificationCard, a as NotificationStack } from '../../notification-card-C4mlc9Ac.js';
|
|
4
4
|
export { NotificationsContainer } from './notifications-container.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,10 +7,10 @@ import '@ember/helper';
|
|
|
7
7
|
import '../buttons/close-button.js';
|
|
8
8
|
import '../buttons/button.js';
|
|
9
9
|
import '../utilities/spinner.js';
|
|
10
|
-
import '../../icons-
|
|
10
|
+
import '../../icons-DqlDWFrr.js';
|
|
11
11
|
import '@frontile/theme';
|
|
12
|
-
export { N as NotificationCard, N as default } from '../../notification-card-
|
|
12
|
+
export { N as NotificationCard, N as default } from '../../notification-card-C4mlc9Ac.js';
|
|
13
13
|
import '@ember/template-compilation';
|
|
14
14
|
import '@ember/component';
|
|
15
|
-
import '../../runtime--fcdnjmJ-
|
|
15
|
+
import '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
16
16
|
//# sourceMappingURL=notification-card.js.map
|
|
@@ -7,11 +7,11 @@ import { on } from '@ember/modifier';
|
|
|
7
7
|
import { modifier } from 'ember-modifier';
|
|
8
8
|
import { htmlSafe } from '@ember/template';
|
|
9
9
|
import { registerDestructor } from '@ember/destroyable';
|
|
10
|
-
import { a as NotificationStack, N as NotificationCard } from '../../notification-card-
|
|
10
|
+
import { a as NotificationStack, N as NotificationCard } from '../../notification-card-C4mlc9Ac.js';
|
|
11
11
|
import { useStyles } from '@frontile/theme';
|
|
12
12
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
13
13
|
import { setComponentTemplate } from '@ember/component';
|
|
14
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
14
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
15
15
|
|
|
16
16
|
function deferWhileAlive(component, fn) {
|
|
17
17
|
next(() => {
|
|
@@ -3,7 +3,7 @@ import { tracked } from '@glimmer/tracking';
|
|
|
3
3
|
import { guidFor } from '@ember/object/internals';
|
|
4
4
|
import { hash } from '@ember/helper';
|
|
5
5
|
import { modifier } from 'ember-modifier';
|
|
6
|
-
import { w as warnIfDialogHasNoAccessibleName } from '../../dialog-
|
|
6
|
+
import { w as warnIfDialogHasNoAccessibleName } from '../../dialog-C5sLU1yl.js';
|
|
7
7
|
import { Overlay } from './overlay.js';
|
|
8
8
|
import DrawerBody from './drawer/body.js';
|
|
9
9
|
import DrawerFooter from './drawer/footer.js';
|
|
@@ -15,7 +15,7 @@ import { CloseButton } from '../buttons/close-button.js';
|
|
|
15
15
|
import { useStyles } from '@frontile/theme';
|
|
16
16
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
17
17
|
import { setComponentTemplate } from '@ember/component';
|
|
18
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-
|
|
18
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
19
19
|
|
|
20
20
|
class Drawer extends Component {
|
|
21
21
|
headerId = `${guidFor(this)}-header`;
|
|
@@ -3,7 +3,7 @@ import { tracked } from '@glimmer/tracking';
|
|
|
3
3
|
import { guidFor } from '@ember/object/internals';
|
|
4
4
|
import { hash } from '@ember/helper';
|
|
5
5
|
import { modifier } from 'ember-modifier';
|
|
6
|
-
import { w as warnIfDialogHasNoAccessibleName } from '../../dialog-
|
|
6
|
+
import { w as warnIfDialogHasNoAccessibleName } from '../../dialog-C5sLU1yl.js';
|
|
7
7
|
import { Overlay } from './overlay.js';
|
|
8
8
|
import ModalFooter from './modal/footer.js';
|
|
9
9
|
import ModalBody from './modal/body.js';
|
|
@@ -12,7 +12,7 @@ import { CloseButton } from '../buttons/close-button.js';
|
|
|
12
12
|
import { useStyles } from '@frontile/theme';
|
|
13
13
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
14
14
|
import { setComponentTemplate } from '@ember/component';
|
|
15
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-
|
|
15
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
16
16
|
|
|
17
17
|
class Modal extends Component {
|
|
18
18
|
headerId = `${guidFor(this)}-header`;
|
|
@@ -14,7 +14,7 @@ import { findParentPortal, Portal } from './portal.js';
|
|
|
14
14
|
import { macroCondition, isTesting } from '@embroider/macros';
|
|
15
15
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
16
16
|
import { setComponentTemplate } from '@ember/component';
|
|
17
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
17
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Wraps `createFocusTrap` so activate/deactivate/pause/unpause (and
|
|
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { Overlay } from './overlay.js';
|
|
3
3
|
import { tracked, cached } from '@glimmer/tracking';
|
|
4
4
|
import { Velcro } from 'ember-velcro';
|
|
5
|
-
import { arrow } from '@floating-ui/dom';
|
|
5
|
+
import { size, arrow } from '@floating-ui/dom';
|
|
6
6
|
import { assert } from '@ember/debug';
|
|
7
7
|
import { guidFor } from '@ember/object/internals';
|
|
8
8
|
import { hash } from '@ember/helper';
|
|
@@ -12,8 +12,46 @@ import { debounce, cancel, later } from '@ember/runloop';
|
|
|
12
12
|
import { hasKey } from '../../utils/keyboard-event.js';
|
|
13
13
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
14
14
|
import { setComponentTemplate } from '@ember/component';
|
|
15
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-
|
|
15
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* The inset, in px, a popover keeps from the edge of the viewport. Used by the
|
|
19
|
+
* default `shiftOptions` and the `size` middleware below, so the gutter is one
|
|
20
|
+
* number.
|
|
21
|
+
*/
|
|
22
|
+
const VIEWPORT_GUTTER = 16;
|
|
23
|
+
/**
|
|
24
|
+
* Default `shiftOptions`: keeps the content a gutter away from the viewport
|
|
25
|
+
* edge, so a popover that is as wide as the screen reads as an inset card
|
|
26
|
+
* rather than running edge to edge. A module-level constant, not an inline
|
|
27
|
+
* object, so `Velcro` sees the same identity across re-renders and doesn't
|
|
28
|
+
* retrigger positioning (see the note on `middleware` below).
|
|
29
|
+
*/
|
|
30
|
+
const DEFAULT_SHIFT_OPTIONS = {
|
|
31
|
+
padding: VIEWPORT_GUTTER
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Publishes the room the content has -- the viewport minus the gutter, on the
|
|
35
|
+
* side it was placed -- as `--popover-available-width` and
|
|
36
|
+
* `--popover-available-height`, which the `popover` theme turns into
|
|
37
|
+
* `max-width` / `max-height`. Custom properties rather than inline
|
|
38
|
+
* `max-*` so a `max-h-*` class from the consumer still wins, and measured by
|
|
39
|
+
* floating-ui rather than written as `100vw`, which counts a classic
|
|
40
|
+
* scrollbar the content can't use. Module-level for the same identity reason
|
|
41
|
+
* as `DEFAULT_SHIFT_OPTIONS`.
|
|
42
|
+
*/
|
|
43
|
+
const availableSpace = size({
|
|
44
|
+
padding: VIEWPORT_GUTTER,
|
|
45
|
+
apply({
|
|
46
|
+
availableWidth,
|
|
47
|
+
availableHeight,
|
|
48
|
+
elements
|
|
49
|
+
}) {
|
|
50
|
+
const style = elements.floating.style;
|
|
51
|
+
style.setProperty('--popover-available-width', `${availableWidth}px`);
|
|
52
|
+
style.setProperty('--popover-available-height', `${availableHeight}px`);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
17
55
|
class Popover extends Component {
|
|
18
56
|
/**
|
|
19
57
|
* The element `measureWidth` is watching, when a consumer opts into measuring
|
|
@@ -96,11 +134,11 @@ class Popover extends Component {
|
|
|
96
134
|
get middleware() {
|
|
97
135
|
const consumer = this.args.middleware ?? [];
|
|
98
136
|
if (!this.arrowEl) {
|
|
99
|
-
return
|
|
137
|
+
return [...consumer, availableSpace];
|
|
100
138
|
}
|
|
101
139
|
// `padding` keeps the arrow off the content's rounded corners, where it
|
|
102
140
|
// would poke out past the radius.
|
|
103
|
-
return [...consumer, arrow({
|
|
141
|
+
return [...consumer, availableSpace, arrow({
|
|
104
142
|
element: this.arrowEl,
|
|
105
143
|
padding: 4
|
|
106
144
|
})];
|
|
@@ -448,10 +486,11 @@ class Popover extends Component {
|
|
|
448
486
|
}
|
|
449
487
|
};
|
|
450
488
|
static {
|
|
451
|
-
setComponentTemplate(precompileTemplate("<Velcro @placement={{if @placement @placement \"bottom-start\"}} @strategy={{if @strategy @strategy \"absolute\"}} @offsetOptions={{if @offsetOptions @offsetOptions 5}} @flipOptions={{@flipOptions}} @middleware={{this.middleware}} @shiftOptions={{@shiftOptions}} as |velcro|>\n {{yield (hash anchor=velcro.hook measureWidth=this.measureWidth isOpen=this.isOpen open=this.open close=this.close toggle=this.toggle trigger=this.trigger data=velcro.data Content=(component Content id=this.menuId loop=velcro.loop isOpen=this.isOpen toggle=this.toggle internalDidClose=this.didClose preventFocusRestore=this.preventFocusRestore preventAutoFocus=this.isHoverTrigger triggerWidth=this.triggerWidth isHoverTrigger=this.isHoverTrigger onContentHoverStart=this.clearHoverTimer onContentHoverEnd=this.scheduleClose registerArrow=this.registerArrow velcroData=velcro.data))}}\n</Velcro>", {
|
|
489
|
+
setComponentTemplate(precompileTemplate("<Velcro @placement={{if @placement @placement \"bottom-start\"}} @strategy={{if @strategy @strategy \"absolute\"}} @offsetOptions={{if @offsetOptions @offsetOptions 5}} @flipOptions={{@flipOptions}} @middleware={{this.middleware}} @shiftOptions={{if @shiftOptions @shiftOptions DEFAULT_SHIFT_OPTIONS}} as |velcro|>\n {{yield (hash anchor=velcro.hook measureWidth=this.measureWidth isOpen=this.isOpen open=this.open close=this.close toggle=this.toggle trigger=this.trigger data=velcro.data Content=(component Content id=this.menuId loop=velcro.loop isOpen=this.isOpen toggle=this.toggle internalDidClose=this.didClose preventFocusRestore=this.preventFocusRestore preventAutoFocus=this.isHoverTrigger triggerWidth=this.triggerWidth isHoverTrigger=this.isHoverTrigger onContentHoverStart=this.clearHoverTimer onContentHoverEnd=this.scheduleClose registerArrow=this.registerArrow velcroData=velcro.data))}}\n</Velcro>", {
|
|
452
490
|
strictMode: true,
|
|
453
491
|
scope: () => ({
|
|
454
492
|
Velcro,
|
|
493
|
+
DEFAULT_SHIFT_OPTIONS,
|
|
455
494
|
hash,
|
|
456
495
|
Content
|
|
457
496
|
})
|