@amirjalili1374/ui-kit 1.4.19 → 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,6 +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: "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 = {
17104
+ key: 0,
17105
+ class: "dialog-actions"
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" };
17085
17112
  const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
17086
17113
  ...{ inheritAttrs: false },
17087
17114
  __name: "CustomDataTable",
@@ -18888,133 +18915,121 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18888
18915
  "max-width": "1400"
18889
18916
  }, {
18890
18917
  default: withCtx(() => [
18891
- createVNode(VCard, null, {
18892
- default: withCtx(() => [
18893
- createVNode(VCardTitle, null, {
18894
- default: withCtx(() => [
18895
- createTextVNode(toDisplayString(isEditing.value ? "ویرایش" : "ایجاد"), 1)
18896
- ]),
18897
- _: 1
18898
- }),
18899
- 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, {
18900
18924
  default: withCtx(() => [
18901
- 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 }, {
18902
18930
  default: withCtx(() => [
18903
- props.formComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.formComponent), {
18904
- key: 0,
18905
- modelValue: formModel.value,
18906
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => formModel.value = $event)
18907
- }, null, 8, ["modelValue"])) : (openBlock(), createBlock(VRow, { key: 1 }, {
18908
- default: withCtx(() => [
18909
- (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
18910
- return openBlock(), createBlock(VCol, {
18911
- key: resolveHeaderKey(header),
18912
- cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
18913
- md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
18914
- }, {
18915
- default: withCtx(() => [
18916
- !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18917
- isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
18918
- key: 0,
18919
- modelValue: formModel.value[resolveHeaderKey(header)],
18920
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18921
- label: resolveHeaderTitle(header),
18922
- disabled: isHeaderDisabled(header)
18923
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
18924
- key: 1,
18925
- modelValue: formModel.value[resolveHeaderKey(header)],
18926
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18927
- label: resolveHeaderTitle(header),
18928
- items: resolveAutocompleteItems(header, formModel.value.value),
18929
- "item-title": resolveAutocompleteItemTitle(header),
18930
- "item-value": resolveAutocompleteItemValue(header),
18931
- "return-object": resolveAutocompleteReturnObject(header),
18932
- multiple: resolveAutocompleteMultiple(header),
18933
- chips: resolveAutocompleteMultiple(header),
18934
- "closable-chips": resolveAutocompleteMultiple(header),
18935
- disabled: isHeaderDisabled(header),
18936
- clearable: "",
18937
- variant: "outlined"
18938
- }, 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, {
18939
- key: 2,
18940
- modelValue: formModel.value[resolveHeaderKey(header)],
18941
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18942
- label: resolveHeaderTitle(header),
18943
- disabled: isHeaderDisabled(header)
18944
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
18945
- key: 3,
18946
- modelValue: formModel.value[resolveHeaderKey(header)],
18947
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18948
- label: resolveHeaderTitle(header),
18949
- variant: "outlined",
18950
- disabled: isHeaderDisabled(header),
18951
- dir: header.dir,
18952
- "auto-grow": "",
18953
- rows: "3"
18954
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
18955
- key: 4,
18956
- modelValue: formModel.value[resolveHeaderKey(header)],
18957
- "onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
18958
- label: resolveHeaderTitle(header),
18959
- type: "boolean",
18960
- activeColor: "#3bd32a",
18961
- inactiveColor: "#d32a2a",
18962
- options: [
18963
- { value: "true", label: "فعال", icon: unref(IconCheck) },
18964
- { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
18965
- ]
18966
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
18967
- key: 5,
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
- type: getFieldInputType(header),
18974
- dir: header.dir
18975
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
18976
- ], 64)) : createCommentVNode("", true)
18977
- ]),
18978
- _: 2
18979
- }, 1032, ["cols", "md"]);
18980
- }), 128))
18981
- ]),
18982
- _: 1
18983
- }))
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))
18984
19003
  ]),
18985
19004
  _: 1
18986
- })
19005
+ }))
18987
19006
  ]),
18988
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
18989
19020
  }),
