@amirjalili1374/ui-kit 1.4.18 → 1.4.20

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
@@ -17082,12 +17082,33 @@ const _hoisted_24 = {
17082
17082
  };
17083
17083
  const _hoisted_25 = { class: "d-flex justify-space-between align-center pa-4" };
17084
17084
  const _hoisted_26 = { class: "text-subtitle-2" };
17085
- const _hoisted_27 = { class: "filter-dialog-container" };
17086
- const _hoisted_28 = { class: "filter-dialog-content" };
17087
- const _hoisted_29 = {
17085
+ const _hoisted_27 = { class: "dialog-container" };
17086
+ const _hoisted_28 = { class: "dialog-header" };
17087
+ const _hoisted_29 = { class: "dialog-title" };
17088
+ const _hoisted_30 = { class: "dialog-content" };
17089
+ const _hoisted_31 = { class: "dialog-actions" };
17090
+ const _hoisted_32 = { class: "dialog-container" };
17091
+ const _hoisted_33 = { class: "dialog-actions" };
17092
+ const _hoisted_34 = { class: "dialog-container" };
17093
+ const _hoisted_35 = { class: "dialog-header" };
17094
+ const _hoisted_36 = { class: "dialog-title" };
17095
+ const _hoisted_37 = { class: "dialog-content" };
17096
+ const _hoisted_38 = { class: "dialog-actions" };
17097
+ const _hoisted_39 = { class: "dialog-container" };
17098
+ const _hoisted_40 = { class: "dialog-header" };
17099
+ const _hoisted_41 = { class: "dialog-title" };
17100
+ const _hoisted_42 = { class: "dialog-content" };
17101
+ const _hoisted_43 = { class: "dialog-container" };
17102
+ const _hoisted_44 = { class: "dialog-content" };
17103
+ const _hoisted_45 = {
17088
17104
  key: 0,
17089
- class: "filter-dialog-actions"
17105
+ class: "dialog-actions"
17090
17106
  };
17107
+ const _hoisted_46 = { class: "dialog-container" };
17108
+ const _hoisted_47 = { class: "dialog-header" };
17109
+ const _hoisted_48 = { class: "dialog-title d-flex justify-space-between align-center" };
17110
+ const _hoisted_49 = { class: "dialog-content" };
17111
+ const _hoisted_50 = { class: "dialog-actions" };
17091
17112
  const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
17092
17113
  ...{ inheritAttrs: false },
17093
17114
  __name: "CustomDataTable",
@@ -18894,133 +18915,121 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18894
18915
  "max-width": "1400"
18895
18916
  }, {
18896
18917
  default: withCtx(() => [
18897
- createVNode(VCard, null, {
18898
- default: withCtx(() => [
18899
- createVNode(VCardTitle, null, {
18900
- default: withCtx(() => [
18901
- createTextVNode(toDisplayString(isEditing.value ? "ویرایش" : "ایجاد"), 1)
18902
- ]),
18903
- _: 1
18904
- }),
18905
- createVNode(VCardText, null, {
18918
+ createElementVNode("div", _hoisted_27, [
18919
+ createElementVNode("div", _hoisted_28, [
18920
+ createElementVNode("h3", _hoisted_29, toDisplayString(isEditing.value ? "ویرایش" : "ایجاد"), 1)
18921
+ ]),
18922
+ createElementVNode("div", _hoisted_30, [
18923
+ createVNode(VContainer, null, {
18906
18924
  default: withCtx(() => [
18907
- createVNode(VContainer, null, {
18925
+ props.formComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.formComponent), {
18926
+ key: 0,
18927
+ modelValue: formModel.value,
18928
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => formModel.value = $event)
18929
+ }, null, 8, ["modelValue"])) : (openBlock(), createBlock(VRow, { key: 1 }, {
18908
18930
  default: withCtx(() => [
18909
- props.formComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.formComponent), {
18910
- key: 0,
18911
- modelValue: formModel.value,
18912
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => formModel.value = $event)
18913
- }, null, 8, ["modelValue"])) : (openBlock(), createBlock(VRow, { key: 1 }, {
18914
- default: withCtx(() => [
18915
- (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
18916
- return openBlock(), createBlock(VCol, {
18917
- key: resolveHeaderKey(header),
18918
- cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
18919
- md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
18920
- }, {
18921
- default: withCtx(() => [
18922
- !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18923
- isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
18924
- key: 0,
18925
- modelValue: formModel.value[resolveHeaderKey(header)],
18926
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18927
- label: resolveHeaderTitle(header),
18928
- disabled: isHeaderDisabled(header)
18929
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
18930
- key: 1,
18931
- modelValue: formModel.value[resolveHeaderKey(header)],
18932
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18933
- label: resolveHeaderTitle(header),
18934
- items: resolveAutocompleteItems(header, formModel.value.value),
18935
- "item-title": resolveAutocompleteItemTitle(header),
18936
- "item-value": resolveAutocompleteItemValue(header),
18937
- "return-object": resolveAutocompleteReturnObject(header),
18938
- multiple: resolveAutocompleteMultiple(header),
18939
- chips: resolveAutocompleteMultiple(header),
18940
- "closable-chips": resolveAutocompleteMultiple(header),
18941
- disabled: isHeaderDisabled(header),
18942
- clearable: "",
18943
- variant: "outlined"
18944
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$i, {
18945
- key: 2,
18946
- modelValue: formModel.value[resolveHeaderKey(header)],
18947
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18948
- label: resolveHeaderTitle(header),
18949
- disabled: isHeaderDisabled(header)
18950
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
18951
- key: 3,
18952
- modelValue: formModel.value[resolveHeaderKey(header)],
18953
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18954
- label: resolveHeaderTitle(header),
18955
- variant: "outlined",
18956
- disabled: isHeaderDisabled(header),
18957
- dir: header.dir,
18958
- "auto-grow": "",
18959
- rows: "3"
18960
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
18961
- key: 4,
18962
- modelValue: formModel.value[resolveHeaderKey(header)],
18963
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18964
- label: resolveHeaderTitle(header),
18965
- type: "boolean",
18966
- activeColor: "#3bd32a",
18967
- inactiveColor: "#d32a2a",
18968
- options: [
18969
- { value: "true", label: "فعال", icon: unref(IconCheck) },
18970
- { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
18971
- ]
18972
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
18973
- key: 5,
18974
- modelValue: formModel.value[resolveHeaderKey(header)],
18975
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18976
- label: resolveHeaderTitle(header),
18977
- variant: "outlined",
18978
- disabled: isHeaderDisabled(header),
18979
- type: getFieldInputType(header),
18980
- dir: header.dir
18981
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
18982
- ], 64)) : createCommentVNode("", true)
18983
- ]),
18984
- _: 2
18985
- }, 1032, ["cols", "md"]);
18986
- }), 128))
18987
- ]),
18988
- _: 1
18989
- }))
18931
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
18932
+ return openBlock(), createBlock(VCol, {
18933
+ key: resolveHeaderKey(header),
18934
+ cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
18935
+ md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
18936
+ }, {
18937
+ default: withCtx(() => [
18938
+ !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18939
+ isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
18940
+ key: 0,
18941
+ modelValue: formModel.value[resolveHeaderKey(header)],
18942
+ "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18943
+ label: resolveHeaderTitle(header),
18944
+ disabled: isHeaderDisabled(header)
18945
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
18946
+ key: 1,
18947
+ modelValue: formModel.value[resolveHeaderKey(header)],
18948
+ "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18949
+ label: resolveHeaderTitle(header),
18950
+ items: resolveAutocompleteItems(header, formModel.value.value),
18951
+ "item-title": resolveAutocompleteItemTitle(header),
18952
+ "item-value": resolveAutocompleteItemValue(header),
18953
+ "return-object": resolveAutocompleteReturnObject(header),
18954
+ multiple: resolveAutocompleteMultiple(header),
18955
+ chips: resolveAutocompleteMultiple(header),
18956
+ "closable-chips": resolveAutocompleteMultiple(header),
18957
+ disabled: isHeaderDisabled(header),
18958
+ clearable: "",
18959
+ variant: "outlined"
18960
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$i, {
18961
+ key: 2,
18962
+ modelValue: formModel.value[resolveHeaderKey(header)],
18963
+ "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18964
+ label: resolveHeaderTitle(header),
18965
+ disabled: isHeaderDisabled(header)
18966
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
18967
+ key: 3,
18968
+ modelValue: formModel.value[resolveHeaderKey(header)],
18969
+ "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18970
+ label: resolveHeaderTitle(header),
18971
+ variant: "outlined",
18972
+ disabled: isHeaderDisabled(header),
18973
+ dir: header.dir,
18974
+ "auto-grow": "",
18975
+ rows: "3"
18976
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
18977
+ key: 4,
18978
+ modelValue: formModel.value[resolveHeaderKey(header)],
18979
+ "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18980
+ label: resolveHeaderTitle(header),
18981
+ type: "boolean",
18982
+ activeColor: "#3bd32a",
18983
+ inactiveColor: "#d32a2a",
18984
+ options: [
18985
+ { value: "true", label: "فعال", icon: unref(IconCheck) },
18986
+ { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
18987
+ ]
18988
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
18989
+ key: 5,
18990
+ modelValue: formModel.value[resolveHeaderKey(header)],
18991
+ "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18992
+ label: resolveHeaderTitle(header),
18993
+ variant: "outlined",
18994
+ disabled: isHeaderDisabled(header),
18995
+ type: getFieldInputType(header),
18996
+ dir: header.dir
18997
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
18998
+ ], 64)) : createCommentVNode("", true)
18999
+ ]),
19000
+ _: 2
19001
+ }, 1032, ["cols", "md"]);
19002
+ }), 128))
18990
19003
  ]),
18991
19004
  _: 1
18992
- })
19005
+ }))
18993
19006
  ]),
