@mhmo91/schmancy 0.6.5 → 0.6.7
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/dist/area.cjs +1 -1
- package/dist/{area.component-DYj8MJ-j.cjs → area.component-BJbcvVaQ.cjs} +2 -2
- package/dist/{area.component-DYj8MJ-j.cjs.map → area.component-BJbcvVaQ.cjs.map} +1 -1
- package/dist/{area.component-D5fGMCQ0.js → area.component-C895jU0E.js} +4 -4
- package/dist/area.component-C895jU0E.js.map +1 -0
- package/dist/area.js +1 -1
- package/dist/{avatar-hD_7iDNG.cjs → avatar-BOl8StHd.cjs} +2 -2
- package/dist/{avatar-hD_7iDNG.cjs.map → avatar-BOl8StHd.cjs.map} +1 -1
- package/dist/{avatar-DxUugoH4.js → avatar-sdsp99GL.js} +5 -5
- package/dist/{avatar-DxUugoH4.js.map → avatar-sdsp99GL.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{email-recipients-xgsKEV8o.cjs → email-recipients-BYmTSDtV.cjs} +2 -2
- package/dist/{email-recipients-xgsKEV8o.cjs.map → email-recipients-BYmTSDtV.cjs.map} +1 -1
- package/dist/{email-recipients-BLPWWpKe.js → email-recipients-P8EhcYA5.js} +2 -2
- package/dist/{email-recipients-BLPWWpKe.js.map → email-recipients-P8EhcYA5.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/{notification-service-CkfzuKLt.cjs → notification-service-B3lp4l84.cjs} +2 -2
- package/dist/{notification-service-CkfzuKLt.cjs.map → notification-service-B3lp4l84.cjs.map} +1 -1
- package/dist/{notification-service-DScTRGR2.js → notification-service-F3EVrKii.js} +2 -2
- package/dist/{notification-service-DScTRGR2.js.map → notification-service-F3EVrKii.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +2 -2
- package/dist/{notify-D6TFWXaR.js → notify-CFOgWCLl.js} +2 -2
- package/dist/{notify-D6TFWXaR.js.map → notify-CFOgWCLl.js.map} +1 -1
- package/dist/{notify-BMn9w9sY.cjs → notify-CzAYDDsL.cjs} +2 -2
- package/dist/{notify-BMn9w9sY.cjs.map → notify-CzAYDDsL.cjs.map} +1 -1
- package/dist/{sheet-BBPCk0uk.js → sheet-CAdKgpXx.js} +2 -2
- package/dist/{sheet-BBPCk0uk.js.map → sheet-CAdKgpXx.js.map} +1 -1
- package/dist/{sheet-DRvh1uH2.cjs → sheet-CwSsed6P.cjs} +2 -2
- package/dist/{sheet-DRvh1uH2.cjs.map → sheet-CwSsed6P.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/package.json +1 -1
- package/dist/area.component-D5fGMCQ0.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-BJ6dVzPq.cjs");const n=require("./area.component-DYj8MJ-j.cjs"),t=require("./utils-C38P63L6.cjs");require("./autocomplete-zjn6pXaX.cjs");const r=require("./avatar-hD_7iDNG.cjs"),N=require("./boat-cnxxijmo.cjs");require("./spinner-BZZUer_X.cjs");const g=require("./icon-button-Cdft5ST_.cjs");require("./media-CHIfbKtP.cjs");const A=require("./checkbox-BO4BCypb.cjs"),i=require("./suggestion-chip-DK9DzPkI.cjs"),x=require("./input-chip-DcPs1RHP.cjs"),h=require("./code-preview-OcZ0Bj8f.cjs"),E=require("./payment-card-form-Cov5fmfm.cjs"),d=require("./date-range-BN34-Aw1.cjs"),B=require("./date-range-inline-CTS_b5LT.cjs"),s=require("./delay-pRkPf-u1.cjs"),F=require("./details-DMyjzl4C.cjs"),u=require("./dialog-content-DBSU0JAH.cjs"),f=require("./dialog-service-Bdaxn2t0.cjs"),b=require("./ripple-DqQrvaTe.cjs"),H=require("lit/directives/guard.js"),C=require("./discovery.service-BpGCuXPd.cjs");require("./divider-CRWuoZaX.cjs");const P=require("./dropdown-content-BnfFfIBY.cjs"),O=require("./timezone-DtVQwPS4.cjs");require("./form-BP7DDBtk.cjs"),require("./icon-vuGR6PEh.cjs");const j=require("./input-CTutyfwK.cjs"),m=require("./flex-D6XiBOTZ.cjs"),p=require("./list-C7rm-hrd.cjs"),o=require("./email-recipients-xgsKEV8o.cjs"),L=require("./map-B7v5XCcL.cjs");require("./menu-9XPYZwVz.cjs");const D=require("./navigation-rail-Cw1BQLk0.cjs"),y=require("./notification-service-CkfzuKLt.cjs"),q=require("./notify-BMn9w9sY.cjs");require("./option-Bfkerz4T.cjs"),require("./progress-Ce9glM8G.cjs");const T=require("./radio-button-D6ao2v-N.cjs"),V=require("./rxjs-utils.cjs");require("rxjs"),require("./index-CCi1otmh.cjs");const Y=require("./select-CoBvc63S.cjs");require("./sheet-DRvh1uH2.cjs");const S=require("./sheet.service-lSWe4XK5.cjs"),w=require("./slider-5j5w93Cb.cjs"),l=require("./schmancy-steps-container-C1NyZqJx.cjs"),a=require("./context-create-CA907mdD.cjs"),e=require("./selector-hook-BWMY8npH.cjs"),I=require("./surface-C5XXgsLy.cjs"),R=require("./table-C6k5_mBb.cjs");require("./tabs-compatibility-E6PF7hQz.cjs"),require("./textarea-Co6I_o3X.cjs");const z=require("./theme.interface-BMeNadVb.cjs"),c=require("./theme-controller-boat-DEEYmCYz.cjs"),M=require("./theme.events-Car6U_SQ.cjs");require("./theme-button-ThFGPN8O.cjs");const v=require("./tooltip-Bi0O1GC_.cjs"),k=require("./tree-DD5xQM9U.cjs"),G=require("./types.cjs"),W=require("./typewriter-ktB55ses.cjs"),$=require("./typography-V_yW7FVq.cjs"),K=require("./intersection-CVvaDv96.cjs"),_=require("./number-B7aCRYnH.cjs"),Q=require("./search-DWW8IoOp.cjs");exports.FINDING_MORTIES=n.FINDING_MORTIES,exports.HERE_RICKY=n.HERE_RICKY,exports.HISTORY_STRATEGY=n.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>n.SchmancyArea}),Object.defineProperty(exports,"SchmancyRoute",{enumerable:!0,get:()=>n.SchmancyRoute}),exports.area=n.area,exports.routerHistory=n.routerHistory,exports.buildQueryString=t.buildQueryString,exports.compareActiveRoutes=t.compareActiveRoutes,exports.compareCustomElementConstructors=t.compareCustomElementConstructors,exports.compareRouteActions=t.compareRouteActions,exports.createRouteCacheKey=t.createRouteCacheKey,exports.debounce=t.debounce,exports.decodeData=t.decodeData,exports.decodeRouteState=t.decodeRouteState,exports.deepMerge=t.deepMerge,exports.encodeData=t.encodeData,exports.encodeRouteState=t.encodeRouteState,exports.extractQueryParams=t.extractQueryParams,exports.getTagName=t.getTagName,exports.isObject=t.isObject,exports.lazy=t.lazy,exports.normalizeTagName=t.normalizeTagName,exports.sanitizeRouteState=t.sanitizeRouteState,exports.$drawer=r.$drawer,exports.HereMorty=r.HereMorty,Object.defineProperty(exports,"ScBadgeV2",{enumerable:!0,get:()=>r.ScBadgeV2}),Object.defineProperty(exports,"SchmancyAvatar",{enumerable:!0,get:()=>r.SchmancyAvatar}),Object.defineProperty(exports,"SchmancyBadgeV2",{enumerable:!0,get:()=>r.SchmancyBadgeV2}),Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>r.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=r.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>r.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=r.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=r.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>r.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=r.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=r.SchmancyContentDrawerSheetState,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>r.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=r.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=r.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationBar",{enumerable:!0,get:()=>r.SchmancyNavigationBar}),Object.defineProperty(exports,"SchmancyNavigationBarItem",{enumerable:!0,get:()=>r.SchmancyNavigationBarItem}),Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>r.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>r.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>r.SchmancyNavigationDrawerSidebar}),Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>r.SchmancyTeleportation}),exports.WhereAreYouRicky=r.WhereAreYouRicky,exports.schmancyContentDrawer=r.schmancyContentDrawer,exports.schmancyNavDrawer=r.schmancyNavDrawer,exports.teleport=r.teleport,Object.defineProperty(exports,"SchmancyBoat",{enumerable:!0,get:()=>N.SchmancyBoat}),Object.defineProperty(exports,"SchmancyButton",{enumerable:!0,get:()=>g.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>g.SchmnacyIconButton}),Object.defineProperty(exports,"SchmancyCheckbox",{enumerable:!0,get:()=>A.SchmancyCheckboxElement}),Object.defineProperty(exports,"SchmancyAssistChip",{enumerable:!0,get:()=>i.SchmancyAssistChip}),exports.SchmancyChip=i.SchmancyFilterChip,exports.SchmancyFilterChip=i.SchmancyFilterChip,Object.defineProperty(exports,"SchmancySuggestionChip",{enumerable:!0,get:()=>i.SchmancySuggestionChip}),Object.defineProperty(exports,"SchmancyInputChip",{enumerable:!0,get:()=>x.SchmancyInputChip}),Object.defineProperty(exports,"SchmancyCode",{enumerable:!0,get:()=>h.SchmancyCode}),Object.defineProperty(exports,"SchmancyCodeHighlight",{enumerable:!0,get:()=>h.SchmancyCode}),Object.defineProperty(exports,"SchmancyCodePreview",{enumerable:!0,get:()=>h.SchmancyCodePreview}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>E.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDateRange",{enumerable:!0,get:()=>d.SchmancyDateRange}),exports.validateInitialDateRange=d.validateInitialDateRange,Object.defineProperty(exports,"SchmancyDateRangeInline",{enumerable:!0,get:()=>B.SchmancyDateRangeInline}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>s.SchmancyDelay}),exports.delayContext=s.delayContext,Object.defineProperty(exports,"SchmancyDetails",{enumerable:!0,get:()=>F.SchmancyDetails}),Object.defineProperty(exports,"ConfirmDialog",{enumerable:!0,get:()=>u.ConfirmDialog}),Object.defineProperty(exports,"SchmancyDialog",{enumerable:!0,get:()=>u.SchmancyDialog}),Object.defineProperty(exports,"SchmancyDialogContent",{enumerable:!0,get:()=>u.SchmancyDialogContent}),exports.$dialog=f.$dialog,exports.DialogService=f.DialogService,exports.color=b.color,exports.fullHeight=b.fullHeight,exports.ripple=b.ripple,Object.defineProperty(exports,"guard",{enumerable:!0,get:()=>H.guard}),exports.discoverAnyComponent=C.discoverAnyComponent,exports.discoverComponent=C.discoverComponent,Object.defineProperty(exports,"SchmancyDropdown",{enumerable:!0,get:()=>P.SchmancyDropdown}),Object.defineProperty(exports,"SchmancyDropdownContent",{enumerable:!0,get:()=>P.SchmancyDropdownContent}),Object.defineProperty(exports,"SchmancyCountriesSelect",{enumerable:!0,get:()=>O.SchmancyCountriesSelect}),Object.defineProperty(exports,"SchmancyTimezonesSelect",{enumerable:!0,get:()=>O.SchmancyTimezonesSelect}),Object.defineProperty(exports,"SchmancyInput",{enumerable:!0,get:()=>j.SchmancyInput}),Object.defineProperty(exports,"SchmancyInputCompat",{enumerable:!0,get:()=>j.SchmancyInputCompat}),Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>m.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>m.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>m.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>m.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>p.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>p.SchmancyListItem}),exports.SchmancyListTypeContext=p.SchmancyListTypeContext,Object.defineProperty(exports,"SchmancyEmailEditor",{enumerable:!0,get:()=>o.SchmancyEmailEditor}),Object.defineProperty(exports,"SchmancyEmailLayoutSelector",{enumerable:!0,get:()=>o.SchmancyEmailLayoutSelector}),Object.defineProperty(exports,"SchmancyEmailRecipients",{enumerable:!0,get:()=>o.SchmancyEmailRecipients}),Object.defineProperty(exports,"SchmancyEmailViewer",{enumerable:!0,get:()=>o.SchmancyEmailViewer}),Object.defineProperty(exports,"SchmancyMailbox",{enumerable:!0,get:()=>o.SchmancyMailbox}),Object.defineProperty(exports,"SchmancyMap",{enumerable:!0,get:()=>L.SchmancyMap}),Object.defineProperty(exports,"SchmancyNavigationRail",{enumerable:!0,get:()=>D.SchmancyNavigationRail}),Object.defineProperty(exports,"SchmancyNavigationRailItem",{enumerable:!0,get:()=>D.SchmancyNavigationRailItem}),exports.$notify=y.$notify,exports.NotificationAudioService=y.NotificationAudioService,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>y.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationContainer",{enumerable:!0,get:()=>y.SchmancyNotificationContainer}),exports.notify=q.notify,exports.notifyProgress=q.notifyProgress,Object.defineProperty(exports,"RadioButton",{enumerable:!0,get:()=>T.RadioButton}),Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>T.RadioGroup}),exports.mutationObserver=V.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>Y.SchmancySelect}),exports.SchmancySheetPosition=S.SchmancySheetPosition,exports.SheetHereMorty=S.SheetHereMorty,exports.SheetWhereAreYouRicky=S.SheetWhereAreYouRicky,exports.sheet=S.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>w.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>w.SchmancySlider}),Object.defineProperty(exports,"SchmancyStep",{enumerable:!0,get:()=>l.SchmancyStep}),Object.defineProperty(exports,"SchmancyStepsContainer",{enumerable:!0,get:()=>l.SchmancyStepsContainer}),exports.StepsController=l.StepsController,exports.stepsContext=l.stepsContext,exports.BaseStore=a.BaseStore,exports.IndexedDBStorageManager=a.IndexedDBStorageManager,exports.LocalStorageManager=a.LocalStorageManager,exports.MemoryStorageManager=a.MemoryStorageManager,exports.SchmancyArrayStore=a.SchmancyArrayStore,exports.SchmancyStoreObject=a.SchmancyStoreObject,exports.SessionStorageManager=a.SessionStorageManager,exports.StoreError=a.StoreError,exports.createArrayContext=a.createArrayContext,exports.createContext=a.createContext,exports.createStorageManager=a.createStorageManager,exports.createTestArrayContext=a.createTestArrayContext,exports.compareValues=e.compareValues,exports.createCollectionSelector=e.createCollectionSelector,exports.createCompoundSelector=e.createCompoundSelector,exports.createCountSelector=e.createCountSelector,exports.createEntriesSelector=e.createEntriesSelector,exports.createFilterSelector=e.createFilterSelector,exports.createFindSelector=e.createFindSelector,exports.createItemSelector=e.createItemSelector,exports.createItemsSelector=e.createItemsSelector,exports.createKeysSelector=e.createKeysSelector,exports.createMapSelector=e.createMapSelector,exports.createOptimizedSelector=e.createOptimizedSelector,exports.createSelector=e.createSelector,exports.createSortSelector=e.createSortSelector,exports.filterArray=e.filterArray,exports.filterArrayItems=e.filterArrayItems,exports.filterMap=e.filterMap,exports.filterMapItems=e.filterMapItems,exports.getFieldValue=e.getFieldValue,exports.isArray=e.isArray,exports.isDate=e.isDate,exports.isIterable=e.isIterable,exports.isMap=e.isMap,exports.isNil=e.isNil,exports.isNumber=e.isNumber,exports.isPlainObject=e.isPlainObject,exports.isSet=e.isSet,exports.isString=e.isString,exports.select=e.select,exports.selectItem=e.selectItem,Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>I.SchmancySurface}),exports.SchmancySurfaceTypeContext=I.SchmancySurfaceTypeContext,Object.defineProperty(exports,"SchmancyDataTable",{enumerable:!0,get:()=>R.SchmancyDataTable}),Object.defineProperty(exports,"SchmancyTableRow",{enumerable:!0,get:()=>R.SchmancyTableRow}),exports.SchmancyTheme=z.SchmancyTheme,Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>c.SchmancyThemeComponent}),Object.defineProperty(exports,"SchmancyThemeController",{enumerable:!0,get:()=>c.SchmancyThemeController}),Object.defineProperty(exports,"SchmancyThemeControllerBoat",{enumerable:!0,get:()=>c.SchmancyThemeControllerBoat}),exports.createDarkTonalPaletteFromBaseColor=c.createDarkTonalPaletteFromBaseColor,exports.createLightTonalPaletteFromBaseColor=c.createLightTonalPaletteFromBaseColor,exports.formateTheme=c.formateTheme,exports.schmancyTheme=c.schmancyTheme,exports.tailwindStyles=c.tailwindStyles,exports.theme=c.theme,exports.themeContext=c.themeContext,exports.ThemeHereIAm=M.ThemeHereIAm,exports.ThemeWhereAreYou=M.ThemeWhereAreYou,Object.defineProperty(exports,"SchmancyTooltip",{enumerable:!0,get:()=>v.SchmancyTooltip}),exports.tooltip=v.tooltip,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>k.SchmancyTree}),exports.SchmancyEvents=G.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>W.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>$.SchmancyTypography}),exports.intersection$=K.intersection$,exports.Numbers=_.Numbers,exports.similarity=Q.similarity;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-BJ6dVzPq.cjs");const n=require("./area.component-BJbcvVaQ.cjs"),t=require("./utils-C38P63L6.cjs");require("./autocomplete-zjn6pXaX.cjs");const r=require("./avatar-BOl8StHd.cjs"),N=require("./boat-cnxxijmo.cjs");require("./spinner-BZZUer_X.cjs");const g=require("./icon-button-Cdft5ST_.cjs");require("./media-CHIfbKtP.cjs");const A=require("./checkbox-BO4BCypb.cjs"),i=require("./suggestion-chip-DK9DzPkI.cjs"),x=require("./input-chip-DcPs1RHP.cjs"),h=require("./code-preview-OcZ0Bj8f.cjs"),E=require("./payment-card-form-Cov5fmfm.cjs"),d=require("./date-range-BN34-Aw1.cjs"),B=require("./date-range-inline-CTS_b5LT.cjs"),s=require("./delay-pRkPf-u1.cjs"),F=require("./details-DMyjzl4C.cjs"),u=require("./dialog-content-DBSU0JAH.cjs"),f=require("./dialog-service-Bdaxn2t0.cjs"),b=require("./ripple-DqQrvaTe.cjs"),H=require("lit/directives/guard.js"),C=require("./discovery.service-BpGCuXPd.cjs");require("./divider-CRWuoZaX.cjs");const P=require("./dropdown-content-BnfFfIBY.cjs"),O=require("./timezone-DtVQwPS4.cjs");require("./form-BP7DDBtk.cjs"),require("./icon-vuGR6PEh.cjs");const j=require("./input-CTutyfwK.cjs"),m=require("./flex-D6XiBOTZ.cjs"),p=require("./list-C7rm-hrd.cjs"),o=require("./email-recipients-BYmTSDtV.cjs"),L=require("./map-B7v5XCcL.cjs");require("./menu-9XPYZwVz.cjs");const D=require("./navigation-rail-Cw1BQLk0.cjs"),y=require("./notification-service-B3lp4l84.cjs"),q=require("./notify-CzAYDDsL.cjs");require("./option-Bfkerz4T.cjs"),require("./progress-Ce9glM8G.cjs");const T=require("./radio-button-D6ao2v-N.cjs"),V=require("./rxjs-utils.cjs");require("rxjs"),require("./index-CCi1otmh.cjs");const Y=require("./select-CoBvc63S.cjs");require("./sheet-CwSsed6P.cjs");const S=require("./sheet.service-lSWe4XK5.cjs"),w=require("./slider-5j5w93Cb.cjs"),l=require("./schmancy-steps-container-C1NyZqJx.cjs"),a=require("./context-create-CA907mdD.cjs"),e=require("./selector-hook-BWMY8npH.cjs"),I=require("./surface-C5XXgsLy.cjs"),R=require("./table-C6k5_mBb.cjs");require("./tabs-compatibility-E6PF7hQz.cjs"),require("./textarea-Co6I_o3X.cjs");const z=require("./theme.interface-BMeNadVb.cjs"),c=require("./theme-controller-boat-DEEYmCYz.cjs"),M=require("./theme.events-Car6U_SQ.cjs");require("./theme-button-ThFGPN8O.cjs");const v=require("./tooltip-Bi0O1GC_.cjs"),k=require("./tree-DD5xQM9U.cjs"),G=require("./types.cjs"),W=require("./typewriter-ktB55ses.cjs"),$=require("./typography-V_yW7FVq.cjs"),K=require("./intersection-CVvaDv96.cjs"),_=require("./number-B7aCRYnH.cjs"),Q=require("./search-DWW8IoOp.cjs");exports.FINDING_MORTIES=n.FINDING_MORTIES,exports.HERE_RICKY=n.HERE_RICKY,exports.HISTORY_STRATEGY=n.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>n.SchmancyArea}),Object.defineProperty(exports,"SchmancyRoute",{enumerable:!0,get:()=>n.SchmancyRoute}),exports.area=n.area,exports.routerHistory=n.routerHistory,exports.buildQueryString=t.buildQueryString,exports.compareActiveRoutes=t.compareActiveRoutes,exports.compareCustomElementConstructors=t.compareCustomElementConstructors,exports.compareRouteActions=t.compareRouteActions,exports.createRouteCacheKey=t.createRouteCacheKey,exports.debounce=t.debounce,exports.decodeData=t.decodeData,exports.decodeRouteState=t.decodeRouteState,exports.deepMerge=t.deepMerge,exports.encodeData=t.encodeData,exports.encodeRouteState=t.encodeRouteState,exports.extractQueryParams=t.extractQueryParams,exports.getTagName=t.getTagName,exports.isObject=t.isObject,exports.lazy=t.lazy,exports.normalizeTagName=t.normalizeTagName,exports.sanitizeRouteState=t.sanitizeRouteState,exports.$drawer=r.$drawer,exports.HereMorty=r.HereMorty,Object.defineProperty(exports,"ScBadgeV2",{enumerable:!0,get:()=>r.ScBadgeV2}),Object.defineProperty(exports,"SchmancyAvatar",{enumerable:!0,get:()=>r.SchmancyAvatar}),Object.defineProperty(exports,"SchmancyBadgeV2",{enumerable:!0,get:()=>r.SchmancyBadgeV2}),Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>r.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=r.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>r.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=r.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=r.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>r.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=r.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=r.SchmancyContentDrawerSheetState,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>r.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=r.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=r.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationBar",{enumerable:!0,get:()=>r.SchmancyNavigationBar}),Object.defineProperty(exports,"SchmancyNavigationBarItem",{enumerable:!0,get:()=>r.SchmancyNavigationBarItem}),Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>r.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>r.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>r.SchmancyNavigationDrawerSidebar}),Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>r.SchmancyTeleportation}),exports.WhereAreYouRicky=r.WhereAreYouRicky,exports.schmancyContentDrawer=r.schmancyContentDrawer,exports.schmancyNavDrawer=r.schmancyNavDrawer,exports.teleport=r.teleport,Object.defineProperty(exports,"SchmancyBoat",{enumerable:!0,get:()=>N.SchmancyBoat}),Object.defineProperty(exports,"SchmancyButton",{enumerable:!0,get:()=>g.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>g.SchmnacyIconButton}),Object.defineProperty(exports,"SchmancyCheckbox",{enumerable:!0,get:()=>A.SchmancyCheckboxElement}),Object.defineProperty(exports,"SchmancyAssistChip",{enumerable:!0,get:()=>i.SchmancyAssistChip}),exports.SchmancyChip=i.SchmancyFilterChip,exports.SchmancyFilterChip=i.SchmancyFilterChip,Object.defineProperty(exports,"SchmancySuggestionChip",{enumerable:!0,get:()=>i.SchmancySuggestionChip}),Object.defineProperty(exports,"SchmancyInputChip",{enumerable:!0,get:()=>x.SchmancyInputChip}),Object.defineProperty(exports,"SchmancyCode",{enumerable:!0,get:()=>h.SchmancyCode}),Object.defineProperty(exports,"SchmancyCodeHighlight",{enumerable:!0,get:()=>h.SchmancyCode}),Object.defineProperty(exports,"SchmancyCodePreview",{enumerable:!0,get:()=>h.SchmancyCodePreview}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>E.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDateRange",{enumerable:!0,get:()=>d.SchmancyDateRange}),exports.validateInitialDateRange=d.validateInitialDateRange,Object.defineProperty(exports,"SchmancyDateRangeInline",{enumerable:!0,get:()=>B.SchmancyDateRangeInline}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>s.SchmancyDelay}),exports.delayContext=s.delayContext,Object.defineProperty(exports,"SchmancyDetails",{enumerable:!0,get:()=>F.SchmancyDetails}),Object.defineProperty(exports,"ConfirmDialog",{enumerable:!0,get:()=>u.ConfirmDialog}),Object.defineProperty(exports,"SchmancyDialog",{enumerable:!0,get:()=>u.SchmancyDialog}),Object.defineProperty(exports,"SchmancyDialogContent",{enumerable:!0,get:()=>u.SchmancyDialogContent}),exports.$dialog=f.$dialog,exports.DialogService=f.DialogService,exports.color=b.color,exports.fullHeight=b.fullHeight,exports.ripple=b.ripple,Object.defineProperty(exports,"guard",{enumerable:!0,get:()=>H.guard}),exports.discoverAnyComponent=C.discoverAnyComponent,exports.discoverComponent=C.discoverComponent,Object.defineProperty(exports,"SchmancyDropdown",{enumerable:!0,get:()=>P.SchmancyDropdown}),Object.defineProperty(exports,"SchmancyDropdownContent",{enumerable:!0,get:()=>P.SchmancyDropdownContent}),Object.defineProperty(exports,"SchmancyCountriesSelect",{enumerable:!0,get:()=>O.SchmancyCountriesSelect}),Object.defineProperty(exports,"SchmancyTimezonesSelect",{enumerable:!0,get:()=>O.SchmancyTimezonesSelect}),Object.defineProperty(exports,"SchmancyInput",{enumerable:!0,get:()=>j.SchmancyInput}),Object.defineProperty(exports,"SchmancyInputCompat",{enumerable:!0,get:()=>j.SchmancyInputCompat}),Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>m.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>m.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>m.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>m.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>p.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>p.SchmancyListItem}),exports.SchmancyListTypeContext=p.SchmancyListTypeContext,Object.defineProperty(exports,"SchmancyEmailEditor",{enumerable:!0,get:()=>o.SchmancyEmailEditor}),Object.defineProperty(exports,"SchmancyEmailLayoutSelector",{enumerable:!0,get:()=>o.SchmancyEmailLayoutSelector}),Object.defineProperty(exports,"SchmancyEmailRecipients",{enumerable:!0,get:()=>o.SchmancyEmailRecipients}),Object.defineProperty(exports,"SchmancyEmailViewer",{enumerable:!0,get:()=>o.SchmancyEmailViewer}),Object.defineProperty(exports,"SchmancyMailbox",{enumerable:!0,get:()=>o.SchmancyMailbox}),Object.defineProperty(exports,"SchmancyMap",{enumerable:!0,get:()=>L.SchmancyMap}),Object.defineProperty(exports,"SchmancyNavigationRail",{enumerable:!0,get:()=>D.SchmancyNavigationRail}),Object.defineProperty(exports,"SchmancyNavigationRailItem",{enumerable:!0,get:()=>D.SchmancyNavigationRailItem}),exports.$notify=y.$notify,exports.NotificationAudioService=y.NotificationAudioService,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>y.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationContainer",{enumerable:!0,get:()=>y.SchmancyNotificationContainer}),exports.notify=q.notify,exports.notifyProgress=q.notifyProgress,Object.defineProperty(exports,"RadioButton",{enumerable:!0,get:()=>T.RadioButton}),Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>T.RadioGroup}),exports.mutationObserver=V.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>Y.SchmancySelect}),exports.SchmancySheetPosition=S.SchmancySheetPosition,exports.SheetHereMorty=S.SheetHereMorty,exports.SheetWhereAreYouRicky=S.SheetWhereAreYouRicky,exports.sheet=S.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>w.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>w.SchmancySlider}),Object.defineProperty(exports,"SchmancyStep",{enumerable:!0,get:()=>l.SchmancyStep}),Object.defineProperty(exports,"SchmancyStepsContainer",{enumerable:!0,get:()=>l.SchmancyStepsContainer}),exports.StepsController=l.StepsController,exports.stepsContext=l.stepsContext,exports.BaseStore=a.BaseStore,exports.IndexedDBStorageManager=a.IndexedDBStorageManager,exports.LocalStorageManager=a.LocalStorageManager,exports.MemoryStorageManager=a.MemoryStorageManager,exports.SchmancyArrayStore=a.SchmancyArrayStore,exports.SchmancyStoreObject=a.SchmancyStoreObject,exports.SessionStorageManager=a.SessionStorageManager,exports.StoreError=a.StoreError,exports.createArrayContext=a.createArrayContext,exports.createContext=a.createContext,exports.createStorageManager=a.createStorageManager,exports.createTestArrayContext=a.createTestArrayContext,exports.compareValues=e.compareValues,exports.createCollectionSelector=e.createCollectionSelector,exports.createCompoundSelector=e.createCompoundSelector,exports.createCountSelector=e.createCountSelector,exports.createEntriesSelector=e.createEntriesSelector,exports.createFilterSelector=e.createFilterSelector,exports.createFindSelector=e.createFindSelector,exports.createItemSelector=e.createItemSelector,exports.createItemsSelector=e.createItemsSelector,exports.createKeysSelector=e.createKeysSelector,exports.createMapSelector=e.createMapSelector,exports.createOptimizedSelector=e.createOptimizedSelector,exports.createSelector=e.createSelector,exports.createSortSelector=e.createSortSelector,exports.filterArray=e.filterArray,exports.filterArrayItems=e.filterArrayItems,exports.filterMap=e.filterMap,exports.filterMapItems=e.filterMapItems,exports.getFieldValue=e.getFieldValue,exports.isArray=e.isArray,exports.isDate=e.isDate,exports.isIterable=e.isIterable,exports.isMap=e.isMap,exports.isNil=e.isNil,exports.isNumber=e.isNumber,exports.isPlainObject=e.isPlainObject,exports.isSet=e.isSet,exports.isString=e.isString,exports.select=e.select,exports.selectItem=e.selectItem,Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>I.SchmancySurface}),exports.SchmancySurfaceTypeContext=I.SchmancySurfaceTypeContext,Object.defineProperty(exports,"SchmancyDataTable",{enumerable:!0,get:()=>R.SchmancyDataTable}),Object.defineProperty(exports,"SchmancyTableRow",{enumerable:!0,get:()=>R.SchmancyTableRow}),exports.SchmancyTheme=z.SchmancyTheme,Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>c.SchmancyThemeComponent}),Object.defineProperty(exports,"SchmancyThemeController",{enumerable:!0,get:()=>c.SchmancyThemeController}),Object.defineProperty(exports,"SchmancyThemeControllerBoat",{enumerable:!0,get:()=>c.SchmancyThemeControllerBoat}),exports.createDarkTonalPaletteFromBaseColor=c.createDarkTonalPaletteFromBaseColor,exports.createLightTonalPaletteFromBaseColor=c.createLightTonalPaletteFromBaseColor,exports.formateTheme=c.formateTheme,exports.schmancyTheme=c.schmancyTheme,exports.tailwindStyles=c.tailwindStyles,exports.theme=c.theme,exports.themeContext=c.themeContext,exports.ThemeHereIAm=M.ThemeHereIAm,exports.ThemeWhereAreYou=M.ThemeWhereAreYou,Object.defineProperty(exports,"SchmancyTooltip",{enumerable:!0,get:()=>v.SchmancyTooltip}),exports.tooltip=v.tooltip,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>k.SchmancyTree}),exports.SchmancyEvents=G.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>W.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>$.SchmancyTypography}),exports.intersection$=K.intersection$,exports.Numbers=_.Numbers,exports.similarity=Q.similarity;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./animated-text-Dq7_jZi1.js";
|
|
2
|
-
import { F as d, H as g, c as u, S as D, b as T, a as b, r as w } from "./area.component-
|
|
2
|
+
import { F as d, H as g, c as u, S as D, b as T, a as b, r as w } from "./area.component-C895jU0E.js";
|
|
3
3
|
import { p as R, k as v, c as M, j as N, m as A, b as B, d as E, h as F, a as H, e as L, f as P, o as k, g as O, i as $, l as j, n as z, s as V } from "./utils-CYOVFxSx.js";
|
|
4
4
|
import "./autocomplete-BIqgHJSg.js";
|
|
5
|
-
import { $ as W, H as G, a as K, v as _, S as q, g as Q, d as J, h as U, e as X, f as Z, i as aa, b as ea, c as ta, k as ra, m as oa, n as ca, r as sa, q as ma, o as na, l as Sa, p as ia, t as ha, W as ya, s as pa, j as la, u as fa } from "./avatar-
|
|
5
|
+
import { $ as W, H as G, a as K, v as _, S as q, g as Q, d as J, h as U, e as X, f as Z, i as aa, b as ea, c as ta, k as ra, m as oa, n as ca, r as sa, q as ma, o as na, l as Sa, p as ia, t as ha, W as ya, s as pa, j as la, u as fa } from "./avatar-sdsp99GL.js";
|
|
6
6
|
import { S as Ca } from "./boat-F5pj1_HS.js";
|
|
7
7
|
import "./spinner-CbGVoMMS.js";
|
|
8
8
|
import { S as ga, a as ua } from "./icon-button-dwx5LJmH.js";
|
|
@@ -29,12 +29,12 @@ import "./icon-DnfqMcTA.js";
|
|
|
29
29
|
import { S as fe, a as xe } from "./input-DDBwWF_Y.js";
|
|
30
30
|
import { S as de, c as ge, a as ue, b as De } from "./flex-BJVTZ7DZ.js";
|
|
31
31
|
import { L as be, a as we, S as Ie } from "./list-CmhMxIBB.js";
|
|
32
|
-
import { a as ve, d as Me, c as Ne, b as Ae, S as Be } from "./email-recipients-
|
|
32
|
+
import { a as ve, d as Me, c as Ne, b as Ae, S as Be } from "./email-recipients-P8EhcYA5.js";
|
|
33
33
|
import { S as Fe } from "./map-CfpI1PSb.js";
|
|
34
34
|
import "./menu-DmzRvLJ_.js";
|
|
35
35
|
import { a as Le, S as Pe } from "./navigation-rail-CdllmI0h.js";
|
|
36
|
-
import { $ as Oe, N as $e, S as je, a as ze } from "./notification-service-
|
|
37
|
-
import { n as Ye, a as We } from "./notify-
|
|
36
|
+
import { $ as Oe, N as $e, S as je, a as ze } from "./notification-service-F3EVrKii.js";
|
|
37
|
+
import { n as Ye, a as We } from "./notify-CFOgWCLl.js";
|
|
38
38
|
import "./option-6rK-1ycf.js";
|
|
39
39
|
import "./progress-H11TnhHD.js";
|
|
40
40
|
import { a as Ke, R as _e } from "./radio-button-CLKMlw_u.js";
|
|
@@ -42,7 +42,7 @@ import { mutationObserver as Qe } from "./rxjs-utils.js";
|
|
|
42
42
|
import "rxjs";
|
|
43
43
|
import "./index-CW6PhEkx.js";
|
|
44
44
|
import { S as Ue } from "./select-BbH18sWe.js";
|
|
45
|
-
import "./sheet-
|
|
45
|
+
import "./sheet-CAdKgpXx.js";
|
|
46
46
|
import { S as Ze, b as at, a as et, s as tt } from "./sheet.service-xiXyDA0o.js";
|
|
47
47
|
import { S as ot, a as ct } from "./slider-BK88C7un.js";
|
|
48
48
|
import { S as mt, a as nt, b as St, s as it } from "./schmancy-steps-container-D1eh_oNN.js";
|
package/dist/mailbox.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./email-recipients-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./email-recipients-BYmTSDtV.cjs");Object.defineProperty(exports,"SchmancyEmailEditor",{enumerable:!0,get:()=>e.SchmancyEmailEditor}),Object.defineProperty(exports,"SchmancyEmailLayoutSelector",{enumerable:!0,get:()=>e.SchmancyEmailLayoutSelector}),Object.defineProperty(exports,"SchmancyEmailRecipients",{enumerable:!0,get:()=>e.SchmancyEmailRecipients}),Object.defineProperty(exports,"SchmancyEmailViewer",{enumerable:!0,get:()=>e.SchmancyEmailViewer}),Object.defineProperty(exports,"SchmancyMailbox",{enumerable:!0,get:()=>e.SchmancyMailbox});
|
|
2
2
|
//# sourceMappingURL=mailbox.cjs.map
|
package/dist/mailbox.js
CHANGED
package/dist/nav-drawer.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-BOl8StHd.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
|
|
2
2
|
//# sourceMappingURL=nav-drawer.cjs.map
|
package/dist/nav-drawer.js
CHANGED
package/dist/navigation-bar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-BOl8StHd.cjs");Object.defineProperty(exports,"SchmancyNavigationBar",{enumerable:!0,get:()=>e.SchmancyNavigationBar}),Object.defineProperty(exports,"SchmancyNavigationBarItem",{enumerable:!0,get:()=>e.SchmancyNavigationBarItem});
|
|
2
2
|
//# sourceMappingURL=navigation-bar.cjs.map
|
package/dist/navigation-bar.js
CHANGED
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
<line x1="12" y1="16" x2="12" y2="12"></line>
|
|
122
122
|
<line x1="12" y1="8" x2="12.01" y2="8"></line>
|
|
123
123
|
</svg>
|
|
124
|
-
`,iconColor:l.SchmancyTheme.sys.color.primary.default,progressColor:`color-mix(in srgb, ${l.SchmancyTheme.sys.color.primary.default} 94%, ${l.SchmancyTheme.sys.color.primary.container} 6%)`}}}},h([u.property({type:String})],exports.SchmancyNotification.prototype,"title",2),h([u.property({type:String})],exports.SchmancyNotification.prototype,"message",2),h([u.property({type:String})],exports.SchmancyNotification.prototype,"type",2),h([u.property({type:Boolean})],exports.SchmancyNotification.prototype,"closable",2),h([u.property({type:Number})],exports.SchmancyNotification.prototype,"duration",2),h([u.property({type:String})],exports.SchmancyNotification.prototype,"id",2),h([u.property({type:Boolean})],exports.SchmancyNotification.prototype,"playSound",2),h([u.property({type:Boolean})],exports.SchmancyNotification.prototype,"showProgress",2),h([u.state()],exports.SchmancyNotification.prototype,"_visible",2),h([u.state()],exports.SchmancyNotification.prototype,"_progress",2),h([u.state()],exports.SchmancyNotification.prototype,"_hovered",2),h([u.state()],exports.SchmancyNotification.prototype,"_closing",2),h([u.state()],exports.SchmancyNotification.prototype,"_autoCloseTimer",2),h([u.state()],exports.SchmancyNotification.prototype,"_progressTimer",2),exports.SchmancyNotification=h([u.customElement("sch-notification")],exports.SchmancyNotification);class V{constructor(){this.audioContext=null}getAudioContext(){if(!this.audioContext){const t=window.AudioContext||window.webkitAudioContext;this.audioContext=new t}return this.audioContext}playInfoSound(t=.2){const e=this.getAudioContext(),i=e.currentTime,n=e.createOscillator(),s=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(392,i),n.frequency.exponentialRampToValueAtTime(523.25,i+.25),a.type="lowpass",a.frequency.value=1500,s.gain.setValueAtTime(1e-4,i),s.gain.exponentialRampToValueAtTime(t,i+.15),s.gain.exponentialRampToValueAtTime(1e-4,i+.4),n.connect(a).connect(s).connect(e.destination),n.start(i),n.stop(i+.45)}playSuccessSound(t=.2){const e=this.getAudioContext(),i=e.currentTime,n=(s,a,r)=>{const c=e.createOscillator(),f=e.createGain(),v=e.createBiquadFilter();c.type="sine",c.frequency.setValueAtTime(s,i),v.type="lowpass",v.frequency.value=4*s,f.gain.setValueAtTime(1e-4,i),f.gain.exponentialRampToValueAtTime(t,i+.1),f.gain.exponentialRampToValueAtTime(1e-4,i+r),c.connect(v).connect(f).connect(e.destination),c.start(i+a),c.stop(i+r)};n(659.25,0,.6),n(523.25,.05,.55)}playWarningSound(t=.25){const e=this.getAudioContext(),i=e.currentTime,n=e.createOscillator(),s=e.createOscillator(),a=e.createGain(),r=e.createBiquadFilter();n.type="sine",s.type="sine",n.frequency.setValueAtTime(349.23,i),s.frequency.setValueAtTime(440,i),r.type="lowpass",r.frequency.value=1e3,a.gain.setValueAtTime(1e-4,i),a.gain.exponentialRampToValueAtTime(t,i+.08),a.gain.exponentialRampToValueAtTime(1e-4,i+.5),n.connect(r),s.connect(r),r.connect(a).connect(e.destination),n.start(i),s.start(i),n.stop(i+.55),s.stop(i+.55)}playErrorSound(t=.25){const e=this.getAudioContext(),i=e.currentTime,n=e.createOscillator(),s=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(220,i),n.frequency.exponentialRampToValueAtTime(1760,i+.3),a.type="lowpass",a.frequency.value=800,a.Q.value=.5,s.gain.setValueAtTime(1e-4,i),s.gain.exponentialRampToValueAtTime(.8*t,i+.1),s.gain.exponentialRampToValueAtTime(1e-4,i+.7),n.connect(a).connect(s).connect(e.destination),n.start(i),n.stop(i+.75)}async generateAudioFiles(t=.25){const i={};return i.info=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(320,0),s.frequency.exponentialRampToValueAtTime(520,.3);const a=n.createGain();a.gain.setValueAtTime(0,0),a.gain.linearRampToValueAtTime(t,.1),a.gain.linearRampToValueAtTime(0,.5),s.connect(a),a.connect(n.destination),s.start(),s.stop(.5)},44100,1),i.success=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(660,0);const a=n.createOscillator();a.type="sine",a.frequency.setValueAtTime(440,0);const r=n.createGain();r.gain.setValueAtTime(0,0),r.gain.linearRampToValueAtTime(t,.1),r.gain.linearRampToValueAtTime(0,.5);const c=n.createGain();c.gain.setValueAtTime(0,0),c.gain.linearRampToValueAtTime(.6*t,.15),c.gain.linearRampToValueAtTime(0,.7),s.connect(r),r.connect(n.destination),a.connect(c),c.connect(n.destination),s.start(),a.start(.15),s.stop(.5),a.stop(.7)},44100,1),i.warning=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(293.66,0);const a=n.createOscillator();a.type="sine",a.frequency.setValueAtTime(349.23,0);const r=n.createGain();r.gain.setValueAtTime(0,0),r.gain.linearRampToValueAtTime(t,.1),r.gain.linearRampToValueAtTime(.6*t,.2),r.gain.linearRampToValueAtTime(.8*t,.3),r.gain.linearRampToValueAtTime(0,.6),s.connect(r),a.connect(r),r.connect(n.destination),s.start(),a.start(),s.stop(.6),a.stop(.6)},44100,1),i.error=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(196,0);const a=n.createGain();a.gain.setValueAtTime(0,0),a.gain.linearRampToValueAtTime(t,.1),a.gain.linearRampToValueAtTime(.4*t,.2),a.gain.linearRampToValueAtTime(.6*t,.3),a.gain.linearRampToValueAtTime(0,.7);const r=n.createBiquadFilter();r.type="lowpass",r.frequency.value=600,r.Q.value=.7,s.connect(r),r.connect(a),a.connect(n.destination),s.start(),s.stop(.7)},44100,1),i}async generateAudioFile(t,e=44100,i=1){const n=new OfflineAudioContext(2,e*i,e);await t(n);const s=await n.startRendering(),a=this.audioBufferToWav(s);return URL.createObjectURL(a)}audioBufferToWav(t){const e=t.numberOfChannels,i=t.sampleRate,n=2*e,s=this.getAudioSamples(t,16),a=2*s.length,r=new ArrayBuffer(44+a),c=new DataView(r);return this.writeString(c,0,"RIFF"),c.setUint32(4,36+a,!0),this.writeString(c,8,"WAVE"),this.writeString(c,12,"fmt "),c.setUint32(16,16,!0),c.setUint16(20,1,!0),c.setUint16(22,e,!0),c.setUint32(24,i,!0),c.setUint32(28,i*n,!0),c.setUint16(32,n,!0),c.setUint16(34,16,!0),this.writeString(c,36,"data"),c.setUint32(40,a,!0),this.writeInt16Samples(c,44,s),new Blob([r],{type:"audio/wav"})}getAudioSamples(t,e){const i=t.numberOfChannels,n=t.length,s=[],a=e===16?32768:128;for(let r=0;r<n;r++)for(let c=0;c<i;c++){const f=t.getChannelData(c)[r],v=Math.max(-1,Math.min(1,f));s.push(v*a)}return s}writeInt16Samples(t,e,i){for(let n=0;n<i.length;n++)t.setInt16(e+2*n,i[n],!0)}writeString(t,e,i){for(let n=0;n<i.length;n++)t.setUint8(e+n,i.charCodeAt(n))}}class T{constructor(){this.audioContext=null,this.soundBuffers=new Map,this.volume=.5,this.muted=!1,this.soundGenerator=new V,this.disconnecting=new EventTarget,this.soundUrls={info:"/assets/sounds/notification-info.mp3",success:"/assets/sounds/notification-success.mp3",warning:"/assets/sounds/notification-warning.mp3",error:"/assets/sounds/notification-error.mp3"},this.handleAudioEnded=t=>()=>{t.remove()},this.initializeAudioFiles()}async initializeAudioFiles(){try{await this.preloadSounds()}catch{try{const e=await this.soundGenerator.generateAudioFiles(this.volume);this.soundUrls=e}catch{}}}getAudioContext(){if(!this.audioContext){const t=window.AudioContext||window.webkitAudioContext;this.audioContext=new t}return this.audioContext}async preloadSounds(){const t=["info","success","warning","error"];for(const e of t)try{const i=await this.loadSound(e);this.soundBuffers.set(e,i)}catch{}}async loadSound(t){const e=this.soundUrls[t],i=await fetch(e);if(!i.ok)throw new Error(`Failed to load sound from ${e}: ${i.statusText}`);const n=await i.arrayBuffer();return await this.getAudioContext().decodeAudioData(n)}async playSound(t){if(!this.muted)try{const e=this.getAudioContext();if(e.state==="suspended"&&await e.resume(),this.soundUrls[t].startsWith("blob:"))return void this.playFallbackSound(t);if(!this.soundBuffers.has(t))try{const a=await this.loadSound(t);this.soundBuffers.set(t,a)}catch{return void this.playDirectGeneratedSound(t)}const i=this.soundBuffers.get(t);if(!i)throw new Error(`Sound buffer for ${t} not available`);const n=e.createBufferSource();n.buffer=i;const s=e.createGain();s.gain.value=this.volume,n.connect(s),s.connect(e.destination),n.start(0)}catch{this.playDirectGeneratedSound(t)}}playDirectGeneratedSound(t){if(!this.muted)try{switch(t){case"info":this.soundGenerator.playInfoSound(this.volume);break;case"success":this.soundGenerator.playSuccessSound(this.volume);break;case"warning":this.soundGenerator.playWarningSound(this.volume);break;case"error":this.soundGenerator.playErrorSound(this.volume)}}catch{}}playFallbackSound(t){if(!this.muted)try{const e=new Audio(this.soundUrls[t]);e.volume=this.volume,p.fromEvent(e,"ended").pipe(p.takeUntil(p.fromEvent(this.disconnecting,"disconnect"))).subscribe(this.handleAudioEnded(e)),e.play().catch(i=>{this.playDirectGeneratedSound(t)})}catch{this.playDirectGeneratedSound(t)}}setVolume(t){this.volume=Math.max(0,Math.min(1,t))}getVolume(){return this.volume}mute(){this.muted=!0}unmute(){this.muted=!1}isMuted(){return this.muted}setSoundUrl(t,e){this.soundUrls[t]=e,this.soundBuffers.delete(t)}getSoundUrl(t){return this.soundUrls[t]}dispose(){this.disconnecting.dispatchEvent(new Event("disconnect")),this.audioContext&&this.audioContext.state!=="closed"&&this.audioContext.close().catch(t=>{})}}var k=Object.defineProperty,$=Object.getOwnPropertyDescriptor,g=(o,t,e,i)=>{for(var n,s=i>1?void 0:i?$(t,e):t,a=o.length-1;a>=0;a--)(n=o[a])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&k(t,e,s),s};exports.SchmancyNotificationContainer=class extends x.$LitElement(":host{display:block}.notification-container{position:fixed;z-index:9999;padding:12px;pointer-events:none;width:100%;max-width:424px}.notification-container sch-notification{pointer-events:auto}.notification-container.top-right{top:0;right:0;display:flex;flex-direction:column-reverse}.notification-container.top-left{top:0;left:0;display:flex;flex-direction:column-reverse}.notification-container.bottom-right{bottom:0;right:0;display:flex;flex-direction:column}.notification-container.bottom-left{bottom:0;left:0;display:flex;flex-direction:column}.notification-container.top-center{top:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column-reverse}.notification-container.bottom-center{bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column}"){constructor(){super(...arguments),this.position="top-right",this.maxVisibleNotifications=2,this.playSound=!1,this.audioVolume=.1,this._notifications=[],this._audioService=new T,this.handlePlaySound=o=>{this.playSound&&this._audioService.playSound(o.detail.type)}}connectedCallback(){super.connectedCallback(),this._audioService.setVolume(this.audioVolume),p.fromEvent(window,"schmancy-notification").pipe(p.takeUntil(this.disconnecting)).subscribe(o=>{this.addNotification(o.detail)}),p.fromEvent(window,"schmancy-notification-dismiss").pipe(p.takeUntil(this.disconnecting)).subscribe(o=>{this.removeNotification(o.detail.id)}),p.fromEvent(window,"schmancy-notification-update").pipe(p.takeUntil(this.disconnecting)).subscribe(o=>{this.updateNotification(o.detail.id,o.detail)}),p.fromEvent(this,"playsound").pipe(p.takeUntil(this.disconnecting)).subscribe(this.handlePlaySound)}addNotification(o){const t=o.id||`notification-${Date.now()}-${Math.floor(1e4*Math.random())}`,e={id:t,title:o.title||"",message:o.message,type:o.type||"info",duration:o.duration!==void 0?o.duration:750,closable:o.closable===void 0||o.closable,playSound:o.playSound!==void 0?o.playSound:this.playSound,showProgress:o.showProgress!==void 0&&o.showProgress};return this.position.startsWith("top")?this._notifications=[...this._notifications,e]:this._notifications=[e,...this._notifications],this._notifications.length>this.maxVisibleNotifications&&(this._notifications=this._notifications.slice(-this.maxVisibleNotifications)),e.playSound&&this._audioService.playSound(e.type),t}removeNotification(o){this._notifications=this._notifications.filter(t=>t.id!==o)}updateNotification(o,t){const e=this._notifications.findIndex(i=>i.id===o);e!==-1&&(this._notifications[e]={...this._notifications[e],...t},this.requestUpdate())}_handleClose(o){const t=o.detail.id;this.removeNotification(t)}render(){return d.html`
|
|
124
|
+
`,iconColor:l.SchmancyTheme.sys.color.primary.default,progressColor:`color-mix(in srgb, ${l.SchmancyTheme.sys.color.primary.default} 94%, ${l.SchmancyTheme.sys.color.primary.container} 6%)`}}}},h([u.property({type:String})],exports.SchmancyNotification.prototype,"title",2),h([u.property({type:String})],exports.SchmancyNotification.prototype,"message",2),h([u.property({type:String})],exports.SchmancyNotification.prototype,"type",2),h([u.property({type:Boolean})],exports.SchmancyNotification.prototype,"closable",2),h([u.property({type:Number})],exports.SchmancyNotification.prototype,"duration",2),h([u.property({type:String})],exports.SchmancyNotification.prototype,"id",2),h([u.property({type:Boolean})],exports.SchmancyNotification.prototype,"playSound",2),h([u.property({type:Boolean})],exports.SchmancyNotification.prototype,"showProgress",2),h([u.state()],exports.SchmancyNotification.prototype,"_visible",2),h([u.state()],exports.SchmancyNotification.prototype,"_progress",2),h([u.state()],exports.SchmancyNotification.prototype,"_hovered",2),h([u.state()],exports.SchmancyNotification.prototype,"_closing",2),h([u.state()],exports.SchmancyNotification.prototype,"_autoCloseTimer",2),h([u.state()],exports.SchmancyNotification.prototype,"_progressTimer",2),exports.SchmancyNotification=h([u.customElement("sch-notification")],exports.SchmancyNotification);class V{constructor(){this.audioContext=null}getAudioContext(){if(!this.audioContext){const t=window.AudioContext||window.webkitAudioContext;this.audioContext=new t}return this.audioContext}playInfoSound(t=.2){const e=this.getAudioContext(),i=e.currentTime,n=e.createOscillator(),s=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(392,i),n.frequency.exponentialRampToValueAtTime(523.25,i+.25),a.type="lowpass",a.frequency.value=1500,s.gain.setValueAtTime(1e-4,i),s.gain.exponentialRampToValueAtTime(t,i+.15),s.gain.exponentialRampToValueAtTime(1e-4,i+.4),n.connect(a).connect(s).connect(e.destination),n.start(i),n.stop(i+.45)}playSuccessSound(t=.2){const e=this.getAudioContext(),i=e.currentTime,n=(s,a,r)=>{const c=e.createOscillator(),f=e.createGain(),v=e.createBiquadFilter();c.type="sine",c.frequency.setValueAtTime(s,i),v.type="lowpass",v.frequency.value=4*s,f.gain.setValueAtTime(1e-4,i),f.gain.exponentialRampToValueAtTime(t,i+.1),f.gain.exponentialRampToValueAtTime(1e-4,i+r),c.connect(v).connect(f).connect(e.destination),c.start(i+a),c.stop(i+r)};n(659.25,0,.6),n(523.25,.05,.55)}playWarningSound(t=.25){const e=this.getAudioContext(),i=e.currentTime,n=e.createOscillator(),s=e.createOscillator(),a=e.createGain(),r=e.createBiquadFilter();n.type="sine",s.type="sine",n.frequency.setValueAtTime(349.23,i),s.frequency.setValueAtTime(440,i),r.type="lowpass",r.frequency.value=1e3,a.gain.setValueAtTime(1e-4,i),a.gain.exponentialRampToValueAtTime(t,i+.08),a.gain.exponentialRampToValueAtTime(1e-4,i+.5),n.connect(r),s.connect(r),r.connect(a).connect(e.destination),n.start(i),s.start(i),n.stop(i+.55),s.stop(i+.55)}playErrorSound(t=.25){const e=this.getAudioContext(),i=e.currentTime,n=e.createOscillator(),s=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(220,i),n.frequency.exponentialRampToValueAtTime(1760,i+.3),a.type="lowpass",a.frequency.value=800,a.Q.value=.5,s.gain.setValueAtTime(1e-4,i),s.gain.exponentialRampToValueAtTime(.8*t,i+.1),s.gain.exponentialRampToValueAtTime(1e-4,i+.7),n.connect(a).connect(s).connect(e.destination),n.start(i),n.stop(i+.75)}async generateAudioFiles(t=.25){const i={};return i.info=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(320,0),s.frequency.exponentialRampToValueAtTime(520,.3);const a=n.createGain();a.gain.setValueAtTime(0,0),a.gain.linearRampToValueAtTime(t,.1),a.gain.linearRampToValueAtTime(0,.5),s.connect(a),a.connect(n.destination),s.start(),s.stop(.5)},44100,1),i.success=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(660,0);const a=n.createOscillator();a.type="sine",a.frequency.setValueAtTime(440,0);const r=n.createGain();r.gain.setValueAtTime(0,0),r.gain.linearRampToValueAtTime(t,.1),r.gain.linearRampToValueAtTime(0,.5);const c=n.createGain();c.gain.setValueAtTime(0,0),c.gain.linearRampToValueAtTime(.6*t,.15),c.gain.linearRampToValueAtTime(0,.7),s.connect(r),r.connect(n.destination),a.connect(c),c.connect(n.destination),s.start(),a.start(.15),s.stop(.5),a.stop(.7)},44100,1),i.warning=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(293.66,0);const a=n.createOscillator();a.type="sine",a.frequency.setValueAtTime(349.23,0);const r=n.createGain();r.gain.setValueAtTime(0,0),r.gain.linearRampToValueAtTime(t,.1),r.gain.linearRampToValueAtTime(.6*t,.2),r.gain.linearRampToValueAtTime(.8*t,.3),r.gain.linearRampToValueAtTime(0,.6),s.connect(r),a.connect(r),r.connect(n.destination),s.start(),a.start(),s.stop(.6),a.stop(.6)},44100,1),i.error=await this.generateAudioFile(async n=>{const s=n.createOscillator();s.type="sine",s.frequency.setValueAtTime(196,0);const a=n.createGain();a.gain.setValueAtTime(0,0),a.gain.linearRampToValueAtTime(t,.1),a.gain.linearRampToValueAtTime(.4*t,.2),a.gain.linearRampToValueAtTime(.6*t,.3),a.gain.linearRampToValueAtTime(0,.7);const r=n.createBiquadFilter();r.type="lowpass",r.frequency.value=600,r.Q.value=.7,s.connect(r),r.connect(a),a.connect(n.destination),s.start(),s.stop(.7)},44100,1),i}async generateAudioFile(t,e=44100,i=1){const n=new OfflineAudioContext(2,e*i,e);await t(n);const s=await n.startRendering(),a=this.audioBufferToWav(s);return URL.createObjectURL(a)}audioBufferToWav(t){const e=t.numberOfChannels,i=t.sampleRate,n=2*e,s=this.getAudioSamples(t,16),a=2*s.length,r=new ArrayBuffer(44+a),c=new DataView(r);return this.writeString(c,0,"RIFF"),c.setUint32(4,36+a,!0),this.writeString(c,8,"WAVE"),this.writeString(c,12,"fmt "),c.setUint32(16,16,!0),c.setUint16(20,1,!0),c.setUint16(22,e,!0),c.setUint32(24,i,!0),c.setUint32(28,i*n,!0),c.setUint16(32,n,!0),c.setUint16(34,16,!0),this.writeString(c,36,"data"),c.setUint32(40,a,!0),this.writeInt16Samples(c,44,s),new Blob([r],{type:"audio/wav"})}getAudioSamples(t,e){const i=t.numberOfChannels,n=t.length,s=[],a=e===16?32768:128;for(let r=0;r<n;r++)for(let c=0;c<i;c++){const f=t.getChannelData(c)[r],v=Math.max(-1,Math.min(1,f));s.push(v*a)}return s}writeInt16Samples(t,e,i){for(let n=0;n<i.length;n++)t.setInt16(e+2*n,i[n],!0)}writeString(t,e,i){for(let n=0;n<i.length;n++)t.setUint8(e+n,i.charCodeAt(n))}}class T{constructor(){this.audioContext=null,this.soundBuffers=new Map,this.volume=.5,this.muted=!1,this.soundGenerator=new V,this.disconnecting=new EventTarget,this.soundUrls={info:"/assets/sounds/notification-info.mp3",success:"/assets/sounds/notification-success.mp3",warning:"/assets/sounds/notification-warning.mp3",error:"/assets/sounds/notification-error.mp3"},this.handleAudioEnded=t=>()=>{t.remove()},this.initializeAudioFiles()}async initializeAudioFiles(){try{await this.preloadSounds()}catch{try{const e=await this.soundGenerator.generateAudioFiles(this.volume);this.soundUrls=e}catch{}}}getAudioContext(){if(!this.audioContext){const t=window.AudioContext||window.webkitAudioContext;this.audioContext=new t}return this.audioContext}async preloadSounds(){const t=["info","success","warning","error"];for(const e of t)try{const i=await this.loadSound(e);this.soundBuffers.set(e,i)}catch{}}async loadSound(t){const e=this.soundUrls[t],i=await fetch(e);if(!i.ok)throw new Error(`Failed to load sound from ${e}: ${i.statusText}`);const n=await i.arrayBuffer();return await this.getAudioContext().decodeAudioData(n)}async playSound(t){if(!this.muted)try{const e=this.getAudioContext();if(e.state==="suspended"&&await e.resume(),this.soundUrls[t].startsWith("blob:"))return void this.playFallbackSound(t);if(!this.soundBuffers.has(t))try{const a=await this.loadSound(t);this.soundBuffers.set(t,a)}catch{return void this.playDirectGeneratedSound(t)}const i=this.soundBuffers.get(t);if(!i)throw new Error(`Sound buffer for ${t} not available`);const n=e.createBufferSource();n.buffer=i;const s=e.createGain();s.gain.value=this.volume,n.connect(s),s.connect(e.destination),n.start(0)}catch{this.playDirectGeneratedSound(t)}}playDirectGeneratedSound(t){if(!this.muted)try{switch(t){case"info":this.soundGenerator.playInfoSound(this.volume);break;case"success":this.soundGenerator.playSuccessSound(this.volume);break;case"warning":this.soundGenerator.playWarningSound(this.volume);break;case"error":this.soundGenerator.playErrorSound(this.volume)}}catch{}}playFallbackSound(t){if(!this.muted)try{const e=new Audio(this.soundUrls[t]);e.volume=this.volume,p.fromEvent(e,"ended").pipe(p.takeUntil(p.fromEvent(this.disconnecting,"disconnect"))).subscribe(this.handleAudioEnded(e)),e.play().catch(i=>{this.playDirectGeneratedSound(t)})}catch{this.playDirectGeneratedSound(t)}}setVolume(t){this.volume=Math.max(0,Math.min(1,t))}getVolume(){return this.volume}mute(){this.muted=!0}unmute(){this.muted=!1}isMuted(){return this.muted}setSoundUrl(t,e){this.soundUrls[t]=e,this.soundBuffers.delete(t)}getSoundUrl(t){return this.soundUrls[t]}dispose(){this.disconnecting.dispatchEvent(new Event("disconnect")),this.audioContext&&this.audioContext.state!=="closed"&&this.audioContext.close().catch(t=>{})}}var k=Object.defineProperty,$=Object.getOwnPropertyDescriptor,g=(o,t,e,i)=>{for(var n,s=i>1?void 0:i?$(t,e):t,a=o.length-1;a>=0;a--)(n=o[a])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&k(t,e,s),s};exports.SchmancyNotificationContainer=class extends x.$LitElement(":host{display:block}.notification-container{position:fixed;z-index:10001;padding:12px;pointer-events:none;width:100%;max-width:424px}.notification-container sch-notification{pointer-events:auto}.notification-container.top-right{top:0;right:0;display:flex;flex-direction:column-reverse}.notification-container.top-left{top:0;left:0;display:flex;flex-direction:column-reverse}.notification-container.bottom-right{bottom:0;right:0;display:flex;flex-direction:column}.notification-container.bottom-left{bottom:0;left:0;display:flex;flex-direction:column}.notification-container.top-center{top:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column-reverse}.notification-container.bottom-center{bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column}"){constructor(){super(...arguments),this.position="top-right",this.maxVisibleNotifications=2,this.playSound=!1,this.audioVolume=.1,this._notifications=[],this._audioService=new T,this.handlePlaySound=o=>{this.playSound&&this._audioService.playSound(o.detail.type)}}connectedCallback(){super.connectedCallback(),this._audioService.setVolume(this.audioVolume),p.fromEvent(window,"schmancy-notification").pipe(p.takeUntil(this.disconnecting)).subscribe(o=>{this.addNotification(o.detail)}),p.fromEvent(window,"schmancy-notification-dismiss").pipe(p.takeUntil(this.disconnecting)).subscribe(o=>{this.removeNotification(o.detail.id)}),p.fromEvent(window,"schmancy-notification-update").pipe(p.takeUntil(this.disconnecting)).subscribe(o=>{this.updateNotification(o.detail.id,o.detail)}),p.fromEvent(this,"playsound").pipe(p.takeUntil(this.disconnecting)).subscribe(this.handlePlaySound)}addNotification(o){const t=o.id||`notification-${Date.now()}-${Math.floor(1e4*Math.random())}`,e={id:t,title:o.title||"",message:o.message,type:o.type||"info",duration:o.duration!==void 0?o.duration:750,closable:o.closable===void 0||o.closable,playSound:o.playSound!==void 0?o.playSound:this.playSound,showProgress:o.showProgress!==void 0&&o.showProgress};return this.position.startsWith("top")?this._notifications=[...this._notifications,e]:this._notifications=[e,...this._notifications],this._notifications.length>this.maxVisibleNotifications&&(this._notifications=this._notifications.slice(-this.maxVisibleNotifications)),e.playSound&&this._audioService.playSound(e.type),t}removeNotification(o){this._notifications=this._notifications.filter(t=>t.id!==o)}updateNotification(o,t){const e=this._notifications.findIndex(i=>i.id===o);e!==-1&&(this._notifications[e]={...this._notifications[e],...t},this.requestUpdate())}_handleClose(o){const t=o.detail.id;this.removeNotification(t)}render(){return d.html`
|
|
125
125
|
<div
|
|
126
126
|
class=${b.classMap({"notification-container":!0,[this.position]:!0})}
|
|
127
127
|
>
|
|
@@ -140,4 +140,4 @@
|
|
|
140
140
|
`)}
|
|
141
141
|
</div>
|
|
142
142
|
`}},g([u.property({type:String})],exports.SchmancyNotificationContainer.prototype,"position",2),g([u.property({type:Number})],exports.SchmancyNotificationContainer.prototype,"maxVisibleNotifications",2),g([u.property({type:Boolean})],exports.SchmancyNotificationContainer.prototype,"playSound",2),g([u.property({type:Number})],exports.SchmancyNotificationContainer.prototype,"audioVolume",2),g([u.state()],exports.SchmancyNotificationContainer.prototype,"_notifications",2),exports.SchmancyNotificationContainer=g([u.customElement("sch-notification-container")],exports.SchmancyNotificationContainer);const y=class y{constructor(){this.notificationStack=[]}static getInstance(){return y.instance||(y.instance=new y),y.instance}notify(t){const e={...y.DEFAULT_OPTIONS,...t,duration:t.duration??y.DEFAULT_OPTIONS.duration},i=e.id||`notification-${Date.now()}-${Math.floor(1e4*Math.random())}`;this.notificationStack.push(i);const n=new CustomEvent("schmancy-notification",{bubbles:!0,composed:!0,detail:{...e,id:i}});return window.dispatchEvent(n),i}dismiss(t){let e;if(t){const i=this.notificationStack.indexOf(t);i>-1&&(this.notificationStack.splice(i,1),e=t)}else e=this.notificationStack.pop();if(e){const i=new CustomEvent("schmancy-notification-dismiss",{bubbles:!0,composed:!0,detail:{id:e}});window.dispatchEvent(i)}}update(t,e){const i=new CustomEvent("schmancy-notification-update",{bubbles:!0,composed:!0,detail:{id:t,...e}});window.dispatchEvent(i)}info(t,e={}){return this.notify({message:t??"",type:"info",duration:t?e.duration:1,...e})}success(t,e={}){return this.notify({message:t??"",type:"success",duration:t?e.duration:1,...e})}warning(t,e={}){return this.notify({message:t??"",type:"warning",duration:t?e.duration:1,...e})}error(t,e={}){return this.notify({message:t??"",type:"error",duration:t?e.duration:1,...e})}customDuration(t,e,i={}){return this.notify({message:t,duration:e,...i})}persistent(t,e={}){return this.notify({message:t,duration:0,...e})}};y.DEFAULT_OPTIONS={duration:1e3,closable:!0,playSound:!0};let m=y;const N={show:o=>m.getInstance().notify(o),info:(o,t={})=>m.getInstance().info(o,t),success:(o,t={})=>m.getInstance().success(o,t),warning:(o,t={})=>m.getInstance().warning(o,t),error:(o,t={})=>m.getInstance().error(o,t),customDuration:(o,t,e={})=>m.getInstance().customDuration(o,t,e),persistent:(o,t={})=>m.getInstance().persistent(o,t),dismiss:o=>m.getInstance().dismiss(o),update:(o,t)=>m.getInstance().update(o,t)};exports.$notify=N,exports.NotificationAudioService=T;
|
|
143
|
-
//# sourceMappingURL=notification-service-
|
|
143
|
+
//# sourceMappingURL=notification-service-B3lp4l84.cjs.map
|