18990
- createVNode(VCardActions, null, {
19021
+ createVNode(VBtn, {
19022
+ color: "primary",
19023
+ var: "",
19024
+ onClick: saveItem
19025
+ }, {
18991
19026
  default: withCtx(() => [
18992
- createVNode(VBtn, {
18993
- variant: "tonal",
18994
- color: "error",
18995
- onClick: _cache[5] || (_cache[5] = ($event) => dialog.value = false)
18996
- }, {
18997
- default: withCtx(() => [..._cache[42] || (_cache[42] = [
18998
- createTextVNode("انصراف", -1)
18999
- ])]),
19000
- _: 1
19001
- }),
19002
- createVNode(VBtn, {
19003
- color: "primary",
19004
- var: "",
19005
- onClick: saveItem
19006
- }, {
19007
- default: withCtx(() => [
19008
- createTextVNode(toDisplayString(isEditing.value ? "ذخیره" : "ایجاد"), 1)
19009
- ]),
19010
- _: 1
19011
- })
19027
+ createTextVNode(toDisplayString(isEditing.value ? "ذخیره" : "ایجاد"), 1)
19012
19028
  ]),
19013
19029
  _: 1
19014
19030
  })
19015
- ]),
19016
- _: 1
19017
- })
19031
+ ])
19032
+ ])
19018
19033
  ]),
19019
19034
  _: 1
19020
19035
  }, 8, ["modelValue"]),
@@ -19024,49 +19039,35 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19024
19039
  "max-width": "400"
19025
19040
  }, {
19026
19041
  default: withCtx(() => [
19027
- createVNode(VCard, null, {
19028
- default: withCtx(() => [
19029
- 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
+ }, {
19030
19052
  default: withCtx(() => [..._cache[43] || (_cache[43] = [
19031
- createTextVNode("حذف آیتم", -1)
19053
+ createTextVNode("انصراف", -1)
19032
19054
  ])]),
19033
19055
  _: 1
19034
19056
  }),
19035
- 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
+ }, {
19036
19064
  default: withCtx(() => [..._cache[44] || (_cache[44] = [
19037
- createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
19065
+ createTextVNode("حذف", -1)
19038
19066
  ])]),
19039
19067
  _: 1
19040
- }),
19041
- createVNode(VCardActions, null, {
19042
- default: withCtx(() => [
19043
- createVNode(VBtn, {
19044
- color: "grey",
19045
- onClick: _cache[7] || (_cache[7] = ($event) => deleteDialog.value = false)
19046
- }, {
19047
- default: withCtx(() => [..._cache[45] || (_cache[45] = [
19048
- createTextVNode("انصراف", -1)
19049
- ])]),
19050
- _: 1
19051
- }),
19052
- createVNode(VBtn, {
19053
- color: "red",
19054
- onClick: _cache[8] || (_cache[8] = ($event) => {
19055
- var _a2;
19056
- return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
19057
- })
19058
- }, {
19059
- default: withCtx(() => [..._cache[46] || (_cache[46] = [
19060
- createTextVNode("حذف", -1)
19061
- ])]),
19062
- _: 1
19063
- })
19064
- ]),
19065
- _: 1
19066
19068
  })
19067
- ]),
19068
- _: 1
19069
- })
19069
+ ])
19070
+ ])
19070
19071
  ]),
19071
19072
  _: 1
19072
19073
  }, 8, ["modelValue"]),
@@ -19076,71 +19077,61 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19076
19077
  "max-width": "500"
19077
19078
  }, {
19078
19079
  default: withCtx(() => [
19079
- createVNode(VCard, null, {
19080
- default: withCtx(() => [
19081
- createVNode(VCardTitle, { class: "text-h6" }, {
19082
- default: withCtx(() => [
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
- ]),
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
+ ])]),
19094
19109
  _: 1
19095
- }),
19096
- createVNode(VCardText, null, {
19097
- default: withCtx(() => [
19098
- createElementVNode("p", null, [
19099
- _cache[49] || (_cache[49] = createTextVNode(" آیا مایل به حذف ", -1)),
19100
- createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
19101
- _cache[50] || (_cache[50] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
19102
- ]),
19103
- createVNode(VAlert, {
19104
- type: "warning",
19105
- variant: "tonal",
19106
- class: "mt-3"
19107
- }, {
19108
- default: withCtx(() => [..._cache[51] || (_cache[51] = [
19109
- createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
19110
- ])]),
19111
- _: 1
19112
- })
19113
- ]),
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
+ ])]),
19114
19121
  _: 1
19115
19122
  }),
