frontile 0.18.10 → 0.18.12
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/button-group.d.ts +1 -1
- package/declarations/components/buttons/button-group.d.ts.map +1 -1
- package/declarations/components/buttons/button.d.ts +4 -2
- package/declarations/components/buttons/button.d.ts.map +1 -1
- package/declarations/components/buttons/chip.d.ts +4 -3
- package/declarations/components/buttons/chip.d.ts.map +1 -1
- package/declarations/components/buttons/icon-button.d.ts +50 -0
- package/declarations/components/buttons/icon-button.d.ts.map +1 -0
- package/declarations/components/buttons/index.d.ts +1 -0
- package/declarations/components/buttons/index.d.ts.map +1 -1
- 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/buttons/toggle-button.d.ts +1 -1
- package/declarations/components/buttons/toggle-button.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/select/types.d.ts +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 +8 -3
- 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/declarations/components/utilities/card.d.ts +94 -0
- package/declarations/components/utilities/card.d.ts.map +1 -0
- package/declarations/components/utilities/icon.d.ts +57 -0
- package/declarations/components/utilities/icon.d.ts.map +1 -0
- package/declarations/components/utilities/index.d.ts +2 -0
- package/declarations/components/utilities/index.d.ts.map +1 -1
- package/dist/buttons.js +1 -0
- package/dist/buttons.js.map +1 -1
- package/dist/components/buttons/button-group.js +1 -1
- package/dist/components/buttons/button.js +2 -2
- package/dist/components/buttons/button.js.map +1 -1
- package/dist/components/buttons/chip.js +1 -1
- package/dist/components/buttons/chip.js.map +1 -1
- package/dist/components/buttons/close-button.js +1 -1
- package/dist/components/buttons/icon-button.js +33 -0
- package/dist/components/buttons/icon-button.js.map +1 -0
- package/dist/components/buttons/index.js +1 -0
- package/dist/components/buttons/index.js.map +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 +4 -4
- package/dist/components/forms/select/select.js.map +1 -1
- 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/card.js +38 -0
- package/dist/components/utilities/card.js.map +1 -0
- package/dist/components/utilities/icon.js +33 -0
- package/dist/components/utilities/icon.js.map +1 -0
- package/dist/components/utilities/index.js +2 -0
- package/dist/components/utilities/index.js.map +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 +5 -2
- package/dist/index.js.map +1 -1
- 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/utilities.js +2 -0
- package/dist/utilities.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ import { useStyles } from '@frontile/theme';
|
|
|
4
4
|
import { parseKeys } from '../../utils/keys.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
|
* Renders keyboard keys and shortcuts.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { useStyles } from '@frontile/theme';
|
|
3
|
-
import { r as renamedArgValue } from '../../deprecated-args-
|
|
3
|
+
import { r as renamedArgValue } from '../../deprecated-args-D6KS2fwp.js';
|
|
4
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-blur-
|
|
1
|
+
{"version":3,"file":"control-blur-ByDW39Z2.js","sources":["../src/-private/control-blur.ts"],"sourcesContent":["import { later, cancel } from '@ember/runloop';\n\n/**\n * How long to wait before deciding that a focus loss with no identifiable\n * destination really left the control.\n *\n * Only the targetless case waits at all (see {@link ControlBlurTracker}): a\n * `focusout` that names where focus went is answered synchronously. Targetless\n * blurs are the ones a click on something unfocusable produces -- the page\n * background, a backdrop, the dropdown's own padding -- and the browser\n * dispatches the rest of that click (mouseup, click) in later tasks, which is\n * where an outside click gets around to closing the popover. Deciding before\n * that would read a control that still looks open and stay silent. A beat is\n * long enough for the click to finish and short enough that blur validation\n * still feels immediate.\n */\nconst FOCUS_SETTLE_MS = 150;\n\ninterface ControlBlurTrackerOptions {\n /**\n * The element the popover's `trigger` modifier is installed on. Its\n * `aria-controls` is how the portaled content is found, so this must be the\n * element that opens the dropdown, not merely something inside the control.\n */\n trigger: () => HTMLElement | null | undefined;\n\n /** The control's outermost element: trigger, chips, clear button and all. */\n container: () => HTMLElement | null | undefined;\n\n /** Whether the control's dropdown is currently open. */\n isOpen: () => boolean;\n\n /** Whether the owning component has been (or is being) destroyed. */\n isDestroyed: () => boolean;\n\n /** Called once each time focus genuinely leaves the control. */\n onBlur: () => void;\n}\n\n/**\n * Decides when a composite control -- a trigger plus a dropdown -- has really\n * lost focus, and reports it once.\n *\n * A trigger's own blur is not the answer. Clicking an option moves focus onto\n * that option, which is *inside* the control as far as the user is concerned\n * but is not a DOM descendant of the trigger: the popover content is portaled\n * to the end of the document. And in multiple selection mode the dropdown\n * stays open across several such clicks, so a trigger-blur-means-blur rule\n * fires mid-interaction -- which is what made blur validation paint \"pick at\n * least three\" under a field the user was still filling in.\n *\n * So the control is treated as two regions, the container and the popover\n * content, and focus leaving one for the other is not a blur:\n *\n * - **`focusout` naming its destination** (`relatedTarget`) is answered\n * immediately, with no timer at all. This covers every deliberate exit --\n * Tab, or a click on another focusable thing -- and every move *into* the\n * dropdown, including the option click that starts a selection.\n * - **A targetless `focusout`** is deferred by {@link FOCUS_SETTLE_MS} and then\n * judged on `document.activeElement`. Focus nowhere (`body`) while the\n * dropdown is open is still part of the interaction -- a click on the\n * dropdown's padding -- so it is not a blur; once the dropdown has closed,\n * the same state means the user clicked away.\n *\n * The portaled content is located through the trigger's `aria-controls`, which\n * the popover's trigger modifier sets to the content's id. That needs no extra\n * plumbing through the popover and stays correct wherever the content is\n * rendered.\n *\n * Callers must call {@link cancel} from `willDestroy`: a pending timer would\n * otherwise resolve against a torn-down component and both write tracked state\n * and call a callback the consumer has stopped expecting.\n */\nclass ControlBlurTracker {\n #timer?: ReturnType<typeof later>;\n\n private readonly options: ControlBlurTrackerOptions;\n\n constructor(options: ControlBlurTrackerOptions) {\n this.options = options;\n }\n\n /**\n * Wire this to `focusout` on the trigger -- not `blur`, whose\n * `relatedTarget` browsers are not obliged to populate.\n */\n handleFocusOut = (event: FocusEvent): void => {\n this.cancel();\n\n const next = event.relatedTarget;\n\n if (next instanceof Element) {\n if (!this.#holdsFocus(next)) {\n this.#report();\n }\n return;\n }\n\n this.#timer = later(this, this.#settle, FOCUS_SETTLE_MS);\n };\n\n /** Cancels a pending decision. Call from the owner's `willDestroy`. */\n cancel = (): void => {\n if (this.#timer) {\n cancel(this.#timer);\n this.#timer = undefined;\n }\n };\n\n #settle = (): void => {\n this.#timer = undefined;\n\n if (this.options.isDestroyed()) {\n return;\n }\n\n const active = document.activeElement;\n\n if (!active || active === document.body) {\n // Focus is nowhere. While the dropdown is open that is the user clicking\n // an unfocusable part of it; once it has closed it is the user having\n // clicked away from the control entirely.\n if (!this.options.isOpen()) {\n this.#report();\n }\n return;\n }\n\n if (!this.#holdsFocus(active)) {\n this.#report();\n }\n };\n\n /** Whether `el` is part of the control: the field itself, or its dropdown. */\n #holdsFocus(el: Element): boolean {\n const container = this.options.container();\n if (container && container.contains(el)) {\n return true;\n }\n\n const content = this.#popoverContent();\n return !!content && content.contains(el);\n }\n\n #popoverContent(): HTMLElement | null {\n const id = this.options.trigger()?.getAttribute('aria-controls');\n return id ? document.getElementById(id) : null;\n }\n\n #report(): void {\n if (this.options.isDestroyed()) {\n return;\n }\n this.options.onBlur();\n }\n}\n\nexport { ControlBlurTracker, type ControlBlurTrackerOptions };\n"],"names":["FOCUS_SETTLE_MS","ControlBlurTracker","options","constructor","handleFocusOut","event","cancel","next","relatedTarget","Element","later","undefined","#settle","isDestroyed","active","document","activeElement","body","isOpen","#holdsFocus","el","container","contains","content","#popoverContent","id","trigger","getAttribute","getElementById","#report","onBlur"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,eAAe,GAAG,GAAG;AAuB3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,CAAC;AACvB,EAAA,MAAM;EAEWC,OAAO;EAExBC,WAAWA,CAACD,OAAkC,EAAE;IAC9C,IAAI,CAACA,OAAO,GAAGA,OAAO;AACxB,EAAA;;AAEA;AACF;AACA;AACA;EACEE,cAAc,GAAIC,KAAiB,IAAW;IAC5C,IAAI,CAACC,MAAM,EAAE;AAEb,IAAA,MAAMC,IAAI,GAAGF,KAAK,CAACG,aAAa;IAEhC,IAAID,IAAI,YAAYE,OAAO,EAAE;MAC3B,IAAI,CAAC,IAAI,CAAC,WAAW,CAACF,IAAI,CAAC,EAAE;AAC3B,QAAA,IAAI,CAAC,OAAO,EAAE;AAChB,MAAA;AACA,MAAA;AACF,IAAA;AAEA,IAAA,IAAI,CAAC,MAAM,GAAGG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAEV,eAAe,CAAC;EAC1D,CAAC;;AAED;EACAM,MAAM,GAAGA,MAAY;AACnB,IAAA,IAAI,IAAI,CAAC,MAAM,EAAE;AACfA,MAAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;AACn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EAAE,EAAE;AAC9B,MAAA;AACF,IAAA;AACA,IAAA,IAAI,CAACX,OAAO,CAAC4B,MAAM,EAAE;AACvB,EAAA;AACF;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-args-
|
|
1
|
+
{"version":3,"file":"deprecated-args-D6KS2fwp.js","sources":["../src/-private/deprecated-args.ts"],"sourcesContent":["import { deprecate } from '@ember/debug';\n\nexport interface RenamedArgOptions {\n /** Component name as it appears to a consumer, e.g. `'Button'`. */\n component: string;\n /** The old argument name, without the `@`. */\n from: string;\n /** The new argument name, without the `@`. */\n to: string;\n /** Deprecation id, e.g. `'frontile.button.appearance'`. */\n id: string;\n}\n\nfunction warn(options: RenamedArgOptions, detail = ''): void {\n deprecate(\n `${options.component}: \\`@${options.from}\\` is deprecated. Use \\`@${options.to}\\` instead.${detail}`,\n false,\n {\n id: options.id,\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n}\n\n/**\n * Resolve an argument whose name *and* values moved.\n *\n * `values` maps old spellings to new ones. A legacy value absent from the map\n * kept its name (e.g. Button's `custom`) and passes through untouched — so the\n * map only lists what actually changed.\n */\nexport function renamedArgValue<Old extends string, New extends string>(\n next: New | undefined,\n legacy: Old | undefined,\n values: Partial<Record<Old, New>>,\n options: RenamedArgOptions\n): New | undefined {\n if (typeof legacy === 'undefined') {\n return next;\n }\n\n const mapped = values[legacy] ?? (legacy as unknown as New);\n\n warn(\n options,\n values[legacy] ? ` \\`${legacy}\\` is now \\`${values[legacy]}\\`.` : ''\n );\n\n return typeof next === 'undefined' ? mapped : next;\n}\n"],"names":["warn","options","detail","deprecate","component","from","to","id","until","for","since","available","enabled","renamedArgValue","next","legacy","values","mapped"],"mappings":";;AAaA,SAASA,IAAIA,CAACC,OAA0B,EAAEC,MAAM,GAAG,EAAE,EAAQ;AAC3DC,EAAAA,SAAS,CACP,CAAA,EAAGF,OAAO,CAACG,SAAS,CAAA,KAAA,EAAQH,OAAO,CAACI,IAAI,CAAA,yBAAA,EAA4BJ,OAAO,CAACK,EAAE,CAAA,WAAA,EAAcJ,MAAM,CAAA,CAAE,EACpG,KAAK,EACL;IACEK,EAAE,EAAEN,OAAO,CAACM,EAAE;AACdC,IAAAA,KAAK,EAAE,QAAQ;AACfC,IAAAA,GAAG,EAAE,UAAU;AACfC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,SAAS,EAAE,QAAQ;AAAEC,MAAAA,OAAO,EAAE;AAAS;AAClD,GACF,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,eAAeA,CAC7BC,IAAqB,EACrBC,MAAuB,EACvBC,MAAiC,EACjCf,OAA0B,EACT;AACjB,EAAA,IAAI,OAAOc,MAAM,KAAK,WAAW,EAAE;AACjC,IAAA,OAAOD,IAAI;AACb,EAAA;AAEA,EAAA,MAAMG,MAAM,GAAGD,MAAM,CAACD,MAAM,CAAC,IAAKA,MAAyB;AAE3Df,EAAAA,IAAI,CACFC,OAAO,EACPe,MAAM,CAACD,MAAM,CAAC,GAAG,CAAA,GAAA,EAAMA,MAAM,CAAA,YAAA,EAAeC,MAAM,CAACD,MAAM,CAAC,CAAA,GAAA,CAAK,GAAG,EACpE,CAAC;AAED,EAAA,OAAO,OAAOD,IAAI,KAAK,WAAW,GAAGG,MAAM,GAAGH,IAAI;AACpD;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-
|
|
1
|
+
{"version":3,"file":"dialog-C5sLU1yl.js","sources":["../src/-private/dialog.ts"],"sourcesContent":["import { warn } from '@ember/debug';\n\n/**\n * Warns when a dialog ends up with no accessible name at all — no registered\n * `Header`, and no `aria-label`/`aria-labelledby` of the consumer's own.\n * Assistive technology announces such a dialog as just \"dialog\", and nothing\n * else surfaces the mistake at runtime.\n *\n * Consumer-supplied names arrive through `...attributes`, which the component\n * cannot see in its args, so this inspects the rendered element for them. A\n * heading merely carrying `headerId` deliberately does *not* count: nothing\n * points `aria-labelledby` at it, so the dialog really is unnamed, and that is\n * the case most worth surfacing.\n *\n * `warn` is stripped from production builds, so this costs consumers nothing.\n */\nexport function warnIfDialogHasNoAccessibleName(\n element: Element,\n hasRegisteredHeader: boolean,\n component: 'modal' | 'drawer'\n): void {\n const hasName =\n hasRegisteredHeader ||\n !!element.getAttribute('aria-label') ||\n !!element.getAttribute('aria-labelledby');\n\n const name = component === 'modal' ? 'Modal' : 'Drawer';\n const block = component === 'modal' ? 'm' : 'd';\n\n warn(\n `<${name}> has no accessible name: assistive technology will announce it ` +\n `as just \"dialog\". Render the yielded <${block}.Header>, or pass your ` +\n `own aria-label or aria-labelledby to <${name}>. Putting the yielded ` +\n `headerId on a heading of your own is not enough on its own — pass ` +\n `aria-labelledby={{${block}.headerId}} alongside it.`,\n hasName,\n { id: `frontile.${component}.missing-accessible-name` }\n );\n}\n"],"names":["warnIfDialogHasNoAccessibleName","element","hasRegisteredHeader","component","hasName","getAttribute","name","block","warn","id"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,+BAA+BA,CAC7CC,OAAgB,EAChBC,mBAA4B,EAC5BC,SAA6B,EACvB;EACN,MAAMC,OAAO,GACXF,mBAAmB,IACnB,CAAC,CAACD,OAAO,CAACI,YAAY,CAAC,YAAY,CAAC,IACpC,CAAC,CAACJ,OAAO,CAACI,YAAY,CAAC,iBAAiB,CAAC;EAE3C,MAAMC,IAAI,GAAGH,SAAS,KAAK,OAAO,GAAG,OAAO,GAAG,QAAQ;EACvD,MAAMI,KAAK,GAAGJ,SAAS,KAAK,OAAO,GAAG,GAAG,GAAG,GAAG;EAE/CK,IAAI,CACF,IAAIF,IAAI,CAAA,gEAAA,CAAkE,GACxE,CAAA,sCAAA,EAAyCC,KAAK,yBAAyB,GACvE,CAAA,sCAAA,EAAyCD,IAAI,CAAA,uBAAA,CAAyB,GACtE,oEAAoE,GACpE,CAAA,kBAAA,EAAqBC,KAAK,CAAA,yBAAA,CAA2B,EACvDH,OAAO,EACP;IAAEK,EAAE,EAAE,YAAYN,SAAS,CAAA,wBAAA;AAA2B,GACxD,CAAC;AACH;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom-
|
|
1
|
+
{"version":3,"file":"dom-CbIZhRH4.js","sources":["../src/-private/dom.ts"],"sourcesContent":["import { getOwner } from '@ember/owner';\n\nexport function getDOM(context: object): Document | null {\n if (typeof document !== 'undefined') {\n return document;\n }\n\n const container = getOwner(context);\n if (!container) {\n return null;\n }\n const documentService = container.lookup('service:-document');\n\n if (documentService) {\n return documentService as Document;\n }\n return null;\n}\n\nfunction childNodesOfElement(\n element: Node | Element | null | undefined\n): (Node | Element)[] {\n if (!element) {\n return [];\n }\n\n const children = [];\n let child = element.firstChild;\n while (child) {\n children.push(child);\n child = child.nextSibling;\n }\n return children;\n}\n\n// eslint-disable-next-line no-control-regex\nconst CONTROL_CHARACTERS = /[\\u0000-\\u001f\\u007f]/g;\n\n/**\n * Escapes a value for use inside a *quoted* attribute selector.\n *\n * Values reaching here come from consumers — `Portal @target=\"#some-id\"`, a\n * portal target name — and an id is only required to be non-empty and free of\n * whitespace, so plenty of legal ids (`1foo`, `user.email`, `a:b`) are not\n * valid CSS identifiers. Interpolating them raw either throws a `SyntaxError`\n * and takes the render down, or, for a crafted value like\n * `x], [data-portal-target`, closes the predicate and matches something else\n * entirely.\n *\n * `CSS.escape` would also work here, but it escapes for the *identifier*\n * grammar while every call site interpolates into a *quoted string*\n * (`[attr=\"…\"]`). Two escapers for two grammars in one function is a trap\n * even though both happen to round-trip, and `CSS.escape` is a browser global\n * this module cannot rely on — it also runs against the `-document` service\n * when the app is prerendered. So there is one hand-rolled escaper, complete\n * for the quoted-string position and exercised by every caller on every\n * platform:\n *\n * - `\"` and `\\` are escaped with a backslash; they are the only characters a\n * quoted string cannot carry literally.\n * - Control characters — newline (`\\a`), carriage return (`\\d`), form feed\n * (`\\c`) among them — cannot appear literally in a CSS string either, and\n * get the hex escape the grammar defines, always with the terminating space\n * so the following character is never absorbed into the escape. Substituting\n * a different character for them (a space, say) would silently query for a\n * *different* value and match the wrong element, or none, with no error.\n */\nfunction escapeAttributeValue(value: string): string {\n return value\n .replace(/[\"\\\\]/g, '\\\\$&')\n .replace(\n CONTROL_CHARACTERS,\n (char) => `\\\\${char.charCodeAt(0).toString(16)} `\n );\n}\n\nexport function getElementById(\n doc: Document | Element,\n id: string\n): null | Element {\n // `Document` (and the `-document` service standing in for it) can answer\n // this without a selector at all, which sidesteps escaping entirely.\n // `Element` has no `getElementById`, so those callers keep the selector and\n // node-walking paths below.\n //\n // Intentional asymmetry with `getElementByAttribute`: an empty id is *no id*\n // here (`@target=\"#\"` must resolve to nothing rather than to whichever\n // element happens to carry an `id` first), while an empty value passed to\n // `getElementByAttribute` is a value like any other and is matched\n // literally. Both receivers are reachable, so the two exports disagree by\n // design, not by oversight.\n if (typeof (doc as Document).getElementById === 'function') {\n return id ? (doc as Document).getElementById(id) : null;\n }\n\n return getElementByAttribute(doc, 'id', id);\n}\n\nexport function getElementByAttribute(\n doc: Document | Element,\n attribute: string,\n value: string | undefined = undefined\n): null | Element {\n // Only an omitted value means \"any element carrying this attribute\". An\n // empty string is a value like any other and is matched literally —\n // otherwise `@target=\"#\"` would portal into whatever element happens to\n // carry an `id` first.\n const hasValue = typeof value !== 'undefined';\n\n if (doc.querySelector) {\n if (hasValue) {\n return doc.querySelector(\n `[${attribute}=\"${escapeAttributeValue(value as string)}\"]`\n );\n } else {\n return doc.querySelector(`[${attribute}]`);\n }\n }\n\n let nodes = childNodesOfElement(doc);\n let node;\n\n while (nodes.length) {\n node = nodes.shift();\n\n if (node && isElement(node)) {\n if (hasValue && node.getAttribute(attribute) === value) {\n return node as Element;\n } else if (!hasValue && node.getAttribute(attribute)) {\n return node as Element;\n }\n }\n\n nodes = childNodesOfElement(node).concat(nodes);\n }\n\n return null;\n}\n\nfunction isElement(el: Node | Element): el is Element {\n // @ts-expect-error checking if is an element\n return typeof el.getAttribute == 'function';\n}\n"],"names":["getDOM","context","document","container","getOwner","documentService","lookup","childNodesOfElement","element","children","child","firstChild","push","nextSibling","CONTROL_CHARACTERS","escapeAttributeValue","value","replace","char","charCodeAt","toString","getElementById","doc","id","getElementByAttribute","attribute","undefined","hasValue","querySelector","nodes","node","length","shift","isElement","getAttribute","concat","el"],"mappings":";;AAEO,SAASA,MAAMA,CAACC,OAAe,EAAmB;AACvD,EAAA,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;AACnC,IAAA,OAAOA,QAAQ;AACjB,EAAA;AAEA,EAAA,MAAMC,SAAS,GAAGC,QAAQ,CAACH,OAAO,CAAC;EACnC,IAAI,CAACE,SAAS,EAAE;AACd,IAAA,OAAO,IAAI;AACb,EAAA;AACA,EAAA,MAAME,eAAe,GAAGF,SAAS,CAACG,MAAM,CAAC,mBAAmB,CAAC;AAE7D,EAAA,IAAID,eAAe,EAAE;AACnB,IAAA,OAAOA,eAAe;AACxB,EAAA;AACA,EAAA,OAAO,IAAI;AACb;AAEA,SAASE,mBAAmBA,CAC1BC,OAA0C,EACtB;EACpB,IAAI,CAACA,OAAO,EAAE;AACZ,IAAA,OAAO,EAAE;AACX,EAAA;EAEA,MAAMC,QAAQ,GAAG,EAAE;AACnB,EAAA,IAAIC,KAAK,GAAGF,OAAO,CAACG,UAAU;AAC9B,EAAA,OAAOD,KAAK,EAAE;AACZD,IAAAA,QAAQ,CAACG,IAAI,CAACF,KAAK,CAAC;IACpBA,KAAK,GAAGA,KAAK,CAACG,WAAW;AAC3B,EAAA;AACA,EAAA,OAAOJ,QAAQ;AACjB;;AAEA;AACA,MAAMK,kBAAkB,GAAG,wBAAwB;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,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AAI,GAAGD,KAAK,CAACG,KAAK,EAAE;AAEpB,IAAA,IAAIF,IAAI,IAAIG,SAAS,CAACH,IAAI,CAAC,EAAE;MAC3B,IAAIH,QAAQ,IAAIG,IAAI,CAACI,YAAY,CAACT,SAAS,CAAC,KAAKT,KAAK,EAAE;AACtD,QAAA,OAAOc,IAAI;MACb,CAAC,MAAM,IAAI,CAACH,QAAQ,IAAIG,IAAI,CAACI,YAAY,CAACT,SAAS,CAAC,EAAE;AACpD,QAAA,OAAOK,IAAI;AACb,MAAA;AACF,IAAA;IAEAD,KAAK,GAAGtB,mBAAmB,CAACuB,IAAI,CAAC,CAACK,MAAM,CAACN,KAAK,CAAC;AACjD,EAAA;AAEA,EAAA,OAAO,IAAI;AACb;AAEA,SAASI,SAASA,CAACG,EAAkB,EAAiB;AACpD;AACA,EAAA,OAAO,OAAOA,EAAE,CAACF,YAAY,IAAI,UAAU;AAC7C;;"}
|
|
@@ -60,4 +60,4 @@ const MenuIcon = setComponentTemplate(precompileTemplate("<svg xmlns=\"http://ww
|
|
|
60
60
|
}), templateOnly());
|
|
61
61
|
|
|
62
62
|
export { ColumnVisibilityIcon as C, EllipsisHorizontalIcon as E, IconChevronUpDown as I, MenuIcon as M, SidebarRightIcon as S, ChevronDownIcon as a, ChevronUpIcon as b, ChevronRightIcon as c, ChevronLeftIcon as d, IconCalendar as e, SidebarLeftIcon as f, ChevronDoubleRightIcon as g, ChevronDoubleLeftIcon as h, IconDanger as i, IconWarning as j, IconSuccess as k, IconInfo as l };
|
|
63
|
-
//# sourceMappingURL=icons-
|
|
63
|
+
//# sourceMappingURL=icons-DqlDWFrr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons-55dthVFk.js","sources":["../src/-private/icons.gts"],"sourcesContent":["/**\n * Icon components shared across Frontile components (buttons, forms,\n * disclosure, navigation, collections, status/notifications). Kept in one\n * place to avoid duplicating the same SVG in multiple component folders.\n */\nimport type { TOC } from '@ember/component/template-only';\n\nexport interface IconSignature {\n Element: SVGElement;\n}\n\nexport const ChevronDownIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronUpIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M15.75 19.5 8.25 12l7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m8.25 4.5 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const IconChevronUpDown: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9\"\n />\n </svg>\n</template>;\n\nexport const IconCalendar: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0V11.25A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"\n />\n </svg>\n</template>;\n\nexport const ColumnVisibilityIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\"\n />\n </svg>\n</template>;\n\nexport const IconInfo: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"info\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M11.25 11.25h.75v4.5h.75M12 8.25h.008v.008H12V8.25ZM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconSuccess: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"success\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconWarning: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"warning\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z\"\n />\n </svg>\n</template>;\n\nexport const IconDanger: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"danger\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const EllipsisHorizontalIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"\n />\n </svg>\n</template>;\n\nexport const SidebarLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M9 4v16\" />\n </svg>\n</template>;\n\nexport const SidebarRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M15 4v16\" />\n </svg>\n</template>;\n\nexport const MenuIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path d=\"M4 6h16M4 12h16M4 18h16\" />\n </svg>\n</template>;\n"],"names":["ChevronDownIcon","setComponentTemplate","precompileTemplate","strictMode","templateOnly","ChevronUpIcon","ChevronLeftIcon","ChevronRightIcon","ChevronDoubleLeftIcon","ChevronDoubleRightIcon","IconChevronUpDown","IconCalendar","ColumnVisibilityIcon","IconInfo","IconSuccess","IconWarning","IconDanger","EllipsisHorizontalIcon","SidebarLeftIcon","SidebarRightIcon","MenuIcon"],"mappings":";;;;AAAA;;;;;MAWaA,eAAqB,GAAAC,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGC,aAAmB,GAAAJ,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBjD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGE,eAAqB,GAAAL,oBAAA,CAAiBC,kBAAA,CAAA,yQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EA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AA;MAEGa,sBAA4B,GAAAhB,oBAAA,CAAiBC,kBAAA,CAAA,wZAAA,EAkB1D;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGc,eAAqB,GAAAjB,oBAAA,CAAiBC,kBAAA,CAAA,8UAAA,EAiBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGe,gBAAsB,GAAAlB,oBAAA,CAAiBC,kBAAA,CAAA,+UAAA,EAiBpD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGgB,QAAc,GAAAnB,oBAAA,CAAiBC,kBAAA,CAAA,8RAAA,EAgB5C;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
|
|
1
|
+
{"version":3,"file":"icons-DqlDWFrr.js","sources":["../src/-private/icons.gts"],"sourcesContent":["/**\n * Icon components shared across Frontile components (buttons, forms,\n * disclosure, navigation, collections, status/notifications). Kept in one\n * place to avoid duplicating the same SVG in multiple component folders.\n */\nimport type { TOC } from '@ember/component/template-only';\n\nexport interface IconSignature {\n Element: SVGElement;\n}\n\nexport const ChevronDownIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronUpIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M15.75 19.5 8.25 12l7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m8.25 4.5 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const IconChevronUpDown: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9\"\n />\n </svg>\n</template>;\n\nexport const IconCalendar: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0V11.25A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"\n />\n </svg>\n</template>;\n\nexport const ColumnVisibilityIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\"\n />\n </svg>\n</template>;\n\nexport const IconInfo: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"info\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M11.25 11.25h.75v4.5h.75M12 8.25h.008v.008H12V8.25ZM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconSuccess: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"success\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconWarning: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"warning\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z\"\n />\n </svg>\n</template>;\n\nexport const IconDanger: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"danger\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const EllipsisHorizontalIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"\n />\n </svg>\n</template>;\n\nexport const SidebarLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M9 4v16\" />\n </svg>\n</template>;\n\nexport const SidebarRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M15 4v16\" />\n </svg>\n</template>;\n\nexport const MenuIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path d=\"M4 6h16M4 12h16M4 18h16\" />\n </svg>\n</template>;\n"],"names":["ChevronDownIcon","setComponentTemplate","precompileTemplate","strictMode","templateOnly","ChevronUpIcon","ChevronLeftIcon","ChevronRightIcon","ChevronDoubleLeftIcon","ChevronDoubleRightIcon","IconChevronUpDown","IconCalendar","ColumnVisibilityIcon","IconInfo","IconSuccess","IconWarning","IconDanger","EllipsisHorizontalIcon","SidebarLeftIcon","SidebarRightIcon","MenuIcon"],"mappings":";;;;AAAA;;;;;MAWaA,eAAqB,GAAAC,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGC,aAAmB,GAAAJ,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBjD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGE,eAAqB,GAAAL,oBAAA,CAAiBC,kBAAA,CAAA,yQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGG,gBAAsB,GAAAN,oBAAA,CAAiBC,kBAAA,CAAA,uQAAA,EAgBpD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGI,qBAA2B,GAAAP,oBAAA,CAAiBC,kBAAA,CAAA,8RAAA,EAgBzD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGK,sBAA4B,GAAAR,oBAAA,CAAiBC,kBAAA,CAAA,4RAAA,EAgB1D;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGM,iBAAuB,GAAAT,oBAAA,CAAiBC,kBAAA,CAAA,+RAAA,EAgBrD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGO,YAAkB,GAAAV,oBAAA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|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Button } from './components/buttons/button.js';
|
|
2
2
|
export { CloseButton } from './components/buttons/close-button.js';
|
|
3
|
+
export { IconButton } from './components/buttons/icon-button.js';
|
|
3
4
|
export { ToggleButton } from './components/buttons/toggle-button.js';
|
|
4
5
|
export { ButtonGroup } from './components/buttons/button-group.js';
|
|
5
6
|
export { Chip } from './components/buttons/chip.js';
|
|
@@ -58,9 +59,11 @@ export { Badge } from './components/status/badge.js';
|
|
|
58
59
|
export { ProgressBar } from './components/status/progress-bar.js';
|
|
59
60
|
import 'focus-visible/dist/focus-visible.js';
|
|
60
61
|
export { Avatar } from './components/utilities/avatar.js';
|
|
62
|
+
export { Icon } from './components/utilities/icon.js';
|
|
61
63
|
export { VisuallyHidden } from './components/utilities/visually-hidden.js';
|
|
62
64
|
export { Collapsible } from './components/utilities/collapsible.js';
|
|
63
65
|
export { Divider } from './components/utilities/divider.js';
|
|
66
|
+
export { Card } from './components/utilities/card.js';
|
|
64
67
|
export { Kbd } from './components/utilities/kbd.js';
|
|
65
68
|
export { isApplePlatform, parseKeys, resolveKbdPlatform, setKbdPlatform } from './utils/keys.js';
|
|
66
69
|
export { Skeleton } from './components/utilities/skeleton.js';
|
|
@@ -88,9 +91,9 @@ export { BreadcrumbsItem } from './components/navigation/breadcrumbs/item.js';
|
|
|
88
91
|
export { BreadcrumbsEllipsis } from './components/navigation/breadcrumbs/ellipsis.js';
|
|
89
92
|
export { Accordion } from './components/disclosure/accordion/accordion.js';
|
|
90
93
|
export { AccordionItem } from './components/disclosure/accordion/item.js';
|
|
91
|
-
import './manager-
|
|
94
|
+
import './manager-DFO_x6Jr.js';
|
|
92
95
|
import '@ember/service';
|
|
93
|
-
export { N as NotificationCard } from './notification-card-
|
|
96
|
+
export { N as NotificationCard } from './notification-card-C4mlc9Ac.js';
|
|
94
97
|
export { NotificationsContainer } from './components/notifications/notifications-container.js';
|
|
95
98
|
export { AppLayoutState } from './components/layout/app-layout-state.js';
|
|
96
99
|
export { AppLayout } from './components/layout/app-layout.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tracked } from '@glimmer/tracking';
|
|
2
2
|
import { deprecate, assert } from '@ember/debug';
|
|
3
3
|
import { cancel, later } from '@ember/runloop';
|
|
4
|
-
import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-
|
|
4
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
5
5
|
import { getOwner } from '@ember/owner';
|
|
6
6
|
import { isDestroyed } from '@ember/destroyable';
|
|
7
7
|
|
|
@@ -379,4 +379,4 @@ class NotificationsManager {
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
export { Notification as N, Timer as T, NotificationsManager as a };
|
|
382
|
-
//# sourceMappingURL=manager-
|
|
382
|
+
//# sourceMappingURL=manager-DFO_x6Jr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager-Dge4r8Vn.js","sources":["../src/-private/timer.ts","../src/-private/get-config.ts","../src/-private/notification.ts","../src/-private/manager.ts"],"sourcesContent":["import { tracked } from '@glimmer/tracking';\nimport { later, cancel } from '@ember/runloop';\nimport type { Timer as EmberTimer } from '@ember/runloop';\n\nexport default class Timer {\n @tracked remaining: number;\n @tracked isRunning = true;\n\n readonly onFinish: () => void;\n private timer?: EmberTimer;\n private start!: number;\n\n constructor(duration: number, onFinish: () => void) {\n this.remaining = duration;\n this.onFinish = onFinish;\n this.setup();\n }\n\n clear = (): void => {\n this.isRunning = false;\n\n if (this.timer) {\n cancel(this.timer);\n }\n };\n\n pause = (): void => {\n // Pausing an already paused timer would subtract the elapsed time twice,\n // eventually driving `remaining` to zero or below.\n if (!this.isRunning) {\n return;\n }\n\n this.clear();\n this.remaining = Math.max(0, this.remaining - (Date.now() - this.start));\n };\n\n resume = (): void => {\n // Already counting down; resuming again would restart the remaining time.\n if (this.isRunning) {\n return;\n }\n\n this.clear();\n this.setup();\n };\n\n private setup(): void {\n this.start = Date.now();\n this.isRunning = true;\n\n this.timer = later(\n this,\n () => {\n this.onFinish();\n this.isRunning = false;\n },\n this.remaining\n );\n }\n}\n","import type { DefaultConfig } from './types';\n\nexport function getConfigOption<T extends keyof DefaultConfig>(\n config: DefaultConfig,\n key: T,\n defaultValue: NonNullable<DefaultConfig[T]>\n): NonNullable<DefaultConfig[T]> {\n const value = config[key];\n\n if (value === undefined) {\n return defaultValue;\n }\n\n return value;\n}\n","import { tracked } from '@glimmer/tracking';\nimport { deprecate } from '@ember/debug';\nimport Timer from './timer';\nimport { getConfigOption } from './get-config';\nimport type {\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n NotificationAppearance,\n NotificationUpdate,\n CustomAction,\n DefaultConfig\n} from './types';\n\n/**\n * Normalise the two content forms into `{ title, description }`.\n */\nfunction toContent(content: string | NotificationContent): NotificationContent {\n return typeof content === 'string' ? { title: content } : content;\n}\n\n/**\n * Emit the shared deprecation notice and remap `error` onto `danger`. Used\n * for both the option-level and config-level `appearance` fallbacks in\n * `resolveStatus`, which must apply the same remap.\n */\nfunction mapAppearance(appearance: NotificationAppearance): NotificationStatus {\n deprecate(\n 'The `appearance` option for notifications is deprecated. Use `status` instead, and `danger` in place of `error`.',\n false,\n {\n id: 'frontile.notification-appearance',\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n\n if (appearance === 'error') return 'danger';\n // `info` folded into `primary` when the axis became `status`.\n if (appearance === 'info') return 'primary';\n\n return appearance;\n}\n\n/**\n * Resolve the notification status from the current option, the deprecated\n * `appearance` option, and the app config, in that order.\n */\nfunction resolveStatus(\n config: DefaultConfig,\n options: NotificationOptions\n): NotificationStatus {\n if (options.status) {\n return options.status;\n }\n\n if (options.appearance) {\n return mapAppearance(options.appearance);\n }\n\n if (config.status) {\n return config.status;\n }\n\n if (config.appearance) {\n return mapAppearance(config.appearance);\n }\n\n // `config.status`/`config.appearance` were already read directly above, so\n // there is no distinct config lookup left to fall back to.\n return 'neutral';\n}\n\nexport default class Notification<\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n> {\n /**\n * The title of the notification. Named `message` for backwards\n * compatibility with the original single-string API.\n */\n @tracked message: string;\n @tracked description?: string;\n @tracked status: NotificationStatus;\n @tracked allowClosing: boolean;\n @tracked isLoading: boolean;\n @tracked customActions?: CustomAction[];\n @tracked timer?: Timer;\n @tracked isRemoving = false;\n\n readonly transitionDuration: number;\n readonly duration: number;\n readonly hideIcon: boolean;\n readonly metadata?: TMetadata;\n\n constructor(\n config: DefaultConfig,\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ) {\n const { title, description } = toContent(content);\n\n this.message = title;\n // An object content form owns the description outright; the option is only\n // a convenience for the string form.\n this.description =\n typeof content === 'string' ? options.description : description;\n this.status = resolveStatus(config, options);\n this.isLoading = options.isLoading === true;\n this.hideIcon = options.hideIcon === true;\n this.customActions = options.customActions;\n this.duration =\n options.duration || getConfigOption(config, 'duration', 5000);\n this.transitionDuration =\n typeof options.transitionDuration !== 'undefined'\n ? options.transitionDuration\n : getConfigOption(config, 'transitionDuration', 200);\n this.metadata = options.metadata;\n this.allowClosing = options.allowClosing !== false;\n }\n\n /** Read-only alias of `message` — do not add a setter. */\n get title(): string {\n return this.message;\n }\n\n /**\n * @deprecated Read `status` instead.\n *\n * The return type is widened to include `'default'` because `default` is\n * new vocabulary introduced alongside this getter's deprecation — it has\n * no equivalent in the old `NotificationAppearance` names, so mapping it\n * onto `'info'` here would silently lie about the notification's status.\n * Everything else keeps the old four-value shape.\n */\n get appearance(): 'default' | 'info' | 'success' | 'warning' | 'error' {\n if (this.status === 'danger') return 'error';\n if (this.status === 'neutral') return 'default';\n if (this.status === 'primary') return 'info';\n\n return this.status;\n }\n\n /**\n * Mutate the notification in place. Used by `promise()` so a settling\n * promise swaps the content of the toast already on screen rather than\n * replacing it with a new one.\n */\n update(changes: NotificationUpdate): void {\n if (typeof changes.title !== 'undefined') {\n this.message = changes.title;\n }\n\n if (typeof changes.description !== 'undefined') {\n this.description = changes.description;\n }\n\n if (typeof changes.status !== 'undefined') {\n this.status = changes.status;\n }\n\n if (typeof changes.allowClosing !== 'undefined') {\n this.allowClosing = changes.allowClosing;\n }\n\n if (typeof changes.isLoading !== 'undefined') {\n this.isLoading = changes.isLoading;\n }\n }\n\n remove(): void {\n this.isRemoving = true;\n\n if (this.timer) {\n this.timer.clear();\n }\n }\n}\n","import Notification from './notification';\nimport Timer from './timer';\nimport { tracked } from '@glimmer/tracking';\nimport { assert } from '@ember/debug';\nimport { getConfigOption } from './get-config';\nimport { getOwner } from '@ember/owner';\nimport { isDestroyed } from '@ember/destroyable';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\nimport type {\n DefaultConfig,\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n PromiseMessage,\n PromiseNotificationOptions\n} from './types';\n\nfunction resolveMessage<T>(\n message: PromiseMessage<T>,\n value: T\n): NotificationContent {\n const resolved = typeof message === 'function' ? message(value) : message;\n return typeof resolved === 'string' ? { title: resolved } : resolved;\n}\n\n/**\n * Whether a notification should get an auto-removal timer, given its own\n * `preserve` option and the manager's config. An explicit `preserve` wins;\n * otherwise the config's `preserve` default applies. Either way, a\n * config-level `skipTimer: true` forces preservation — there's no timer to\n * skip if the notification is never auto-removed in the first place.\n *\n * Shared by `add()` and `promise()`'s settle path, which must apply this\n * decision identically.\n */\nfunction shouldAutoRemove(\n config: DefaultConfig,\n preserveOption: boolean | undefined\n): boolean {\n const preserve =\n typeof preserveOption === 'undefined'\n ? getConfigOption(config, 'preserve', false)\n : preserveOption;\n\n if (getConfigOption(config, 'skipTimer', false) === true) {\n return false;\n }\n\n return preserve === false;\n}\n\nexport default class NotificationsManager {\n @tracked notifications: Notification<Record<string, unknown>>[] = [];\n\n config: DefaultConfig = {};\n onRemove?: (notification: Notification<Record<string, unknown>>) => void;\n\n constructor(\n context: object,\n onRemove?: (notification: Notification<Record<string, unknown>>) => void\n ) {\n if (isDestroyed(context)) {\n return;\n }\n const owner = getOwner(context) as Owner;\n assert('NotificationsManager context must have an owner', owner);\n const configFactory = owner.factoryFor('config:environment');\n\n if (configFactory && configFactory.class) {\n this.config =\n (configFactory.class as never)['@frontile/notifications'] || {};\n }\n\n this.onRemove = onRemove;\n }\n\n add<TMetadata extends Record<string, unknown> = Record<string, unknown>>(\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ): Notification<TMetadata> {\n const notification = new Notification<TMetadata>(\n this.config,\n content,\n options\n );\n this.notifications = [...this.notifications, notification];\n\n if (shouldAutoRemove(this.config, options.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n return notification;\n }\n\n /**\n * Show a notification driven by a promise: a spinner while pending, then\n * the same notification mutated in place once it settles.\n *\n * Returns the original promise, so callers can still await it — and are\n * still responsible for handling its rejection.\n */\n promise<\n T,\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n >(\n promise: Promise<T>,\n options: PromiseNotificationOptions<T, TMetadata>\n ): Promise<T> {\n const { loading, success, error, ...rest } = options;\n\n const notification = this.add<TMetadata>(loading, {\n ...(rest as NotificationOptions<TMetadata>),\n preserve: true,\n allowClosing: false,\n isLoading: true\n });\n\n const settle = (\n content: NotificationContent,\n status: NotificationStatus\n ) => {\n // The user may have dismissed the toast before the promise settled; in\n // that case there is nothing left to update.\n if (notification.isRemoving) {\n return;\n }\n\n notification.update({\n ...content,\n // `update()` treats an absent key as \"leave this field alone\" (that\n // distinction is load-bearing elsewhere), so a settle message with\n // no description must still pass an explicit empty string here —\n // otherwise `resolveMessage`'s string-form `{ title }` (no\n // `description` key at all) would leave the loading phase's stale\n // description on screen instead of clearing it.\n description: content.description ?? '',\n status,\n allowClosing: true,\n isLoading: false\n });\n\n // `preserve: true` forces the loading phase to skip auto-dismissal\n // (there's nothing useful to time out on a spinner), but the docs\n // promise every option except `isLoading` carries through to the\n // settled notification — so a caller's own `preserve` must still be\n // honored here, not silently overridden by the loading phase's.\n if (shouldAutoRemove(this.config, rest.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n };\n\n promise.then(\n (value) => settle(resolveMessage(success, value), 'success'),\n (reason) => settle(resolveMessage(error, reason), 'danger')\n );\n\n return promise;\n }\n\n remove(notification?: Notification<Record<string, unknown>>): void {\n // Removal is single-shot: a notification already on its way out must not\n // schedule a second removal, otherwise `onRemove` is called twice for it.\n if (!notification || notification.isRemoving) {\n return;\n }\n\n notification.remove();\n\n // The unmount is timed to `transitionDuration` (default 200ms), which\n // governs the card's exit *opacity* fade. The exit *slide/scale*\n // transform, however, runs at a fixed 400ms (see notificationCard's\n // theme slots) independent of `transitionDuration`. At the defaults this\n // is invisible only because the opacity reaches 0 at the same moment the\n // card unmounts, hiding the fact that the slide is truncated mid-flight.\n // If the opacity duration is ever decoupled from this unmount timer (or\n // `transitionDuration` is changed without also revisiting the transform\n // duration), cards will visibly disappear mid-slide instead of fading\n // out cleanly. Keep the two in sync, or make the unmount wait for the\n // longer of the two durations.\n later(\n this,\n () => {\n this.notifications = this.notifications.filter((n) => {\n return n !== notification;\n });\n\n // Call the onRemove callback after the notification is actually removed\n if (this.onRemove) {\n this.onRemove(notification);\n }\n },\n notification.transitionDuration\n );\n }\n\n removeAll(): void {\n this.notifications.forEach((notification) => {\n this.remove(notification);\n });\n }\n\n private setupAutoRemoval(\n notification: Notification<Record<string, unknown>>,\n duration: number\n ): void {\n notification.timer = new Timer(duration, () => {\n this.remove(notification);\n });\n }\n}\n"],"names":["Timer","g","prototype","tracked","i","onFinish","timer","start","constructor","duration","remaining","setup","clear","isRunning","cancel","pause","Math","max","Date","now","resume","later","getConfigOption","config","key","defaultValue","value","undefined","toContent","content","title","mapAppearance","appearance","deprecate","id","until","for","since","available","enabled","resolveStatus","options","status","Notification","transitionDuration","hideIcon","metadata","description","message","isLoading","customActions","allowClosing","update","changes","remove","isRemoving","resolveMessage","resolved","shouldAutoRemove","preserveOption","preserve","NotificationsManager","onRemove","context","isDestroyed","owner","getOwner","assert","configFactory","factoryFor","class","add","notification","notifications","setupAutoRemoval","promise","loading","success","error","rest","settle","then","reason","filter","n","removeAll","forEach"],"mappings":";;;;;;;AAIe,MAAMA,KAAK,CAAC;AAAA,EAAA;IAAAC,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CACxBC,OAAO,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAA,MAAA;AAAA,EAAA;IAAAH,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CACPC,OAAO,CAAA,EAAA,YAAA;AAAA,MAAA,OAAa,IAAI;AAAA,IAAA,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAA,MAAA;EAEhBC,QAAQ;EACTC,KAAK;EACLC,KAAK;AAEbC,EAAAA,WAAWA,CAACC,QAAgB,EAAEJ,QAAoB,EAAE;IAClD,IAAI,CAACK,SAAS,GAAGD,QAAQ;IACzB,IAAI,CAACJ,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACM,KAAK,EAAE;AACd,EAAA;EAEAC,KAAK,GAAGA,MAAY;IAClB,IAAI,CAACC,SAAS,GAAG,KAAK;IAEtB,IAAI,IAAI,CAACP,KAAK,EAAE;AACdQ,MAAAA,MAAM,CAAC,IAAI,CAACR,KAAK,CAAC;AACpB,IAAA;E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YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AAEQE,EAAAA,gBAAgBA,CACtBF,YAAmD,EACnD/D,QAAgB,EACV;IACN+D,YAAY,CAAClE,KAAK,GAAG,IAAIN,KAAK,CAACS,QAAQ,EAAE,MAAM;AAC7C,MAAA,IAAI,CAAC6C,MAAM,CAACkB,YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AACF;;"}
|
|
1
|
+
{"version":3,"file":"manager-DFO_x6Jr.js","sources":["../src/-private/timer.ts","../src/-private/get-config.ts","../src/-private/notification.ts","../src/-private/manager.ts"],"sourcesContent":["import { tracked } from '@glimmer/tracking';\nimport { later, cancel } from '@ember/runloop';\nimport type { Timer as EmberTimer } from '@ember/runloop';\n\nexport default class Timer {\n @tracked remaining: number;\n @tracked isRunning = true;\n\n readonly onFinish: () => void;\n private timer?: EmberTimer;\n private start!: number;\n\n constructor(duration: number, onFinish: () => void) {\n this.remaining = duration;\n this.onFinish = onFinish;\n this.setup();\n }\n\n clear = (): void => {\n this.isRunning = false;\n\n if (this.timer) {\n cancel(this.timer);\n }\n };\n\n pause = (): void => {\n // Pausing an already paused timer would subtract the elapsed time twice,\n // eventually driving `remaining` to zero or below.\n if (!this.isRunning) {\n return;\n }\n\n this.clear();\n this.remaining = Math.max(0, this.remaining - (Date.now() - this.start));\n };\n\n resume = (): void => {\n // Already counting down; resuming again would restart the remaining time.\n if (this.isRunning) {\n return;\n }\n\n this.clear();\n this.setup();\n };\n\n private setup(): void {\n this.start = Date.now();\n this.isRunning = true;\n\n this.timer = later(\n this,\n () => {\n this.onFinish();\n this.isRunning = false;\n },\n this.remaining\n );\n }\n}\n","import type { DefaultConfig } from './types';\n\nexport function getConfigOption<T extends keyof DefaultConfig>(\n config: DefaultConfig,\n key: T,\n defaultValue: NonNullable<DefaultConfig[T]>\n): NonNullable<DefaultConfig[T]> {\n const value = config[key];\n\n if (value === undefined) {\n return defaultValue;\n }\n\n return value;\n}\n","import { tracked } from '@glimmer/tracking';\nimport { deprecate } from '@ember/debug';\nimport Timer from './timer';\nimport { getConfigOption } from './get-config';\nimport type {\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n NotificationAppearance,\n NotificationUpdate,\n CustomAction,\n DefaultConfig\n} from './types';\n\n/**\n * Normalise the two content forms into `{ title, description }`.\n */\nfunction toContent(content: string | NotificationContent): NotificationContent {\n return typeof content === 'string' ? { title: content } : content;\n}\n\n/**\n * Emit the shared deprecation notice and remap `error` onto `danger`. Used\n * for both the option-level and config-level `appearance` fallbacks in\n * `resolveStatus`, which must apply the same remap.\n */\nfunction mapAppearance(appearance: NotificationAppearance): NotificationStatus {\n deprecate(\n 'The `appearance` option for notifications is deprecated. Use `status` instead, and `danger` in place of `error`.',\n false,\n {\n id: 'frontile.notification-appearance',\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n\n if (appearance === 'error') return 'danger';\n // `info` folded into `primary` when the axis became `status`.\n if (appearance === 'info') return 'primary';\n\n return appearance;\n}\n\n/**\n * Resolve the notification status from the current option, the deprecated\n * `appearance` option, and the app config, in that order.\n */\nfunction resolveStatus(\n config: DefaultConfig,\n options: NotificationOptions\n): NotificationStatus {\n if (options.status) {\n return options.status;\n }\n\n if (options.appearance) {\n return mapAppearance(options.appearance);\n }\n\n if (config.status) {\n return config.status;\n }\n\n if (config.appearance) {\n return mapAppearance(config.appearance);\n }\n\n // `config.status`/`config.appearance` were already read directly above, so\n // there is no distinct config lookup left to fall back to.\n return 'neutral';\n}\n\nexport default class Notification<\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n> {\n /**\n * The title of the notification. Named `message` for backwards\n * compatibility with the original single-string API.\n */\n @tracked message: string;\n @tracked description?: string;\n @tracked status: NotificationStatus;\n @tracked allowClosing: boolean;\n @tracked isLoading: boolean;\n @tracked customActions?: CustomAction[];\n @tracked timer?: Timer;\n @tracked isRemoving = false;\n\n readonly transitionDuration: number;\n readonly duration: number;\n readonly hideIcon: boolean;\n readonly metadata?: TMetadata;\n\n constructor(\n config: DefaultConfig,\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ) {\n const { title, description } = toContent(content);\n\n this.message = title;\n // An object content form owns the description outright; the option is only\n // a convenience for the string form.\n this.description =\n typeof content === 'string' ? options.description : description;\n this.status = resolveStatus(config, options);\n this.isLoading = options.isLoading === true;\n this.hideIcon = options.hideIcon === true;\n this.customActions = options.customActions;\n this.duration =\n options.duration || getConfigOption(config, 'duration', 5000);\n this.transitionDuration =\n typeof options.transitionDuration !== 'undefined'\n ? options.transitionDuration\n : getConfigOption(config, 'transitionDuration', 200);\n this.metadata = options.metadata;\n this.allowClosing = options.allowClosing !== false;\n }\n\n /** Read-only alias of `message` — do not add a setter. */\n get title(): string {\n return this.message;\n }\n\n /**\n * @deprecated Read `status` instead.\n *\n * The return type is widened to include `'default'` because `default` is\n * new vocabulary introduced alongside this getter's deprecation — it has\n * no equivalent in the old `NotificationAppearance` names, so mapping it\n * onto `'info'` here would silently lie about the notification's status.\n * Everything else keeps the old four-value shape.\n */\n get appearance(): 'default' | 'info' | 'success' | 'warning' | 'error' {\n if (this.status === 'danger') return 'error';\n if (this.status === 'neutral') return 'default';\n if (this.status === 'primary') return 'info';\n\n return this.status;\n }\n\n /**\n * Mutate the notification in place. Used by `promise()` so a settling\n * promise swaps the content of the toast already on screen rather than\n * replacing it with a new one.\n */\n update(changes: NotificationUpdate): void {\n if (typeof changes.title !== 'undefined') {\n this.message = changes.title;\n }\n\n if (typeof changes.description !== 'undefined') {\n this.description = changes.description;\n }\n\n if (typeof changes.status !== 'undefined') {\n this.status = changes.status;\n }\n\n if (typeof changes.allowClosing !== 'undefined') {\n this.allowClosing = changes.allowClosing;\n }\n\n if (typeof changes.isLoading !== 'undefined') {\n this.isLoading = changes.isLoading;\n }\n }\n\n remove(): void {\n this.isRemoving = true;\n\n if (this.timer) {\n this.timer.clear();\n }\n }\n}\n","import Notification from './notification';\nimport Timer from './timer';\nimport { tracked } from '@glimmer/tracking';\nimport { assert } from '@ember/debug';\nimport { getConfigOption } from './get-config';\nimport { getOwner } from '@ember/owner';\nimport { isDestroyed } from '@ember/destroyable';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\nimport type {\n DefaultConfig,\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n PromiseMessage,\n PromiseNotificationOptions\n} from './types';\n\nfunction resolveMessage<T>(\n message: PromiseMessage<T>,\n value: T\n): NotificationContent {\n const resolved = typeof message === 'function' ? message(value) : message;\n return typeof resolved === 'string' ? { title: resolved } : resolved;\n}\n\n/**\n * Whether a notification should get an auto-removal timer, given its own\n * `preserve` option and the manager's config. An explicit `preserve` wins;\n * otherwise the config's `preserve` default applies. Either way, a\n * config-level `skipTimer: true` forces preservation — there's no timer to\n * skip if the notification is never auto-removed in the first place.\n *\n * Shared by `add()` and `promise()`'s settle path, which must apply this\n * decision identically.\n */\nfunction shouldAutoRemove(\n config: DefaultConfig,\n preserveOption: boolean | undefined\n): boolean {\n const preserve =\n typeof preserveOption === 'undefined'\n ? getConfigOption(config, 'preserve', false)\n : preserveOption;\n\n if (getConfigOption(config, 'skipTimer', false) === true) {\n return false;\n }\n\n return preserve === false;\n}\n\nexport default class NotificationsManager {\n @tracked notifications: Notification<Record<string, unknown>>[] = [];\n\n config: DefaultConfig = {};\n onRemove?: (notification: Notification<Record<string, unknown>>) => void;\n\n constructor(\n context: object,\n onRemove?: (notification: Notification<Record<string, unknown>>) => void\n ) {\n if (isDestroyed(context)) {\n return;\n }\n const owner = getOwner(context) as Owner;\n assert('NotificationsManager context must have an owner', owner);\n const configFactory = owner.factoryFor('config:environment');\n\n if (configFactory && configFactory.class) {\n this.config =\n (configFactory.class as never)['@frontile/notifications'] || {};\n }\n\n this.onRemove = onRemove;\n }\n\n add<TMetadata extends Record<string, unknown> = Record<string, unknown>>(\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ): Notification<TMetadata> {\n const notification = new Notification<TMetadata>(\n this.config,\n content,\n options\n );\n this.notifications = [...this.notifications, notification];\n\n if (shouldAutoRemove(this.config, options.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n return notification;\n }\n\n /**\n * Show a notification driven by a promise: a spinner while pending, then\n * the same notification mutated in place once it settles.\n *\n * Returns the original promise, so callers can still await it — and are\n * still responsible for handling its rejection.\n */\n promise<\n T,\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n >(\n promise: Promise<T>,\n options: PromiseNotificationOptions<T, TMetadata>\n ): Promise<T> {\n const { loading, success, error, ...rest } = options;\n\n const notification = this.add<TMetadata>(loading, {\n ...(rest as NotificationOptions<TMetadata>),\n preserve: true,\n allowClosing: false,\n isLoading: true\n });\n\n const settle = (\n content: NotificationContent,\n status: NotificationStatus\n ) => {\n // The user may have dismissed the toast before the promise settled; in\n // that case there is nothing left to update.\n if (notification.isRemoving) {\n return;\n }\n\n notification.update({\n ...content,\n // `update()` treats an absent key as \"leave this field alone\" (that\n // distinction is load-bearing elsewhere), so a settle message with\n // no description must still pass an explicit empty string here —\n // otherwise `resolveMessage`'s string-form `{ title }` (no\n // `description` key at all) would leave the loading phase's stale\n // description on screen instead of clearing it.\n description: content.description ?? '',\n status,\n allowClosing: true,\n isLoading: false\n });\n\n // `preserve: true` forces the loading phase to skip auto-dismissal\n // (there's nothing useful to time out on a spinner), but the docs\n // promise every option except `isLoading` carries through to the\n // settled notification — so a caller's own `preserve` must still be\n // honored here, not silently overridden by the loading phase's.\n if (shouldAutoRemove(this.config, rest.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n };\n\n promise.then(\n (value) => settle(resolveMessage(success, value), 'success'),\n (reason) => settle(resolveMessage(error, reason), 'danger')\n );\n\n return promise;\n }\n\n remove(notification?: Notification<Record<string, unknown>>): void {\n // Removal is single-shot: a notification already on its way out must not\n // schedule a second removal, otherwise `onRemove` is called twice for it.\n if (!notification || notification.isRemoving) {\n return;\n }\n\n notification.remove();\n\n // The unmount is timed to `transitionDuration` (default 200ms), which\n // governs the card's exit *opacity* fade. The exit *slide/scale*\n // transform, however, runs at a fixed 400ms (see notificationCard's\n // theme slots) independent of `transitionDuration`. At the defaults this\n // is invisible only because the opacity reaches 0 at the same moment the\n // card unmounts, hiding the fact that the slide is truncated mid-flight.\n // If the opacity duration is ever decoupled from this unmount timer (or\n // `transitionDuration` is changed without also revisiting the transform\n // duration), cards will visibly disappear mid-slide instead of fading\n // out cleanly. Keep the two in sync, or make the unmount wait for the\n // longer of the two durations.\n later(\n this,\n () => {\n this.notifications = this.notifications.filter((n) => {\n return n !== notification;\n });\n\n // Call the onRemove callback after the notification is actually removed\n if (this.onRemove) {\n this.onRemove(notification);\n }\n },\n notification.transitionDuration\n );\n }\n\n removeAll(): void {\n this.notifications.forEach((notification) => {\n this.remove(notification);\n });\n }\n\n private setupAutoRemoval(\n notification: Notification<Record<string, unknown>>,\n duration: number\n ): void {\n notification.timer = new Timer(duration, () => {\n this.remove(notification);\n });\n }\n}\n"],"names":["Timer","g","prototype","tracked","i","onFinish","timer","start","constructor","duration","remaining","setup","clear","isRunning","cancel","pause","Math","max","Date","now","resume","later","getConfigOption","config","key","defaultValue","value","undefined","toContent","content","title","mapAppearance","appearance","deprecate","id","until","for","since","available","enabled","resolveStatus","options","status","Notification","transitionDuration","hideIcon","metadata","description","message","isLoading","customActions","allowClosing","update","changes","remove","isRemoving","resolveMessage","resolved","shouldAutoRemove","preserveOption","preserve","NotificationsManager","onRemove","context","isDestroyed","owner","getOwner","assert","configFactory","factoryFor","class","add","notification","notifications","setupAutoRemoval","promise","loading","success","error","rest","settle","then","reason","filter","n","removeAll","forEach"],"mappings":";;;;;;;AAIe,MAAMA,KAAK,CAAC;AAAA,EAAA;IAAAC,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CACxBC,OAAO,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAA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YAAY,CAACjB,UAAU,EAAE;AAC5C,MAAA;AACF,IAAA;IAEAiB,YAAY,CAAClB,MAAM,EAAE;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACAjC,KAAK,CACH,IAAI,EACJ,MAAM;MACJ,IAAI,CAACoD,aAAa,GAAG,IAAI,CAACA,aAAa,CAACU,MAAM,CAAEC,CAAC,IAAK;QACpD,OAAOA,CAAC,KAAKZ,YAAY;AAC3B,MAAA,CAAC,CAAC;;AAEF;MACA,IAAI,IAAI,CAACV,QAAQ,EAAE;AACjB,QAAA,IAAI,CAACA,QAAQ,CAACU,YAAY,CAAC;AAC7B,MAAA;AACF,IAAA,CAAC,EACDA,YAAY,CAAC5B,kBACf,CAAC;AACH,EAAA;AAEAyC,EAAAA,SAASA,GAAS;AAChB,IAAA,IAAI,CAACZ,aAAa,CAACa,OAAO,CAAEd,YAAY,IAAK;AAC3C,MAAA,IAAI,CAAClB,MAAM,CAACkB,YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AAEQE,EAAAA,gBAAgBA,CACtBF,YAAmD,EACnD/D,QAAgB,EACV;IACN+D,YAAY,CAAClE,KAAK,GAAG,IAAIN,KAAK,CAACS,QAAQ,EAAE,MAAM;AAC7C,MAAA,IAAI,CAAC6C,MAAM,CAACkB,YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AACF;;"}
|
|
@@ -7,11 +7,11 @@ import { fn } from '@ember/helper';
|
|
|
7
7
|
import { CloseButton } from './components/buttons/close-button.js';
|
|
8
8
|
import { Button } from './components/buttons/button.js';
|
|
9
9
|
import { Spinner } from './components/utilities/spinner.js';
|
|
10
|
-
import { i as IconDanger, j as IconWarning, k as IconSuccess, l as IconInfo } from './icons-
|
|
10
|
+
import { i as IconDanger, j as IconWarning, k as IconSuccess, l as IconInfo } from './icons-DqlDWFrr.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 } from './runtime--fcdnjmJ-
|
|
14
|
+
import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-DOFHQ2m8.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* How much each card behind the front of the stack shrinks, as a fraction.
|
|
@@ -330,4 +330,4 @@ class NotificationCard extends Component {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
export { NotificationCard as N, NotificationStack as a };
|
|
333
|
-
//# sourceMappingURL=notification-card-
|
|
333
|
+
//# sourceMappingURL=notification-card-C4mlc9Ac.js.map
|