@base-framework/ui 0.0.0
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/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/aside-template-D0KANPjh.js +35 -0
- package/dist/atoms.es.js +39 -0
- package/dist/bside-template-CDbINL4X.js +15 -0
- package/dist/calendar-DR_svCOR.js +424 -0
- package/dist/confirmation-D1Y_SgzE.js +1526 -0
- package/dist/icon-B9QUT2NY.js +47 -0
- package/dist/icons.es.js +658 -0
- package/dist/index.es.js +154 -0
- package/dist/inputs-BF3C3KfF.js +204 -0
- package/dist/mobile-nav-wrapper-7Qul1-mt.js +578 -0
- package/dist/molecules.es.js +45 -0
- package/dist/organisms.es.js +55 -0
- package/dist/pages.es.js +12 -0
- package/dist/sidebar-menu-page-M8hr9onX.js +224 -0
- package/dist/style.css +1 -0
- package/dist/tab-C_dZb2qH.js +1425 -0
- package/dist/templates.es.js +10 -0
- package/dist/tooltip-DCszmsxe.js +324 -0
- package/dist/types/components/atoms/atoms.d.ts +15 -0
- package/dist/types/components/atoms/badges/badge.d.ts +8 -0
- package/dist/types/components/atoms/buttons/buttons.d.ts +17 -0
- package/dist/types/components/atoms/cards/card.d.ts +8 -0
- package/dist/types/components/atoms/form/fieldset.d.ts +9 -0
- package/dist/types/components/atoms/form/inputs/checkbox.d.ts +10 -0
- package/dist/types/components/atoms/form/inputs/input-classes.d.ts +30 -0
- package/dist/types/components/atoms/form/inputs/inputs.d.ts +113 -0
- package/dist/types/components/atoms/form/inputs/range-slider.d.ts +10 -0
- package/dist/types/components/atoms/form/legend.d.ts +9 -0
- package/dist/types/components/atoms/form/select.d.ts +8 -0
- package/dist/types/components/atoms/icon.d.ts +8 -0
- package/dist/types/components/atoms/progress/circle-graph.d.ts +7 -0
- package/dist/types/components/atoms/progress/progress-bar.d.ts +9 -0
- package/dist/types/components/atoms/progress/semi-circle-graph.d.ts +7 -0
- package/dist/types/components/atoms/skeleton.d.ts +2 -0
- package/dist/types/components/atoms/tooltip.d.ts +12 -0
- package/dist/types/components/atoms/veil.d.ts +26 -0
- package/dist/types/components/icons/icons.d.ts +10 -0
- package/dist/types/components/molecules/alert.d.ts +7 -0
- package/dist/types/components/molecules/avatars/avatar.d.ts +15 -0
- package/dist/types/components/molecules/avatars/static-status-indicator.d.ts +2 -0
- package/dist/types/components/molecules/avatars/status-indicator.d.ts +2 -0
- package/dist/types/components/molecules/avatars/statuses.d.ts +13 -0
- package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +11 -0
- package/dist/types/components/molecules/breadcrumb/dots-indicator.d.ts +12 -0
- package/dist/types/components/molecules/combobox/combobox.d.ts +10 -0
- package/dist/types/components/molecules/counters/atoms.d.ts +3 -0
- package/dist/types/components/molecules/counters/counter.d.ts +11 -0
- package/dist/types/components/molecules/date-time/date-picker.d.ts +11 -0
- package/dist/types/components/molecules/date-time/time-frame.d.ts +1 -0
- package/dist/types/components/molecules/date-time/time-picker.d.ts +10 -0
- package/dist/types/components/molecules/delay-component.d.ts +18 -0
- package/dist/types/components/molecules/dialogs/confirmation.d.ts +27 -0
- package/dist/types/components/molecules/dialogs/dialog-container.d.ts +8 -0
- package/dist/types/components/molecules/dialogs/dialog.d.ts +78 -0
- package/dist/types/components/molecules/dropdowns/dropdown-item.d.ts +1 -0
- package/dist/types/components/molecules/dropdowns/dropdown-menu.d.ts +61 -0
- package/dist/types/components/molecules/dropdowns/dropdown.d.ts +1 -0
- package/dist/types/components/molecules/form/form-atoms.d.ts +40 -0
- package/dist/types/components/molecules/form/form-control.d.ts +10 -0
- package/dist/types/components/molecules/form/form-field.d.ts +10 -0
- package/dist/types/components/molecules/form/form.d.ts +14 -0
- package/dist/types/components/molecules/modals/atoms.d.ts +17 -0
- package/dist/types/components/molecules/modals/modal-container.d.ts +8 -0
- package/dist/types/components/molecules/modals/modal.d.ts +124 -0
- package/dist/types/components/molecules/molecules.d.ts +31 -0
- package/dist/types/components/molecules/notifications/notification-container.d.ts +31 -0
- package/dist/types/components/molecules/notifications/notification.d.ts +79 -0
- package/dist/types/components/molecules/popover.d.ts +57 -0
- package/dist/types/components/molecules/theme-toggle.d.ts +8 -0
- package/dist/types/components/molecules/toggle/toggle.d.ts +11 -0
- package/dist/types/components/organisms/button-group.d.ts +23 -0
- package/dist/types/components/organisms/calendar/calendar.d.ts +77 -0
- package/dist/types/components/organisms/calendar/month/calendar-cells.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/day-cell.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/day-header.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/month-calendar.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/navigation-button.d.ts +1 -0
- package/dist/types/components/organisms/calendar/utils.d.ts +3 -0
- package/dist/types/components/organisms/calendar/week/utils.d.ts +6 -0
- package/dist/types/components/organisms/calendar/week/week-calendar.d.ts +90 -0
- package/dist/types/components/organisms/calendar/week/week-cell.d.ts +1 -0
- package/dist/types/components/organisms/calendar/week/week-cells.d.ts +1 -0
- package/dist/types/components/organisms/calendar/week/week-header.d.ts +1 -0
- package/dist/types/components/organisms/lists/checkbox-col.d.ts +1 -0
- package/dist/types/components/organisms/lists/data-table-body.d.ts +5 -0
- package/dist/types/components/organisms/lists/data-table.d.ts +13 -0
- package/dist/types/components/organisms/lists/header-col.d.ts +2 -0
- package/dist/types/components/organisms/lists/table-header.d.ts +5 -0
- package/dist/types/components/organisms/lists/user-list.d.ts +15 -0
- package/dist/types/components/organisms/navigation/inline-navigation.d.ts +75 -0
- package/dist/types/components/organisms/navigation/main-link.d.ts +81 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/mobile-nav-wrapper.d.ts +14 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/navigation-popover.d.ts +36 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/popup-header.d.ts +1 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/title-header.d.ts +2 -0
- package/dist/types/components/organisms/navigation/nav-button-link.d.ts +44 -0
- package/dist/types/components/organisms/navigation/navigation-atoms.d.ts +8 -0
- package/dist/types/components/organisms/navigation/navigation-menu/navigation-menu.d.ts +58 -0
- package/dist/types/components/organisms/navigation/navigation.d.ts +58 -0
- package/dist/types/components/organisms/navigation/sidebar-menu/sidebar-menu.d.ts +2 -0
- package/dist/types/components/organisms/organisms.d.ts +38 -0
- package/dist/types/components/organisms/overlays/dockable-overlay.d.ts +38 -0
- package/dist/types/components/organisms/overlays/inline-overlay.d.ts +18 -0
- package/dist/types/components/organisms/overlays/overlay.d.ts +73 -0
- package/dist/types/components/organisms/panel.d.ts +22 -0
- package/dist/types/components/organisms/search/dropdown.d.ts +8 -0
- package/dist/types/components/organisms/search/search-dropdown.d.ts +10 -0
- package/dist/types/components/organisms/search/search-input.d.ts +7 -0
- package/dist/types/components/organisms/tabs/button-tab.d.ts +65 -0
- package/dist/types/components/organisms/tabs/tab-group.d.ts +48 -0
- package/dist/types/components/organisms/tabs/tab-navigation.d.ts +62 -0
- package/dist/types/components/organisms/tabs/tab.d.ts +35 -0
- package/dist/types/components/pages/basic-page.d.ts +19 -0
- package/dist/types/components/pages/blank-page.d.ts +17 -0
- package/dist/types/components/pages/center-page.d.ts +17 -0
- package/dist/types/components/pages/full-contain-page.d.ts +17 -0
- package/dist/types/components/pages/full-page.d.ts +25 -0
- package/dist/types/components/pages/fullscreen-page.d.ts +17 -0
- package/dist/types/components/pages/main-section.d.ts +8 -0
- package/dist/types/components/pages/page.d.ts +16 -0
- package/dist/types/components/pages/pages.d.ts +10 -0
- package/dist/types/components/pages/sidebar-menu-page.d.ts +70 -0
- package/dist/types/components/pages/templates/aside-template.d.ts +8 -0
- package/dist/types/components/pages/templates/bside-template.d.ts +8 -0
- package/dist/types/components/pages/templates/full-template.d.ts +8 -0
- package/dist/types/components/pages/templates/row.d.ts +8 -0
- package/dist/types/components/pages/templates/template-atoms.d.ts +16 -0
- package/dist/types/components/pages/templates/template.d.ts +8 -0
- package/dist/types/components/pages/templates/templates.d.ts +5 -0
- package/dist/types/ui.d.ts +6 -0
- package/dist/veil-B9GQfH0d.js +29 -0
- package/package.json +57 -0
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
var w = Object.defineProperty;
|
|
2
|
+
var S = (t, s, e) => s in t ? w(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
|
+
var l = (t, s, e) => S(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { I as N, Label as B, Span as L, Ul as r, H4 as C, Nav as h, Div as o, Header as y, H1 as I, H3 as f, OnState as $ } from "@base-framework/atoms";
|
|
5
|
+
import { Component as i, Atom as c, NavLink as H, router as p } from "@base-framework/base";
|
|
6
|
+
import { I as x, B as m } from "./icon-B9QUT2NY.js";
|
|
7
|
+
import { Icons as u } from "./icons.es.js";
|
|
8
|
+
class M extends i {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* This will set the class.
|
|
13
|
+
* @member {string} class
|
|
14
|
+
* @default ''
|
|
15
|
+
*/
|
|
16
|
+
l(this, "class", "");
|
|
17
|
+
/**
|
|
18
|
+
* This will set the check callback.
|
|
19
|
+
* @member {function} checkCallBack
|
|
20
|
+
* @default null
|
|
21
|
+
*/
|
|
22
|
+
l(this, "checkCallBack", null);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* This will render the component.
|
|
26
|
+
*
|
|
27
|
+
* @override
|
|
28
|
+
* @returns {object}
|
|
29
|
+
*/
|
|
30
|
+
render() {
|
|
31
|
+
const e = this.state;
|
|
32
|
+
return {
|
|
33
|
+
class: this.class || "",
|
|
34
|
+
onState: [
|
|
35
|
+
["selected", {
|
|
36
|
+
selected: !0
|
|
37
|
+
}],
|
|
38
|
+
["active", {
|
|
39
|
+
active: !0
|
|
40
|
+
}]
|
|
41
|
+
],
|
|
42
|
+
click: () => {
|
|
43
|
+
if (e.toggle("active"), !this.checkCallBack)
|
|
44
|
+
return;
|
|
45
|
+
const a = e.active ? this : null;
|
|
46
|
+
this.checkCallBack(a);
|
|
47
|
+
},
|
|
48
|
+
children: this.children
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* This will set up the states.
|
|
53
|
+
*
|
|
54
|
+
* @override
|
|
55
|
+
* @protected
|
|
56
|
+
* @returns {object}
|
|
57
|
+
*/
|
|
58
|
+
setupStates() {
|
|
59
|
+
return {
|
|
60
|
+
selected: !1,
|
|
61
|
+
active: !1
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* This will update the states.
|
|
66
|
+
*
|
|
67
|
+
* @param {object} selected
|
|
68
|
+
* @returns {void}
|
|
69
|
+
*/
|
|
70
|
+
update(e) {
|
|
71
|
+
this.state.set({
|
|
72
|
+
selected: e,
|
|
73
|
+
active: e
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const O = c(({ options: t, click: s }, e) => ({
|
|
78
|
+
tag: "li",
|
|
79
|
+
...{
|
|
80
|
+
class: `relative flex flex-row w-auto text-left p-0 overflow-hidden transition-all cursor-pointer min-w-[48px] rounded-md option${t ? " sub" : ""}`,
|
|
81
|
+
click: s
|
|
82
|
+
},
|
|
83
|
+
children: e
|
|
84
|
+
})), z = (t, s = null, e = !1) => [
|
|
85
|
+
s && N({
|
|
86
|
+
class: "icon w-12 rounded-md flex items-center justify-center",
|
|
87
|
+
onState: ["selected", {
|
|
88
|
+
selected: !0
|
|
89
|
+
}],
|
|
90
|
+
html: s
|
|
91
|
+
}),
|
|
92
|
+
B({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, t),
|
|
93
|
+
e && L(
|
|
94
|
+
{
|
|
95
|
+
class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
|
|
96
|
+
onState: [
|
|
97
|
+
["selected", {
|
|
98
|
+
rotate: !0
|
|
99
|
+
}],
|
|
100
|
+
["active", {
|
|
101
|
+
rotate: !0
|
|
102
|
+
}]
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
[
|
|
106
|
+
x({ size: "xs" }, u.chevron.single.down)
|
|
107
|
+
]
|
|
108
|
+
)
|
|
109
|
+
];
|
|
110
|
+
class g extends i {
|
|
111
|
+
constructor() {
|
|
112
|
+
super(...arguments);
|
|
113
|
+
/**
|
|
114
|
+
* This will set the label.
|
|
115
|
+
* @member {string} label
|
|
116
|
+
* @default ''
|
|
117
|
+
*/
|
|
118
|
+
l(this, "label", "");
|
|
119
|
+
/**
|
|
120
|
+
* This will set the icon.
|
|
121
|
+
* @member {string} icon
|
|
122
|
+
* @default null
|
|
123
|
+
*/
|
|
124
|
+
l(this, "icon", null);
|
|
125
|
+
/**
|
|
126
|
+
* This will set the href.
|
|
127
|
+
* @member {string} href
|
|
128
|
+
* @default null
|
|
129
|
+
*/
|
|
130
|
+
l(this, "href", null);
|
|
131
|
+
/**
|
|
132
|
+
* This will set the exact.
|
|
133
|
+
* @member {boolean} exact
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
l(this, "exact", !1);
|
|
137
|
+
/**
|
|
138
|
+
* This will set the options.
|
|
139
|
+
* @member {array} options
|
|
140
|
+
*/
|
|
141
|
+
l(this, "options", []);
|
|
142
|
+
/**
|
|
143
|
+
* This will set the content.
|
|
144
|
+
* @member {array} content
|
|
145
|
+
* @default null
|
|
146
|
+
*/
|
|
147
|
+
l(this, "content", null);
|
|
148
|
+
/**
|
|
149
|
+
* This will set the call back.
|
|
150
|
+
* @member {function} callBack
|
|
151
|
+
*/
|
|
152
|
+
l(this, "callBack", null);
|
|
153
|
+
/**
|
|
154
|
+
* This will set the check call back.
|
|
155
|
+
* @member {function} checkCallBack
|
|
156
|
+
*/
|
|
157
|
+
l(this, "checkCallBack", null);
|
|
158
|
+
/**
|
|
159
|
+
* This will set the link.
|
|
160
|
+
* @member {object} link
|
|
161
|
+
*/
|
|
162
|
+
l(this, "link", null);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* This will render the component.
|
|
166
|
+
*
|
|
167
|
+
* @override
|
|
168
|
+
* @returns {object}
|
|
169
|
+
*/
|
|
170
|
+
render() {
|
|
171
|
+
const e = !this.options && this.callBack;
|
|
172
|
+
return O(
|
|
173
|
+
{ options: this.options, click: e },
|
|
174
|
+
[
|
|
175
|
+
this.addLink()
|
|
176
|
+
]
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* This will add the link.
|
|
181
|
+
*
|
|
182
|
+
* @returns {object}
|
|
183
|
+
* @protected
|
|
184
|
+
*/
|
|
185
|
+
addLink() {
|
|
186
|
+
const e = this.options && this.options.length > 0, a = this.content || z(this.label, this.icon, e);
|
|
187
|
+
return this.href ? new H(
|
|
188
|
+
{
|
|
189
|
+
class: "flex flex-auto flex-row",
|
|
190
|
+
cache: "link",
|
|
191
|
+
href: this.href,
|
|
192
|
+
activeClass: "selected",
|
|
193
|
+
exact: this.exact || !1
|
|
194
|
+
},
|
|
195
|
+
a
|
|
196
|
+
) : new M({
|
|
197
|
+
class: "flex flex-auto flex-row",
|
|
198
|
+
cache: "link",
|
|
199
|
+
checkCallBack: this.checkCallBack
|
|
200
|
+
}, a);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* This will check if the link is selected.
|
|
204
|
+
*
|
|
205
|
+
* @returns {boolean}
|
|
206
|
+
*/
|
|
207
|
+
isSelected() {
|
|
208
|
+
return this.link.state.get("selected");
|
|
209
|
+
}
|
|
210
|
+
update(e) {
|
|
211
|
+
this.link.update(e);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const E = c(({ map: t }, s) => r({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: t }, [
|
|
215
|
+
C({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, s)
|
|
216
|
+
]));
|
|
217
|
+
class P extends i {
|
|
218
|
+
constructor() {
|
|
219
|
+
super(...arguments);
|
|
220
|
+
/**
|
|
221
|
+
* This will set the options.
|
|
222
|
+
* @member {array} options
|
|
223
|
+
*/
|
|
224
|
+
l(this, "options", []);
|
|
225
|
+
/**
|
|
226
|
+
* This will set the class.
|
|
227
|
+
* @member {string} class
|
|
228
|
+
*/
|
|
229
|
+
l(this, "class", "");
|
|
230
|
+
/**
|
|
231
|
+
* This will set the mobile border.
|
|
232
|
+
* @member {boolean} mobileBorder
|
|
233
|
+
* @default false
|
|
234
|
+
*/
|
|
235
|
+
l(this, "mobileBorder", !1);
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* This will render the component.
|
|
239
|
+
*
|
|
240
|
+
* @returns {object}
|
|
241
|
+
*/
|
|
242
|
+
render() {
|
|
243
|
+
const e = this.mapOptions(this.options), a = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
|
|
244
|
+
return h({ class: `navigation flex flex-auto flex-col ${a}` }, [
|
|
245
|
+
r({
|
|
246
|
+
class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
|
|
247
|
+
map: e
|
|
248
|
+
}),
|
|
249
|
+
...this.addSubs()
|
|
250
|
+
]);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* This will get the options.
|
|
254
|
+
*
|
|
255
|
+
* @param {array} options
|
|
256
|
+
* @returns {array}
|
|
257
|
+
*/
|
|
258
|
+
mapOptions(e = []) {
|
|
259
|
+
return [e.map((n) => n.group ? this.addGroup(n) : this.addLink(n)), (n) => n];
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* This will get the subs.
|
|
263
|
+
*
|
|
264
|
+
* @returns {array}
|
|
265
|
+
*/
|
|
266
|
+
addSubs() {
|
|
267
|
+
return [];
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* This will add a group.
|
|
271
|
+
*
|
|
272
|
+
* @param {object} option
|
|
273
|
+
* @returns {object}
|
|
274
|
+
*/
|
|
275
|
+
addGroup(e) {
|
|
276
|
+
const a = this.mapOptions(e.options);
|
|
277
|
+
return E({ map: a }, e.group);
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* This will add a link.
|
|
281
|
+
*
|
|
282
|
+
* @param {object} option
|
|
283
|
+
* @returns {object}
|
|
284
|
+
*/
|
|
285
|
+
addLink(e) {
|
|
286
|
+
return new g(e);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
class d extends P {
|
|
290
|
+
onCreated() {
|
|
291
|
+
this.links = [];
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* This will set up the sub nav.
|
|
295
|
+
*
|
|
296
|
+
* @param {object} link
|
|
297
|
+
* @returns {object}
|
|
298
|
+
*/
|
|
299
|
+
setupSubNav(s) {
|
|
300
|
+
return new G(
|
|
301
|
+
{
|
|
302
|
+
parentLink: s,
|
|
303
|
+
options: s.options
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* This will add a sub navigation.
|
|
309
|
+
*
|
|
310
|
+
* @param {object} link
|
|
311
|
+
* @returns {object}
|
|
312
|
+
*/
|
|
313
|
+
addSubNav(s) {
|
|
314
|
+
const e = this.setupSubNav(s);
|
|
315
|
+
return s.sub = e, e;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* This will add a link.
|
|
319
|
+
*
|
|
320
|
+
* @param {object} option
|
|
321
|
+
* @returns {object}
|
|
322
|
+
*/
|
|
323
|
+
addLink(s) {
|
|
324
|
+
const e = new g(s);
|
|
325
|
+
if (this.links.push(e), !e.options)
|
|
326
|
+
return e;
|
|
327
|
+
const a = this.addSubNav(e);
|
|
328
|
+
return {
|
|
329
|
+
class: "child-group",
|
|
330
|
+
link: e,
|
|
331
|
+
sub: a
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
const T = (t, s) => new RegExp(`${t}($|/|\\.).*`).test(s), A = (t, s) => {
|
|
336
|
+
const e = t.link.panel.pathname;
|
|
337
|
+
return !e && t.isSelected() ? !0 : t.exact ? s === e : T(e, s);
|
|
338
|
+
};
|
|
339
|
+
class G extends d {
|
|
340
|
+
constructor() {
|
|
341
|
+
super(...arguments);
|
|
342
|
+
/**
|
|
343
|
+
* This will set the parent link.
|
|
344
|
+
* @member {object} parentLink
|
|
345
|
+
* @default null
|
|
346
|
+
*/
|
|
347
|
+
l(this, "parentLink", null);
|
|
348
|
+
/**
|
|
349
|
+
* This will set the main class name.
|
|
350
|
+
* @member {string} mainClassName
|
|
351
|
+
* @default ''
|
|
352
|
+
*/
|
|
353
|
+
l(this, "mainClassName", "");
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* This will render the component.
|
|
357
|
+
*
|
|
358
|
+
* @returns {object}
|
|
359
|
+
*/
|
|
360
|
+
render() {
|
|
361
|
+
const e = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, a = this.mapOptions(this.options);
|
|
362
|
+
return h({ class: e, onState: this.onState() }, [
|
|
363
|
+
r({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...a, ...this.addSubs(), this.addWatcher()])
|
|
364
|
+
]);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* This will add awatcher to update the links
|
|
368
|
+
* when the path changes.
|
|
369
|
+
*
|
|
370
|
+
* @returns {object}
|
|
371
|
+
*/
|
|
372
|
+
addWatcher() {
|
|
373
|
+
return {
|
|
374
|
+
watch: {
|
|
375
|
+
value: ["[[path]]", p.data],
|
|
376
|
+
callBack: this.updateLinks.bind(this)
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* This will set up the on state.
|
|
382
|
+
*
|
|
383
|
+
* @returns {array}
|
|
384
|
+
*/
|
|
385
|
+
onState() {
|
|
386
|
+
return [
|
|
387
|
+
["selected", { active: !0 }],
|
|
388
|
+
["active", { active: !0 }]
|
|
389
|
+
];
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* This will set up the states.
|
|
393
|
+
*
|
|
394
|
+
* @returns {object}
|
|
395
|
+
*/
|
|
396
|
+
setupStates() {
|
|
397
|
+
return {
|
|
398
|
+
remotes: [
|
|
399
|
+
{
|
|
400
|
+
/**
|
|
401
|
+
* This will link the state to the parent link.
|
|
402
|
+
*/
|
|
403
|
+
id: this.parentLink.link.getId(),
|
|
404
|
+
selected: null,
|
|
405
|
+
active: null
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* This will update the links after setup.
|
|
412
|
+
*
|
|
413
|
+
* @returns {void}
|
|
414
|
+
*/
|
|
415
|
+
afterSetup() {
|
|
416
|
+
const e = p.data.get("path");
|
|
417
|
+
this.updateLinks(e);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* This will update the links.
|
|
421
|
+
*
|
|
422
|
+
* @param {string} value
|
|
423
|
+
* @returns {void}
|
|
424
|
+
*/
|
|
425
|
+
updateLinks(e) {
|
|
426
|
+
let a = !1;
|
|
427
|
+
for (const n of this.links)
|
|
428
|
+
if (n.rendered && (a = A(n, e), a === !0))
|
|
429
|
+
break;
|
|
430
|
+
this.parentLink.update(a);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
const V = ({ title: t, options: s, class: e = "", mobileBorder: a = !1, sticky: n = !1 }) => o({ class: `pb-12 p-4 pt-0 lg:p-6 lg:border-r w-full lg:max-w-[300px] h-full ${e}` }, [
|
|
434
|
+
t && y({ class: "pb-4 md:pb-2 px-6 flex flex-col" }, [
|
|
435
|
+
I({ class: "scroll-m-20 text-3xl lg:text-2xl font-bold tracking-tight" }, t)
|
|
436
|
+
]),
|
|
437
|
+
new d({ options: s, mobileBorder: a, class: n ? "sticky top-0" : "" })
|
|
438
|
+
]), W = (t) => f({ class: "text-lg ml-2" }, t), j = (t) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
|
|
439
|
+
m({
|
|
440
|
+
variant: "icon",
|
|
441
|
+
class: "m-2",
|
|
442
|
+
click: (s, { state: e }) => e.toggle("open"),
|
|
443
|
+
icon: u.arrows.left
|
|
444
|
+
}),
|
|
445
|
+
t.title && W(t.title)
|
|
446
|
+
]), Y = () => o({
|
|
447
|
+
class: `
|
|
448
|
+
absolute inset-0 bg-black/40 z-[-1] fadeIn
|
|
449
|
+
transition-opacity duration-200
|
|
450
|
+
`,
|
|
451
|
+
click: (t, { state: s }) => s.open = !1
|
|
452
|
+
});
|
|
453
|
+
class D extends i {
|
|
454
|
+
constructor() {
|
|
455
|
+
super(...arguments);
|
|
456
|
+
/**
|
|
457
|
+
* This will set the title.
|
|
458
|
+
* @member {string} title
|
|
459
|
+
*/
|
|
460
|
+
l(this, "title", "");
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* This will render the modal component.
|
|
464
|
+
*
|
|
465
|
+
* @returns {object}
|
|
466
|
+
*/
|
|
467
|
+
render() {
|
|
468
|
+
return o({
|
|
469
|
+
class: "fixed inset-0 z-50",
|
|
470
|
+
style: "[[typeClass]]"
|
|
471
|
+
}, [
|
|
472
|
+
Y(),
|
|
473
|
+
// Popover Content
|
|
474
|
+
o({
|
|
475
|
+
class: `
|
|
476
|
+
absolute popIn w-auto p-0 bg-popover m-auto shadow-lg rounded-md top-0 bottom-0 left-2 right-2 max-h-[85vh] text-inherit block
|
|
477
|
+
`,
|
|
478
|
+
dataSet: ["open", ["expanded", !0, "true"]]
|
|
479
|
+
}, [
|
|
480
|
+
o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
|
|
481
|
+
j({ title: this.title }),
|
|
482
|
+
o({ class: "flex flex-auto flex-col" }, this.children)
|
|
483
|
+
])
|
|
484
|
+
])
|
|
485
|
+
]);
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* This will setup the states.
|
|
489
|
+
*
|
|
490
|
+
* @returns {object}
|
|
491
|
+
*/
|
|
492
|
+
setupStates() {
|
|
493
|
+
return {
|
|
494
|
+
open: {
|
|
495
|
+
id: this.parent.getId(),
|
|
496
|
+
callBack: (n) => {
|
|
497
|
+
n === !1 && (document.documentElement.style.overflowY = "auto", this.destroy());
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* This will add the body scroll lock.
|
|
504
|
+
*
|
|
505
|
+
* @returns {void}
|
|
506
|
+
*/
|
|
507
|
+
afterSetup() {
|
|
508
|
+
document.documentElement.style.overflowY = "hidden";
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* This will override the set up to use the body.
|
|
512
|
+
*
|
|
513
|
+
* @param {object} container
|
|
514
|
+
*/
|
|
515
|
+
setContainer(e) {
|
|
516
|
+
this.container = app.root;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
const k = (t) => m({ class: "m-2", variant: "ghost", addState() {
|
|
520
|
+
return {
|
|
521
|
+
open: !1
|
|
522
|
+
};
|
|
523
|
+
}, click: (s, { state: e }) => e.toggle("open") }, [
|
|
524
|
+
x(u.bar.three)
|
|
525
|
+
]), R = (t) => f({ class: "text-lg ml-2" }, t), U = (t) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
526
|
+
k(),
|
|
527
|
+
t.title && R(t.title)
|
|
528
|
+
]), v = (t, s) => {
|
|
529
|
+
t.forEach((e) => {
|
|
530
|
+
if (e.options) {
|
|
531
|
+
v(e.options, s);
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
e.callBack = s;
|
|
535
|
+
});
|
|
536
|
+
}, b = (t) => {
|
|
537
|
+
const s = (e, { parent: a }) => a.parent.state.open = !1;
|
|
538
|
+
return v(t.options, s), o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
539
|
+
$(
|
|
540
|
+
"open",
|
|
541
|
+
(e) => e ? [
|
|
542
|
+
new D({ title: t.title }, [
|
|
543
|
+
new d(
|
|
544
|
+
{
|
|
545
|
+
options: t.options
|
|
546
|
+
}
|
|
547
|
+
)
|
|
548
|
+
])
|
|
549
|
+
] : null
|
|
550
|
+
)
|
|
551
|
+
]);
|
|
552
|
+
}, X = c((t) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
553
|
+
o([
|
|
554
|
+
k(),
|
|
555
|
+
b(t)
|
|
556
|
+
])
|
|
557
|
+
])), Z = c((t) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
558
|
+
o({ class: "flex flex-auto flex-col w-full" }, [
|
|
559
|
+
U(t),
|
|
560
|
+
b(t)
|
|
561
|
+
])
|
|
562
|
+
]));
|
|
563
|
+
export {
|
|
564
|
+
Y as B,
|
|
565
|
+
d as I,
|
|
566
|
+
g as M,
|
|
567
|
+
M as N,
|
|
568
|
+
j as P,
|
|
569
|
+
G as S,
|
|
570
|
+
U as T,
|
|
571
|
+
E as a,
|
|
572
|
+
P as b,
|
|
573
|
+
V as c,
|
|
574
|
+
X as d,
|
|
575
|
+
Z as e,
|
|
576
|
+
D as f,
|
|
577
|
+
k as g
|
|
578
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-D1Y_SgzE.js";
|
|
2
|
+
import { A as O, P as R, g as _ } from "./calendar-DR_svCOR.js";
|
|
3
|
+
export {
|
|
4
|
+
o as Alert,
|
|
5
|
+
O as Avatar,
|
|
6
|
+
t as Breadcrumb,
|
|
7
|
+
e as Combobox,
|
|
8
|
+
i as Confirmation,
|
|
9
|
+
r as CountDisplay,
|
|
10
|
+
n as Counter,
|
|
11
|
+
m as DatePicker,
|
|
12
|
+
l as DelayComponent,
|
|
13
|
+
S as DetailBody,
|
|
14
|
+
D as DetailSection,
|
|
15
|
+
c as Dialog,
|
|
16
|
+
u as DialogContainer,
|
|
17
|
+
d as DotsIndicator,
|
|
18
|
+
g as Dropdown,
|
|
19
|
+
p as DropdownItem,
|
|
20
|
+
C as DropdownMenu,
|
|
21
|
+
F as Form,
|
|
22
|
+
T as FormControl,
|
|
23
|
+
A as FormDescription,
|
|
24
|
+
P as FormField,
|
|
25
|
+
f as FormItem,
|
|
26
|
+
b as FormLabel,
|
|
27
|
+
w as FormMessage,
|
|
28
|
+
B as MinusButton,
|
|
29
|
+
I as Modal,
|
|
30
|
+
M as Notification,
|
|
31
|
+
x as NotificationContainer,
|
|
32
|
+
y as PlusButton,
|
|
33
|
+
R as PopOver,
|
|
34
|
+
k as STATUSES,
|
|
35
|
+
v as STATUS_CLASS,
|
|
36
|
+
N as SplitRow,
|
|
37
|
+
h as StaticStatusIndicator,
|
|
38
|
+
E as StatusIndicator,
|
|
39
|
+
L as ThemeToggle,
|
|
40
|
+
U as TimeFrame,
|
|
41
|
+
j as TimePicker,
|
|
42
|
+
q as Toggle,
|
|
43
|
+
_ as getPosition,
|
|
44
|
+
z as getStatusClass
|
|
45
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as p, S as N, p as g, n as k, o as u, T as C, k as D, U as M, W as T, f as c, h as B, i as m, c as y, d as W, b as h, e as H, a as P, g as f } from "./tab-C_dZb2qH.js";
|
|
2
|
+
import { b as I, C as S, D as L, a as O, F, M as U, c as G, p as j } from "./calendar-DR_svCOR.js";
|
|
3
|
+
import { B as q, I as z, M as A, d as E, e as J, g as K, N as Q, b as R, a as V, f as X, P as Y, c as Z, S as _, T as $ } from "./mobile-nav-wrapper-7Qul1-mt.js";
|
|
4
|
+
export {
|
|
5
|
+
s as BackButton,
|
|
6
|
+
q as Backdrop,
|
|
7
|
+
o as ButtonTab,
|
|
8
|
+
I as Calendar,
|
|
9
|
+
S as CalendarCells,
|
|
10
|
+
t as CheckboxCol,
|
|
11
|
+
r as DataTable,
|
|
12
|
+
n as DataTableBody,
|
|
13
|
+
L as DayCell,
|
|
14
|
+
O as DayHeader,
|
|
15
|
+
l as DockableOverlay,
|
|
16
|
+
F as FormatDate,
|
|
17
|
+
i as HeaderCol,
|
|
18
|
+
z as InlineNavigation,
|
|
19
|
+
d as InlineOverlay,
|
|
20
|
+
A as MainLink,
|
|
21
|
+
E as MobileNavButton,
|
|
22
|
+
J as MobileNavWrapper,
|
|
23
|
+
U as MonthCalendar,
|
|
24
|
+
K as NavButton,
|
|
25
|
+
Q as NavButtonLink,
|
|
26
|
+
R as Navigation,
|
|
27
|
+
V as NavigationGroup,
|
|
28
|
+
b as NavigationMenu,
|
|
29
|
+
X as NavigationPopover,
|
|
30
|
+
v as Overlay,
|
|
31
|
+
p as Panel,
|
|
32
|
+
Y as PopupHeader,
|
|
33
|
+
N as SearchDropdown,
|
|
34
|
+
Z as SidebarMenu,
|
|
35
|
+
_ as SubNavigation,
|
|
36
|
+
g as Tab,
|
|
37
|
+
k as TabGroup,
|
|
38
|
+
u as TabNavigation,
|
|
39
|
+
C as TableHeader,
|
|
40
|
+
$ as TitleHeader,
|
|
41
|
+
D as UserList,
|
|
42
|
+
M as UserListItem,
|
|
43
|
+
T as WeekCalendar,
|
|
44
|
+
c as WeekCell,
|
|
45
|
+
B as WeekCells,
|
|
46
|
+
m as WeekHeader,
|
|
47
|
+
G as addTime,
|
|
48
|
+
y as calculateWeekNumber,
|
|
49
|
+
W as generateWeeks,
|
|
50
|
+
h as getDateFromWeek,
|
|
51
|
+
H as getMonthDays,
|
|
52
|
+
P as getNextMonthDays,
|
|
53
|
+
f as getPreviousMonthDays,
|
|
54
|
+
j as pad
|
|
55
|
+
};
|
package/dist/pages.es.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-M8hr9onX.js";
|
|
2
|
+
export {
|
|
3
|
+
s as BasicPage,
|
|
4
|
+
P as BlankPage,
|
|
5
|
+
g as CenterPage,
|
|
6
|
+
n as FullContainPage,
|
|
7
|
+
l as FullPage,
|
|
8
|
+
i as FullscreenPage,
|
|
9
|
+
r as MainSection,
|
|
10
|
+
c as Page,
|
|
11
|
+
o as SidebarMenuPage
|
|
12
|
+
};
|