@eturnity/eturnity_reusable_components 8.26.11-EPDM-15023.0 → 8.26.11-EPDM-16030.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.es12.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./main.es3.js";
2
- import { setupDevtoolsPlugin } from "./main.es16.js";
3
- import { shallowRef, unref, reactive, ref } from "./main.es17.js";
2
+ import { setupDevtoolsPlugin } from "./main.es18.js";
3
+ import { shallowRef, unref, reactive, ref } from "./main.es19.js";
4
4
  import { computed, nextTick, defineComponent, watch, inject, h, provide, watchEffect, getCurrentInstance } from "./main.es6.js";
5
5
  /*!
6
6
  * vue-router v4.2.2
package/dist/main.es13.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import styled from "./main.es7.js";
2
- import PanelRangeInfo from "./main.es18.js";
3
- import IconCollection from "./main.es19.js";
2
+ import PanelRangeInfo from "./main.es20.js";
3
+ import IconCollection from "./main.es21.js";
4
4
  import "./main.es3.js";
5
- import "./main.es20.js";
5
+ import "./main.es22.js";
6
6
  import _export_sfc from "./main.es11.js";
7
7
  import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, withDirectives, createElementVNode as createBaseVNode, Fragment } from "./main.es6.js";
8
8
  import { vModelText } from "./main.es5.js";
package/dist/main.es14.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import styled from "./main.es7.js";
2
- import InfoText from "./main.es21.js";
2
+ import InfoText from "./main.es23.js";
3
3
  import "./main.es3.js";
4
4
  import _export_sfc from "./main.es11.js";
5
5
  import { withKeys, withModifiers } from "./main.es5.js";
6
6
  import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
7
- import { toDisplayString } from "./main.es22.js";
7
+ import { toDisplayString } from "./main.es17.js";
8
8
  const Container = styled.div`
9
9
  display: inline-block;
10
10
  `;
package/dist/main.es15.js CHANGED
@@ -4,19 +4,17 @@ import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
6
6
  import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode } from "./main.es6.js";
7
- import { toDisplayString } from "./main.es22.js";
7
+ import { toDisplayString } from "./main.es17.js";
8
8
  const PageContainer = styled.div``;
9
9
  const ButtonAttrs = {
10
10
  type: String,
11
11
  isDisabled: Boolean,
12
12
  minWidth: String,
13
- width: String,
14
13
  noWrap: Boolean,
15
14
  height: String,
16
15
  variant: String,
17
16
  buttonSize: String,
18
- appTheme: String,
19
- isActive: Boolean
17
+ appTheme: String
20
18
  };
21
19
  const ButtonContainer = styled("div", ButtonAttrs)`
22
20
  display: flex;
@@ -30,7 +28,7 @@ const ButtonContainer = styled("div", ButtonAttrs)`
30
28
  return (_d = (_c = (_b = (_a = props.theme) == null ? void 0 : _a.mainButton) == null ? void 0 : _b.size) == null ? void 0 : _c[props.buttonSize]) == null ? void 0 : _d.fontSize;
31
29
  }};
32
30
  color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.textColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.textColor};
33
- background-color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.backgroundColor : props.isActive ? props.theme.mainButton[props.appTheme][props.type][props.variant].active.backgroundColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.backgroundColor};
31
+ background-color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.backgroundColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.backgroundColor};
34
32
  border: ${(props) => {
35
33
  const borderValue = props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.borderColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.borderColor;
36
34
  return borderValue ? "1px solid " + borderValue : "none";
@@ -43,7 +41,7 @@ const ButtonContainer = styled("div", ButtonAttrs)`
43
41
  ${(props) => props.noWrap ? `white-space: nowrap;` : ""};
44
42
  height: ${(props) => props.height};
45
43
  line-height: 1;
46
- width: ${(props) => props.width};
44
+
47
45
  &:hover {
48
46
  background-color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.backgroundColor : props.theme.mainButton[props.appTheme][props.type][props.variant].hover.backgroundColor};
49
47
  }
@@ -107,11 +105,6 @@ const _sfc_main = {
107
105
  default: false,
108
106
  type: Boolean
109
107
  },
110
- isActive: {
111
- required: false,
112
- default: false,
113
- type: Boolean
114
- },
115
108
  icon: {
116
109
  required: false,
117
110
  default: null,
@@ -146,11 +139,6 @@ const _sfc_main = {
146
139
  default: null,
147
140
  type: String
148
141
  },
149
- width: {
150
- required: false,
151
- default: "auto",
152
- type: String
153
- },
154
142
  height: {
155
143
  required: false,
156
144
  default: "auto",
@@ -177,6 +165,10 @@ const _sfc_main = {
177
165
  type: String,
178
166
  default: "medium",
179
167
  required: false
168
+ },
169
+ isFirstLetterCapitalized: {
170
+ type: Boolean,
171
+ default: false
180
172
  }
181
173
  },
182
174
  computed: {
@@ -186,6 +178,11 @@ const _sfc_main = {
186
178
  getIconColor() {
187
179
  return this.isDisabled ? this.theme.mainButton[this.appTheme][this.type][this.variant].disabled.textColor : this.iconColor ? this.iconColor : this.theme.mainButton[this.appTheme][this.type][this.variant].default.textColor;
188
180
  }
181
+ },
182
+ methods: {
183
+ capitalizeFirstLetter(word) {
184
+ return word.charAt(0).toUpperCase() + word.slice(1);
185
+ }
189
186
  }
190
187
  };
191
188
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -201,13 +198,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
201
198
  "data-id": $props.dataId,
202
199
  "data-qa-id": $props.dataQaId,
203
200
  height: $props.height,
204
- "is-active": $props.isActive,
205
201
  "is-disabled": $props.isDisabled,
206
202
  "min-width": $props.minWidth,
207
203
  "no-wrap": $props.noWrap,
208
204
  type: $props.type,
209
- variant: $props.variant,
210
- width: $props.width
205
+ variant: $props.variant
211
206
  }, {
212
207
  default: withCtx(() => [createVNode(_component_LabelComponent, {
213
208
  "has-icon": Boolean($props.icon)
@@ -218,11 +213,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
218
213
  "hovered-color": $options.getIconColor,
219
214
  name: $props.icon,
220
215
  size: "14px"
221
- }, null, 8, ["color", "hovered-color", "name"])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString($props.text), 1)]),
216
+ }, null, 8, ["color", "hovered-color", "name"])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString($props.isFirstLetterCapitalized ? $options.capitalizeFirstLetter($props.text) : $props.text), 1)]),
222
217
  _: 1
223
218
  }, 8, ["has-icon"])]),
224
219
  _: 1
225
- }, 8, ["id", "app-theme", "button-size", "data-id", "data-qa-id", "height", "is-active", "is-disabled", "min-width", "no-wrap", "type", "variant", "width"])]),
220
+ }, 8, ["id", "app-theme", "button-size", "data-id", "data-qa-id", "height", "is-disabled", "min-width", "no-wrap", "type", "variant"])]),
226
221
  _: 1
227
222
  });
228
223
  }
package/dist/main.es16.js CHANGED
@@ -1,26 +1,66 @@
1
- import { isProxyAvailable, getTarget, getDevtoolsGlobalHook } from "./main.es375.js";
2
- import { HOOK_SETUP } from "./main.es376.js";
3
- import { ApiProxy } from "./main.es377.js";
4
- function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
5
- const descriptor = pluginDescriptor;
6
- const target = getTarget();
7
- const hook = getDevtoolsGlobalHook();
8
- const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy;
9
- if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
10
- hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
11
- } else {
12
- const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null;
13
- const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
14
- list.push({
15
- pluginDescriptor: descriptor,
16
- setupFn,
17
- proxy
18
- });
19
- if (proxy) {
20
- setupFn(proxy.proxiedTarget);
21
- }
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;
22
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
+ };
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 === "";
23
49
  }
24
50
  export {
25
- setupDevtoolsPlugin
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
26
66
  };