@mhmo91/schmancy 0.4.44 → 0.4.46

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.
Files changed (67) hide show
  1. package/ai/dialog.md +1 -1
  2. package/dist/ai/dialog.md +1 -1
  3. package/dist/{avatar-N8UvQjsm.cjs → avatar-By_6fdSR.cjs} +2 -2
  4. package/dist/{avatar-N8UvQjsm.cjs.map → avatar-By_6fdSR.cjs.map} +1 -1
  5. package/dist/{avatar-DbQohKTF.js → avatar-DZ45SZ_3.js} +17 -17
  6. package/dist/{avatar-DbQohKTF.js.map → avatar-DZ45SZ_3.js.map} +1 -1
  7. package/dist/badge.cjs +1 -1
  8. package/dist/badge.js +1 -1
  9. package/dist/content-drawer.cjs +1 -1
  10. package/dist/content-drawer.js +1 -1
  11. package/dist/{date-range-CREpHqxO.cjs → date-range-CVkBXQxc.cjs} +2 -2
  12. package/dist/{date-range-CREpHqxO.cjs.map → date-range-CVkBXQxc.cjs.map} +1 -1
  13. package/dist/{date-range-B7VG8UXD.js → date-range-Cnrrl6_Q.js} +2 -2
  14. package/dist/{date-range-B7VG8UXD.js.map → date-range-Cnrrl6_Q.js.map} +1 -1
  15. package/dist/date-range.cjs +1 -1
  16. package/dist/date-range.js +1 -1
  17. package/dist/{dialog-content-ClfiDTji.cjs → dialog-content-Dm9ywkp4.cjs} +2 -2
  18. package/dist/{dialog-content-ClfiDTji.cjs.map → dialog-content-Dm9ywkp4.cjs.map} +1 -1
  19. package/dist/{dialog-content-Cc7LNx1o.js → dialog-content-MhUhElif.js} +2 -2
  20. package/dist/{dialog-content-Cc7LNx1o.js.map → dialog-content-MhUhElif.js.map} +1 -1
  21. package/dist/dialog-service-LvOr2E3k.js +132 -0
  22. package/dist/dialog-service-LvOr2E3k.js.map +1 -0
  23. package/dist/dialog-service-iRGqMSDe.cjs +2 -0
  24. package/dist/dialog-service-iRGqMSDe.cjs.map +1 -0
  25. package/dist/dialog.cjs +1 -1
  26. package/dist/dialog.js +2 -2
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.js +177 -177
  29. package/dist/nav-drawer.cjs +1 -1
  30. package/dist/nav-drawer.js +1 -1
  31. package/dist/sheet-DMP3Pfe5.js +228 -0
  32. package/dist/sheet-DMP3Pfe5.js.map +1 -0
  33. package/dist/sheet-Dsx7bpof.cjs +52 -0
  34. package/dist/sheet-Dsx7bpof.cjs.map +1 -0
  35. package/dist/sheet.cjs +1 -1
  36. package/dist/sheet.js +5 -6
  37. package/dist/sheet.js.map +1 -1
  38. package/dist/teleport.cjs +1 -1
  39. package/dist/teleport.js +1 -1
  40. package/dist/theme.cjs +1 -1
  41. package/dist/theme.component-Bl4uy-_0.js +738 -0
  42. package/dist/theme.component-Bl4uy-_0.js.map +1 -0
  43. package/dist/theme.component-Dnf9PdX8.cjs +3 -0
  44. package/dist/theme.component-Dnf9PdX8.cjs.map +1 -0
  45. package/dist/theme.js +1 -1
  46. package/dist/{typewriter-DMKxup-I.js → typewriter-CnloNIdN.js} +6 -6
  47. package/dist/{typewriter-DMKxup-I.js.map → typewriter-CnloNIdN.js.map} +1 -1
  48. package/dist/typewriter.js +1 -1
  49. package/package.json +1 -1
  50. package/types/src/sheet/sheet.d.ts +0 -1
  51. package/types/src/sheet/sheet.service.d.ts +32 -118
  52. package/dist/dialog-events--DuMbZ8T.cjs +0 -2
  53. package/dist/dialog-events--DuMbZ8T.cjs.map +0 -1
  54. package/dist/dialog-events-mjOcyPQ-.js +0 -6
  55. package/dist/dialog-events-mjOcyPQ-.js.map +0 -1
  56. package/dist/dialog-service-BZZK8N6A.cjs +0 -2
  57. package/dist/dialog-service-BZZK8N6A.cjs.map +0 -1
  58. package/dist/dialog-service-DFMlRcXf.js +0 -128
  59. package/dist/dialog-service-DFMlRcXf.js.map +0 -1
  60. package/dist/sheet-BY3YdE4E.js +0 -149
  61. package/dist/sheet-BY3YdE4E.js.map +0 -1
  62. package/dist/sheet-BY85jX0R.cjs +0 -54
  63. package/dist/sheet-BY85jX0R.cjs.map +0 -1
  64. package/dist/sheet.service-CNz7lXHC.cjs +0 -3
  65. package/dist/sheet.service-CNz7lXHC.cjs.map +0 -1
  66. package/dist/sheet.service-DSvFe5PY.js +0 -842
  67. package/dist/sheet.service-DSvFe5PY.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,214 +1,214 @@
1
1
  import "./animated-text-D26Fv13t.js";
