duck-vue-components 0.0.0

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 (123) hide show
  1. package/README.md +29 -0
  2. package/dist/MyButton-C1krVCi6.cjs +36 -0
  3. package/dist/MyButton-C7riFwH6.js +28 -0
  4. package/dist/_plugin-vue_export-helper-DQXgr64F.cjs +13 -0
  5. package/dist/_plugin-vue_export-helper-DbXABBKy.js +8 -0
  6. package/dist/affix-CYU-9qMr.cjs +71 -0
  7. package/dist/affix-D9EM8_Um.js +66 -0
  8. package/dist/button-CGv1WHzT.cjs +132 -0
  9. package/dist/button-tOWSPPxz.js +126 -0
  10. package/dist/chunk-CZWwpsFl.cjs +43 -0
  11. package/dist/chunk-pbuEa-1d.js +13 -0
  12. package/dist/config.cjs +1 -0
  13. package/dist/config.js +1 -0
  14. package/dist/constants/json.cjs +4 -0
  15. package/dist/constants/json.d.cts +2 -0
  16. package/dist/constants/json.d.ts +2 -0
  17. package/dist/constants/json.js +2 -0
  18. package/dist/constants.cjs +14 -0
  19. package/dist/constants.d.cts +3 -0
  20. package/dist/constants.d.ts +3 -0
  21. package/dist/constants.js +3 -0
  22. package/dist/controls/MyButton.cjs +3 -0
  23. package/dist/controls/MyButton.d.cts +2 -0
  24. package/dist/controls/MyButton.d.ts +2 -0
  25. package/dist/controls/MyButton.js +2 -0
  26. package/dist/controls/affix.cjs +8 -0
  27. package/dist/controls/affix.d.cts +2 -0
  28. package/dist/controls/affix.d.ts +2 -0
  29. package/dist/controls/affix.js +2 -0
  30. package/dist/controls/button.cjs +8 -0
  31. package/dist/controls/button.js +2 -0
  32. package/dist/controls.cjs +18 -0
  33. package/dist/controls.d.cts +10 -0
  34. package/dist/controls.d.ts +10 -0
  35. package/dist/controls.js +5 -0
  36. package/dist/dom-CllENWMY.js +346 -0
  37. package/dist/dom-DS4YqkjW.cjs +580 -0
  38. package/dist/index-1ELDRrC5.d.ts +1397 -0
  39. package/dist/index-5JdIJn1m.d.cts +74 -0
  40. package/dist/index-6KzLtJFy.d.cts +157 -0
  41. package/dist/index-BGkTN1DD.d.cts +15 -0
  42. package/dist/index-BHq-BMCP.d.ts +74 -0
  43. package/dist/index-BI-hrf4t.d.ts +332 -0
  44. package/dist/index-BtOBjeH7.d.ts +10 -0
  45. package/dist/index-C-uY4885.d.cts +23 -0
  46. package/dist/index-C5SJLWEN.d.ts +23 -0
  47. package/dist/index-CSvc8L11.d.cts +51 -0
  48. package/dist/index-CeemHBNT.d.ts +51 -0
  49. package/dist/index-CfkAYIKD.d.cts +80 -0
  50. package/dist/index-CiJC-ieW.d.ts +157 -0
  51. package/dist/index-DamAmum6.d.ts +15 -0
  52. package/dist/index-DhOoJCHW.d.cts +1397 -0
  53. package/dist/index-PhthUD7x.d.cts +10 -0
  54. package/dist/index-oDsyZ3t2.d.cts +332 -0
  55. package/dist/index-x9xs2cbA.d.ts +80 -0
  56. package/dist/json-BkkaM20u.cjs +31034 -0
  57. package/dist/json-D-_zTSK6.js +31023 -0
  58. package/dist/locale-DhlAaV1Q.js +597 -0
  59. package/dist/locale-WzzxOobw.cjs +658 -0
  60. package/dist/locale.cjs +12 -0
  61. package/dist/locale.js +2 -0
  62. package/dist/objects-CLXPNOUW.js +134 -0
  63. package/dist/objects-o7u5s_lI.cjs +272 -0
  64. package/dist/packages/config.cjs +10 -0
  65. package/dist/packages/config.d.cts +2 -0
  66. package/dist/packages/config.d.ts +2 -0
  67. package/dist/packages/config.js +5 -0
  68. package/dist/packages/constants/json.cjs +4 -0
  69. package/dist/packages/constants/json.js +2 -0
  70. package/dist/packages/constants.cjs +78 -0
  71. package/dist/packages/constants.js +67 -0
  72. package/dist/packages/controls/MyButton.cjs +3 -0
  73. package/dist/packages/controls/MyButton.js +2 -0
  74. package/dist/packages/controls/affix.cjs +8 -0
  75. package/dist/packages/controls/affix.js +2 -0
  76. package/dist/packages/controls/button.cjs +8 -0
  77. package/dist/packages/controls/button.d.cts +2 -0
  78. package/dist/packages/controls/button.d.ts +2 -0
  79. package/dist/packages/controls/button.js +2 -0
  80. package/dist/packages/controls.cjs +31 -0
  81. package/dist/packages/controls.js +12 -0
  82. package/dist/packages/locale.cjs +12 -0
  83. package/dist/packages/locale.d.cts +39 -0
  84. package/dist/packages/locale.d.ts +39 -0
  85. package/dist/packages/locale.js +2 -0
  86. package/dist/packages/stores.cjs +337 -0
  87. package/dist/packages/stores.js +320 -0
  88. package/dist/packages/utils/dom.cjs +32 -0
  89. package/dist/packages/utils/dom.d.cts +2 -0
  90. package/dist/packages/utils/dom.d.ts +2 -0
  91. package/dist/packages/utils/dom.js +2 -0
  92. package/dist/packages/utils/vue/props.cjs +63 -0
  93. package/dist/packages/utils/vue/props.d.cts +2 -0
  94. package/dist/packages/utils/vue/props.d.ts +2 -0
  95. package/dist/packages/utils/vue/props.js +56 -0
  96. package/dist/packages/utils/vue.cjs +32 -0
  97. package/dist/packages/utils/vue.d.cts +3 -0
  98. package/dist/packages/utils/vue.d.ts +3 -0
  99. package/dist/packages/utils/vue.js +24 -0
  100. package/dist/packages/utils.cjs +190 -0
  101. package/dist/packages/utils.js +6 -0
  102. package/dist/packages.cjs +15 -0
  103. package/dist/packages.d.cts +3 -0
  104. package/dist/packages.d.ts +3 -0
  105. package/dist/packages.js +3 -0
  106. package/dist/stores.cjs +17 -0
  107. package/dist/stores.d.cts +805 -0
  108. package/dist/stores.d.ts +805 -0
  109. package/dist/stores.js +4 -0
  110. package/dist/style.css +15 -0
  111. package/dist/utils/dom.cjs +32 -0
  112. package/dist/utils/dom.js +2 -0
  113. package/dist/utils/vue/props.cjs +7 -0
  114. package/dist/utils/vue/props.js +2 -0
  115. package/dist/utils/vue.cjs +11 -0
  116. package/dist/utils/vue.js +3 -0
  117. package/dist/utils-DlBKdS0t.js +696 -0
  118. package/dist/utils-egS_3P4w.cjs +850 -0
  119. package/dist/utils.cjs +190 -0
  120. package/dist/utils.d.cts +5 -0
  121. package/dist/utils.d.ts +5 -0
  122. package/dist/utils.js +6 -0
  123. package/package.json +184 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # vue-components-starter