18994
19007
  _: 1
19008
+ })
19009
+ ]),
19010
+ createElementVNode("div", _hoisted_31, [
19011
+ createVNode(VBtn, {
19012
+ variant: "tonal",
19013
+ color: "error",
19014
+ onClick: _cache[5] || (_cache[5] = ($event) => dialog.value = false)
19015
+ }, {
19016
+ default: withCtx(() => [..._cache[42] || (_cache[42] = [
19017
+ createTextVNode("انصراف", -1)
19018
+ ])]),
19019
+ _: 1
18995
19020
  }),
18996
- createVNode(VCardActions, null, {
19021
+ createVNode(VBtn, {
19022
+ color: "primary",
19023
+ var: "",
19024
+ onClick: saveItem
19025
+ }, {
18997
19026
  default: withCtx(() => [
18998
- createVNode(VBtn, {
18999
- variant: "tonal",
19000
- color: "error",
19001
- onClick: _cache[5] || (_cache[5] = ($event) => dialog.value = false)
19002
- }, {
19003
- default: withCtx(() => [..._cache[42] || (_cache[42] = [
19004
- createTextVNode("انصراف", -1)
19005
- ])]),
19006
- _: 1
19007
- }),
19008
- createVNode(VBtn, {
19009
- color: "primary",
19010
- var: "",
19011
- onClick: saveItem
19012
- }, {
19013
- default: withCtx(() => [
19014
- createTextVNode(toDisplayString(isEditing.value ? "ذخیره" : "ایجاد"), 1)
19015
- ]),
19016
- _: 1
19017
- })
19027
+ createTextVNode(toDisplayString(isEditing.value ? "ذخیره" : "ایجاد"), 1)
19018
19028
  ]),
19019
19029
  _: 1
19020
19030
  })
19021
- ]),
19022
- _: 1
19023
- })
19031
+ ])
19032
+ ])
19024
19033
  ]),
