liyu-pc-base 1.0.435 → 1.0.439

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.
Files changed (32) hide show
  1. package/dist/{FieldRender-Ds_QtqKD.js → FieldRender-B3QVnrRu.js} +1 -1
  2. package/dist/{FieldRender-Ds_QtqKD.js.map → FieldRender-B3QVnrRu.js.map} +1 -1
  3. package/dist/FieldRender-BzC-qjUX.js +2 -0
  4. package/dist/{FieldRender2-DHY0ICJK.js → FieldRender2-DkGfLieA.js} +117 -127
  5. package/dist/FieldRender2-DkGfLieA.js.map +1 -0
  6. package/dist/{FormRender3-BPhDGwhF.js → FormRender3-CrmCjMyc.js} +7 -16
  7. package/dist/FormRender3-CrmCjMyc.js.map +1 -0
  8. package/dist/FormRender3-N2CRX2mS.js +2 -0
  9. package/dist/{RemoteSelectPro-DJC3JXiQ.js → RemoteSelectPro-GSue_FlD.js} +60 -69
  10. package/dist/RemoteSelectPro-GSue_FlD.js.map +1 -0
  11. package/dist/{SearchRender-BWcOPC54.js → SearchRender-BtN6XmuS.js} +1 -1
  12. package/dist/{SearchRender-BWcOPC54.js.map → SearchRender-BtN6XmuS.js.map} +1 -1
  13. package/dist/SearchRender-C2Tvm9gB.js +2 -0
  14. package/dist/{TinymceEditor-Da1VLyy-.js → TinymceEditor-CNudLJhZ.js} +3 -9
  15. package/dist/TinymceEditor-CNudLJhZ.js.map +1 -0
  16. package/dist/components/index.js +7 -7
  17. package/dist/index.js +1 -1
  18. package/dist/liyu-pc-base.css +1 -1
  19. package/dist/{tableModal-C4CzR3Jr.js → tableModal-D1CsJZ7b.js} +6 -6
  20. package/dist/{tableModal-C4CzR3Jr.js.map → tableModal-D1CsJZ7b.js.map} +1 -1
  21. package/dist/tablePro-BXmVgq2k.js +2 -0
  22. package/dist/{tablePro-BYIW028a.js → tablePro-JWNX4m8j.js} +2 -2
  23. package/dist/{tablePro-BYIW028a.js.map → tablePro-JWNX4m8j.js.map} +1 -1
  24. package/package.json +1 -1
  25. package/dist/FieldRender-SVmUCvTe.js +0 -2
  26. package/dist/FieldRender2-DHY0ICJK.js.map +0 -1
  27. package/dist/FormRender3-BPhDGwhF.js.map +0 -1
  28. package/dist/FormRender3-CnwkCg5U.js +0 -2
  29. package/dist/RemoteSelectPro-DJC3JXiQ.js.map +0 -1
  30. package/dist/SearchRender-BOd8P7OK.js +0 -2
  31. package/dist/TinymceEditor-Da1VLyy-.js.map +0 -1
  32. package/dist/tablePro-OkI6nALn.js +0 -2
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-D3hKq4w_.js";
2
2
  import { s as t } from "./function-CCxDERgN.js";
3
- import { d as n } from "./TinymceEditor-Da1VLyy-.js";
4
- import { t as r } from "./FieldRender2-DHY0ICJK.js";
3
+ import { d as n } from "./TinymceEditor-CNudLJhZ.js";
4
+ import { t as r } from "./FieldRender2-DkGfLieA.js";
5
5
  import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, openBlock as f, reactive as p, ref as m, renderList as h, resolveComponent as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
6
6
  import { message as b } from "ant-design-vue";
7
7
  //#region src/components/FormRender/FieldCol.vue?vue&type=script&lang.ts
