@base-framework/ui 1.2.56 → 1.2.58

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/atoms.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as t, f as e, h as n, i as o, k as l, l as i, m as u, n as r, t as p, w as I, J as g, L as c, M as d, N as m, O as F, P as T, Q as B, R as S, S as b, T as C, U as x, a0 as f, a7 as P, a8 as h, a9 as k, ac as M, ad as U, ae as w, ai as E, an as G, au as L, ax as N, aB as R, aC as Z, aE as D, aF as H, aG as J, aK as Q, aP as V, aQ as W, aS as v, aW as K, aX as O, aY as X, aZ as Y, b0 as j, b1 as q, b2 as y, b5 as z, b6 as A } from "./full-page-D2lldsQp.js";
1
+ import { c as t, f as e, h as n, i as o, k as l, l as i, m as u, n as r, t as p, w as I, J as g, L as c, M as d, N as m, O as F, P as T, Q as B, R as S, S as b, T as C, U as x, a0 as f, a7 as P, a8 as h, a9 as k, ac as M, ad as U, ae as w, ai as E, an as G, au as L, ax as N, aB as R, aC as Z, aE as D, aF as H, aG as J, aK as Q, aP as V, aQ as W, aS as v, aW as K, aX as O, aY as X, aZ as Y, b0 as j, b1 as q, b2 as y, b5 as z, b6 as A } from "./full-page-B4fpZAqG.js";
2
2
  import { S as $ } from "./skeleton-BlY3opxG.js";