2
+
3
+ A starter for creating a Vue component library.
4
+
5
+ ## Development
6
+
7
+ - Install dependencies:
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ - Run the playground:
14
+
15
+ ```bash
16
+ npm run playground
17
+ ```
18
+
19
+ - Run the unit tests:
20
+
21
+ ```bash
22
+ npm run test
23
+ ```
24
+
25
+ - Build the library:
26
+
27
+ ```bash
28
+ npm run build
29
+ ```
@@ -0,0 +1,36 @@
1
+ require("./chunk-CZWwpsFl.cjs");
2
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-DQXgr64F.cjs");
3
+ let vue = require("vue");
4
+ //#region src/packages/controls/MyButton/MyButton.vue?vue&type=script&setup=true&lang.ts
5
+ var MyButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
6
+ __name: "MyButton",
7
+ props: { type: {
8
+ type: String,
9
+ required: false
10
+ } },
11
+ setup(__props) {
12
+ const count = (0, vue.ref)(0);
13
+ return (_ctx, _cache) => {
14
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("button", {
15
+ class: "my-button",
16
+ onClick: _cache[0] || (_cache[0] = ($event) => count.value++)
17
+ }, [
18
+ _cache[1] || (_cache[1] = (0, vue.createTextVNode)(" my button", -1)),
19
+ _cache[2] || (_cache[2] = (0, vue.createElementVNode)("br", null, null, -1)),
20
+ (0, vue.createTextVNode)(" type: " + (0, vue.toDisplayString)(__props.type), 1),
21
+ _cache[3] || (_cache[3] = (0, vue.createElementVNode)("br", null, null, -1)),
22
+ (0, vue.createTextVNode)(" count: " + (0, vue.toDisplayString)(count.value), 1)
23
+ ]);
24
+ };
25
+ }
26
+ });
27
+ //#endregion
28
+ //#region src/packages/controls/MyButton/MyButton.vue
29
+ var MyButton_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(MyButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8d6f1d45"]]);
30
+ //#endregion
31
+ Object.defineProperty(exports, "MyButton_default", {
32
+ enumerable: true,
33
+ get: function() {
34
+ return MyButton_default;
35
+ }
36
+ });
@@ -0,0 +1,28 @@
1
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DbXABBKy.js";
2
+ import { createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, ref, toDisplayString } from "vue";
3
+ //#endregion
4
+ //#region src/packages/controls/MyButton/MyButton.vue
5
+ var MyButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
6
+ __name: "MyButton",
7
+ props: { type: {
8
+ type: String,
9
+ required: false
10
+ } },
11
+ setup(__props) {
12
+ const count = ref(0);
13
+ return (_ctx, _cache) => {
14
+ return openBlock(), createElementBlock("button", {
15
+ class: "my-button",
16
+ onClick: _cache[0] || (_cache[0] = ($event) => count.value++)
17
+ }, [
18
+ _cache[1] || (_cache[1] = createTextVNode(" my button", -1)),
19
+ _cache[2] || (_cache[2] = createElementVNode("br", null, null, -1)),
20
+ createTextVNode(" type: " + toDisplayString(__props.type), 1),
21
+ _cache[3] || (_cache[3] = createElementVNode("br", null, null, -1)),
22
+ createTextVNode(" count: " + toDisplayString(count.value), 1)
23
+ ]);
24
+ };
25
+ }
26
+ }), [["__scopeId", "data-v-8d6f1d45"]]);
27
+ //#endregion
28
+ export { MyButton_default as t };
@@ -0,0 +1,13 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var _plugin_vue_export_helper_default = (sfc, props) => {
3
+ const target = sfc.__vccOpts || sfc;
4
+ for (const [key, val] of props) target[key] = val;
5
+ return target;
6
+ };
7
+ //#endregion
8
+ Object.defineProperty(exports, "_plugin_vue_export_helper_default", {
9
+ enumerable: true,
10
+ get: function() {
11
+ return _plugin_vue_export_helper_default;
12
+ }
13
+ });
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var _plugin_vue_export_helper_default = (sfc, props) => {
3
+ const target = sfc.__vccOpts || sfc;
4
+ for (const [key, val] of props) target[key] = val;
5
+ return target;
6
+ };
7
+ //#endregion
8
+ export { _plugin_vue_export_helper_default as t };
@@ -0,0 +1,71 @@
1
+ const require_chunk = require("./chunk-CZWwpsFl.cjs");
2
+ const require_objects = require("./objects-o7u5s_lI.cjs");
3
+ const require_packages_utils_vue = require("./packages/utils/vue.cjs");
4
+ require("./utils-egS_3P4w.cjs");
5
+ let vue = require("vue");
6
+ let element_plus = require("element-plus");
7
+ //#region src/packages/controls/affix/affix.vue?vue&type=script&setup=true&lang.ts
8
+ const _hoisted_1 = ["innerHTML"];
9
+ const _hoisted_2 = { key: 2 };
10
+ //#endregion
11
+ //#region src/packages/controls/affix/affix.vue
12
+ var affix_default = /* @__PURE__ */ (0, vue.defineComponent)({
13
+ __name: "affix",
14
+ props: { control: {
15
+ type: Object,
16
+ required: true
17
+ } },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const affixProps = (0, vue.computed)(() => {
21
+ const { ...rest } = props.control;
22
+ return rest;
23
+ });
24
+ const handleChange = (fixed) => {
25
+ props.control.change?.(fixed);
26
+ };
27
+ const handleScroll = (val) => {
28
+ props.control.scroll?.(val);
29
+ };
30
+ return (_ctx, _cache) => {
31
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(element_plus.ElAffix), (0, vue.mergeProps)(affixProps.value, {
32
+ onChange: handleChange,
33
+ onScroll: handleScroll
34
+ }), (0, vue.createSlots)({
35
+ default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(element_plus.ElButton), { type: "primary" }, {
36
+ default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.control.name), 1)]),
37
+ _: 1
38
+ })]),
39
+ _: 2
40
+ }, [__props.control.default ? {
41
+ name: "default",
42
+ fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_objects.isComponent)(__props.control.default) && (0, vue.unref)(require_objects.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && (0, vue.unref)(require_objects.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
43
+ key: 1,
44
+ innerHTML: __props.control.default
45
+ }, null, 8, _hoisted_1)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2, (0, vue.toDisplayString)(__props.control.default), 1))]),
46
+ key: "0"
47
+ } : void 0]), 1040);
48
+ };
49
+ }
50
+ });
51
+ //#endregion
52
+ //#region src/packages/controls/affix/affix.ts
53
+ var affix_exports = /* @__PURE__ */ require_chunk.__exportAll({
54
+ Template: () => Template,
55
+ init: () => init
56
+ });
57
+ const Template = require_packages_utils_vue.withInstall(affix_default);
58
+ function init(moduleName, name, options = {}) {
59
+ return {
60
+ moduleName,
61
+ name,
62
+ ...options
63
+ };
64
+ }
65
+ //#endregion
66
+ Object.defineProperty(exports, "affix_exports", {
67
+ enumerable: true,
68
+ get: function() {
69
+ return affix_exports;
70
+ }
71
+ });
@@ -0,0 +1,66 @@
1
+ import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
+ import { m as isComponent, y as isHTML } from "./objects-CLXPNOUW.js";
3
+ import { withInstall } from "./packages/utils/vue.js";
4
+ import "./utils-DlBKdS0t.js";
5
+ import { computed, createBlock, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
6
+ import { ElAffix, ElButton } from "element-plus";
7
+ //#region src/packages/controls/affix/affix.vue?vue&type=script&setup=true&lang.ts
8
+ const _hoisted_1 = ["innerHTML"];
9
+ const _hoisted_2 = { key: 2 };
10
+ //#endregion
11
+ //#region src/packages/controls/affix/affix.vue
12
+ var affix_default = /* @__PURE__ */ defineComponent({
13
+ __name: "affix",
14
+ props: { control: {
15
+ type: Object,
16
+ required: true
17
+ } },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const affixProps = computed(() => {
21
+ const { ...rest } = props.control;
22
+ return rest;
23
+ });
24
+ const handleChange = (fixed) => {
25
+ props.control.change?.(fixed);
26
+ };
27
+ const handleScroll = (val) => {
28
+ props.control.scroll?.(val);
29
+ };
30
+ return (_ctx, _cache) => {
31
+ return openBlock(), createBlock(unref(ElAffix), mergeProps(affixProps.value, {
32
+ onChange: handleChange,
33
+ onScroll: handleScroll
34
+ }), createSlots({
35
+ default: withCtx(() => [createVNode(unref(ElButton), { type: "primary" }, {
36
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.control.name), 1)]),
37
+ _: 1
38
+ })]),
39
+ _: 2
40
+ }, [__props.control.default ? {
41
+ name: "default",
42
+ 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", {
43
+ key: 1,
44
+ innerHTML: __props.control.default
45
+ }, null, 8, _hoisted_1)) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.control.default), 1))]),
46
+ key: "0"
47
+ } : void 0]), 1040);
48
+ };
49
+ }
50
+ });
51
+ //#endregion
52
+ //#region src/packages/controls/affix/affix.ts
53
+ var affix_exports = /* @__PURE__ */ __exportAll({
54
+ Template: () => Template,
55
+ init: () => init
56
+ });
57
+ const Template = withInstall(affix_default);
58
+ function init(moduleName, name, options = {}) {
59
+ return {
60
+ moduleName,
61
+ name,
62
+ ...options
63
+ };
64
+ }
65
+ //#endregion
66
+ export { affix_exports as t };
@@ -0,0 +1,132 @@
1
+ const require_chunk = require("./chunk-CZWwpsFl.cjs");
2
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-DQXgr64F.cjs");
3
+ const require_objects = require("./objects-o7u5s_lI.cjs");
4
+ const require_packages_utils_vue = require("./packages/utils/vue.cjs");
5
+ require("./utils-egS_3P4w.cjs");
6
+ const require_locale = require("./locale-WzzxOobw.cjs");
7
+ let vue = require("vue");
8
+ let element_plus = require("element-plus");
9
+ //#region src/packages/controls/button/button.vue?vue&type=script&setup=true&lang.ts
10
+ const _hoisted_1 = ["innerHTML"];
11
+ const _hoisted_2 = { key: 2 };
12
+ const _hoisted_3 = ["innerHTML"];
13
+ const _hoisted_4 = { key: 2 };
14
+ const _hoisted_5 = ["innerHTML"];
15
+ const _hoisted_6 = { key: 2 };
16
+ var button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
17
+ __name: "button",
18
+ props: { control: {
19
+ type: Object,
20
+ required: true
21
+ } },
22
+ emits: ["click"],
23
+ setup(__props, { emit: __emit }) {
24
+ const props = __props;
25
+ const buttonProps = (0, vue.computed)(() => {
26
+ const { default: _default, iconSlot, loadingSlot, suffixIcon, ...rest } = props.control;
27
+ return { ...rest };
28
+ });
29
+ const label = (0, vue.computed)(() => {
30
+ const { moduleName, name, label } = props.control;
31
+ return label ? require_locale.t(label) : require_locale.t(`${moduleName}.${name}`);
32
+ });
33
+ const emits = __emit;
34
+ function onClick(evt) {
35
+ emits("click", props.control);
36
+ }
37
+ return (_ctx, _cache) => {
38
+ const _component_ElIcon = (0, vue.resolveComponent)("ElIcon");
39
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(element_plus.ElButton), (0, vue.mergeProps)(buttonProps.value, {
40
+ class: { "separator-class": __props.control.separator },
41
+ onClick: (0, vue.withModifiers)(onClick, ["stop"])
42
+ }), (0, vue.createSlots)({ _: 2 }, [
43
+ _ctx.$slots.default ? {
44
+ name: "default",
45
+ fn: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true)]),
46
+ key: "0"
47
+ } : __props.control.default ? {
48
+ name: "default",
49
+ fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_objects.isComponent)(__props.control.default) && !(0, vue.unref)(require_objects.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.markRaw)(__props.control.default)), { key: 0 })) : typeof __props.control.default === "string" && (0, vue.unref)(require_objects.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
50
+ key: 1,
51
+ innerHTML: __props.control.default
52
+ }, null, 8, _hoisted_1)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2, (0, vue.toDisplayString)(__props.control.default), 1))]),
53
+ key: "1"
54
+ } : __props.control.separator ? {
55
+ name: "default",
56
+ fn: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(element_plus.ElDivider), {
57
+ direction: "vertical",
58
+ "content-position": "center"
59
+ })]),
60
+ key: "2"
61
+ } : {
62
+ name: "default",
63
+ fn: (0, vue.withCtx)(() => [
64
+ (0, vue.createTextVNode)((0, vue.toDisplayString)(label.value) + " ", 1),
65
+ (0, vue.createCommentVNode)(" 后缀图标 "),
66
+ __props.control.suffixIcon ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_ElIcon, {
67
+ key: 0,
68
+ class: "el-icon--right"
69
+ }, {
70
+ default: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.markRaw)(__props.control.suffixIcon))))]),
71
+ _: 1
72
+ })) : (0, vue.createCommentVNode)("v-if", true)
73
+ ]),
74
+ key: "3"
75
+ },
76
+ _ctx.$slots.loading ? {
77
+ name: "loading",
78
+ fn: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "loading", {}, void 0, true)]),
79
+ key: "4"
80
+ } : __props.control.loadingSlot ? {
81
+ name: "loading",
82
+ fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_objects.isComponent)(__props.control.loadingSlot) && !(0, vue.unref)(require_objects.isHTML)(__props.control.loadingSlot) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.markRaw)(__props.control.loadingSlot)), { key: 0 })) : typeof __props.control.loadingSlot === "string" && (0, vue.unref)(require_objects.isHTML)(__props.control.loadingSlot) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
83
+ key: 1,
84
+ innerHTML: __props.control.loadingSlot
85
+ }, null, 8, _hoisted_3)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_4, (0, vue.toDisplayString)(__props.control.loadingSlot), 1))]),
86
+ key: "5"
87
+ } : void 0,
88
+ _ctx.$slots.icon ? {
89
+ name: "icon",
90
+ fn: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "icon", {}, void 0, true)]),
91
+ key: "6"
92
+ } : __props.control.iconSlot ? {
93
+ name: "icon",
94
+ fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_objects.isComponent)(__props.control.iconSlot) && !(0, vue.unref)(require_objects.isHTML)(__props.control.iconSlot) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.markRaw)(__props.control.iconSlot)), { key: 0 })) : typeof __props.control.iconSlot === "string" && (0, vue.unref)(require_objects.isHTML)(__props.control.iconSlot) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
95
+ key: 1,
96
+ innerHTML: __props.control.iconSlot
97
+ }, null, 8, _hoisted_5)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_6, (0, vue.toDisplayString)(__props.control.iconSlot), 1))]),
98
+ key: "7"
99
+ } : void 0
100
+ ]), 1040, ["class"]);
101
+ };
102
+ }
103
+ });
104
+ //#endregion
105
+ //#region src/packages/controls/button/button.vue
106
+ var button_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(button_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-2741bf9a"]]);
107
+ //#endregion
108
+ //#region src/packages/controls/button/button.ts
109
+ var button_exports = /* @__PURE__ */ require_chunk.__exportAll({
110
+ Template: () => Template,
111
+ init: () => init
112
+ });
113
+ const Template = require_packages_utils_vue.withInstall(button_default);
114
+ function init(moduleName, name, options) {
115
+ return {
116
+ moduleName,
117
+ name,
118
+ customized: false,
119
+ separator: false,
120
+ ...options,
121
+ controlType: "button",
122
+ text: options?.separator ?? options?.text,
123
+ disabled: options?.separator ?? options?.disabled
124
+ };
125
+ }
126
+ //#endregion
127
+ Object.defineProperty(exports, "button_exports", {
128
+ enumerable: true,
129
+ get: function() {
130
+ return button_exports;
131
+ }
132
+ });
@@ -0,0 +1,126 @@
1
+ import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DbXABBKy.js";
3
+ import { m as isComponent, y as isHTML } from "./objects-CLXPNOUW.js";
4
+ import { withInstall } from "./packages/utils/vue.js";
5
+ import "./utils-DlBKdS0t.js";
6
+ import { u as t } from "./locale-DhlAaV1Q.js";
7
+ import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, markRaw, mergeProps, openBlock, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
8
+ import { ElButton, ElDivider } from "element-plus";
9
+ //#region src/packages/controls/button/button.vue?vue&type=script&setup=true&lang.ts
10
+ const _hoisted_1 = ["innerHTML"];
11
+ const _hoisted_2 = { key: 2 };
12
+ const _hoisted_3 = ["innerHTML"];
13
+ const _hoisted_4 = { key: 2 };
14
+ const _hoisted_5 = ["innerHTML"];
15
+ const _hoisted_6 = { key: 2 };
16
+ //#endregion
17
+ //#region src/packages/controls/button/button.vue
18
+ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
19
+ __name: "button",
20
+ props: { control: {
21
+ type: Object,
22
+ required: true
23
+ } },
24
+ emits: ["click"],
25
+ setup(__props, { emit: __emit }) {
26
+ const props = __props;
27
+ const buttonProps = computed(() => {
28
+ const { default: _default, iconSlot, loadingSlot, suffixIcon, ...rest } = props.control;
29
+ return { ...rest };
30
+ });
31
+ const label = computed(() => {
32
+ const { moduleName, name, label } = props.control;
33
+ return label ? t(label) : t(`${moduleName}.${name}`);
34
+ });
35
+ const emits = __emit;
36
+ function onClick(evt) {
37
+ emits("click", props.control);
38
+ }
39
+ return (_ctx, _cache) => {
40
+ const _component_ElIcon = resolveComponent("ElIcon");
41
+ return openBlock(), createBlock(unref(ElButton), mergeProps(buttonProps.value, {
42
+ class: { "separator-class": __props.control.separator },
43
+ onClick: withModifiers(onClick, ["stop"])
44
+ }), createSlots({ _: 2 }, [
45
+ _ctx.$slots.default ? {
46
+ name: "default",
47
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
48
+ key: "0"
49
+ } : __props.control.default ? {
50
+ name: "default",
51
+ 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", {
52
+ key: 1,
53
+ innerHTML: __props.control.default
54
+ }, null, 8, _hoisted_1)) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.control.default), 1))]),
55
+ key: "1"
56
+ } : __props.control.separator ? {
57
+ name: "default",
58
+ fn: withCtx(() => [createVNode(unref(ElDivider), {
59
+ direction: "vertical",
60
+ "content-position": "center"
61
+ })]),
62
+ key: "2"
63
+ } : {
64
+ name: "default",
65
+ fn: withCtx(() => [
66
+ createTextVNode(toDisplayString(label.value) + " ", 1),
67
+ createCommentVNode(" 后缀图标 "),
68
+ __props.control.suffixIcon ? (openBlock(), createBlock(_component_ElIcon, {
69
+ key: 0,
70
+ class: "el-icon--right"
71
+ }, {
72
+ default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(markRaw(__props.control.suffixIcon))))]),
73
+ _: 1
74
+ })) : createCommentVNode("v-if", true)
75
+ ]),
76
+ key: "3"
77
+ },
78
+ _ctx.$slots.loading ? {
79
+ name: "loading",
80
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "loading", {}, void 0, true)]),
81
+ key: "4"
82
+ } : __props.control.loadingSlot ? {
83
+ name: "loading",
84
+ fn: withCtx(() => [unref(isComponent)(__props.control.loadingSlot) && !unref(isHTML)(__props.control.loadingSlot) ? (openBlock(), createBlock(resolveDynamicComponent(markRaw(__props.control.loadingSlot)), { key: 0 })) : typeof __props.control.loadingSlot === "string" && unref(isHTML)(__props.control.loadingSlot) ? (openBlock(), createElementBlock("div", {
85
+ key: 1,
86
+ innerHTML: __props.control.loadingSlot
87
+ }, null, 8, _hoisted_3)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.control.loadingSlot), 1))]),
88
+ key: "5"
89
+ } : void 0,
90
+ _ctx.$slots.icon ? {
91
+ name: "icon",
92
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, void 0, true)]),
93
+ key: "6"
94
+ } : __props.control.iconSlot ? {
95
+ name: "icon",
96
+ fn: withCtx(() => [unref(isComponent)(__props.control.iconSlot) && !unref(isHTML)(__props.control.iconSlot) ? (openBlock(), createBlock(resolveDynamicComponent(markRaw(__props.control.iconSlot)), { key: 0 })) : typeof __props.control.iconSlot === "string" && unref(isHTML)(__props.control.iconSlot) ? (openBlock(), createElementBlock("div", {
97
+ key: 1,
98
+ innerHTML: __props.control.iconSlot
99
+ }, null, 8, _hoisted_5)) : (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.control.iconSlot), 1))]),
100
+ key: "7"
101
+ } : void 0
102
+ ]), 1040, ["class"]);
103
+ };
104
+ }
105
+ }), [["__scopeId", "data-v-2741bf9a"]]);
106
+ //#endregion
107
+ //#region src/packages/controls/button/button.ts
108
+ var button_exports = /* @__PURE__ */ __exportAll({
109
+ Template: () => Template,
110
+ init: () => init
111
+ });
112
+ const Template = withInstall(button_default);
113
+ function init(moduleName, name, options) {
114
+ return {
115
+ moduleName,
116
+ name,
117
+ customized: false,
118
+ separator: false,
119
+ ...options,
120
+ controlType: "button",
121
+ text: options?.separator ?? options?.text,
122
+ disabled: options?.separator ?? options?.disabled
123
+ };
124
+ }
125
+ //#endregion
126
+ export { button_exports as t };
@@ -0,0 +1,43 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
15
+ return target;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
19
+ key = keys[i];
20
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
21
+ get: ((k) => from[k]).bind(null, key),
22
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23
+ });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ //#endregion
32
+ Object.defineProperty(exports, "__exportAll", {
33
+ enumerable: true,
34
+ get: function() {
35
+ return __exportAll;
36
+ }
37
+ });
38
+ Object.defineProperty(exports, "__toESM", {
39
+ enumerable: true,
40
+ get: function() {
41
+ return __toESM;
42
+ }
43
+ });
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll as t };
@@ -0,0 +1 @@
1
+ require("./packages/config.cjs");
package/dist/config.js ADDED
@@ -0,0 +1 @@
1
+ import "./packages/config.js";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_json = require("../json-BkkaM20u.cjs");
3
+ exports.area = require_json.area;
4
+ exports.tags = require_json.tags;
@@ -0,0 +1,2 @@
1
+ import { n as tags, t as area } from "../index-DhOoJCHW.cjs";
2
+ export { area, tags };
@@ -0,0 +1,2 @@
1
+ import { n as tags, t as area } from "../index-1ELDRrC5.js";
2
+ export { area, tags };
@@ -0,0 +1,2 @@
1
+ import { n as tags, t as area } from "../json-D-_zTSK6.js";
2
+ export { area, tags };
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_json = require("./json-BkkaM20u.cjs");
3
+ const require_packages_constants = require("./packages/constants.cjs");
4
+ exports.CHANGE_EVENT = require_packages_constants.CHANGE_EVENT;
5
+ exports.EVENT_CODE = require_packages_constants.EVENT_CODE;
6
+ exports.INPUT_EVENT = require_packages_constants.INPUT_EVENT;
7
+ exports.INSTALLED_KEY = require_packages_constants.INSTALLED_KEY;
8
+ exports.UPDATE_MODEL_EVENT = require_packages_constants.UPDATE_MODEL_EVENT;
9
+ exports.WEEK_DAYS = require_packages_constants.WEEK_DAYS;
10
+ exports.area = require_json.area;
11
+ exports.componentSizeMap = require_packages_constants.componentSizeMap;
12
+ exports.componentSizes = require_packages_constants.componentSizes;
13
+ exports.datePickTypes = require_packages_constants.datePickTypes;
14
+ exports.tags = require_json.tags;
@@ -0,0 +1,3 @@
1
+ import { C as EVENT_CODE, S as datePickTypes, _ as CHANGE_EVENT, a as complexT, b as DatePickType, c as controlInputTypeT, d as ComponentSize, f as componentSizeMap, g as INSTALLED_KEY, h as typeT, i as areaT, l as labelPositionI, m as sizeT, n as JSONValue, o as controlBaseTypeT, p as componentSizes, r as infoI, s as controlContainerTypeT, t as baseT, u as modelT, v as INPUT_EVENT, x as WEEK_DAYS, y as UPDATE_MODEL_EVENT } from "./index-5JdIJn1m.cjs";
2
+ import { n as tags, t as area } from "./index-DhOoJCHW.cjs";
3
+ export { CHANGE_EVENT, ComponentSize, DatePickType, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, JSONValue, UPDATE_MODEL_EVENT, WEEK_DAYS, area, areaT, baseT, complexT, componentSizeMap, componentSizes, controlBaseTypeT, controlContainerTypeT, controlInputTypeT, datePickTypes, infoI, labelPositionI, modelT, sizeT, tags, typeT };
@@ -0,0 +1,3 @@
1
+ import { C as EVENT_CODE, S as datePickTypes, _ as CHANGE_EVENT, a as complexT, b as DatePickType, c as controlInputTypeT, d as ComponentSize, f as componentSizeMap, g as INSTALLED_KEY, h as typeT, i as areaT, l as labelPositionI, m as sizeT, n as JSONValue, o as controlBaseTypeT, p as componentSizes, r as infoI, s as controlContainerTypeT, t as baseT, u as modelT, v as INPUT_EVENT, x as WEEK_DAYS, y as UPDATE_MODEL_EVENT } from "./index-BHq-BMCP.js";
2
+ import { n as tags, t as area } from "./index-1ELDRrC5.js";
3
+ export { CHANGE_EVENT, ComponentSize, DatePickType, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, JSONValue, UPDATE_MODEL_EVENT, WEEK_DAYS, area, areaT, baseT, complexT, componentSizeMap, componentSizes, controlBaseTypeT, controlContainerTypeT, controlInputTypeT, datePickTypes, infoI, labelPositionI, modelT, sizeT, tags, typeT };
@@ -0,0 +1,3 @@
1
+ import { n as tags, t as area } from "./json-D-_zTSK6.js";
2
+ import { CHANGE_EVENT, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, UPDATE_MODEL_EVENT, WEEK_DAYS, componentSizeMap, componentSizes, datePickTypes } from "./packages/constants.js";
3
+ export { CHANGE_EVENT, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, UPDATE_MODEL_EVENT, WEEK_DAYS, area, componentSizeMap, componentSizes, datePickTypes, tags };
@@ -0,0 +1,3 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_MyButton = require("../MyButton-C1krVCi6.cjs");
3
+ exports.MyButton = require_MyButton.MyButton_default;
@@ -0,0 +1,2 @@
1
+ import { t as _default } from "../index-PhthUD7x.cjs";
2
+ export { _default as MyButton };
@@ -0,0 +1,2 @@
1
+ import { t as _default } from "../index-BtOBjeH7.js";
2
+ export { _default as MyButton };
@@ -0,0 +1,2 @@
1
+ import { t as MyButton_default } from "../MyButton-C7riFwH6.js";
2
+ export { MyButton_default as MyButton };
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_affix = require("../affix-CYU-9qMr.cjs");
3
+ Object.defineProperty(exports, "RwAffix", {
4
+ enumerable: true,
5
+ get: function() {
6
+ return require_affix.affix_exports;
7
+ }
8
+ });