19116
- createVNode(VCardActions, null, {
19123
+ createVNode(VBtn, {
19124
+ color: "red",
19125
+ onClick: deleteGroupItems,
19126
+ loading: loading.value
19127
+ }, {
19117
19128
  default: withCtx(() => [
19118
- createVNode(VSpacer),
19119
- createVNode(VBtn, {
19120
- color: "grey",
19121
- onClick: _cache[10] || (_cache[10] = ($event) => groupDeleteDialog.value = false)
19122
- }, {
19123
- default: withCtx(() => [..._cache[52] || (_cache[52] = [
19124
- createTextVNode("انصراف", -1)
19125
- ])]),
19126
- _: 1
19127
- }),
19128
- createVNode(VBtn, {
19129
- color: "red",
19130
- onClick: deleteGroupItems,
19131
- loading: loading.value
19132
- }, {
19133
- default: withCtx(() => [
19134
- createTextVNode(" حذف " + toDisplayString(selectedCount.value) + " آیتم ", 1)
19135
- ]),
19136
- _: 1
19137
- }, 8, ["loading"])
19129
+ createTextVNode(" حذف " + toDisplayString(selectedCount.value) + " آیتم ", 1)
19138
19130
  ]),
19139
19131
  _: 1
19140
- })
19141
- ]),
19142
- _: 1
19143
- })
19132
+ }, 8, ["loading"])
19133
+ ])
19134
+ ])
19144
19135
  ]),
19145
19136
  _: 1
19146
19137
  }, 8, ["modelValue"]),
@@ -19149,32 +19140,23 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19149
19140
  "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => customActionDialog.value = $event),
19150
19141
  "max-width": "1300"
19151
19142
  }, {
19152
- default: withCtx(() => [
19153
- createVNode(VCard, null, {
19154
- default: withCtx(() => [
19155
- createVNode(VCardTitle, null, {
19156
- default: withCtx(() => {
19157
- var _a2, _b2;
19158
- return [
19159
- createTextVNode(toDisplayString(((_b2 = (_a2 = props.customActions) == null ? void 0 : _a2.find((a) => a.component === customActionComponent.value)) == null ? void 0 : _b2.title) || ""), 1)
19160
- ];
19161
- }),
19162
- _: 1
19163
- }),
19164
- createVNode(VCardText, null, {
19165
- default: withCtx(() => [
19166
- customActionComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(customActionComponent.value), {
19167
- key: 0,
19168
- item: customActionItem.value,
19169
- onClose: _cache[12] || (_cache[12] = ($event) => customActionDialog.value = false)
19170
- }, null, 40, ["item"])) : createCommentVNode("", true)
19171
- ]),
19172
- _: 1
19173
- })
19174
- ]),
19175
- _: 1
19176
- })
19177
- ]),
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
+ }),
19178
19160
  _: 1
19179
19161
  }, 8, ["modelValue"]),
