mooho-base-admin-plus 0.4.14 → 0.4.15

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.
@@ -37359,7 +37359,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37359
37359
  ]);
37360
37360
  }
37361
37361
  var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
37362
- var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-70d42b22]{display:flex}.image-group .image[data-v-70d42b22]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-70d42b22]{width:75px;height:75px}\n")();
37362
+ var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-f34c0fe4]{display:flex}.image-group .image[data-v-f34c0fe4]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-f34c0fe4]{width:75px;height:75px}\n")();
37363
37363
  var getColumns = (view, item) => {
37364
37364
  let children = view.viewColumns.filter((i2) => {
37365
37365
  return i2.parentCode == item.code;
@@ -38900,8 +38900,19 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38900
38900
  placeholder: column.description,
38901
38901
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column),
38902
38902
  onOnBlur: ($event) => $options.onBlur($options.rowData(row, index2), column)
38903
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "pattern", "placeholder", "onOnChange", "onOnBlur"])) : column.controlType === "NumberInput" ? (openBlock(), createBlock(_component_Input, {
38903
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "pattern", "placeholder", "onOnChange", "onOnBlur"])) : column.controlType === "TextArea" ? (openBlock(), createBlock(_component_Input, {
38904
38904
  key: 4,
38905
+ type: "textarea",
38906
+ size: "small",
38907
+ "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
38908
+ "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
38909
+ readonly: $options.isReadonly($options.rowData(row, index2), column),
38910
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth - 36 + "px" }),
38911
+ rows: column.controlHeight / 20,
38912
+ maxlength: column.maxLength,
38913
+ placeholder: column.description
38914
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "rows", "maxlength", "placeholder"])) : column.controlType === "NumberInput" ? (openBlock(), createBlock(_component_Input, {
38915
+ key: 5,
38905
38916
  type: "number",
38906
38917
  size: "small",
38907
38918
  number: "",
@@ -38913,7 +38924,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38913
38924
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column),
38914
38925
  onOnBlur: ($event) => $options.onBlur($options.rowData(row, index2), column)
38915
38926
  }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "placeholder", "onOnChange", "onOnBlur"])) : column.controlType === "Select" ? (openBlock(), createBlock(_component_Select, {
38916
- key: 5,
38927
+ key: 6,
38917
38928
  size: "small",
38918
38929
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
38919
38930
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
@@ -38939,7 +38950,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38939
38950
  ]),
38940
38951
  _: 2
38941
38952
  }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiSelect" ? (openBlock(), createBlock(_component_Select, {
38942
- key: 6,
38953
+ key: 7,
38943
38954
  size: "small",
38944
38955
  "model-value": _ctx.parseArrayData($options.rowData(row, index2), column.code),
38945
38956
  "onUpdate:modelValue": ($event) => _ctx.setArrayData($options.rowData(row, index2), column.code, $event),
@@ -38966,7 +38977,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38966
38977
  ]),
38967
38978
  _: 2
38968
38979
  }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "ComboSelect" ? (openBlock(), createBlock(_component_Select, {
38969
- key: 7,
38980
+ key: 8,
38970
38981
  size: "small",
38971
38982
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
38972
38983
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
@@ -38993,7 +39004,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38993
39004
  ]),
38994
39005
  _: 2
38995
39006
  }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "DialogSelect" ? (openBlock(), createBlock(_component_dialog_select, {
38996
- key: 8,
39007
+ key: 9,
38997
39008
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
38998
39009
  size: "small",
38999
39010
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
@@ -39005,7 +39016,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39005
39016
  controlWidth: column.controlWidth,
39006
39017
  onOnChange: (selected) => $options.onSelectDataChange($options.rowData(row, index2), column, selected)
39007
39018
  }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "MultiDialogSelect" ? (openBlock(), createBlock(_component_dialog_select, {
39008
- key: 9,
39019
+ key: 10,
39009
39020
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
39010
39021
  size: "small",
39011
39022
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
@@ -39018,7 +39029,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39018
39029
  controlWidth: column.controlWidth,
39019
39030
  onOnChange: (selected) => $options.onSelectDataChange($options.rowData(row, index2), column, selected)
39020
39031
  }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" ? (openBlock(), createBlock(_component_DatePicker, {
39021
- key: 10,
39032
+ key: 11,
39022
39033
  size: "small",
39023
39034
  type: column.controlType.toLowerCase(),
39024
39035
  "model-value": _ctx.parseDateTimeData($options.rowData(row, index2), column.code),
@@ -39029,7 +39040,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39029
39040
  transfer: true,
39030
39041
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
39031
39042
  }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
39032
- key: 11,
39043
+ key: 12,
39033
39044
  size: "small",
39034
39045
  type: column.controlType.toLowerCase(),
39035
39046
  "model-value": _ctx.parseDateRangeData($options.rowData(row, index2), column.code),
@@ -39040,7 +39051,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39040
39051
  transfer: true,
39041
39052
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
39042
39053
  }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
39043
- key: 12,
39054
+ key: 13,
39044
39055
  size: "small",
39045
39056
  type: "time",
39046
39057
  "model-value": _ctx.parseDateTimeData($options.rowData(row, index2), column.code),
@@ -39051,19 +39062,19 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39051
39062
  transfer: true,
39052
39063
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
39053
39064
  }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Check" ? (openBlock(), createBlock(_component_Checkbox, {
39054
- key: 13,
39065
+ key: 14,
39055
39066
  "model-value": !!_ctx.parseData($options.rowData(row, index2), column.code),
39056
39067
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
39057
39068
  disabled: $options.isReadonly($options.rowData(row, index2), column),
39058
39069
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
39059
39070
  }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])) : column.controlType === "Switch" ? (openBlock(), createBlock(_component_Switch, {
39060
- key: 14,
39071
+ key: 15,
39061
39072
  "model-value": !!_ctx.parseData($options.rowData(row, index2), column.code),
39062
39073
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
39063
39074
  disabled: $options.isReadonly($options.rowData(row, index2), column),
39064
39075
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
39065
39076
  }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])) : column.controlType === "Radio" ? (openBlock(), createBlock(_component_RadioGroup, {
39066
- key: 15,
39077
+ key: 16,
39067
39078
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
39068
39079
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
39069
39080
  onOnChange: (selected) => $options.onSelectDataChange($options.rowData(row, index2), column, selected)
@@ -39084,7 +39095,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39084
39095
  ]),
39085
39096
  _: 2
39086
39097
  }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "CheckGroup" ? (openBlock(), createBlock(_component_CheckboxGroup, {
39087
- key: 16,
39098
+ key: 17,
39088
39099
  "model-value": _ctx.parseArrayData($options.rowData(row, index2), column.code),
39089
39100
  "onUpdate:modelValue": ($event) => _ctx.setArrayData($options.rowData(row, index2), column.code, $event),
39090
39101
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
@@ -39104,7 +39115,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39104
39115
  }), 128))
