@amirjalili1374/ui-kit 1.4.45 → 1.4.46

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/ui-kit.es.js CHANGED
@@ -17211,7 +17211,7 @@ const _hoisted_1$9 = {
17211
17211
  const _hoisted_2$5 = { class: "title-text" };
17212
17212
  const _hoisted_3$3 = { class: "action-buttons" };
17213
17213
  const _hoisted_4$1 = {
17214
- key: 3,
17214
+ key: 4,
17215
17215
  class: "selection-actions"
17216
17216
  };
17217
17217
  const _hoisted_5$1 = {
@@ -18380,7 +18380,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18380
18380
  }
18381
18381
  );
18382
18382
  return (_ctx, _cache) => {
18383
- var _a, _b;
18383
+ var _a, _b, _c;
18384
18384
  return openBlock(), createElementBlock(Fragment, null, [
18385
18385
  props.title ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
18386
18386
  createElementVNode("h3", _hoisted_2$5, toDisplayString(props.title), 1)
@@ -18407,13 +18407,24 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18407
18407
  ])]),
18408
18408
  _: 1
18409
18409
  })) : createCommentVNode("", true),
18410
- props.showRefreshButton ? (openBlock(), createBlock(VBtn, {
18410
+ ((_c = props.actions) == null ? void 0 : _c.includes("manual")) ? (openBlock(), createBlock(VBtn, {
18411
18411
  key: 2,
18412
+ color: "primary",
18413
+ class: "me-2",
18414
+ onClick: fetchData
18415
+ }, {
18416
+ default: withCtx(() => [..._cache[24] || (_cache[24] = [
18417
+ createTextVNode("جستجو 🔍", -1)
18418
+ ])]),
18419
+ _: 1
18420
+ })) : createCommentVNode("", true),
18421
+ props.showRefreshButton ? (openBlock(), createBlock(VBtn, {
18422
+ key: 3,
18412
18423
  color: "blue",
18413
18424
  onClick: unref(debouncedFetchData),
18414
18425
  loading: loading.value
18415
18426
  }, {
18416
- default: withCtx(() => [..._cache[24] || (_cache[24] = [
18427
+ default: withCtx(() => [..._cache[25] || (_cache[25] = [
18417
18428
  createTextVNode("بروزرسانی 🔄", -1)
18418
18429
  ])]),
18419
18430
  _: 1
@@ -18434,7 +18445,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18434
18445
  class: "me-2",
18435
18446
  onClick: clearSelection
18436
18447
  }, {
18437
- default: withCtx(() => [..._cache[25] || (_cache[25] = [
18448
+ default: withCtx(() => [..._cache[26] || (_cache[26] = [
18438
18449
  createTextVNode(" پاک کردن انتخاب ", -1)
18439
18450
  ])]),
18440
18451
  _: 1
@@ -18454,13 +18465,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18454
18465
  onClick: openGroupDeleteDialog
18455
18466
  }, {
18456
18467
  default: withCtx(() => [
18457
- _cache[26] || (_cache[26] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
18468
+ _cache[27] || (_cache[27] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
18458
18469
  createTextVNode(" حذف گروهی (" + toDisplayString(selectedCount.value) + ") ", 1)
18459
18470
  ]),
18460
18471
  _: 1
18461
18472
  })) : createCommentVNode("", true),
18462
18473
  props.bulkMode ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(validSelectedItems.value, (item) => {
18463
- var _a2, _b2, _c, _d;
18474
+ var _a2, _b2, _c2;
18464
18475
  return openBlock(), createElementBlock(Fragment, {
18465
18476
  key: getUniqueValue(item)
18466
18477
  }, [
@@ -18471,7 +18482,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18471
18482
  class: "me-2",
18472
18483
  onClick: ($event) => openDialog(item)
18473
18484
  }, {
18474
- default: withCtx(() => [..._cache[27] || (_cache[27] = [
18485
+ default: withCtx(() => [..._cache[28] || (_cache[28] = [
18475
18486
  createElementVNode("span", { class: "me-1" }, "✏️", -1),
18476
18487
  createTextVNode(" ویرایش ", -1)
18477
18488
  ])]),
@@ -18484,38 +18495,25 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18484
18495
  class: "me-2",
18485
18496
  onClick: ($event) => openDeleteDialog(item)
18486
18497
  }, {
18487
- default: withCtx(() => [..._cache[28] || (_cache[28] = [
18498
+ default: withCtx(() => [..._cache[29] || (_cache[29] = [
18488
18499
  createElementVNode("span", { class: "me-1" }, "🗑️", -1),
18489
18500
  createTextVNode(" حذف ", -1)
18490
18501
  ])]),
18491
18502
  _: 1
18492
18503
  }, 8, ["onClick"])) : createCommentVNode("", true),
18493
- ((_c = props.actions) == null ? void 0 : _c.includes("view")) ? (openBlock(), createBlock(VBtn, {
18504
+ ((_c2 = props.actions) == null ? void 0 : _c2.includes("view")) ? (openBlock(), createBlock(VBtn, {
18494
18505
  key: 2,
18495
18506
  color: "purple",
18496
18507
  size: "small",
18497
18508
  class: "me-2",
18498
18509
  onClick: ($event) => goToRoute("view", item)
18499
18510
  }, {
18500
- default: withCtx(() => [..._cache[29] || (_cache[29] = [
18511
+ default: withCtx(() => [..._cache[30] || (_cache[30] = [
18501
18512
  createElementVNode("span", { class: "me-1" }, "👁️", -1),
18502
18513
  createTextVNode(" نمایش ", -1)
18503
18514
  ])]),
18504
18515
  _: 1
18505
18516
  }, 8, ["onClick"])) : createCommentVNode("", true),
18506
- ((_d = props.actions) == null ? void 0 : _d.includes("manual")) ? (openBlock(), createBlock(VBtn, {
18507
- key: 3,
18508
- color: "primary",
18509
- size: "small",
18510
- class: "me-2",
18511
- onClick: fetchData
18512
- }, {
18513
- default: withCtx(() => [..._cache[30] || (_cache[30] = [
18514
- createElementVNode("span", { class: "me-1" }, "👁️", -1),
18515
- createTextVNode(" جستجو ", -1)
18516
- ])]),
18517
- _: 1
18518
- })) : createCommentVNode("", true),
18519
18517
  (openBlock(true), createElementBlock(Fragment, null, renderList(getRoutesForItem(item), (routePath, routeKey) => {
18520
18518
  return openBlock(), createBlock(VBtn, {
18521
18519
  key: routeKey,
@@ -18563,7 +18561,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18563
18561
  }, 1032, ["onClick"])) : createCommentVNode("", true)
18564
18562
  ], 64);
18565
18563
  }), 128)),
18566
- props.customButtonsFn ? (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(props.customButtonsFn(item), (button) => {
18564
+ props.customButtonsFn ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(props.customButtonsFn(item), (button) => {
18567
18565
  return openBlock(), createBlock(VBtn, {
18568
18566
  key: button.label,
18569
18567
  color: button.color || "primary",
@@ -18578,7 +18576,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18578
18576
  ]),
18579
18577
  _: 2
18580
18578
  }, 1032, ["color", "disabled", "onClick"]);
18581
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 5 }, renderList(props.customButtons, (button) => {
18579
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(props.customButtons, (button) => {
18582
18580
  return openBlock(), createBlock(VBtn, {
18583
18581
  key: button.label,
18584
18582
  color: button.color || "primary",
@@ -18731,7 +18729,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18731
18729
  onClick: ($event) => props.bulkMode && props.selectable && selectSingleItem(item)
18732
18730
  }, [
18733
18731
  (openBlock(true), createElementBlock(Fragment, null, renderList(columns, (column) => {
18734
- var _a2, _b2, _c;
18732
+ var _a2, _b2, _c2;
18735
18733
  return openBlock(), createElementBlock("td", {
18736
18734
  key: column.key || "unknown",
18737
18735
  style: normalizeStyle({
@@ -18782,7 +18780,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18782
18780
  ])]),
18783
18781
  _: 1
18784
18782
  }, 8, ["onClick"])) : createCommentVNode("", true),
18785
- ((_c = props.actions) == null ? void 0 : _c.includes("view")) ? (openBlock(), createBlock(VBtn, {
18783
+ ((_c2 = props.actions) == null ? void 0 : _c2.includes("view")) ? (openBlock(), createBlock(VBtn, {
18786
18784
  key: 2,
18787
18785
  color: "purple",
18788
18786
  size: "small",
@@ -18961,7 +18959,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18961
18959
  onClick: ($event) => props.bulkMode && props.selectable && selectSingleItem(item)
18962
18960
  }, [
18963
18961
  (openBlock(true), createElementBlock(Fragment, null, renderList(columns, (column) => {
18964
- var _a2, _b2, _c;
18962
+ var _a2, _b2, _c2;
18965
18963
  return openBlock(), createElementBlock("td", {
18966
18964
  key: column.key || "unknown",
18967
18965
  style: normalizeStyle({
@@ -19012,7 +19010,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19012
19010
  ])]),
19013
19011
  _: 1
19014
19012
  }, 8, ["onClick"])) : createCommentVNode("", true),
19015
- ((_c = props.actions) == null ? void 0 : _c.includes("view")) ? (openBlock(), createBlock(VBtn, {
19013
+ ((_c2 = props.actions) == null ? void 0 : _c2.includes("view")) ? (openBlock(), createBlock(VBtn, {
19016
19014
  key: 2,
19017
19015
  color: "purple",
19018
19016
  size: "small",