@eturnity/eturnity_reusable_components 8.49.2 → 8.49.3--EPDM-18015.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/dist/main.es15.js CHANGED
@@ -1,271 +1,66 @@
1
- import "./main.es3.js";
2
- import styled from "./main.es7.js";
3
- import { fetchIcon } from "./main.es27.js";
4
- import { rotateSvg } from "./main.es28.js";
5
- import { reactive } from "./main.es18.js";
6
- import { computed, onMounted, watch, openBlock, createBlock, withCtx, createVNode, createElementVNode as createBaseVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
7
- import { toDisplayString } from "./main.es16.js";
8
- const _hoisted_1 = ["innerHTML"];
9
- const _sfc_main = {
10
- __name: "index",
11
- props: {
12
- disabled: {
13
- required: false,
14
- default: false,
15
- type: Boolean
16
- },
17
- name: {
18
- required: true,
19
- type: String
20
- },
21
- color: {
22
- required: false,
23
- default: null,
24
- type: String
25
- },
26
- hoveredColor: {
27
- required: false,
28
- default: null,
29
- type: String
30
- },
31
- size: {
32
- required: false,
33
- default: "30px",
34
- type: String
35
- },
36
- width: {
37
- type: String,
38
- required: false,
39
- default: ""
40
- },
41
- height: {
42
- type: String,
43
- required: false,
44
- default: ""
45
- },
46
- cursor: {
47
- required: false,
48
- default: null,
49
- type: String
50
- },
51
- isStriked: {
52
- required: false,
53
- default: false,
54
- type: Boolean
55
- },
56
- backgroundColor: {
57
- required: false,
58
- default: null,
59
- type: String
60
- },
61
- count: {
62
- required: false,
63
- default: 0,
64
- type: Number
65
- },
66
- animation: {
67
- required: false,
68
- default: "none",
69
- type: String
70
- },
71
- fillType: {
72
- required: false,
73
- default: "fill",
74
- type: String
75
- },
76
- disableHover: {
77
- type: Boolean,
78
- default: false
79
- },
80
- showCount: {
81
- type: Boolean,
82
- default: false
83
- },
84
- svgRotation: {
85
- type: Number,
86
- default: null
87
- },
88
- dataId: {
89
- type: String,
90
- default: ""
91
- },
92
- dataQaId: {
93
- type: String,
94
- default: ""
95
- }
96
- },
97
- setup(__props) {
98
- const props = __props;
99
- const Wrapper = styled("div", {
100
- height: String,
101
- width: String,
102
- disabled: Boolean,
103
- cursor: String
104
- })`
105
- display: flex;
106
- position: relative;
107
- align-content: center;
108
- justify-content: center;
109
- width: ${(props2) => props2.width};
110
- height: ${(props2) => props2.height};
111
- min-width: ${(props2) => props2.width};
112
- min-height: ${(props2) => props2.height};
113
- cursor: ${(props2) => props2.disabled ? "not-allowed" : props2.cursor};
114
- line-height: 0;
115
- `;
116
- const CountWrapper = styled("div")`
117
- position: absolute;
118
- top: -7px;
119
- right: -7px;
120
- background-color: ${({
121
- theme
122
- }) => theme.colors.red};
123
- color: ${({
124
- theme
125
- }) => theme.colors.white};
126
- border-radius: 100%;
127
- width: 15px;
128
- height: 15px;
129
- display: flex;
130
- justify-content: center;
131
- align-items: center;
132
- font-size: 10px;
133
- `;
134
- const StrikedLine = styled("div", {
135
- color: String
136
- })`
137
- display: flex;
138
- position: absolute;
139
- bottom: 0;
140
- left: 0;
141
- align-content: center;
142
- justify-content: center;
143
- width: 143%;
144
- height: 8%;
145
- background-color: ${({
146
- theme,
147
- color
148
- }) => theme.colors[color] || color};
149
- min-height: 0;
150
- line-height: 0;
151
- transform-origin: 0% 100%;
152
- transform: rotate(-45deg);
153
- `;
154
- const IconImageAttrs = {
155
- color: String,
156
- backgroundColor: String,
157
- hoveredColor: String,
158
- animation: String,
159
- fillType: String,
160
- disableHover: Boolean,
161
- showCount: Boolean
162
- };
163
- const IconImage = styled("div", IconImageAttrs)`
164
- animation: ${(props2) => props2.animation};
165
- width: 100%;
166
- svg {
167
- width: 100%;
168
- height: 100%;
169
- background-color: ${(props2) => props2.backgroundColor ? props2.backgroundColor : "transparent"};
170
- padding: ${(props2) => props2.backgroundColor ? "3px" : "0"};
171
- border-radius: ${(props2) => props2.showCount ? "8px 0 0 8px" : props2.backgroundColor ? "8px" : "0"};
172
- }
173
- svg path:not(.fix, .isStrokePath) {
174
- ${({
175
- theme,
176
- color,
177
- fillType
178
- }) => color && `${fillType}: ${theme.colors[color] || color};`}
179
- }
180
- svg .isStroke {
181
- ${({
182
- theme,
183
- color
184
- }) => color && `stroke: ${theme.colors[color] || color};`}
185
- }
186
- svg .isFill {
187
- ${({
188
- theme,
189
- color
190
- }) => color && `fill: ${theme.colors[color] || color};`}
191
- }
192
- svg .isStrokePath:not(.fix) {
193
- ${({
194
- theme,
195
- color
196
- }) => color && `stroke: ${theme.colors[color] || color};`}
197
- }
198
- ${(props2) => !props2.disableHover && `
199
- &:hover svg path:not(.fix, .isStrokePath) {
200
- ${`${props2.fillType}: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
201
- &:hover svg isStrokePath:not(.fix) {
202
- ${`stroke: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
203
- }
204
- &:hover + div {
205
- background-color: ${props2.hoveredColor};
206
- }
207
- `}
208
-
209
- @keyframes fade {
210
- 50% {
211
- opacity: 0.3;
212
- }
213
- }
214
- `;
215
- const icon = reactive({
216
- html: ""
217
- });
218
- const loadSvg = async () => {
219
- let svgString = await fetchIcon(props.name.toLowerCase());
220
- if (props.svgRotation)
221
- svgString = rotateSvg(svgString, props.svgRotation);
222
- icon.html = svgString;
223
- };
224
- const counter = computed(() => props.count > 9 ? "9+" : props.count.toString());
225
- onMounted(() => loadSvg());
226
- watch(() => props.name, loadSvg);
227
- watch(() => props.svgRotation, loadSvg);
228
- return (_ctx, _cache) => {
229
- return openBlock(), createBlock(Wrapper, {
230
- cursor: __props.cursor,
231
- "data-id": __props.dataId,
232
- "data-qa-id": __props.dataQaId,
233
- "data-test-id": "icon_wrapper",
234
- disabled: __props.disabled,
235
- height: __props.height ? __props.height : __props.size,
236
- width: __props.width ? __props.width : __props.size
237
- }, {
238
- default: withCtx(() => [createVNode(IconImage, {
239
- animation: __props.animation,
240
- "background-color": __props.backgroundColor,
241
- color: __props.color,
242
- "data-test-id": "icon_image",
243
- "disable-hover": __props.disableHover,
244
- "fill-type": __props.fillType,
245
- "hovered-color": __props.hoveredColor,
246
- "show-count": __props.showCount
247
- }, {
248
- default: withCtx(() => [createBaseVNode("i", {
249
- "data-test-id": "icon_svg",
250
- innerHTML: icon.html
251
- }, null, 8, _hoisted_1)]),
252
- _: 1
253
- }, 8, ["animation", "background-color", "color", "disable-hover", "fill-type", "hovered-color", "show-count"]), createTextVNode(), __props.isStriked ? (openBlock(), createBlock(StrikedLine, {
254
- key: 0,
255
- color: __props.color,
256
- "data-test-id": "icon_striked_line"
257
- }, null, 8, ["color"])) : createCommentVNode("", true), createTextVNode(), __props.count > 0 ? (openBlock(), createBlock(CountWrapper, {
258
- key: 1,
259
- "data-test-id": "icon_count"
260
- }, {
261
- default: withCtx(() => [createTextVNode(toDisplayString(counter.value), 1)]),
262
- _: 1
263
- })) : createCommentVNode("", true)]),
264
- _: 1
265
- }, 8, ["cursor", "data-id", "data-qa-id", "disabled", "height", "width"]);
266
- };
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;
267
6
  }
7
+ return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
+ }
9
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
+ const onRE = /^on[^a-z]/;
12
+ const isOn = (key) => onRE.test(key);
13
+ const isModelListener = (key) => key.startsWith("onUpdate:");
14
+ const extend = Object.assign;
15
+ const isArray = Array.isArray;
16
+ const isFunction = (val) => typeof val === "function";
17
+ const isString = (val) => typeof val === "string";
18
+ const cacheStringFunction = (fn) => {
19
+ const cache = /* @__PURE__ */ Object.create(null);
20
+ return (str) => {
21
+ const hit = cache[str];
22
+ return hit || (cache[str] = fn(str));
23
+ };
268
24
  };
25
+ const hyphenateRE = /\B([A-Z])/g;
26
+ const hyphenate = cacheStringFunction(
27
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
28
+ );
29
+ const capitalize = cacheStringFunction(
30
+ (str) => str.charAt(0).toUpperCase() + str.slice(1)
31
+ );
32
+ const invokeArrayFns = (fns, arg) => {
33
+ for (let i = 0; i < fns.length; i++) {
34
+ fns[i](arg);
35
+ }
36
+ };
37
+ const looseToNumber = (val) => {
38
+ const n = parseFloat(val);
39
+ return isNaN(n) ? val : n;
40
+ };
41
+ const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
42
+ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
43
+ const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
44
+ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
45
+ const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
46
+ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
47
+ function includeBooleanAttr(value) {
48
+ return !!value || value === "";
49
+ }
269
50
  export {
270
- _sfc_main as default
51
+ capitalize,
52
+ extend,
53
+ hyphenate,
54
+ includeBooleanAttr,
55
+ invokeArrayFns,
56
+ isArray,
57
+ isFunction,
58
+ isHTMLTag,
59
+ isModelListener,
60
+ isOn,
61
+ isSVGTag,
62
+ isSpecialBooleanAttr,
63
+ isString,
64
+ looseToNumber,
65
+ makeMap
271
66
  };
package/dist/main.es18.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isSymbol, hasChanged, isObject, NOOP, isArray, extend, toRawType, isFunction, def, hasOwn, isIntegerKey, isMap, makeMap, capitalize } from "./main.es746.js";
1
+ import { isSymbol, hasChanged, isObject, NOOP, isArray, extend, toRawType, isFunction, def, hasOwn, isIntegerKey, isMap, makeMap, capitalize } from "./main.es745.js";
2
2
  function warn(msg, ...args) {
3
3
  console.warn(`[Vue warn] ${msg}`, ...args);
4
4
  }
package/dist/main.es20.js CHANGED
@@ -1,4 +1,4 @@
1
- import _sfc_main$1 from "./main.es15.js";
1
+ import _sfc_main$1 from "./main.es26.js";
2
2
  import styled from "./main.es7.js";
3
3
  import "./main.es3.js";
4
4
  import _export_sfc from "./main.es11.js";
package/dist/main.es22.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import styled from "./main.es7.js";
2
- import _sfc_main$1 from "./main.es15.js";
2
+ import _sfc_main$1 from "./main.es26.js";
3
3
  import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
package/dist/main.es24.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./main.es3.js";
2
- import _sfc_main$1 from "./main.es15.js";
2
+ import _sfc_main$1 from "./main.es26.js";
3
3
  import styled from "./main.es7.js";
4
4
  import theme from "./main.es8.js";
5
5
  import _export_sfc from "./main.es11.js";
@@ -214,6 +214,16 @@ const _sfc_main = {
214
214
  type: Boolean,
215
215
  default: false,
216
216
  required: false
217
+ },
218
+ dataId: {
219
+ required: false,
220
+ default: "",
221
+ type: String
222
+ },
223
+ dataQaId: {
224
+ required: false,
225
+ default: "",
226
+ type: String
217
227
  }
218
228
  },