19025
19034
  _: 1
19026
19035
  }, 8, ["modelValue"]),
@@ -19030,49 +19039,35 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19030
19039
  "max-width": "400"
19031
19040
  }, {
19032
19041
  default: withCtx(() => [
19033
- createVNode(VCard, null, {
19034
- default: withCtx(() => [
19035
- createVNode(VCardTitle, null, {
19042
+ createElementVNode("div", _hoisted_32, [
19043
+ _cache[45] || (_cache[45] = createElementVNode("div", { class: "dialog-header" }, [
19044
+ createElementVNode("h3", { class: "dialog-title" }, "حذف آیتم")
19045
+ ], -1)),
19046
+ _cache[46] || (_cache[46] = createElementVNode("div", { class: "dialog-content" }, " آیا مایل به حذف این رکورد هستید ?", -1)),
19047
+ createElementVNode("div", _hoisted_33, [
19048
+ createVNode(VBtn, {
19049
+ color: "grey",
19050
+ onClick: _cache[7] || (_cache[7] = ($event) => deleteDialog.value = false)
19051
+ }, {
19036
19052
  default: withCtx(() => [..._cache[43] || (_cache[43] = [
19037
- createTextVNode("حذف آیتم", -1)
19053
+ createTextVNode("انصراف", -1)
19038
19054
  ])]),
19039
19055
  _: 1
19040
19056
  }),
19041
- createVNode(VCardText, null, {
19057
+ createVNode(VBtn, {
19058
+ color: "red",
19059
+ onClick: _cache[8] || (_cache[8] = ($event) => {
19060
+ var _a2;
19061
+ return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
19062
+ })
19063
+ }, {
19042
19064
  default: withCtx(() => [..._cache[44] || (_cache[44] = [
19043
- createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
19065
+ createTextVNode("حذف", -1)
19044
19066
  ])]),
19045
19067
  _: 1
19046
- }),
19047
- createVNode(VCardActions, null, {
19048
- default: withCtx(() => [
19049
- createVNode(VBtn, {
19050
- color: "grey",
19051
- onClick: _cache[7] || (_cache[7] = ($event) => deleteDialog.value = false)
19052
- }, {
19053
- default: withCtx(() => [..._cache[45] || (_cache[45] = [
19054
- createTextVNode("انصراف", -1)
19055
- ])]),
19056
- _: 1
19057
- }),
19058
- createVNode(VBtn, {
19059
- color: "red",
19060
- onClick: _cache[8] || (_cache[8] = ($event) => {
19061
- var _a2;
19062
- return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
19063
- })
19064
- }, {
19065
- default: withCtx(() => [..._cache[46] || (_cache[46] = [
19066
- createTextVNode("حذف", -1)
19067
- ])]),
19068
- _: 1
19069
- })
19070
- ]),
19071
- _: 1
19072
19068
  })
19073
- ]),
19074
- _: 1
19075
- })
19069
+ ])
19070
+ ])
19076
19071
  ]),
19077
19072
  _: 1
19078
19073
  }, 8, ["modelValue"]),
@@ -19082,71 +19077,61 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19082
19077
  "max-width": "500"
19083
19078
  }, {
19084
19079
  default: withCtx(() => [
19085
- createVNode(VCard, null, {
19086
- default: withCtx(() => [
19087
- createVNode(VCardTitle, { class: "text-h6" }, {
19088
- default: withCtx(() => [
19089
- createVNode(VIcon, {
19090
- color: "red",
19091
- class: "me-2"
19092
- }, {
19093
- default: withCtx(() => [..._cache[47] || (_cache[47] = [
19094
- createTextVNode("🗑️", -1)
19095
- ])]),
19096
- _: 1
19097
- }),
19098
- _cache[48] || (_cache[48] = createTextVNode(" حذف گروهی ", -1))
19099
- ]),
19080
+ createElementVNode("div", _hoisted_34, [
19081
+ createElementVNode("div", _hoisted_35, [
19082
+ createElementVNode("h3", _hoisted_36, [
19083
+ createVNode(VIcon, {
19084
+ color: "red",
19085
+ class: "me-2"
19086
+ }, {
19087
+ default: withCtx(() => [..._cache[47] || (_cache[47] = [
19088
+ createTextVNode("🗑️", -1)
19089
+ ])]),
19090
+ _: 1
19091
+ }),
19092
+ _cache[48] || (_cache[48] = createTextVNode(" حذف گروهی ", -1))
19093
+ ])
19094
+ ]),
19095
+ createElementVNode("div", _hoisted_37, [
19096
+ createElementVNode("p", null, [
19097
+ _cache[49] || (_cache[49] = createTextVNode(" آیا مایل به حذف ", -1)),
19098
+ createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
19099
+ _cache[50] || (_cache[50] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
19100
+ ]),
19101
+ createVNode(VAlert, {
19102
+ type: "warning",
19103
+ variant: "tonal",
19104
+ class: "mt-3"
19105
+ }, {
19106
+ default: withCtx(() => [..._cache[51] || (_cache[51] = [
19107
+ createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
19108
+ ])]),
19100
19109
  _: 1
19101
- }),
19102
- createVNode(VCardText, null, {
19103
- default: withCtx(() => [
19104
- createElementVNode("p", null, [
19105
- _cache[49] || (_cache[49] = createTextVNode(" آیا مایل به حذف ", -1)),
19106
- createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
19107
- _cache[50] || (_cache[50] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
19108
- ]),
19109
- createVNode(VAlert, {
19110
- type: "warning",
19111
- variant: "tonal",
19112
- class: "mt-3"
19113
- }, {
19114
- default: withCtx(() => [..._cache[51] || (_cache[51] = [
19115
- createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
19116
- ])]),
19117
- _: 1
19118
- })
19119
- ]),
19110
+ })
19111
+ ]),
19112
+ createElementVNode("div", _hoisted_38, [
19113
+ createVNode(VSpacer),
19114
+ createVNode(VBtn, {
19115
+ color: "grey",
19116
+ onClick: _cache[10] || (_cache[10] = ($event) => groupDeleteDialog.value = false)
19117
+ }, {
19118
+ default: withCtx(() => [..._cache[52] || (_cache[52] = [
19119
+ createTextVNode("انصراف", -1)
19120
+ ])]),
19120
19121
  _: 1
19121
19122
  }),
19122
- createVNode(VCardActions, null, {
19123
+ createVNode(VBtn, {
19124
+ color: "red",
19125
+ onClick: deleteGroupItems,
19126
+ loading: loading.value
19127
+ }, {
19123
19128
  default: withCtx(() => [
19124
- createVNode(VSpacer),
19125
- createVNode(VBtn, {
19126
- color: "grey",
19127
- onClick: _cache[10] || (_cache[10] = ($event) => groupDeleteDialog.value = false)
19128
- }, {
19129
- default: withCtx(() => [..._cache[52] || (_cache[52] = [
19130
- createTextVNode("انصراف", -1)
19131
- ])]),
19132
- _: 1
19133
- }),
19134
- createVNode(VBtn, {
19135
- color: "red",
19136
- onClick: deleteGroupItems,
19137
- loading: loading.value
19138
- }, {
19139
- default: withCtx(() => [
19140
- createTextVNode(" حذف " + toDisplayString(selectedCount.value) + " آیتم ", 1)
19141
- ]),
19142
- _: 1
19143
- }, 8, ["loading"])
19129
+ createTextVNode(" حذف " + toDisplayString(selectedCount.value) + " آیتم ", 1)
19144
19130
  ]),
19145
19131
  _: 1
19146
- })
19147
- ]),
19148
- _: 1
19149
- })
19132
+ }, 8, ["loading"])
19133
+ ])
19134
+ ])
19150
19135
  ]),
19151
19136
  _: 1
19152
19137
  }, 8, ["modelValue"]),
@@ -19155,32 +19140,23 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19155
19140
  "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => customActionDialog.value = $event),
19156
19141
  "max-width": "1300"
19157
19142
  }, {
19158
- default: withCtx(() => [
19159
- createVNode(VCard, null, {
19160
- default: withCtx(() => [
19161
- createVNode(VCardTitle, null, {
19162
- default: withCtx(() => {
19163
- var _a2, _b2;
19164
- return [
19165
- createTextVNode(toDisplayString(((_b2 = (_a2 = props.customActions) == null ? void 0 : _a2.find((a) => a.component === customActionComponent.value)) == null ? void 0 : _b2.title) || ""), 1)
19166
- ];
19167
- }),
19168
- _: 1
19169
- }),
19170
- createVNode(VCardText, null, {
19171
- default: withCtx(() => [
19172
- customActionComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(customActionComponent.value), {
19173
- key: 0,
19174
- item: customActionItem.value,
19175
- onClose: _cache[12] || (_cache[12] = ($event) => customActionDialog.value = false)
19176
- }, null, 40, ["item"])) : createCommentVNode("", true)
19177
- ]),
19178
- _: 1
19179
- })
19180
- ]),
19181
- _: 1
19182
- })
19183
- ]),
19143
+ default: withCtx(() => {
19144
+ var _a2, _b2;
19145
+ return [
19146
+ createElementVNode("div", _hoisted_39, [
19147
+ createElementVNode("div", _hoisted_40, [
19148
+ createElementVNode("h3", _hoisted_41, toDisplayString(((_b2 = (_a2 = props.customActions) == null ? void 0 : _a2.find((a) => a.component === customActionComponent.value)) == null ? void 0 : _b2.title) || ""), 1)
19149
+ ]),
19150
+ createElementVNode("div", _hoisted_42, [
19151
+ customActionComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(customActionComponent.value), {
19152
+ key: 0,
19153
+ item: customActionItem.value,
19154
+ onClose: _cache[12] || (_cache[12] = ($event) => customActionDialog.value = false)
19155
+ }, null, 40, ["item"])) : createCommentVNode("", true)
19156
+ ])
19157
+ ])
19158
+ ];
19159
+ }),
19184
19160
  _: 1
19185
19161
  }, 8, ["modelValue"]),
