@eturnity/eturnity_reusable_components 8.22.8 → 8.22.10

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/main.es22.js CHANGED
@@ -1,201 +1,4 @@
1
- function makeMap(str, expectsLowerCase) {
2
- const map = /* @__PURE__ */ Object.create(null);
3
- const list = str.split(",");
4
- for (let i = 0; i < list.length; i++) {
5
- map[list[i]] = true;
6
- }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
- }
9
- const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
- const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
- const NOOP = () => {
12
- };
13
- const NO = () => false;
14
- const onRE = /^on[^a-z]/;
15
- const isOn = (key) => onRE.test(key);
16
- const isModelListener = (key) => key.startsWith("onUpdate:");
17
- const extend = Object.assign;
18
- const remove = (arr, el) => {
19
- const i = arr.indexOf(el);
20
- if (i > -1) {
21
- arr.splice(i, 1);
22
- }
23
- };
24
- const hasOwnProperty = Object.prototype.hasOwnProperty;
25
- const hasOwn = (val, key) => hasOwnProperty.call(val, key);
26
- const isArray = Array.isArray;
27
- const isMap = (val) => toTypeString(val) === "[object Map]";
28
- const isSet = (val) => toTypeString(val) === "[object Set]";
29
- const isFunction = (val) => typeof val === "function";
30
- const isString = (val) => typeof val === "string";
31
- const isObject = (val) => val !== null && typeof val === "object";
32
- const isPromise = (val) => {
33
- return isObject(val) && isFunction(val.then) && isFunction(val.catch);
34
- };
35
- const objectToString = Object.prototype.toString;
36
- const toTypeString = (value) => objectToString.call(value);
37
- const toRawType = (value) => {
38
- return toTypeString(value).slice(8, -1);
39
- };
40
- const isPlainObject = (val) => toTypeString(val) === "[object Object]";
41
- const isReservedProp = /* @__PURE__ */ makeMap(
42
- // the leading comma is intentional so empty string "" is also included
43
- ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
44
- );
45
- const isBuiltInDirective = /* @__PURE__ */ makeMap(
46
- "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
47
- );
48
- const cacheStringFunction = (fn) => {
49
- const cache = /* @__PURE__ */ Object.create(null);
50
- return (str) => {
51
- const hit = cache[str];
52
- return hit || (cache[str] = fn(str));
53
- };
54
- };
55
- const camelizeRE = /-(\w)/g;
56
- const camelize = cacheStringFunction((str) => {
57
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
58
- });
59
- const hyphenateRE = /\B([A-Z])/g;
60
- const hyphenate = cacheStringFunction(
61
- (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
62
- );
63
- const capitalize = cacheStringFunction(
64
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
65
- );
66
- const toHandlerKey = cacheStringFunction(
67
- (str) => str ? `on${capitalize(str)}` : ``
68
- );
69
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
70
- const invokeArrayFns = (fns, arg) => {
71
- for (let i = 0; i < fns.length; i++) {
72
- fns[i](arg);
73
- }
74
- };
75
- const def = (obj, key, value) => {
76
- Object.defineProperty(obj, key, {
77
- configurable: true,
78
- enumerable: false,
79
- value
80
- });
81
- };
82
- const looseToNumber = (val) => {
83
- const n = parseFloat(val);
84
- return isNaN(n) ? val : n;
85
- };
86
- let _globalThis;
87
- const getGlobalThis = () => {
88
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
89
- };
90
- function normalizeStyle(value) {
91
- if (isArray(value)) {
92
- const res = {};
93
- for (let i = 0; i < value.length; i++) {
94
- const item = value[i];
95
- const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
96
- if (normalized) {
97
- for (const key in normalized) {
98
- res[key] = normalized[key];
99
- }
100
- }
101
- }
102
- return res;
103
- } else if (isString(value)) {
104
- return value;
105
- } else if (isObject(value)) {
106
- return value;
107
- }
108
- }
109
- const listDelimiterRE = /;(?![^(]*\))/g;
110
- const propertyDelimiterRE = /:([^]+)/;
111
- const styleCommentRE = /\/\*[^]*?\*\//g;
112
- function parseStringStyle(cssText) {
113
- const ret = {};
114
- cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
115
- if (item) {
116
- const tmp = item.split(propertyDelimiterRE);
117
- tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
118
- }
119
- });
120
- return ret;
121
- }
122
- function normalizeClass(value) {
123
- let res = "";
124
- if (isString(value)) {
125
- res = value;
126
- } else if (isArray(value)) {
127
- for (let i = 0; i < value.length; i++) {
128
- const normalized = normalizeClass(value[i]);
129
- if (normalized) {
130
- res += normalized + " ";
131
- }
132
- }
133
- } else if (isObject(value)) {
134
- for (const name in value) {
135
- if (value[name]) {
136
- res += name + " ";
137
- }
138
- }
139
- }
140
- return res.trim();
141
- }
142
- const toDisplayString = (val) => {
143
- return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
144
- };
145
- const replacer = (_key, val) => {
146
- if (val && val.__v_isRef) {
147
- return replacer(_key, val.value);
148
- } else if (isMap(val)) {
149
- return {
150
- [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
151
- entries[`${key} =>`] = val2;
152
- return entries;
153
- }, {})
154
- };
155
- } else if (isSet(val)) {
156
- return {
157
- [`Set(${val.size})`]: [...val.values()]
158
- };
159
- } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
160
- return String(val);
161
- }
162
- return val;
163
- };
1
+ const Test_vue_vue_type_style_index_0_lang = "";
164
2
  export {
165
- EMPTY_ARR,
166
- EMPTY_OBJ,
167
- NO,
168
- NOOP,
169
- camelize,
170
- capitalize,
171
- def,
172
- extend,
173
- getGlobalThis,
174
- hasChanged,
175
- hasOwn,
176
- hyphenate,
177
- invokeArrayFns,
178
- isArray,
179
- isBuiltInDirective,
180
- isFunction,
181
- isMap,
182
- isModelListener,
183
- isObject,
184
- isOn,
185
- isPlainObject,
186
- isPromise,
187
- isReservedProp,
188
- isSet,
189
- isString,
190
- looseToNumber,
191
- makeMap,
192
- normalizeClass,
193
- normalizeStyle,
194
- objectToString,
195
- parseStringStyle,
196
- remove,
197
- toDisplayString,
198
- toHandlerKey,
199
- toRawType,
200
- toTypeString
3
+ Test_vue_vue_type_style_index_0_lang as default
201
4
  };