219
229
  setup(props) {
@@ -457,6 +467,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
457
467
  const _component_PageContainer = resolveComponent("PageContainer");
458
468
  return openBlock(), createBlock(_component_PageContainer, {
459
469
  ref: "container",
470
+ "data-id": $props.dataId,
471
+ "data-qa-id": $props.dataQaId,
460
472
  "data-test-id": "infoText_container",
461
473
  type: $props.type,
462
474
  onClick: _cache[0] || (_cache[0] = ($event) => {
@@ -535,7 +547,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
535
547
  _: 3
536
548
  }, 8, ["style"])])) : createCommentVNode("", true)]),
537
549
  _: 3
538
- }, 8, ["type"]);
550
+ }, 8, ["data-id", "data-qa-id", "type"]);
539
551
  }
540
552
  const InfoText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
541
553
  export {
package/dist/main.es26.js CHANGED
@@ -1,66 +1,271 @@
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;
1
+ import "./main.es3.js";
2
+ import styled from "./main.es7.js";
3
+ import { fetchIcon } from "./main.es27.js";
4
+ import { rotateSvg } from "./main.es28.js";
5
+ import { reactive } from "./main.es18.js";
6
+ import { computed, onMounted, watch, openBlock, createBlock, withCtx, createVNode, createElementVNode as createBaseVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
7
+ import { toDisplayString } from "./main.es16.js";
8
+ const _hoisted_1 = ["innerHTML"];
9
+ const _sfc_main = {
10
+ __name: "index",
11
+ props: {
12
+ disabled: {
13
+ required: false,
14
+ default: false,
15
+ type: Boolean
16
+ },
17
+ name: {
18
+ required: true,
19
+ type: String
20
+ },
21
+ color: {
22
+ required: false,
23
+ default: null,
24
+ type: String
25
+ },
26
+ hoveredColor: {
27
+ required: false,
28
+ default: null,
29
+ type: String
30
+ },
31
+ size: {
32
+ required: false,
33
+ default: "30px",
34
+ type: String
35
+ },
36
+ width: {
37
+ type: String,
38
+ required: false,
39
+ default: ""
40
+ },
41
+ height: {
42
+ type: String,
43
+ required: false,
44
+ default: ""
45
+ },
46
+ cursor: {
47
+ required: false,
48
+ default: null,
49
+ type: String
50
+ },
51
+ isStriked: {
52
+ required: false,
53
+ default: false,
54
+ type: Boolean
55
+ },
56
+ backgroundColor: {
57
+ required: false,
58
+ default: null,
59
+ type: String
60
+ },
61
+ count: {
62
+ required: false,
63
+ default: 0,
64
+ type: Number
65
+ },
66
+ animation: {
67
+ required: false,
68
+ default: "none",
69
+ type: String
70
+ },
71
+ fillType: {
72
+ required: false,
73
+ default: "fill",
74
+ type: String
75
+ },
76
+ disableHover: {
77
+ type: Boolean,
78
+ default: false
79
+ },
80
+ showCount: {
81
+ type: Boolean,
82
+ default: false
83
+ },
84
+ svgRotation: {
85
+ type: Number,
86
+ default: null
87
+ },
88
+ dataId: {
89
+ type: String,
90
+ default: ""
91
+ },
92
+ dataQaId: {
93
+ type: String,
94
+ default: ""
95
+ }
96
+ },
97
+ setup(__props) {
98
+ const props = __props;
99
+ const Wrapper = styled("div", {
100
+ height: String,
101
+ width: String,
102
+ disabled: Boolean,
103
+ cursor: String
104
+ })`
105
+ display: flex;
106
+ position: relative;
107
+ align-content: center;
108
+ justify-content: center;
109
+ width: ${(props2) => props2.width};
110
+ height: ${(props2) => props2.height};
111
+ min-width: ${(props2) => props2.width};
112
+ min-height: ${(props2) => props2.height};
113
+ cursor: ${(props2) => props2.disabled ? "not-allowed" : props2.cursor};
114
+ line-height: 0;
115
+ `;
116
+ const CountWrapper = styled("div")`
117
+ position: absolute;
118
+ top: -7px;
119
+ right: -7px;
120
+ background-color: ${({
121
+ theme
122
+ }) => theme.colors.red};
123
+ color: ${({
124
+ theme
125
+ }) => theme.colors.white};
126
+ border-radius: 100%;
127
+ width: 15px;
128
+ height: 15px;
129
+ display: flex;
130
+ justify-content: center;
131
+ align-items: center;
132
+ font-size: 10px;
133
+ `;
134
+ const StrikedLine = styled("div", {
135
+ color: String
136
+ })`
137
+ display: flex;
138
+ position: absolute;
139
+ bottom: 0;
140
+ left: 0;
141
+ align-content: center;
142
+ justify-content: center;
143
+ width: 143%;
144
+ height: 8%;
145
+ background-color: ${({
146
+ theme,
147
+ color
148
+ }) => theme.colors[color] || color};
149
+ min-height: 0;
150
+ line-height: 0;
151
+ transform-origin: 0% 100%;
152
+ transform: rotate(-45deg);
153
+ `;
154
+ const IconImageAttrs = {
155
+ color: String,
156
+ backgroundColor: String,
157
+ hoveredColor: String,
158
+ animation: String,
159
+ fillType: String,
160
+ disableHover: Boolean,
161
+ showCount: Boolean
162
+ };
163
+ const IconImage = styled("div", IconImageAttrs)`
164
+ animation: ${(props2) => props2.animation};
165
+ width: 100%;
166
+ svg {
167
+ width: 100%;
168
+ height: 100%;
169
+ background-color: ${(props2) => props2.backgroundColor ? props2.backgroundColor : "transparent"};
170
+ padding: ${(props2) => props2.backgroundColor ? "3px" : "0"};
171
+ border-radius: ${(props2) => props2.showCount ? "8px 0 0 8px" : props2.backgroundColor ? "8px" : "0"};
172
+ }
173
+ svg path:not(.fix, .isStrokePath) {
174
+ ${({
175
+ theme,
176
+ color,
177
+ fillType
178
+ }) => color && `${fillType}: ${theme.colors[color] || color};`}
179
+ }
180
+ svg .isStroke {
181
+ ${({
182
+ theme,
183
+ color
184
+ }) => color && `stroke: ${theme.colors[color] || color};`}
185
+ }
186
+ svg .isFill {
187
+ ${({
188
+ theme,
189
+ color
190
+ }) => color && `fill: ${theme.colors[color] || color};`}
191
+ }
192
+ svg .isStrokePath:not(.fix) {
193
+ ${({
194
+ theme,
195
+ color
196
+ }) => color && `stroke: ${theme.colors[color] || color};`}
197
+ }
198
+ ${(props2) => !props2.disableHover && `
199
+ &:hover svg path:not(.fix, .isStrokePath) {
200
+ ${`${props2.fillType}: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
201
+ &:hover svg isStrokePath:not(.fix) {
202
+ ${`stroke: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
203
+ }
204
+ &:hover + div {
205
+ background-color: ${props2.hoveredColor};
206
+ }
207
+ `}
208
+
209
+ @keyframes fade {
210
+ 50% {
211
+ opacity: 0.3;
212
+ }
213
+ }
214
+ `;
215
+ const icon = reactive({
216
+ html: ""
217
+ });
218
+ const loadSvg = async () => {
219
+ let svgString = await fetchIcon(props.name.toLowerCase());
220
+ if (props.svgRotation)
221
+ svgString = rotateSvg(svgString, props.svgRotation);
222
+ icon.html = svgString;
223
+ };
224
+ const counter = computed(() => props.count > 9 ? "9+" : props.count.toString());
225
+ onMounted(() => loadSvg());
226
+ watch(() => props.name, loadSvg);
227
+ watch(() => props.svgRotation, loadSvg);
228
+ return (_ctx, _cache) => {
229
+ return openBlock(), createBlock(Wrapper, {
230
+ cursor: __props.cursor,
231
+ "data-id": __props.dataId,
232
+ "data-qa-id": __props.dataQaId,
233
+ "data-test-id": "icon_wrapper",
234
+ disabled: __props.disabled,
235
+ height: __props.height ? __props.height : __props.size,
236
+ width: __props.width ? __props.width : __props.size
237
+ }, {
238
+ default: withCtx(() => [createVNode(IconImage, {
239
+ animation: __props.animation,
240
+ "background-color": __props.backgroundColor,
241
+ color: __props.color,
242
+ "data-test-id": "icon_image",
243
+ "disable-hover": __props.disableHover,
244
+ "fill-type": __props.fillType,
245
+ "hovered-color": __props.hoveredColor,
246
+ "show-count": __props.showCount
247
+ }, {
248
+ default: withCtx(() => [createBaseVNode("i", {
249
+ "data-test-id": "icon_svg",
250
+ innerHTML: icon.html
251
+ }, null, 8, _hoisted_1)]),
252
+ _: 1
253
+ }, 8, ["animation", "background-color", "color", "disable-hover", "fill-type", "hovered-color", "show-count"]), createTextVNode(), __props.isStriked ? (openBlock(), createBlock(StrikedLine, {
254
+ key: 0,
255
+ color: __props.color,
256
+ "data-test-id": "icon_striked_line"
257
+ }, null, 8, ["color"])) : createCommentVNode("", true), createTextVNode(), __props.count > 0 ? (openBlock(), createBlock(CountWrapper, {
258
+ key: 1,
259
+ "data-test-id": "icon_count"
260
+ }, {
261
+ default: withCtx(() => [createTextVNode(toDisplayString(counter.value), 1)]),
262
+ _: 1
263
+ })) : createCommentVNode("", true)]),
264
+ _: 1
265
+ }, 8, ["cursor", "data-id", "data-qa-id", "disabled", "height", "width"]);
266
+ };
6
267
  }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
- }
9
- !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
- !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
- const onRE = /^on[^a-z]/;
12
- const isOn = (key) => onRE.test(key);
13
- const isModelListener = (key) => key.startsWith("onUpdate:");
14
- const extend = Object.assign;
15
- const isArray = Array.isArray;
16
- const isFunction = (val) => typeof val === "function";
17
- const isString = (val) => typeof val === "string";
18
- const cacheStringFunction = (fn) => {
19
- const cache = /* @__PURE__ */ Object.create(null);
20
- return (str) => {
21
- const hit = cache[str];
22
- return hit || (cache[str] = fn(str));
23
- };
24
268
  };
25
- const hyphenateRE = /\B([A-Z])/g;
26
- const hyphenate = cacheStringFunction(
27
- (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
28
- );
29
- const capitalize = cacheStringFunction(
30
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
31
- );
32
- const invokeArrayFns = (fns, arg) => {
33
- for (let i = 0; i < fns.length; i++) {
34
- fns[i](arg);
35
- }
36
- };
37
- const looseToNumber = (val) => {
38
- const n = parseFloat(val);
39
- return isNaN(n) ? val : n;
40
- };
41
- const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
42
- const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
43
- const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
44
- const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
45
- const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
46
- const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
47
- function includeBooleanAttr(value) {
48
- return !!value || value === "";
49
- }
50
269
  export {
51
- capitalize,
52
- extend,
53
- hyphenate,
54
- includeBooleanAttr,
55
- invokeArrayFns,
56
- isArray,
57
- isFunction,
58
- isHTMLTag,
59
- isModelListener,
60
- isOn,
61
- isSVGTag,
62
- isSpecialBooleanAttr,
63
- isString,
64
- looseToNumber,
65
- makeMap
270
+ _sfc_main as default
66
271
  };
@@ -1,5 +1,5 @@
1
1
  import styled from "./main.es7.js";
2
- import _sfc_main$1 from "./main.es15.js";
2
+ import _sfc_main$1 from "./main.es26.js";
3
3
  import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
@@ -1,5 +1,5 @@
1
1
  import { HOOK_PLUGIN_SETTINGS_SET } from "./main.es387.js";
2
- import { now } from "./main.es745.js";
2
+ import { now } from "./main.es746.js";
3
3
  class ApiProxy {
4
4
  constructor(plugin, hook) {
5
5
  this.target = null;
package/dist/main.es5.js CHANGED
@@ -1,6 +1,6 @@
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.es26.js";
3
+ import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.es15.js";
4
4
  import { camelize } from "./main.es16.js";
5
5
  import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.es16.js";
6
6
  const svgNS = "http://www.w3.org/2000/svg";
@@ -1,25 +1,64 @@
1
- let supported;
2
- let perf;
3
- function isPerformanceSupported() {
4
- var _a;
5
- if (supported !== void 0) {
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
- 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();
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
- isPerformanceSupported,
24
- now
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
  };
@@ -1,64 +1,25 @@
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;
1
+ let supported;
2
+ let perf;
3
+ function isPerformanceSupported() {
4
+ var _a;
5
+ if (supported !== void 0) {
6
+ return supported;
6
7
  }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
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
- 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
23
+ isPerformanceSupported,
24
+ now
64
25
  };
package/dist/main.es9.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import styled from "./main.es7.js";
2
- import _sfc_main$1 from "./main.es15.js";
2
+ import _sfc_main$1 from "./main.es26.js";
3
3
  import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
@@ -39,6 +39,11 @@ const _sfc_main = {
39
39
  dataId: {
40
40
  type: String,
41
41
  default: ""
42
+ },
43
+ dataQaId: {
44
+ required: false,
45
+ default: "",
46
+ type: String
42
47
  }
43
48
  },
44
49
  computed: {
@@ -58,7 +63,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
58
63
  const _component_TextContainer = resolveComponent("TextContainer");
59
64
  const _component_TagContainer = resolveComponent("TagContainer");
60
65
  return openBlock(), createBlock(_component_TagContainer, {
61
- "data-id": $props.dataId
66
+ "data-id": $props.dataId,
67
+ "data-qa-id": $props.dataQaId
62
68
  }, {
63
69
  default: withCtx(() => [createVNode(_component_RcIcon, {
64
70
  color: $options.getIconColor,
@@ -70,7 +76,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
70
76
  _: 1
71
77
  })]),
72
78
  _: 1
73
- }, 8, ["data-id"]);
79
+ }, 8, ["data-id", "data-qa-id"]);
74
80
  }
75
81
  const ConversionTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
76
82
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.49.2",
3
+ "version": "8.49.3--EPDM-18015.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <Wrapper>
3
- <Container>
3
+ <Container :data-id="dataId" :data-qa-id="dataQaId">
4
4
  <LeftLine :color="color" />
5
5
  <RightLine :color="color" />
6
6
  </Container>
@@ -57,6 +57,16 @@
57
57
  required: false,
58
58
  default: '',
59
59
  },
60
+ dataId: {
61
+ required: false,
62
+ default: '',
63
+ type: String,
64
+ },
65
+ dataQaId: {
66
+ required: false,
67
+ default: '',
68
+ type: String,
69
+ },
60
70
  },
61
71
  }
62
72
  </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <Wrapper :is-disabled="isDisabled">
2
+ <Wrapper :data-id="dataId" :data-qa-id="dataQaId" :is-disabled="isDisabled">
3
3
  <DeleteIconRed class="icon-red" :hover-bg="hoverBg" />
4
4
  <DeleteIconGray class="icon-gray" />
5
5
  </Wrapper>
@@ -73,6 +73,16 @@
73
73
  required: false,
74
74
  default: '',
75
75
  },
76
+ dataId: {
77
+ required: false,
78
+ default: '',
79
+ type: String,
80
+ },
81
+ dataQaId: {
82
+ required: false,
83
+ default: '',
84
+ type: String,
85
+ },
76
86
  },
