@gemafajarramadhan/dynamic-ui 1.2.77 → 1.2.78

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.
@@ -6081,7 +6081,7 @@ const kb = (e, t = "IDR") => {
6081
6081
  for (const [o, r] of t)
6082
6082
  n[o] = r;
6083
6083
  return n;
6084
- }, ut = /* @__PURE__ */ Lt(Mb, [["__scopeId", "data-v-c123cb99"]]), Eb = { class: "flex flex-col gap-1" }, Tb = {
6084
+ }, dt = /* @__PURE__ */ Lt(Mb, [["__scopeId", "data-v-c123cb99"]]), Eb = { class: "flex flex-col gap-1" }, Tb = {
6085
6085
  key: 0,
6086
6086
  class: "text-sm font-semibold text-neutral-900 dark:text-neutral-100 leading-tight"
6087
6087
  }, Ob = {
@@ -12337,7 +12337,7 @@ function Ue(e, t) {
12337
12337
  return typeof e > "u" ? t : e;
12338
12338
  }
12339
12339
  const t1 = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, Mf = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
12340
- function dt(e, t, n) {
12340
+ function ut(e, t, n) {
12341
12341
  if (e && typeof e.call == "function")
12342
12342
  return e.apply(n, t);
12343
12343
  }
@@ -16042,7 +16042,7 @@ class nr extends Nn {
16042
16042
  this._cache = {}, this._dataLimitsCached = !1;
16043
16043
  }
16044
16044
  beforeUpdate() {
16045
- dt(this.options.beforeUpdate, [
16045
+ ut(this.options.beforeUpdate, [
16046
16046
  this
16047
16047
  ]);
16048
16048
  }
@@ -16062,12 +16062,12 @@ class nr extends Nn {
16062
16062
  this.isHorizontal() ? (n = this.left, o = this.right) : (n = this.top, o = this.bottom, t = !t), this._startPixel = n, this._endPixel = o, this._reversePixels = t, this._length = o - n, this._alignToPixels = this.options.alignToPixels;
16063
16063
  }
16064
16064
  afterUpdate() {
16065
- dt(this.options.afterUpdate, [
16065
+ ut(this.options.afterUpdate, [
16066
16066
  this
16067
16067
  ]);
16068
16068
  }
16069
16069
  beforeSetDimensions() {
16070
- dt(this.options.beforeSetDimensions, [
16070
+ ut(this.options.beforeSetDimensions, [
16071
16071
  this
16072
16072
  ]);
16073
16073
  }
@@ -16075,12 +16075,12 @@ class nr extends Nn {
16075
16075
  this.isHorizontal() ? (this.width = this.maxWidth, this.left = 0, this.right = this.width) : (this.height = this.maxHeight, this.top = 0, this.bottom = this.height), this.paddingLeft = 0, this.paddingTop = 0, this.paddingRight = 0, this.paddingBottom = 0;
16076
16076
  }
16077
16077
  afterSetDimensions() {
16078
- dt(this.options.afterSetDimensions, [
16078
+ ut(this.options.afterSetDimensions, [
16079
16079
  this
16080
16080
  ]);
16081
16081
  }
16082
16082
  _callHooks(t) {
16083
- this.chart.notifyPlugins(t, this.getContext()), dt(this.options[t], [
16083
+ this.chart.notifyPlugins(t, this.getContext()), ut(this.options[t], [
16084
16084
  this
16085
16085
  ]);
16086
16086
  }
@@ -16102,7 +16102,7 @@ class nr extends Nn {
16102
16102
  this._callHooks("afterBuildTicks");
16103
16103
  }
16104
16104
  beforeTickToLabelConversion() {
16105
- dt(this.options.beforeTickToLabelConversion, [
16105
+ ut(this.options.beforeTickToLabelConversion, [
16106
16106
  this
16107
16107
  ]);
16108
16108
  }
@@ -16110,19 +16110,19 @@ class nr extends Nn {
16110
16110
  const n = this.options.ticks;
16111
16111
  let o, r, a;
16112
16112
  for (o = 0, r = t.length; o < r; o++)
16113
- a = t[o], a.label = dt(n.callback, [
16113
+ a = t[o], a.label = ut(n.callback, [
16114
16114
  a.value,
16115
16115
  o,
16116
16116
  t
16117
16117
  ], this);
16118
16118
  }
16119
16119
  afterTickToLabelConversion() {
16120
- dt(this.options.afterTickToLabelConversion, [
16120
+ ut(this.options.afterTickToLabelConversion, [
16121
16121
  this
16122
16122
  ]);
16123
16123
  }
16124
16124
  beforeCalculateLabelRotation() {
16125
- dt(this.options.beforeCalculateLabelRotation, [
16125
+ ut(this.options.beforeCalculateLabelRotation, [
16126
16126
  this
16127
16127
  ]);
16128
16128
  }
@@ -16137,14 +16137,14 @@ class nr extends Nn {
16137
16137
  i = t.offset ? this.maxWidth / o : h / (o - 1), u + 6 > i && (i = h / (o - (t.offset ? 0.5 : 1)), l = this.maxHeight - dr(t.grid) - n.padding - Cd(t.title, this.chart.options.font), c = Math.sqrt(u * u + f * f), s = h1(Math.min(Math.asin(Et((d.highest.height + 6) / i, -1, 1)), Math.asin(Et(l / c, -1, 1)) - Math.asin(Et(f / c, -1, 1)))), s = Math.max(r, Math.min(a, s))), this.labelRotation = s;
16138
16138
  }
16139
16139
  afterCalculateLabelRotation() {
16140
- dt(this.options.afterCalculateLabelRotation, [
16140
+ ut(this.options.afterCalculateLabelRotation, [
16141
16141
  this
16142
16142
  ]);
16143
16143
  }
16144
16144
  afterAutoSkip() {
16145
16145
  }
16146
16146
  beforeFit() {
16147
- dt(this.options.beforeFit, [
16147
+ ut(this.options.beforeFit, [
16148
16148
  this
16149
16149
  ]);
16150
16150
  }
@@ -16184,7 +16184,7 @@ class nr extends Nn {
16184
16184
  this._margins && (this._margins.left = Math.max(this.paddingLeft, this._margins.left), this._margins.top = Math.max(this.paddingTop, this._margins.top), this._margins.right = Math.max(this.paddingRight, this._margins.right), this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom));
16185
16185
  }
16186
16186
  afterFit() {
16187
- dt(this.options.afterFit, [
16187
+ ut(this.options.afterFit, [
16188
16188
  this
16189
16189
  ]);
16190
16190
  }
@@ -16699,7 +16699,7 @@ class $k {
16699
16699
  }
16700
16700
  _exec(t, n, o) {
16701
16701
  const r = cl(t);
16702
- dt(o["before" + r], [], o), n[t](o), dt(o["after" + r], [], o);
16702
+ ut(o["before" + r], [], o), n[t](o), ut(o["after" + r], [], o);
16703
16703
  }
16704
16704
  _getRegistryForType(t) {
16705
16705
  for (let n = 0; n < this._typedRegistries.length; n++) {
@@ -16735,7 +16735,7 @@ class Fk {
16735
16735
  r,
16736
16736
  a.options
16737
16737
  ];
16738
- if (dt(i, l, s) === !1 && r.cancelable)
16738
+ if (ut(i, l, s) === !1 && r.cancelable)
16739
16739
  return !1;
16740
16740
  }
16741
16741
  return !0;
@@ -17066,13 +17066,13 @@ function Td(e, t) {
17066
17066
  }
17067
17067
  function Od(e) {
17068
17068
  const t = e.chart, n = t.options.animation;
17069
- t.notifyPlugins("afterRender"), dt(n && n.onComplete, [
17069
+ t.notifyPlugins("afterRender"), ut(n && n.onComplete, [
17070
17070
  e
17071
17071
  ], t);
17072
17072
  }
17073
17073
  function e2(e) {
17074
17074
  const t = e.chart, n = t.options.animation;
17075
- dt(n && n.onProgress, [
17075
+ ut(n && n.onProgress, [
17076
17076
  e
17077
17077
  ], t);
17078
17078
  }
@@ -17154,7 +17154,7 @@ class On {
17154
17154
  const o = this.options, r = this.canvas, a = o.maintainAspectRatio && this.aspectRatio, s = this.platform.getMaximumSize(r, t, n, a), i = o.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
17155
17155
  this.width = s.width, this.height = s.height, this._aspectRatio = this.aspectRatio, td(this, i, !0) && (this.notifyPlugins("resize", {
17156
17156
  size: s
17157
- }), dt(o.onResize, [
17157
+ }), ut(o.onResize, [
17158
17158
  this,
17159
17159
  s
17160
17160
  ], this), this.attached && this._doResize(l) && this.render());
@@ -17550,11 +17550,11 @@ class On {
17550
17550
  }
17551
17551
  _handleEvent(t, n, o) {
17552
17552
  const { _active: r = [], options: a } = this, s = n, i = this._getActiveElements(t, r, o, s), l = s1(t), c = n2(t, this._lastEvent, o, l);
17553
- o && (this._lastEvent = null, dt(a.onHover, [
17553
+ o && (this._lastEvent = null, ut(a.onHover, [
17554
17554
  t,
17555
17555
  i,
17556
17556
  this
17557
- ], this), l && dt(a.onClick, [
17557
+ ], this), l && ut(a.onClick, [
17558
17558
  t,
17559
17559
  i,
17560
17560
  this
@@ -18520,7 +18520,7 @@ class jd extends Nn {
18520
18520
  }
18521
18521
  buildLabels() {
18522
18522
  const t = this.options.labels || {};
18523
- let n = dt(t.generateLabels, [
18523
+ let n = ut(t.generateLabels, [
18524
18524
  this.chart
18525
18525
  ], this) || [];
18526
18526
  t.filter && (n = n.filter((o) => t.filter(o, this.chart.data))), t.sort && (n = n.sort((o, r) => t.sort(o, r, this.chart.data))), this.options.reverse && n.reverse(), this.legendItems = n;
@@ -18690,16 +18690,16 @@ class jd extends Nn {
18690
18690
  const o = this._getLegendItemAt(t.x, t.y);
18691
18691
  if (t.type === "mousemove" || t.type === "mouseout") {
18692
18692
  const r = this._hoveredItem, a = U2(r, o);
18693
- r && !a && dt(n.onLeave, [
18693
+ r && !a && ut(n.onLeave, [
18694
18694
  t,
18695
18695
  r,
18696
18696
  this
18697
- ], this), this._hoveredItem = o, o && !a && dt(n.onHover, [
18697
+ ], this), this._hoveredItem = o, o && !a && ut(n.onHover, [
18698
18698
  t,
18699
18699
  o,
18700
18700
  this
18701
18701
  ], this);
18702
- } else o && dt(n.onClick, [
18702
+ } else o && ut(n.onClick, [
18703
18703
  t,
18704
18704
  o,
18705
18705
  this
@@ -19823,7 +19823,7 @@ class ts extends nr {
19823
19823
  _tickFormatFunction(t, n, o, r) {
19824
19824
  const a = this.options, s = a.ticks.callback;
19825
19825
  if (s)
19826
- return dt(s, [
19826
+ return ut(s, [
19827
19827
  t,
19828
19828
  n,
19829
19829
  o
@@ -28314,7 +28314,7 @@ const aS = { class: "space-y-3" }, sS = {
28314
28314
  }), (a, s) => (y(), E("div", null, [
28315
28315
  M("div", { onClick: o }, [
28316
28316
  Ee(a.$slots, "trigger", {}, () => [
28317
- Q(ut, {
28317
+ Q(dt, {
28318
28318
  variant: "outline",
28319
28319
  class: "gap-2",
28320
28320
  icon: "Search",
@@ -28358,7 +28358,7 @@ const aS = { class: "space-y-3" }, sS = {
28358
28358
  M("h3", q3, Y(e.title), 1),
28359
28359
  e.description ? (y(), E("p", G3, Y(e.description), 1)) : W("", !0)
28360
28360
  ]),
28361
- Q(ut, {
28361
+ Q(dt, {
28362
28362
  variant: "ghost",
28363
28363
  size: "icon",
28364
28364
  onClick: r,
@@ -28606,6 +28606,7 @@ const aS = { class: "space-y-3" }, sS = {
28606
28606
  DCodeImageField: Ml,
28607
28607
  DCodeSlider: Tl,
28608
28608
  DCodeRadio: Ih,
28609
+ DCodeButton: dt,
28609
28610
  DCodeRadioCustom: Rh,
28610
28611
  DCodeDynamicUploadList: Mh,
28611
28612
  DCodeMultiSelect: Lh,
@@ -31916,7 +31917,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
31916
31917
  v.value.length > 0 ? (y(), E("div", nO, [
31917
31918
  Q(Y3, null, {
31918
31919
  trigger: ie(() => [
31919
- Q(ut, {
31920
+ Q(dt, {
31920
31921
  variant: "secondary",
31921
31922
  icon: "SlidersHorizontal",
31922
31923
  tooltip: "Advance Search",
@@ -31959,7 +31960,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
31959
31960
  ])) : W("", !0)
31960
31961
  ]),
31961
31962
  v.value.length > 0 ? (y(), E("div", sO, [
31962
- Q(ut, {
31963
+ Q(dt, {
31963
31964
  variant: "outline",
31964
31965
  text: "Reset",
31965
31966
  tooltip: "Reset",
@@ -31968,7 +31969,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
31968
31969
  onClick: Rs,
31969
31970
  disabled: ao.value
31970
31971
  }, null, 8, ["disabled"]),
31971
- Q(ut, {
31972
+ Q(dt, {
31972
31973
  onClick: gg,
31973
31974
  disabled: ao.value,
31974
31975
  rounded: "md",
@@ -31987,7 +31988,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
31987
31988
  class: se(["flex items-center gap-2 flex-wrap", { "w-full justify-between": e.nested }])
31988
31989
  }, [
31989
31990
  e.nested ? (y(), E("span", lO)) : W("", !0),
31990
- e.nested ? W("", !0) : (y(), de(ut, {
31991
+ e.nested ? W("", !0) : (y(), de(dt, {
31991
31992
  key: 1,
31992
31993
  variant: "secondary",
31993
31994
  icon: "RefreshCw",
@@ -32004,7 +32005,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
32004
32005
  ]),
32005
32006
  _: 1
32006
32007
  }, 8, ["disabled"])),
32007
- (y(!0), E(be, null, ze(Os.value, (H, K) => (y(), de(ut, {
32008
+ (y(!0), E(be, null, ze(Os.value, (H, K) => (y(), de(dt, {
32008
32009
  key: K,
32009
32010
  icon: H.icon,
32010
32011
  text: H.label,
@@ -32195,7 +32196,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
32195
32196
  key: ae,
32196
32197
  class: "group relative"
32197
32198
  }, [
32198
- Q(ut, {
32199
+ Q(dt, {
32199
32200
  tooltip: X.tooltip || X.label,
32200
32201
  icon: X.icon,
32201
32202
  text: X.icon ? "" : X.label || (O(i) === "id" ? "Aksi" : "Action"),
@@ -32349,12 +32350,12 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
32349
32350
  persistent: !1
32350
32351
  }, {
32351
32352
  actions: ie(() => [
32352
- Q(ut, {
32353
+ Q(dt, {
32353
32354
  variant: "outline",
32354
32355
  onClick: Ul,
32355
32356
  text: "Cancel"
32356
32357
  }),
32357
- Q(ut, {
32358
+ Q(dt, {
32358
32359
  variant: "default",
32359
32360
  onClick: vg,
32360
32361
  text: "Yes"
@@ -32378,17 +32379,17 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
32378
32379
  actions: ie(() => {
32379
32380
  var H;
32380
32381
  return [
32381
- Q(ut, {
32382
+ Q(dt, {
32382
32383
  variant: "outline",
32383
32384
  onClick: j[6] || (j[6] = (K) => I.value = !1),
32384
32385
  text: "Cancel"
32385
32386
  }),
32386
- e.dummyMode && ((H = L.value) != null && H.route) ? (y(), de(ut, {
32387
+ e.dummyMode && ((H = L.value) != null && H.route) ? (y(), de(dt, {
32387
32388
  key: 1,
32388
32389
  variant: "default",
32389
32390
  onClick: j[7] || (j[7] = (K) => I.value = !1),
32390
32391
  text: O(i) === "id" ? "Tutup" : "Close"
32391
- }, null, 8, ["text"])) : (y(), de(ut, {
32392
+ }, null, 8, ["text"])) : (y(), de(dt, {
32392
32393
  key: 0,
32393
32394
  variant: "default",
32394
32395
  onClick: xg,
@@ -32436,7 +32437,7 @@ const JT = { class: "dcode-card animate-slide-up" }, QT = { class: "px-4 py-2 bg
32436
32437
  "dynamic-length": O(Ve)(ae),
32437
32438
  "onUpdate:modelValue": (Oe) => x[ae.model] = Oe
32438
32439
  }, null, 8, ["field", "model-value", "form-data", "required", "disabled", "readonly", "options", "dynamic-labels", "dynamic-length", "onUpdate:modelValue"]),
32439
- ae.isCopyable || (we = ae.props) != null && we.isCopyable || ((Te = L.value) == null ? void 0 : Te.action) === "showToken" || ((Ne = L.value) == null ? void 0 : Ne.action) === "copyToken" ? (y(), de(ut, {
32440
+ ae.isCopyable || (we = ae.props) != null && we.isCopyable || ((Te = L.value) == null ? void 0 : Te.action) === "showToken" || ((Ne = L.value) == null ? void 0 : Ne.action) === "copyToken" ? (y(), de(dt, {
32440
32441
  key: 0,
32441
32442
  icon: "Copy",
32442
32443
  variant: "outline",
@@ -33298,7 +33299,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ ge({
33298
33299
  (N = (L = (P = e.section) == null ? void 0 : P.propsForm) == null ? void 0 : L.actionSection) != null && N.length ? (y(!0), E(be, { key: 0 }, ze(e.section.propsForm.actionSection, (F, V) => {
33299
33300
  var q, B, U, te, ne, Z, ce, fe;
33300
33301
  return y(), E(be, { key: V }, [
33301
- (q = O(r)) != null && q(F) ? (y(), de(ut, {
33302
+ (q = O(r)) != null && q(F) ? (y(), de(dt, {
33302
33303
  key: 0,
33303
33304
  icon: F.icon || ((B = F.propsActionGlobal) == null ? void 0 : B.icon),
33304
33305
  text: O(s) === "id" ? F.labelID || ((U = F.propsActionGlobal) == null ? void 0 : U.labelID) : F.labelEN || ((te = F.propsActionGlobal) == null ? void 0 : te.labelEN),
@@ -33312,7 +33313,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ ge({
33312
33313
  }, null, 8, ["icon", "text", "bg-color", "variant", "onClick"])) : W("", !0)
33313
33314
  ], 64);
33314
33315
  }), 128)) : W("", !0),
33315
- e.sIdx === 0 ? (y(), de(ut, {
33316
+ e.sIdx === 0 ? (y(), de(dt, {
33316
33317
  key: 1,
33317
33318
  size: "sm",
33318
33319
  icon: "List",
@@ -33515,12 +33516,12 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ ge({
33515
33516
  "max-width": 450
33516
33517
  }, {
33517
33518
  actions: ie(() => [
33518
- Q(ut, {
33519
+ Q(dt, {
33519
33520
  variant: "outline",
33520
33521
  text: O(o)("common.cancel"),
33521
33522
  onClick: I[0] || (I[0] = (x) => O(n).visible = !1)
33522
33523
  }, null, 8, ["text"]),
33523
- Q(ut, {
33524
+ Q(dt, {
33524
33525
  text: O(o)("common.confirm"),
33525
33526
  onClick: O(r)
33526
33527
  }, null, 8, ["text", "onClick"])
@@ -33538,12 +33539,12 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ ge({
33538
33539
  "max-width": 700
33539
33540
  }, {
33540
33541
  actions: ie(() => [
33541
- Q(ut, {
33542
+ Q(dt, {
33542
33543
  variant: "outline",
33543
33544
  text: O(u) ? O(A) === "id" ? "Tutup" : "Close" : O(A) === "id" ? "Batal" : "Cancel",
33544
33545
  onClick: I[2] || (I[2] = (x) => a.value = !1)
33545
33546
  }, null, 8, ["text"]),
33546
- O(u) ? W("", !0) : (y(), de(ut, {
33547
+ O(u) ? W("", !0) : (y(), de(dt, {
33547
33548
  key: 0,
33548
33549
  text: "Save",
33549
33550
  onClick: O(D)
@@ -33583,12 +33584,12 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ ge({
33583
33584
  "max-width": 440
33584
33585
  }, {
33585
33586
  actions: ie(() => [
33586
- Q(ut, {
33587
+ Q(dt, {
33587
33588
  variant: "outline",
33588
33589
  text: O(A) === "id" ? "Batal" : "Cancel",
33589
33590
  onClick: I[4] || (I[4] = (x) => S.value = !1)
33590
33591
  }, null, 8, ["text"]),
33591
- Q(ut, {
33592
+ Q(dt, {
33592
33593
  variant: "default",
33593
33594
  "bg-color": "danger",
33594
33595
  icon: "Trash2",
@@ -33663,7 +33664,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ ge({
33663
33664
  (D = (A = O(a)) == null ? void 0 : A.actionGlobal) != null && D.length ? (y(!0), E(be, { key: 0 }, ze(O(a).actionGlobal, (S, v) => {
33664
33665
  var _, I, x;
33665
33666
  return y(), E(be, { key: v }, [
33666
- S.propsActionGlobal && O(l)(S) ? (y(), de(ut, {
33667
+ S.propsActionGlobal && O(l)(S) ? (y(), de(dt, {
33667
33668
  key: 0,
33668
33669
  icon: S.propsActionGlobal.icon,
33669
33670
  text: O(c) === "id" ? S.propsActionGlobal.labelID : S.propsActionGlobal.labelEN,
@@ -34178,7 +34179,7 @@ typeof customElements < "u" && (customElements.get("micro-dynamic-form") || cust
34178
34179
  const RP = [
34179
34180
  Qi,
34180
34181
  w0,
34181
- ut,
34182
+ dt,
34182
34183
  Wr,
34183
34184
  _f,
34184
34185
  Cf,
@@ -34236,7 +34237,7 @@ export {
34236
34237
  Qi as DCodeAutoComplete,
34237
34238
  Pl as DCodeBadge,
34238
34239
  _f as DCodeBeforeAfter,
34239
- ut as DCodeButton,
34240
+ dt as DCodeButton,
34240
34241
  Wr as DCodeCard,
34241
34242
  mh as DCodeCardCheckboxList,
34242
34243
  w_ as DCodeChart,