19186
19162
  createVNode(VDialog, {
@@ -19189,11 +19165,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19189
19165
  "max-width": "800"
19190
19166
  }, {
19191
19167
  default: withCtx(() => [
19192
- createElementVNode("div", _hoisted_27, [
19193
- _cache[55] || (_cache[55] = createElementVNode("div", { class: "filter-dialog-header" }, [
19194
- createElementVNode("h3", { class: "filter-dialog-title" }, "فیلتر")
19168
+ createElementVNode("div", _hoisted_43, [
19169
+ _cache[55] || (_cache[55] = createElementVNode("div", { class: "dialog-header" }, [
19170
+ createElementVNode("h3", { class: "dialog-title" }, "فیلتر")
19195
19171
  ], -1)),
19196
- createElementVNode("div", _hoisted_28, [
19172
+ createElementVNode("div", _hoisted_44, [
19197
19173
  props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
19198
19174
  key: 0,
19199
19175
  "model-value": filterModel.value,
@@ -19294,7 +19270,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19294
19270
  _: 1
19295
19271
  }))
19296
19272
  ]),
19297
- !props.filterComponent ? (openBlock(), createElementBlock("div", _hoisted_29, [
19273
+ !props.filterComponent ? (openBlock(), createElementBlock("div", _hoisted_45, [
19298
19274
  createVNode(VSpacer),
19299
19275
  createVNode(VBtn, {
19300
19276
  color: "grey",
@@ -19326,90 +19302,80 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19326
19302
  "max-width": "800"
19327
19303
  }, {
19328
19304
  default: withCtx(() => [
19329
- createVNode(VCard, null, {
19330
- default: withCtx(() => [
19331
- createVNode(VCardTitle, { class: "d-flex justify-space-between align-center" }, {
19305
+ createElementVNode("div", _hoisted_46, [
19306
+ createElementVNode("div", _hoisted_47, [
19307
+ createElementVNode("h3", _hoisted_48, [
19308
+ createElementVNode("span", null, toDisplayString(previewTitle.value), 1),
19309
+ createVNode(VBtn, {
19310
+ icon: "",
19311
+ variant: "text",
19312
+ onClick: _cache[16] || (_cache[16] = ($event) => textPreviewDialog.value = false)
19313
+ }, {
19314
+ default: withCtx(() => [
19315
+ createVNode(VIcon, null, {
19316
+ default: withCtx(() => [..._cache[56] || (_cache[56] = [
19317
+ createTextVNode("mdi-close", -1)
19318
+ ])]),
19319
+ _: 1
19320
+ })
19321
+ ]),
19322
+ _: 1
19323
+ })
19324
+ ])
19325
+ ]),
19326
+ createElementVNode("div", _hoisted_49, [
19327
+ createVNode(VTextarea, {
19328
+ "model-value": previewText.value,
19329
+ readonly: "",
19330
+ "auto-grow": "",
19331
+ variant: "outlined",
19332
+ rows: "10",
19333
+ class: "mb-4"
19334
+ }, null, 8, ["model-value"])
19335
+ ]),
19336
+ createElementVNode("div", _hoisted_50, [
19337
+ createVNode(VSpacer),
19338
+ createVNode(VBtn, {
19339
+ color: "primary",
19340
+ onClick: _cache[17] || (_cache[17] = ($event) => copyToClipboard(previewText.value))
19341
+ }, {
19332
19342
  default: withCtx(() => [
19333
- createElementVNode("span", null, toDisplayString(previewTitle.value), 1),
19334
- createVNode(VBtn, {
19335
- icon: "",
19336
- variant: "text",
19337
- onClick: _cache[16] || (_cache[16] = ($event) => textPreviewDialog.value = false)
19338
- }, {
19339
- default: withCtx(() => [
19340
- createVNode(VIcon, null, {
19341
- default: withCtx(() => [..._cache[56] || (_cache[56] = [
19342
- createTextVNode("mdi-close", -1)
19343
- ])]),
19344
- _: 1
19345
- })
19346
- ]),
19343
+ createVNode(VIcon, { start: "" }, {
19344
+ default: withCtx(() => [..._cache[57] || (_cache[57] = [
19345
+ createTextVNode("mdi-content-copy", -1)
19346
+ ])]),
19347
19347
  _: 1
19348
- })
19349
- ]),
19350
- _: 1
19351
- }),
19352
- createVNode(VCardText, null, {
19353
- default: withCtx(() => [
19354
- createVNode(VTextarea, {
19355
- "model-value": previewText.value,
19356
- readonly: "",
19357
- "auto-grow": "",
19358
- variant: "outlined",
19359
- rows: "10",
19360
- class: "mb-4"
19361
- }, null, 8, ["model-value"])
19348
+ }),
19349
+ _cache[58] || (_cache[58] = createTextVNode(" کپی متن ", -1))
19362
19350
  ]),
19363
19351
  _: 1
19364
19352
  }),
19365
- createVNode(VCardActions, null, {
19353
+ createVNode(VBtn, {
19354
+ color: "success",
19355
+ onClick: copyCompleteRecord
19356
+ }, {
19366
19357
  default: withCtx(() => [
19367
- createVNode(VSpacer),
19368
- createVNode(VBtn, {
19369
- color: "primary",
19370
- onClick: _cache[17] || (_cache[17] = ($event) => copyToClipboard(previewText.value))
19371
- }, {
19372
- default: withCtx(() => [
19373
- createVNode(VIcon, { start: "" }, {
19374
- default: withCtx(() => [..._cache[57] || (_cache[57] = [
19375
- createTextVNode("mdi-content-copy", -1)
19376
- ])]),
19377
- _: 1
19378
- }),
19379
- _cache[58] || (_cache[58] = createTextVNode(" کپی متن ", -1))
19380
- ]),
19381
- _: 1
19382
- }),
19383
- createVNode(VBtn, {
19384
- color: "success",
19385
- onClick: copyCompleteRecord
19386
- }, {
19387
- default: withCtx(() => [
19388
- createVNode(VIcon, { start: "" }, {
19389
- default: withCtx(() => [..._cache[59] || (_cache[59] = [
19390
- createTextVNode("mdi-content-copy", -1)
19391
- ])]),
19392
- _: 1
19393
- }),
19394
- _cache[60] || (_cache[60] = createTextVNode(" کپی رکورد کامل ", -1))
19395
- ]),
19396
- _: 1
19397
- }),
19398
- createVNode(VBtn, {
19399
- color: "grey",
19400
- onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
19401
- }, {
19402
- default: withCtx(() => [..._cache[61] || (_cache[61] = [
19403
- createTextVNode("بستن", -1)
19358
+ createVNode(VIcon, { start: "" }, {
19359
+ default: withCtx(() => [..._cache[59] || (_cache[59] = [
19360
+ createTextVNode("mdi-content-copy", -1)
19404
19361
  ])]),
19405
19362
  _: 1
19406
- })
19363
+ }),
19364
+ _cache[60] || (_cache[60] = createTextVNode(" کپی رکورد کامل ", -1))
19407
19365
  ]),
19408
19366
  _: 1
19367
+ }),
19368
+ createVNode(VBtn, {
19369
+ color: "grey",
19370
+ onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
19371
+ }, {
19372
+ default: withCtx(() => [..._cache[61] || (_cache[61] = [
19373
+ createTextVNode("بستن", -1)
19374
+ ])]),
19375
+ _: 1
19409
19376
  })
19410
- ]),
19411
- _: 1
19412
- })
19377
+ ])
19378
+ ])
19413
19379
  ]),
19414
19380
  _: 1
19415
19381
  }, 8, ["modelValue"]),