77
87
  }
78
88
  </script>
@@ -1,6 +1,8 @@
1
1
  <template>
2
2
  <PageContainer
3
3
  ref="container"
4
+ :data-id="dataId"
5
+ :data-qa-id="dataQaId"
4
6
  data-test-id="infoText_container"
5
7
  :type="type"
6
8
  @click=";(isMobile || openTrigger === 'onClick') && toggleInfo()"
@@ -329,6 +331,16 @@
329
331
  default: false,
330
332
  required: false,
331
333
  },
334
+ dataId: {
335
+ required: false,
336
+ default: '',
337
+ type: String,
338
+ },
339
+ dataQaId: {
340
+ required: false,
341
+ default: '',
342
+ type: String,
343
+ },
332
344
  },
333
345
  setup(props) {
334
346
  const isVisible = ref(false)
@@ -18,7 +18,7 @@
18
18
  :is-error="isError"
19
19
  >
20
20
  <textarea
21
- :data-id="inputDataId"
21
+ :data-id="inputDataId || dataId"
22
22
  :data-qa-id="dataQaId"
23
23
  :disabled="isDisabled"
24
24
  :placeholder="placeholder"
@@ -192,6 +192,11 @@
192
192
  required: false,
193
193
  default: '',
194
194
  },
195
+ dataId: {
196
+ required: false,
197
+ default: '',
198
+ type: String,
199
+ },
195
200
  dataQaId: {
196
201
  required: false,
197
202
  default: '',
@@ -9,6 +9,7 @@
9
9
  v-if="!item.children"
10
10
  :key="idx"
11
11
  :data-id="`sub_menu_settings_${item.key}`"
12
+ :data-qa-id="`sub_menu_settings_${item.key}`"
12
13
  :fill-type="item.icon === 'free_technology' ? 'stroke' : 'fill'"
13
14
  :is-active="activeTab === item.key || activeParentTab === item.key"
14
15
  @click="$emit('tab-click', { activeKey: item.key })"
@@ -31,6 +32,7 @@
31
32
  <CollapseWrapper v-else :key="idx + item.key">
32
33
  <CollapseContainer
33
34
  :data-id="`sub_menu_settings_${item.key}`"
35
+ :data-qa-id="`sub_menu_settings_${item.key}`"
34
36
  :is-active="activeParentTab === item.key"
35
37
  @click="toggleActiveDropdown(item.key)"
36
38
  >
@@ -66,6 +68,7 @@
66
68
  v-for="subItem in item.children"
67
69
  :key="subItem.key"
68
70
  :data-id="`sub_menu_settings_${subItem.key}`"
71
+ :data-qa-id="`sub_menu_settings_${subItem.key}`"
69
72
  :is-active="activeTab === subItem.key"
70
73
  @click="
71
74
  $emit('tab-click', {
@@ -83,6 +86,7 @@
83
86
  <BottomSection v-if="hasLogout">
84
87
  <IconContainer
85
88
  data-id="button_settings_logout"
89
+ data-qa-id="button_settings_logout"
86
90
  :is-active="false"
87
91
  :is-button="true"
88
92
  @click="$emit('on-logout')"
@@ -94,7 +98,11 @@
94
98
  size="18px"
95
99
  />
96
100
  </IconContainer>
97
- <AppVersion>{{ appVersion }}</AppVersion>
101
+ <AppVersion
102
+ data-id="app_side_menu_version"
103
+ data-qa-id="app_side_menu_version"
104
+ >{{ appVersion }}</AppVersion
105
+ >
98
106
  </BottomSection>
99
107
  </PageContainer>
100
108
  </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <TagContainer :data-id="dataId">
2
+ <TagContainer :data-id="dataId" :data-qa-id="dataQaId">
3
3
  <RcIcon
4
4
  :color="getIconColor"
5
5
  :hovered-color="getIconColor"
@@ -51,6 +51,11 @@
51
51
  type: String,
52
52
  default: '',
53
53
  },
54
+ dataQaId: {
55
+ required: false,
56
+ default: '',
57
+ type: String,
58
+ },
54
59
  },
55
60
  computed: {
56
61
  getIconColor() {
@@ -2,6 +2,8 @@
2
2
  <PageContainer
3
3
  ref="pageContainer"
4
4
  :activated="isOpen"
5
+ :data-id="dataId"
6
+ :data-qa-id="dataQaId"
5
7
  :hovered-background-color="hoveredBackgroundColor"
6
8
  @click="toggleButton()"
7
9
  >
@@ -315,6 +317,16 @@
315
317
  type: String,
316
318
  default: theme.colors.grey5,
317
319
  },
320
+ dataId: {
321
+ required: false,
322
+ default: '',
323
+ type: String,
324
+ },
325
+ dataQaId: {
326
+ required: false,
327
+ default: '',
328
+ type: String,
329
+ },
318
330
  },
319
331
  data() {
320
332
  return {