3
3
  export {
4
4
  t as Badge,
@@ -1,6 +1,6 @@
1
1
  import { Component as d, Html as m, Dom as y, base as v, Data as T, Builder as b, DateTime as g } from "@base-framework/base";
2
2
  import { Li as S, Span as p, Div as a, Ul as w, Button as D, I as x, OnState as Y, Time as B } from "@base-framework/atoms";
3
- import { az as k, b8 as C, f as c, at as E, F as L } from "./full-page-D2lldsQp.js";
3
+ import { az as k, b8 as C, f as c, at as E, F as L } from "./full-page-B4fpZAqG.js";
4
4
  import { List as N, DynamicTime as M } from "@base-framework/organisms";
5
5
  class X extends d {
6
6
  /**
@@ -4298,12 +4298,20 @@ tt.addType("dockableOverlay", (e) => {
4298
4298
  });
4299
4299
  class Ho extends fa {
4300
4300
  /**
4301
- * This will stop presistence.
4301
+ * This will declare the props for the component.
4302
+ *
4303
+ * @returns {void}
4304
+ */
4305
+ declareProps() {
4306
+ super.declareProps(), this.animateIn = null, this.animateOut = null, this.maxSize = 1024;
4307
+ }
4308
+ /**
4309
+ * This will set the dock size threshold from the maxSize prop.
4302
4310
  *
4303
4311
  * @returns {void}
4304
4312
  */
4305
4313
  onCreated() {
4306
- this.dockSize = this.maxSize || 1024;
4314
+ this.dockSize = this.maxSize;
4307
4315
  }
4308
4316
  /**
4309
4317
  * This will render the component.
@@ -4314,16 +4322,14 @@ class Ho extends fa {
4314
4322
  const t = this.container;
4315
4323
  return l(
4316
4324
  {
4317
- // @ts-ignore
4318
4325
  animateIn: this.animateIn ?? null,
4319
- // @ts-ignore
4320
4326
  animateOut: this.animateOut ?? null,
4321
4327
  onState: [
4322
4328
  ["loading", {
4323
4329
  loading: !0
4324
4330
  }],
4325
4331
  ["docked", (s, n) => {
4326
- s ? (n.className = this.getDockedClassName(), t.appendChild(n)) : (n.className = this.getClassName(), app.root.appendChild(n));
4332
+ s ? (n.className = this.getDockedClassName(), t.appendChild(n)) : (n.className = this.getClassName(), globalThis.app.root.appendChild(n));
4327
4333
  }]
4328
4334
  ]
4329
4335
  },
@@ -4338,12 +4344,12 @@ class Ho extends fa {
4338
4344
  * @returns {string}
4339
4345
  */
4340
4346
  getDockedClassName() {
4341
- return "flex flex-auto flex-col bg-background flex will-change-contents " + (this.class || "");
4347
+ return `flex flex-auto flex-col bg-background will-change-contents ${this.class || ""}`.trim();
4342
4348
  }
4343
4349
  /**
4344
- * This will setup and render the component.
4350
+ * This will set up and render the component inside the given container.
4345
4351
  *
4346
- * @param {object} container
4352
+ * @param {HTMLElement} container
4347
4353
  * @returns {void}
4348
4354
  */
4349
4355
  setup(t) {
@@ -4361,18 +4367,13 @@ class Ho extends fa {
4361
4367
  };
4362
4368
  }
4363
4369
  /**
4364
- * This will check the dock size.
4370
+ * This will register this overlay with the data tracker and
4371
+ * perform an initial dock-state check.
4365
4372
  *
4366
4373
  * @returns {void}
4367
4374
  */
4368
4375
  afterSetup() {
4369
- tt.add(
4370
- this.container,
4371
- "dockableOverlay",
4372
- {
4373
- component: this
4374
- }
4375
- ), this.onResize();
4376
+ tt.add(this.container, "dockableOverlay", { component: this }), this.onResize();
4376
4377
  }
4377
4378
  /**
4378
4379
  * This will setup the overlay events.
@@ -4385,7 +4386,7 @@ class Ho extends fa {
4385
4386
  ];
4386
4387
  }
4387
4388
  /**
4388
- * This will check if the overlay can dock.
4389
+ * This will check if the viewport is wide enough to dock the overlay.
4389
4390
  *
4390
4391
  * @returns {boolean}
4391
4392
  */
@@ -4393,13 +4394,21 @@ class Ho extends fa {
4393
4394
  return globalThis.innerWidth >= this.dockSize;
4394
4395
  }
4395
4396
  /**
4396
- * This will handle the overlay resize.
4397
+ * This will update the docked state when the viewport is resized.
4397
4398
  *
4398
4399
  * @returns {void}
4399
4400
  */
4400
4401
  onResize() {
4401
4402
  this.state.docked = this.canDock();
4402
4403
  }
4404
+ /**
4405
+ * docks the overlay before the component is destroyed to ensure it is in the correct container
4406
+ *
4407
+ * @returns {void}
4408
+ */
4409
+ beforeDestroy() {
4410
+ this.state.docked = !1;
4411
+ }
4403
4412
  }
4404
4413
  const ga = i(({ index: e, click: t, state: s }, n) => ve({
4405
4414
  class: "p-2 cursor-pointer hover:bg-muted/50",
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { A as s, a as o, B as t, b as n, c as r, d as l, e as i, f as u, C as p, g as m, h as d, i as g, j as c, k as T, l as b, m as I, n as C, o as S, p as F, q as D, r as B, D as P, s as k, t as M, u as v, v as N, w as f, x, y as h, z as y, E as U, F as W, G as w, H as L, I as H, J as A, K as G, L as R, M as E, N as O, O as V, P as Z, Q as j, R as J, S as _, T as q, U as z, V as K, W as Q, X, Y, Z as $, _ as aa, $ as ea, a0 as sa, a1 as oa, a2 as ta, a3 as na, a4 as ra, a5 as la, a6 as ia, a7 as ua, a8 as pa, a9 as ma, aa as da, ab as ga, ac as ca, ad as Ta, ae as ba, af as Ia, ag as Ca, ah as Sa, ai as Fa, aj as Da, ak as Ba, al as Pa, am as ka, an as Ma, ao as va, ap as Na, aq as fa, ar as xa, as as ha, at as ya, au as Ua, av as Wa, aw as wa, ax as La, ay as Ha, az as Aa, aA as Ga, aB as Ra, aC as Ea, aD as Oa, aE as Va, aF as Za, aG as ja, aH as Ja, aI as _a, aJ as qa, aK as za, aL as Ka, aM as Qa, aN as Xa, aO as Ya, aP as $a, aQ as ae, aR as ee, aS as se, aT as oe, aU as te, aV as ne, aW as re, aX as le, aY as ie, aZ as ue, a_ as pe, a$ as me, b0 as de, b1 as ge, b2 as ce, b3 as Te, b4 as be, b5 as Ie, b6 as Ce, b7 as Se } from "./full-page-D2lldsQp.js";
1
+ import { A as s, a as o, B as t, b as n, c as r, d as l, e as i, f as u, C as p, g as m, h as d, i as g, j as c, k as T, l as b, m as I, n as C, o as S, p as F, q as D, r as B, D as P, s as k, t as M, u as v, v as N, w as f, x, y as h, z as y, E as U, F as W, G as w, H as L, I as H, J as A, K as G, L as R, M as E, N as O, O as V, P as Z, Q as j, R as J, S as _, T as q, U as z, V as K, W as Q, X, Y, Z as $, _ as aa, $ as ea, a0 as sa, a1 as oa, a2 as ta, a3 as na, a4 as ra, a5 as la, a6 as ia, a7 as ua, a8 as pa, a9 as ma, aa as da, ab as ga, ac as ca, ad as Ta, ae as ba, af as Ia, ag as Ca, ah as Sa, ai as Fa, aj as Da, ak as Ba, al as Pa, am as ka, an as Ma, ao as va, ap as Na, aq as fa, ar as xa, as as ha, at as ya, au as Ua, av as Wa, aw as wa, ax as La, ay as Ha, az as Aa, aA as Ga, aB as Ra, aC as Ea, aD as Oa, aE as Va, aF as Za, aG as ja, aH as Ja, aI as _a, aJ as qa, aK as za, aL as Ka, aM as Qa, aN as Xa, aO as Ya, aP as $a, aQ as ae, aR as ee, aS as se, aT as oe, aU as te, aV as ne, aW as re, aX as le, aY as ie, aZ as ue, a_ as pe, a$ as me, b0 as de, b1 as ge, b2 as ce, b3 as Te, b4 as be, b5 as Ie, b6 as Ce, b7 as Se } from "./full-page-B4fpZAqG.js";
2
2
  import { S as De } from "./skeleton-BlY3opxG.js";
3
3
  import { Icons as Pe, MaterialSymbols as ke } from "./icons.es.js";
4
- import { C as ve, D as Ne, a as fe, b as xe, c as he, d as ye, e as Ue, M as We, N as we, S as Le, f as He, g as Ae, h as Ge, T as Re, i as Ee } from "./confirmation-idedGLdE.js";
5
- import { B as Ve, I as Ze, N as je, P as Je, S as _e, T as qe, a as ze, b as Ke, U as Qe, c as Xe, d as Ye, e as $e, W as as, f as es, g as ss, h as os, i as ts, j as ns, k as rs, l as ls, m as is, n as us } from "./signature-panel-B3-3Ilyx.js";
6
- import { S as ms } from "./sidebar-menu-B2tjx9ce.js";
7
- import { B as gs, C as cs, F as Ts, a as bs, S as Is } from "./sidebar-menu-page-BxEIJzXY.js";
4
+ import { C as ve, D as Ne, a as fe, b as xe, c as he, d as ye, e as Ue, M as We, N as we, S as Le, f as He, g as Ae, h as Ge, T as Re, i as Ee } from "./confirmation-Bviw9E3N.js";
5
+ import { B as Ve, I as Ze, N as je, P as Je, S as _e, T as qe, a as ze, b as Ke, U as Qe, c as Xe, d as Ye, e as $e, W as as, f as es, g as ss, h as os, i as ts, j as ns, k as rs, l as ls, m as is, n as us } from "./signature-panel-DkNMYfqH.js";
6
+ import { S as ms } from "./sidebar-menu-CawV8eUH.js";
7
+ import { B as gs, C as cs, F as Ts, a as bs, S as Is } from "./sidebar-menu-page-Ciru9rdp.js";
8
8
  import { A as Ss, B as Fs, F as Ds, M as Bs, T as Ps, a as ks } from "./bside-template-C7AQgQ6H.js";
9
9
  import { F as vs, c as Ns } from "./format-DE4rFWuD.js";
10
10
  import { I as xs } from "./image-scaler-1G-JzJVG.js";
@@ -1,5 +1,5 @@
1
- import { A as s, a as t, e, o as r, p as i, q as n, r as m, u as l, v as d, z as C, E as p, F as D, H as S, K as u, V as c, W as g, X as F, Y as T, Z as f, _ as b, $ as w, a1 as A, a2 as I, a3 as M, aa as P, af as y, aj as B, at as R, ay as U, az as k, aM as v, aR as x, aT as E, aV as L, b4 as N } from "./full-page-D2lldsQp.js";
2
- import { C as z, D as V, a as _, b as j, c as q, d as G, e as H, M as K, N as O, S as W, f as X, g as Y, h as Z, T as $, i as J } from "./confirmation-idedGLdE.js";
1
+ import { A as s, a as t, e, o as r, p as i, q as n, r as m, u as l, v as d, z as C, E as p, F as D, H as S, K as u, V as c, W as g, X as F, Y as T, Z as f, _ as b, $ as w, a1 as A, a2 as I, a3 as M, aa as P, af as y, aj as B, at as R, ay as U, az as k, aM as v, aR as x, aT as E, aV as L, b4 as N } from "./full-page-B4fpZAqG.js";
2
+ import { C as z, D as V, a as _, b as j, c as q, d as G, e as H, M as K, N as O, S as W, f as X, g as Y, h as Z, T as $, i as J } from "./confirmation-Bviw9E3N.js";
3
3
  export {
4
4
  s as Alert,
5
5
  t as Avatar,
@@ -1,6 +1,6 @@
1
- import { B as s, b as n, C as t, g as r, j as o, D as l, s as i, x as d, y as b, G as u, I as g, a4 as p, a6 as v, ab as D, ag as N, ak as T, al as k, am as C, ao as c, ap as m, aq as y, ar as B, as as S, av as h, aA as M, aD as W, aH as I, aI as U, aJ as H, aL as x, aN as P, aO as L, aU as f, a_ as G, a$ as O, b3 as j, b7 as F } from "./full-page-D2lldsQp.js";
2
- import { B as w, I as A, N as J, P as R, S as _, T as $, a as z, b as E, U as K, c as Q, d as V, e as X, W as Y, f as Z, g as aa, h as ea, i as sa, j as na, k as ta, l as ra, m as oa, n as la } from "./signature-panel-B3-3Ilyx.js";
3
- import { S as da } from "./sidebar-menu-B2tjx9ce.js";
1
+ import { B as s, b as n, C as t, g as r, j as o, D as l, s as i, x as d, y as b, G as u, I as g, a4 as p, a6 as v, ab as D, ag as N, ak as T, al as k, am as C, ao as c, ap as m, aq as y, ar as B, as as S, av as h, aA as M, aD as W, aH as I, aI as U, aJ as H, aL as x, aN as P, aO as L, aU as f, a_ as G, a$ as O, b3 as j, b7 as F } from "./full-page-B4fpZAqG.js";
2
+ import { B as w, I as A, N as J, P as R, S as _, T as $, a as z, b as E, U as K, c as Q, d as V, e as X, W as Y, f as Z, g as aa, h as ea, i as sa, j as na, k as ta, l as ra, m as oa, n as la } from "./signature-panel-DkNMYfqH.js";
3
+ import { S as da } from "./sidebar-menu-CawV8eUH.js";
4
4
  export {
5
5
  s as BackButton,
6
6
  n as Backdrop,
package/dist/pages.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as s, a5 as g, ah as n, aw as P } from "./full-page-D2lldsQp.js";
2
- import { B as r, C as o, F as i, a as t, S as u } from "./sidebar-menu-page-BxEIJzXY.js";
1
+ import { d as s, a5 as g, ah as n, aw as P } from "./full-page-B4fpZAqG.js";
2
+ import { B as r, C as o, F as i, a as t, S as u } from "./sidebar-menu-page-Ciru9rdp.js";
3
3
  export {
4
4
  s as BasicPage,
5
5
  r as BlankPage,
@@ -1,5 +1,5 @@
1
1
  import { Div as r, Header as x, H1 as c } from "@base-framework/atoms";
2
- import { ab as n } from "./full-page-D2lldsQp.js";
2
+ import { ab as n } from "./full-page-B4fpZAqG.js";
3
3
  const b = ({ title: l, options: a, class: s = "", mobileBorder: t = !1, sticky: e = !1, topNav: o = null, bottomNav: p = null }) => r({ class: `pb-12 p-4 pt-0 lg:p-6 lg:border-r w-full lg:max-w-[300px] flex-auto flex-col ${s}` }, [
4
4
  o,
5
5
  l && x({ class: "pb-4 md:pb-2 px-6 flex" }, [
@@ -1,7 +1,7 @@
1
1
  import { Div as s } from "@base-framework/atoms";
2
- import { d as a, ah as i, aw as r, al as n } from "./full-page-D2lldsQp.js";
2
+ import { d as a, ah as i, aw as r, al as n } from "./full-page-B4fpZAqG.js";
3
3
  import { F as l, A as d } from "./bside-template-C7AQgQ6H.js";
4
- import { S as c } from "./sidebar-menu-B2tjx9ce.js";
4
+ import { S as c } from "./sidebar-menu-CawV8eUH.js";
5
5
  class f extends a {
6
6
  /**
7
7
  * This will render the page.
@@ -1,6 +1,6 @@
1
1
  import { Div as r, Button as b, On as U, Span as $, Nav as f, Ul as p, Section as y, Li as w, Canvas as R } from "@base-framework/atoms";
2
2
  import { Component as k, Data as F, DateTime as O, router as v, NavLink as C, base as P, Dom as W } from "@base-framework/base";
3
- import { f as N, av as Y, b0 as d, a7 as A } from "./full-page-D2lldsQp.js";
3
+ import { f as N, av as Y, b0 as d, a7 as A } from "./full-page-B4fpZAqG.js";
4
4
  import { Icons as B } from "./icons.es.js";
5
5
  import { IntervalTimer as V } from "@base-framework/organisms";
6
6
  class Pt extends k {
@@ -1,13 +1,29 @@
1
1
  /**
2
2
  * DockableOverlay
3
3
  *
4
- * This will create an dockable overlay.
4
+ * A dockable overlay that renders inline when the viewport is wide enough
5
+ * and as a full-screen overlay when it is not.
5
6
  *
6
7
  * @class
7
8
  * @extends Overlay
8
9
  */
9
10
  export class DockableOverlay extends Overlay {
10
- dockSize: any;
11
+ /**
12
+ * @member {string|null} animateIn
13
+ * @default null
14
+ */
15
+ animateIn: any;
16
+ /**
17
+ * @member {string|null} animateOut
18
+ * @default null
19
+ */
20
+ animateOut: any;
21
+ /**
22
+ * @member {number} maxSize - Viewport width threshold at which the overlay docks.
23
+ * @default 1024
24
+ */
25
+ maxSize: number;
26
+ dockSize: number;
11
27
  /**
12
28
  * This will get the docked className.
13
29
  *
@@ -15,12 +31,12 @@ export class DockableOverlay extends Overlay {
15
31
  */
16
32
  getDockedClassName(): string;
17
33
  /**
18
- * This will setup and render the component.
34
+ * This will set up and render the component inside the given container.
19
35
  *
20
- * @param {object} container
36
+ * @param {HTMLElement} container
21
37
  * @returns {void}
22
38
  */
23
- setup(container: object): void;
39
+ setup(container: HTMLElement): void;
24
40
  /**
25
41
  * This will setup the overlay events.
26
42
  *
@@ -28,13 +44,13 @@ export class DockableOverlay extends Overlay {
28
44
  */
29
45
  setupEvents(): Array<object>;
30
46
  /**
31
- * This will check if the overlay can dock.
47
+ * This will check if the viewport is wide enough to dock the overlay.
32
48
  *
33
49
  * @returns {boolean}
34
50
  */
35
51
  canDock(): boolean;
36
52
  /**
37
- * This will handle the overlay resize.
53
+ * This will update the docked state when the viewport is resized.
38
54
  *
39
55
  * @returns {void}
40
56
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {