@base-framework/ui 1.0.171 → 1.0.173
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/{confirmation-DY9zk34b.js → confirmation-RwpuUtXL.js} +64 -57
- package/dist/index.es.js +2 -2
- package/dist/molecules.es.js +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-BMKPAG1c.js → signature-panel-xXbYWejE.js} +19 -19
- package/dist/types/components/molecules/modals/modal.d.ts +6 -0
- package/package.json +1 -1
|
@@ -34,8 +34,8 @@ const P = {
|
|
|
34
34
|
}, le = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
35
35
|
g({ html: e })
|
|
36
36
|
]), ie = (e) => _({ class: "font-semibold" }, e), ae = (e) => b({ class: "text-sm text-muted-foreground" }, e), mt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
37
|
-
const { borderColor:
|
|
38
|
-
return n({ class: `flex items-start p-4 border rounded-lg ${
|
|
37
|
+
const { borderColor: l, bgColor: r, iconColor: i } = P[o] || P.default;
|
|
38
|
+
return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
|
|
39
39
|
// Icon and content
|
|
40
40
|
s && le(s, i),
|
|
41
41
|
n({ class: "flex flex-col" }, [
|
|
@@ -70,9 +70,7 @@ class ce extends p {
|
|
|
70
70
|
}
|
|
71
71
|
const de = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), ue = (e) => a({ class: "flex w-4 h-4", html: e }), he = (e) => a({ class: "flex-auto" }, e), me = (e, t) => O({
|
|
72
72
|
class: "relative flex cursor-pointer hover:bg-muted/50 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
73
|
-
click: (
|
|
74
|
-
e.click && e.click(s, o), t(e);
|
|
75
|
-
}
|
|
73
|
+
click: () => t(e)
|
|
76
74
|
}, [
|
|
77
75
|
e.icon && ue(e.icon),
|
|
78
76
|
he(e.label),
|
|
@@ -176,15 +174,15 @@ const xe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
176
174
|
invalid: s,
|
|
177
175
|
input: t
|
|
178
176
|
} : o)), ke = c((e, t) => {
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
}, (
|
|
182
|
-
e.setError(
|
|
177
|
+
const l = U(t, (r) => {
|
|
178
|
+
r.target.checkValidity() && e.setError(null);
|
|
179
|
+
}, (r) => {
|
|
180
|
+
e.setError(r.target.validationMessage);
|
|
183
181
|
});
|
|
184
182
|
return n({
|
|
185
183
|
...e,
|
|
186
184
|
class: "w-full"
|
|
187
|
-
},
|
|
185
|
+
}, l);
|
|
188
186
|
}), gt = w(
|
|
189
187
|
{
|
|
190
188
|
/**
|
|
@@ -206,8 +204,8 @@ const xe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
206
204
|
* @returns {object}
|
|
207
205
|
*/
|
|
208
206
|
render() {
|
|
209
|
-
const e = this.name, t = this.getId(`${e}`), { label: s, description: o } = this,
|
|
210
|
-
this.state.error =
|
|
207
|
+
const e = this.name, t = this.getId(`${e}`), { label: s, description: o } = this, l = (r) => {
|
|
208
|
+
this.state.error = r, this.state.hasError = !!r;
|
|
211
209
|
};
|
|
212
210
|
return n({ class: "flex flex-auto space-y-4" }, [
|
|
213
211
|
xe([
|
|
@@ -216,10 +214,10 @@ const xe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
216
214
|
id: t,
|
|
217
215
|
name: e,
|
|
218
216
|
value: this.state.value,
|
|
219
|
-
setError:
|
|
217
|
+
setError: l
|
|
220
218
|
}, this.children),
|
|
221
219
|
o && ye({ id: this.getId("description") }, o),
|
|
222
|
-
n({ onState: ["error", (
|
|
220
|
+
n({ onState: ["error", (r) => r && ve(r)] })
|
|
223
221
|
])
|
|
224
222
|
]);
|
|
225
223
|
}
|
|
@@ -237,11 +235,11 @@ const xe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
237
235
|
]), wt = (e, t) => n({ class: "flex" }, [
|
|
238
236
|
a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
239
237
|
a(t)
|
|
240
|
-
]), Ie = ({ title: e, description: t, back: s, icon: o, options:
|
|
238
|
+
]), Ie = ({ title: e, description: t, back: s, icon: o, options: l = [] }) => B({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
|
|
241
239
|
/**
|
|
242
240
|
* Back Button
|
|
243
241
|
*/
|
|
244
|
-
s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (
|
|
242
|
+
s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, i) => i.close() }),
|
|
245
243
|
/**
|
|
246
244
|
* Icon
|
|
247
245
|
*/
|
|
@@ -254,7 +252,7 @@ const xe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
254
252
|
A({ class: "text-lg font-semibold m-0 truncate" }, e),
|
|
255
253
|
t && n({ class: "text-sm text-muted-foreground truncate" }, t)
|
|
256
254
|
]),
|
|
257
|
-
...
|
|
255
|
+
...l
|
|
258
256
|
])
|
|
259
257
|
]), Te = c((e, t) => n({
|
|
260
258
|
popover: "manual",
|
|
@@ -292,8 +290,9 @@ class yt extends p {
|
|
|
292
290
|
description: o,
|
|
293
291
|
options: this.headerOptions(),
|
|
294
292
|
buttons: this.getButtons(),
|
|
295
|
-
onSubmit: (
|
|
296
|
-
|
|
293
|
+
onSubmit: (l) => {
|
|
294
|
+
let r = !0;
|
|
295
|
+
this.onSubmit && (r = this.onSubmit(l)), r !== !1 && this.destroy();
|
|
297
296
|
},
|
|
298
297
|
icon: this.icon,
|
|
299
298
|
back: this.back ?? !1,
|
|
@@ -401,6 +400,14 @@ class yt extends p {
|
|
|
401
400
|
open() {
|
|
402
401
|
$e(this), this.showModal();
|
|
403
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* This will destroy the modal.
|
|
405
|
+
*
|
|
406
|
+
* @returns {void}
|
|
407
|
+
*/
|
|
408
|
+
close() {
|
|
409
|
+
this.destroy();
|
|
410
|
+
}
|
|
404
411
|
/**
|
|
405
412
|
* This will show the modal.
|
|
406
413
|
*
|
|
@@ -480,14 +487,14 @@ class Le extends ce {
|
|
|
480
487
|
* @returns {object}
|
|
481
488
|
*/
|
|
482
489
|
render() {
|
|
483
|
-
const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(),
|
|
484
|
-
return
|
|
485
|
-
href:
|
|
490
|
+
const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), l = this.href || null, r = this.getChildren(o);
|
|
491
|
+
return l ? Be({
|
|
492
|
+
href: l,
|
|
486
493
|
class: `${t} ${s}`
|
|
487
|
-
},
|
|
494
|
+
}, r) : Me({
|
|
488
495
|
close: this.close.bind(this),
|
|
489
496
|
class: `${t} ${s}`
|
|
490
|
-
},
|
|
497
|
+
}, r);
|
|
491
498
|
}
|
|
492
499
|
/**
|
|
493
500
|
* This will be called after the component is set up.
|
|
@@ -596,8 +603,8 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
596
603
|
class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
|
|
597
604
|
onState: ["method", { active: e }],
|
|
598
605
|
dataSet: ["method", ["state", e, "active"]],
|
|
599
|
-
click: (o, { state:
|
|
600
|
-
|
|
606
|
+
click: (o, { state: l }) => {
|
|
607
|
+
l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Fe(e);
|
|
601
608
|
}
|
|
602
609
|
}, [
|
|
603
610
|
x(s),
|
|
@@ -669,7 +676,7 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
669
676
|
class: "relative inline-flex h-6 w-11 min-w-11 items-center rounded-full bg-muted transition-colors focus:outline-none",
|
|
670
677
|
onState: ["active", { "bg-primary": !0, "bg-muted": !1 }],
|
|
671
678
|
click: (t, { state: s }) => {
|
|
672
|
-
s.toggle("active"), this.checkbox.checked = s.active;
|
|
679
|
+
s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
|
|
673
680
|
}
|
|
674
681
|
}, [
|
|
675
682
|
J({
|
|
@@ -780,8 +787,8 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
780
787
|
"bg-primary": e,
|
|
781
788
|
"shadow-md": e
|
|
782
789
|
}],
|
|
783
|
-
click: (s, { data: o, onClick:
|
|
784
|
-
o.activeIndex = e,
|
|
790
|
+
click: (s, { data: o, onClick: l }) => {
|
|
791
|
+
o.activeIndex = e, l && l(e);
|
|
785
792
|
}
|
|
786
793
|
})
|
|
787
794
|
]), Ye = (e, t) => Array.from({ length: e }, (s, o) => Ve({
|
|
@@ -840,10 +847,10 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
840
847
|
]), _e = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
841
848
|
v(
|
|
842
849
|
"open",
|
|
843
|
-
(s, o,
|
|
850
|
+
(s, o, l) => s ? new D({
|
|
844
851
|
cache: "dropdown",
|
|
845
|
-
parent:
|
|
846
|
-
button:
|
|
852
|
+
parent: l,
|
|
853
|
+
button: l.button
|
|
847
854
|
}, [
|
|
848
855
|
qe(e, t)
|
|
849
856
|
]) : null
|
|
@@ -964,11 +971,11 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
964
971
|
icon: u.circlePlus,
|
|
965
972
|
click: e,
|
|
966
973
|
ariaLabel: "Increment"
|
|
967
|
-
}), Ge = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Q(({ state:
|
|
968
|
-
value: ["[[count]]",
|
|
974
|
+
}), Ge = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Q(({ state: l }) => C({
|
|
975
|
+
value: ["[[count]]", l],
|
|
969
976
|
bind: e,
|
|
970
|
-
blur: (
|
|
971
|
-
let d = parseInt(
|
|
977
|
+
blur: (r, { state: i }) => {
|
|
978
|
+
let d = parseInt(r.target.value, 10);
|
|
972
979
|
isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)), i.count = d;
|
|
973
980
|
},
|
|
974
981
|
class: "flex flex-auto text-lg font-medium bg-transparent text-center border min-w-0",
|
|
@@ -1027,14 +1034,14 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
1027
1034
|
g({ html: u.calendar.days })
|
|
1028
1035
|
]), Qe = ({ handleDateSelect: e, blockPriorDates: t }) => v(
|
|
1029
1036
|
"open",
|
|
1030
|
-
(s, o,
|
|
1037
|
+
(s, o, l) => s ? new D({
|
|
1031
1038
|
cache: "dropdown",
|
|
1032
|
-
parent:
|
|
1033
|
-
button:
|
|
1039
|
+
parent: l,
|
|
1040
|
+
button: l.panel,
|
|
1034
1041
|
size: "fit"
|
|
1035
1042
|
}, [
|
|
1036
1043
|
new se({
|
|
1037
|
-
selectedDate:
|
|
1044
|
+
selectedDate: l.state.selectedDate,
|
|
1038
1045
|
selectedCallBack: e,
|
|
1039
1046
|
blockPriorDates: t
|
|
1040
1047
|
})
|
|
@@ -1087,8 +1094,8 @@ const N = globalThis.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
1087
1094
|
new re({
|
|
1088
1095
|
dateTime: e,
|
|
1089
1096
|
filter: s || ((o) => {
|
|
1090
|
-
const
|
|
1091
|
-
return $.getTimeFrame(
|
|
1097
|
+
const l = $.getLocalTime(o, !0, !1, t);
|
|
1098
|
+
return $.getTimeFrame(l);
|
|
1092
1099
|
})
|
|
1093
1100
|
})
|
|
1094
1101
|
]);
|
|
@@ -1115,11 +1122,11 @@ function Ze({ bind: e, required: t, toggleOpen: s }) {
|
|
|
1115
1122
|
]
|
|
1116
1123
|
);
|
|
1117
1124
|
}
|
|
1118
|
-
function T({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad:
|
|
1125
|
+
function T({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1 }) {
|
|
1119
1126
|
return n(
|
|
1120
1127
|
{ class: "flex flex-col max-h-[200px] overflow-y-auto" },
|
|
1121
|
-
e.map((
|
|
1122
|
-
let i =
|
|
1128
|
+
e.map((r) => {
|
|
1129
|
+
let i = l ? r.toString().padStart(2, "0") : r.toString();
|
|
1123
1130
|
return m({
|
|
1124
1131
|
text: i,
|
|
1125
1132
|
class: "hover:bg-muted/50 rounded-md px-2 py-1",
|
|
@@ -1151,7 +1158,7 @@ function et({ handleTimeSelect: e }) {
|
|
|
1151
1158
|
[
|
|
1152
1159
|
// Hours column
|
|
1153
1160
|
T({
|
|
1154
|
-
items: Array.from({ length: 12 }, (
|
|
1161
|
+
items: Array.from({ length: 12 }, (l, r) => r + 1),
|
|
1155
1162
|
handleTimeSelect: e,
|
|
1156
1163
|
state: o.state,
|
|
1157
1164
|
stateValue: "hour",
|
|
@@ -1159,7 +1166,7 @@ function et({ handleTimeSelect: e }) {
|
|
|
1159
1166
|
}),
|
|
1160
1167
|
// Minutes column
|
|
1161
1168
|
T({
|
|
1162
|
-
items: Array.from({ length: 60 }, (
|
|
1169
|
+
items: Array.from({ length: 60 }, (l, r) => r),
|
|
1163
1170
|
handleTimeSelect: e,
|
|
1164
1171
|
state: o.state,
|
|
1165
1172
|
stateValue: "minute",
|
|
@@ -1188,11 +1195,11 @@ function E(e) {
|
|
|
1188
1195
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
1189
1196
|
if (!s)
|
|
1190
1197
|
return { hour: null, minute: null, meridian: null };
|
|
1191
|
-
let [, o,
|
|
1192
|
-
return i < 0 || i > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (
|
|
1198
|
+
let [, o, l, , r] = s, i = parseInt(o, 10), d = parseInt(l, 10);
|
|
1199
|
+
return i < 0 || i > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (r ? (r = r.toUpperCase(), r === "PM" && i < 12 ? i += 12 : r === "AM" && i === 12 && (i = 12)) : i === 0 ? (r = "AM", i = 12) : i < 12 ? r = "AM" : i === 12 ? r = "PM" : (r = "PM", i -= 12), {
|
|
1193
1200
|
hour: i.toString().padStart(2, "0"),
|
|
1194
1201
|
minute: d.toString().padStart(2, "0"),
|
|
1195
|
-
meridian:
|
|
1202
|
+
meridian: r
|
|
1196
1203
|
});
|
|
1197
1204
|
}
|
|
1198
1205
|
const Lt = w(
|
|
@@ -1234,10 +1241,10 @@ const Lt = w(
|
|
|
1234
1241
|
* @returns {object}
|
|
1235
1242
|
*/
|
|
1236
1243
|
render() {
|
|
1237
|
-
const e = (s, { state: o }) => o.toggle("open"), t = ({ hour: s, minute: o, meridian:
|
|
1238
|
-
if (s && (this.state.hour = s), o && (this.state.minute = o),
|
|
1239
|
-
const
|
|
1240
|
-
this.state.selectedTime =
|
|
1244
|
+
const e = (s, { state: o }) => o.toggle("open"), t = ({ hour: s, minute: o, meridian: l }) => {
|
|
1245
|
+
if (s && (this.state.hour = s), o && (this.state.minute = o), l && (this.state.meridian = l), this.state.hour && this.state.minute && this.state.meridian) {
|
|
1246
|
+
const r = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
|
|
1247
|
+
this.state.selectedTime = r, this.state.open = !1, this.input.value = r, typeof this.change == "function" && this.change(r);
|
|
1241
1248
|
}
|
|
1242
1249
|
};
|
|
1243
1250
|
return n(
|
|
@@ -1325,13 +1332,13 @@ class rt extends p {
|
|
|
1325
1332
|
render() {
|
|
1326
1333
|
const t = (d) => {
|
|
1327
1334
|
d.target === this.panel && this.close();
|
|
1328
|
-
}, { borderColor: s, bgColor: o, iconColor:
|
|
1335
|
+
}, { borderColor: s, bgColor: o, iconColor: l } = j[this.type] || j.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
|
|
1329
1336
|
return ot({
|
|
1330
|
-
class:
|
|
1337
|
+
class: r,
|
|
1331
1338
|
title: i,
|
|
1332
1339
|
click: t,
|
|
1333
1340
|
icon: this.icon,
|
|
1334
|
-
iconColor:
|
|
1341
|
+
iconColor: l,
|
|
1335
1342
|
description: this.description,
|
|
1336
1343
|
buttons: this.getButtons()
|
|
1337
1344
|
}, this.children);
|
package/dist/index.es.js
CHANGED
|
@@ -3,9 +3,9 @@ import { B as g, I as T, L as c } from "./buttons-Cm9etaEG.js";
|
|
|
3
3
|
import { C as D, d as b, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as y, a as h, b as W, U as H, W as L } from "./inputs-Dmu4Z-7-.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
5
5
|
import { Icons as O } from "./icons.es.js";
|
|
6
|
-
import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ta, P as ca, p as Ca, q as Da, S as ba, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-
|
|
6
|
+
import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ta, P as ca, p as Ca, q as Da, S as ba, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-RwpuUtXL.js";
|
|
7
7
|
import { A as va, b as fa, C as xa, D as ya, a as ha, F as Wa, M as Ha, P as La, c as Aa, g as wa, p as Ua } from "./calendar-DQXME-2u.js";
|
|
8
|
-
import { B as Oa, o as Ea, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-
|
|
8
|
+
import { B as Oa, o as Ea, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-xXbYWejE.js";
|
|
9
9
|
import { B as Ds, I as bs, M as Ss, d as Is, e as Bs, g as Ps, N as Fs, b as Ms, a as ks, f as Ns, P as vs, c as fs, S as xs, T as ys } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
10
10
|
import { B as Ws, a as Hs, C as Ls, F as As, b as ws, c as Us, M as Rs, P as Os, S as Es } from "./sidebar-menu-page-BVryQj2Z.js";
|
|
11
11
|
import { A as Vs, F as js, M as qs, a as zs, T as Js } from "./aside-template-McEj_Gxc.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-
|
|
1
|
+
import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-RwpuUtXL.js";
|
|
2
2
|
import { A as H, P as O, g as _ } from "./calendar-DQXME-2u.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-
|
|
1
|
+
import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-xXbYWejE.js";
|
|
2
2
|
import { b as O, C as F, D as U, a as G, F as j, M as q, c as w, p as z } from "./calendar-DQXME-2u.js";
|
|
3
3
|
import { B as E, I as J, M as K, d as Q, e as R, g as V, N as X, b as Y, a as Z, f as _, P as $, c as aa, S as ea, T as sa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as x, Div as o, On as H, Span as v, Th as P, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as D, Time as q, Nav as S, Ul as
|
|
1
|
+
import { Button as x, Div as o, On as H, Span as v, Th as P, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as D, Time as q, Nav as S, Ul as b, Section as O, Canvas as K } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as d, Component as h, Data as L, DateTime as G, router as y, NavLink as z, DataTracker as $, Jot as V, base as B, Dom as M } from "@base-framework/base";
|
|
3
3
|
import { B as C, I as _ } from "./buttons-Cm9etaEG.js";
|
|
4
4
|
import { Icons as k } from "./icons.es.js";
|
|
@@ -95,7 +95,7 @@ const re = (t) => {
|
|
|
95
95
|
}, ge = (t, e) => {
|
|
96
96
|
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(t, e, s), n = Array.from({ length: a }, (r, m) => new Date(t, e, m + 1)), l = (i.length + n.length) % 7, u = l === 0 ? 0 : 7 - l, c = he(t, e, u), f = [...i, ...n, ...c], g = [];
|
|
97
97
|
for (let r = 0; r < f.length; r += 7) {
|
|
98
|
-
const m = f.slice(r, r + 7),
|
|
98
|
+
const m = f.slice(r, r + 7), w = m.find((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: U } = ce(w);
|
|
99
99
|
g.push({
|
|
100
100
|
weekNumber: A,
|
|
101
101
|
year: U,
|
|
@@ -296,11 +296,11 @@ class ot extends h {
|
|
|
296
296
|
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const be = (t, e) => {
|
|
300
300
|
const s = t.toggleAllSelectedRows();
|
|
301
301
|
e.state.checked = !s;
|
|
302
|
-
},
|
|
303
|
-
F((e) => new ae({ class: "mr-2", onChange: (s, a) =>
|
|
302
|
+
}, we = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
|
|
303
|
+
F((e) => new ae({ class: "mr-2", onChange: (s, a) => be(e, a) }))
|
|
304
304
|
]), ye = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
|
|
305
305
|
const l = t || "justify-start";
|
|
306
306
|
return P({
|
|
@@ -317,7 +317,7 @@ const we = (t, e) => {
|
|
|
317
317
|
class: "text-muted-foreground border-b",
|
|
318
318
|
map: [
|
|
319
319
|
t.headers,
|
|
320
|
-
(e) => e.label === "checkbox" ?
|
|
320
|
+
(e) => e.label === "checkbox" ? we({ toggle: t.toggle }) : ye({
|
|
321
321
|
align: e.align,
|
|
322
322
|
sortable: e.sortable,
|
|
323
323
|
key: e.key,
|
|
@@ -692,7 +692,7 @@ class dt extends h {
|
|
|
692
692
|
return S(
|
|
693
693
|
{ class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
|
|
694
694
|
[
|
|
695
|
-
|
|
695
|
+
b({
|
|
696
696
|
class: "flex space-x-4",
|
|
697
697
|
map: [this.options, (e) => this.addLink(e)],
|
|
698
698
|
watch: {
|
|
@@ -805,7 +805,7 @@ class j extends h {
|
|
|
805
805
|
* @returns {string}
|
|
806
806
|
*/
|
|
807
807
|
getClassName() {
|
|
808
|
-
return "overlay
|
|
808
|
+
return "overlay absolute top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:z-10 flex flex-auto lg:left-[64px] lg:top-0 overflow-y-visible will-change-contents " + (this.class || "");
|
|
809
809
|
}
|
|
810
810
|
/**
|
|
811
811
|
* This will setup and render the component.
|
|
@@ -1002,7 +1002,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
|
|
|
1002
1002
|
}]
|
|
1003
1003
|
],
|
|
1004
1004
|
click: () => e(t)
|
|
1005
|
-
}, a)), $e = d(({ selectOption: t, state: e }) =>
|
|
1005
|
+
}, a)), $e = d(({ selectOption: t, state: e }) => b({
|
|
1006
1006
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
1007
1007
|
for: ["filteredOptions", (s, a) => ze({ index: a, click: t, state: e }, s.label)]
|
|
1008
1008
|
})), Ne = d((t) => o({ class: "relative flex items-center" }, [
|
|
@@ -1165,7 +1165,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
|
|
|
1165
1165
|
}, t.label)
|
|
1166
1166
|
]
|
|
1167
1167
|
), Ue = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1168
|
-
|
|
1168
|
+
b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
|
|
1169
1169
|
]);
|
|
1170
1170
|
class mt extends h {
|
|
1171
1171
|
/**
|
|
@@ -1269,7 +1269,7 @@ const He = (t) => D(
|
|
|
1269
1269
|
}, t.label)
|
|
1270
1270
|
]
|
|
1271
1271
|
), Fe = (t, e) => (t.callBack = e, He(t)), Ee = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1272
|
-
|
|
1272
|
+
b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
|
|
1273
1273
|
]);
|
|
1274
1274
|
class pt extends h {
|
|
1275
1275
|
/**
|
|
@@ -1346,7 +1346,7 @@ class Ke extends h {
|
|
|
1346
1346
|
*/
|
|
1347
1347
|
render() {
|
|
1348
1348
|
return S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
|
|
1349
|
-
|
|
1349
|
+
b({
|
|
1350
1350
|
class: "flex flex-auto flex-row",
|
|
1351
1351
|
map: [this.options, (e) => this.addLink(e)],
|
|
1352
1352
|
watch: {
|
|
@@ -1419,7 +1419,7 @@ class Ke extends h {
|
|
|
1419
1419
|
this.links = [];
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
class
|
|
1422
|
+
class bt extends h {
|
|
1423
1423
|
/**
|
|
1424
1424
|
* This will declare the props for the compiler.
|
|
1425
1425
|
*
|
|
@@ -1614,8 +1614,8 @@ class Ge extends h {
|
|
|
1614
1614
|
const e = this.canvas, s = this.container, a = M.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1615
1615
|
let u = n + "px", c = l + "px";
|
|
1616
1616
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1617
|
-
const f = a.width, g = a.height, r = f / n, m = g / l,
|
|
1618
|
-
u = n *
|
|
1617
|
+
const f = a.width, g = a.height, r = f / n, m = g / l, w = Math.min(r, m);
|
|
1618
|
+
u = n * w + "px", c = l * w + "px";
|
|
1619
1619
|
}
|
|
1620
1620
|
e.style.width = u, e.style.height = c;
|
|
1621
1621
|
}
|
|
@@ -1691,7 +1691,7 @@ class Ge extends h {
|
|
|
1691
1691
|
this.timer.stop(), this.status = "stopped";
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
|
-
class
|
|
1694
|
+
class wt extends h {
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Sets up default properties for the signature panel.
|
|
1697
1697
|
*
|
|
@@ -1771,7 +1771,7 @@ class bt extends h {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
export {
|
|
1773
1773
|
ht as B,
|
|
1774
|
-
|
|
1774
|
+
we as C,
|
|
1775
1775
|
ke as D,
|
|
1776
1776
|
ye as H,
|
|
1777
1777
|
ft as I,
|
|
@@ -1799,6 +1799,6 @@ export {
|
|
|
1799
1799
|
mt as o,
|
|
1800
1800
|
pt as p,
|
|
1801
1801
|
Ke as q,
|
|
1802
|
-
|
|
1803
|
-
|
|
1802
|
+
bt as r,
|
|
1803
|
+
wt as s
|
|
1804
1804
|
};
|
package/package.json
CHANGED