@citruslime/ui 4.0.0-beta.10 → 4.0.0-beta.11

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.
@@ -1519,16 +1519,16 @@ const Sa = {
1519
1519
  fallbackWarn: !1,
1520
1520
  warnHtmlMessage: !1
1521
1521
  });
1522
- function Yu(o, t) {
1522
+ function Qu(o, t) {
1523
1523
  return qe.global.mergeLocaleMessage(o, t), Fe();
1524
1524
  }
1525
- function Ju(o, t) {
1525
+ function Yu(o, t) {
1526
1526
  return qe.global.mergeNumberFormat(o, t), Fe();
1527
1527
  }
1528
- function Xu(o, t) {
1528
+ function Ju(o, t) {
1529
1529
  return qe.global.mergeDateTimeFormat(o, t), Fe();
1530
1530
  }
1531
- function xu(o) {
1531
+ function Xu(o) {
1532
1532
  return qe.global.locale.value = o, Fe();
1533
1533
  }
1534
1534
  const { locale: Da, getNumberFormat: Oa } = qe.global, cl = ae.DECIMAL;
@@ -1682,7 +1682,7 @@ function Ia(o) {
1682
1682
  from: "@iconify/vue"
1683
1683
  };
1684
1684
  }
1685
- function _u() {
1685
+ function xu() {
1686
1686
  return Ia;
1687
1687
  }
1688
1688
  const { t: Ae } = qe.global;
@@ -7110,7 +7110,7 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7110
7110
  ], 64);
7111
7111
  };
7112
7112
  }
7113
- }), cu = { class: "cl-flex-shrink-0 cl-overflow-hidden cl-w-full" }, du = ["title"], pu = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, fu = { class: "cl-font-semibold" }, mu = { class: "cl-overflow-hidden" }, gu = { class: "cl-mt-1" }, vu = /* @__PURE__ */ j({
7113
+ }), cu = { class: "cl-flex-shrink-0 cl-overflow-hidden cl-w-full" }, du = ["title"], pu = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, fu = { class: "cl-font-semibold" }, mu = { class: "cl-mt-1" }, gu = /* @__PURE__ */ j({
7114
7114
  __name: "cl-ui-menu-group",
7115
7115
  props: {
7116
7116
  title: {},
@@ -7140,10 +7140,15 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7140
7140
  [de, t.menuOpen]
7141
7141
  ])
7142
7142
  ], 8, du),
