@stachelock/ui 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-B3KQTxfD.js → CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js} +2 -2
- package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-B3KQTxfD.js.map → CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js.map} +1 -1
- package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js +1300 -0
- package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js.map +1 -0
- package/dist/{DashboardLayout.vue_vue_type_script_setup_true_lang-CClxYrOW.js → DashboardLayout.vue_vue_type_script_setup_true_lang-VeZhdPhj.js} +38 -37
- package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-VeZhdPhj.js.map +1 -0
- package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js +217 -0
- package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js.map +1 -0
- package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-qAwVNm--.js → DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js} +40 -24
- package/dist/DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js.map +1 -0
- package/dist/EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js +157 -0
- package/dist/EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js.map +1 -0
- package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js +103 -0
- package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js.map +1 -0
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js +522 -0
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js.map +1 -0
- package/dist/{SidebarLayout.vue_vue_type_script_setup_true_lang-CQIW5dy_.js → SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js} +28 -27
- package/dist/{SidebarLayout.vue_vue_type_script_setup_true_lang-CQIW5dy_.js.map → SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js.map} +1 -1
- package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js +273 -0
- package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js.map +1 -0
- package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-RHqhKoK5.js → TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js} +60 -50
- package/dist/TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js.map +1 -0
- package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js +82 -0
- package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js.map +1 -0
- package/dist/{UiModal.vue_vue_type_script_setup_true_lang-CMk62qeq.js → UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js} +21 -20
- package/dist/{UiModal.vue_vue_type_script_setup_true_lang-CMk62qeq.js.map → UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js.map} +1 -1
- package/dist/XMarkIcon-C4wILUsz.js +40 -0
- package/dist/XMarkIcon-C4wILUsz.js.map +1 -0
- package/dist/calculate-active-index-CksdUwZY.js +87 -0
- package/dist/calculate-active-index-CksdUwZY.js.map +1 -0
- package/dist/calendars/CalendarDashboard.js +2 -2
- package/dist/calendars/CalendarHeader.js +1 -1
- package/dist/calendars/EventCard.js +1 -1
- package/dist/calendars/EventsList.js +1 -1
- package/dist/components/Breadcrumb.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/RadialProgressBar.d.ts +2 -2
- package/dist/components/RadialProgressBar.js +1 -1
- package/dist/description-CBd3BJ9O.js +30 -0
- package/dist/description-CBd3BJ9O.js.map +1 -0
- package/dist/dialog-U1KNiPzc.js +493 -0
- package/dist/dialog-U1KNiPzc.js.map +1 -0
- package/dist/form-DQKuKVqJ.js +51 -0
- package/dist/form-DQKuKVqJ.js.map +1 -0
- package/dist/forms/DynamicForm.js +1 -1
- package/dist/forms/DynamicFormField.js +1 -1
- package/dist/forms/FormFieldWrapper.js +71 -42
- package/dist/forms/FormFieldWrapper.js.map +1 -1
- package/dist/index.js +307 -242
- package/dist/index.js.map +1 -1
- package/dist/inputs/ComboboxInput.js +1 -1
- package/dist/inputs/SelectInput.js +1 -1
- package/dist/inputs/SwitchInput.js +1 -1
- package/dist/inputs/TagifyInput.js +1 -1
- package/dist/keyboard-DJD8TwH4.js +113 -0
- package/dist/keyboard-DJD8TwH4.js.map +1 -0
- package/dist/layouts/DashboardLayout.js +1 -1
- package/dist/layouts/SidebarLayout.js +1 -1
- package/dist/open-closed-DgcU-HDT.js +179 -0
- package/dist/open-closed-DgcU-HDT.js.map +1 -0
- package/dist/src/components/layouts/DashboardLayout.d.ts.map +1 -1
- package/dist/src/components/layouts/SidebarLayout.d.ts.map +1 -1
- package/dist/transition-CuxxW9dY.js +209 -0
- package/dist/transition-CuxxW9dY.js.map +1 -0
- package/package.json +1 -1
- package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-DoJHjJsA.js +0 -304
- package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-DoJHjJsA.js.map +0 -1
- package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-CClxYrOW.js.map +0 -1
- package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BKhcXkNG.js +0 -201
- package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-BKhcXkNG.js.map +0 -1
- package/dist/DynamicFormField.vue_vue_type_script_setup_true_lang-qAwVNm--.js.map +0 -1
- package/dist/EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js +0 -75
- package/dist/EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js.map +0 -1
- package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cpc9A9Ev.js +0 -89
- package/dist/EventsList.vue_vue_type_script_setup_true_lang-Cpc9A9Ev.js.map +0 -1
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BguP8xMU.js +0 -242
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-BguP8xMU.js.map +0 -1
- package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BagTQ6M0.js +0 -197
- package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-BagTQ6M0.js.map +0 -1
- package/dist/TagifyInput.vue_vue_type_script_setup_true_lang-RHqhKoK5.js.map +0 -1
- package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-CMH47CoK.js +0 -68
- package/dist/UiBreadcrumb.vue_vue_type_script_setup_true_lang-CMH47CoK.js.map +0 -1
- package/dist/UiRadialProgressBar.vue_vue_type_script_setup_true_lang-BGCBJa2S.js +0 -72
- package/dist/UiRadialProgressBar.vue_vue_type_script_setup_true_lang-BGCBJa2S.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,65 +1,64 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { defineAsyncComponent as
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as
|
|
24
|
-
import { _ as
|
|
25
|
-
import { _
|
|
26
|
-
import { _ as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { _ } from "./
|
|
29
|
-
import { _ as
|
|
30
|
-
import { _ as
|
|
31
|
-
import { _ as
|
|
32
|
-
import { _ as
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { _ as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
-
const te = {
|
|
1
|
+
import { a as dt, g as ut, s as pt } from "./id-DafBB_QF.js";
|
|
2
|
+
import { defineAsyncComponent as E, defineComponent as y, computed as R, ref as H, watch as W, createElementBlock as u, openBlock as p, normalizeClass as G, createCommentVNode as h, createElementVNode as s, toDisplayString as f, reactive as Y, createVNode as d } from "vue";
|
|
3
|
+
import i from "./components/TextInput.js";
|
|
4
|
+
import { _ as q } from "./UiAvatar.vue_vue_type_script_setup_true_lang-CDNjUA1L.js";
|
|
5
|
+
import J from "./components/Badge.js";
|
|
6
|
+
import { _ as K } from "./UiBreadcrumb.vue_vue_type_script_setup_true_lang-quGuN9v4.js";
|
|
7
|
+
import Q from "./components/Button.js";
|
|
8
|
+
import { _ as X } from "./UiLoading.vue_vue_type_script_setup_true_lang-DCz52-Me.js";
|
|
9
|
+
import Z from "./components/LoadingDots.js";
|
|
10
|
+
import { _ as ee } from "./UiModal.vue_vue_type_script_setup_true_lang-SAo39zpS.js";
|
|
11
|
+
import { _ as te } from "./UiNavLink.vue_vue_type_script_setup_true_lang-Bz5oiCCk.js";
|
|
12
|
+
import { _ as se } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-0zFKwh43.js";
|
|
13
|
+
import { _ as ae } from "./UiTable.vue_vue_type_script_setup_true_lang-hI1_xamh.js";
|
|
14
|
+
import { _ as oe } from "./UiTransition.vue_vue_type_script_setup_true_lang-DwBTj18t.js";
|
|
15
|
+
import { _ as C } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-Cirr0hMB.js";
|
|
16
|
+
import { _ as v } from "./DayCalendar.vue_vue_type_script_setup_true_lang-xE5bCa3O.js";
|
|
17
|
+
import { _ as I } from "./EventCard.vue_vue_type_script_setup_true_lang-YV1lfgUY.js";
|
|
18
|
+
import { _ as S } from "./EventsList.vue_vue_type_script_setup_true_lang-Cn_WOpZi.js";
|
|
19
|
+
import { _ as w } from "./MonthCalendar.vue_vue_type_script_setup_true_lang-B9Bs0z8j.js";
|
|
20
|
+
import { _ as $ } from "./WeekCalendar.vue_vue_type_script_setup_true_lang-DAFQiRI9.js";
|
|
21
|
+
import { _ as T } from "./YearCalendar.vue_vue_type_script_setup_true_lang-BfJkvmpN.js";
|
|
22
|
+
import { _ as k } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BpfPAZiT.js";
|
|
23
|
+
import { _ as L } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-DvT03FIS.js";
|
|
24
|
+
import { _ as g } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-tYAo46wK.js";
|
|
25
|
+
import { _ } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-2dJNxQUF.js";
|
|
26
|
+
import { _ as b } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-CbR651TU.js";
|
|
27
|
+
import { _ as x } from "./SwitchInput.vue_vue_type_script_setup_true_lang-BFr2SByh.js";
|
|
28
|
+
import { _ as c } from "./SelectInput.vue_vue_type_script_setup_true_lang-BPjHLHdM.js";
|
|
29
|
+
import { _ as M } from "./TagifyInput.vue_vue_type_script_setup_true_lang-DRR6jt_8.js";
|
|
30
|
+
import { _ as F } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-VeZhdPhj.js";
|
|
31
|
+
import { _ as V } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
|
|
32
|
+
import { _ as D } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
|
|
33
|
+
import { _ as B } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-2WURj34G.js";
|
|
34
|
+
import { _ as P } from "./NavigationItem.vue_vue_type_script_setup_true_lang-DiNg3gz2.js";
|
|
35
|
+
import { _ as A } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-J1nfUTdM.js";
|
|
36
|
+
import O from "./calendars/CalendarDashboard.js";
|
|
37
|
+
import N from "./forms/FormFieldWrapper.js";
|
|
38
|
+
const le = {
|
|
40
39
|
text: {
|
|
41
40
|
component: "TextInput",
|
|
42
|
-
loader: () => Promise.resolve(
|
|
41
|
+
loader: () => Promise.resolve(i)
|
|
43
42
|
},
|
|
44
43
|
email: {
|
|
45
44
|
component: "TextInput",
|
|
46
|
-
loader: () => Promise.resolve(
|
|
45
|
+
loader: () => Promise.resolve(i)
|
|
47
46
|
},
|
|
48
47
|
password: {
|
|
49
48
|
component: "TextInput",
|
|
50
|
-
loader: () => Promise.resolve(
|
|
49
|
+
loader: () => Promise.resolve(i)
|
|
51
50
|
},
|
|
52
51
|
number: {
|
|
53
52
|
component: "TextInput",
|
|
54
|
-
loader: () => Promise.resolve(
|
|
53
|
+
loader: () => Promise.resolve(i)
|
|
55
54
|
},
|
|
56
55
|
tel: {
|
|
57
56
|
component: "TextInput",
|
|
58
|
-
loader: () => Promise.resolve(
|
|
57
|
+
loader: () => Promise.resolve(i)
|
|
59
58
|
},
|
|
60
59
|
url: {
|
|
61
60
|
component: "TextInput",
|
|
62
|
-
loader: () => Promise.resolve(
|
|
61
|
+
loader: () => Promise.resolve(i)
|
|
63
62
|
},
|
|
64
63
|
textarea: {
|
|
65
64
|
component: "TextAreaInput",
|
|
@@ -82,35 +81,35 @@ const te = {
|
|
|
82
81
|
loader: () => import("./inputs/SwitchInput.js")
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
|
-
class
|
|
86
|
-
componentMap = { ...
|
|
84
|
+
class ne {
|
|
85
|
+
componentMap = { ...le };
|
|
87
86
|
loadedComponents = /* @__PURE__ */ new Map();
|
|
88
87
|
/**
|
|
89
88
|
* Register a new component type
|
|
90
89
|
*/
|
|
91
|
-
register(
|
|
92
|
-
this.componentMap[
|
|
90
|
+
register(e, l, n) {
|
|
91
|
+
this.componentMap[e] = { component: l, loader: n }, this.loadedComponents.delete(e);
|
|
93
92
|
}
|
|
94
93
|
/**
|
|
95
94
|
* Get a component for a field type
|
|
96
95
|
*/
|
|
97
|
-
getComponent(
|
|
98
|
-
const
|
|
99
|
-
if (!
|
|
100
|
-
return console.warn(`Component type "${
|
|
101
|
-
if (this.loadedComponents.has(
|
|
102
|
-
return this.loadedComponents.get(
|
|
103
|
-
const n =
|
|
104
|
-
loader:
|
|
96
|
+
getComponent(e) {
|
|
97
|
+
const l = this.componentMap[e];
|
|
98
|
+
if (!l)
|
|
99
|
+
return console.warn(`Component type "${e}" is not registered`), null;
|
|
100
|
+
if (this.loadedComponents.has(e))
|
|
101
|
+
return this.loadedComponents.get(e);
|
|
102
|
+
const n = E({
|
|
103
|
+
loader: l.loader,
|
|
105
104
|
delay: 0
|
|
106
105
|
});
|
|
107
|
-
return this.loadedComponents.set(
|
|
106
|
+
return this.loadedComponents.set(e, n), n;
|
|
108
107
|
}
|
|
109
108
|
/**
|
|
110
109
|
* Check if a component type is registered
|
|
111
110
|
*/
|
|
112
|
-
hasComponent(
|
|
113
|
-
return
|
|
111
|
+
hasComponent(e) {
|
|
112
|
+
return e in this.componentMap;
|
|
114
113
|
}
|
|
115
114
|
/**
|
|
116
115
|
* Get all registered component types
|
|
@@ -121,8 +120,8 @@ class oe {
|
|
|
121
120
|
/**
|
|
122
121
|
* Unregister a component type
|
|
123
122
|
*/
|
|
124
|
-
unregister(
|
|
125
|
-
delete this.componentMap[
|
|
123
|
+
unregister(e) {
|
|
124
|
+
delete this.componentMap[e], this.loadedComponents.delete(e);
|
|
126
125
|
}
|
|
127
126
|
/**
|
|
128
127
|
* Clear all cached components
|
|
@@ -131,32 +130,98 @@ class oe {
|
|
|
131
130
|
this.loadedComponents.clear();
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
|
|
133
|
+
const j = new ne();
|
|
134
|
+
function lt(a, e, l) {
|
|
135
|
+
j.register(a, e, l);
|
|
137
136
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
137
|
+
function nt(a) {
|
|
138
|
+
return j.getComponent(a);
|
|
140
139
|
}
|
|
141
|
-
const
|
|
140
|
+
const re = {
|
|
141
|
+
viewBox: "0 0 36 36",
|
|
142
|
+
class: "sl-transform -sl-rotate-90 sl-w-full sl-h-full"
|
|
143
|
+
}, me = ["stroke-dasharray"], ie = {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: "sl-absolute sl-top-1/2 sl-left-1/2 sl-transform -sl-translate-x-1/2 -sl-translate-y-1/2 sl-text-center"
|
|
146
|
+
}, de = {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "sl-absolute sl-top-1/2 sl-left-1/2 sl-transform -sl-translate-x-1/2 -sl-translate-y-1/2 sl-text-center sl-text-xs"
|
|
149
|
+
}, ue = /* @__PURE__ */ y({
|
|
150
|
+
__name: "UiRadialProgressBar",
|
|
151
|
+
props: {
|
|
152
|
+
progress: {
|
|
153
|
+
type: Number,
|
|
154
|
+
default: 0
|
|
155
|
+
},
|
|
156
|
+
label: {
|
|
157
|
+
type: String,
|
|
158
|
+
default: ""
|
|
159
|
+
},
|
|
160
|
+
showProgressLabel: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: !1
|
|
163
|
+
},
|
|
164
|
+
size: {
|
|
165
|
+
type: String,
|
|
166
|
+
default: "md"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
setup(a) {
|
|
170
|
+
const e = a, l = R(() => {
|
|
171
|
+
switch (e.size) {
|
|
172
|
+
case "xs":
|
|
173
|
+
return "sl-h-4 sl-w-4";
|
|
174
|
+
case "sm":
|
|
175
|
+
return "sl-h-8 sl-w-8";
|
|
176
|
+
case "md":
|
|
177
|
+
return "sl-h-12 sl-w-12";
|
|
178
|
+
case "lg":
|
|
179
|
+
return "sl-h-16 sl-w-16";
|
|
180
|
+
default:
|
|
181
|
+
return "sl-h-8 sl-w-8";
|
|
182
|
+
}
|
|
183
|
+
}), n = H(e.progress);
|
|
184
|
+
return W(() => e.progress, (m) => {
|
|
185
|
+
n.value = m;
|
|
186
|
+
}), (m, r) => (p(), u("div", {
|
|
187
|
+
class: G(["sl-relative", l.value])
|
|
188
|
+
}, [
|
|
189
|
+
(p(), u("svg", re, [
|
|
190
|
+
r[0] || (r[0] = s("path", {
|
|
191
|
+
class: "sl-fill-none sl-stroke-gray-300",
|
|
192
|
+
"stroke-width": "3.8",
|
|
193
|
+
d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
|
|
194
|
+
}, null, -1)),
|
|
195
|
+
s("path", {
|
|
196
|
+
class: "sl-fill-none sl-stroke-stachelock-600 sl-stroke-linecap-round sl-transition-[stroke-dasharray] sl-duration-500 sl-ease-out",
|
|
197
|
+
"stroke-dasharray": n.value + ", 100",
|
|
198
|
+
"stroke-width": "3.8",
|
|
199
|
+
d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
|
|
200
|
+
}, null, 8, me)
|
|
201
|
+
])),
|
|
202
|
+
a.label && a.label.length > 0 ? (p(), u("div", ie, f(a.label), 1)) : h("", !0),
|
|
203
|
+
a.showProgressLabel ? (p(), u("div", de, f(n.value) + "% ", 1)) : h("", !0)
|
|
204
|
+
], 2));
|
|
205
|
+
}
|
|
206
|
+
}), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
142
207
|
__proto__: null,
|
|
143
|
-
CalendarDashboard:
|
|
144
|
-
CalendarHeader:
|
|
145
|
-
DayCalendar:
|
|
146
|
-
EventCard:
|
|
147
|
-
EventsList:
|
|
148
|
-
MonthCalendar:
|
|
149
|
-
WeekCalendar:
|
|
150
|
-
YearCalendar:
|
|
151
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
208
|
+
CalendarDashboard: O,
|
|
209
|
+
CalendarHeader: C,
|
|
210
|
+
DayCalendar: v,
|
|
211
|
+
EventCard: I,
|
|
212
|
+
EventsList: S,
|
|
213
|
+
MonthCalendar: w,
|
|
214
|
+
WeekCalendar: $,
|
|
215
|
+
YearCalendar: T
|
|
216
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152
217
|
__proto__: null,
|
|
153
|
-
DynamicForm:
|
|
154
|
-
FormField:
|
|
155
|
-
FormFieldWrapper:
|
|
156
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
218
|
+
DynamicForm: k,
|
|
219
|
+
FormField: L,
|
|
220
|
+
FormFieldWrapper: N
|
|
221
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, ge = { class: "sl-space-y-8" }, _e = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, be = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, xe = { class: "sl-whitespace-pre-wrap" }, U = /* @__PURE__ */ y({
|
|
157
222
|
__name: "InputsShowcase",
|
|
158
|
-
setup(
|
|
159
|
-
const
|
|
223
|
+
setup(a) {
|
|
224
|
+
const e = Y({
|
|
160
225
|
text: "",
|
|
161
226
|
textArea: "",
|
|
162
227
|
switchOn: !1,
|
|
@@ -164,7 +229,7 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
164
229
|
selectedFruit: null,
|
|
165
230
|
selectedLanguages: [],
|
|
166
231
|
selectedCity: null
|
|
167
|
-
}),
|
|
232
|
+
}), l = [
|
|
168
233
|
{ id: 1, name: "Apple" },
|
|
169
234
|
{ id: 2, name: "Banana" },
|
|
170
235
|
{ id: 3, name: "Cherry" },
|
|
@@ -175,7 +240,7 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
175
240
|
{ id: 3, name: "Python" },
|
|
176
241
|
{ id: 4, name: "Go" },
|
|
177
242
|
{ id: 5, name: "Rust" }
|
|
178
|
-
],
|
|
243
|
+
], m = [
|
|
179
244
|
{ id: 1, name: "New York" },
|
|
180
245
|
{ id: 2, name: "San Francisco" },
|
|
181
246
|
{ id: 3, name: "Seattle" },
|
|
@@ -185,216 +250,216 @@ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
185
250
|
{ id: 7, name: "Miami" },
|
|
186
251
|
{ id: 8, name: "Boston" }
|
|
187
252
|
];
|
|
188
|
-
return (
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
253
|
+
return (r, t) => (p(), u("section", fe, [
|
|
254
|
+
t[15] || (t[15] = s("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
|
|
255
|
+
s("div", ge, [
|
|
256
|
+
s("div", null, [
|
|
257
|
+
t[7] || (t[7] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
|
|
258
|
+
d(i, {
|
|
194
259
|
name: "demoText",
|
|
195
260
|
label: "Text Input",
|
|
196
261
|
placeholder: "Type something...",
|
|
197
|
-
value:
|
|
198
|
-
"onUpdate:value":
|
|
262
|
+
value: e.text,
|
|
263
|
+
"onUpdate:value": t[0] || (t[0] = (o) => e.text = o)
|
|
199
264
|
}, null, 8, ["value"])
|
|
200
265
|
]),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
266
|
+
s("div", null, [
|
|
267
|
+
t[8] || (t[8] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
|
|
268
|
+
d(b, {
|
|
204
269
|
name: "demoTextArea",
|
|
205
270
|
label: "Text Area",
|
|
206
271
|
placeholder: "Write a longer message...",
|
|
207
272
|
rows: 4,
|
|
208
273
|
maxlength: 200,
|
|
209
|
-
modelValue:
|
|
210
|
-
"onUpdate:modelValue":
|
|
274
|
+
modelValue: e.textArea,
|
|
275
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.textArea = o)
|
|
211
276
|
}, null, 8, ["modelValue"])
|
|
212
277
|
]),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
278
|
+
s("div", null, [
|
|
279
|
+
t[9] || (t[9] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
|
|
280
|
+
d(x, {
|
|
216
281
|
name: "demoSwitch",
|
|
217
282
|
label: "Enable feature",
|
|
218
|
-
modelValue:
|
|
219
|
-
"onUpdate:modelValue":
|
|
283
|
+
modelValue: e.switchOn,
|
|
284
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => e.switchOn = o),
|
|
220
285
|
textTrue: "ON",
|
|
221
286
|
textFalse: "OFF"
|
|
222
287
|
}, null, 8, ["modelValue"])
|
|
223
288
|
]),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
289
|
+
s("div", null, [
|
|
290
|
+
t[10] || (t[10] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
|
|
291
|
+
d(g, {
|
|
227
292
|
name: "demoCheckbox",
|
|
228
293
|
label: "I agree to the terms",
|
|
229
|
-
modelValue:
|
|
230
|
-
"onUpdate:modelValue":
|
|
294
|
+
modelValue: e.checkbox,
|
|
295
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => e.checkbox = o)
|
|
231
296
|
}, null, 8, ["modelValue"])
|
|
232
297
|
]),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
298
|
+
s("div", _e, [
|
|
299
|
+
s("div", null, [
|
|
300
|
+
t[11] || (t[11] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
|
|
301
|
+
d(c, {
|
|
237
302
|
name: "demoSelect",
|
|
238
303
|
label: "Favorite Fruit",
|
|
239
304
|
placeholder: "Select a fruit",
|
|
240
|
-
items:
|
|
241
|
-
modelValue:
|
|
242
|
-
"onUpdate:modelValue":
|
|
305
|
+
items: l,
|
|
306
|
+
modelValue: e.selectedFruit,
|
|
307
|
+
"onUpdate:modelValue": t[4] || (t[4] = (o) => e.selectedFruit = o)
|
|
243
308
|
}, null, 8, ["modelValue"])
|
|
244
309
|
]),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
310
|
+
s("div", null, [
|
|
311
|
+
t[12] || (t[12] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
|
|
312
|
+
d(c, {
|
|
248
313
|
name: "demoSelectMulti",
|
|
249
314
|
label: "Favorite Languages",
|
|
250
315
|
placeholder: "Select languages",
|
|
251
316
|
items: n,
|
|
252
317
|
multiple: "",
|
|
253
318
|
showAll: "",
|
|
254
|
-
modelValue:
|
|
255
|
-
"onUpdate:modelValue":
|
|
319
|
+
modelValue: e.selectedLanguages,
|
|
320
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => e.selectedLanguages = o)
|
|
256
321
|
}, null, 8, ["modelValue"])
|
|
257
322
|
])
|
|
258
323
|
]),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
324
|
+
s("div", null, [
|
|
325
|
+
t[13] || (t[13] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
|
|
326
|
+
d(_, {
|
|
262
327
|
name: "demoCombobox",
|
|
263
328
|
label: "Search a City",
|
|
264
329
|
placeholder: "Start typing...",
|
|
265
|
-
items:
|
|
266
|
-
modelValue:
|
|
267
|
-
"onUpdate:modelValue":
|
|
330
|
+
items: m,
|
|
331
|
+
modelValue: e.selectedCity,
|
|
332
|
+
"onUpdate:modelValue": t[6] || (t[6] = (o) => e.selectedCity = o)
|
|
268
333
|
}, null, 8, ["modelValue"])
|
|
269
334
|
]),
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
335
|
+
s("div", be, [
|
|
336
|
+
t[14] || (t[14] = s("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
|
|
337
|
+
s("pre", xe, f(e), 1)
|
|
273
338
|
])
|
|
274
339
|
])
|
|
275
340
|
]));
|
|
276
341
|
}
|
|
277
|
-
}),
|
|
342
|
+
}), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
278
343
|
__proto__: null,
|
|
279
|
-
CheckboxInput:
|
|
280
|
-
ComboboxInput:
|
|
281
|
-
InputsShowcase:
|
|
282
|
-
SelectInput:
|
|
283
|
-
SwitchInput:
|
|
284
|
-
TagifyInput:
|
|
285
|
-
TextAreaInput:
|
|
286
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
344
|
+
CheckboxInput: g,
|
|
345
|
+
ComboboxInput: _,
|
|
346
|
+
InputsShowcase: U,
|
|
347
|
+
SelectInput: c,
|
|
348
|
+
SwitchInput: x,
|
|
349
|
+
TagifyInput: M,
|
|
350
|
+
TextAreaInput: b
|
|
351
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
287
352
|
__proto__: null,
|
|
288
|
-
DashboardLayout:
|
|
289
|
-
DefaultLayout:
|
|
290
|
-
HeaderLayout:
|
|
291
|
-
NavigationGroup:
|
|
292
|
-
NavigationItem:
|
|
293
|
-
SidebarLayout:
|
|
294
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
353
|
+
DashboardLayout: F,
|
|
354
|
+
DefaultLayout: V,
|
|
355
|
+
HeaderLayout: D,
|
|
356
|
+
NavigationGroup: B,
|
|
357
|
+
NavigationItem: P,
|
|
358
|
+
SidebarLayout: A
|
|
359
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
295
360
|
__proto__: null,
|
|
296
|
-
Avatar:
|
|
297
|
-
Badge:
|
|
298
|
-
Breadcrumb:
|
|
299
|
-
Button:
|
|
300
|
-
CalendarDashboard:
|
|
301
|
-
CalendarHeader:
|
|
302
|
-
CheckboxInput:
|
|
303
|
-
ComboboxInput:
|
|
304
|
-
DashboardLayout:
|
|
305
|
-
DayCalendar:
|
|
306
|
-
DefaultLayout:
|
|
307
|
-
DynamicForm:
|
|
308
|
-
EventCard:
|
|
309
|
-
EventsList:
|
|
310
|
-
FormField:
|
|
311
|
-
FormFieldWrapper:
|
|
312
|
-
HeaderLayout:
|
|
313
|
-
InputsShowcase:
|
|
314
|
-
Loading:
|
|
315
|
-
LoadingDots:
|
|
316
|
-
Modal:
|
|
317
|
-
MonthCalendar:
|
|
318
|
-
NavLink:
|
|
319
|
-
NavigationGroup:
|
|
320
|
-
NavigationItem:
|
|
321
|
-
ProgressBar:
|
|
322
|
-
RadialProgressBar:
|
|
323
|
-
SelectInput:
|
|
324
|
-
SidebarLayout:
|
|
325
|
-
SwitchInput:
|
|
326
|
-
Table:
|
|
327
|
-
TagifyInput:
|
|
328
|
-
TextAreaInput:
|
|
329
|
-
TextInput:
|
|
330
|
-
Transition:
|
|
331
|
-
WeekCalendar:
|
|
332
|
-
YearCalendar:
|
|
333
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
334
|
-
...
|
|
361
|
+
Avatar: q,
|
|
362
|
+
Badge: J,
|
|
363
|
+
Breadcrumb: K,
|
|
364
|
+
Button: Q,
|
|
365
|
+
CalendarDashboard: O,
|
|
366
|
+
CalendarHeader: C,
|
|
367
|
+
CheckboxInput: g,
|
|
368
|
+
ComboboxInput: _,
|
|
369
|
+
DashboardLayout: F,
|
|
370
|
+
DayCalendar: v,
|
|
371
|
+
DefaultLayout: V,
|
|
372
|
+
DynamicForm: k,
|
|
373
|
+
EventCard: I,
|
|
374
|
+
EventsList: S,
|
|
375
|
+
FormField: L,
|
|
376
|
+
FormFieldWrapper: N,
|
|
377
|
+
HeaderLayout: D,
|
|
378
|
+
InputsShowcase: U,
|
|
379
|
+
Loading: X,
|
|
380
|
+
LoadingDots: Z,
|
|
381
|
+
Modal: ee,
|
|
382
|
+
MonthCalendar: w,
|
|
383
|
+
NavLink: te,
|
|
384
|
+
NavigationGroup: B,
|
|
385
|
+
NavigationItem: P,
|
|
386
|
+
ProgressBar: se,
|
|
387
|
+
RadialProgressBar: ue,
|
|
388
|
+
SelectInput: c,
|
|
389
|
+
SidebarLayout: A,
|
|
390
|
+
SwitchInput: x,
|
|
391
|
+
Table: ae,
|
|
392
|
+
TagifyInput: M,
|
|
393
|
+
TextAreaInput: b,
|
|
394
|
+
TextInput: i,
|
|
395
|
+
Transition: oe,
|
|
396
|
+
WeekCalendar: $,
|
|
397
|
+
YearCalendar: T
|
|
398
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = {
|
|
399
|
+
...Ce,
|
|
400
|
+
...ye,
|
|
401
|
+
...he,
|
|
335
402
|
...pe,
|
|
336
|
-
...
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
const B = i.startsWith(s) ? i : `${s}${i}`;
|
|
346
|
-
l.component(B, e);
|
|
403
|
+
...ce
|
|
404
|
+
}, rt = {
|
|
405
|
+
install(a, e = {}) {
|
|
406
|
+
const { prefix: l = "Sl", installAll: n = !1, components: m } = e;
|
|
407
|
+
Object.entries(ve).forEach(([r, t]) => {
|
|
408
|
+
if (n || m && m.includes(r) || !m && !n) {
|
|
409
|
+
a.component(r, t);
|
|
410
|
+
const z = r.startsWith(l) ? r : `${l}${r}`;
|
|
411
|
+
a.component(z, t);
|
|
347
412
|
}
|
|
348
413
|
});
|
|
349
414
|
}
|
|
350
415
|
};
|
|
351
416
|
export {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
417
|
+
q as Avatar,
|
|
418
|
+
J as Badge,
|
|
419
|
+
K as Breadcrumb,
|
|
420
|
+
Q as Button,
|
|
421
|
+
O as CalendarDashboard,
|
|
422
|
+
C as CalendarHeader,
|
|
423
|
+
g as CheckboxInput,
|
|
424
|
+
_ as ComboboxInput,
|
|
425
|
+
ne as ComponentRegistry,
|
|
426
|
+
F as DashboardLayout,
|
|
427
|
+
v as DayCalendar,
|
|
428
|
+
V as DefaultLayout,
|
|
429
|
+
k as DynamicForm,
|
|
430
|
+
I as EventCard,
|
|
431
|
+
S as EventsList,
|
|
432
|
+
L as FormField,
|
|
433
|
+
N as FormFieldWrapper,
|
|
434
|
+
D as HeaderLayout,
|
|
435
|
+
U as InputsShowcase,
|
|
436
|
+
X as Loading,
|
|
437
|
+
Z as LoadingDots,
|
|
438
|
+
ee as Modal,
|
|
439
|
+
w as MonthCalendar,
|
|
440
|
+
te as NavLink,
|
|
441
|
+
B as NavigationGroup,
|
|
442
|
+
P as NavigationItem,
|
|
443
|
+
se as ProgressBar,
|
|
444
|
+
ue as RadialProgressBar,
|
|
445
|
+
c as SelectInput,
|
|
446
|
+
A as SidebarLayout,
|
|
447
|
+
rt as StachelockUI,
|
|
448
|
+
x as SwitchInput,
|
|
449
|
+
ae as Table,
|
|
450
|
+
M as TagifyInput,
|
|
451
|
+
b as TextAreaInput,
|
|
452
|
+
i as TextInput,
|
|
453
|
+
oe as Transition,
|
|
454
|
+
$ as WeekCalendar,
|
|
455
|
+
T as YearCalendar,
|
|
456
|
+
j as componentRegistry,
|
|
457
|
+
rt as default,
|
|
458
|
+
le as defaultComponentMap,
|
|
459
|
+
dt as generateDeterministicId,
|
|
460
|
+
ut as generateId,
|
|
461
|
+
nt as getComponent,
|
|
462
|
+
lt as registerComponent,
|
|
463
|
+
pt as sanitizeId
|
|
399
464
|
};
|
|
400
465
|
//# sourceMappingURL=index.js.map
|