2
- import { F as g, H as u, b as D, S as w, a as T, r as b } from "./area.component-BCcq9Nb7.js";
3
- import { l as M, h as R, c as A, f as v, j as N, a as H, b as B, d as E, e as F, k as O, g as $, i as j, n as k, s as L } from "./utils-03Coa8AW.js";
2
+ import { F as d, H as g, b as u, S as D, a as w, r as T } from "./area.component-BCcq9Nb7.js";
3
+ import { l as I, h as M, c as R, f as A, j as v, a as N, b as H, d as B, e as E, k as F, g as O, i as $, n as j, s as k } from "./utils-03Coa8AW.js";
4
4
  import "./autocomplete-CHObbMzK.js";
5
- import { $ as Y, H as z, a as G, r as V, S as W, g as K, d as _, h as q, e as Q, f as J, i as U, b as X, c as Z, k as aa, m as ea, n as ra, o as ta, l as oa, p as ca, q as sa, W as na, s as ma, j as Sa, t as ia } from "./avatar-DbQohKTF.js";
6
- import { S as ha } from "./boat-C_BvtlNQ.js";
5
+ import { $ as P, H as Y, a as z, r as G, S as V, g as W, d as K, h as _, e as q, f as Q, i as J, b as U, c as X, k as Z, m as aa, n as ea, o as ra, l as ta, p as oa, q as sa, W as ca, s as na, j as ma, t as Sa } from "./avatar-DZ45SZ_3.js";
6
+ import { S as ya } from "./boat-C_BvtlNQ.js";
7
7
  import "./spinner-CbA-FXRK.js";
8
- import { S as la, a as fa } from "./icon-button-BW5ofOL5.js";
8
+ import { S as pa, a as la } from "./icon-button-BW5ofOL5.js";
9
9
  import "./media-BO-aZBTp.js";
10
- import { S as da } from "./checkbox-BSYgpRsc.js";
10
+ import { S as xa } from "./checkbox-BSYgpRsc.js";
11
11
  import "./chips-Dn8RpKCE.js";
12
- import { S as ga } from "./circular-progress-B1RjFzcp.js";
13
- import { S as Da, S as wa, a as Ta } from "./code-preview-JlSLKkKg.js";
14
- import { S as Ia } from "./payment-card-form-Cs5bP5Di.js";
15
- import { S as Ra, v as Aa } from "./date-range-B7VG8UXD.js";
16
- import { S as Na } from "./date-range-inline-B_K4YPtB.js";
17
- import { S as Ba, d as Ea } from "./delay-D415_oVH.js";
18
- import { C as Oa, S as $a, a as ja } from "./dialog-content-Cc7LNx1o.js";
19
- import { $ as La, D as Pa } from "./dialog-service-DFMlRcXf.js";
20
- import { c as za, f as Ga, r as Va } from "./ripple-BumgqsDT.js";
12
+ import { S as da } from "./circular-progress-B1RjFzcp.js";
13
+ import { S as ua, S as Da, a as wa } from "./code-preview-JlSLKkKg.js";
14
+ import { S as ba } from "./payment-card-form-Cs5bP5Di.js";
15
+ import { S as Ma, v as Ra } from "./date-range-Cnrrl6_Q.js";
16
+ import { S as va } from "./date-range-inline-B_K4YPtB.js";
17
+ import { S as Ha, d as Ba } from "./delay-D415_oVH.js";
18
+ import { C as Fa, S as Oa, a as $a } from "./dialog-content-MhUhElif.js";
19
+ import { $ as ka, D as La } from "./dialog-service-LvOr2E3k.js";
20
+ import { c as Ya, f as za, r as Ga } from "./ripple-BumgqsDT.js";
21
21
  import "./divider-Dn26vIou.js";
22
- import { S as Ka, a as _a } from "./dropdown-content-DOnGrBxV.js";
23
- import { S as Qa, a as Ja } from "./timezone-Cvsd--fr.js";
22
+ import { S as Wa, a as Ka } from "./dropdown-content-DOnGrBxV.js";
23
+ import { S as qa, a as Qa } from "./timezone-Cvsd--fr.js";
24
24
  import "./form-Cots2cbN.js";
25
25
  import "./icon-BZxC9aoA.js";
26
- import { S as Xa, a as Za } from "./input-Cpo-ws8k.js";
27
- import { S as ee, c as re, a as te, b as oe } from "./flex-DV2W2Zgu.js";
28
- import { L as se, a as ne, S as me } from "./list-BTyoQ42F.js";
26
+ import { S as Ua, a as Xa } from "./input-Cpo-ws8k.js";
27
+ import { S as ae, c as ee, a as re, b as te } from "./flex-DV2W2Zgu.js";
28
+ import { L as se, a as ce, S as ne } from "./list-BTyoQ42F.js";
29
29
  import "./menu-DWCDQvGY.js";
30
- import { $ as ie, N as ye, S as he, a as pe } from "./notification-service-L_h9_d4v.js";
30
+ import { $ as Se, N as ie, S as ye, a as he } from "./notification-service-L_h9_d4v.js";
31
31
  import "./option-vRGeXw_u.js";
32
32
  import "./progress-DM_jha7D.js";
33
- import { a as fe, R as xe } from "./radio-button-YDzqdRA-.js";
33
+ import { a as le, R as fe } from "./radio-button-YDzqdRA-.js";
34
34
  import { mutationObserver as Ce } from "./rxjs-utils.js";