7143
- b("div", mu, [
7144
- q(Ie, { name: "menu-slide" }, {
7143
+ b("div", {
7144
+ class: E(["cl-overflow-hidden", { "animate-enabled": t.menuOpen }])
7145
+ }, [
7146
+ q(Ie, {
7147
+ name: "menu-slide",
7148
+ disabled: t.menuOpen === !1
7149
+ }, {
7145
7150
  default: V(() => [
7146
- ne(b("div", gu, [
7151
+ ne(b("div", mu, [
7147
7152
  q(m(Dt), null, {
7148
7153
  default: V(() => [
7149
7154
  D(t.$slots, "default")
@@ -7155,12 +7160,12 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7155
7160
  ])
7156
7161
  ]),
7157
7162
  _: 3
7158
- })
7159
- ])
7163
+ }, 8, ["disabled"])
7164
+ ], 2)
7160
7165
  ]);
7161
7166
  };
7162
7167
  }
7163
- }), hu = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Ql = "24", Ml = /* @__PURE__ */ j({
7168
+ }), vu = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Ql = "24", Ml = /* @__PURE__ */ j({
7164
7169
  __name: "cl-ui-menu-icon",
7165
7170
  props: {
7166
7171
  iconValue: {}
@@ -7168,7 +7173,7 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7168
7173
  setup(o) {
7169
7174
  return (t, l) => {
7170
7175
  const e = Se("icon");
7171
- return u(), v("div", hu, [
7176
+ return u(), v("div", vu, [
7172
7177
  q(e, {
7173
7178
  icon: t.iconValue,
7174
7179
  width: Ql,
@@ -7177,26 +7182,26 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7177
7182
  ]);
7178
7183
  };
7179
7184
  }
7180
- }), bu = { class: "cl-flex cl-flex-row" }, yu = { class: "cl-flex cl-flex-1 cl-flex-col" }, Dt = /* @__PURE__ */ j({
7185
+ }), hu = { class: "cl-flex cl-flex-row" }, bu = { class: "cl-flex cl-flex-1 cl-flex-col" }, Dt = /* @__PURE__ */ j({
7181
7186
  __name: "cl-ui-menu-section",
7182
7187
  setup(o) {
7183
- return (t, l) => (u(), v("div", bu, [
7188
+ return (t, l) => (u(), v("div", hu, [
7184
7189
  l[0] || (l[0] = b("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
7185
7190
  b("div", { class: "cl-bg-grey-2 cl-w-[1px]" }, "   ")
7186
7191
  ], -1)),
7187
- b("div", yu, [
7192
+ b("div", bu, [
7188
7193
  D(t.$slots, "default")
7189
7194
  ])
7190
7195
  ]));
7191
7196
  }
7192
- }), wu = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, ku = /* @__PURE__ */ j({
7197
+ }), yu = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, wu = /* @__PURE__ */ j({
7193
7198
  __name: "cl-ui-menu-item",
7194
7199
  setup(o) {
7195
- return (t, l) => (u(), v("div", wu, [
7200
+ return (t, l) => (u(), v("div", yu, [
7196
7201
  D(t.$slots, "default")
7197
7202
  ]));
7198
7203
  }
7199
- }), $u = ["height"], Tu = ["y2"], Su = ["y1", "y2"], Cu = /* @__PURE__ */ j({
7204
+ }), ku = ["height"], $u = ["y2"], Tu = ["y1", "y2"], Su = /* @__PURE__ */ j({
7200
7205
  __name: "cl-ui-tree-list-tree-path",
7201
7206
  props: {
7202
7207
  branchesAt: {}
@@ -7217,7 +7222,7 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7217
7222
  x2: "50%",
7218
7223
  y2: t.branchesAt.at(-1) ?? 0,
7219
7224
  "stroke-linecap": "round"
7220
- }, null, 8, Tu),
7225
+ }, null, 8, $u),
7221
7226
  (u(!0), v(K, null, x(e.branchesAt, (a, i) => (u(), v("line", {
7222
7227
  key: i,
7223
7228
  x1: "50%",
@@ -7225,14 +7230,14 @@ const ji = /* @__PURE__ */ Te(Bi, [["render", Fi]]), Pi = /* @__PURE__ */ j({
7225
7230
  x2: "100%",
7226
7231
  y2: a,
7227
7232
  "stroke-linecap": "round"
7228
- }, null, 8, Su))), 128))
7229
- ], 8, $u));
7233
+ }, null, 8, Tu))), 128))
7234
+ ], 8, ku));
7230
7235
  }
7231
7236
  });
