@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.
- package/ai/dialog.md +1 -1
- package/dist/ai/dialog.md +1 -1
- package/dist/{avatar-N8UvQjsm.cjs → avatar-By_6fdSR.cjs} +2 -2
- package/dist/{avatar-N8UvQjsm.cjs.map → avatar-By_6fdSR.cjs.map} +1 -1
- package/dist/{avatar-DbQohKTF.js → avatar-DZ45SZ_3.js} +17 -17
- package/dist/{avatar-DbQohKTF.js.map → avatar-DZ45SZ_3.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/{date-range-CREpHqxO.cjs → date-range-CVkBXQxc.cjs} +2 -2
- package/dist/{date-range-CREpHqxO.cjs.map → date-range-CVkBXQxc.cjs.map} +1 -1
- package/dist/{date-range-B7VG8UXD.js → date-range-Cnrrl6_Q.js} +2 -2
- package/dist/{date-range-B7VG8UXD.js.map → date-range-Cnrrl6_Q.js.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{dialog-content-ClfiDTji.cjs → dialog-content-Dm9ywkp4.cjs} +2 -2
- package/dist/{dialog-content-ClfiDTji.cjs.map → dialog-content-Dm9ywkp4.cjs.map} +1 -1
- package/dist/{dialog-content-Cc7LNx1o.js → dialog-content-MhUhElif.js} +2 -2
- package/dist/{dialog-content-Cc7LNx1o.js.map → dialog-content-MhUhElif.js.map} +1 -1
- package/dist/dialog-service-LvOr2E3k.js +132 -0
- package/dist/dialog-service-LvOr2E3k.js.map +1 -0
- package/dist/dialog-service-iRGqMSDe.cjs +2 -0
- package/dist/dialog-service-iRGqMSDe.cjs.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +177 -177
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/sheet-DMP3Pfe5.js +228 -0
- package/dist/sheet-DMP3Pfe5.js.map +1 -0
- package/dist/sheet-Dsx7bpof.cjs +52 -0
- package/dist/sheet-Dsx7bpof.cjs.map +1 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +5 -6
- package/dist/sheet.js.map +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.component-Bl4uy-_0.js +738 -0
- package/dist/theme.component-Bl4uy-_0.js.map +1 -0
- package/dist/theme.component-Dnf9PdX8.cjs +3 -0
- package/dist/theme.component-Dnf9PdX8.cjs.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{typewriter-DMKxup-I.js → typewriter-CnloNIdN.js} +6 -6
- package/dist/{typewriter-DMKxup-I.js.map → typewriter-CnloNIdN.js.map} +1 -1
- package/dist/typewriter.js +1 -1
- package/package.json +1 -1
- package/types/src/sheet/sheet.d.ts +0 -1
- package/types/src/sheet/sheet.service.d.ts +32 -118
- package/dist/dialog-events--DuMbZ8T.cjs +0 -2
- package/dist/dialog-events--DuMbZ8T.cjs.map +0 -1
- package/dist/dialog-events-mjOcyPQ-.js +0 -6
- package/dist/dialog-events-mjOcyPQ-.js.map +0 -1
- package/dist/dialog-service-BZZK8N6A.cjs +0 -2
- package/dist/dialog-service-BZZK8N6A.cjs.map +0 -1
- package/dist/dialog-service-DFMlRcXf.js +0 -128
- package/dist/dialog-service-DFMlRcXf.js.map +0 -1
- package/dist/sheet-BY3YdE4E.js +0 -149
- package/dist/sheet-BY3YdE4E.js.map +0 -1
- package/dist/sheet-BY85jX0R.cjs +0 -54
- package/dist/sheet-BY85jX0R.cjs.map +0 -1
- package/dist/sheet.service-CNz7lXHC.cjs +0 -3
- package/dist/sheet.service-CNz7lXHC.cjs.map +0 -1
- package/dist/sheet.service-DSvFe5PY.js +0 -842
- 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
|
|
3
|
-
import { l as
|
|
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
|
|
6
|
-
import { S as
|
|
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
|
|
8
|
+
import { S as pa, a as la } from "./icon-button-BW5ofOL5.js";
|
|
9
9
|
import "./media-BO-aZBTp.js";
|
|
10
|
-
import { S as
|
|
10
|
+
import { S as xa } from "./checkbox-BSYgpRsc.js";
|
|
11
11
|
import "./chips-Dn8RpKCE.js";
|
|
12
|
-
import { S as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
15
|
-
import { S as
|
|
16
|
-
import { S as
|
|
17
|
-
import { S as
|
|
18
|
-
import { C as
|
|
19
|
-
import { $ as
|
|
20
|
-
import { c as
|
|
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
|
|
23
|
-
import { S as
|
|
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
|
|
27
|
-
import { S as
|
|
28
|
-
import { L as se, a as
|
|
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
|
|
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
|
|
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
|
|
38
|
-
import "./sheet-
|
|
39
|
-
import { S as
|
|
40
|
-
import { S as
|
|
41
|
-
import {
|
|
42
|
-
import { B as
|
|
43
|
-
import {
|
|
44
|
-
import { a as
|
|
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-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
134
|
-
|
|
133
|
+
Nr as SchmancyThemeComponent,
|
|
134
|
+
Qa as SchmancyTimezonesSelect,
|
|
135
135
|
kr as SchmancyTooltip,
|
|
136
136
|
Yr as SchmancyTree,
|
|
137
137
|
_r as SchmancyTypography,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
212
|
+
Ra as validateInitialDateRange
|
|
213
213
|
};
|
|
214
214
|
//# sourceMappingURL=index.js.map
|
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-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
|
package/dist/nav-drawer.js
CHANGED
|
@@ -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]">← </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
|