35
35
  import "rxjs";
36
36
  import "./index-CuY8m6ta.js";
37
- import { S as ue } from "./select-rwocpGs2.js";
38
- import "./sheet-BY3YdE4E.js";
39
- import { S as we, d as Te, b as be, a as Ie, c as Me, T as Re, f as Ae, s as ve, t as Ne } from "./sheet.service-DSvFe5PY.js";
40
- import { S as Be, a as Ee } from "./slider-C7Z1bPq7.js";
41
- import { S as Oe, a as $e, b as je, s as ke } from "./schmancy-steps-container-CoARMXfB.js";
42
- import { B as Pe, I as Ye, L as ze, M as Ge, S as Ve, a as We, b as Ke, d as _e, c as qe } from "./context-object-CDDP4bTk.js";
43
- import { p as Je, a as Ue, v as Xe, G as Ze, c as ar, E as er, z as rr, C as tr, B as or, x as cr, w as sr, y as nr, D as mr, F as Sr, u as ir, A as yr, b as hr, r as pr, d as lr, q as fr, f as xr, g as dr, i as Cr, j as gr, k as ur, l as Dr, o as wr, h as Tr, n as br, m as Ir, e as Mr, s as Rr, t as Ar } from "./selector-hook-CIpuCUbr.js";
44
- import { a as Nr, S as Hr } from "./surface-By8o7nWa.js";
45
- import { a as Er, S as Fr } from "./table-CvMo5lOi.js";
37
+ import { S as ge } from "./select-rwocpGs2.js";
38
+ import { S as De, b as we, a as Te, s as be } from "./sheet-DMP3Pfe5.js";
39
+ import { S as Me, a as Re } from "./slider-C7Z1bPq7.js";
40
+ import { S as ve, a as Ne, b as He, s as Be } from "./schmancy-steps-container-CoARMXfB.js";
41
+ import { B as Fe, I as Oe, L as $e, M as je, S as ke, a as Le, b as Pe, d as Ye, c as ze } from "./context-object-CDDP4bTk.js";
42
+ import { p as Ve, a as We, v as Ke, G as _e, c as qe, E as Qe, z as Je, C as Ue, B as Xe, x as Ze, w as ar, y as er, D as rr, F as tr, u as or, A as sr, b as cr, r as nr, d as mr, q as Sr, f as ir, g as yr, i as hr, j as pr, k as lr, l as fr, o as xr, h as Cr, n as dr, m as gr, e as ur, s as Dr, t as wr } from "./selector-hook-CIpuCUbr.js";
43
+ import { a as br, S as Ir } from "./surface-By8o7nWa.js";
44
+ import { a as Rr, S as Ar } from "./table-CvMo5lOi.js";
46
45
  import "./tabs-compatibility-DsOH4PSw.js";
47
46
  import "./textarea-DM3lgEUp.js";
47
+ import { S as Nr, a as Hr, T as Br, f as Er, t as Fr } from "./theme.component-Bl4uy-_0.js";
48
48
  import { S as $r } from "./theme.interface-C5Kj6WjD.js";
49
49
  import "./theme-button-C4JWRMiC.js";
50
50
  import { S as kr, t as Lr } from "./tooltip-nwQwCEgl.js";
51
51
  import { S as Yr } from "./tree-BDmB7KmQ.js";
52
52
  import { SchmancyEvents as Gr } from "./types.js";
53
- import { T as Wr } from "./typewriter-DMKxup-I.js";
53
+ import { T as Wr } from "./typewriter-CnloNIdN.js";
54
54
  import { S as _r } from "./typography-DYCOngD7.js";
55
55
  import { i as Qr } from "./intersection-CJxzz8c-.js";