@@ -38,14 +38,8 @@ var x = d({
38
38
  type: Object,
39
39
  default: null
40
40
  },
41
- innerModel: {
42
- type: Object,
43
- default: null
44
- },
45
- globalInnerModel: {
46
- type: Object,
47
- default: null
48
- },
41
+ innerModel: { default: null },
42
+ globalInnerModel: { default: null },
49
43
  nestValidate: {
50
44
  type: Object,
51
45
  default: null
@@ -136,7 +130,7 @@ function S(e, t, n, r, i, o) {
136
130
  var C = d({
137
131
  name: "FormRender3",
138
132
  components: {
139
- FieldCol: /* @__PURE__ */ e(x, [["render", S], ["__scopeId", "data-v-773f28af"]]),
133
+ FieldCol: /* @__PURE__ */ e(x, [["render", S], ["__scopeId", "data-v-bd6bf9b4"]]),
140
134
  debugCode: n
141
135
  },
142
136
  props: {
@@ -173,10 +167,7 @@ var C = d({
173
167
  type: Object,
174
168
  default: null
175
169
  },
176
- globalInnerModel: {
177
- type: Object,
178
- default: null
179
- },
170
+ globalInnerModel: { default: null },
180
171
  nestValidate: {
181
172
  type: Object,
182
173
  default: null
@@ -319,6 +310,6 @@ function T(e, t, n, r, d, p) {
319
310
  "layout"
320
311
  ]);
321
312
  }
322
- var E = /* @__PURE__ */ e(C, [["render", T], ["__scopeId", "data-v-30d39b5e"]]);
313
+ var E = /* @__PURE__ */ e(C, [["render", T], ["__scopeId", "data-v-823e4644"]]);
323
314
  //#endregion
324
315
  export { E as t };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormRender3-CrmCjMyc.js","names":[],"sources":["../src/components/FormRender/FieldCol.vue","../src/components/FormRender/FieldCol.vue","../src/components/FormRender/FormRender3.vue","../src/components/FormRender/FormRender3.vue"],"sourcesContent":["<template>\n <a-col\n :span=\"is_show_field ? (field_item.span !== undefined ? field_item.span : 24) : 0\"\n :offset=\"field_item.offset\"\n :push=\"field_item.push\"\n :pull=\"field_item.pull\"\n >\n <field-render-2\n v-model:value=\"model[field_item.name]\"\n v-model:label=\"model[field_item.name + '.label']\"\n v-model:is_show_field=\"is_show_field\"\n :field=\"field_item\"\n :formModel=\"model\"\n :outModel=\"outModel\"\n :key=\"field_item.name\"\n :validateInfos=\"validateInfos\"\n :options=\"options[field_item.datasource ? field_item.datasource : field_item.name]\"\n :alwaysShowGroup=\"alwaysShowGroup\"\n :context=\"context\"\n :inner-model=\"innerModel\"\n :global-inner-model=\"globalInnerModel\"\n :nestValidate=\"nestValidate\"\n :base-key-path=\"baseKeyPath\"\n :worker-host-functions=\"workerHostFunctions\"\n @update_model=\"onUpdateModel\"\n @update_name2=\"onUpdateName2\"\n />\n </a-col>\n</template>\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue';\nimport FieldRender2 from 'liyu-pc-base/components/FormRender/FieldRender2.vue';\n\nexport default defineComponent({\n name: 'FieldCol',\n components: {\n FieldRender2,\n },\n props: {\n model: {\n type: Object,\n required: true,\n },\n outModel: {\n type: Object,\n default: () => {},\n },\n options: {\n type: Object,\n required: true,\n default: () => {},\n },\n validateInfos: {\n type: Object,\n default: () => {},\n },\n alwaysShowGroup: {\n type: Boolean,\n default: false,\n },\n field_item: {\n type: Object,\n default: () => {},\n },\n context: {\n type: Object,\n default: null,\n },\n innerModel: {\n default: null,\n },\n globalInnerModel: {\n default: null,\n },\n nestValidate: {\n type: Object as PropType<Record<string, any> | null>,\n default: null,\n },\n baseKeyPath: {\n type: Array,\n default: () => [],\n },\n workerHostFunctions: {\n type: Object,\n default: () => {},\n },\n },\n emits: ['update_model', 'update_name2'],\n setup(props, { emit }) {\n const is_show_field = ref(true);\n const onUpdateModel = params => {\n emit('update_model', params);\n };\n const onUpdateName2 = params => {\n emit('update_name2', params);\n };\n return { is_show_field, onUpdateModel, onUpdateName2 };\n },\n});\n</script>\n<style lang=\"less\" scoped>\n.cards {\n ::v-deep(.ant-card-head) {\n padding: 0 8px;\n min-height: 44px;\n background-color: rgba(0, 0, 0, 0.02);\n }\n}\n</style>\n","<template>\n <a-col\n :span=\"is_show_field ? (field_item.span !== undefined ? field_item.span : 24) : 0\"\n :offset=\"field_item.offset\"\n :push=\"field_item.push\"\n :pull=\"field_item.pull\"\n >\n <field-render-2\n v-model:value=\"model[field_item.name]\"\n v-model:label=\"model[field_item.name + '.label']\"\n v-model:is_show_field=\"is_show_field\"\n :field=\"field_item\"\n :formModel=\"model\"\n :outModel=\"outModel\"\n :key=\"field_item.name\"\n :validateInfos=\"validateInfos\"\n :options=\"options[field_item.datasource ? field_item.datasource : field_item.name]\"\n :alwaysShowGroup=\"alwaysShowGroup\"\n :context=\"context\"\n :inner-model=\"innerModel\"\n :global-inner-model=\"globalInnerModel\"\n :nestValidate=\"nestValidate\"\n :base-key-path=\"baseKeyPath\"\n :worker-host-functions=\"workerHostFunctions\"\n @update_model=\"onUpdateModel\"\n @update_name2=\"onUpdateName2\"\n />\n </a-col>\n</template>\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue';\nimport FieldRender2 from 'liyu-pc-base/components/FormRender/FieldRender2.vue';\n\nexport default defineComponent({\n name: 'FieldCol',\n components: {\n FieldRender2,\n },\n props: {\n model: {\n type: Object,\n required: true,\n },\n outModel: {\n type: Object,\n default: () => {},\n },\n options: {\n type: Object,\n required: true,\n default: () => {},\n },\n validateInfos: {\n type: Object,\n default: () => {},\n },\n alwaysShowGroup: {\n type: Boolean,\n default: false,\n },\n field_item: {\n type: Object,\n default: () => {},\n },\n context: {\n type: Object,\n default: null,\n },\n innerModel: {\n default: null,\n },\n globalInnerModel: {\n default: null,\n },\n nestValidate: {\n type: Object as PropType<Record<string, any> | null>,\n default: null,\n },\n baseKeyPath: {\n type: Array,\n default: () => [],\n },\n workerHostFunctions: {\n type: Object,\n default: () => {},\n },\n },\n emits: ['update_model', 'update_name2'],\n setup(props, { emit }) {\n const is_show_field = ref(true);\n const onUpdateModel = params => {\n emit('update_model', params);\n };\n const onUpdateName2 = params => {\n emit('update_name2', params);\n };\n return { is_show_field, onUpdateModel, onUpdateName2 };\n },\n});\n</script>\n<style lang=\"less\" scoped>\n.cards {\n ::v-deep(.ant-card-head) {\n padding: 0 8px;\n min-height: 44px;\n background-color: rgba(0, 0, 0, 0.02);\n }\n}\n</style>\n","<template>\n <a-form\n autocomplete=\"off\"\n :model=\"model\"\n :rules=\"form.rules\"\n :layout=\"form.settings.layout\"\n scrollToFirstError\n class=\"cards\"\n :validateTrigger=\"false\"\n >\n <template\n v-for=\"(row, index) in form.dynamicFieldList\"\n :key=\"index\"\n >\n <a-card\n :body-style=\"{ padding: '10px 10px 0' }\"\n style=\"margin-bottom: 5px\"\n >\n <template\n v-if=\"row.group_name && (form.dynamicFieldList.length > 1 || alwaysShowGroup)\"\n #title\n >\n {{ row.group_name }}\n </template>\n <template #extra>\n <div\n class=\"group-custom-btn-list\"\n v-if=\"row.custom_btn_list && row.custom_btn_list.length > 0\"\n >\n <template v-for=\"btn in row.custom_btn_list\">\n <debug-code\n :action_code_id=\"btn.action_code_id\"\n v-model:code=\"btn.code\"\n >\n <a-button\n size=\"small\"\n :type=\"btn.type\"\n :danger=\"btn.danger\"\n @click=\"handleCustomBtnClick(btn)\"\n >\n {{ btn.label }}\n </a-button>\n </debug-code>\n </template>\n </div>\n </template>\n <a-row\n :gutter=\"5\"\n type=\"flex\"\n >\n <field-col\n v-for=\"(field_item, i) in row?.children\"\n :key=\"i\"\n :model=\"model\"\n :out-model=\"outModel\"\n :options=\"options\"\n :validate-infos=\"validateInfos\"\n :always-show-group=\"alwaysShowGroup\"\n :field_item=\"field_item\"\n :context=\"context\"\n :inner-model=\"_innerModel\"\n :global-inner-model=\"_globalInnerModel\"\n :nestValidate=\"nestValidate\"\n :base-key-path=\"baseKeyPath\"\n :worker-host-functions=\"workerHostFunctions\"\n @update_model=\"onUpdateModel\"\n @update_name2=\"onUpdateName2\"\n ></field-col>\n </a-row>\n </a-card>\n </template>\n </a-form>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, watch, reactive, PropType } from 'vue';\nimport FieldCol from './FieldCol.vue';\nimport { executeScriptInWorker } from 'liyu-pc-base/utils/function';\nimport { message } from 'ant-design-vue';\nimport debugCode from 'liyu-pc-base/components/FormRender/debugCode.vue';\n\nexport default defineComponent({\n name: 'FormRender3',\n components: {\n FieldCol,\n debugCode,\n },\n props: {\n model: {\n type: Object,\n required: true,\n },\n outModel: {\n type: Object,\n default: () => {},\n },\n form: {\n type: Object,\n required: true,\n },\n options: {\n type: Object,\n required: true,\n default: () => {},\n },\n validateInfos: {\n type: Object,\n default: () => {},\n },\n alwaysShowGroup: {\n type: Boolean,\n default: false,\n },\n context: {\n type: Object,\n default: null,\n },\n innerModel: {\n type: Object,\n default: null,\n },\n globalInnerModel: {\n default: null,\n },\n nestValidate: {\n type: Object as PropType<Record<string, any> | null>,\n default: null,\n },\n baseKeyPath: {\n type: Array,\n default: () => [],\n },\n workerHostFunctions: {\n type: Object,\n default: () => {},\n },\n },\n emits: ['update_model'],\n setup(props, { emit }) {\n // 解决传入非响应式数据时,动态增加is_show_field无用正常相应问题\n if (props.form.watch) {\n for (let k in props.form.watch) {\n watch(\n () => props.model[k],\n () => {\n props.form.watch[k](props.model, props.form);\n },\n );\n }\n }\n const _globalInnerModel = props.globalInnerModel || reactive({});\n const _innerModel = props.innerModel || _globalInnerModel;\n\n const validate = () => {\n return (props.form as any).validate();\n };\n const onUpdateModel = params => {\n emit('update_model', params);\n };\n const onUpdateName2 = params => {\n emit('update_model', params);\n };\n const handleCustomBtnClick = async btn => {\n if (btn.code) {\n let res;\n try {\n res = await executeScriptInWorker(\n btn.code,\n {\n context: props.context,\n formModel: props.model,\n keyPath: [...props.baseKeyPath, btn.group_name],\n },\n props.workerHostFunctions || {},\n );\n } catch (e) {\n message.error(e.message);\n return;\n }\n if (res) {\n Object.assign(props.model, res);\n }\n }\n };\n return {\n validate,\n onUpdateModel,\n onUpdateName2,\n _globalInnerModel,\n _innerModel,\n handleCustomBtnClick,\n };\n },\n});\n</script>\n\n<style lang=\"less\" scoped>\n.cards {\n ::v-deep(.ant-card-head) {\n padding: 0 8px;\n min-height: 44px;\n background-color: rgba(0, 0, 0, 0.02);\n }\n}\n.group-custom-btn-list {\n display: inline-flex;\n gap: 5px;\n flex-wrap: wrap;\n margin-right: 2px;\n}\n</style>\n","<template>\n <a-form\n autocomplete=\"off\"\n :model=\"model\"\n :rules=\"form.rules\"\n :layout=\"form.settings.layout\"\n scrollToFirstError\n class=\"cards\"\n :validateTrigger=\"false\"\n >\n <template\n v-for=\"(row, index) in form.dynamicFieldList\"\n :key=\"index\"\n >\n <a-card\n :body-style=\"{ padding: '10px 10px 0' }\"\n style=\"margin-bottom: 5px\"\n >\n <template\n v-if=\"row.group_name && (form.dynamicFieldList.length > 1 || alwaysShowGroup)\"\n #title\n >\n {{ row.group_name }}\n </template>\n <template #extra>\n <div\n class=\"group-custom-btn-list\"\n v-if=\"row.custom_btn_list && row.custom_btn_list.length > 0\"\n >\n <template v-for=\"btn in row.custom_btn_list\">\n <debug-code\n :action_code_id=\"btn.action_code_id\"\n v-model:code=\"btn.code\"\n >\n <a-button\n size=\"small\"\n :type=\"btn.type\"\n :danger=\"btn.danger\"\n @click=\"handleCustomBtnClick(btn)\"\n >\n {{ btn.label }}\n </a-button>\n </debug-code>\n </template>\n </div>\n </template>\n <a-row\n :gutter=\"5\"\n type=\"flex\"\n >\n <field-col\n v-for=\"(field_item, i) in row?.children\"\n :key=\"i\"\n :model=\"model\"\n :out-model=\"outModel\"\n :options=\"options\"\n :validate-infos=\"validateInfos\"\n :always-show-group=\"alwaysShowGroup\"\n :field_item=\"field_item\"\n :context=\"context\"\n :inner-model=\"_innerModel\"\n :global-inner-model=\"_globalInnerModel\"\n :nestValidate=\"nestValidate\"\n :base-key-path=\"baseKeyPath\"\n :worker-host-functions=\"workerHostFunctions\"\n @update_model=\"onUpdateModel\"\n @update_name2=\"onUpdateName2\"\n ></field-col>\n </a-row>\n </a-card>\n </template>\n </a-form>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, watch, reactive, PropType } from 'vue';\nimport FieldCol from './FieldCol.vue';\nimport { executeScriptInWorker } from 'liyu-pc-base/utils/function';\nimport { message } from 'ant-design-vue';\nimport debugCode from 'liyu-pc-base/components/FormRender/debugCode.vue';\n\nexport default defineComponent({\n name: 'FormRender3',\n components: {\n FieldCol,\n debugCode,\n },\n props: {\n model: {\n type: Object,\n required: true,\n },\n outModel: {\n type: Object,\n default: () => {},\n },\n form: {\n type: Object,\n required: true,\n },\n options: {\n type: Object,\n required: true,\n default: () => {},\n },\n validateInfos: {\n type: Object,\n default: () => {},\n },\n alwaysShowGroup: {\n type: Boolean,\n default: false,\n },\n context: {\n type: Object,\n default: null,\n },\n innerModel: {\n type: Object,\n default: null,\n },\n globalInnerModel: {\n default: null,\n },\n nestValidate: {\n type: Object as PropType<Record<string, any> | null>,\n default: null,\n },\n baseKeyPath: {\n type: Array,\n default: () => [],\n },\n workerHostFunctions: {\n type: Object,\n default: () => {},\n },\n },\n emits: ['update_model'],\n setup(props, { emit }) {\n // 解决传入非响应式数据时,动态增加is_show_field无用正常相应问题\n if (props.form.watch) {\n for (let k in props.form.watch) {\n watch(\n () => props.model[k],\n () => {\n props.form.watch[k](props.model, props.form);\n },\n );\n }\n }\n const _globalInnerModel = props.globalInnerModel || reactive({});\n const _innerModel = props.innerModel || _globalInnerModel;\n\n const validate = () => {\n return (props.form as any).validate();\n };\n const onUpdateModel = params => {\n emit('update_model', params);\n };\n const onUpdateName2 = params => {\n emit('update_model', params);\n };\n const handleCustomBtnClick = async btn => {\n if (btn.code) {\n let res;\n try {\n res = await executeScriptInWorker(\n btn.code,\n {\n context: props.context,\n formModel: props.model,\n keyPath: [...props.baseKeyPath, btn.group_name],\n },\n props.workerHostFunctions || {},\n );\n } catch (e) {\n message.error(e.message);\n return;\n }\n if (res) {\n Object.assign(props.model, res);\n }\n }\n };\n return {\n validate,\n onUpdateModel,\n onUpdateName2,\n _globalInnerModel,\n _innerModel,\n handleCustomBtnClick,\n };\n },\n});\n</script>\n\n<style lang=\"less\" scoped>\n.cards {\n ::v-deep(.ant-card-head) {\n padding: 0 8px;\n min-height: 44px;\n background-color: rgba(0, 0, 0, 0.02);\n }\n}\n.group-custom-btn-list {\n display: inline-flex;\n gap: 5px;\n flex-wrap: wrap;\n margin-right: 2px;\n}\n</style>\n"],"mappings":";;;;;;;AAiCA,IAAA,IAAe,EAAgB;CAC7B,MAAM;CACN,YAAY,EACV,cAAA,GACD;CACD,OAAO;EACL,OAAO;GACL,MAAM;GACN,UAAU;GACX;EACD,UAAU;GACR,MAAM;GACN,eAAe;GAChB;EACD,SAAS;GACP,MAAM;GACN,UAAU;GACV,eAAe;GAChB;EACD,eAAe;GACb,MAAM;GACN,eAAe;GAChB;EACD,iBAAiB;GACf,MAAM;GACN,SAAS;GACV;EACD,YAAY;GACV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A;IArBL,QAAQ;IACT,MAAK;;IAhDf,SAAA,QAmDoD,EAAA,EAAA,GAAA,EAD1C,EAiBa,GAAA,MAnEvB,EAmDsC,GAAK,WAAvB,GAAY,YADtB,EAiBa,GAAA;KAfV,KAAK;KACL,OAAO,EAAA;KACP,aAAW,EAAA;KACX,SAAS,EAAA;KACT,kBAAgB,EAAA;KAChB,qBAAmB,EAAA;KACP;KACZ,SAAS,EAAA;KACT,eAAa,EAAA;KACb,sBAAoB,EAAA;KACpB,cAAc,EAAA;KACd,iBAAe,EAAA;KACf,yBAAuB,EAAA;KACvB,gBAAc,EAAA;KACd,gBAAc,EAAA;;;;;;;;;;;;;;;;;IAlE3B,GAAA;;GAAA,GAAA;MAmBgB,EAAI,eAAe,EAAA,KAAK,iBAAiB,SAAM,KAAQ,EAAA,mBAAA;GAnBvE,MAoBW;GApBX,IAAA,QAsB8B,CAtB9B,EAAA,EAsBa,EAAI,WAAU,EAAA,EAAA,CAAA,CAAA;GAtB3B,KAAA;MAAA,KAAA,EAAA,CAAA,EAAA,KAAA;EAAA,GAAA"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./FormRender3-CrmCjMyc.js";
2
+ export { e as default };
@@ -434,14 +434,8 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
434
434
  type: Boolean,
435
435
  default: () => !1
436
436
  },
437
- innerModel: {
438
- type: Object,
439
- default: null
440
- },
441
- globalInnerModel: {
442
- type: Object,
443
- default: null
444
- },
437
+ innerModel: { default: null },
438
+ globalInnerModel: { default: null },
445
439
  context: {
446
440
  type: Object,
447
441
  default: null
@@ -483,8 +477,8 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
483
477
  function m(e, t) {
484
478
  return t.split(".").reduce((e, t) => e?.[t], e);
485
479
  }
486
- let h = () => {
487
- let t = [], n = [[{
480
+ let h = (t = !0) => {
481
+ let n = [], r = [[{
488
482
  searchType: 3,
489
483
  field_name: "is_active",
490
484
  operator: "eq",
@@ -492,18 +486,18 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
492
486
  format: "choices",
493
487
  class_name: "bool"
494
488
  }]];
495
- if (e.field.searchConditions && (n = e.field.searchConditions), n.forEach((n) => {
489
+ if (e.field.searchConditions && (r = e.field.searchConditions), r.forEach((t) => {
496
490
  let r = [];
497
- n.forEach((t) => {
491
+ t.forEach((t) => {
498
492
  t.searchType === 1 ? Object.keys(e.outModel ? e.outModel : e.formModel).forEach((n) => {
499
493
  t.select_name == n && p((e.outModel ? e.outModel : e.formModel)[n], r, t);
500
494
  }) : t.searchType === 2 ? Object.keys(e.formModel).forEach((n) => {
501
495
  t.select_name == n && p(e.formModel[n], r, t);
502
496
  }) : t.searchType === 3 ? p(t.value, r, t) : t.searchType === 4 ? p(m(e.context, t.select_name), r, t) : p(t.value, r, t);
503
- }), t.push(r);
504
- }), u.value) if (v.pageSize = 50, e?.labelKeyList && e?.labelKeyList?.length > 0) e.labelKeyList.forEach((e, n) => {
505
- let r = t[n];
506
- r || (r = [], t[n] = r), r.push({
497
+ }), n.push(r);
498
+ }), u.value && t) if (v.pageSize = 50, e?.labelKeyList && e?.labelKeyList?.length > 0) e.labelKeyList.forEach((e, t) => {
499
+ let r = n[t];
500
+ r || (r = [], n[t] = r), r.push({
507
501
  field_name: e,
508
502
  operator: "icontains",
509
503
  format: "input",
@@ -511,38 +505,38 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
511
505
  class_name: "str"
512
506
  });
513
507
  });
514
- else if (t.length === 0) t.push([{
508
+ else if (n.length === 0) n.push([{
515
509
  field_name: x(),
516
510
  operator: "icontains",
517
511
  format: "input",
518
512
  value: [u.value],
519
513
  class_name: "str"
520
514
  }]);
521
- else for (let e of t) e.push({
515
+ else for (let e of n) e.push({
522
516
  field_name: x(),
523
517
  operator: "icontains",
524
518
  format: "input",
525
519
  value: [u.value],
526
520
  class_name: "str"
527
521
  });
528
- return t;
529
- }, g = () => {
530
- let t = {};
531
- return e.field.simpleSearchConditions && e.field.simpleSearchConditions.forEach((n) => {
532
- n.searchType === 1 ? Object.keys(e.outModel ? e.outModel : e.formModel).forEach((r) => {
533
- if (n.select_name == r) {
522
+ return n;
523
+ }, g = (t = !0) => {
524
+ let n = {};
525
+ return e.field.simpleSearchConditions && e.field.simpleSearchConditions.forEach((t) => {
526
+ t.searchType === 1 ? Object.keys(e.outModel ? e.outModel : e.formModel).forEach((r) => {
527
+ if (t.select_name == r) {
534
528
  let i = (e.outModel ? e.outModel : e.formModel)[r];
535
- t[n.field_name] = i;
529
+ n[t.field_name] = i;
536
530
  }
537
- }) : n.searchType === 2 ? Object.keys(e.formModel).forEach((r) => {
538
- if (n.select_name == r) {
531
+ }) : t.searchType === 2 ? Object.keys(e.formModel).forEach((r) => {
532
+ if (t.select_name == r) {
539
533
  let i = e.formModel[r];
540
- t[n.field_name] = i;
534
+ n[t.field_name] = i;
541
535
  }
542
- }) : n.searchType === 3 ? t[n.field_name] = n.value : n.searchType === 4 && (t[n.field_name] = m(e.context, n.select_name));
543
- }), u.value && (e?.labelKeyList && e?.labelKeyList?.length > 0 ? e.labelKeyList.forEach((e, n) => {
544
- t[e] = u.value;
545
- }) : t[x()] = u.value), t;
536
+ }) : t.searchType === 3 ? n[t.field_name] = t.value : t.searchType === 4 && (n[t.field_name] = m(e.context, t.select_name));
537
+ }), u.value && t && (e?.labelKeyList && e?.labelKeyList?.length > 0 ? e.labelKeyList.forEach((e, t) => {
538
+ n[e] = u.value;
539
+ }) : n[x()] = u.value), n;
546
540
  }, v = {
547
541
  current: 1,
548
542
  pageSize: 200,
@@ -601,12 +595,10 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
601
595
  let t = i.datasource.filter((e) => w(e[y()]));
602
596
  e.innerModel && (e.innerModel[e.field.name] = t);
603
597
  }
604
- };
598
+ }, j = {};
605
599
  L(() => [e.formModel, e.context], () => {
606
- let t = JSON.stringify(v);
607
- e.field.queryType === "simple" ? v.simpleSearchParams = g() : v.conditions = h(), e.init_watch && Object.keys(e.init_watch).forEach((t) => {
608
- v[e.init_watch[t]] = e.formModel[t];
609
- }), t != JSON.stringify(v) && (U(), G());
600
+ let e = U(!1);
601
+ V(j, e) || (j = e, G(!0));
610
602
  }, { deep: !0 }), L(() => e.formModel[e.field.name], () => {
611
603
  if (e.field.mode === "default") {
612
604
  e.formModel[e.field.name] || e.formModel[e.field.name] === 0 ? i.selectedRows = [e.formModel[e.field.name]] : i.selectedRows = [];
@@ -616,33 +608,33 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
616
608
  }), L(() => e.value, () => {
617
609
  O();
618
610
  }, { deep: !0 });
619
- let j = (t) => {
620
- e.field.required_condition && e.field.required_condition.find((e) => e.key === t) && (U(), G());
611
+ let P = (t) => {
612
+ e.field.required_condition && e.field.required_condition.find((e) => e.key === t) && G(!0);
621
613
  };
622
614
  k(() => {
623
- s.value = "remoteselectpro:" + (0, ie.default)(`${a.path}_${e.field.name}_${e.field.postUrl}`), P(), n().on("required_condition_change", j), W();
615
+ s.value = "remoteselectpro:" + (0, ie.default)(`${a.path}_${e.field.name}_${e.field.postUrl}`), F(), n().on("required_condition_change", P), W();
624
616
  }), A(() => {
625
- n().off("required_condition_change", j);
617
+ n().off("required_condition_change", P);
626
618
  });
627
- let P = () => {
619
+ let F = () => {
628
620
  e.field.mode === "default" ? (e.value || e.value === 0) && (y() === "id" ? isNaN(Number(e.value)) ? i.selectedRows.push(e.value) : i.selectedRows.push(Number(e.value)) : i.selectedRows.push(e.value)) : typeof e.value == "string" ? e.value.split(",").map((e) => {
629
621
  y() === "id" ? isNaN(Number(e)) ? i.selectedRows.push(e) : i.selectedRows.push(Number(e)) : i.selectedRows.push(e);
630
622
  }) : e.value instanceof Array ? e.value.forEach((e) => {
631
623
  y() === "id" ? isNaN(Number(e)) ? i.selectedRows.push(e) : i.selectedRows.push(Number(e)) : i.selectedRows.push(e);
632
624
  }) : e.value != null && i.selectedRows.push(e.value);
633
- }, F = () => {
625
+ }, I = () => {
634
626
  if (e.field.mode == "default") {
635
627
  t("update:value", i.selectedRows);
636
628
  let e = T.value.filter((e) => i.selectedRows == e.value).map((e) => e.label);
637
629
  t("update:label", e.length > 0 ? e[0] : "");
638
630
  } else i.selectedRows.length, t("update:value", i.selectedRows), t("update:label", T.value.filter((e) => w(e.value)).map((e) => e.label));
639
- }, I = () => {
631
+ }, R = () => {
640
632
  let t = e.field.required_condition, n = {};
641
633
  return t && t.forEach((e) => {
642
634
  let t = d.value_map[e.key];
643
635
  t != null && (n[e.field_name] = t);
644
636
  }), n;
645
- }, R = async (t, n) => {
637
+ }, z = async (t, n) => {
646
638
  if (n && !Array.isArray(n) && (n = [n]), n && n.length > 0) {
647
639
  let r = [];
648
640
  if (n.forEach((e) => {
@@ -663,24 +655,23 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
663
655
  i.datasource = i.datasource.concat(a?.data || []);
664
656
  }
665
657
  }
666
- }, z = () => {
667
- let t = {};
668
- return e.field.queryType === "simple" ? (v.simpleSearchParams = g(), t = {
658
+ }, U = (t = !0) => {
659
+ let n = {};
660
+ return e.field.queryType === "simple" ? (v.simpleSearchParams = g(t), n = {
669
661
  ...v,
670
662
  ...v.simpleSearchParams,
671
- required_condition: I()
672
- }, delete t.conditions, delete t.simpleSearchParams) : (v.conditions = h(), t = {
663
+ required_condition: R()
664
+ }, delete n.conditions, delete n.simpleSearchParams) : (v.conditions = h(t), n = {
673
665
  ...v,
674
- required_condition: I()
675
- }, delete t.simpleSearchParams), t;
676
- }, U = () => {
677
- i.datasource.length = 0;
678
- }, W = async () => {
666
+ required_condition: R()
667
+ }, delete n.simpleSearchParams), n;
668
+ }, W = async (n = !1) => {
679
669
  if (e.field.postUrl) {
680
- let n = await o(z(), e.field.postUrl, !1, { skip_error: !0 });
681
- if (n?.data?.length > 0) {
682
- let e = y(), t = n?.data.filter((t) => !i.datasource.find((n) => t[e] == n[e]));
683
- i.datasource = i.datasource.concat(t), O();
670
+ n && (i.datasource.length = 0);
671
+ let r = i.datasource.length === 0, a = U(r), s = await o(a, e.field.postUrl, !1, { skip_error: !0 });
672
+ if (s?.data?.length > 0) {
673
+ let e = y(), t = s?.data.filter((t) => !i.datasource.find((n) => t[e] == n[e]));
674
+ i.datasource = i.datasource.concat(t), r && await z(a, i.selectedRows), O();
684
675
  }
685
676
  if (e.field.defaultValueType === "first" && !e.is_form_design) e.formModel[e.field.name] || (e.field.mode === "default" || !e.field.mode ? (t("update:label", i.datasource[0][x()]), t("update:value", i.datasource[0][y()])) : (t("update:label", [i.datasource[0][x()]]), t("update:value", [i.datasource[0][y()]])));
686
677
  else if (e.field.defaultValueType === "global" && !e.is_form_design) {
@@ -693,8 +684,8 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
693
684
  }
694
685
  } else E(i.selectedRows);
695
686
  }
696
- }, G = B(() => {
697
- W();
687
+ }, G = B((e = !1) => {
688
+ W(e);
698
689
  }, 500);
699
690
  L(() => [
700
691
  e.labelKeyList,
@@ -704,23 +695,23 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
704
695
  e.labelSpace,
705
696
  e.field.postUrl
706
697
  ], (e, t) => {
707
- V(e, t) || (U(), C(), v.sort_fields = S(), G());
698
+ V(e, t) || (C(), v.sort_fields = S(), G(!0));
708
699
  }, { deep: !0 }), L(() => [
709
700
  e.field.searchConditions,
710
701
  e.field.queryType,
711
702
  e.field.simpleSearchConditions
712
703
  ], (e, t) => {
713
- V(e, t) || G();
704
+ V(e, t) || G(!0);
714
705
  }, { deep: !0 });
715
706
  let K = (e) => {
716
707
  u.value = e, G();
717
- }, q = D(() => import("./tableModal-C4CzR3Jr.js"));
708
+ }, q = D(() => import("./tableModal-D1CsJZ7b.js"));
718
709
  return {
719
710
  props: e,
720
711
  modalRef: i,
721
712
  searchText: u,
722
713
  datasource: T,
723
- handleChange: F,
714
+ handleChange: I,
724
715
  handleSearch: K,
725
716
  filterOption: (e, t) => {
726
717
  if (T.value instanceof Array) {
@@ -752,7 +743,7 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
752
743
  let e = h();
753
744
  l.value.query_params = a, e.length > 0 && e[0].length > 0 && (l.value.base_conditions = e[0]);
754
745
  }
755
- let o = I();
746
+ let o = R();
756
747
  o && (l.value.query_params = {
757
748
  ...l.value.query_params,
758
749
  required_condition: o
@@ -769,8 +760,8 @@ var re = /* @__PURE__ */ a(Y, [["render", ne]]), ie = /* @__PURE__ */ e(v(), 1),
769
760
  labelSpace: e.labelSpace || "-",
770
761
  valueKey: e.valueKey || "id",
771
762
  ok: async (n) => {
772
- let r = n.map((e) => e.value) || [], a = n.map((e) => e.label) || [], o = z();
773
- e.field.mode == "default" ? r.length == 0 ? (i.selectedRows = void 0, t("update:value", i.selectedRows), t("update:label", void 0)) : (await R(o, r[0]), i.selectedRows = r[0], t("update:value", i.selectedRows), t("update:label", a[0])) : (await R(o, r), i.selectedRows = r, t("update:value", i.selectedRows), t("update:label", a));
763
+ let r = n.map((e) => e.value) || [], a = n.map((e) => e.label) || [], o = U();
764
+ e.field.mode == "default" ? r.length == 0 ? (i.selectedRows = void 0, t("update:value", i.selectedRows), t("update:label", void 0)) : (i.selectedRows = r[0], await z(o, r[0]), t("update:value", i.selectedRows), t("update:label", a[0])) : (i.selectedRows = r, await z(o, r), t("update:value", i.selectedRows), t("update:label", a));
774
765
  },
775
766
  cancel: () => {
776
767
  console.log("cancel");
@@ -838,6 +829,6 @@ function ce(e, t, n, r, i, a) {
838
829
  "onSearch"
839
830
  ]), e.field.table?.enable ? (j(), C("div", se, [E(l, { onClick: e.handleOpenTable }, null, 8, ["onClick"])])) : S("", !0)]);
840
831
  }
841
- var le = /* @__PURE__ */ a(ae, [["render", ce], ["__scopeId", "data-v-a0075089"]]);
832
+ var le = /* @__PURE__ */ a(ae, [["render", ce], ["__scopeId", "data-v-591af4ba"]]);
842
833
  //#endregion
843
834
  export { re as n, J as r, le as t };