39105
39116
  ]),
39106
39117
  _: 2
39107
- }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "Attachment" ? (openBlock(), createElementBlock(Fragment, { key: 17 }, [
39118
+ }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "Attachment" ? (openBlock(), createElementBlock(Fragment, { key: 18 }, [
39108
39119
  !!(_ctx.parseData($options.rowData(row, index2), column.code) || "").trim() ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(JSON.parse(_ctx.parseData(row, column.code)), (attachment, attachmentIndex) => {
39109
39120
  return openBlock(), createElementBlock("a", {
39110
39121
  href: _ctx.getAttachmentUrl(attachment.file, attachment.name),
@@ -39117,7 +39128,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39117
39128
  ], 8, _hoisted_6$3);
39118
39129
  }), 128)) : createCommentVNode("", true)
39119
39130
  ], 64)) : column.controlType === "Image" ? (openBlock(), createElementBlock("div", {
39120
- key: 18,
39131
+ key: 19,
39121
39132
  class: "image-group",
39122
39133
  style: normalizeStyle$1({ "justify-content": column.align ? column.align.toLowerCase() : "center" })
39123
39134
  }, [
@@ -39133,7 +39144,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39133
39144
  }, null, 8, _hoisted_8$3)) : createCommentVNode("", true)
39134
39145
  ]);
39135
39146
  }), 128))
39136
- ], 4)) : column.controlType === "Slider" ? (openBlock(), createElementBlock(Fragment, { key: 19 }, [
39147
+ ], 4)) : column.controlType === "Slider" ? (openBlock(), createElementBlock(Fragment, { key: 20 }, [
39137
39148
  createVNode$1(_component_Slider, {
39138
39149
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
39139
39150
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
@@ -39160,7 +39171,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39160
39171
  style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
39161
39172
  placeholder: column.description
39162
39173
  }, null, 8, ["model-value", "style", "placeholder"])) : createCommentVNode("", true)
39163
- ], 64)) : column.controlType === "Placeholder" ? (openBlock(), createElementBlock(Fragment, { key: 20 }, [], 64)) : (openBlock(), createElementBlock(Fragment, { key: 21 }, [
39174
+ ], 64)) : column.controlType === "Placeholder" ? (openBlock(), createElementBlock(Fragment, { key: 21 }, [], 64)) : (openBlock(), createElementBlock(Fragment, { key: 22 }, [
39164
39175
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Label_Control_Type_Not_Supported")) + " " + toDisplayString$1(column.controlType), 1)
39165
39176
  ], 64))
39166
39177
  ], 64)) : createCommentVNode("", true)
@@ -39346,7 +39357,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39346
39357
  ], 2)
39347
39358
  ], 2);
39348
39359
  }
39349
- var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-70d42b22"]]);
39360
+ var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-f34c0fe4"]]);
39350
39361
  const _sfc_main$p = {
39351
39362
  mixins: [mixinPage],
39352
39363
  components: { columnSelect, columnEdit },