56
56
  export {
57
- La as $dialog,
58
- Y as $drawer,
59
- ie as $notify,
60
- Pe as BaseStore,
61
- Oa as ConfirmDialog,
62
- Pa as DialogService,
63
- g as FINDING_MORTIES,
64
- u as HERE_RICKY,
65
- D as HISTORY_STRATEGY,
66
- z as HereMorty,
67
- Ye as IndexedDBStorageManager,
57
+ ka as $dialog,
58
+ P as $drawer,
59
+ Se as $notify,
60
+ Fe as BaseStore,
61
+ Fa as ConfirmDialog,
62
+ La as DialogService,
63
+ d as FINDING_MORTIES,
64
+ g as HERE_RICKY,
65
+ u as HISTORY_STRATEGY,
66
+ Y as HereMorty,
67
+ Oe as IndexedDBStorageManager,
68
68
  se as List,
69
- ze as LocalStorageManager,
70
- Ge as MemoryStorageManager,
71
- ye as NotificationAudioService,
72
- fe as RadioButton,
73
- xe as RadioGroup,
74
- G as ScBadgeV2,
75
- w as SchmancyArea,
76
- Ve as SchmancyArrayStore,
77
- V as SchmancyAvatar,
78
- W as SchmancyBadgeV2,
79
- ha as SchmancyBoat,
80
- la as SchmancyButton,
81
- da as SchmancyCheckbox,
82
- ga as SchmancyCircularProgress,
83
- Da as SchmancyCode,
84
- wa as SchmancyCodeHighlight,
85
- Ta as SchmancyCodePreview,
86
- K as SchmancyContentDrawer,
87
- _ as SchmancyContentDrawerID,
88
- q as SchmancyContentDrawerMain,
89
- Q as SchmancyContentDrawerMaxHeight,
90
- J as SchmancyContentDrawerMinWidth,
91
- U as SchmancyContentDrawerSheet,
92
- X as SchmancyContentDrawerSheetMode,
93
- Z as SchmancyContentDrawerSheetState,
94
- Qa as SchmancyCountriesSelect,
95
- Er as SchmancyDataTable,
96
- Ra as SchmancyDateRange,
97
- Na as SchmancyDateRangeInline,
98
- Ba as SchmancyDelay,
99
- $a as SchmancyDialog,
100
- ja as SchmancyDialogContent,
101
- aa as SchmancyDrawerAppbar,
102
- ea as SchmancyDrawerNavbarMode,
103
- ra as SchmancyDrawerNavbarState,
104
- Ka as SchmancyDropdown,
105
- _a as SchmancyDropdownContent,
69
+ $e as LocalStorageManager,
70
+ je as MemoryStorageManager,
71
+ ie as NotificationAudioService,
72
+ le as RadioButton,
73
+ fe as RadioGroup,
74
+ z as ScBadgeV2,
75
+ D as SchmancyArea,
76
+ ke as SchmancyArrayStore,
77
+ G as SchmancyAvatar,
78
+ V as SchmancyBadgeV2,
79
+ ya as SchmancyBoat,
80
+ pa as SchmancyButton,
81
+ xa as SchmancyCheckbox,
82
+ da as SchmancyCircularProgress,
83
+ ua as SchmancyCode,
84
+ Da as SchmancyCodeHighlight,
85
+ wa as SchmancyCodePreview,
86
+ W as SchmancyContentDrawer,
87
+ K as SchmancyContentDrawerID,
88
+ _ as SchmancyContentDrawerMain,
89
+ q as SchmancyContentDrawerMaxHeight,
90
+ Q as SchmancyContentDrawerMinWidth,
91
+ J as SchmancyContentDrawerSheet,
92
+ U as SchmancyContentDrawerSheetMode,
93
+ X as SchmancyContentDrawerSheetState,
94
+ qa as SchmancyCountriesSelect,
95
+ Rr as SchmancyDataTable,
96
+ Ma as SchmancyDateRange,
97
+ va as SchmancyDateRangeInline,
98
+ Ha as SchmancyDelay,
99
+ Oa as SchmancyDialog,
100
+ $a as SchmancyDialogContent,
101
+ Z as SchmancyDrawerAppbar,
102
+ aa as SchmancyDrawerNavbarMode,
103
+ ea as SchmancyDrawerNavbarState,
104
+ Wa as SchmancyDropdown,
105
+ Ka as SchmancyDropdownContent,
106
106
  Gr as SchmancyEvents,
107
- ee as SchmancyFlex,
108
- re as SchmancyFlexV2,
109
- te as SchmancyGrid,
110
- Xa as SchmancyInput,
111
- Za as SchmancyInputCompat,
112
- ne as SchmancyListItem,
113
- me as SchmancyListTypeContext,
114
- ta as SchmancyNavigationDrawer,
115
- oa as SchmancyNavigationDrawerContent,
116
- ca as SchmancyNavigationDrawerSidebar,
117
- he as SchmancyNotification,
118
- pe as SchmancyNotificationContainer,
119
- Ia as SchmancyPaymentCardForm,
120
- oe as SchmancyScroll,
121
- ue as SchmancySelect,
122
- we as SchmancySheetPosition,
123
- Be as SchmancySlide,
124
- Ee as SchmancySlider,
125
- Oe as SchmancyStep,
126
- $e as SchmancyStepsContainer,
127
- We as SchmancyStoreObject,
128
- Nr as SchmancySurface,
129
- Hr as SchmancySurfaceTypeContext,
130
- Fr as SchmancyTableRow,
107
+ ae as SchmancyFlex,
108
+ ee as SchmancyFlexV2,
109
+ re as SchmancyGrid,
110
+ Ua as SchmancyInput,
111
+ Xa as SchmancyInputCompat,
112
+ ce as SchmancyListItem,
113
+ ne as SchmancyListTypeContext,
114
+ ra as SchmancyNavigationDrawer,
115
+ ta as SchmancyNavigationDrawerContent,
116
+ oa as SchmancyNavigationDrawerSidebar,
117
+ ye as SchmancyNotification,
118
+ he as SchmancyNotificationContainer,
119
+ ba as SchmancyPaymentCardForm,
120
+ te as SchmancyScroll,
121
+ ge as SchmancySelect,
122
+ De as SchmancySheetPosition,
123
+ Me as SchmancySlide,
124
+ Re as SchmancySlider,
125
+ ve as SchmancyStep,
126
+ Ne as SchmancyStepsContainer,
127
+ Le as SchmancyStoreObject,
128
+ br as SchmancySurface,
129
+ Ir as SchmancySurfaceTypeContext,
130
+ Ar as SchmancyTableRow,
131
131
  sa as SchmancyTeleportation,
132
132
  $r as SchmancyTheme,
133
- Te as SchmancyThemeComponent,
134
- Ja as SchmancyTimezonesSelect,
133
+ Nr as SchmancyThemeComponent,
134
+ Qa as SchmancyTimezonesSelect,
135
135
  kr as SchmancyTooltip,
136
136
  Yr as SchmancyTree,
137
137
  _r as SchmancyTypography,
138
- fa as SchmnacyIconButton,
139
- Ke as SessionStorageManager,
140
- be as SheetHereMorty,
141
- Ie as SheetWhereAreYouRicky,
142
- je as StepsController,
143
- _e as StoreError,
144
- Me as ThemeHereIAm,
145
- Re as ThemeWhereAreYou,
138
+ la as SchmnacyIconButton,
139
+ Pe as SessionStorageManager,
140
+ we as SheetHereMorty,
141
+ Te as SheetWhereAreYouRicky,
142
+ He as StepsController,
143
+ Ye as StoreError,
144
+ Hr as ThemeHereIAm,
145
+ Br as ThemeWhereAreYou,
146
146
  Wr as TypewriterElement,
147
- na as WhereAreYouRicky,
148
- T as area,
149
- M as buildQueryString,
150
- za as color,
151
- R as compareActiveRoutes,
152
- A as compareCustomElementConstructors,
153
- v as compareRouteActions,
154
- Je as compareValues,
155
- Ue as createArrayContext,
156
- Xe as createCollectionSelector,
157
- Ze as createCompoundSelector,
158
- ar as createContext,
159
- er as createCountSelector,
160
- rr as createEntriesSelector,
161
- tr as createFilterSelector,
162
- or as createFindSelector,
163
- cr as createItemSelector,
164
- sr as createItemsSelector,
165
- nr as createKeysSelector,
166
- mr as createMapSelector,
167
- Sr as createOptimizedSelector,
168
- N as createRouteCacheKey,
169
- ir as createSelector,
170
- yr as createSortSelector,
171
- qe as createStorageManager,
172
- hr as createTestArrayContext,
173
- H as debounce,
174
- B as decodeRouteState,
175
- E as deepMerge,
176
- Ea as delayContext,
177
- F as encodeRouteState,
178
- O as extractQueryParams,
179
- pr as filterArray,
180
- lr as filterArrayItems,
181
- fr as filterMap,
182
- xr as filterMapItems,
183
- Ae as formateTheme,
184
- Ga as fullHeight,
185
- dr as getFieldValue,
186
- $ as getTagName,
147
+ ca as WhereAreYouRicky,
148
+ w as area,
149
+ I as buildQueryString,
150
+ Ya as color,
151
+ M as compareActiveRoutes,
152
+ R as compareCustomElementConstructors,
153
+ A as compareRouteActions,
154
+ Ve as compareValues,
155
+ We as createArrayContext,
156
+ Ke as createCollectionSelector,
157
+ _e as createCompoundSelector,
158
+ qe as createContext,
159
+ Qe as createCountSelector,
160
+ Je as createEntriesSelector,
161
+ Ue as createFilterSelector,
162
+ Xe as createFindSelector,
163
+ Ze as createItemSelector,
164
+ ar as createItemsSelector,
165
+ er as createKeysSelector,
166
+ rr as createMapSelector,
167
+ tr as createOptimizedSelector,
168
+ v as createRouteCacheKey,
169
+ or as createSelector,
170
+ sr as createSortSelector,
171
+ ze as createStorageManager,
172
+ cr as createTestArrayContext,
173
+ N as debounce,
174
+ H as decodeRouteState,
175
+ B as deepMerge,
176
+ Ba as delayContext,
177
+ E as encodeRouteState,
178
+ F as extractQueryParams,
179
+ nr as filterArray,
180
+ mr as filterArrayItems,
181
+ Sr as filterMap,
182
+ ir as filterMapItems,
183
+ Er as formateTheme,
184
+ za as fullHeight,
185
+ yr as getFieldValue,
186
+ O as getTagName,
187
187
  Qr as intersection$,
188
- Cr as isArray,
189
- gr as isDate,
190
- ur as isIterable,
191
- Dr as isMap,
192
- wr as isNil,
193
- Tr as isNumber,
194
- j as isObject,
195
- br as isPlainObject,
196
- Ir as isSet,
197
- Mr as isString,
188
+ hr as isArray,
189
+ pr as isDate,
190
+ lr as isIterable,
191
+ fr as isMap,
192
+ xr as isNil,
193
+ Cr as isNumber,
194
+ $ as isObject,
195
+ dr as isPlainObject,
196
+ gr as isSet,
197
+ ur as isString,
198
198
  Ce as mutationObserver,
199
- k as normalizeTagName,
200
- Va as ripple,
201
- b as routerHistory,
202
- L as sanitizeRouteState,
203
- ma as schmancyContentDrawer,
204
- Sa as schmancyNavDrawer,
205
- Rr as select,
206
- Ar as selectItem,
207
- ve as sheet,
208
- ke as stepsContext,
209
- Ne as tailwindStyles,
210
- ia as teleport,
199
+ j as normalizeTagName,
200
+ Ga as ripple,
201
+ T as routerHistory,
202
+ k as sanitizeRouteState,
203
+ na as schmancyContentDrawer,
204
+ ma as schmancyNavDrawer,
205
+ Dr as select,
206
+ wr as selectItem,
207
+ be as sheet,
208
+ Be as stepsContext,
209
+ Fr as tailwindStyles,
210
+ Sa as teleport,
211
211
  Lr as tooltip,
212
- Aa as validateInitialDateRange
212
+ Ra as validateInitialDateRange
213
213
  };