7232
- function qu(...o) {
7237
+ function Cu(...o) {
7233
7238
  return o.map((t) => t.replace(/ /g, "_")).join(" ");
7234
7239
  }
7235
- function Du(o, t) {
7240
+ function qu(o, t) {
7236
7241
  var s;
7237
7242
  const l = t.split(" ");
7238
7243
  let e;
@@ -7241,13 +7246,13 @@ function Du(o, t) {
7241
7246
  break;
7242
7247
  return e ?? null;
7243
7248
  }
7244
- const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { class: "cl-h-8 cl-px-1.5 cl-py-[3px] cl-w-8" }, Au = ["id"], Vu = {
7249
+ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { class: "cl-h-8 cl-px-1.5 cl-py-[3px] cl-w-8" }, Eu = ["id"], Au = {
7245
7250
  key: 0,
7246
7251
  class: "cl-w-8"
7247
- }, Mu = ["id"], Iu = ["id"], Nu = {
7252
+ }, Vu = ["id"], Mu = ["id"], Iu = {
7248
7253
  key: 3,
7249
7254
  class: "cl-basis-full cl-flex cl-flex-col cl-gap-2 cl-pt-2"
7250
- }, Ru = /* @__PURE__ */ j({
7255
+ }, Nu = /* @__PURE__ */ j({
7251
7256
  __name: "cl-ui-tree-list-subtree",
7252
7257
  props: /* @__PURE__ */ pe({
7253
7258
  idPrefix: {},
@@ -7262,7 +7267,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7262
7267
  emits: /* @__PURE__ */ pe(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
7263
7268
  setup(o, { emit: t }) {
7264
7269
  var A;
7265
- const l = o, e = ye(o, "selectedPath"), s = t, a = $(() => qu(...l.pathFragments)), i = Mt(l.rootNode.expanded) ? l.rootNode.expanded : M(l.rootNode.expanded ?? !1), d = M(), { height: g } = Nl(d), n = hl(d), r = M([]), c = $(() => r.value.map((O) => Nl(O))), p = $(() => r.value.map((O) => hl(O))), w = M(new Array(((A = l.rootNode.children) == null ? void 0 : A.length) ?? 0).fill(0)), y = M([]);
7270
+ const l = o, e = ye(o, "selectedPath"), s = t, a = $(() => Cu(...l.pathFragments)), i = Mt(l.rootNode.expanded) ? l.rootNode.expanded : M(l.rootNode.expanded ?? !1), d = M(), { height: g } = Nl(d), n = hl(d), r = M([]), c = $(() => r.value.map((O) => Nl(O))), p = $(() => r.value.map((O) => hl(O))), w = M(new Array(((A = l.rootNode.children) == null ? void 0 : A.length) ?? 0).fill(0)), y = M([]);
7266
7271
  function f() {
7267
7272
  n.update(), y.value = p.value.map((O, C) => (O.update(), O.top.value - n.bottom.value + w.value[C] / 2 + 3)), s("recalculate-tree-path");
7268
7273
  }
@@ -7278,8 +7283,8 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7278
7283
  deep: !0
7279
7284
  }), Ge(S), (O, C) => {
7280
7285
  const P = Se("icon"), I = Se("cl-ui-tree-list-subtree", !0);
7281
- return u(), v("div", Ou, [
7282
- b("div", Eu, [
7286
+ return u(), v("div", Du, [
7287
+ b("div", Ou, [
7283
7288
  O.rootNode.children && O.rootNode.children.length > 0 ? (u(), v("button", {
7284
7289
  key: 0,
7285
7290
  id: `${O.idPrefix}-expand-button`,
@@ -7289,9 +7294,9 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7289
7294
  q(P, {
7290
7295
  icon: m(i) ? "ph:minus-square" : "ph:plus-square"
7291
7296
  }, null, 8, ["icon"])
7292
- ], 8, Au)) : U("", !0)
7297
+ ], 8, Eu)) : U("", !0)
7293
7298
  ]),
7294
- O.depth > 0 ? (u(), v("div", Vu)) : U("", !0),
7299
+ O.depth > 0 ? (u(), v("div", Au)) : U("", !0),
7295
7300
  b("div", {
7296
7301
  class: E(["cl-basis-full cl-relative", {
7297
7302
  "cl-tree-list-selection": e.value === a.value
@@ -7313,7 +7318,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7313
7318
  isExpanded: m(i),
7314
7319
  expand: (k) => i.value = k
7315
7320
  })
7316
- ], 8, Mu)) : (u(), v("button", {
7321
+ ], 8, Vu)) : (u(), v("button", {
7317
7322
  key: 1,
7318
7323
  id: `${O.idPrefix}-node-content`,
7319
7324
  ref_key: "nodeContentDiv",
@@ -7333,13 +7338,13 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7333
7338
  isExpanded: m(i),
7334
7339
  expand: (k) => i.value = k
7335
7340
  })
7336
- ], 10, Iu)),
7337
- O.rootNode.children && O.rootNode.children.length > 0 && m(i) ? (u(), L(Cu, {
7341
+ ], 10, Mu)),
7342
+ O.rootNode.children && O.rootNode.children.length > 0 && m(i) ? (u(), L(Su, {
7338
7343
  key: 2,
7339
7344
  class: "cl-tree-list-path",
7340
7345
  "branches-at": y.value
7341
7346
  }, null, 8, ["branches-at"])) : U("", !0),
7342
- O.rootNode.children && O.rootNode.children.length > 0 && m(i) ? (u(), v("div", Nu, [
7347
+ O.rootNode.children && O.rootNode.children.length > 0 && m(i) ? (u(), v("div", Iu, [
7343
7348
  (u(!0), v(K, null, x(O.rootNode.children, (k, W) => (u(), v("div", {
7344
7349
  key: k.id,
7345
7350
  ref_for: !0,
@@ -7370,7 +7375,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7370
7375
  ]);
7371
7376
  };
7372
7377
  }
7373
- }), Uu = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-4 cl-w-full" }, zu = /* @__PURE__ */ j({
7378
+ }), Ru = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-4 cl-w-full" }, Uu = /* @__PURE__ */ j({
7374
7379
  __name: "cl-ui-tree-list",
7375
7380
  props: {
7376
7381
  idPrefix: {},
@@ -7384,11 +7389,11 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7384
7389
  const l = o, e = t, s = M(""), a = $({
7385
7390
  get: () => l.allowSelect ? s.value : null,
7386
7391
  set(i) {
7387
- i ? (s.value = i, e("select", Du(l.rootNodes, i))) : l.allowDeselect && (s.value = "", e("select", null));
7392
+ i ? (s.value = i, e("select", qu(l.rootNodes, i))) : l.allowDeselect && (s.value = "", e("select", null));
7388
7393
  }
7389
7394
  });
7390
- return (i, d) => (u(), v("div", Uu, [
7391
- (u(!0), v(K, null, x(i.rootNodes, (g, n) => (u(), L(Ru, {
7395
+ return (i, d) => (u(), v("div", Ru, [
7396
+ (u(!0), v(K, null, x(i.rootNodes, (g, n) => (u(), L(Nu, {
7392
7397
  key: g.id,
7393
7398
  "selected-path": a.value,
7394
7399
  "onUpdate:selectedPath": d[0] || (d[0] = (r) => a.value = r),
@@ -7410,7 +7415,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7410
7415
  ]), 1032, ["selected-path", "class", "root-node", "breadth", "id-prefix", "path-fragments"]))), 128))
7411
7416
  ]));
7412
7417
  }
7413
- }), Bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7418
+ }), zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7414
7419
  __proto__: null,
7415
7420
  FilterOperation: se,
7416
7421
  allQuickDates: dt,
@@ -7451,9 +7456,9 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7451
7456
  clUiLoadingSpinner: _e,
7452
7457
  clUiLogin: ki,
7453
7458
  clUiMenu: uu,
7454
- clUiMenuGroup: vu,
7459
+ clUiMenuGroup: gu,
7455
7460
  clUiMenuIcon: Ml,
7456
- clUiMenuItem: ku,
7461
+ clUiMenuItem: wu,
7457
7462
  clUiMenuSection: Dt,
7458
7463
  clUiModal: ot,
7459
7464
  clUiNavigation: Di,
@@ -7471,7 +7476,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7471
7476
  clUiTabHeader: Gi,
7472
7477
  clUiToggle: eu,
7473
7478
  clUiToggleButton: lu,
7474
- clUiTreeList: zu,
7479
+ clUiTreeList: Uu,
7475
7480
  currentQuickDates: Qe,
7476
7481
  dateTimeCalendarTypes: mt,
7477
7482
  filterMethodTypes: ts,
@@ -7496,8 +7501,8 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7496
7501
  stringFormats: ls,
7497
7502
  tabColours: Qi,
7498
7503
  tabLayout: Yi
7499
- }, Symbol.toStringTag, { value: "Module" })), ec = (o) => {
7500
- o.use(qe), o.component("Icon", le), Object.entries(Bu).forEach(([
7504
+ }, Symbol.toStringTag, { value: "Module" })), _u = (o) => {
7505
+ o.use(qe), o.component("Icon", le), Object.entries(zu).forEach(([
7501
7506
  t,
7502
7507
  l
7503
7508
  ]) => {
@@ -7505,7 +7510,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
7505
7510
  });
7506
7511
  };
7507
7512
  export {
7508
- _u as CitrusLimeUI,
7513
+ xu as CitrusLimeUI,
7509
7514
  ie as DateFormat,
7510
7515
  se as FilterOperation,
7511
7516
  ae as NumberFormat,
@@ -7547,9 +7552,9 @@ export {
7547
7552
  _e as clUiLoadingSpinner,
7548
7553
  ki as clUiLogin,
7549
7554
  uu as clUiMenu,
7550
- vu as clUiMenuGroup,
7555
+ gu as clUiMenuGroup,
7551
7556
  Ml as clUiMenuIcon,
7552
- ku as clUiMenuItem,
7557
+ wu as clUiMenuItem,
7553
7558
  Dt as clUiMenuSection,
7554
7559
  ot as clUiModal,
7555
7560
  Di as clUiNavigation,
@@ -7567,11 +7572,11 @@ export {
7567
7572
  Gi as clUiTabHeader,
7568
7573
  eu as clUiToggle,
7569
7574
  lu as clUiToggleButton,
7570
- zu as clUiTreeList,
7575
+ Uu as clUiTreeList,
7571
7576
  Qe as currentQuickDates,
7572
7577
  mt as dateTimeCalendarTypes,
7573
7578
  qa as datetimeFormats,
7574
- ec as default,
7579
+ _u as default,
7575
7580
  Ea as doesNumberStringContainPart,
7576
7581
  ts as filterMethodTypes,
7577
7582
  Me as formatNumber,
@@ -7600,10 +7605,10 @@ export {
7600
7605
  Zn as popoverPlacements,
7601
7606
  An as quickDateNames,
7602
7607
  Ma as scrubGroupSeparatorsFromFormattedValue,
7603
- xu as setCurrentLocale,
7604
- Xu as setLocaleDateTimeFormats,
7605
- Yu as setLocaleMessages,
7606
- Ju as setLocaleNumberFormats,
7608
+ Xu as setCurrentLocale,
7609
+ Ju as setLocaleDateTimeFormats,
7610
+ Qu as setLocaleMessages,
7611
+ Yu as setLocaleNumberFormats,
7607
7612
  Rl as showNotification,
7608
7613
  ls as stringFormats,
7609
7614
  Qi as tabColours,