@base-framework/ui 1.0.34 → 1.0.35
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-DXJz8Yw4.js → calendar-CjZyNE0l.js} +20 -19
- package/dist/{confirmation--RlSdgU1.js → confirmation-v1Cf3utk.js} +1 -1
- 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-BwpcoxKz.js → signature-panel-ZyNXl1zc.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, a = window.scrollX, l = window.scrollY;
|
|
7
|
+
let c = n.left + a, 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,8 +15,9 @@ class lt extends N {
|
|
|
15
15
|
* @returns {object}
|
|
16
16
|
*/
|
|
17
17
|
setData() {
|
|
18
|
+
console.log("data", this.data);
|
|
18
19
|
const t = this.parent.data || new z();
|
|
19
|
-
return
|
|
20
|
+
return t.set({
|
|
20
21
|
position: { x: 0, y: 0 }
|
|
21
22
|
}), t;
|
|
22
23
|
}
|
|
@@ -173,10 +174,10 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
173
174
|
]
|
|
174
175
|
);
|
|
175
176
|
}, ct = k(({ src: e, alt: t, fallbackText: n, watcherFallback: s, size: o }) => {
|
|
176
|
-
const
|
|
177
|
+
const a = E(o);
|
|
177
178
|
return i(
|
|
178
179
|
{
|
|
179
|
-
class: `relative flex items-center justify-center ${
|
|
180
|
+
class: `relative flex items-center justify-center ${a}`
|
|
180
181
|
},
|
|
181
182
|
[
|
|
182
183
|
H({ src: e, alt: t }),
|
|
@@ -192,7 +193,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
192
193
|
currentDate: n,
|
|
193
194
|
date: s,
|
|
194
195
|
isToday: o,
|
|
195
|
-
isOutsideMonth:
|
|
196
|
+
isOutsideMonth: a,
|
|
196
197
|
select: l,
|
|
197
198
|
disabled: c
|
|
198
199
|
} = e;
|
|
@@ -200,7 +201,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
200
201
|
{
|
|
201
202
|
class: `
|
|
202
203
|
flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md
|
|
203
|
-
${V(o, n,
|
|
204
|
+
${V(o, n, a, s)}
|
|
204
205
|
hover:bg-muted/50 hover:text-muted-foreground focus:z-10
|
|
205
206
|
disabled:pointer-events-none disabled:opacity-50
|
|
206
207
|
`,
|
|
@@ -212,9 +213,9 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
212
213
|
t.toString()
|
|
213
214
|
);
|
|
214
215
|
}, b = (e, t, n, s) => e === s.date && t === s.month && n === s.year, Z = (e, t, n, s = !1) => {
|
|
215
|
-
const { year: o, month:
|
|
216
|
-
for (let
|
|
217
|
-
const u = h -
|
|
216
|
+
const { year: o, month: a } = e, l = p(o, a, e.date), c = new Date(o, a, 1).getDay(), f = new Date(o, a + 1, 0).getDate(), h = new Date(o, a, 0).getDate(), d = [], D = a === 0 ? 11 : a - 1, w = a === 0 ? o - 1 : o;
|
|
217
|
+
for (let r = c - 1; r >= 0; r--) {
|
|
218
|
+
const u = h - r, g = b(u, D, w, t), m = new Date(w, D, u) < new Date(t.year, t.month, t.date), F = s && m;
|
|
218
219
|
d.push(
|
|
219
220
|
C({
|
|
220
221
|
day: u,
|
|
@@ -227,13 +228,13 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
227
228
|
})
|
|
228
229
|
);
|
|
229
230
|
}
|
|
230
|
-
for (let
|
|
231
|
-
const u = b(
|
|
231
|
+
for (let r = 1; r <= f; r++) {
|
|
232
|
+
const u = b(r, a, o, t), g = new Date(o, a, r) < new Date(t.year, t.month, t.date), m = s && g;
|
|
232
233
|
d.push(
|
|
233
234
|
C({
|
|
234
|
-
day:
|
|
235
|
+
day: r,
|
|
235
236
|
currentDate: l,
|
|
236
|
-
date: p(o,
|
|
237
|
+
date: p(o, a, r),
|
|
237
238
|
isToday: u,
|
|
238
239
|
isOutsideMonth: !1,
|
|
239
240
|
select: n,
|
|
@@ -241,14 +242,14 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
241
242
|
})
|
|
242
243
|
);
|
|
243
244
|
}
|
|
244
|
-
const y =
|
|
245
|
-
for (let
|
|
246
|
-
const u = b(
|
|
245
|
+
const y = a === 11 ? 0 : a + 1, v = a === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
|
|
246
|
+
for (let r = 1; r <= O; r++) {
|
|
247
|
+
const u = b(r, y, v, t), g = new Date(v, y, r) < new Date(t.year, t.month, t.date), m = s && g;
|
|
247
248
|
d.push(
|
|
248
249
|
C({
|
|
249
|
-
day:
|
|
250
|
+
day: r,
|
|
250
251
|
currentDate: l,
|
|
251
|
-
date: p(v, y,
|
|
252
|
+
date: p(v, y, r),
|
|
252
253
|
isToday: u,
|
|
253
254
|
isOutsideMonth: !0,
|
|
254
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-CjZyNE0l.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";
|
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-v1Cf3utk.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-CjZyNE0l.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-ZyNXl1zc.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-v1Cf3utk.js";
|
|
2
|
+
import { A as O, P as R, g as _ } from "./calendar-CjZyNE0l.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-ZyNXl1zc.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-CjZyNE0l.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-CjZyNE0l.js";
|
|
8
8
|
u((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...t,
|
package/package.json
CHANGED