duck-vue-components 0.2.0 → 0.2.2
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/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/{controls-B7qU1vjR.cjs → controls-DORSbC6g.cjs} +180 -107
- package/dist/{controls-BXlqLD72.js → controls-Dqd6AD6_.js} +114 -64
- package/dist/controls.cjs +7 -1
- package/dist/controls.d.cts +2 -2
- package/dist/controls.d.ts +2 -2
- package/dist/controls.js +2 -2
- package/dist/hooks.cjs +2 -2
- package/dist/{index-DZ1BE9W4.d.cts → index-CHT-pkrY.d.cts} +117 -99
- package/dist/index-CmiTP4nh.d.cts +804 -0
- package/dist/index-CpIVvKpt.d.ts +804 -0
- package/dist/{index-wNtoh5Kh.d.ts → index-DiJRuXzE.d.ts} +113 -97
- package/dist/index.cjs +4 -12
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -3
- package/dist/{locale-DTHxb_wp.cjs → locale-BTmar3YP.cjs} +44 -2
- package/dist/locale.cjs +1 -1
- package/dist/pages.cjs +1638 -0
- package/dist/pages.d.cts +36 -0
- package/dist/pages.d.ts +36 -0
- package/dist/pages.js +1627 -0
- package/dist/stores.cjs +6 -6
- package/dist/stores.d.cts +1 -803
- package/dist/stores.d.ts +1 -803
- package/dist/style.css +12 -0
- package/dist/{utils-D8ZjYN3B.cjs → utils-D_H_FuDE.cjs} +5 -6
- package/dist/utils.cjs +2 -2
- package/dist/utils.d.cts +1 -1
- package/package.json +6 -5
- package/dist/chunk-CZWwpsFl.cjs +0 -43
- package/dist/config.cjs +0 -10
- package/dist/config.d.cts +0 -2
- package/dist/config.d.ts +0 -2
- package/dist/config.js +0 -5
- /package/dist/{constants-CnfPtVsT.cjs → constants-Djb2MLAv.cjs} +0 -0
- /package/dist/{index-BCxPeUAH.d.cts → index-1Pf2-Oor.d.cts} +0 -0
- /package/dist/{index-DmYlGe4I.d.cts → index-DbRrwdMu.d.cts} +0 -0
|
@@ -46,8 +46,8 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
46
46
|
var MyButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(MyButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8d6f1d45"]]);
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/packages/controls/affix/affix.vue?vue&type=script&setup=true&lang.ts
|
|
49
|
-
const _hoisted_1$
|
|
50
|
-
const _hoisted_2$
|
|
49
|
+
const _hoisted_1$25 = ["innerHTML"];
|
|
50
|
+
const _hoisted_2$24 = { key: 2 };
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/packages/controls/affix/affix.vue
|
|
53
53
|
var affix_default = /* @__PURE__ */ defineComponent({
|
|
@@ -83,7 +83,7 @@ var affix_default = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
84
84
|
key: 1,
|
|
85
85
|
innerHTML: __props.control.default
|
|
86
|
-
}, null, 8, _hoisted_1$
|
|
86
|
+
}, null, 8, _hoisted_1$25)) : (openBlock(), createElementBlock("span", _hoisted_2$24, toDisplayString(__props.control.default), 1))]),
|
|
87
87
|
key: "0"
|
|
88
88
|
} : void 0]), 1040);
|
|
89
89
|
};
|
|
@@ -92,11 +92,11 @@ var affix_default = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/packages/controls/affix/affix.ts
|
|
94
94
|
var affix_exports = /* @__PURE__ */ __exportAll({
|
|
95
|
-
Template: () => Template$
|
|
96
|
-
init: () => init$
|
|
95
|
+
Template: () => Template$34,
|
|
96
|
+
init: () => init$37
|
|
97
97
|
});
|
|
98
|
-
const Template$
|
|
99
|
-
function init$
|
|
98
|
+
const Template$34 = withInstall(affix_default);
|
|
99
|
+
function init$37(moduleName, name, options = {}) {
|
|
100
100
|
return {
|
|
101
101
|
moduleName,
|
|
102
102
|
name,
|
|
@@ -105,8 +105,8 @@ function init$36(moduleName, name, options = {}) {
|
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/packages/controls/autocomplete/autocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
108
|
-
const _hoisted_1$
|
|
109
|
-
const _hoisted_2$
|
|
108
|
+
const _hoisted_1$24 = ["innerHTML"];
|
|
109
|
+
const _hoisted_2$23 = { key: 2 };
|
|
110
110
|
const _hoisted_3$19 = ["innerHTML"];
|
|
111
111
|
const _hoisted_4$15 = { key: 2 };
|
|
112
112
|
const _hoisted_5$12 = ["innerHTML"];
|
|
@@ -153,7 +153,7 @@ var autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
153
153
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
154
154
|
key: 1,
|
|
155
155
|
innerHTML: __props.control.default
|
|
156
|
-
}, null, 8, _hoisted_1$
|
|
156
|
+
}, null, 8, _hoisted_1$24)) : (openBlock(), createElementBlock("span", _hoisted_2$23, toDisplayString(__props.control.default), 1))]),
|
|
157
157
|
key: "0"
|
|
158
158
|
} : void 0,
|
|
159
159
|
__props.control?.loadingSlot ? {
|
|
@@ -203,12 +203,12 @@ var autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/packages/controls/autocomplete/autocomplete.ts
|
|
205
205
|
var autocomplete_exports = /* @__PURE__ */ __exportAll({
|
|
206
|
-
Template: () => Template$
|
|
207
|
-
init: () => init$
|
|
206
|
+
Template: () => Template$33,
|
|
207
|
+
init: () => init$36
|
|
208
208
|
});
|
|
209
209
|
const { t: t$2 } = i18n.global;
|
|
210
|
-
const Template$
|
|
211
|
-
function init$
|
|
210
|
+
const Template$33 = withInstall(autocomplete_default);
|
|
211
|
+
function init$36(moduleName, name, options = {}) {
|
|
212
212
|
return {
|
|
213
213
|
name,
|
|
214
214
|
placeholder: t$2("controls.pleaseInput") + t$2(moduleName ? `${moduleName}.${name}` : name),
|
|
@@ -217,8 +217,8 @@ function init$35(moduleName, name, options = {}) {
|
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region src/packages/controls/button/button.vue?vue&type=script&setup=true&lang.ts
|
|
220
|
-
const _hoisted_1$
|
|
221
|
-
const _hoisted_2$
|
|
220
|
+
const _hoisted_1$23 = ["innerHTML"];
|
|
221
|
+
const _hoisted_2$22 = { key: 2 };
|
|
222
222
|
const _hoisted_3$18 = ["innerHTML"];
|
|
223
223
|
const _hoisted_4$14 = { key: 2 };
|
|
224
224
|
const _hoisted_5$11 = ["innerHTML"];
|
|
@@ -233,10 +233,15 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
233
233
|
} },
|
|
234
234
|
emits: ["click"],
|
|
235
235
|
setup(__props, { emit: __emit }) {
|
|
236
|
+
const { system } = storeToRefs(useLocalSettingStore());
|
|
236
237
|
const props = __props;
|
|
237
238
|
const buttonProps = computed(() => {
|
|
238
239
|
const { default: _default, iconSlot, loadingSlot, suffixIcon, ...rest } = props.control;
|
|
239
|
-
return {
|
|
240
|
+
return {
|
|
241
|
+
plain: system.value.button.plain,
|
|
242
|
+
round: system.value.button.round,
|
|
243
|
+
...rest
|
|
244
|
+
};
|
|
240
245
|
});
|
|
241
246
|
const label = computed(() => {
|
|
242
247
|
const { moduleName, name, label } = props.control;
|
|
@@ -261,7 +266,7 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
261
266
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(markRaw(__props.control.default)), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
262
267
|
key: 1,
|
|
263
268
|
innerHTML: __props.control.default
|
|
264
|
-
}, null, 8, _hoisted_1$
|
|
269
|
+
}, null, 8, _hoisted_1$23)) : (openBlock(), createElementBlock("span", _hoisted_2$22, toDisplayString(__props.control.default), 1))]),
|
|
265
270
|
key: "1"
|
|
266
271
|
} : __props.control.separator ? {
|
|
267
272
|
name: "default",
|
|
@@ -316,11 +321,11 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
316
321
|
//#endregion
|
|
317
322
|
//#region src/packages/controls/button/button.ts
|
|
318
323
|
var button_exports = /* @__PURE__ */ __exportAll({
|
|
319
|
-
Template: () => Template$
|
|
320
|
-
init: () => init$
|
|
324
|
+
Template: () => Template$32,
|
|
325
|
+
init: () => init$35
|
|
321
326
|
});
|
|
322
|
-
const Template$
|
|
323
|
-
function init$
|
|
327
|
+
const Template$32 = withInstall(button_default);
|
|
328
|
+
function init$35(moduleName, name, options) {
|
|
324
329
|
return {
|
|
325
330
|
moduleName,
|
|
326
331
|
name,
|
|
@@ -395,8 +400,8 @@ var buttonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
395
400
|
});
|
|
396
401
|
//#endregion
|
|
397
402
|
//#region src/packages/controls/popconfirm/popconfirm.vue?vue&type=script&setup=true&lang.ts
|
|
398
|
-
const _hoisted_1$
|
|
399
|
-
const _hoisted_2$
|
|
403
|
+
const _hoisted_1$22 = ["innerHTML"];
|
|
404
|
+
const _hoisted_2$21 = ["innerHTML"];
|
|
400
405
|
const _hoisted_3$17 = { key: 2 };
|
|
401
406
|
//#endregion
|
|
402
407
|
//#region src/packages/controls/popconfirm/popconfirm.vue
|
|
@@ -441,14 +446,14 @@ var popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
441
446
|
actions: withCtx(() => [unref(isComponent)(__props.control.actions) && !unref(isHTML)(__props.control.actions) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.actions), { key: 0 })) : typeof __props.control.actions === "string" && unref(isHTML)(__props.control.actions) ? (openBlock(), createElementBlock("div", {
|
|
442
447
|
key: 1,
|
|
443
448
|
innerHTML: __props.control.actions
|
|
444
|
-
}, null, 8, _hoisted_2$
|
|
449
|
+
}, null, 8, _hoisted_2$21)) : (openBlock(), createElementBlock("span", _hoisted_3$17, toDisplayString(__props.control.actions), 1))]),
|
|
445
450
|
_: 2
|
|
446
451
|
}, [__props.control.reference ? {
|
|
447
452
|
name: "reference",
|
|
448
453
|
fn: withCtx(() => [unref(isComponent)(__props.control.reference) && !unref(isHTML)(__props.control.reference) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.reference), { key: 0 })) : typeof __props.control.reference === "string" && unref(isHTML)(__props.control.reference) ? (openBlock(), createElementBlock("div", {
|
|
449
454
|
key: 1,
|
|
450
455
|
innerHTML: __props.control.reference
|
|
451
|
-
}, null, 8, _hoisted_1$
|
|
456
|
+
}, null, 8, _hoisted_1$22)) : (openBlock(), createBlock(unref(button_exports).Template, {
|
|
452
457
|
key: 2,
|
|
453
458
|
control: buttonProps.value
|
|
454
459
|
}, null, 8, ["control"]))]),
|
|
@@ -464,13 +469,13 @@ var popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
464
469
|
//#endregion
|
|
465
470
|
//#region src/packages/controls/popconfirm/popconfirm.ts
|
|
466
471
|
var popconfirm_exports = /* @__PURE__ */ __exportAll({
|
|
467
|
-
Template: () => Template$
|
|
468
|
-
init: () => init$
|
|
472
|
+
Template: () => Template$31,
|
|
473
|
+
init: () => init$34
|
|
469
474
|
});
|
|
470
|
-
const Template$
|
|
471
|
-
function init$
|
|
475
|
+
const Template$31 = withInstall(popconfirm_default);
|
|
476
|
+
function init$34(moduleName, name, options = {}) {
|
|
472
477
|
const label = options?.label ?? t$3(`${moduleName}.${name}`);
|
|
473
|
-
const button = options?.button ?? init$
|
|
478
|
+
const button = options?.button ?? init$35(moduleName, name, {
|
|
474
479
|
text: options?.text ?? false,
|
|
475
480
|
label,
|
|
476
481
|
icon: options?.icon,
|
|
@@ -575,13 +580,13 @@ var dropdown_default = /* @__PURE__ */ defineComponent({
|
|
|
575
580
|
//#endregion
|
|
576
581
|
//#region src/packages/controls/dropdown/dropdown.ts
|
|
577
582
|
var dropdown_exports = /* @__PURE__ */ __exportAll({
|
|
578
|
-
Template: () => Template$
|
|
579
|
-
init: () => init$
|
|
583
|
+
Template: () => Template$30,
|
|
584
|
+
init: () => init$33
|
|
580
585
|
});
|
|
581
|
-
const Template$
|
|
582
|
-
function init$
|
|
586
|
+
const Template$30 = withInstall(dropdown_default);
|
|
587
|
+
function init$33(moduleName, name, options) {
|
|
583
588
|
const items = reactive(options?.items ?? []);
|
|
584
|
-
const button = options?.button ?? init$
|
|
589
|
+
const button = options?.button ?? init$35(moduleName, name, {
|
|
585
590
|
suffixIcon: ArrowDown,
|
|
586
591
|
text: options?.text ?? false,
|
|
587
592
|
disabled: options?.disabled ?? false,
|
|
@@ -612,17 +617,17 @@ function init$32(moduleName, name, options) {
|
|
|
612
617
|
//#endregion
|
|
613
618
|
//#region src/packages/controls/buttonGroup/buttonGroup.ts
|
|
614
619
|
var buttonGroup_exports = /* @__PURE__ */ __exportAll({
|
|
615
|
-
Template: () => Template$
|
|
620
|
+
Template: () => Template$29,
|
|
616
621
|
createComponent: () => createComponent$3,
|
|
617
|
-
init: () => init$
|
|
622
|
+
init: () => init$32
|
|
618
623
|
});
|
|
619
|
-
const Template$
|
|
624
|
+
const Template$29 = withInstall(buttonGroup_default);
|
|
620
625
|
const componentMap = {
|
|
621
626
|
button: button_exports,
|
|
622
627
|
popconfirm: popconfirm_exports,
|
|
623
628
|
dropdown: dropdown_exports
|
|
624
629
|
};
|
|
625
|
-
function init$
|
|
630
|
+
function init$32(moduleName, options) {
|
|
626
631
|
const localSetting = useLocalSettingStore();
|
|
627
632
|
const controls = reactive(options?.controls ?? []);
|
|
628
633
|
const buttonsArea = options?.buttonsArea ?? "custom";
|
|
@@ -684,8 +689,8 @@ function createComponent$3(controlType, moduleName, name, options, items) {
|
|
|
684
689
|
}
|
|
685
690
|
//#endregion
|
|
686
691
|
//#region src/packages/controls/dialog/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
687
|
-
const _hoisted_1$
|
|
688
|
-
const _hoisted_2$
|
|
692
|
+
const _hoisted_1$21 = ["innerHTML"];
|
|
693
|
+
const _hoisted_2$20 = { key: 2 };
|
|
689
694
|
const _hoisted_3$16 = ["innerHTML"];
|
|
690
695
|
const _hoisted_4$13 = { key: 2 };
|
|
691
696
|
//#endregion
|
|
@@ -849,7 +854,7 @@ var dialog_default$1 = /* @__PURE__ */ defineComponent({
|
|
|
849
854
|
}, null, 512)) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
850
855
|
key: 1,
|
|
851
856
|
innerHTML: __props.control.default
|
|
852
|
-
}, null, 8, _hoisted_1$
|
|
857
|
+
}, null, 8, _hoisted_1$21)) : (openBlock(), createElementBlock("span", _hoisted_2$20, toDisplayString(__props.control.default), 1))]),
|
|
853
858
|
key: "1"
|
|
854
859
|
} : void 0, _ctx.$slots.footer ? {
|
|
855
860
|
name: "footer",
|
|
@@ -880,10 +885,10 @@ var dialog_default$1 = /* @__PURE__ */ defineComponent({
|
|
|
880
885
|
//#region src/packages/controls/dialog/dialog.ts
|
|
881
886
|
var dialog_exports = /* @__PURE__ */ __exportAll({
|
|
882
887
|
DIALOG_FORM_INJECTION_KEY: () => DIALOG_FORM_INJECTION_KEY,
|
|
883
|
-
Template: () => Template$
|
|
884
|
-
init: () => init$
|
|
888
|
+
Template: () => Template$28,
|
|
889
|
+
init: () => init$31
|
|
885
890
|
});
|
|
886
|
-
const Template$
|
|
891
|
+
const Template$28 = withInstall(dialog_default$1);
|
|
887
892
|
function createButtonClickHandler(formRef, dialogControl) {
|
|
888
893
|
return (buttonName, event) => {
|
|
889
894
|
switch (buttonName.name) {
|
|
@@ -935,7 +940,7 @@ const closeDialog = (dialogControl, done) => {
|
|
|
935
940
|
else handleClose();
|
|
936
941
|
};
|
|
937
942
|
const DIALOG_FORM_INJECTION_KEY = Symbol("dialog-form");
|
|
938
|
-
function init$
|
|
943
|
+
function init$31(name, templateName, buttons, options = {}) {
|
|
939
944
|
const dialogControl = reactive({
|
|
940
945
|
name,
|
|
941
946
|
buttons,
|
|
@@ -987,6 +992,50 @@ function init$30(name, templateName, buttons, options = {}) {
|
|
|
987
992
|
return dialogControl;
|
|
988
993
|
}
|
|
989
994
|
//#endregion
|
|
995
|
+
//#region src/packages/controls/divider/divider.vue?vue&type=script&setup=true&lang.ts
|
|
996
|
+
const _hoisted_1$20 = ["innerHTML"];
|
|
997
|
+
const _hoisted_2$19 = { key: 2 };
|
|
998
|
+
//#endregion
|
|
999
|
+
//#region src/packages/controls/divider/divider.vue
|
|
1000
|
+
var divider_default = /* @__PURE__ */ defineComponent({
|
|
1001
|
+
__name: "divider",
|
|
1002
|
+
props: { control: {
|
|
1003
|
+
type: Object,
|
|
1004
|
+
required: true
|
|
1005
|
+
} },
|
|
1006
|
+
setup(__props) {
|
|
1007
|
+
const props = __props;
|
|
1008
|
+
const dividerProps = computed(() => {
|
|
1009
|
+
const { default: _default, ...rest } = props.control;
|
|
1010
|
+
return rest;
|
|
1011
|
+
});
|
|
1012
|
+
return (_ctx, _cache) => {
|
|
1013
|
+
return openBlock(), createBlock(unref(ElDivider), normalizeProps(guardReactiveProps(dividerProps.value)), {
|
|
1014
|
+
default: withCtx(() => [__props.control?.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
1015
|
+
key: 1,
|
|
1016
|
+
innerHTML: __props.control.default
|
|
1017
|
+
}, null, 8, _hoisted_1$20)) : (openBlock(), createElementBlock("span", _hoisted_2$19, toDisplayString(__props.control.default), 1))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.control?.text ?? unref(t$3)(`${__props.control.moduleName}.${__props.control.name}`)), 1)], 64))]),
|
|
1018
|
+
_: 1
|
|
1019
|
+
}, 16);
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region src/packages/controls/divider/divider.ts
|
|
1025
|
+
var divider_exports = /* @__PURE__ */ __exportAll({
|
|
1026
|
+
Template: () => Template$27,
|
|
1027
|
+
init: () => init$30
|
|
1028
|
+
});
|
|
1029
|
+
const Template$27 = withInstall(divider_default);
|
|
1030
|
+
function init$30(moduleName, name, options = {}) {
|
|
1031
|
+
return {
|
|
1032
|
+
moduleName,
|
|
1033
|
+
name,
|
|
1034
|
+
...options,
|
|
1035
|
+
controlType: "divider"
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
//#endregion
|
|
990
1039
|
//#region src/packages/controls/input/input.vue?vue&type=script&setup=true&lang.ts
|
|
991
1040
|
const _hoisted_1$19 = {
|
|
992
1041
|
class: "minput-box",
|
|
@@ -2188,7 +2237,7 @@ var mergeInput_default = /* @__PURE__ */ defineComponent({
|
|
|
2188
2237
|
const componentMap = markRaw({
|
|
2189
2238
|
"input": Template$26,
|
|
2190
2239
|
"inputNumber": Template$23,
|
|
2191
|
-
"autocomplete": Template$
|
|
2240
|
+
"autocomplete": Template$33,
|
|
2192
2241
|
"inputTag": Template$24
|
|
2193
2242
|
});
|
|
2194
2243
|
const props = __props;
|
|
@@ -2221,7 +2270,7 @@ function init$24(moduleName, name, options = {}) {
|
|
|
2221
2270
|
};
|
|
2222
2271
|
case "autocomplete": return {
|
|
2223
2272
|
inputType,
|
|
2224
|
-
...init$
|
|
2273
|
+
...init$36(moduleName, name, restOptions)
|
|
2225
2274
|
};
|
|
2226
2275
|
case "inputTag": return {
|
|
2227
2276
|
inputType,
|
|
@@ -5348,8 +5397,8 @@ var table_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
5348
5397
|
moduleName: propertys.moduleName,
|
|
5349
5398
|
name: "more",
|
|
5350
5399
|
controlType: "dropdown",
|
|
5351
|
-
Template: markRaw(Template$
|
|
5352
|
-
config: init$
|
|
5400
|
+
Template: markRaw(Template$30),
|
|
5401
|
+
config: init$33(propertys.moduleName, "more", {
|
|
5353
5402
|
label: t$3("buttons.more"),
|
|
5354
5403
|
text: controls[0].config.text
|
|
5355
5404
|
})
|
|
@@ -5600,7 +5649,7 @@ var tagComp_default = /* @__PURE__ */ defineComponent({
|
|
|
5600
5649
|
}
|
|
5601
5650
|
});
|
|
5602
5651
|
const addButton = computed(() => {
|
|
5603
|
-
return init$
|
|
5652
|
+
return init$35(props.control.moduleName, "addButton", {
|
|
5604
5653
|
label: props.control.buttonLabel,
|
|
5605
5654
|
icon: props.control.buttonIcon
|
|
5606
5655
|
});
|
|
@@ -5770,15 +5819,15 @@ function init$12(struct, options = {}) {
|
|
|
5770
5819
|
const allForm = options?.allForm ?? false;
|
|
5771
5820
|
console.log("allForm", allForm);
|
|
5772
5821
|
const columns = [];
|
|
5773
|
-
const lineButtons = reactive(init$
|
|
5822
|
+
const lineButtons = reactive(init$32(struct.name, {
|
|
5774
5823
|
isGroup: true,
|
|
5775
5824
|
buttonsArea: "tableLine"
|
|
5776
5825
|
}));
|
|
5777
|
-
const headerLineButtons = reactive(init$
|
|
5826
|
+
const headerLineButtons = reactive(init$32(struct.name, {
|
|
5778
5827
|
isGroup: false,
|
|
5779
5828
|
buttonsArea: "tableLine"
|
|
5780
5829
|
}));
|
|
5781
|
-
const otherButtons = reactive(init$
|
|
5830
|
+
const otherButtons = reactive(init$32(struct.name, {
|
|
5782
5831
|
isGroup: false,
|
|
5783
5832
|
buttonsArea: "tableLine"
|
|
5784
5833
|
}));
|
|
@@ -6639,7 +6688,7 @@ const init$7 = (struct, options = {}) => {
|
|
|
6639
6688
|
})();
|
|
6640
6689
|
const contentsMap = reactive(/* @__PURE__ */ new Map());
|
|
6641
6690
|
const customizedDisabled = options?.customizedDisabled ?? false;
|
|
6642
|
-
const buttons = reactive(init$
|
|
6691
|
+
const buttons = reactive(init$32(struct.name, { isGroup: true }));
|
|
6643
6692
|
buttons.addButton("submit", {
|
|
6644
6693
|
label: "buttons.save",
|
|
6645
6694
|
nativeType: "button",
|
|
@@ -7507,7 +7556,7 @@ const init$6 = (name, pageType, options) => {
|
|
|
7507
7556
|
dialogs,
|
|
7508
7557
|
...options,
|
|
7509
7558
|
pushDialog: (name, templateName, buttons, options = {}) => {
|
|
7510
|
-
dialogs.push(init$
|
|
7559
|
+
dialogs.push(init$31(name, templateName, buttons, options));
|
|
7511
7560
|
},
|
|
7512
7561
|
showDialog: (name, id = 0, params) => {
|
|
7513
7562
|
const dialog = dialogs.find((dialog) => dialog.name === name);
|
|
@@ -8837,7 +8886,7 @@ var pageTable_default = /* @__PURE__ */ defineComponent({
|
|
|
8837
8886
|
}
|
|
8838
8887
|
}
|
|
8839
8888
|
function showColumns(arr = []) {
|
|
8840
|
-
let showColumnsDropdown = init$
|
|
8889
|
+
let showColumnsDropdown = init$33("table", "showColumns", {
|
|
8841
8890
|
hideOnClick: false,
|
|
8842
8891
|
type: "primary",
|
|
8843
8892
|
maxHeight: 500,
|
|
@@ -9049,7 +9098,7 @@ function init$2(struct, options = {}) {
|
|
|
9049
9098
|
const showRefresh = options?.showRefresh ?? true;
|
|
9050
9099
|
const localSetting = useLocalSettingStore();
|
|
9051
9100
|
const page = reactive(init$6(struct?.name, "table"));
|
|
9052
|
-
const operateButtons = init$
|
|
9101
|
+
const operateButtons = init$32(struct.name, {
|
|
9053
9102
|
isGroup: false,
|
|
9054
9103
|
buttonsArea: "operate",
|
|
9055
9104
|
show: true
|
|
@@ -9100,15 +9149,15 @@ function init$2(struct, options = {}) {
|
|
|
9100
9149
|
type: "danger",
|
|
9101
9150
|
icon: markRaw(Close)
|
|
9102
9151
|
});
|
|
9103
|
-
const tableButtons = init$
|
|
9152
|
+
const tableButtons = init$32(struct.name, {
|
|
9104
9153
|
isGroup: false,
|
|
9105
9154
|
buttonsArea: "table"
|
|
9106
9155
|
});
|
|
9107
|
-
const importDropDown = init$
|
|
9156
|
+
const importDropDown = init$33("buttons", "import", { icon: "Files" });
|
|
9108
9157
|
importDropDown.addItem("importing", { icon: "Files" });
|
|
9109
9158
|
importDropDown.addItem("downloadTemplate", { icon: "Download" });
|
|
9110
9159
|
tableButtons.addDropdown("import", importDropDown);
|
|
9111
|
-
const exportDropDown = init$
|
|
9160
|
+
const exportDropDown = init$33("buttons", "export", { icon: "Document" });
|
|
9112
9161
|
exportDropDown.addItem("exportSelectedToExcel", {
|
|
9113
9162
|
label: "buttons.exportSelected",
|
|
9114
9163
|
icon: "Select"
|
|
@@ -9288,7 +9337,7 @@ var search_exports = /* @__PURE__ */ __exportAll({
|
|
|
9288
9337
|
const SearchKeyTemplate = withInstall(searchKeys_default);
|
|
9289
9338
|
const Template = withInstall(search_default);
|
|
9290
9339
|
const init = (struct, options = {}) => {
|
|
9291
|
-
const buttons = init$
|
|
9340
|
+
const buttons = init$32(struct.name, {
|
|
9292
9341
|
isGroup: false,
|
|
9293
9342
|
buttonsArea: "search"
|
|
9294
9343
|
});
|
|
@@ -9388,6 +9437,7 @@ var controls_exports = /* @__PURE__ */ __exportAll({
|
|
|
9388
9437
|
RwButton: () => button_exports,
|
|
9389
9438
|
RwButtonGroup: () => buttonGroup_exports,
|
|
9390
9439
|
RwDialog: () => dialog_exports,
|
|
9440
|
+
RwDivider: () => divider_exports,
|
|
9391
9441
|
RwDropdown: () => dropdown_exports,
|
|
9392
9442
|
RwForm: () => RwForm,
|
|
9393
9443
|
RwFormItems: () => RwFormItems,
|
|
@@ -9422,4 +9472,4 @@ var controls_exports = /* @__PURE__ */ __exportAll({
|
|
|
9422
9472
|
tableStruct: () => tableStruct_exports
|
|
9423
9473
|
});
|
|
9424
9474
|
//#endregion
|
|
9425
|
-
export {
|
|
9475
|
+
export { radio_exports as A, button_exports as B, pagination_exports as C, image_exports as D, mergeSelect_exports as E, divider_exports as F, affix_exports as H, dialog_exports as I, buttonGroup_exports as L, inputTag_exports as M, select_exports as N, switch_exports as O, input_exports as P, dropdown_exports as R, upload_exports as S, slider_exports as T, MyButton_default as U, autocomplete_exports as V, table_exports as _, init$3 as a, text_exports as b, pageStruct_exports as c, RwForm as d, init$8 as f, segmented_exports as g, RwFormItems as h, pageTable_exports as i, inputNumber_exports as j, mergeInput_exports as k, tableStruct_exports as l, tabPane_exports as m, search_exports as n, pageForm_exports as o, tabs_exports as p, mTreeSTable_exports as r, init$4 as s, controls_exports as t, pageBase_exports as u, tagComp_exports as v, map_exports as w, tree_exports as x, tag_exports as y, popconfirm_exports as z };
|
package/dist/controls.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_controls = require("./controls-
|
|
2
|
+
const require_controls = require("./controls-DORSbC6g.cjs");
|
|
3
3
|
exports.MyButton = require_controls.MyButton_default;
|
|
4
4
|
Object.defineProperty(exports, "RwAffix", {
|
|
5
5
|
enumerable: true,
|
|
@@ -31,6 +31,12 @@ Object.defineProperty(exports, "RwDialog", {
|
|
|
31
31
|
return require_controls.dialog_exports;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
+
Object.defineProperty(exports, "RwDivider", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function() {
|
|
37
|
+
return require_controls.divider_exports;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
34
40
|
Object.defineProperty(exports, "RwDropdown", {
|
|
35
41
|
enumerable: true,
|
|
36
42
|
get: function() {
|
package/dist/controls.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { _default as MyButton, affix_d_exports as RwAffix, autocomplete_d_exports as RwAutocomplete, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
|
|
1
|
+
import { A as inputTag_d_exports, B as affix_d_exports, C as map_d_exports, D as mergeInput_d_exports, E as mergeSelect_d_exports, F as buttonGroup_d_exports, I as dropdown_d_exports, L as popconfirm_d_exports, M as input_d_exports, N as divider_d_exports, O as radio_d_exports, P as dialog_d_exports, R as button_d_exports, S as upload_d_exports, T as switch_d_exports, V as _default, _ as tagComp_d_exports, a as pageTable_d_exports, b as text_d_exports, c as pageStruct_d_exports, d as RwForm, f as tabs_d_exports, g as table_d_exports, h as segmented_d_exports, i as mTreeSTable_d_exports, j as select_d_exports, k as inputNumber_d_exports, l as tableStruct_d_exports, m as RwFormItems, n as search_d_exports, o as pageForm_d_exports, p as tabPane_d_exports, r as pagination_d_exports, u as pageBase_d_exports, v as tag_d_exports, w as slider_d_exports, x as tree_d_exports, y as image_d_exports, z as autocomplete_d_exports } from "./index-CHT-pkrY.cjs";
|
|
2
|
+
export { _default as MyButton, affix_d_exports as RwAffix, autocomplete_d_exports as RwAutocomplete, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, divider_d_exports as RwDivider, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
|
package/dist/controls.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { _default as MyButton, affix_d_exports as RwAffix, autocomplete_d_exports as RwAutocomplete, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
|
|
1
|
+
import { A as inputTag_d_exports, B as affix_d_exports, C as map_d_exports, D as mergeInput_d_exports, E as mergeSelect_d_exports, F as buttonGroup_d_exports, I as dropdown_d_exports, L as popconfirm_d_exports, M as input_d_exports, N as divider_d_exports, O as radio_d_exports, P as dialog_d_exports, R as button_d_exports, S as upload_d_exports, T as switch_d_exports, V as _default, _ as tagComp_d_exports, a as pageTable_d_exports, b as text_d_exports, c as pageStruct_d_exports, d as RwForm, f as tabs_d_exports, g as table_d_exports, h as segmented_d_exports, i as mTreeSTable_d_exports, j as select_d_exports, k as inputNumber_d_exports, l as tableStruct_d_exports, m as RwFormItems, n as search_d_exports, o as pageForm_d_exports, p as tabPane_d_exports, r as pagination_d_exports, u as pageBase_d_exports, v as tag_d_exports, w as slider_d_exports, x as tree_d_exports, y as image_d_exports, z as autocomplete_d_exports } from "./index-DiJRuXzE.js";
|
|
2
|
+
export { _default as MyButton, affix_d_exports as RwAffix, autocomplete_d_exports as RwAutocomplete, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, divider_d_exports as RwDivider, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
|
package/dist/controls.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { MyButton_default as MyButton, affix_exports as RwAffix, autocomplete_exports as RwAutocomplete, button_exports as RwButton, buttonGroup_exports as RwButtonGroup, dialog_exports as RwDialog, dropdown_exports as RwDropdown, RwForm, RwFormItems, image_exports as RwImage, input_exports as RwInput, inputNumber_exports as RwInputNumber, inputTag_exports as RwInputTag, mTreeSTable_exports as RwMTreeSTable, map_exports as RwMap, mergeInput_exports as RwMergeInput, mergeSelect_exports as RwMergeSelect, pageBase_exports as RwPageBase, pageForm_exports as RwPageForm, pageTable_exports as RwPageTable, pagination_exports as RwPagination, popconfirm_exports as RwPopconfirm, radio_exports as RwRadio, search_exports as RwSearch, segmented_exports as RwSegmented, select_exports as RwSelect, slider_exports as RwSlider, switch_exports as RwSwitch, tabPane_exports as RwTabPane, table_exports as RwTable, tabs_exports as RwTabs, tag_exports as RwTag, tagComp_exports as RwTagComp, text_exports as RwText, tree_exports as RwTree, upload_exports as RwUpload, pageStruct_exports as pageStruct, tableStruct_exports as tableStruct };
|
|
1
|
+
import { A as radio_exports, B as button_exports, C as pagination_exports, D as image_exports, E as mergeSelect_exports, F as divider_exports, H as affix_exports, I as dialog_exports, L as buttonGroup_exports, M as inputTag_exports, N as select_exports, O as switch_exports, P as input_exports, R as dropdown_exports, S as upload_exports, T as slider_exports, U as MyButton_default, V as autocomplete_exports, _ as table_exports, b as text_exports, c as pageStruct_exports, d as RwForm, g as segmented_exports, h as RwFormItems, i as pageTable_exports, j as inputNumber_exports, k as mergeInput_exports, l as tableStruct_exports, m as tabPane_exports, n as search_exports, o as pageForm_exports, p as tabs_exports, r as mTreeSTable_exports, u as pageBase_exports, v as tagComp_exports, w as map_exports, x as tree_exports, y as tag_exports, z as popconfirm_exports } from "./controls-Dqd6AD6_.js";
|
|
2
|
+
export { MyButton_default as MyButton, affix_exports as RwAffix, autocomplete_exports as RwAutocomplete, button_exports as RwButton, buttonGroup_exports as RwButtonGroup, dialog_exports as RwDialog, divider_exports as RwDivider, dropdown_exports as RwDropdown, RwForm, RwFormItems, image_exports as RwImage, input_exports as RwInput, inputNumber_exports as RwInputNumber, inputTag_exports as RwInputTag, mTreeSTable_exports as RwMTreeSTable, map_exports as RwMap, mergeInput_exports as RwMergeInput, mergeSelect_exports as RwMergeSelect, pageBase_exports as RwPageBase, pageForm_exports as RwPageForm, pageTable_exports as RwPageTable, pagination_exports as RwPagination, popconfirm_exports as RwPopconfirm, radio_exports as RwRadio, search_exports as RwSearch, segmented_exports as RwSegmented, select_exports as RwSelect, slider_exports as RwSlider, switch_exports as RwSwitch, tabPane_exports as RwTabPane, table_exports as RwTable, tabs_exports as RwTabs, tag_exports as RwTag, tagComp_exports as RwTagComp, text_exports as RwText, tree_exports as RwTree, upload_exports as RwUpload, pageStruct_exports as pageStruct, tableStruct_exports as tableStruct };
|
package/dist/hooks.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./
|
|
3
|
-
const require_utils = require("./utils-
|
|
2
|
+
require("./locale-BTmar3YP.cjs");
|
|
3
|
+
const require_utils = require("./utils-D_H_FuDE.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
//#region src/packages/hooks/use-namespace/index.ts
|
|
6
6
|
const defaultNamespace = "el";
|