@eturnity/eturnity_reusable_components 8.26.11-autiFill.1 → 8.26.11-autiFill.4
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.es12.js +2 -2
- package/dist/main.es13.js +6 -6
- package/dist/main.es14.js +2 -2
- package/dist/main.es15.js +212 -60
- package/dist/main.es16.js +21 -196
- package/dist/main.es17.js +1037 -197
- package/dist/main.es18.js +224 -21
- package/dist/main.es19.js +89 -1046
- package/dist/main.es20.js +70 -195
- package/dist/main.es21.js +172 -77
- package/dist/main.es22.js +2 -92
- package/dist/main.es23.js +508 -119
- package/dist/main.es24.js +199 -2
- package/dist/main.es25.js +59 -536
- package/dist/main.es26.js +2 -2
- package/dist/main.es380.js +1 -1
- package/dist/main.es382.js +21 -60
- package/dist/main.es383.js +60 -21
- package/dist/main.es5.js +42 -3
- package/dist/main.es6.js +4 -4
- package/dist/main.es9.js +1 -1
- package/package.json +1 -1
- package/src/components/accordion/index.vue +11 -1
- package/src/components/statusIndicator/index.vue +45 -15
package/dist/main.es382.js
CHANGED
@@ -1,64 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
let supported;
|
2
|
+
let perf;
|
3
|
+
function isPerformanceSupported() {
|
4
|
+
var _a;
|
5
|
+
if (supported !== void 0) {
|
6
|
+
return supported;
|
6
7
|
}
|
7
|
-
|
8
|
+
if (typeof window !== "undefined" && window.performance) {
|
9
|
+
supported = true;
|
10
|
+
perf = window.performance;
|
11
|
+
} else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
|
12
|
+
supported = true;
|
13
|
+
perf = globalThis.perf_hooks.performance;
|
14
|
+
} else {
|
15
|
+
supported = false;
|
16
|
+
}
|
17
|
+
return supported;
|
18
|
+
}
|
19
|
+
function now() {
|
20
|
+
return isPerformanceSupported() ? perf.now() : Date.now();
|
8
21
|
}
|
9
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
10
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
11
|
-
const NOOP = () => {
|
12
|
-
};
|
13
|
-
const extend = Object.assign;
|
14
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
15
|
-
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
16
|
-
const isArray = Array.isArray;
|
17
|
-
const isMap = (val) => toTypeString(val) === "[object Map]";
|
18
|
-
const isFunction = (val) => typeof val === "function";
|
19
|
-
const isString = (val) => typeof val === "string";
|
20
|
-
const isSymbol = (val) => typeof val === "symbol";
|
21
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
22
|
-
const objectToString = Object.prototype.toString;
|
23
|
-
const toTypeString = (value) => objectToString.call(value);
|
24
|
-
const toRawType = (value) => {
|
25
|
-
return toTypeString(value).slice(8, -1);
|
26
|
-
};
|
27
|
-
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
28
|
-
const cacheStringFunction = (fn) => {
|
29
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
30
|
-
return (str) => {
|
31
|
-
const hit = cache[str];
|
32
|
-
return hit || (cache[str] = fn(str));
|
33
|
-
};
|
34
|
-
};
|
35
|
-
const capitalize = cacheStringFunction(
|
36
|
-
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
37
|
-
);
|
38
|
-
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
39
|
-
const def = (obj, key, value) => {
|
40
|
-
Object.defineProperty(obj, key, {
|
41
|
-
configurable: true,
|
42
|
-
enumerable: false,
|
43
|
-
value
|
44
|
-
});
|
45
|
-
};
|
46
22
|
export {
|
47
|
-
|
48
|
-
|
49
|
-
def,
|
50
|
-
extend,
|
51
|
-
hasChanged,
|
52
|
-
hasOwn,
|
53
|
-
isArray,
|
54
|
-
isFunction,
|
55
|
-
isIntegerKey,
|
56
|
-
isMap,
|
57
|
-
isObject,
|
58
|
-
isString,
|
59
|
-
isSymbol,
|
60
|
-
makeMap,
|
61
|
-
objectToString,
|
62
|
-
toRawType,
|
63
|
-
toTypeString
|
23
|
+
isPerformanceSupported,
|
24
|
+
now
|
64
25
|
};
|
package/dist/main.es383.js
CHANGED
@@ -1,25 +1,64 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
return supported;
|
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;
|
7
6
|
}
|
8
|
-
|
9
|
-
supported = true;
|
10
|
-
perf = window.performance;
|
11
|
-
} else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
|
12
|
-
supported = true;
|
13
|
-
perf = globalThis.perf_hooks.performance;
|
14
|
-
} else {
|
15
|
-
supported = false;
|
16
|
-
}
|
17
|
-
return supported;
|
18
|
-
}
|
19
|
-
function now() {
|
20
|
-
return isPerformanceSupported() ? perf.now() : Date.now();
|
7
|
+
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
21
8
|
}
|
9
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
10
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
11
|
+
const NOOP = () => {
|
12
|
+
};
|
13
|
+
const extend = Object.assign;
|
14
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
15
|
+
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
16
|
+
const isArray = Array.isArray;
|
17
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
18
|
+
const isFunction = (val) => typeof val === "function";
|
19
|
+
const isString = (val) => typeof val === "string";
|
20
|
+
const isSymbol = (val) => typeof val === "symbol";
|
21
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
22
|
+
const objectToString = Object.prototype.toString;
|
23
|
+
const toTypeString = (value) => objectToString.call(value);
|
24
|
+
const toRawType = (value) => {
|
25
|
+
return toTypeString(value).slice(8, -1);
|
26
|
+
};
|
27
|
+
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
28
|
+
const cacheStringFunction = (fn) => {
|
29
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
30
|
+
return (str) => {
|
31
|
+
const hit = cache[str];
|
32
|
+
return hit || (cache[str] = fn(str));
|
33
|
+
};
|
34
|
+
};
|
35
|
+
const capitalize = cacheStringFunction(
|
36
|
+
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
37
|
+
);
|
38
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
39
|
+
const def = (obj, key, value) => {
|
40
|
+
Object.defineProperty(obj, key, {
|
41
|
+
configurable: true,
|
42
|
+
enumerable: false,
|
43
|
+
value
|
44
|
+
});
|
45
|
+
};
|
22
46
|
export {
|
23
|
-
|
24
|
-
|
47
|
+
NOOP,
|
48
|
+
capitalize,
|
49
|
+
def,
|
50
|
+
extend,
|
51
|
+
hasChanged,
|
52
|
+
hasOwn,
|
53
|
+
isArray,
|
54
|
+
isFunction,
|
55
|
+
isIntegerKey,
|
56
|
+
isMap,
|
57
|
+
isObject,
|
58
|
+
isString,
|
59
|
+
isSymbol,
|
60
|
+
makeMap,
|
61
|
+
objectToString,
|
62
|
+
toRawType,
|
63
|
+
toTypeString
|
25
64
|
};
|
package/dist/main.es5.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { isRuntimeOnly, warn, createRenderer, callWithAsyncErrorHandling } from "./main.es6.js";
|
2
2
|
import { Comment, Fragment, Static, Teleport, Text, callWithErrorHandling, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, devtools, getCurrentInstance, guardReactiveProps, h, handleError, initCustomFormatter, inject, isVNode, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, queuePostFlushCb, renderList, renderSlot, resolveComponent, resolveDynamicComponent, setBlockTracking, setDevtoolsHook, ssrContextKey, useSSRContext, version, watch, watchEffect, withCtx, withDirectives } from "./main.es6.js";
|
3
|
-
import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.
|
4
|
-
import { camelize } from "./main.
|
5
|
-
import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.
|
3
|
+
import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.es25.js";
|
4
|
+
import { camelize } from "./main.es24.js";
|
5
|
+
import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.es24.js";
|
6
6
|
const svgNS = "http://www.w3.org/2000/svg";
|
7
7
|
const doc = typeof document !== "undefined" ? document : null;
|
8
8
|
const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
|
@@ -460,6 +460,44 @@ const withKeys = (fn, modifiers) => {
|
|
460
460
|
}
|
461
461
|
};
|
462
462
|
};
|
463
|
+
const vShow = {
|
464
|
+
beforeMount(el, { value }, { transition }) {
|
465
|
+
el._vod = el.style.display === "none" ? "" : el.style.display;
|
466
|
+
if (transition && value) {
|
467
|
+
transition.beforeEnter(el);
|
468
|
+
} else {
|
469
|
+
setDisplay(el, value);
|
470
|
+
}
|
471
|
+
},
|
472
|
+
mounted(el, { value }, { transition }) {
|
473
|
+
if (transition && value) {
|
474
|
+
transition.enter(el);
|
475
|
+
}
|
476
|
+
},
|
477
|
+
updated(el, { value, oldValue }, { transition }) {
|
478
|
+
if (!value === !oldValue)
|
479
|
+
return;
|
480
|
+
if (transition) {
|
481
|
+
if (value) {
|
482
|
+
transition.beforeEnter(el);
|
483
|
+
setDisplay(el, true);
|
484
|
+
transition.enter(el);
|
485
|
+
} else {
|
486
|
+
transition.leave(el, () => {
|
487
|
+
setDisplay(el, false);
|
488
|
+
});
|
489
|
+
}
|
490
|
+
} else {
|
491
|
+
setDisplay(el, value);
|
492
|
+
}
|
493
|
+
},
|
494
|
+
beforeUnmount(el, { value }) {
|
495
|
+
setDisplay(el, value);
|
496
|
+
}
|
497
|
+
};
|
498
|
+
function setDisplay(el, value) {
|
499
|
+
el.style.display = value ? el._vod : "none";
|
500
|
+
}
|
463
501
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
464
502
|
let renderer;
|
465
503
|
function ensureRenderer() {
|
@@ -603,6 +641,7 @@ export {
|
|
603
641
|
toHandlerKey,
|
604
642
|
useSSRContext,
|
605
643
|
vModelText,
|
644
|
+
vShow,
|
606
645
|
version,
|
607
646
|
warn,
|
608
647
|
watch,
|
package/dist/main.es6.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, isProxy, computed as computed$1, pauseTracking, resetTracking, isReadonly, track, proxyRefs, markRaw, shallowReadonly, EffectScope, reactive, shallowReactive, trigger } from "./main.
|
2
|
-
import { readonly, ref, shallowRef, unref } from "./main.
|
3
|
-
import { isString, isFunction, getGlobalThis, isArray, NOOP, EMPTY_OBJ, normalizeClass, isObject, extend, normalizeStyle, isOn, isPromise, hasChanged, remove, isSet, isMap, isPlainObject, camelize, capitalize, toHandlerKey, hasOwn, EMPTY_ARR, NO, isBuiltInDirective, isReservedProp, invokeArrayFns, makeMap, looseToNumber, hyphenate, def, toRawType, isModelListener } from "./main.
|
4
|
-
import { toDisplayString } from "./main.
|
1
|
+
import { isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, isProxy, computed as computed$1, pauseTracking, resetTracking, isReadonly, track, proxyRefs, markRaw, shallowReadonly, EffectScope, reactive, shallowReactive, trigger } from "./main.es17.js";
|
2
|
+
import { readonly, ref, shallowRef, unref } from "./main.es17.js";
|
3
|
+
import { isString, isFunction, getGlobalThis, isArray, NOOP, EMPTY_OBJ, normalizeClass, isObject, extend, normalizeStyle, isOn, isPromise, hasChanged, remove, isSet, isMap, isPlainObject, camelize, capitalize, toHandlerKey, hasOwn, EMPTY_ARR, NO, isBuiltInDirective, isReservedProp, invokeArrayFns, makeMap, looseToNumber, hyphenate, def, toRawType, isModelListener } from "./main.es24.js";
|
4
|
+
import { toDisplayString } from "./main.es24.js";
|
5
5
|
const stack = [];
|
6
6
|
function pushWarningContext(vnode) {
|
7
7
|
stack.push(vnode);
|
package/dist/main.es9.js
CHANGED
package/package.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<RCCaret :is-down="isOpenByClick" />
|
6
6
|
</WrapperHead>
|
7
7
|
<WrapperContent
|
8
|
-
v-
|
8
|
+
v-show="isOpenByClick"
|
9
9
|
class="accordion-content"
|
10
10
|
:class="{ openAccordion: isOpenByClick && openingMode == 'click' }"
|
11
11
|
>
|
@@ -69,6 +69,7 @@
|
|
69
69
|
default: 'click',
|
70
70
|
},
|
71
71
|
},
|
72
|
+
emits: ['on-open', 'on-close'],
|
72
73
|
data() {
|
73
74
|
return {
|
74
75
|
isOpenByClick: false,
|
@@ -76,8 +77,17 @@
|
|
76
77
|
},
|
77
78
|
methods: {
|
78
79
|
toggleOpenByClick() {
|
80
|
+
this.$emit(this.isOpenByClick ? 'on-close' : 'on-open')
|
79
81
|
this.isOpenByClick = !this.isOpenByClick
|
80
82
|
},
|
83
|
+
close() {
|
84
|
+
this.$emit('on-close')
|
85
|
+
this.isOpenByClick = false
|
86
|
+
},
|
87
|
+
open() {
|
88
|
+
this.$emit('on-open')
|
89
|
+
this.isOpenByClick = true
|
90
|
+
},
|
81
91
|
},
|
82
92
|
}
|
83
93
|
</script>
|
@@ -1,14 +1,16 @@
|
|
1
1
|
<template>
|
2
2
|
<BoxContainer
|
3
|
+
:border-radius="borderRadius"
|
3
4
|
:is-active="isActive"
|
5
|
+
:is-dirty="isDirty"
|
4
6
|
:is-disabled="isDisabled"
|
5
7
|
:is-error="isError"
|
6
|
-
:is-touched="isTouched"
|
7
8
|
:is-valid="isValid"
|
8
9
|
:is-warning="isWarning"
|
10
|
+
:size="size"
|
9
11
|
>
|
10
12
|
<RcIcon
|
11
|
-
v-if="isValid
|
13
|
+
v-if="isValid"
|
12
14
|
:color="theme.semanticColors.purple[500]"
|
13
15
|
:hovered-color="theme.semanticColors.purple[500]"
|
14
16
|
name="checkmark_thin"
|
@@ -18,15 +20,15 @@
|
|
18
20
|
v-else-if="isError"
|
19
21
|
:color="theme.colors.white"
|
20
22
|
:hovered-color="theme.colors.white"
|
21
|
-
name="
|
22
|
-
size="
|
23
|
+
name="cross"
|
24
|
+
size="10x"
|
23
25
|
/>
|
24
26
|
<RcIcon
|
25
27
|
v-else-if="isWarning"
|
26
28
|
:color="theme.colors.white"
|
27
29
|
:hovered-color="theme.colors.white"
|
28
30
|
name="warning_triangle"
|
29
|
-
size="
|
31
|
+
size="10px"
|
30
32
|
/>
|
31
33
|
<NumberContainer v-else :is-active="isActive" :is-valid="isValid">
|
32
34
|
<slot></slot>
|
@@ -39,7 +41,7 @@
|
|
39
41
|
// <StatusIndicator
|
40
42
|
// :is-error="true"
|
41
43
|
// :is-warning="true"
|
42
|
-
// :is-
|
44
|
+
// :is-dirty="true"
|
43
45
|
// :is-disabled="true"
|
44
46
|
// :is-active="true"
|
45
47
|
// >
|
@@ -60,14 +62,16 @@
|
|
60
62
|
isValid: Boolean,
|
61
63
|
isError: Boolean,
|
62
64
|
isWarning: Boolean,
|
63
|
-
|
65
|
+
isDirty: Boolean,
|
64
66
|
isDisabled: Boolean,
|
67
|
+
size: String,
|
68
|
+
borderRadius: String,
|
65
69
|
})`
|
66
70
|
display: flex;
|
67
71
|
justify-content: center;
|
68
72
|
align-items: center;
|
69
|
-
width:
|
70
|
-
height:
|
73
|
+
width: ${({ size }) => size};
|
74
|
+
height: ${({ size }) => size};
|
71
75
|
font-size: 16px;
|
72
76
|
background-color: ${({
|
73
77
|
theme,
|
@@ -75,23 +79,41 @@
|
|
75
79
|
isActive,
|
76
80
|
isError,
|
77
81
|
isWarning,
|
78
|
-
|
82
|
+
isDirty,
|
79
83
|
isDisabled,
|
80
84
|
}) => {
|
81
85
|
if (isDisabled) return theme.semanticColors.grey[200]
|
82
86
|
if (isError) return theme.semanticColors.red[500]
|
83
87
|
if (isWarning) return theme.semanticColors.yellow[500]
|
84
|
-
if (!isTouched) return theme.semanticColors.grey[200]
|
85
88
|
if (isActive) {
|
86
|
-
if (isValid) return theme.semanticColors.purple[200]
|
87
89
|
return theme.semanticColors.purple[500]
|
88
90
|
}
|
91
|
+
if (!isDirty) return theme.semanticColors.grey[200]
|
92
|
+
if (isValid) return theme.semanticColors.purple[200]
|
89
93
|
return theme.semanticColors.grey[200]
|
90
94
|
}};
|
95
|
+
border: 1px solid;
|
96
|
+
border-color: ${({
|
97
|
+
theme,
|
98
|
+
isValid,
|
99
|
+
isActive,
|
100
|
+
isError,
|
101
|
+
isWarning,
|
102
|
+
isDirty,
|
103
|
+
isDisabled,
|
104
|
+
}) => {
|
105
|
+
if (isDisabled) return theme.semanticColors.grey[500]
|
106
|
+
if (isError) return theme.semanticColors.red[600]
|
107
|
+
if (isWarning) return theme.semanticColors.yellow[600]
|
108
|
+
if (!isDirty) return theme.semanticColors.grey[500]
|
109
|
+
if (isActive) return theme.semanticColors.purple[600]
|
110
|
+
if (isValid) return theme.semanticColors.purple[600]
|
111
|
+
return theme.semanticColors.grey[500]
|
112
|
+
}};
|
91
113
|
color: ${({ theme, isValid, isActive }) =>
|
92
114
|
isActive ? theme.colors.white : theme.semanticColors.grey[800]};
|
93
115
|
margin: 0;
|
94
|
-
border-radius:
|
116
|
+
border-radius: ${({ borderRadius }) => borderRadius};
|
95
117
|
cursor: ${({ isValid }) => (isValid ? 'pointer' : 'default')};
|
96
118
|
&:hover {
|
97
119
|
${({ theme, isValid, isActive }) =>
|
@@ -117,7 +139,7 @@
|
|
117
139
|
type: Boolean,
|
118
140
|
default: false,
|
119
141
|
},
|
120
|
-
|
142
|
+
isDirty: {
|
121
143
|
type: Boolean,
|
122
144
|
default: false,
|
123
145
|
},
|
@@ -129,6 +151,14 @@
|
|
129
151
|
type: Boolean,
|
130
152
|
default: false,
|
131
153
|
},
|
154
|
+
size: {
|
155
|
+
type: String,
|
156
|
+
default: '20px',
|
157
|
+
},
|
158
|
+
borderRadius: {
|
159
|
+
type: String,
|
160
|
+
default: '50%',
|
161
|
+
},
|
132
162
|
},
|
133
163
|
data() {
|
134
164
|
return {
|
@@ -137,7 +167,7 @@
|
|
137
167
|
},
|
138
168
|
computed: {
|
139
169
|
isValid() {
|
140
|
-
return this.
|
170
|
+
return this.isDirty && !this.isError && !this.isWarning
|
141
171
|
},
|
142
172
|
},
|
143
173
|
}
|