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.
- package/README.md +29 -0
- package/dist/MyButton-C1krVCi6.cjs +36 -0
- package/dist/MyButton-C7riFwH6.js +28 -0
- package/dist/_plugin-vue_export-helper-DQXgr64F.cjs +13 -0
- package/dist/_plugin-vue_export-helper-DbXABBKy.js +8 -0
- package/dist/affix-CYU-9qMr.cjs +71 -0
- package/dist/affix-D9EM8_Um.js +66 -0
- package/dist/button-CGv1WHzT.cjs +132 -0
- package/dist/button-tOWSPPxz.js +126 -0
- package/dist/chunk-CZWwpsFl.cjs +43 -0
- package/dist/chunk-pbuEa-1d.js +13 -0
- package/dist/config.cjs +1 -0
- package/dist/config.js +1 -0
- package/dist/constants/json.cjs +4 -0
- package/dist/constants/json.d.cts +2 -0
- package/dist/constants/json.d.ts +2 -0
- package/dist/constants/json.js +2 -0
- package/dist/constants.cjs +14 -0
- package/dist/constants.d.cts +3 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +3 -0
- package/dist/controls/MyButton.cjs +3 -0
- package/dist/controls/MyButton.d.cts +2 -0
- package/dist/controls/MyButton.d.ts +2 -0
- package/dist/controls/MyButton.js +2 -0
- package/dist/controls/affix.cjs +8 -0
- package/dist/controls/affix.d.cts +2 -0
- package/dist/controls/affix.d.ts +2 -0
- package/dist/controls/affix.js +2 -0
- package/dist/controls/button.cjs +8 -0
- package/dist/controls/button.js +2 -0
- package/dist/controls.cjs +18 -0
- package/dist/controls.d.cts +10 -0
- package/dist/controls.d.ts +10 -0
- package/dist/controls.js +5 -0
- package/dist/dom-CllENWMY.js +346 -0
- package/dist/dom-DS4YqkjW.cjs +580 -0
- package/dist/index-1ELDRrC5.d.ts +1397 -0
- package/dist/index-5JdIJn1m.d.cts +74 -0
- package/dist/index-6KzLtJFy.d.cts +157 -0
- package/dist/index-BGkTN1DD.d.cts +15 -0
- package/dist/index-BHq-BMCP.d.ts +74 -0
- package/dist/index-BI-hrf4t.d.ts +332 -0
- package/dist/index-BtOBjeH7.d.ts +10 -0
- package/dist/index-C-uY4885.d.cts +23 -0
- package/dist/index-C5SJLWEN.d.ts +23 -0
- package/dist/index-CSvc8L11.d.cts +51 -0
- package/dist/index-CeemHBNT.d.ts +51 -0
- package/dist/index-CfkAYIKD.d.cts +80 -0
- package/dist/index-CiJC-ieW.d.ts +157 -0
- package/dist/index-DamAmum6.d.ts +15 -0
- package/dist/index-DhOoJCHW.d.cts +1397 -0
- package/dist/index-PhthUD7x.d.cts +10 -0
- package/dist/index-oDsyZ3t2.d.cts +332 -0
- package/dist/index-x9xs2cbA.d.ts +80 -0
- package/dist/json-BkkaM20u.cjs +31034 -0
- package/dist/json-D-_zTSK6.js +31023 -0
- package/dist/locale-DhlAaV1Q.js +597 -0
- package/dist/locale-WzzxOobw.cjs +658 -0
- package/dist/locale.cjs +12 -0
- package/dist/locale.js +2 -0
- package/dist/objects-CLXPNOUW.js +134 -0
- package/dist/objects-o7u5s_lI.cjs +272 -0
- package/dist/packages/config.cjs +10 -0
- package/dist/packages/config.d.cts +2 -0
- package/dist/packages/config.d.ts +2 -0
- package/dist/packages/config.js +5 -0
- package/dist/packages/constants/json.cjs +4 -0
- package/dist/packages/constants/json.js +2 -0
- package/dist/packages/constants.cjs +78 -0
- package/dist/packages/constants.js +67 -0
- package/dist/packages/controls/MyButton.cjs +3 -0
- package/dist/packages/controls/MyButton.js +2 -0
- package/dist/packages/controls/affix.cjs +8 -0
- package/dist/packages/controls/affix.js +2 -0
- package/dist/packages/controls/button.cjs +8 -0
- package/dist/packages/controls/button.d.cts +2 -0
- package/dist/packages/controls/button.d.ts +2 -0
- package/dist/packages/controls/button.js +2 -0
- package/dist/packages/controls.cjs +31 -0
- package/dist/packages/controls.js +12 -0
- package/dist/packages/locale.cjs +12 -0
- package/dist/packages/locale.d.cts +39 -0
- package/dist/packages/locale.d.ts +39 -0
- package/dist/packages/locale.js +2 -0
- package/dist/packages/stores.cjs +337 -0
- package/dist/packages/stores.js +320 -0
- package/dist/packages/utils/dom.cjs +32 -0
- package/dist/packages/utils/dom.d.cts +2 -0
- package/dist/packages/utils/dom.d.ts +2 -0
- package/dist/packages/utils/dom.js +2 -0
- package/dist/packages/utils/vue/props.cjs +63 -0
- package/dist/packages/utils/vue/props.d.cts +2 -0
- package/dist/packages/utils/vue/props.d.ts +2 -0
- package/dist/packages/utils/vue/props.js +56 -0
- package/dist/packages/utils/vue.cjs +32 -0
- package/dist/packages/utils/vue.d.cts +3 -0
- package/dist/packages/utils/vue.d.ts +3 -0
- package/dist/packages/utils/vue.js +24 -0
- package/dist/packages/utils.cjs +190 -0
- package/dist/packages/utils.js +6 -0
- package/dist/packages.cjs +15 -0
- package/dist/packages.d.cts +3 -0
- package/dist/packages.d.ts +3 -0
- package/dist/packages.js +3 -0
- package/dist/stores.cjs +17 -0
- package/dist/stores.d.cts +805 -0
- package/dist/stores.d.ts +805 -0
- package/dist/stores.js +4 -0
- package/dist/style.css +15 -0
- package/dist/utils/dom.cjs +32 -0
- package/dist/utils/dom.js +2 -0
- package/dist/utils/vue/props.cjs +7 -0
- package/dist/utils/vue/props.js +2 -0
- package/dist/utils/vue.cjs +11 -0
- package/dist/utils/vue.js +3 -0
- package/dist/utils-DlBKdS0t.js +696 -0
- package/dist/utils-egS_3P4w.cjs +850 -0
- package/dist/utils.cjs +190 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +6 -0
- package/package.json +184 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { isArray, isArray as isArray$1, isDate, isFunction, isObject, isObject as isObject$2, isPlainObject as isPlainObject$1, isPromise, isString, isString as isString$1, isSymbol } from "@vue/shared";
|
|
2
|
+
import { isNil } from "lodash-unified";
|
|
3
|
+
import { isObject as isObject$1, isPlainObject, merge } from "lodash-es";
|
|
4
|
+
//#region src/packages/utils/types.ts
|
|
5
|
+
const isUndefined = (val) => val === void 0;
|
|
6
|
+
const isBoolean = (val) => typeof val === "boolean";
|
|
7
|
+
const isNumber = (val) => typeof val === "number";
|
|
8
|
+
const isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
|
|
9
|
+
const isElement = (e) => {
|
|
10
|
+
if (typeof Element === "undefined") return false;
|
|
11
|
+
return e instanceof Element;
|
|
12
|
+
};
|
|
13
|
+
const isPropAbsent = (prop) => isNil(prop);
|
|
14
|
+
const isStringNumber = (val) => {
|
|
15
|
+
if (!isString(val)) return false;
|
|
16
|
+
return !Number.isNaN(Number(val));
|
|
17
|
+
};
|
|
18
|
+
const isWindow = (val) => val === window;
|
|
19
|
+
/** 增加 */
|
|
20
|
+
const isHTML = (val) => {
|
|
21
|
+
return /^<[a-z]+(\s[^>]+)?>[\s\S]*<\/[a-z]+>$/.test(val);
|
|
22
|
+
};
|
|
23
|
+
const isComponent = (val) => {
|
|
24
|
+
if (isString(val) || isObject(val)) return true;
|
|
25
|
+
if (typeof val === "function") return true;
|
|
26
|
+
if (val === null || val === void 0) return true;
|
|
27
|
+
return false;
|
|
28
|
+
};
|
|
29
|
+
const renderTemplate = (template, data) => {
|
|
30
|
+
return template.replace(/\{\{\s*([^}]+)\s*\}\}/g, (_, key) => {
|
|
31
|
+
const keys = key.trim().split(".");
|
|
32
|
+
let value = data;
|
|
33
|
+
for (const k of keys) {
|
|
34
|
+
value = value?.[k];
|
|
35
|
+
if (value === void 0) return "";
|
|
36
|
+
}
|
|
37
|
+
return String(value ?? "");
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const stringToArray = (value) => {
|
|
41
|
+
if (isEmpty(value)) return [];
|
|
42
|
+
return value.split(",");
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/packages/utils/objects.ts
|
|
46
|
+
const keysOf = (arr) => Object.keys(arr);
|
|
47
|
+
const entriesOf = (arr) => Object.entries(arr);
|
|
48
|
+
const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
|
|
49
|
+
const deepMerge = (target, ...sources) => {
|
|
50
|
+
return merge({}, target, ...sources);
|
|
51
|
+
};
|
|
52
|
+
const deepMergeInPlace = (target, source = {}) => {
|
|
53
|
+
Object.keys(source).forEach((key) => {
|
|
54
|
+
const targetValue = target[key];
|
|
55
|
+
const sourceValue = source[key];
|
|
56
|
+
if (isPlainObject(targetValue) && isPlainObject(sourceValue)) deepMergeInPlace(targetValue, sourceValue);
|
|
57
|
+
else if (sourceValue !== void 0) target[key] = sourceValue;
|
|
58
|
+
});
|
|
59
|
+
return target;
|
|
60
|
+
};
|
|
61
|
+
const validateObjectStructure = (data, requiredKeys = []) => {
|
|
62
|
+
if (!isPlainObject(data)) return false;
|
|
63
|
+
if (requiredKeys.length > 0) return requiredKeys.some((key) => key in data);
|
|
64
|
+
return true;
|
|
65
|
+
};
|
|
66
|
+
const safeSet = (obj, path, value) => {
|
|
67
|
+
try {
|
|
68
|
+
const keys = path.split(".");
|
|
69
|
+
let current = obj;
|
|
70
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
71
|
+
const key = keys[i];
|
|
72
|
+
if (!isPlainObject(current[key])) current[key] = {};
|
|
73
|
+
current = current[key];
|
|
74
|
+
}
|
|
75
|
+
current[keys[keys.length - 1]] = value;
|
|
76
|
+
return true;
|
|
77
|
+
} catch {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const safeGet = (obj, path, defaultValue) => {
|
|
82
|
+
try {
|
|
83
|
+
const keys = path.split(".");
|
|
84
|
+
let current = obj;
|
|
85
|
+
for (const key of keys) {
|
|
86
|
+
if (current == null || !isObject$1(current)) return defaultValue;
|
|
87
|
+
current = current[key];
|
|
88
|
+
}
|
|
89
|
+
return current !== void 0 ? current : defaultValue;
|
|
90
|
+
} catch {
|
|
91
|
+
return defaultValue;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const getProp = (obj, path, defaultValue) => {
|
|
95
|
+
const pathStr = Array.isArray(path) ? path.join(".") : path;
|
|
96
|
+
return {
|
|
97
|
+
get value() {
|
|
98
|
+
return safeGet(obj, pathStr, defaultValue);
|
|
99
|
+
},
|
|
100
|
+
set value(val) {
|
|
101
|
+
safeSet(obj, pathStr, val);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
function assignmentData(initial, current) {
|
|
106
|
+
const result = {};
|
|
107
|
+
for (const key in initial) {
|
|
108
|
+
const initialValue = initial[key];
|
|
109
|
+
const currentValue = current[key];
|
|
110
|
+
if (typeof initialValue === "object" && initialValue !== null && !Array.isArray(initialValue)) result[key] = assignmentData(initialValue, currentValue || {});
|
|
111
|
+
else if (Array.isArray(initialValue)) if (!currentValue) result[key] = [];
|
|
112
|
+
else if (Array.isArray(currentValue)) result[key] = [...currentValue];
|
|
113
|
+
else if (typeof currentValue === "number") result[key] = [currentValue];
|
|
114
|
+
else if (typeof currentValue === "string") result[key] = currentValue.split(",").map((item) => item.trim());
|
|
115
|
+
else {
|
|
116
|
+
console.warn(`Warning: Unsupported type for key "${key}". Expected string, number, or array.`);
|
|
117
|
+
result[key] = [];
|
|
118
|
+
}
|
|
119
|
+
else result[key] = currentValue !== void 0 ? currentValue : initialValue;
|
|
120
|
+
}
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
function transDataToString(initial) {
|
|
124
|
+
const result = {};
|
|
125
|
+
for (const key in initial) {
|
|
126
|
+
const initialValue = initial[key];
|
|
127
|
+
if (typeof initialValue === "object" && initialValue !== null && !Array.isArray(initialValue)) result[key] = transDataToString(initialValue);
|
|
128
|
+
else if (Array.isArray(initialValue)) result[key] = initialValue.join(",");
|
|
129
|
+
else result[key] = initialValue;
|
|
130
|
+
}
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
export { renderTemplate as A, isPromise as C, isSymbol as D, isStringNumber as E, isUndefined as O, isPlainObject$1 as S, isString$1 as T, isEmpty as _, getProp as a, isNumber as b, safeGet as c, validateObjectStructure as d, isArray$1 as f, isElement as g, isDate as h, entriesOf as i, stringToArray as j, isWindow as k, safeSet as l, isComponent as m, deepMerge as n, hasOwn as o, isBoolean as p, deepMergeInPlace as r, keysOf as s, assignmentData as t, transDataToString as u, isFunction as v, isPropAbsent as w, isObject$2 as x, isHTML as y };
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
require("./chunk-CZWwpsFl.cjs");
|
|
2
|
+
let _vue_shared = require("@vue/shared");
|
|
3
|
+
let lodash_unified = require("lodash-unified");
|
|
4
|
+
let lodash_es = require("lodash-es");
|
|
5
|
+
//#region src/packages/utils/types.ts
|
|
6
|
+
const isUndefined = (val) => val === void 0;
|
|
7
|
+
const isBoolean = (val) => typeof val === "boolean";
|
|
8
|
+
const isNumber = (val) => typeof val === "number";
|
|
9
|
+
const isEmpty = (val) => !val && val !== 0 || (0, _vue_shared.isArray)(val) && val.length === 0 || (0, _vue_shared.isObject)(val) && !Object.keys(val).length;
|
|
10
|
+
const isElement = (e) => {
|
|
11
|
+
if (typeof Element === "undefined") return false;
|
|
12
|
+
return e instanceof Element;
|
|
13
|
+
};
|
|
14
|
+
const isPropAbsent = (prop) => (0, lodash_unified.isNil)(prop);
|
|
15
|
+
const isStringNumber = (val) => {
|
|
16
|
+
if (!(0, _vue_shared.isString)(val)) return false;
|
|
17
|
+
return !Number.isNaN(Number(val));
|
|
18
|
+
};
|
|
19
|
+
const isWindow = (val) => val === window;
|
|
20
|
+
/** 增加 */
|
|
21
|
+
const isHTML = (val) => {
|
|
22
|
+
return /^<[a-z]+(\s[^>]+)?>[\s\S]*<\/[a-z]+>$/.test(val);
|
|
23
|
+
};
|
|
24
|
+
const isComponent = (val) => {
|
|
25
|
+
if ((0, _vue_shared.isString)(val) || (0, _vue_shared.isObject)(val)) return true;
|
|
26
|
+
if (typeof val === "function") return true;
|
|
27
|
+
if (val === null || val === void 0) return true;
|
|
28
|
+
return false;
|
|
29
|
+
};
|
|
30
|
+
const renderTemplate = (template, data) => {
|
|
31
|
+
return template.replace(/\{\{\s*([^}]+)\s*\}\}/g, (_, key) => {
|
|
32
|
+
const keys = key.trim().split(".");
|
|
33
|
+
let value = data;
|
|
34
|
+
for (const k of keys) {
|
|
35
|
+
value = value?.[k];
|
|
36
|
+
if (value === void 0) return "";
|
|
37
|
+
}
|
|
38
|
+
return String(value ?? "");
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const stringToArray = (value) => {
|
|
42
|
+
if (isEmpty(value)) return [];
|
|
43
|
+
return value.split(",");
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/packages/utils/objects.ts
|
|
47
|
+
const keysOf = (arr) => Object.keys(arr);
|
|
48
|
+
const entriesOf = (arr) => Object.entries(arr);
|
|
49
|
+
const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
|
|
50
|
+
const deepMerge = (target, ...sources) => {
|
|
51
|
+
return (0, lodash_es.merge)({}, target, ...sources);
|
|
52
|
+
};
|
|
53
|
+
const deepMergeInPlace = (target, source = {}) => {
|
|
54
|
+
Object.keys(source).forEach((key) => {
|
|
55
|
+
const targetValue = target[key];
|
|
56
|
+
const sourceValue = source[key];
|
|
57
|
+
if ((0, lodash_es.isPlainObject)(targetValue) && (0, lodash_es.isPlainObject)(sourceValue)) deepMergeInPlace(targetValue, sourceValue);
|
|
58
|
+
else if (sourceValue !== void 0) target[key] = sourceValue;
|
|
59
|
+
});
|
|
60
|
+
return target;
|
|
61
|
+
};
|
|
62
|
+
const validateObjectStructure = (data, requiredKeys = []) => {
|
|
63
|
+
if (!(0, lodash_es.isPlainObject)(data)) return false;
|
|
64
|
+
if (requiredKeys.length > 0) return requiredKeys.some((key) => key in data);
|
|
65
|
+
return true;
|
|
66
|
+
};
|
|
67
|
+
const safeSet = (obj, path, value) => {
|
|
68
|
+
try {
|
|
69
|
+
const keys = path.split(".");
|
|
70
|
+
let current = obj;
|
|
71
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
72
|
+
const key = keys[i];
|
|
73
|
+
if (!(0, lodash_es.isPlainObject)(current[key])) current[key] = {};
|
|
74
|
+
current = current[key];
|
|
75
|
+
}
|
|
76
|
+
current[keys[keys.length - 1]] = value;
|
|
77
|
+
return true;
|
|
78
|
+
} catch {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const safeGet = (obj, path, defaultValue) => {
|
|
83
|
+
try {
|
|
84
|
+
const keys = path.split(".");
|
|
85
|
+
let current = obj;
|
|
86
|
+
for (const key of keys) {
|
|
87
|
+
if (current == null || !(0, lodash_es.isObject)(current)) return defaultValue;
|
|
88
|
+
current = current[key];
|
|
89
|
+
}
|
|
90
|
+
return current !== void 0 ? current : defaultValue;
|
|
91
|
+
} catch {
|
|
92
|
+
return defaultValue;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const getProp = (obj, path, defaultValue) => {
|
|
96
|
+
const pathStr = Array.isArray(path) ? path.join(".") : path;
|
|
97
|
+
return {
|
|
98
|
+
get value() {
|
|
99
|
+
return safeGet(obj, pathStr, defaultValue);
|
|
100
|
+
},
|
|
101
|
+
set value(val) {
|
|
102
|
+
safeSet(obj, pathStr, val);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
function assignmentData(initial, current) {
|
|
107
|
+
const result = {};
|
|
108
|
+
for (const key in initial) {
|
|
109
|
+
const initialValue = initial[key];
|
|
110
|
+
const currentValue = current[key];
|
|
111
|
+
if (typeof initialValue === "object" && initialValue !== null && !Array.isArray(initialValue)) result[key] = assignmentData(initialValue, currentValue || {});
|
|
112
|
+
else if (Array.isArray(initialValue)) if (!currentValue) result[key] = [];
|
|
113
|
+
else if (Array.isArray(currentValue)) result[key] = [...currentValue];
|
|
114
|
+
else if (typeof currentValue === "number") result[key] = [currentValue];
|
|
115
|
+
else if (typeof currentValue === "string") result[key] = currentValue.split(",").map((item) => item.trim());
|
|
116
|
+
else {
|
|
117
|
+
console.warn(`Warning: Unsupported type for key "${key}". Expected string, number, or array.`);
|
|
118
|
+
result[key] = [];
|
|
119
|
+
}
|
|
120
|
+
else result[key] = currentValue !== void 0 ? currentValue : initialValue;
|
|
121
|
+
}
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
function transDataToString(initial) {
|
|
125
|
+
const result = {};
|
|
126
|
+
for (const key in initial) {
|
|
127
|
+
const initialValue = initial[key];
|
|
128
|
+
if (typeof initialValue === "object" && initialValue !== null && !Array.isArray(initialValue)) result[key] = transDataToString(initialValue);
|
|
129
|
+
else if (Array.isArray(initialValue)) result[key] = initialValue.join(",");
|
|
130
|
+
else result[key] = initialValue;
|
|
131
|
+
}
|
|
132
|
+
return result;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
Object.defineProperty(exports, "assignmentData", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function() {
|
|
138
|
+
return assignmentData;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "deepMerge", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function() {
|
|
144
|
+
return deepMerge;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "deepMergeInPlace", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function() {
|
|
150
|
+
return deepMergeInPlace;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "entriesOf", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function() {
|
|
156
|
+
return entriesOf;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "getProp", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function() {
|
|
162
|
+
return getProp;
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, "hasOwn", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function() {
|
|
168
|
+
return hasOwn;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "isBoolean", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function() {
|
|
174
|
+
return isBoolean;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, "isComponent", {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function() {
|
|
180
|
+
return isComponent;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "isElement", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function() {
|
|
186
|
+
return isElement;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, "isEmpty", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function() {
|
|
192
|
+
return isEmpty;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "isHTML", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function() {
|
|
198
|
+
return isHTML;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "isNumber", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function() {
|
|
204
|
+
return isNumber;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, "isPropAbsent", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function() {
|
|
210
|
+
return isPropAbsent;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "isStringNumber", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function() {
|
|
216
|
+
return isStringNumber;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "isUndefined", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function() {
|
|
222
|
+
return isUndefined;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "isWindow", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function() {
|
|
228
|
+
return isWindow;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "keysOf", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function() {
|
|
234
|
+
return keysOf;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "renderTemplate", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function() {
|
|
240
|
+
return renderTemplate;
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "safeGet", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function() {
|
|
246
|
+
return safeGet;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(exports, "safeSet", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function() {
|
|
252
|
+
return safeSet;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(exports, "stringToArray", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: function() {
|
|
258
|
+
return stringToArray;
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(exports, "transDataToString", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function() {
|
|
264
|
+
return transDataToString;
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
Object.defineProperty(exports, "validateObjectStructure", {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
get: function() {
|
|
270
|
+
return validateObjectStructure;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/packages/config/index.ts
|
|
3
|
+
var config_exports = /* @__PURE__ */ require("../chunk-CZWwpsFl.cjs").__exportAll({});
|
|
4
|
+
//#endregion
|
|
5
|
+
Object.defineProperty(exports, "config_exports", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return config_exports;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_json = require("../json-BkkaM20u.cjs");
|
|
3
|
+
//#region src/packages/constants/aria.ts
|
|
4
|
+
const EVENT_CODE = {
|
|
5
|
+
tab: "Tab",
|
|
6
|
+
enter: "Enter",
|
|
7
|
+
space: "Space",
|
|
8
|
+
left: "ArrowLeft",
|
|
9
|
+
up: "ArrowUp",
|
|
10
|
+
right: "ArrowRight",
|
|
11
|
+
down: "ArrowDown",
|
|
12
|
+
esc: "Escape",
|
|
13
|
+
delete: "Delete",
|
|
14
|
+
backspace: "Backspace",
|
|
15
|
+
numpadEnter: "NumpadEnter",
|
|
16
|
+
pageUp: "PageUp",
|
|
17
|
+
pageDown: "PageDown",
|
|
18
|
+
home: "Home",
|
|
19
|
+
end: "End"
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/packages/constants/date.ts
|
|
23
|
+
const datePickTypes = [
|
|
24
|
+
"year",
|
|
25
|
+
"years",
|
|
26
|
+
"month",
|
|
27
|
+
"months",
|
|
28
|
+
"date",
|
|
29
|
+
"dates",
|
|
30
|
+
"week",
|
|
31
|
+
"datetime",
|
|
32
|
+
"datetimerange",
|
|
33
|
+
"daterange",
|
|
34
|
+
"monthrange",
|
|
35
|
+
"yearrange"
|
|
36
|
+
];
|
|
37
|
+
const WEEK_DAYS = [
|
|
38
|
+
"sun",
|
|
39
|
+
"mon",
|
|
40
|
+
"tue",
|
|
41
|
+
"wed",
|
|
42
|
+
"thu",
|
|
43
|
+
"fri",
|
|
44
|
+
"sat"
|
|
45
|
+
];
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/packages/constants/event.ts
|
|
48
|
+
const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
49
|
+
const CHANGE_EVENT = "change";
|
|
50
|
+
const INPUT_EVENT = "input";
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/packages/constants/key.ts
|
|
53
|
+
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/packages/constants/size.ts
|
|
56
|
+
const componentSizes = [
|
|
57
|
+
"",
|
|
58
|
+
"default",
|
|
59
|
+
"small",
|
|
60
|
+
"large"
|
|
61
|
+
];
|
|
62
|
+
const componentSizeMap = {
|
|
63
|
+
large: 40,
|
|
64
|
+
default: 32,
|
|
65
|
+
small: 24
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
exports.CHANGE_EVENT = CHANGE_EVENT;
|
|
69
|
+
exports.EVENT_CODE = EVENT_CODE;
|
|
70
|
+
exports.INPUT_EVENT = INPUT_EVENT;
|
|
71
|
+
exports.INSTALLED_KEY = INSTALLED_KEY;
|
|
72
|
+
exports.UPDATE_MODEL_EVENT = UPDATE_MODEL_EVENT;
|
|
73
|
+
exports.WEEK_DAYS = WEEK_DAYS;
|
|
74
|
+
exports.area = require_json.area;
|
|
75
|
+
exports.componentSizeMap = componentSizeMap;
|
|
76
|
+
exports.componentSizes = componentSizes;
|
|
77
|
+
exports.datePickTypes = datePickTypes;
|
|
78
|
+
exports.tags = require_json.tags;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { n as tags, t as area } from "../json-D-_zTSK6.js";
|
|
2
|
+
//#region src/packages/constants/aria.ts
|
|
3
|
+
const EVENT_CODE = {
|
|
4
|
+
tab: "Tab",
|
|
5
|
+
enter: "Enter",
|
|
6
|
+
space: "Space",
|
|
7
|
+
left: "ArrowLeft",
|
|
8
|
+
up: "ArrowUp",
|
|
9
|
+
right: "ArrowRight",
|
|
10
|
+
down: "ArrowDown",
|
|
11
|
+
esc: "Escape",
|
|
12
|
+
delete: "Delete",
|
|
13
|
+
backspace: "Backspace",
|
|
14
|
+
numpadEnter: "NumpadEnter",
|
|
15
|
+
pageUp: "PageUp",
|
|
16
|
+
pageDown: "PageDown",
|
|
17
|
+
home: "Home",
|
|
18
|
+
end: "End"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/packages/constants/date.ts
|
|
22
|
+
const datePickTypes = [
|
|
23
|
+
"year",
|
|
24
|
+
"years",
|
|
25
|
+
"month",
|
|
26
|
+
"months",
|
|
27
|
+
"date",
|
|
28
|
+
"dates",
|
|
29
|
+
"week",
|
|
30
|
+
"datetime",
|
|
31
|
+
"datetimerange",
|
|
32
|
+
"daterange",
|
|
33
|
+
"monthrange",
|
|
34
|
+
"yearrange"
|
|
35
|
+
];
|
|
36
|
+
const WEEK_DAYS = [
|
|
37
|
+
"sun",
|
|
38
|
+
"mon",
|
|
39
|
+
"tue",
|
|
40
|
+
"wed",
|
|
41
|
+
"thu",
|
|
42
|
+
"fri",
|
|
43
|
+
"sat"
|
|
44
|
+
];
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/packages/constants/event.ts
|
|
47
|
+
const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
48
|
+
const CHANGE_EVENT = "change";
|
|
49
|
+
const INPUT_EVENT = "input";
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/packages/constants/key.ts
|
|
52
|
+
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/packages/constants/size.ts
|
|
55
|
+
const componentSizes = [
|
|
56
|
+
"",
|
|
57
|
+
"default",
|
|
58
|
+
"small",
|
|
59
|
+
"large"
|
|
60
|
+
];
|
|
61
|
+
const componentSizeMap = {
|
|
62
|
+
large: 40,
|
|
63
|
+
default: 32,
|
|
64
|
+
small: 24
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { CHANGE_EVENT, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, UPDATE_MODEL_EVENT, WEEK_DAYS, area, componentSizeMap, componentSizes, datePickTypes, tags };
|
|
@@ -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
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_button = require("../../button-CGv1WHzT.cjs");
|
|
3
|
+
Object.defineProperty(exports, "RwButton", {
|
|
4
|
+
enumerable: true,
|
|
5
|
+
get: function() {
|
|
6
|
+
return require_button.button_exports;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../chunk-CZWwpsFl.cjs");
|
|
3
|
+
const require_MyButton = require("../MyButton-C1krVCi6.cjs");
|
|
4
|
+
const require_button = require("../button-CGv1WHzT.cjs");
|
|
5
|
+
const require_affix = require("../affix-CYU-9qMr.cjs");
|
|
6
|
+
//#region src/packages/controls/index.ts
|
|
7
|
+
var controls_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
8
|
+
MyButton: () => require_MyButton.MyButton_default,
|
|
9
|
+
RwAffix: () => require_affix.affix_exports,
|
|
10
|
+
RwButton: () => require_button.button_exports
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.MyButton = require_MyButton.MyButton_default;
|
|
14
|
+
Object.defineProperty(exports, "RwAffix", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return require_affix.affix_exports;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "RwButton", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function() {
|
|
23
|
+
return require_button.button_exports;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "controls_exports", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function() {
|
|
29
|
+
return controls_exports;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as __exportAll } from "../chunk-pbuEa-1d.js";
|
|
2
|
+
import { t as MyButton_default } from "../MyButton-C7riFwH6.js";
|
|
3
|
+
import { t as button_exports } from "../button-tOWSPPxz.js";
|
|
4
|
+
import { t as affix_exports } from "../affix-D9EM8_Um.js";
|
|
5
|
+
//#region src/packages/controls/index.ts
|
|
6
|
+
var controls_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
MyButton: () => MyButton_default,
|
|
8
|
+
RwAffix: () => affix_exports,
|
|
9
|
+
RwButton: () => button_exports
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { MyButton_default as MyButton, affix_exports as RwAffix, button_exports as RwButton, controls_exports as t };
|