19180
19162
  createVNode(VDialog, {
@@ -19183,148 +19165,134 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19183
19165
  "max-width": "800"
19184
19166
  }, {
19185
19167
  default: withCtx(() => [
19186
- createVNode(VCard, { class: "filter-dialog-card" }, {
19187
- default: withCtx(() => [
19188
- createVNode(VCardTitle, null, {
19189
- default: withCtx(() => [..._cache[53] || (_cache[53] = [
19190
- createTextVNode("فیلتر", -1)
19191
- ])]),
19192
- _: 1
19193
- }),
19194
- createVNode(VCardText, null, {
19168
+ createElementVNode("div", _hoisted_43, [
19169
+ _cache[55] || (_cache[55] = createElementVNode("div", { class: "dialog-header" }, [
19170
+ createElementVNode("h3", { class: "dialog-title" }, "فیلتر")
19171
+ ], -1)),
19172
+ createElementVNode("div", _hoisted_44, [
19173
+ props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
19174
+ key: 0,
19175
+ "model-value": filterModel.value,
19176
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => filterModel.value = $event),
19177
+ onApply: handleFilterApply
19178
+ }, null, 40, ["model-value"])) : (openBlock(), createBlock(VContainer, { key: 1 }, {
19195
19179
  default: withCtx(() => [
19196
- props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
19197
- key: 0,
19198
- "model-value": filterModel.value,
19199
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => filterModel.value = $event),
19200
- onApply: handleFilterApply
19201
- }, null, 40, ["model-value"])) : (openBlock(), createBlock(VContainer, { key: 1 }, {
19180
+ createVNode(VRow, null, {
19202
19181
  default: withCtx(() => [
19203
- createVNode(VRow, null, {
19204
- default: withCtx(() => [
19205
- (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
19206
- return openBlock(), createBlock(VCol, {
19207
- key: resolveHeaderKey(header),
19208
- cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
19209
- md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
19210
- }, {
19211
- default: withCtx(() => [
19212
- !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19213
- hasFilterOperators(header) ? (openBlock(), createBlock(VSelect, {
19214
- key: 0,
19215
- modelValue: filterOperatorModel.value[resolveHeaderKey(header)],
19216
- "onUpdate:modelValue": ($event) => filterOperatorModel.value[resolveHeaderKey(header)] = $event,
19217
- items: getHeaderFilterOperators(header),
19218
- "item-title": "label",
19219
- "item-value": "value",
19220
- density: "compact",
19221
- variant: "underlined",
19222
- "hide-details": "",
19223
- class: "mb-1",
19224
- "menu-props": { attach: true, zIndex: 3e3 }
19225
- }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : createCommentVNode("", true),
19226
- isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
19227
- key: 1,
19228
- modelValue: filterModel.value[resolveHeaderKey(header)],
19229
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19230
- label: resolveHeaderTitle(header),
19231
- disabled: isHeaderDisabled(header)
19232
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
19233
- key: 2,
19234
- modelValue: filterModel.value[resolveHeaderKey(header)],
19235
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19236
- label: resolveHeaderTitle(header),
19237
- items: resolveAutocompleteItems(header, filterModel.value.value),
19238
- "item-title": resolveAutocompleteItemTitle(header),
19239
- "item-value": resolveAutocompleteItemValue(header),
19240
- "return-object": resolveAutocompleteReturnObject(header),
19241
- multiple: resolveAutocompleteMultiple(header),
19242
- chips: resolveAutocompleteMultiple(header),
19243
- "closable-chips": resolveAutocompleteMultiple(header),
19244
- disabled: isHeaderDisabled(header),
19245
- clearable: "",
19246
- variant: "outlined",
19247
- "menu-props": { attach: true, zIndex: 3e3 }
19248
- }, 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, {
19249
- key: 3,
19250
- modelValue: filterModel.value[resolveHeaderKey(header)],
19251
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19252
- label: resolveHeaderTitle(header),
19253
- disabled: isHeaderDisabled(header)
19254
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
19255
- key: 4,
19256
- modelValue: filterModel.value[resolveHeaderKey(header)],
19257
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19258
- label: resolveHeaderTitle(header),
19259
- variant: "outlined",
19260
- disabled: isHeaderDisabled(header),
19261
- dir: header.dir,
19262
- "auto-grow": "",
19263
- rows: "3"
19264
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
19265
- key: 5,
19266
- modelValue: filterModel.value[resolveHeaderKey(header)],
19267
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19268
- label: resolveHeaderTitle(header),
19269
- type: "boolean",
19270
- activeColor: "#3bd32a",
19271
- inactiveColor: "#d32a2a",
19272
- options: [
19273
- { value: "true", label: "فعال", icon: unref(IconCheck) },
19274
- { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
19275
- ]
19276
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
19277
- key: 6,
19278
- modelValue: filterModel.value[resolveHeaderKey(header)],
19279
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19280
- label: resolveHeaderTitle(header),
19281
- variant: "outlined",
19282
- disabled: isHeaderDisabled(header),
19283
- type: getFieldInputType(header),
19284
- dir: header.dir
19285
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
19286
- ], 64)) : createCommentVNode("", true)
19287
- ]),
19288
- _: 2
19289
- }, 1032, ["cols", "md"]);
19290
- }), 128))
19291
- ]),
19292
- _: 1
19293
- })
19182
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
19183
+ return openBlock(), createBlock(VCol, {
19184
+ key: resolveHeaderKey(header),
19185
+ cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
19186
+ md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
19187
+ }, {
19188
+ default: withCtx(() => [
19189
+ !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19190
+ hasFilterOperators(header) ? (openBlock(), createBlock(VSelect, {
19191
+ key: 0,
19192
+ modelValue: filterOperatorModel.value[resolveHeaderKey(header)],
19193
+ "onUpdate:modelValue": ($event) => filterOperatorModel.value[resolveHeaderKey(header)] = $event,
19194
+ items: getHeaderFilterOperators(header),
19195
+ "item-title": "label",
19196
+ "item-value": "value",
19197
+ density: "compact",
19198
+ variant: "underlined",
19199
+ "hide-details": "",
19200
+ class: "mb-1"
19201
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : createCommentVNode("", true),
19202
+ isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
19203
+ key: 1,
19204
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19205
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19206
+ label: resolveHeaderTitle(header),
19207
+ disabled: isHeaderDisabled(header)
19208
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
19209
+ key: 2,
19210
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19211
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19212
+ label: resolveHeaderTitle(header),
19213
+ items: resolveAutocompleteItems(header, filterModel.value.value),
19214
+ "item-title": resolveAutocompleteItemTitle(header),
19215
+ "item-value": resolveAutocompleteItemValue(header),
19216
+ "return-object": resolveAutocompleteReturnObject(header),
19217
+ multiple: resolveAutocompleteMultiple(header),
19218
+ chips: resolveAutocompleteMultiple(header),
19219
+ "closable-chips": resolveAutocompleteMultiple(header),
19220
+ disabled: isHeaderDisabled(header),
19221
+ clearable: "",
19222
+ variant: "outlined"
19223
+ }, 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, {
19224
+ key: 3,
19225
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19226
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19227
+ label: resolveHeaderTitle(header),
19228
+ disabled: isHeaderDisabled(header)
19229
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
19230
+ key: 4,
19231
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19232
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19233
+ label: resolveHeaderTitle(header),
19234
+ variant: "outlined",
19235
+ disabled: isHeaderDisabled(header),
19236
+ dir: header.dir,
19237
+ "auto-grow": "",
19238
+ rows: "3"
19239
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
19240
+ key: 5,
19241
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19242
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19243
+ label: resolveHeaderTitle(header),
19244
+ type: "boolean",
19245
+ activeColor: "#3bd32a",
19246
+ inactiveColor: "#d32a2a",
19247
+ options: [
19248
+ { value: "true", label: "فعال", icon: unref(IconCheck) },
19249
+ { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
19250
+ ]
19251
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
19252
+ key: 6,
19253
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19254
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19255
+ label: resolveHeaderTitle(header),
19256
+ variant: "outlined",
19257
+ disabled: isHeaderDisabled(header),
19258
+ type: getFieldInputType(header),
19259
+ dir: header.dir
19260
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
19261
+ ], 64)) : createCommentVNode("", true)
19262
+ ]),
19263
+ _: 2
19264
+ }, 1032, ["cols", "md"]);
19265
+ }), 128))
19294
19266
  ]),
19295
19267
  _: 1
19296
- }))
19297
- ]),
19298
- _: 1
19299
- }),
19300
- !props.filterComponent ? (openBlock(), createBlock(VCardActions, { key: 0 }, {
19301
- default: withCtx(() => [
19302
- createVNode(VSpacer),
19303
- createVNode(VBtn, {
19304
- color: "grey",
19305
- variant: "tonal",
19306
- onClick: resetFilter
19307
- }, {
19308
- default: withCtx(() => [..._cache[54] || (_cache[54] = [
19309
- createTextVNode("حذف فیلترها", -1)
19310
- ])]),
19311
- _: 1
19312
- }),
19313
- createVNode(VBtn, {
19314
- color: "primary",
19315
- onClick: applyFilter
19316
- }, {
19317
- default: withCtx(() => [..._cache[55] || (_cache[55] = [
19318
- createTextVNode("اعمال فیلتر", -1)
19319
- ])]),
19320
- _: 1
19321
19268
  })
19322
19269
  ]),
19323
19270
  _: 1
19324
- })) : createCommentVNode("", true)
19271
+ }))
19325
19272
  ]),
