@eturnity/eturnity_reusable_components 8.26.4-EPDM-15929.0 → 8.26.4-EPDM-15929.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.es14.js +1 -1
- package/dist/main.es15.js +60 -212
- package/dist/main.es16.js +150 -15
- package/dist/main.es17.js +209 -192
- package/dist/main.es19.js +1 -1
- package/dist/main.es20.js +1 -1
- package/dist/main.es21.js +1 -1
- package/dist/main.es23.js +1 -1
- package/dist/main.es24.js +1 -1
- package/dist/main.es376.js +1 -1
- package/dist/main.es378.js +21 -60
- package/dist/main.es379.js +60 -21
- package/dist/main.es5.js +3 -3
- package/dist/main.es6.js +2 -2
- package/dist/main.es9.js +1 -1
- package/package.json +1 -1
- package/src/components/inputs/searchInput/index.vue +11 -2
package/dist/main.es14.js
CHANGED
@@ -4,7 +4,7 @@ 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.
|
7
|
+
import { toDisplayString } from "./main.es16.js";
|
8
8
|
const Container = styled.div`
|
9
9
|
display: inline-block;
|
10
10
|
`;
|
package/dist/main.es15.js
CHANGED
@@ -1,218 +1,66 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
const
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
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.padding;
|
25
|
-
}};
|
26
|
-
font-size: ${(props) => {
|
27
|
-
var _a, _b, _c, _d;
|
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;
|
29
|
-
}};
|
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};
|
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};
|
32
|
-
border: ${(props) => {
|
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;
|
34
|
-
return borderValue ? "1px solid " + borderValue : "none";
|
35
|
-
}};
|
36
|
-
border-radius: 4px;
|
37
|
-
text-align: center;
|
38
|
-
cursor: ${(props) => props.isDisabled ? "not-allowed" : "pointer"};
|
39
|
-
user-select: none;
|
40
|
-
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""};
|
41
|
-
${(props) => props.noWrap ? `white-space: nowrap;` : ""};
|
42
|
-
height: ${(props) => props.height};
|
43
|
-
line-height: 1;
|
44
|
-
|
45
|
-
&:hover {
|
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};
|
47
|
-
}
|
48
|
-
|
49
|
-
&:active {
|
50
|
-
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].active.backgroundColor};
|
51
|
-
}
|
52
|
-
`;
|
53
|
-
const AltAttrs = {
|
54
|
-
altStyle: Boolean,
|
55
|
-
color: String
|
56
|
-
};
|
57
|
-
styled("div", AltAttrs)`
|
58
|
-
background-color: ${(props) => props.color ? props.color : props.theme.colors.transparentWhite1};
|
59
|
-
padding: 7px;
|
60
|
-
height: 100%;
|
61
|
-
width: 30%;
|
62
|
-
justify-content: center;
|
63
|
-
display: flex;
|
64
|
-
align-items: center;
|
65
|
-
border-radius: 4px 0 0 4px;
|
66
|
-
color: ${(props) => props.theme.colors.white};
|
67
|
-
all: ${(props) => props.altStyle ? "" : "unset"};
|
68
|
-
`;
|
69
|
-
styled("span", AltAttrs)`
|
70
|
-
padding: ${(props) => props.altStyle ? "7px" : "0"};
|
71
|
-
all: ${(props) => props.altStyle ? "" : "unset"};
|
72
|
-
`;
|
73
|
-
const LabelAttrs = {
|
74
|
-
hasIcon: Boolean
|
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
|
+
!!(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
|
+
};
|
75
24
|
};
|
76
|
-
const
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
LabelComponent,
|
87
|
-
PageContainer,
|
88
|
-
ButtonContainer
|
89
|
-
},
|
90
|
-
props: {
|
91
|
-
type: {
|
92
|
-
required: false,
|
93
|
-
default: "primary",
|
94
|
-
// primary, secondary, tertiary, ghost
|
95
|
-
type: String
|
96
|
-
},
|
97
|
-
variant: {
|
98
|
-
required: false,
|
99
|
-
default: "main",
|
100
|
-
// main, cancel
|
101
|
-
type: String
|
102
|
-
},
|
103
|
-
isDisabled: {
|
104
|
-
required: false,
|
105
|
-
default: false,
|
106
|
-
type: Boolean
|
107
|
-
},
|
108
|
-
icon: {
|
109
|
-
required: false,
|
110
|
-
default: null,
|
111
|
-
type: String
|
112
|
-
},
|
113
|
-
iconColor: {
|
114
|
-
required: false,
|
115
|
-
default: "",
|
116
|
-
type: String
|
117
|
-
},
|
118
|
-
iconAltStyle: {
|
119
|
-
required: false,
|
120
|
-
default: false,
|
121
|
-
type: Boolean
|
122
|
-
},
|
123
|
-
iconAltStyleColor: {
|
124
|
-
required: false,
|
125
|
-
default: null,
|
126
|
-
type: String
|
127
|
-
},
|
128
|
-
text: {
|
129
|
-
required: true,
|
130
|
-
type: String
|
131
|
-
},
|
132
|
-
noWrap: {
|
133
|
-
required: false,
|
134
|
-
default: false,
|
135
|
-
type: Boolean
|
136
|
-
},
|
137
|
-
minWidth: {
|
138
|
-
required: false,
|
139
|
-
default: null,
|
140
|
-
type: String
|
141
|
-
},
|
142
|
-
height: {
|
143
|
-
required: false,
|
144
|
-
default: "auto",
|
145
|
-
type: String
|
146
|
-
},
|
147
|
-
id: {
|
148
|
-
required: false,
|
149
|
-
default: null,
|
150
|
-
type: String
|
151
|
-
},
|
152
|
-
dataId: {
|
153
|
-
type: String,
|
154
|
-
default: ""
|
155
|
-
},
|
156
|
-
dataQaId: {
|
157
|
-
type: String,
|
158
|
-
default: ""
|
159
|
-
},
|
160
|
-
appTheme: {
|
161
|
-
type: String,
|
162
|
-
default: "light"
|
163
|
-
},
|
164
|
-
buttonSize: {
|
165
|
-
type: String,
|
166
|
-
default: "medium",
|
167
|
-
required: false
|
168
|
-
}
|
169
|
-
},
|
170
|
-
computed: {
|
171
|
-
theme() {
|
172
|
-
return theme;
|
173
|
-
},
|
174
|
-
getIconColor() {
|
175
|
-
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;
|
176
|
-
}
|
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);
|
177
35
|
}
|
178
36
|
};
|
179
|
-
|
180
|
-
const
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
height: $props.height,
|
192
|
-
"is-disabled": $props.isDisabled,
|
193
|
-
"min-width": $props.minWidth,
|
194
|
-
"no-wrap": $props.noWrap,
|
195
|
-
type: $props.type,
|
196
|
-
variant: $props.variant
|
197
|
-
}, {
|
198
|
-
default: withCtx(() => [createVNode(_component_LabelComponent, {
|
199
|
-
"has-icon": Boolean($props.icon)
|
200
|
-
}, {
|
201
|
-
default: withCtx(() => [$props.icon ? (openBlock(), createBlock(_component_Icon, {
|
202
|
-
key: 0,
|
203
|
-
color: $options.getIconColor,
|
204
|
-
"hovered-color": $options.getIconColor,
|
205
|
-
name: $props.icon,
|
206
|
-
size: "14px"
|
207
|
-
}, null, 8, ["color", "hovered-color", "name"])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString($props.text), 1)]),
|
208
|
-
_: 1
|
209
|
-
}, 8, ["has-icon"])]),
|
210
|
-
_: 1
|
211
|
-
}, 8, ["id", "app-theme", "button-size", "data-id", "data-qa-id", "height", "is-disabled", "min-width", "no-wrap", "type", "variant"])]),
|
212
|
-
_: 1
|
213
|
-
});
|
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 === "";
|
214
49
|
}
|
215
|
-
const RCButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
216
50
|
export {
|
217
|
-
|
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
|
218
66
|
};
|
package/dist/main.es16.js
CHANGED
@@ -6,15 +6,45 @@ function makeMap(str, expectsLowerCase) {
|
|
6
6
|
}
|
7
7
|
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
8
8
|
}
|
9
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
10
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
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;
|
11
14
|
const onRE = /^on[^a-z]/;
|
12
15
|
const isOn = (key) => onRE.test(key);
|
13
16
|
const isModelListener = (key) => key.startsWith("onUpdate:");
|
14
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);
|
15
26
|
const isArray = Array.isArray;
|
27
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
28
|
+
const isSet = (val) => toTypeString(val) === "[object Set]";
|
16
29
|
const isFunction = (val) => typeof val === "function";
|
17
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
|
+
);
|
18
48
|
const cacheStringFunction = (fn) => {
|
19
49
|
const cache = /* @__PURE__ */ Object.create(null);
|
20
50
|
return (str) => {
|
@@ -22,6 +52,10 @@ const cacheStringFunction = (fn) => {
|
|
22
52
|
return hit || (cache[str] = fn(str));
|
23
53
|
};
|
24
54
|
};
|
55
|
+
const camelizeRE = /-(\w)/g;
|
56
|
+
const camelize = cacheStringFunction((str) => {
|
57
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
58
|
+
});
|
25
59
|
const hyphenateRE = /\B([A-Z])/g;
|
26
60
|
const hyphenate = cacheStringFunction(
|
27
61
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
@@ -29,38 +63,139 @@ const hyphenate = cacheStringFunction(
|
|
29
63
|
const capitalize = cacheStringFunction(
|
30
64
|
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
31
65
|
);
|
66
|
+
const toHandlerKey = cacheStringFunction(
|
67
|
+
(str) => str ? `on${capitalize(str)}` : ``
|
68
|
+
);
|
69
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
32
70
|
const invokeArrayFns = (fns, arg) => {
|
33
71
|
for (let i = 0; i < fns.length; i++) {
|
34
72
|
fns[i](arg);
|
35
73
|
}
|
36
74
|
};
|
75
|
+
const def = (obj, key, value) => {
|
76
|
+
Object.defineProperty(obj, key, {
|
77
|
+
configurable: true,
|
78
|
+
enumerable: false,
|
79
|
+
value
|
80
|
+
});
|
81
|
+
};
|
37
82
|
const looseToNumber = (val) => {
|
38
83
|
const n = parseFloat(val);
|
39
84
|
return isNaN(n) ? val : n;
|
40
85
|
};
|
41
|
-
|
42
|
-
const
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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();
|
49
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
|
+
};
|
50
164
|
export {
|
165
|
+
EMPTY_ARR,
|
166
|
+
EMPTY_OBJ,
|
167
|
+
NO,
|
168
|
+
NOOP,
|
169
|
+
camelize,
|
51
170
|
capitalize,
|
171
|
+
def,
|
52
172
|
extend,
|
173
|
+
getGlobalThis,
|
174
|
+
hasChanged,
|
175
|
+
hasOwn,
|
53
176
|
hyphenate,
|
54
|
-
includeBooleanAttr,
|
55
177
|
invokeArrayFns,
|
56
178
|
isArray,
|
179
|
+
isBuiltInDirective,
|
57
180
|
isFunction,
|
58
|
-
|
181
|
+
isMap,
|
59
182
|
isModelListener,
|
183
|
+
isObject,
|
60
184
|
isOn,
|
61
|
-
|
62
|
-
|
185
|
+
isPlainObject,
|
186
|
+
isPromise,
|
187
|
+
isReservedProp,
|
188
|
+
isSet,
|
63
189
|
isString,
|
64
190
|
looseToNumber,
|
65
|
-
makeMap
|
191
|
+
makeMap,
|
192
|
+
normalizeClass,
|
193
|
+
normalizeStyle,
|
194
|
+
objectToString,
|
195
|
+
parseStringStyle,
|
196
|
+
remove,
|
197
|
+
toDisplayString,
|
198
|
+
toHandlerKey,
|
199
|
+
toRawType,
|
200
|
+
toTypeString
|
66
201
|
};
|
package/dist/main.es17.js
CHANGED
@@ -1,201 +1,218 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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;
|
1
|
+
import styled from "./main.es7.js";
|
2
|
+
import _sfc_main$1 from "./main.es24.js";
|
3
|
+
import theme from "./main.es8.js";
|
4
|
+
import "./main.es3.js";
|
5
|
+
import _export_sfc from "./main.es11.js";
|
6
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode } from "./main.es6.js";
|
7
|
+
import { toDisplayString } from "./main.es16.js";
|
8
|
+
const PageContainer = styled.div``;
|
9
|
+
const ButtonAttrs = {
|
10
|
+
type: String,
|
11
|
+
isDisabled: Boolean,
|
12
|
+
minWidth: String,
|
13
|
+
noWrap: Boolean,
|
14
|
+
height: String,
|
15
|
+
variant: String,
|
16
|
+
buttonSize: String,
|
17
|
+
appTheme: String
|
85
18
|
};
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
19
|
+
const ButtonContainer = styled("div", ButtonAttrs)`
|
20
|
+
display: flex;
|
21
|
+
justify-content: center;
|
22
|
+
padding: ${(props) => {
|
23
|
+
var _a, _b, _c, _d;
|
24
|
+
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.padding;
|
25
|
+
}};
|
26
|
+
font-size: ${(props) => {
|
27
|
+
var _a, _b, _c, _d;
|
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;
|
29
|
+
}};
|
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};
|
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};
|
32
|
+
border: ${(props) => {
|
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;
|
34
|
+
return borderValue ? "1px solid " + borderValue : "none";
|
35
|
+
}};
|
36
|
+
border-radius: 4px;
|
37
|
+
text-align: center;
|
38
|
+
cursor: ${(props) => props.isDisabled ? "not-allowed" : "pointer"};
|
39
|
+
user-select: none;
|
40
|
+
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""};
|
41
|
+
${(props) => props.noWrap ? `white-space: nowrap;` : ""};
|
42
|
+
height: ${(props) => props.height};
|
43
|
+
line-height: 1;
|
44
|
+
|
45
|
+
&:hover {
|
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};
|
101
47
|
}
|
102
|
-
|
103
|
-
|
104
|
-
|
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());
|
48
|
+
|
49
|
+
&:active {
|
50
|
+
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].active.backgroundColor};
|
118
51
|
}
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
52
|
+
`;
|
53
|
+
const AltAttrs = {
|
54
|
+
altStyle: Boolean,
|
55
|
+
color: String
|
56
|
+
};
|
57
|
+
styled("div", AltAttrs)`
|
58
|
+
background-color: ${(props) => props.color ? props.color : props.theme.colors.transparentWhite1};
|
59
|
+
padding: 7px;
|
60
|
+
height: 100%;
|
61
|
+
width: 30%;
|
62
|
+
justify-content: center;
|
63
|
+
display: flex;
|
64
|
+
align-items: center;
|
65
|
+
border-radius: 4px 0 0 4px;
|
66
|
+
color: ${(props) => props.theme.colors.white};
|
67
|
+
all: ${(props) => props.altStyle ? "" : "unset"};
|
68
|
+
`;
|
69
|
+
styled("span", AltAttrs)`
|
70
|
+
padding: ${(props) => props.altStyle ? "7px" : "0"};
|
71
|
+
all: ${(props) => props.altStyle ? "" : "unset"};
|
72
|
+
`;
|
73
|
+
const LabelAttrs = {
|
74
|
+
hasIcon: Boolean
|
75
|
+
};
|
76
|
+
const LabelComponent = styled("span", LabelAttrs)`
|
77
|
+
display: flex;
|
78
|
+
align-items: center;
|
79
|
+
justify-content: center;
|
80
|
+
gap: ${(props) => props.hasIcon ? "5px" : "0"};
|
81
|
+
`;
|
82
|
+
const _sfc_main = {
|
83
|
+
name: "MainButton",
|
84
|
+
components: {
|
85
|
+
Icon: _sfc_main$1,
|
86
|
+
LabelComponent,
|
87
|
+
PageContainer,
|
88
|
+
ButtonContainer
|
89
|
+
},
|
90
|
+
props: {
|
91
|
+
type: {
|
92
|
+
required: false,
|
93
|
+
default: "primary",
|
94
|
+
// primary, secondary, tertiary, ghost
|
95
|
+
type: String
|
96
|
+
},
|
97
|
+
variant: {
|
98
|
+
required: false,
|
99
|
+
default: "main",
|
100
|
+
// main, cancel
|
101
|
+
type: String
|
102
|
+
},
|
103
|
+
isDisabled: {
|
104
|
+
required: false,
|
105
|
+
default: false,
|
106
|
+
type: Boolean
|
107
|
+
},
|
108
|
+
icon: {
|
109
|
+
required: false,
|
110
|
+
default: null,
|
111
|
+
type: String
|
112
|
+
},
|
113
|
+
iconColor: {
|
114
|
+
required: false,
|
115
|
+
default: "",
|
116
|
+
type: String
|
117
|
+
},
|
118
|
+
iconAltStyle: {
|
119
|
+
required: false,
|
120
|
+
default: false,
|
121
|
+
type: Boolean
|
122
|
+
},
|
123
|
+
iconAltStyleColor: {
|
124
|
+
required: false,
|
125
|
+
default: null,
|
126
|
+
type: String
|
127
|
+
},
|
128
|
+
text: {
|
129
|
+
required: true,
|
130
|
+
type: String
|
131
|
+
},
|
132
|
+
noWrap: {
|
133
|
+
required: false,
|
134
|
+
default: false,
|
135
|
+
type: Boolean
|
136
|
+
},
|
137
|
+
minWidth: {
|
138
|
+
required: false,
|
139
|
+
default: null,
|
140
|
+
type: String
|
141
|
+
},
|
142
|
+
height: {
|
143
|
+
required: false,
|
144
|
+
default: "auto",
|
145
|
+
type: String
|
146
|
+
},
|
147
|
+
id: {
|
148
|
+
required: false,
|
149
|
+
default: null,
|
150
|
+
type: String
|
151
|
+
},
|
152
|
+
dataId: {
|
153
|
+
type: String,
|
154
|
+
default: ""
|
155
|
+
},
|
156
|
+
dataQaId: {
|
157
|
+
type: String,
|
158
|
+
default: ""
|
159
|
+
},
|
160
|
+
appTheme: {
|
161
|
+
type: String,
|
162
|
+
default: "light"
|
163
|
+
},
|
164
|
+
buttonSize: {
|
165
|
+
type: String,
|
166
|
+
default: "medium",
|
167
|
+
required: false
|
132
168
|
}
|
133
|
-
}
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
169
|
+
},
|
170
|
+
computed: {
|
171
|
+
theme() {
|
172
|
+
return theme;
|
173
|
+
},
|
174
|
+
getIconColor() {
|
175
|
+
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;
|
138
176
|
}
|
139
177
|
}
|
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
178
|
};
|
179
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
180
|
+
const _component_Icon = resolveComponent("Icon");
|
181
|
+
const _component_LabelComponent = resolveComponent("LabelComponent");
|
182
|
+
const _component_ButtonContainer = resolveComponent("ButtonContainer");
|
183
|
+
const _component_PageContainer = resolveComponent("PageContainer");
|
184
|
+
return openBlock(), createBlock(_component_PageContainer, null, {
|
185
|
+
default: withCtx(() => [createVNode(_component_ButtonContainer, {
|
186
|
+
id: $props.id,
|
187
|
+
"app-theme": $props.appTheme,
|
188
|
+
"button-size": $props.buttonSize,
|
189
|
+
"data-id": $props.dataId,
|
190
|
+
"data-qa-id": $props.dataQaId,
|
191
|
+
height: $props.height,
|
192
|
+
"is-disabled": $props.isDisabled,
|
193
|
+
"min-width": $props.minWidth,
|
194
|
+
"no-wrap": $props.noWrap,
|
195
|
+
type: $props.type,
|
196
|
+
variant: $props.variant
|
197
|
+
}, {
|
198
|
+
default: withCtx(() => [createVNode(_component_LabelComponent, {
|
199
|
+
"has-icon": Boolean($props.icon)
|
200
|
+
}, {
|
201
|
+
default: withCtx(() => [$props.icon ? (openBlock(), createBlock(_component_Icon, {
|
202
|
+
key: 0,
|
203
|
+
color: $options.getIconColor,
|
204
|
+
"hovered-color": $options.getIconColor,
|
205
|
+
name: $props.icon,
|
206
|
+
size: "14px"
|
207
|
+
}, null, 8, ["color", "hovered-color", "name"])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString($props.text), 1)]),
|
208
|
+
_: 1
|
209
|
+
}, 8, ["has-icon"])]),
|
210
|
+
_: 1
|
211
|
+
}, 8, ["id", "app-theme", "button-size", "data-id", "data-qa-id", "height", "is-disabled", "min-width", "no-wrap", "type", "variant"])]),
|
212
|
+
_: 1
|
213
|
+
});
|
214
|
+
}
|
215
|
+
const RCButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
164
216
|
export {
|
165
|
-
|
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
|
217
|
+
RCButton as default
|
201
218
|
};
|
package/dist/main.es19.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isSymbol, hasChanged, isObject, NOOP, isArray, extend, toRawType, isFunction, def, hasOwn, isIntegerKey, isMap, makeMap, capitalize } from "./main.
|
1
|
+
import { isSymbol, hasChanged, isObject, NOOP, isArray, extend, toRawType, isFunction, def, hasOwn, isIntegerKey, isMap, makeMap, capitalize } from "./main.es379.js";
|
2
2
|
function warn(msg, ...args) {
|
3
3
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
4
4
|
}
|
package/dist/main.es20.js
CHANGED
@@ -2,7 +2,7 @@ import styled from "./main.es7.js";
|
|
2
2
|
import "./main.es3.js";
|
3
3
|
import _export_sfc from "./main.es11.js";
|
4
4
|
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode } from "./main.es6.js";
|
5
|
-
import { toDisplayString } from "./main.
|
5
|
+
import { toDisplayString } from "./main.es16.js";
|
6
6
|
const Container = styled.div`
|
7
7
|
position: relative;
|
8
8
|
display: flex;
|
package/dist/main.es21.js
CHANGED
@@ -3,7 +3,7 @@ import styled from "./main.es7.js";
|
|
3
3
|
import "./main.es3.js";
|
4
4
|
import _export_sfc from "./main.es11.js";
|
5
5
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementBlock, renderList, Fragment, createElementVNode as createBaseVNode, createTextVNode, createVNode } from "./main.es6.js";
|
6
|
-
import { toDisplayString } from "./main.
|
6
|
+
import { toDisplayString } from "./main.es16.js";
|
7
7
|
const Wrapper = styled.div`
|
8
8
|
display: block;
|
9
9
|
text-align: center;
|
package/dist/main.es23.js
CHANGED
@@ -4,7 +4,7 @@ import styled from "./main.es7.js";
|
|
4
4
|
import theme from "./main.es8.js";
|
5
5
|
import _export_sfc from "./main.es11.js";
|
6
6
|
import { computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode as createBaseVNode, createVNode, createElementBlock, createTextVNode, createCommentVNode, Fragment, renderSlot, Teleport } from "./main.es6.js";
|
7
|
-
import { toDisplayString, normalizeStyle } from "./main.
|
7
|
+
import { toDisplayString, normalizeStyle } from "./main.es16.js";
|
8
8
|
import { ref } from "./main.es19.js";
|
9
9
|
const TextOverlayAttrs = {
|
10
10
|
appTheme: String,
|
package/dist/main.es24.js
CHANGED
@@ -3,7 +3,7 @@ import styled from "./main.es7.js";
|
|
3
3
|
import { fetchIcon } from "./main.es377.js";
|
4
4
|
import { reactive } from "./main.es19.js";
|
5
5
|
import { computed, onMounted, watch, openBlock, createBlock, withCtx, createVNode, createElementVNode as createBaseVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
|
6
|
-
import { toDisplayString } from "./main.
|
6
|
+
import { toDisplayString } from "./main.es16.js";
|
7
7
|
const _hoisted_1 = ["innerHTML"];
|
8
8
|
const _sfc_main = {
|
9
9
|
__name: "index",
|
package/dist/main.es376.js
CHANGED
package/dist/main.es378.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.es379.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.es15.js";
|
4
|
+
import { camelize } from "./main.es16.js";
|
5
|
+
import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.es16.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");
|
package/dist/main.es6.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
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.es19.js";
|
2
2
|
import { readonly, ref, shallowRef, unref } from "./main.es19.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.
|
4
|
-
import { toDisplayString } 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.es16.js";
|
4
|
+
import { toDisplayString } from "./main.es16.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
@@ -3,6 +3,7 @@
|
|
3
3
|
<InputWrapper
|
4
4
|
:icon-color="iconColor"
|
5
5
|
:icon-position="iconPosition"
|
6
|
+
:input-height="inputHeight"
|
6
7
|
:is-full-height="isFullHeight"
|
7
8
|
>
|
8
9
|
<SearchIconSvg class="search-icn" />
|
@@ -12,6 +13,7 @@
|
|
12
13
|
:data-qa-id="dataQaId"
|
13
14
|
:disabled="disabled"
|
14
15
|
:has-focus="hasFocus"
|
16
|
+
:input-height="inputHeight"
|
15
17
|
:input-width="inputWidth"
|
16
18
|
:is-disabled="disabled"
|
17
19
|
:is-filter="isFilter"
|
@@ -47,6 +49,7 @@
|
|
47
49
|
inputWidth: String,
|
48
50
|
isFilter: Boolean,
|
49
51
|
isFullHeight: Boolean,
|
52
|
+
inputHeight: String,
|
50
53
|
}
|
51
54
|
const Container = styled('div', inputAttrs)`
|
52
55
|
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
@@ -61,7 +64,7 @@
|
|
61
64
|
font-size: 13px;
|
62
65
|
color: ${(props) => props.theme.colors.black};
|
63
66
|
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
64
|
-
height: ${(props) => (props.isFullHeight ? '100%' :
|
67
|
+
height: ${(props) => (props.isFullHeight ? '100%' : props.inputHeight)};
|
65
68
|
box-sizing: border-box;
|
66
69
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
|
67
70
|
background: ${(props) => props.theme.colors.white} !important;
|
@@ -78,10 +81,12 @@
|
|
78
81
|
iconColor: String,
|
79
82
|
iconPosition: String,
|
80
83
|
isFullHeight: Boolean,
|
84
|
+
inputHeight: String,
|
81
85
|
}
|
82
86
|
const InputWrapper = styled('div', wrapperAttrs)`
|
83
87
|
position: relative;
|
84
|
-
height: ${(
|
88
|
+
height: ${({ isFullHeight, inputHeight }) =>
|
89
|
+
isFullHeight ? '100%' : inputHeight};
|
85
90
|
|
86
91
|
svg {
|
87
92
|
position: absolute;
|
@@ -158,6 +163,10 @@
|
|
158
163
|
type: Boolean,
|
159
164
|
default: false,
|
160
165
|
},
|
166
|
+
inputHeight: {
|
167
|
+
type: String,
|
168
|
+
default: 'auto',
|
169
|
+
},
|
161
170
|
},
|
162
171
|
emits: ['on-change'],
|
163
172
|
watch: {
|