214
214
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-N8UvQjsm.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-By_6fdSR.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
@@ -1,4 +1,4 @@
1
- import { $ as c, k as e, m as n, n as m, o as s, l as o, p as t, j as w } from "./avatar-DbQohKTF.js";
1
+ import { $ as c, k as e, m as n, n as m, o as s, l as o, p as t, j as w } from "./avatar-DZ45SZ_3.js";
2
2
  export {
3
3
  c as $drawer,
4
4
  e as SchmancyDrawerAppbar,
@@ -0,0 +1,228 @@
1
+ import { Subject as A, switchMap as B, forkJoin as x, fromEvent as d, of as w, takeUntil as u, timer as f, map as p, defaultIfEmpty as y, tap as l, delay as v, take as L, mergeMap as F, merge as U } from "rxjs";
2
+ import { classMap as C } from "lit/directives/class-map.js";
3
+ import "lit/directives/style-map.js";
4
+ import { T as j } from "./tailwind.mixin-CaIkmP6j.js";
5
+ import { customElement as H, property as c, queryAssignedElements as M } from "lit/decorators.js";
6
+ import { css as P, html as S } from "lit";
7
+ import { $ as z } from "./litElement.mixin-BH9PTyUD.js";
8
+ import { cache as I } from "lit/directives/cache.js";
9
+ import { ifDefined as $ } from "lit/directives/if-defined.js";
10
+ import { createRef as R, ref as T } from "lit/directives/ref.js";
11
+ import { a as q, T as N } from "./theme.component-Bl4uy-_0.js";
12
+ var J = Object.getOwnPropertyDescriptor;
13
+ let O = class extends j(P``) {
14
+ render() {
15
+ return S`
16
+ <sch-flex class="absolute top-0 left-0 md:left-[unset] md:right-0">
17
+ <div class="block md:hidden flex-1 justify-start items-start">
18
+ <slot name="back">
19
+ <schmancy-button
20
+ @click=${() => {
21
+ this.dispatchEvent(new CustomEvent("dismiss", { bubbles: !0, composed: !0 }));
22
+ }}
23
+ >
24
+ <span class="text-[24px]">&#8592; </span>
25
+ </schmancy-button>
26
+ </slot>
27
+ </div>
28
+
29
+ <div class="hidden md:block flex-1 justify-end items-end">
30
+ <slot name="actions">
31
+ <schmancy-icon-button
32
+ @click=${() => {
33
+ this.dispatchEvent(new CustomEvent("dismiss", { bubbles: !0, composed: !0 }));
34
+ }}
35
+ >
36
+ close
37
+ </schmancy-icon-button>
38
+ </slot>
39
+ </div>
40
+ </sch-flex>
41
+ `;
42
+ }
43
+ };
44
+ O = ((t, e, s, o) => {
45
+ for (var i, n = o > 1 ? void 0 : o ? J(e, s) : e, r = t.length - 1; r >= 0; r--) (i = t[r]) && (n = i(n) || n);
46
+ return n;
47
+ })([H("schmancy-sheet-header")], O);
48
+ var D = ((t) => (t.Side = "side", t.Bottom = "bottom", t))(D || {});
49
+ const E = "are-you-there-sheet", k = "yes-here", b = new class {
50
+ constructor() {
51
+ this.bottomSheet = new A(), this.$dismiss = new A(), this.activeSheets = /* @__PURE__ */ new Set(), this.sheetComponents = /* @__PURE__ */ new Map(), this.popStateListenerActive = !1, this.setupSheetOpeningLogic(), this.setupSheetDismissLogic(), this.setupPopStateListener();
52
+ }
53
+ setupSheetOpeningLogic() {
54
+ this.bottomSheet.pipe(B((t) => x([d(window, k).pipe(u(f(50)), p((e) => e.detail), y(void 0)), d(window, q).pipe(u(f(100)), p((e) => e.detail.theme), y(void 0)), w(t).pipe(l(() => {
55
+ const e = t.uid ?? t.component.tagName;
56
+ window.dispatchEvent(new CustomEvent(E, { detail: { uid: e } })), window.dispatchEvent(new CustomEvent(N));
57
+ }))])), p(([t, e, s]) => {
58
+ let o, i = t?.sheet;
59
+ if (i) o = i.parentElement;
60
+ else {
61
+ o = e || document.querySelector("schmancy-theme") || document.body;
62
+ const r = s.uid ?? s.component.tagName;
63
+ i = document.createElement("schmancy-sheet"), i.setAttribute("uid", r), o.appendChild(i);
64
+ }
65
+ s.lock && i.setAttribute("lock", "true");
66
+ const n = s.position || (window.innerWidth >= 768 ? "side" : "bottom");
67
+ return i.setAttribute("position", n), s.title && i.setAttribute("title", s.title), s.persist && i.setAttribute("persist", String(s.persist)), s.header && i.setAttribute("header", s.header), s.handleHistory !== void 0 && i.setAttribute("handleHistory", String(s.handleHistory)), document.body.style.overflow = "hidden", { target: s, sheet: i };
68
+ }), v(20), l(({ target: t, sheet: e }) => {
69
+ t.onBeforeOpen && t.onBeforeOpen(t.component), (e?.shadowRoot?.querySelector("slot")?.assignedElements() || []).find((s) => s.tagName === t.component.tagName) || e?.appendChild(t.component);
70
+ }), v(1), l(({ target: t, sheet: e }) => {
71
+ e?.setAttribute("open", "true");
72
+ const s = t.uid ?? (t.component instanceof HTMLElement ? t.component.tagName : `sheet-${Date.now()}`);
73
+ if (this.activeSheets.add(s), this.sheetComponents.set(s, t.component), t.handleHistory !== !1) {
74
+ const o = { schmancySheet: !0, uid: s, timestamp: Date.now() };
75
+ history.pushState(o, "", window.location.href);
76
+ }
77
+ t.onAfterOpen && t.onAfterOpen(t.component), d(e, "close").pipe(L(1)).pipe(v(300)).subscribe((o) => {
78
+ const i = e;
79
+ if (i) {
80
+ const n = i.getAttribute("uid");
81
+ n && (this.activeSheets.delete(n), this.sheetComponents.delete(n));
82
+ const r = i.getAttribute("persist");
83
+ (!r || r === "false") && i.remove();
84
+ }
85
+ document.body.style.overflow = "auto";
86
+ });
87
+ })).subscribe();
88
+ }
89
+ setupSheetDismissLogic() {
90
+ this.$dismiss.pipe(F((t) => x([d(window, k).pipe(u(f(100)), p((e) => e.detail), y(void 0)), w(t).pipe(l(() => {
91
+ window.dispatchEvent(new CustomEvent(E, { detail: { uid: t } }));
92
+ }))])), l(([t, e]) => {
93
+ t?.sheet && (t.sheet.closeSheet(), this.activeSheets.delete(e));
94
+ })).subscribe();
95
+ }
96
+ setupPopStateListener() {
97
+ this.popStateListenerActive || (d(window, "popstate").subscribe((t) => {
98
+ if (this.activeSheets.size > 0) {
99
+ const e = Array.from(this.activeSheets).pop();
100
+ e && (this.dismiss(e), t.state && t.state.schmancySheet && history.pushState({}, "", window.location.href));
101
+ }
102
+ }), this.popStateListenerActive = !0);
103
+ }
104
+ dismiss(t) {
105
+ if (!t && this.activeSheets.size > 0) {
106
+ const e = Array.from(this.activeSheets);
107
+ t = e[e.length - 1];
108
+ }
109
+ t && this.$dismiss.next(t);
110
+ }
111
+ open(t) {
112
+ this.bottomSheet.next(t);
113
+ }
114
+ isOpen(t) {
115
+ return this.activeSheets.has(t);
116
+ }
117
+ closeAll() {
118
+ Array.from(this.activeSheets).forEach((t) => {
119
+ this.dismiss(t);
120
+ });
121
+ }
122
+ getComponent(t) {
123
+ return this.sheetComponents.get(t);
124
+ }
125
+ }();
126
+ var W = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, h = (t, e, s, o) => {
127
+ for (var i, n = o > 1 ? void 0 : o ? Y(e, s) : e, r = t.length - 1; r >= 0; r--) (i = t[r]) && (n = (o ? i(e, s, n) : i(n)) || n);
128
+ return o && n && W(e, s, n), n;
129
+ };
130
+ let a = class extends z(":host{--overlay-color: var(--schmancy-sys-color-surface-dim);--transition-timing: cubic-bezier(.16, 1, .3, 1);--transition-duration: .25s;--sheet-radius: 0;--max-height: 100vh}.sheet{position:fixed;inset:0;z-index:999;display:flex;visibility:visible;transition:visibility var(--transition-duration) var(--transition-timing)}.sheet[aria-hidden=true]{visibility:hidden;pointer-events:none}.sheet[aria-hidden=true] .content{transform:translateY(100%)}.sheet[aria-hidden=true] .content[data-position=side]{transform:translate(100%)}.sheet[aria-hidden=true] .overlay{opacity:0}.overlay{position:absolute;inset:0;background:var(--overlay-color);opacity:.8;transition:opacity var(--transition-duration) var(--transition-timing)}.content{z-index:1;transition:transform var(--transition-duration) var(--transition-timing);overflow:hidden}.content[data-position=side]{height:100vh;height:100%;min-width:320px;max-width:90vw;width:fit-content;margin-left:auto}.content[data-position=side] #body{max-height:100vh}.content[data-position=bottom]{width:100%;margin-top:auto;border-radius:16px 16px 0 0;max-height:90vh}.content[data-position=bottom] #body{max-height:90vh}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}") {
131
+ constructor() {
132
+ super(...arguments), this.open = !1, this.header = "visible", this.position = D.Side, this.persist = !1, this.lock = !1, this.handleHistory = !0, this.title = "", this.sheetRef = R(), this.focusAttribute = "autofocus", this.lastFocusedElement = null, this.handleOverlayClick = (t) => {
133
+ t.stopPropagation(), this.lock || b.dismiss(this.uid);
134
+ }, this.handleHeaderDismiss = (t) => {
135
+ t.stopPropagation(), b.dismiss(this.uid);
136
+ };
137
+ }
138
+ onOpenChange(t, e) {
139
+ e ? (this.lastFocusedElement = document.activeElement, this.setBackgroundInert(!0), this.focus()) : (this.setBackgroundInert(!1), this.lastFocusedElement?.focus(), this.lastFocusedElement = null);
140
+ }
141
+ connectedCallback() {
142
+ super.connectedCallback(), this.setupEventListeners();
143
+ }
144
+ disconnectedCallback() {
145
+ super.disconnectedCallback(), this.disconnecting.next(!0);
146
+ }
147
+ setupEventListeners() {
148
+ const t = this.handleHistory ? d(window, "popstate").pipe(l((o) => {
149
+ o.preventDefault(), this.closeSheet();
150
+ })) : w(null).pipe(L(0)), e = d(this, "keydown").pipe(l((o) => {
151
+ o.key === "Escape" && !this.lock && this.open && (o.preventDefault(), o.stopPropagation(), b.dismiss(this.uid));
152
+ })), s = d(window, E).pipe(l((o) => {
153
+ o.detail.uid === this.uid && this.dispatchEvent(new CustomEvent(k, { detail: { sheet: this }, bubbles: !0, composed: !0 }));
154
+ }));
155
+ U(t, e, s).pipe(u(this.disconnecting)).subscribe();
156
+ }
157
+ setBackgroundInert(t) {
158
+ const e = this.parentElement;
159
+ e && Array.from(e.children).forEach((s) => {
160
+ s !== this && s instanceof HTMLElement && (t ? s.setAttribute("inert", "") : s.removeAttribute("inert"));
161
+ }), this.parentElement === document.body && Array.from(document.body.children).forEach((s) => {
162
+ s !== this && s !== e && s instanceof HTMLElement && (t ? s.setAttribute("inert", "") : s.removeAttribute("inert"));
163
+ });
164
+ }
165
+ setIsSheetShown(t) {
166
+ this.sheetRef.value?.setAttribute("aria-hidden", String(!t)), this.sheetRef.value?.setAttribute("aria-modal", String(t));
167
+ }
168
+ closeSheet() {
169
+ this.open = !1, this.dispatchEvent(new CustomEvent("close"));
170
+ }
171
+ getFocusElement() {
172
+ const t = `[${this.focusAttribute}]`;
173
+ return this.assignedElements.find((e) => e.matches(t) || e.querySelector(t)) ?? null;
174
+ }
175
+ focus() {
176
+ const t = this.querySelector("[autofocus]");
177
+ t ? t.focus() : this.getFocusElement()?.focus();
178
+ }
179
+ render() {
180
+ const t = { sheet: !0, "sheet--open": this.open, "sheet--locked": this.lock }, e = { overlay: !0, "overlay--interactive": !this.lock };
181
+ return S`
182
+ <div
183
+ class=${C(t)}
184
+ role="dialog"
185
+ aria-labelledby=${$(this.header !== "hidden" ? "sheet-title" : void 0)}
186
+ aria-hidden=${!this.open}
187
+ aria-modal=${this.open}
188
+ tabindex="0"
189
+ ${T(this.sheetRef)}
190
+ >
191
+ <div class=${C(e)} @click=${this.lock ? void 0 : this.handleOverlayClick}></div>
192
+ <schmancy-grid
193
+ rows=${this.header === "hidden" ? "1fr" : "auto 1fr"}
194
+ class="content w-full"
195
+ data-position=${this.position}
196
+ >
197
+ ${I(this.header !== "hidden" ? S`<schmancy-sheet-header
198
+ class="sticky top-0 z-50 w-full"
199
+ @dismiss=${this.handleHeaderDismiss}
200
+ id="sheet-title"
201
+ title=${$(this.title || void 0)}
202
+ ></schmancy-sheet-header>` : "")}
203
+
204
+ <schmancy-surface rounded="left" fill="all" id="body" class="overflow-auto" type="surface">
205
+ <schmancy-scroll> <slot></slot></schmancy-scroll>
206
+ </schmancy-surface>
207
+ </schmancy-grid>
208
+ </div>
209
+ `;
210
+ }
211
+ };
212
+ var m, g;
213
+ h([c({ type: String, reflect: !0 })], a.prototype, "uid", 2), h([c({ type: Boolean, reflect: !0 })], a.prototype, "open", 2), h([c({ type: String, reflect: !0 })], a.prototype, "header", 2), h([c({ type: String, reflect: !0 })], a.prototype, "position", 2), h([c({ type: Boolean, reflect: !0 })], a.prototype, "persist", 2), h([c({ type: Boolean, reflect: !0 })], a.prototype, "lock", 2), h([c({ type: Boolean, reflect: !0 })], a.prototype, "handleHistory", 2), h([c({ type: String, reflect: !0 })], a.prototype, "title", 2), h([M({ flatten: !0 })], a.prototype, "assignedElements", 2), h([c()], a.prototype, "focusAttribute", 2), h([(m = "open", (t, e) => {
214
+ const { willUpdate: s } = t;
215
+ g = Object.assign({ waitUntilFirstUpdate: !1 }, g), t.willUpdate = function(o) {
216
+ if (s.call(this, o), o.has(m)) {
217
+ const i = o.get(m), n = this[m];
218
+ i !== n && (g?.waitUntilFirstUpdate && !this.hasUpdated || this[e].call(this, i, n));
219
+ }
220
+ };
221
+ })], a.prototype, "onOpenChange", 1), a = h([H("schmancy-sheet")], a);
222
+ export {
223
+ D as S,
224
+ E as a,
225
+ k as b,
226
+ b as s
227
+ };
228
+ //# sourceMappingURL=sheet-DMP3Pfe5.js.map