19326
- _: 1
19327
- })
19273
+ !props.filterComponent ? (openBlock(), createElementBlock("div", _hoisted_45, [
19274
+ createVNode(VSpacer),
19275
+ createVNode(VBtn, {
19276
+ color: "grey",
19277
+ variant: "tonal",
19278
+ onClick: resetFilter
19279
+ }, {
19280
+ default: withCtx(() => [..._cache[53] || (_cache[53] = [
19281
+ createTextVNode("حذف فیلترها", -1)
19282
+ ])]),
19283
+ _: 1
19284
+ }),
19285
+ createVNode(VBtn, {
19286
+ color: "primary",
19287
+ onClick: applyFilter
19288
+ }, {
19289
+ default: withCtx(() => [..._cache[54] || (_cache[54] = [
19290
+ createTextVNode("اعمال فیلتر", -1)
19291
+ ])]),
19292
+ _: 1
19293
+ })
19294
+ ])) : createCommentVNode("", true)
19295
+ ])
19328
19296
  ]),
19329
19297
  _: 1
19330
19298
  }, 8, ["modelValue"]),
@@ -19334,90 +19302,80 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19334
19302
  "max-width": "800"
19335
19303
  }, {
19336
19304
  default: withCtx(() => [
19337
- createVNode(VCard, null, {
19338
- default: withCtx(() => [
19339
- 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
+ }, {
19340
19342
  default: withCtx(() => [
19341
- createElementVNode("span", null, toDisplayString(previewTitle.value), 1),
19342
- createVNode(VBtn, {
19343
- icon: "",
19344
- variant: "text",
19345
- onClick: _cache[16] || (_cache[16] = ($event) => textPreviewDialog.value = false)
19346
- }, {
19347
- default: withCtx(() => [
19348
- createVNode(VIcon, null, {
19349
- default: withCtx(() => [..._cache[56] || (_cache[56] = [
19350
- createTextVNode("mdi-close", -1)
19351
- ])]),
19352
- _: 1
19353
- })
19354
- ]),
19343
+ createVNode(VIcon, { start: "" }, {
19344
+ default: withCtx(() => [..._cache[57] || (_cache[57] = [
19345
+ createTextVNode("mdi-content-copy", -1)
19346
+ ])]),
19355
19347
  _: 1
19356
- })
19357
- ]),
19358
- _: 1
19359
- }),
19360
- createVNode(VCardText, null, {
19361
- default: withCtx(() => [
19362
- createVNode(VTextarea, {
19363
- "model-value": previewText.value,
19364
- readonly: "",
19365
- "auto-grow": "",
19366
- variant: "outlined",
19367
- rows: "10",
19368
- class: "mb-4"
19369
- }, null, 8, ["model-value"])
19348
+ }),
19349
+ _cache[58] || (_cache[58] = createTextVNode(" کپی متن ", -1))
19370
19350
  ]),
19371
19351
  _: 1
19372
19352
  }),
19373
- createVNode(VCardActions, null, {
19353
+ createVNode(VBtn, {
19354
+ color: "success",
19355
+ onClick: copyCompleteRecord
19356
+ }, {
19374
19357
  default: withCtx(() => [
19375
- createVNode(VSpacer),
19376
- createVNode(VBtn, {
19377
- color: "primary",
19378
- onClick: _cache[17] || (_cache[17] = ($event) => copyToClipboard(previewText.value))
19379
- }, {
19380
- default: withCtx(() => [
19381
- createVNode(VIcon, { start: "" }, {
19382
- default: withCtx(() => [..._cache[57] || (_cache[57] = [
19383
- createTextVNode("mdi-content-copy", -1)
19384
- ])]),
19385
- _: 1
19386
- }),
19387
- _cache[58] || (_cache[58] = createTextVNode(" کپی متن ", -1))
19388
- ]),
19389
- _: 1
19390
- }),
19391
- createVNode(VBtn, {
19392
- color: "success",
19393
- onClick: copyCompleteRecord
19394
- }, {
19395
- default: withCtx(() => [
19396
- createVNode(VIcon, { start: "" }, {
19397
- default: withCtx(() => [..._cache[59] || (_cache[59] = [
19398
- createTextVNode("mdi-content-copy", -1)
19399
- ])]),
19400
- _: 1
19401
- }),
19402
- _cache[60] || (_cache[60] = createTextVNode(" کپی رکورد کامل ", -1))
19403
- ]),
19404
- _: 1
19405
- }),
19406
- createVNode(VBtn, {
19407
- color: "grey",
19408
- onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
19409
- }, {
19410
- default: withCtx(() => [..._cache[61] || (_cache[61] = [
19411
- createTextVNode("بستن", -1)
19358
+ createVNode(VIcon, { start: "" }, {
19359
+ default: withCtx(() => [..._cache[59] || (_cache[59] = [
19360
+ createTextVNode("mdi-content-copy", -1)
19412
19361
  ])]),
19413
19362
  _: 1
19414
- })
19363
+ }),
19364
+ _cache[60] || (_cache[60] = createTextVNode(" کپی رکورد کامل ", -1))
19415
19365
  ]),
19416
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
19417
19376
  })
19418
- ]),
19419
- _: 1
19420
- })
19377
+ ])
19378
+ ])
19421
19379
  ]),
19422
19380
  _: 1
19423
19381
  }, 8, ["modelValue"]),