@eturnity/eturnity_reusable_components 8.31.6-EPDM-16401.0 → 8.31.6-dev-03-elisee-8.37.1
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 +5 -5
- package/dist/main.es14.js +2 -2
- package/dist/main.es15.js +62 -248
- package/dist/main.es17.js +248 -22
- package/dist/main.es18.js +19 -1051
- package/dist/main.es19.js +1044 -215
- package/dist/main.es20.js +196 -68
- package/dist/main.es21.js +72 -73
- package/dist/main.es22.js +74 -168
- package/dist/main.es23.js +194 -2
- package/dist/main.es24.js +2 -541
- package/dist/main.es25.js +532 -15
- package/dist/main.es26.js +21 -61
- package/dist/main.es383.js +1 -1
- package/dist/main.es386.js +1 -1
- package/dist/main.es5.js +1 -1
- package/dist/main.es6.js +2 -2
- package/dist/main.es742.js +60 -21
- package/dist/main.es743.js +21 -60
- package/dist/main.es9.js +1 -1
- package/package.json +1 -1
- package/src/components/buttons/mainButton/index.vue +14 -0
- package/src/components/inputs/inputText/index.vue +1 -4
- package/src/components/inputs/select/index.vue +16 -1
- package/src/components/inputs/select/option/index.vue +3 -10
- package/src/components/inputs/textAreaInput/index.vue +8 -0
- package/src/components/spinner/index.vue +2 -0
package/dist/main.es742.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.es743.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.es9.js
CHANGED
package/package.json
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
:width="width"
|
|
17
17
|
>
|
|
18
18
|
<LabelComponent :has-icon="Boolean(icon)">
|
|
19
|
+
<FlexSpinner v-if="isLoading">
|
|
20
|
+
<RCSpinner size="tiny" />
|
|
21
|
+
</FlexSpinner>
|
|
19
22
|
<Icon
|
|
20
23
|
v-if="icon"
|
|
21
24
|
:color="getIconColor"
|
|
@@ -44,6 +47,7 @@
|
|
|
44
47
|
// />
|
|
45
48
|
|
|
46
49
|
import styled from 'vue3-styled-components'
|
|
50
|
+
import RCSpinner from '../../spinner'
|
|
47
51
|
import Icon from '../../icon'
|
|
48
52
|
import theme from '../../../assets/theme'
|
|
49
53
|
|
|
@@ -171,6 +175,10 @@
|
|
|
171
175
|
transform: rotate(20deg);
|
|
172
176
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
|
173
177
|
`
|
|
178
|
+
const FlexSpinner = styled('div')`
|
|
179
|
+
flex: 0;
|
|
180
|
+
margin-right: 8px;
|
|
181
|
+
`
|
|
174
182
|
|
|
175
183
|
export default {
|
|
176
184
|
name: 'MainButton',
|
|
@@ -180,6 +188,8 @@
|
|
|
180
188
|
PageContainer,
|
|
181
189
|
ButtonContainer,
|
|
182
190
|
BetaTag,
|
|
191
|
+
RCSpinner,
|
|
192
|
+
FlexSpinner,
|
|
183
193
|
},
|
|
184
194
|
props: {
|
|
185
195
|
type: {
|
|
@@ -277,6 +287,10 @@
|
|
|
277
287
|
type: Boolean,
|
|
278
288
|
default: false,
|
|
279
289
|
},
|
|
290
|
+
isLoading: {
|
|
291
|
+
type: Boolean,
|
|
292
|
+
default: false,
|
|
293
|
+
},
|
|
280
294
|
},
|
|
281
295
|
computed: {
|
|
282
296
|
theme() {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
v-if="hasError && hasErrorMessage"
|
|
94
94
|
data-test-id="error_message_wrapper"
|
|
95
95
|
>
|
|
96
|
-
{{
|
|
96
|
+
{{ errorMessage }}
|
|
97
97
|
</ErrorMessage>
|
|
98
98
|
</InputErrorWrapper>
|
|
99
99
|
</InputWrapper>
|
|
@@ -444,9 +444,6 @@
|
|
|
444
444
|
hasErrorMessage() {
|
|
445
445
|
return this.errorMessage && this.errorMessage.length > 0
|
|
446
446
|
},
|
|
447
|
-
dynamicErrorMessage() {
|
|
448
|
-
return this.errorMessage
|
|
449
|
-
},
|
|
450
447
|
},
|
|
451
448
|
watch: {
|
|
452
449
|
hasFocus(newVal) {
|
|
@@ -201,6 +201,12 @@
|
|
|
201
201
|
</SelectDropdown>
|
|
202
202
|
</Component>
|
|
203
203
|
</DropdownWrapper>
|
|
204
|
+
<ErrorMessage
|
|
205
|
+
v-if="hasError && hasErrorMessage"
|
|
206
|
+
data-test-id="error_message_wrapper"
|
|
207
|
+
>
|
|
208
|
+
{{ errorMessage }}
|
|
209
|
+
</ErrorMessage>
|
|
204
210
|
</SelectButtonWrapper>
|
|
205
211
|
</InputWrapper>
|
|
206
212
|
</Container>
|
|
@@ -233,6 +239,7 @@
|
|
|
233
239
|
import { Teleport, inject } from 'vue'
|
|
234
240
|
import styled from 'vue3-styled-components'
|
|
235
241
|
import InfoText from '../../infoText'
|
|
242
|
+
import ErrorMessage from '../../errorMessage'
|
|
236
243
|
import Icon from '../../icon'
|
|
237
244
|
import InputText from '../inputText'
|
|
238
245
|
import DraggableInputHandle from '../../draggableInputHandle'
|
|
@@ -302,7 +309,6 @@
|
|
|
302
309
|
const Container = styled('div', inputProps)`
|
|
303
310
|
width: ${(props) => props.selectWidth};
|
|
304
311
|
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
|
305
|
-
display: inline-block;
|
|
306
312
|
text-align: ${(props) => (props.textCenter ? 'center' : 'left')};
|
|
307
313
|
`
|
|
308
314
|
|
|
@@ -514,6 +520,7 @@
|
|
|
514
520
|
Teleport,
|
|
515
521
|
DraggableInputHandle,
|
|
516
522
|
IsRequiredLabelStar,
|
|
523
|
+
ErrorMessage,
|
|
517
524
|
},
|
|
518
525
|
|
|
519
526
|
props: {
|
|
@@ -620,9 +627,14 @@
|
|
|
620
627
|
default: true,
|
|
621
628
|
},
|
|
622
629
|
hasError: {
|
|
630
|
+
type: Boolean,
|
|
623
631
|
required: false,
|
|
624
632
|
default: false,
|
|
625
633
|
},
|
|
634
|
+
errorMessage: {
|
|
635
|
+
type: String,
|
|
636
|
+
default: '',
|
|
637
|
+
},
|
|
626
638
|
disabled: {
|
|
627
639
|
required: false,
|
|
628
640
|
type: Boolean,
|
|
@@ -735,6 +747,9 @@
|
|
|
735
747
|
}
|
|
736
748
|
},
|
|
737
749
|
computed: {
|
|
750
|
+
hasErrorMessage() {
|
|
751
|
+
return this.errorMessage && this.errorMessage.length > 0
|
|
752
|
+
},
|
|
738
753
|
optionLength() {
|
|
739
754
|
if (this.isDropdownOpen) {
|
|
740
755
|
return this.$refs.dropdown.$el.childElementCount > 1
|
|
@@ -159,24 +159,17 @@
|
|
|
159
159
|
theme,
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
computed: {
|
|
163
|
-
selectDropdownParent() {
|
|
164
|
-
const element = this.$el?.closest('.rc-select-dropdown')
|
|
165
|
-
// Try to get the Vue component instance
|
|
166
|
-
return element?.__vueParentComponent?.ctx || this.$parent
|
|
167
|
-
},
|
|
168
|
-
},
|
|
162
|
+
computed: {},
|
|
169
163
|
methods: {
|
|
170
164
|
clickHandler(e) {
|
|
171
165
|
if (this.isDisabled || !!this.$attrs?.onClick) {
|
|
172
166
|
// prevent emitter if the option is disabled
|
|
173
167
|
return
|
|
174
168
|
}
|
|
175
|
-
|
|
176
|
-
this.selectDropdownParent.$emit('option-selected', this.value, this, e)
|
|
169
|
+
this.$parent.$emit('option-selected', this.value, e)
|
|
177
170
|
},
|
|
178
171
|
hoverHandler() {
|
|
179
|
-
this
|
|
172
|
+
this.$parent.$emit('option-hovered', this.value)
|
|
180
173
|
},
|
|
181
174
|
},
|
|
182
175
|
}
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
:resize="resize"
|
|
26
26
|
:rows="rowHeight"
|
|
27
27
|
:value="value"
|
|
28
|
+
@blur="onInputBlur"
|
|
29
|
+
@focus="onInputFocus"
|
|
28
30
|
@input="onChangeHandler"
|
|
29
31
|
></textarea>
|
|
30
32
|
</InputContainer>
|
|
@@ -208,6 +210,12 @@
|
|
|
208
210
|
}
|
|
209
211
|
this.$emit('input-change', $event.target.value)
|
|
210
212
|
},
|
|
213
|
+
onInputBlur($event) {
|
|
214
|
+
this.$emit('input-blur', $event.target.value)
|
|
215
|
+
},
|
|
216
|
+
onInputFocus($event) {
|
|
217
|
+
this.$emit('input-focus', $event.target.value)
|
|
218
|
+
},
|
|
211
219
|
},
|
|
212
220
|
}
|
|
213
221
|
</script>
|