@base-framework/ui 1.0.35 → 1.0.37
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/{calendar-CjZyNE0l.js → calendar-BJG3bm7-.js} +22 -22
- package/dist/{confirmation-v1Cf3utk.js → confirmation-Do-y14Z6.js} +17 -14
- package/dist/index.es.js +3 -3
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{signature-panel-ZyNXl1zc.js → signature-panel-IJ0AOrB6.js} +1 -1
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { Component as N, Data as z, Atom as k, DateTime as j } from "@base-frame
|
|
|
3
3
|
import { B as A } from "./buttons-CVEwmPAi.js";
|
|
4
4
|
import { Icons as P } from "./icons.es.js";
|
|
5
5
|
const W = (e, t) => {
|
|
6
|
-
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10,
|
|
7
|
-
let c = n.left +
|
|
6
|
+
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, r = window.scrollX, l = window.scrollY;
|
|
7
|
+
let c = n.left + r, f = n.bottom + l;
|
|
8
8
|
const h = window.innerHeight - n.bottom, d = n.top;
|
|
9
9
|
return c + s.width > window.innerWidth && (c = window.innerWidth - s.width - o), h < s.height && d > h ? f = n.top + l - s.height - o : h < s.height && (f = n.bottom + l - (s.height - h) - o), { x: c, y: f };
|
|
10
10
|
};
|
|
@@ -15,7 +15,6 @@ class lt extends N {
|
|
|
15
15
|
* @returns {object}
|
|
16
16
|
*/
|
|
17
17
|
setData() {
|
|
18
|
-
console.log("data", this.data);
|
|
19
18
|
const t = this.parent.data || new z();
|
|
20
19
|
return t.set({
|
|
21
20
|
position: { x: 0, y: 0 }
|
|
@@ -64,9 +63,10 @@ class lt extends N {
|
|
|
64
63
|
* @returns {object}
|
|
65
64
|
*/
|
|
66
65
|
setupStates() {
|
|
67
|
-
|
|
66
|
+
const n = this.parent.getId();
|
|
67
|
+
return console.log(n), {
|
|
68
68
|
open: {
|
|
69
|
-
id:
|
|
69
|
+
id: n,
|
|
70
70
|
callBack: (s) => {
|
|
71
71
|
this.state.open === !1 && this.destroy();
|
|
72
72
|
}
|
|
@@ -80,7 +80,7 @@ class lt extends N {
|
|
|
80
80
|
*/
|
|
81
81
|
updatePosition() {
|
|
82
82
|
const t = this.button ?? null, n = this.panel, s = W(t, n);
|
|
83
|
-
this.data.position = s;
|
|
83
|
+
console.log("position", s), this.data.position = s;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* This will run after the setup.
|
|
@@ -174,10 +174,10 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
174
174
|
]
|
|
175
175
|
);
|
|
176
176
|
}, ct = k(({ src: e, alt: t, fallbackText: n, watcherFallback: s, size: o }) => {
|
|
177
|
-
const
|
|
177
|
+
const r = E(o);
|
|
178
178
|
return i(
|
|
179
179
|
{
|
|
180
|
-
class: `relative flex items-center justify-center ${
|
|
180
|
+
class: `relative flex items-center justify-center ${r}`
|
|
181
181
|
},
|
|
182
182
|
[
|
|
183
183
|
H({ src: e, alt: t }),
|
|
@@ -193,7 +193,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
193
193
|
currentDate: n,
|
|
194
194
|
date: s,
|
|
195
195
|
isToday: o,
|
|
196
|
-
isOutsideMonth:
|
|
196
|
+
isOutsideMonth: r,
|
|
197
197
|
select: l,
|
|
198
198
|
disabled: c
|
|
199
199
|
} = e;
|
|
@@ -201,7 +201,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
201
201
|
{
|
|
202
202
|
class: `
|
|
203
203
|
flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md
|
|
204
|
-
${V(o, n,
|
|
204
|
+
${V(o, n, r, s)}
|
|
205
205
|
hover:bg-muted/50 hover:text-muted-foreground focus:z-10
|
|
206
206
|
disabled:pointer-events-none disabled:opacity-50
|
|
207
207
|
`,
|
|
@@ -213,9 +213,9 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
213
213
|
t.toString()
|
|
214
214
|
);
|
|
215
215
|
}, b = (e, t, n, s) => e === s.date && t === s.month && n === s.year, Z = (e, t, n, s = !1) => {
|
|
216
|
-
const { year: o, month:
|
|
217
|
-
for (let
|
|
218
|
-
const u = h -
|
|
216
|
+
const { year: o, month: r } = e, l = p(o, r, e.date), c = new Date(o, r, 1).getDay(), f = new Date(o, r + 1, 0).getDate(), h = new Date(o, r, 0).getDate(), d = [], D = r === 0 ? 11 : r - 1, w = r === 0 ? o - 1 : o;
|
|
217
|
+
for (let a = c - 1; a >= 0; a--) {
|
|
218
|
+
const u = h - a, g = b(u, D, w, t), m = new Date(w, D, u) < new Date(t.year, t.month, t.date), F = s && m;
|
|
219
219
|
d.push(
|
|
220
220
|
C({
|
|
221
221
|
day: u,
|
|
@@ -228,13 +228,13 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
228
228
|
})
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
|
-
for (let
|
|
232
|
-
const u = b(
|
|
231
|
+
for (let a = 1; a <= f; a++) {
|
|
232
|
+
const u = b(a, r, o, t), g = new Date(o, r, a) < new Date(t.year, t.month, t.date), m = s && g;
|
|
233
233
|
d.push(
|
|
234
234
|
C({
|
|
235
|
-
day:
|
|
235
|
+
day: a,
|
|
236
236
|
currentDate: l,
|
|
237
|
-
date: p(o,
|
|
237
|
+
date: p(o, r, a),
|
|
238
238
|
isToday: u,
|
|
239
239
|
isOutsideMonth: !1,
|
|
240
240
|
select: n,
|
|
@@ -242,14 +242,14 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
242
242
|
})
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
|
-
const y =
|
|
246
|
-
for (let
|
|
247
|
-
const u = b(
|
|
245
|
+
const y = r === 11 ? 0 : r + 1, v = r === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
|
|
246
|
+
for (let a = 1; a <= O; a++) {
|
|
247
|
+
const u = b(a, y, v, t), g = new Date(v, y, a) < new Date(t.year, t.month, t.date), m = s && g;
|
|
248
248
|
d.push(
|
|
249
249
|
C({
|
|
250
|
-
day:
|
|
250
|
+
day: a,
|
|
251
251
|
currentDate: l,
|
|
252
|
-
date: p(v, y,
|
|
252
|
+
date: p(v, y, a),
|
|
253
253
|
isToday: u,
|
|
254
254
|
isOutsideMonth: !0,
|
|
255
255
|
select: n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as n, I as f, H5 as _, P as b, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as R, Form as W, H2 as B, Footer as $, Header as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, Time as Q, Dialog as X } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as c, Component as p, Html as L, Dom as Z, base as ee, Data as k, Builder as q, Jot as S, DateTime as A } from "@base-framework/base";
|
|
3
|
-
import { P as D, b as te } from "./calendar-
|
|
3
|
+
import { P as D, b as te } from "./calendar-BJG3bm7-.js";
|
|
4
4
|
import { B as u, I as x } from "./buttons-CVEwmPAi.js";
|
|
5
5
|
import { Icons as d } from "./icons.es.js";
|
|
6
6
|
import { a as w } from "./veil-gN57SpXV.js";
|
|
@@ -989,18 +989,21 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
989
989
|
}),
|
|
990
990
|
f({ html: d.calendar.days })
|
|
991
991
|
]), Ke = ({ handleDateSelect: e, blockPriorDates: t }) => n({ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" }, [
|
|
992
|
-
v(
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
992
|
+
v(
|
|
993
|
+
"open",
|
|
994
|
+
(s, o, l) => s ? new D({
|
|
995
|
+
cache: "dropdown",
|
|
996
|
+
parent: l,
|
|
997
|
+
button: l.panel,
|
|
998
|
+
size: "fit"
|
|
999
|
+
}, [
|
|
1000
|
+
new te({
|
|
1001
|
+
selectedDate: l.state.selectedDate,
|
|
1002
|
+
selectedCallBack: e,
|
|
1003
|
+
blockPriorDates: t
|
|
1004
|
+
})
|
|
1005
|
+
]) : null
|
|
1006
|
+
)
|
|
1004
1007
|
]), At = w(
|
|
1005
1008
|
{
|
|
1006
1009
|
/**
|
|
@@ -1032,7 +1035,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
|
1032
1035
|
const e = (s, { state: o }) => o.toggle("open"), t = (s) => {
|
|
1033
1036
|
this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
|
|
1034
1037
|
};
|
|
1035
|
-
return console.log(this, this.
|
|
1038
|
+
return console.log(this, this.state), n({ class: "relative w-full max-w-[320px]" }, [
|
|
1036
1039
|
Je({
|
|
1037
1040
|
toggleOpen: e,
|
|
1038
1041
|
bind: this.bind,
|
package/dist/index.es.js
CHANGED
|
@@ -3,9 +3,9 @@ import { B as g, I as C, L as T } from "./buttons-CVEwmPAi.js";
|
|
|
3
3
|
import { C as D, d as I, D as S, c as b, 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 h, a as y, b as W, U as L, W as A } from "./inputs-CzHSmZKP.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-gN57SpXV.js";
|
|
5
5
|
import { Icons as R } from "./icons.es.js";
|
|
6
|
-
import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-
|
|
7
|
-
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-
|
|
8
|
-
import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-
|
|
6
|
+
import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-Do-y14Z6.js";
|
|
7
|
+
import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-BJG3bm7-.js";
|
|
8
|
+
import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-IJ0AOrB6.js";
|
|
9
9
|
import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-BE_hr65B.js";
|
|
10
10
|
import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-nCAVFk3R.js";
|
|
11
11
|
import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-McEj_Gxc.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { A as O, P as R, g as _ } from "./calendar-
|
|
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-Do-y14Z6.js";
|
|
2
|
+
import { A as O, P as R, g as _ } from "./calendar-BJG3bm7-.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
|
5
5
|
O as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-
|
|
2
|
-
import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-
|
|
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 g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-IJ0AOrB6.js";
|
|
2
|
+
import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-BJG3bm7-.js";
|
|
3
3
|
import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-BE_hr65B.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
@@ -4,7 +4,7 @@ import { B as C, I as z } from "./buttons-CVEwmPAi.js";
|
|
|
4
4
|
import { Icons as w } from "./icons.es.js";
|
|
5
5
|
import { TableBody as _, List as G, IntervalTimer as V } from "@base-framework/organisms";
|
|
6
6
|
import { C as J, I as Z, H as ee } from "./inputs-CzHSmZKP.js";
|
|
7
|
-
import { A as te, P as se } from "./calendar-
|
|
7
|
+
import { A as te, P as se } from "./calendar-BJG3bm7-.js";
|
|
8
8
|
u((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...t,
|
package/package.json
CHANGED