@amirjalili1374/ui-kit 1.4.2 → 1.4.3

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
@@ -3891,7 +3891,7 @@ const VRow = genericComponent()({
3891
3891
  const VSpacer = createSimpleFunctional("v-spacer", "div", "VSpacer");
3892
3892
  const _hoisted_1$d = { class: "text-h3" };
3893
3893
  const _hoisted_2$7 = { class: "d-flex align-center gap-2" };
3894
- const _hoisted_3$6 = { class: "d-flex align-center gap-2" };
3894
+ const _hoisted_3$5 = { class: "d-flex align-center gap-2" };
3895
3895
  const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
3896
3896
  __name: "BaseBreadcrumb",
3897
3897
  props: {
@@ -3945,7 +3945,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
3945
3945
  size: "16",
3946
3946
  class: "text-secondary ml-2"
3947
3947
  }),
3948
- createElementVNode("div", _hoisted_3$6, [
3948
+ createElementVNode("div", _hoisted_3$5, [
3949
3949
  createVNode(unref(IconArrowBadgeLeft), { stroke: "{2}" })
3950
3950
  ])
3951
3951
  ]),
@@ -12597,7 +12597,7 @@ const VTooltip = genericComponent()({
12597
12597
  });
12598
12598
  const _hoisted_1$b = { class: "ca-item-title" };
12599
12599
  const _hoisted_2$6 = { class: "ca-item-subtitle" };
12600
- const _hoisted_3$5 = { class: "ca-group-tooltip" };
12600
+ const _hoisted_3$4 = { class: "ca-group-tooltip" };
12601
12601
  const _hoisted_4$2 = { class: "ca-group-tooltip-header" };
12602
12602
  const _hoisted_5$2 = { class: "ca-group-count" };
12603
12603
  const _hoisted_6$2 = { class: "ca-group-members" };
@@ -12750,7 +12750,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
12750
12750
  item: item.raw ?? item,
12751
12751
  groupMembers: getGroupMembers(item.raw ?? item)
12752
12752
  }, () => [
12753
- createElementVNode("div", _hoisted_3$5, [
12753
+ createElementVNode("div", _hoisted_3$4, [
12754
12754
  createElementVNode("div", _hoisted_4$2, [
12755
12755
  createElementVNode("strong", null, toDisplayString(resolveTitle(item.raw ?? item)), 1),
12756
12756
  createElementVNode("span", _hoisted_5$2, toDisplayString(getGroupMembers(item.raw ?? item).length) + " آیتم", 1)
@@ -16926,7 +16926,7 @@ const _hoisted_1$9 = {
16926
16926
  class: "page-title"
16927
16927
  };
16928
16928
  const _hoisted_2$5 = { class: "title-text" };
16929
- const _hoisted_3$4 = { class: "action-buttons" };
16929
+ const _hoisted_3$3 = { class: "action-buttons" };
16930
16930
  const _hoisted_4$1 = {
16931
16931
  key: 3,
16932
16932
  class: "selection-actions"
@@ -17891,7 +17891,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
17891
17891
  props.title ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
17892
17892
  createElementVNode("h3", _hoisted_2$5, toDisplayString(props.title), 1)
17893
17893
  ])) : createCommentVNode("", true),
17894
- createElementVNode("div", _hoisted_3$4, [
17894
+ createElementVNode("div", _hoisted_3$3, [
17895
17895
  ((_a = props.actions) == null ? void 0 : _a.includes("create")) ? (openBlock(), createBlock(VBtn, {
17896
17896
  key: 0,
17897
17897
  color: "green",
@@ -19352,7 +19352,7 @@ const _hoisted_1$6 = {
19352
19352
  class: "pdf-viewer-header"
19353
19353
  };
19354
19354
  const _hoisted_2$4 = { class: "pdf-viewer-title" };
19355
- const _hoisted_3$3 = { class: "pdf-viewer-controls" };
19355
+ const _hoisted_3$2 = { class: "pdf-viewer-controls" };
19356
19356
  const _hoisted_4 = {
19357
19357
  key: 0,
19358
19358
  class: "zoom-controls"
@@ -19602,7 +19602,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
19602
19602
  createElementVNode("div", _hoisted_2$4, [
19603
19603
  createElementVNode("h3", null, toDisplayString(__props.title || "PDF Viewer"), 1)
19604
19604
  ]),
19605
- createElementVNode("div", _hoisted_3$3, [
19605
+ createElementVNode("div", _hoisted_3$2, [
19606
19606
  __props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4, [
19607
19607
  createVNode(VBtn, {
19608
19608
  size: "small",
@@ -19996,7 +19996,7 @@ const _hoisted_1$4 = {
19996
19996
  dir: "rtl"
19997
19997
  };
19998
19998
  const _hoisted_2$3 = { class: "app-stepper-header-card" };
19999
- const _hoisted_3$2 = { class: "app-stepper-title" };
19999
+ const _hoisted_3$1 = { class: "app-stepper-title" };
20000
20000
  const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
20001
20001
  __name: "AppStepper",
20002
20002
  props: {
@@ -20091,7 +20091,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
20091
20091
  }))
20092
20092
  ], true)
20093
20093
  ], 2),
20094
- createElementVNode("span", _hoisted_3$2, toDisplayString(step.title), 1),
20094
+ createElementVNode("span", _hoisted_3$1, toDisplayString(step.title), 1),
20095
20095
  index2 < __props.steps.length - 1 ? (openBlock(), createElementBlock("span", {
20096
20096
  key: 0,
20097
20097
  class: normalizeClass([
@@ -36923,7 +36923,7 @@ const _hoisted_1$3 = {
36923
36923
  class: "loading-overlay"
36924
36924
  };
36925
36925
  const _hoisted_2$2 = { class: "loading-wrapper" };
36926
- const _hoisted_3$1 = { key: 0 };
36926
+ const _hoisted_3 = { key: 0 };
36927
36927
  const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
36928
36928
  __name: "Loading",
36929
36929
  setup(__props) {
@@ -36941,7 +36941,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
36941
36941
  }),
36942
36942
  createVNode(Transition, { name: "fade-slide" }, {
36943
36943
  default: withCtx(() => [
36944
- unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3$1, "لطفا منتظر بمانید")) : createCommentVNode("", true)
36944
+ unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3, "لطفا منتظر بمانید")) : createCommentVNode("", true)
36945
36945
  ]),
36946
36946
  _: 1
36947
36947
  })
@@ -38137,12 +38137,11 @@ const VAppBar = genericComponent()({
38137
38137
  return {};
38138
38138
  }
38139
38139
  });
38140
- const _hoisted_1$1 = { class: "header-left-section" };
38141
- const _hoisted_2 = {
38140
+ const _hoisted_1$1 = {
38142
38141
  key: 1,
38143
38142
  class: "header-menu-container"
38144
38143
  };
38145
- const _hoisted_3 = { class: "mr-2" };
38144
+ const _hoisted_2 = { class: "mr-2" };
38146
38145
  const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38147
38146
  __name: "AppHeader",
38148
38147
  props: {
@@ -38187,14 +38186,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38187
38186
  return props.headerMenu;
38188
38187
  });
38189
38188
  const headerWidth = computed(() => {
38190
- if (props.menuOrientation !== "vertical") {
38189
+ if (props.menuOrientation === "horizontal") {
38191
38190
  return "100%";
38192
38191
  }
38193
- if (props.sidebarDrawer) {
38192
+ if (props.menuOrientation === "vertical") {
38193
+ if (!props.sidebarDrawer) {
38194
+ return "100%";
38195
+ }
38194
38196
  if (props.miniSidebar) {
38195
38197
  return "calc(100% - 82px)";
38198
+ } else {
38199
+ return "calc(100% - 256px)";
38196
38200
  }
38197
- return "calc(100% - 256px)";
38198
38201
  }
38199
38202
  return "100%";
38200
38203
  });
@@ -38207,165 +38210,163 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38207
38210
  style: normalizeStyle({ width: headerWidth.value, right: 0 })
38208
38211
  }, {
38209
38212
  default: withCtx(() => [
38210
- createElementVNode("div", _hoisted_1$1, [
38211
- __props.menuOrientation === "vertical" ? (openBlock(), createBlock(VBtn, {
38212
- key: 0,
38213
- class: "hidden-md-and-down text-secondary",
38214
- color: "lightsecondary",
38215
- icon: "",
38216
- rounded: "sm",
38217
- variant: "flat",
38218
- size: "small",
38219
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.onToggleMiniSidebar && props.onToggleMiniSidebar(), ["stop"]))
38220
- }, {
38221
- default: withCtx(() => [
38222
- createVNode(unref(IconMenu2), {
38223
- size: "20",
38224
- "stroke-width": "1.5"
38225
- })
38226
- ]),
38227
- _: 1
38228
- })) : createCommentVNode("", true),
38229
- createVNode(VBtn, {
38230
- class: "hidden-lg-and-up text-secondary ms-3",
38231
- color: "lightsecondary",
38232
- icon: "",
38233
- rounded: "sm",
38234
- variant: "flat",
38235
- size: "small",
38236
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.onToggleSidebarDrawer && props.onToggleSidebarDrawer(), ["stop"]))
38237
- }, {
38238
- default: withCtx(() => [
38239
- createVNode(unref(IconMenu2), {
38240
- size: "20",
38241
- "stroke-width": "1.5"
38242
- })
38243
- ]),
38244
- _: 1
38245
- }),
38246
- createVNode(VBtn, {
38247
- class: "hidden-md-and-down text-secondary ml-2",
38248
- color: "lightsecondary",
38249
- icon: "",
38250
- rounded: "sm",
38251
- variant: "flat",
38252
- size: "small",
38253
- onClick: _cache[2] || (_cache[2] = withModifiers(($event) => props.onToggleCustomizer && props.onToggleCustomizer(), ["stop"]))
38254
- }, {
38255
- default: withCtx(() => [
38256
- createVNode(unref(IconPalette), {
38257
- size: "20",
38258
- "stroke-width": "1.5"
38259
- })
38260
- ]),
38261
- _: 1
38262
- }),
38263
- __props.menuOrientation === "horizontal" ? (openBlock(), createElementBlock("div", _hoisted_2, [
38264
- (openBlock(true), createElementBlock(Fragment, null, renderList(computedHeaderMenu.value, (item, i) => {
38265
- return openBlock(), createElementBlock(Fragment, { key: i }, [
38266
- !item.children && !item.header && !item.divider ? (openBlock(), createBlock(VBtn, {
38267
- key: 0,
38268
- to: item.type === "external" ? "" : item.to,
38269
- href: item.type === "external" ? item.to : "",
38270
- target: item.type === "external" ? "_blank" : "",
38271
- variant: "text",
38272
- disabled: item.disabled,
38273
- class: "header-menu-btn mr-3",
38274
- color: "primary"
38275
- }, {
38276
- default: withCtx(() => [
38277
- item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
38278
- key: 0,
38279
- class: "ml-2",
38280
- size: "18"
38281
- })) : createCommentVNode("", true),
38282
- createElementVNode("span", null, toDisplayString(item.title), 1),
38283
- item.chip ? (openBlock(), createBlock(VChip, {
38284
- key: 1,
38285
- color: item.chipColor,
38286
- size: item.chipIcon ? "small" : "default",
38287
- variant: item.chipVariant,
38288
- "prepend-icon": item.chipIcon,
38289
- class: "ml-2"
38290
- }, {
38291
- default: withCtx(() => [
38292
- createTextVNode(toDisplayString(item.chip), 1)
38293
- ]),
38294
- _: 2
38295
- }, 1032, ["color", "size", "variant", "prepend-icon"])) : createCommentVNode("", true)
38296
- ]),
38297
- _: 2
38298
- }, 1032, ["to", "href", "target", "disabled"])) : item.children && item.children.length > 0 ? (openBlock(), createBlock(VMenu, {
38299
- key: 1,
38300
- "offset-y": ""
38301
- }, {
38302
- activator: withCtx(({ props: mprops }) => [
38303
- createVNode(VBtn, mergeProps({ ref_for: true }, mprops, {
38304
- variant: "text",
38305
- disabled: item.disabled,
38306
- class: "header-menu-btn",
38307
- color: "primary mr-3"
38308
- }), {
38309
- default: withCtx(() => [
38310
- item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
38311
- key: 0,
38312
- class: "mr-2",
38313
- size: "18"
38314
- })) : createCommentVNode("", true),
38315
- createElementVNode("span", _hoisted_3, toDisplayString(item.title), 1),
38316
- createVNode(unref(IconChevronDown), {
38317
- size: "20",
38318
- class: "ml-2",
38319
- "stroke-width": "1.5"
38320
- })
38321
- ]),
38322
- _: 2
38323
- }, 1040, ["disabled"])
38324
- ]),
38325
- default: withCtx(() => [
38326
- createVNode(VList, null, {
38327
- default: withCtx(() => [
38328
- (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child, childIndex) => {
38329
- return openBlock(), createBlock(VListItem, {
38330
- key: childIndex,
38331
- to: child.type === "external" ? "" : child.to,
38332
- href: child.type === "external" ? child.to : "",
38333
- target: child.type === "external" ? "_blank" : "",
38334
- disabled: child.disabled
38335
- }, createSlots({
38336
- default: withCtx(() => [
38337
- createVNode(VListItemTitle, null, {
38338
- default: withCtx(() => [
38339
- createTextVNode(toDisplayString(child.title), 1)
38340
- ]),
38341
- _: 2
38342
- }, 1024)
38343
- ]),
38344
- _: 2
38345
- }, [
38346
- child.icon ? {
38347
- name: "prepend",
38348
- fn: withCtx(() => [
38349
- (openBlock(), createBlock(resolveDynamicComponent(child.icon), { size: "18" }))
38213
+ __props.menuOrientation === "vertical" ? (openBlock(), createBlock(VBtn, {
38214
+ key: 0,
38215
+ class: "hidden-md-and-down text-secondary",
38216
+ color: "lightsecondary",
38217
+ icon: "",
38218
+ rounded: "sm",
38219
+ variant: "flat",
38220
+ size: "small",
38221
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.onToggleMiniSidebar && props.onToggleMiniSidebar(), ["stop"]))
38222
+ }, {
38223
+ default: withCtx(() => [
38224
+ createVNode(unref(IconMenu2), {
38225
+ size: "20",
38226
+ "stroke-width": "1.5"
38227
+ })
38228
+ ]),
38229
+ _: 1
38230
+ })) : createCommentVNode("", true),
38231
+ createVNode(VBtn, {
38232
+ class: "hidden-lg-and-up text-secondary ms-3",
38233
+ color: "lightsecondary",
38234
+ icon: "",
38235
+ rounded: "sm",
38236
+ variant: "flat",
38237
+ size: "small",
38238
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.onToggleSidebarDrawer && props.onToggleSidebarDrawer(), ["stop"]))
38239
+ }, {
38240
+ default: withCtx(() => [
38241
+ createVNode(unref(IconMenu2), {
38242
+ size: "20",
38243
+ "stroke-width": "1.5"
38244
+ })
38245
+ ]),
38246
+ _: 1
38247
+ }),
38248
+ createVNode(VBtn, {
38249
+ class: "hidden-md-and-down text-secondary mr-2 ml-2",
38250
+ color: "lightsecondary",
38251
+ icon: "",
38252
+ rounded: "sm",
38253
+ variant: "flat",
38254
+ size: "small",
38255
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => props.onToggleCustomizer && props.onToggleCustomizer(), ["stop"]))
38256
+ }, {
38257
+ default: withCtx(() => [
38258
+ createVNode(unref(IconPalette), {
38259
+ size: "20",
38260
+ "stroke-width": "1.5"
38261
+ })
38262
+ ]),
38263
+ _: 1
38264
+ }),
38265
+ __props.menuOrientation === "horizontal" ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
38266
+ (openBlock(true), createElementBlock(Fragment, null, renderList(computedHeaderMenu.value, (item, i) => {
38267
+ return openBlock(), createElementBlock(Fragment, { key: i }, [
38268
+ !item.children && !item.header && !item.divider ? (openBlock(), createBlock(VBtn, {
38269
+ key: 0,
38270
+ to: item.type === "external" ? "" : item.to,
38271
+ href: item.type === "external" ? item.to : "",
38272
+ target: item.type === "external" ? "_blank" : "",
38273
+ variant: "text",
38274
+ disabled: item.disabled,
38275
+ class: "header-menu-btn mr-3",
38276
+ color: "primary"
38277
+ }, {
38278
+ default: withCtx(() => [
38279
+ item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
38280
+ key: 0,
38281
+ class: "ml-2",
38282
+ size: "18"
38283
+ })) : createCommentVNode("", true),
38284
+ createElementVNode("span", null, toDisplayString(item.title), 1),
38285
+ item.chip ? (openBlock(), createBlock(VChip, {
38286
+ key: 1,
38287
+ color: item.chipColor,
38288
+ size: item.chipIcon ? "small" : "default",
38289
+ variant: item.chipVariant,
38290
+ "prepend-icon": item.chipIcon,
38291
+ class: "ml-2"
38292
+ }, {
38293
+ default: withCtx(() => [
38294
+ createTextVNode(toDisplayString(item.chip), 1)
38295
+ ]),
38296
+ _: 2
38297
+ }, 1032, ["color", "size", "variant", "prepend-icon"])) : createCommentVNode("", true)
38298
+ ]),
38299
+ _: 2
38300
+ }, 1032, ["to", "href", "target", "disabled"])) : item.children && item.children.length > 0 ? (openBlock(), createBlock(VMenu, {
38301
+ key: 1,
38302
+ "offset-y": ""
38303
+ }, {
38304
+ activator: withCtx(({ props: mprops }) => [
38305
+ createVNode(VBtn, mergeProps({ ref_for: true }, mprops, {
38306
+ variant: "text",
38307
+ disabled: item.disabled,
38308
+ class: "header-menu-btn",
38309
+ color: "primary mr-3"
38310
+ }), {
38311
+ default: withCtx(() => [
38312
+ item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
38313
+ key: 0,
38314
+ class: "mr-2",
38315
+ size: "18"
38316
+ })) : createCommentVNode("", true),
38317
+ createElementVNode("span", _hoisted_2, toDisplayString(item.title), 1),
38318
+ createVNode(unref(IconChevronDown), {
38319
+ size: "20",
38320
+ class: "ml-2",
38321
+ "stroke-width": "1.5"
38322
+ })
38323
+ ]),
38324
+ _: 2
38325
+ }, 1040, ["disabled"])
38326
+ ]),
38327
+ default: withCtx(() => [
38328
+ createVNode(VList, null, {
38329
+ default: withCtx(() => [
38330
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child, childIndex) => {
38331
+ return openBlock(), createBlock(VListItem, {
38332
+ key: childIndex,
38333
+ to: child.type === "external" ? "" : child.to,
38334
+ href: child.type === "external" ? child.to : "",
38335
+ target: child.type === "external" ? "_blank" : "",
38336
+ disabled: child.disabled
38337
+ }, createSlots({
38338
+ default: withCtx(() => [
38339
+ createVNode(VListItemTitle, null, {
38340
+ default: withCtx(() => [
38341
+ createTextVNode(toDisplayString(child.title), 1)
38350
38342
  ]),
38351
- key: "0"
38352
- } : void 0
38353
- ]), 1032, ["to", "href", "target", "disabled"]);
38354
- }), 128))
38355
- ]),
38356
- _: 2
38357
- }, 1024)
38358
- ]),
38359
- _: 2
38360
- }, 1024)) : item.divider ? (openBlock(), createBlock(VDivider, {
38361
- key: 2,
38362
- vertical: "",
38363
- class: "mx-2"
38364
- })) : createCommentVNode("", true)
38365
- ], 64);
38366
- }), 128))
38367
- ])) : createCommentVNode("", true)
38368
- ]),
38343
+ _: 2
38344
+ }, 1024)
38345
+ ]),
38346
+ _: 2
38347
+ }, [
38348
+ child.icon ? {
38349
+ name: "prepend",
38350
+ fn: withCtx(() => [
38351
+ (openBlock(), createBlock(resolveDynamicComponent(child.icon), { size: "18" }))
38352
+ ]),
38353
+ key: "0"
38354
+ } : void 0
38355
+ ]), 1032, ["to", "href", "target", "disabled"]);
38356
+ }), 128))
38357
+ ]),
38358
+ _: 2
38359
+ }, 1024)
38360
+ ]),
38361
+ _: 2
38362
+ }, 1024)) : item.divider ? (openBlock(), createBlock(VDivider, {
38363
+ key: 2,
38364
+ vertical: "",
38365
+ class: "mx-2"
38366
+ })) : createCommentVNode("", true)
38367
+ ], 64);
38368
+ }), 128))
38369
+ ])) : createCommentVNode("", true),
38369
38370
  createVNode(VSpacer),
38370
38371
  renderSlot(_ctx.$slots, "notifications", {}, () => [
38371
38372
  createVNode(VBtn, {
@@ -38411,7 +38412,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38411
38412
  };
38412
38413
  }
38413
38414
  });
38414
- const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-f2f62f7e"]]);
38415
+ const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-069b62b2"]]);
38415
38416
  const makeVAppProps = propsFactory({
38416
38417
  ...makeComponentProps(),
38417
38418
  ...omit(makeLayoutProps(), ["fullHeight"]),
@@ -38540,7 +38541,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
38540
38541
  };
38541
38542
  }
38542
38543
  });
38543
- const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-a03400ab"]]);
38544
+ const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-4e28ff13"]]);
38544
38545
  function useDataTable(options) {
38545
38546
  const items = ref([]);
38546
38547
  const loading = ref(false);