@useinsider/ab-components 0.0.2 → 0.0.3
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/{FilledCautionTriangle-ORbgUqfx.js → FilledCautionTriangle-Dxi1xHHx.js} +2 -2
- package/dist/{FilledCautionTriangle-ORbgUqfx.js.map → FilledCautionTriangle-Dxi1xHHx.js.map} +1 -1
- package/dist/{FilledCheckCircle-DgwFiK4_.js → FilledCheckCircle-BZblXEJF.js} +2 -2
- package/dist/{FilledCheckCircle-DgwFiK4_.js.map → FilledCheckCircle-BZblXEJF.js.map} +1 -1
- package/dist/{FilledErrorBox-Bx6em6H-.js → FilledErrorBox-Czq7e64W.js} +2 -2
- package/dist/{FilledErrorBox-Bx6em6H-.js.map → FilledErrorBox-Czq7e64W.js.map} +1 -1
- package/dist/{FilledInfoCircle-cjamS6eU.js → FilledInfoCircle-BC2xa2R2.js} +2 -2
- package/dist/{FilledInfoCircle-cjamS6eU.js.map → FilledInfoCircle-BC2xa2R2.js.map} +1 -1
- package/dist/{LineCheck-SMu9mSFJ.js → LineCheck-dIF58UgU.js} +2 -2
- package/dist/{LineCheck-SMu9mSFJ.js.map → LineCheck-dIF58UgU.js.map} +1 -1
- package/dist/{LoadingCircle-CnxCc6n9.js → LoadingCircle-CoRfnES9.js} +2 -2
- package/dist/{LoadingCircle-CnxCc6n9.js.map → LoadingCircle-CoRfnES9.js.map} +1 -1
- package/dist/{SmartIcon-C5ZhgY9m.js → SmartIcon-m_MkAWvM.js} +2 -2
- package/dist/{SmartIcon-C5ZhgY9m.js.map → SmartIcon-m_MkAWvM.js.map} +1 -1
- package/dist/ab-components.cjs.js +1 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.css +1 -1
- package/dist/ab-components.es.js +5 -4
- package/dist/ab-components.iife.js +2 -0
- package/dist/ab-components.iife.js.map +1 -0
- package/dist/ab-components.umd.js +2 -0
- package/dist/ab-components.umd.js.map +1 -0
- package/dist/index-BfxawNec.js +535 -0
- package/dist/index-BfxawNec.js.map +1 -0
- package/dist/index.d.ts +43 -8
- package/package.json +3 -2
- package/dist/FilledCautionTriangle-0jUaB44V.cjs +0 -2
- package/dist/FilledCautionTriangle-0jUaB44V.cjs.map +0 -1
- package/dist/FilledCheckCircle-DQLU1TQX.cjs +0 -2
- package/dist/FilledCheckCircle-DQLU1TQX.cjs.map +0 -1
- package/dist/FilledErrorBox-CEqyivKn.cjs +0 -2
- package/dist/FilledErrorBox-CEqyivKn.cjs.map +0 -1
- package/dist/FilledInfoCircle-BMQIRi8R.cjs +0 -2
- package/dist/FilledInfoCircle-BMQIRi8R.cjs.map +0 -1
- package/dist/LineCheck-k-NrQe2a.cjs +0 -2
- package/dist/LineCheck-k-NrQe2a.cjs.map +0 -1
- package/dist/LoadingCircle-B0ZkG3El.cjs +0 -2
- package/dist/LoadingCircle-B0ZkG3El.cjs.map +0 -1
- package/dist/SmartIcon-CSmtxUQk.cjs +0 -2
- package/dist/SmartIcon-CSmtxUQk.cjs.map +0 -1
- package/dist/index-BOsD8S57.js +0 -474
- package/dist/index-BOsD8S57.js.map +0 -1
- package/dist/index-DLeZOhZ7.cjs +0 -2
- package/dist/index-DLeZOhZ7.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,31 @@ import { ComponentProvideOptions } from 'vue';
|
|
|
3
3
|
import { DefineComponent } from 'vue';
|
|
4
4
|
import { PublicProps } from 'vue';
|
|
5
5
|
|
|
6
|
+
export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
+
click: (event: MouseEvent) => any;
|
|
8
|
+
}, string, PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
fill: boolean;
|
|
12
|
+
size: "default" | "small";
|
|
13
|
+
loadingStatus: boolean;
|
|
14
|
+
successStatus: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
17
|
+
|
|
18
|
+
declare interface ButtonProps {
|
|
19
|
+
variant: 'solid' | 'ghost' | 'text' | 'outline';
|
|
20
|
+
color: 'primary' | 'subtle-primary' | 'secondary' | 'danger' | 'warning' | 'smart';
|
|
21
|
+
size?: 'default' | 'small';
|
|
22
|
+
leftIconName?: IconNames;
|
|
23
|
+
rightIconName?: IconNames;
|
|
24
|
+
loadingStatus?: boolean;
|
|
25
|
+
successStatus?: boolean;
|
|
26
|
+
label?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
fill?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
6
31
|
export declare const DropdownMenu: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
32
|
"add-error": (error: string) => any;
|
|
8
33
|
"item-added": (item: MenuItem) => any;
|
|
@@ -36,9 +61,19 @@ declare interface DropdownProps {
|
|
|
36
61
|
|
|
37
62
|
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
38
63
|
size: 16 | 24;
|
|
39
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
64
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
65
|
+
|
|
66
|
+
declare const iconMap: {
|
|
67
|
+
FilledErrorBox: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
68
|
+
LineCheck: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
69
|
+
FilledCheckCircle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
70
|
+
LoadingCircle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
71
|
+
FilledInfoCircle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
72
|
+
SmartIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
73
|
+
FilledCautionTriangle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
74
|
+
};
|
|
40
75
|
|
|
41
|
-
declare type IconNames =
|
|
76
|
+
declare type IconNames = keyof typeof iconMap;
|
|
42
77
|
|
|
43
78
|
declare interface IconProps {
|
|
44
79
|
name: IconNames;
|
|
@@ -102,22 +137,22 @@ declare interface SegmentType {
|
|
|
102
137
|
|
|
103
138
|
export declare const TextInput: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
104
139
|
input: (event: Event) => any;
|
|
140
|
+
blur: (event: FocusEvent) => any;
|
|
105
141
|
change: (event: Event) => any;
|
|
106
|
-
paste: (event: ClipboardEvent) => any;
|
|
107
142
|
focus: (event: FocusEvent) => any;
|
|
108
|
-
|
|
143
|
+
paste: (event: ClipboardEvent) => any;
|
|
109
144
|
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
110
145
|
onInput?: ((event: Event) => any) | undefined;
|
|
146
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
111
147
|
onChange?: ((event: Event) => any) | undefined;
|
|
112
|
-
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
113
148
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
114
|
-
|
|
149
|
+
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
115
150
|
}>, {
|
|
116
151
|
label: string;
|
|
152
|
+
error: string;
|
|
117
153
|
placeholder: string;
|
|
118
|
-
maxLength: number;
|
|
119
154
|
maxHeight: number;
|
|
120
|
-
|
|
155
|
+
maxLength: number;
|
|
121
156
|
multiline: boolean;
|
|
122
157
|
autoGrow: boolean;
|
|
123
158
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/ab-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"*.scss"
|
|
13
13
|
],
|
|
14
14
|
"exports": {
|
|
15
|
-
|
|
15
|
+
".": {
|
|
16
|
+
"require": "./dist/ab-components.cjs.js",
|
|
16
17
|
"import": "./dist/ab-components.es.js"
|
|
17
18
|
},
|
|
18
19
|
"./style.css": "./dist/ab-components.css"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DLeZOhZ7.cjs"),l={},o={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function r(i,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("path",{"clip-rule":"evenodd",d:"M10.362 3.965a1.873 1.873 0 0 1 3.276 0l8.087 14.025c.764 1.325-.153 3.01-1.638 3.01H3.913c-1.485 0-2.402-1.685-1.638-3.01l8.087-14.025zM11 10a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3zm0 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0z","fill-rule":"evenodd"},null,-1)]))}const c=n._export_sfc(l,[["render",r]]);exports.default=c;
|
|
2
|
-
//# sourceMappingURL=FilledCautionTriangle-0jUaB44V.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilledCautionTriangle-0jUaB44V.cjs","sources":["../src/components/Icon/icons/FilledCautionTriangle.vue"],"sourcesContent":["<template>\n <svg\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n clip-rule=\"evenodd\"\n d=\"M10.362 3.965a1.873 1.873 0 0 1 3.276 0l8.087 14.025c.764 1.325-.153 3.01-1.638 3.01H3.913c-1.485 0-2.402-1.685-1.638-3.01l8.087-14.025zM11 10a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3zm0 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0z\"\n fill-rule=\"evenodd\" />\n </svg>\n</template>\n"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode"],"mappings":"8IAEQA,EAAmB,CACnB,QAAkC,gDAFtC,SAAAC,EAAAC,EAAAC,EAAA,QAM8BC,EAAA,UAAA,EAAAC,EAAA,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAFtBG,EAAAA,mBAAmB,OAAA,CACnB,YAAqN,UACrN,EAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DLeZOhZ7.cjs"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function o(d,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm-1.69-6.281l-2.03-2.04a.964.964 0 0 1 0-1.359.953.953 0 0 1 1.353 0l1.353 1.36 3.381-3.398a.953.953 0 0 1 1.353 0 .965.965 0 0 1 0 1.359l-4.058 4.078a.953.953 0 0 1-1.353 0z"},null,-1)]))}const c=l._export_sfc(n,[["render",o]]);exports.default=c;
|
|
2
|
-
//# sourceMappingURL=FilledCheckCircle-DQLU1TQX.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilledCheckCircle-DQLU1TQX.cjs","sources":["../src/components/Icon/icons/FilledCheckCircle.vue"],"sourcesContent":["<template>\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm-1.69-6.281l-2.03-2.04a.964.964 0 0 1 0-1.359.953.953 0 0 1 1.353 0l1.353 1.36 3.381-3.398a.953.953 0 0 1 1.353 0 .965.965 0 0 1 0 1.359l-4.058 4.078a.953.953 0 0 1-1.353 0z\">\n </path>\n </svg>\n</template>"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode"],"mappings":"8IACSA,EAAmB,CAAC,QAAkC,gDAA3D,SAAAC,EAAAC,EAAAC,EAAA,QAGWC,EAAA,UAAA,EAAAC,EAAA,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAFDG,EAAAA,mBAAmB,OAAA,CAAC,YAAU,UAChC,YAAuN"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DLeZOhZ7.cjs"),l={},o={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function n(a,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5zm8.36 11.719a.961.961 0 0 0 1.359-1.36L13.359 12l1.36-1.36a.961.961 0 0 0-1.36-1.358L12 10.64l-1.36-1.36a.961.961 0 0 0-1.358 1.36L10.64 12l-1.36 1.36a.961.961 0 0 0 1.36 1.359l1.36-1.36 1.36 1.36z"},null,-1)]))}const c=r._export_sfc(l,[["render",n]]);exports.default=c;
|
|
2
|
-
//# sourceMappingURL=FilledErrorBox-CEqyivKn.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilledErrorBox-CEqyivKn.cjs","sources":["../src/components/Icon/icons/FilledErrorBox.vue"],"sourcesContent":["<template>\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5zm8.36 11.719a.961.961 0 0 0 1.359-1.36L13.359 12l1.36-1.36a.961.961 0 0 0-1.36-1.358L12 10.64l-1.36-1.36a.961.961 0 0 0-1.358 1.36L10.64 12l-1.36 1.36a.961.961 0 0 0 1.36 1.359l1.36-1.36 1.36 1.36z\">\n </path>\n </svg>\n</template>"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode"],"mappings":"8IACSA,EAAmB,CAAC,QAAkC,gDAA3D,SAAAC,EAAAC,EAAAC,EAAA,QAGWC,EAAA,UAAA,EAAAC,EAAA,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAFDG,EAAAA,mBAAmB,OAAA,CAAC,YAAU,UAChC,YAAgR"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DLeZOhZ7.cjs"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function l(d,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0zm-10 0a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0v-4zm1-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"},null,-1)]))}const c=n._export_sfc(o,[["render",l]]);exports.default=c;
|
|
2
|
-
//# sourceMappingURL=FilledInfoCircle-BMQIRi8R.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilledInfoCircle-BMQIRi8R.cjs","sources":["../src/components/Icon/icons/FilledInfoCircle.vue"],"sourcesContent":["<template>\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0zm-10 0a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0v-4zm1-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z\">\n </path>\n </svg>\n</template>"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode"],"mappings":"8IACSA,EAAmB,CAAC,QAAkC,gDAA3D,SAAAC,EAAAC,EAAAC,EAAA,QAGWC,EAAA,UAAA,EAAAC,EAAA,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAFDG,EAAAA,mBAAmB,OAAA,CAAC,YAAU,UAChC,YAAkH"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DLeZOhZ7.cjs"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function l(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{d:"M5.278 12.674a.956.956 0 0 1 0-1.348.948.948 0 0 1 1.345 0l4.033 4.046a.956.956 0 0 1 0 1.349.948.948 0 0 1-1.345 0l-4.033-4.047z"},null,-1),e.createElementVNode("path",{d:"M9.311 16.72a.956.956 0 0 1 0-1.348l8.066-8.093a.948.948 0 0 1 1.345 0 .956.956 0 0 1 0 1.35l-8.066 8.092a.948.948 0 0 1-1.345 0z"},null,-1)]))}const c=n._export_sfc(o,[["render",l]]);exports.default=c;
|
|
2
|
-
//# sourceMappingURL=LineCheck-k-NrQe2a.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineCheck-k-NrQe2a.cjs","sources":["../src/components/Icon/icons/LineCheck.vue"],"sourcesContent":["<template>\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.278 12.674a.956.956 0 0 1 0-1.348.948.948 0 0 1 1.345 0l4.033 4.046a.956.956 0 0 1 0 1.349.948.948 0 0 1-1.345 0l-4.033-4.047z\"></path>\n <path d=\"M9.311 16.72a.956.956 0 0 1 0-1.348l8.066-8.093a.948.948 0 0 1 1.345 0 .956.956 0 0 1 0 1.35l-8.066 8.092a.948.948 0 0 1-1.345 0z\"></path>\n </svg>\n</template>"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode"],"mappings":"8IACSA,EAAmB,CAAC,QAAkC,gDAA3D,SAAAC,EAAAC,EAAAC,EAAA,QACmJC,EAAA,UAAA,EAAAC,EAAR,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAC3IG,EAAmJ,mBAAA,OAAA,CAA7I,EAAE,mIAAmI,EAAA,KAAA,EAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DLeZOhZ7.cjs"),o={},C={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",id:"ab-loading-icon"};function r(i,t){return e.openBlock(),e.createElementBlock("svg",C,t[0]||(t[0]=[e.createElementVNode("path",{d:"M20.0482 12.025C20.6015 12.025 21.0557 11.5751 20.9944 11.0253C20.8349 9.59397 20.3345 8.21647 19.529 7.01098C18.5373 5.52683 17.1278 4.37007 15.4787 3.68699C13.8296 3.00391 12.015 2.82519 10.2643 3.17342C8.51363 3.52165 6.90553 4.38119 5.64336 5.64336C4.38119 6.90553 3.52165 8.51363 3.17342 10.2643C2.82519 12.015 3.00391 13.8296 3.68699 15.4787C4.37007 17.1278 5.52683 18.5373 7.01098 19.529C8.21647 20.3345 9.59397 20.8349 11.0253 20.9944C11.5751 21.0557 12.025 20.6015 12.025 20.0482V20.0482C12.025 19.4949 11.5742 19.0538 11.0266 18.9751C9.99233 18.8265 8.99986 18.4483 8.12409 17.8631C6.96942 17.0916 6.06946 15.995 5.53803 14.712C5.00659 13.429 4.86754 12.0172 5.13847 10.6552C5.40939 9.29315 6.07812 8.04205 7.06008 7.06008C8.04205 6.07812 9.29315 5.40939 10.6552 5.13847C12.0172 4.86754 13.429 5.00659 14.712 5.53803C15.995 6.06946 17.0916 6.96942 17.8631 8.12409C18.4483 8.99986 18.8265 9.99233 18.9751 11.0266C19.0538 11.5742 19.4949 12.025 20.0482 12.025V12.025Z"},null,-1)]))}const c=n._export_sfc(o,[["render",r]]);exports.default=c;
|
|
2
|
-
//# sourceMappingURL=LoadingCircle-B0ZkG3El.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingCircle-B0ZkG3El.cjs","sources":["../src/components/Icon/icons/LoadingCircle.vue"],"sourcesContent":["<template>\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" id=\"ab-loading-icon\">\n <path\n d=\"M20.0482 12.025C20.6015 12.025 21.0557 11.5751 20.9944 11.0253C20.8349 9.59397 20.3345 8.21647 19.529 7.01098C18.5373 5.52683 17.1278 4.37007 15.4787 3.68699C13.8296 3.00391 12.015 2.82519 10.2643 3.17342C8.51363 3.52165 6.90553 4.38119 5.64336 5.64336C4.38119 6.90553 3.52165 8.51363 3.17342 10.2643C2.82519 12.015 3.00391 13.8296 3.68699 15.4787C4.37007 17.1278 5.52683 18.5373 7.01098 19.529C8.21647 20.3345 9.59397 20.8349 11.0253 20.9944C11.5751 21.0557 12.025 20.6015 12.025 20.0482V20.0482C12.025 19.4949 11.5742 19.0538 11.0266 18.9751C9.99233 18.8265 8.99986 18.4483 8.12409 17.8631C6.96942 17.0916 6.06946 15.995 5.53803 14.712C5.00659 13.429 4.86754 12.0172 5.13847 10.6552C5.40939 9.29315 6.07812 8.04205 7.06008 7.06008C8.04205 6.07812 9.29315 5.40939 10.6552 5.13847C12.0172 4.86754 13.429 5.00659 14.712 5.53803C15.995 6.06946 17.0916 6.96942 17.8631 8.12409C18.4483 8.99986 18.8265 9.99233 18.9751 11.0266C19.0538 11.5742 19.4949 12.025 20.0482 12.025V12.025Z\" />\n </svg>\n</template>\n\n<style lang=\"scss\">\n#ab-loading-icon {\n animation: spinner 1000ms infinite linear;\n}\n\n@keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n</style>"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"8IACSA,EAAmB,CAAC,QAAkC,YAAC,MAAoB,mDAAhF,SAAAC,EAAAC,EAAAC,EAAA,QAE89BC,EAAA,UAAA,EAAAC,EAAH,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-DLeZOhZ7.cjs"),n={},L={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o(r,C){return e.openBlock(),e.createElementBlock("svg",L,C[0]||(C[0]=[e.createElementVNode("path",{d:"M10.9733 2.27585C11.0723 1.90805 11.5942 1.90805 11.6932 2.27585L12.0682 3.66867C12.1027 3.79696 12.2029 3.89716 12.3312 3.9317L13.724 4.30672C14.0918 4.40575 14.0918 4.92759 13.724 5.02662L12.3312 5.40163C12.2029 5.43617 12.1027 5.53638 12.0682 5.66466L11.6932 7.05748C11.5942 7.42528 11.0723 7.42528 10.9733 7.05748L10.5983 5.66466C10.5637 5.53638 10.4635 5.43617 10.3352 5.40163L8.94242 5.02662C8.57461 4.92759 8.57461 4.40575 8.94242 4.30672L10.3352 3.9317C10.4635 3.89716 10.5637 3.79696 10.5983 3.66867L10.9733 2.27585Z"},null,-1),e.createElementVNode("path",{d:"M5.72324 2.87868C5.79935 2.59598 6.20044 2.59598 6.27656 2.87868L6.41285 3.38487C6.4394 3.48347 6.51642 3.56049 6.61502 3.58704L7.12121 3.72333C7.40391 3.79945 7.40391 4.20053 7.12121 4.27665L6.61502 4.41294C6.51642 4.43949 6.4394 4.51651 6.41285 4.61511L6.27656 5.1213C6.20044 5.404 5.79935 5.404 5.72324 5.1213L5.58695 4.61511C5.5604 4.51651 5.48338 4.43949 5.38478 4.41294L4.87859 4.27665C4.59589 4.20053 4.59589 3.79945 4.87859 3.72333L5.38478 3.58704C5.48338 3.56049 5.5604 3.48347 5.58695 3.38487L5.72324 2.87868Z"},null,-1),e.createElementVNode("path",{d:"M11.7232 8.87868C11.7994 8.59598 12.2004 8.59598 12.2766 8.87868L12.4128 9.38487C12.4394 9.48347 12.5164 9.56049 12.615 9.58704L13.1212 9.72333C13.4039 9.79945 13.4039 10.2005 13.1212 10.2766L12.615 10.4129C12.5164 10.4395 12.4394 10.5165 12.4128 10.6151L12.2766 11.1213C12.2004 11.404 11.7994 11.404 11.7232 11.1213L11.5869 10.6151C11.5604 10.5165 11.4834 10.4395 11.3848 10.4129L10.8786 10.2766C10.5959 10.2005 10.5959 9.79945 10.8786 9.72333L11.3848 9.58704C11.4834 9.56049 11.5604 9.48347 11.5869 9.38487L11.7232 8.87868Z"},null,-1),e.createElementVNode("path",{d:"M7.44041 7.33334C7.59931 7.33334 7.73057 7.38572 7.8342 7.49049C7.94473 7.59525 8 7.72795 8 7.88858V8.66668C8 8.79938 7.96546 8.90763 7.89637 8.99144C7.8342 9.07525 7.73403 9.11715 7.59586 9.11715H7.19171C7.05354 9.11715 6.94991 9.07525 6.88083 8.99144C6.81865 8.90763 6.78757 8.79938 6.78757 8.66668V8.55906H5.72021V12.7743H5.9171C6.04836 12.7743 6.15544 12.8092 6.23834 12.8791C6.32124 12.9419 6.36269 13.0432 6.36269 13.1829V13.5914C6.36269 13.7311 6.32124 13.8359 6.23834 13.9057C6.15544 13.9686 6.04836 14 5.9171 14H4.0829C3.78584 14 3.63731 13.8638 3.63731 13.5914V13.1829C3.63731 12.9105 3.78584 12.7743 4.0829 12.7743H4.26943V8.55906H3.21244V8.66668C3.21244 8.79938 3.17789 8.90763 3.10881 8.99144C3.04663 9.07525 2.94646 9.11715 2.80829 9.11715H2.40415C2.26598 9.11715 2.16235 9.07525 2.09326 8.99144C2.03109 8.90763 2 8.79938 2 8.66668V7.88858C2 7.72795 2.05181 7.59525 2.15544 7.49049C2.26598 7.38572 2.39724 7.33334 2.54922 7.33334H7.44041Z"},null,-1)]))}const l=t._export_sfc(n,[["render",o]]);exports.default=l;
|
|
2
|
-
//# sourceMappingURL=SmartIcon-CSmtxUQk.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SmartIcon-CSmtxUQk.cjs","sources":["../src/components/Icon/icons/SmartIcon.vue"],"sourcesContent":["<template>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10.9733 2.27585C11.0723 1.90805 11.5942 1.90805 11.6932 2.27585L12.0682 3.66867C12.1027 3.79696 12.2029 3.89716 12.3312 3.9317L13.724 4.30672C14.0918 4.40575 14.0918 4.92759 13.724 5.02662L12.3312 5.40163C12.2029 5.43617 12.1027 5.53638 12.0682 5.66466L11.6932 7.05748C11.5942 7.42528 11.0723 7.42528 10.9733 7.05748L10.5983 5.66466C10.5637 5.53638 10.4635 5.43617 10.3352 5.40163L8.94242 5.02662C8.57461 4.92759 8.57461 4.40575 8.94242 4.30672L10.3352 3.9317C10.4635 3.89716 10.5637 3.79696 10.5983 3.66867L10.9733 2.27585Z\" />\n <path d=\"M5.72324 2.87868C5.79935 2.59598 6.20044 2.59598 6.27656 2.87868L6.41285 3.38487C6.4394 3.48347 6.51642 3.56049 6.61502 3.58704L7.12121 3.72333C7.40391 3.79945 7.40391 4.20053 7.12121 4.27665L6.61502 4.41294C6.51642 4.43949 6.4394 4.51651 6.41285 4.61511L6.27656 5.1213C6.20044 5.404 5.79935 5.404 5.72324 5.1213L5.58695 4.61511C5.5604 4.51651 5.48338 4.43949 5.38478 4.41294L4.87859 4.27665C4.59589 4.20053 4.59589 3.79945 4.87859 3.72333L5.38478 3.58704C5.48338 3.56049 5.5604 3.48347 5.58695 3.38487L5.72324 2.87868Z\" />\n\n <path d=\"M11.7232 8.87868C11.7994 8.59598 12.2004 8.59598 12.2766 8.87868L12.4128 9.38487C12.4394 9.48347 12.5164 9.56049 12.615 9.58704L13.1212 9.72333C13.4039 9.79945 13.4039 10.2005 13.1212 10.2766L12.615 10.4129C12.5164 10.4395 12.4394 10.5165 12.4128 10.6151L12.2766 11.1213C12.2004 11.404 11.7994 11.404 11.7232 11.1213L11.5869 10.6151C11.5604 10.5165 11.4834 10.4395 11.3848 10.4129L10.8786 10.2766C10.5959 10.2005 10.5959 9.79945 10.8786 9.72333L11.3848 9.58704C11.4834 9.56049 11.5604 9.48347 11.5869 9.38487L11.7232 8.87868Z\" />\n <path d=\"M7.44041 7.33334C7.59931 7.33334 7.73057 7.38572 7.8342 7.49049C7.94473 7.59525 8 7.72795 8 7.88858V8.66668C8 8.79938 7.96546 8.90763 7.89637 8.99144C7.8342 9.07525 7.73403 9.11715 7.59586 9.11715H7.19171C7.05354 9.11715 6.94991 9.07525 6.88083 8.99144C6.81865 8.90763 6.78757 8.79938 6.78757 8.66668V8.55906H5.72021V12.7743H5.9171C6.04836 12.7743 6.15544 12.8092 6.23834 12.8791C6.32124 12.9419 6.36269 13.0432 6.36269 13.1829V13.5914C6.36269 13.7311 6.32124 13.8359 6.23834 13.9057C6.15544 13.9686 6.04836 14 5.9171 14H4.0829C3.78584 14 3.63731 13.8638 3.63731 13.5914V13.1829C3.63731 12.9105 3.78584 12.7743 4.0829 12.7743H4.26943V8.55906H3.21244V8.66668C3.21244 8.79938 3.17789 8.90763 3.10881 8.99144C3.04663 9.07525 2.94646 9.11715 2.80829 9.11715H2.40415C2.26598 9.11715 2.16235 9.07525 2.09326 8.99144C2.03109 8.90763 2 8.79938 2 8.66668V7.88858C2 7.72795 2.05181 7.59525 2.15544 7.49049C2.26598 7.38572 2.39724 7.33334 2.54922 7.33334H7.44041Z\" />\n </svg>\n</template>"],"names":["_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode"],"mappings":"8IACSA,EAAmB,CAAC,QAAW,YAAC,gDAArC,SAAAC,EAAAC,EAAAC,EAAA,QAC8hBC,EAAA,UAAA,EAAAC,EAAH,mBAAA,MAAAL,EAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CACvhBG,EAAohB,mBAAA,OAAA,CAA9gB,EAAE,+gBAAygB,EAAA,KAAA,EAAA,EAEjhBA,EAA0hB,mBAAA,OAAA,CAAphB,EAAE,ygBAA+gB,EAAA,KAAA,EAAA,EACvhBA,EAAq8B,mBAAA,OAAA,CAA/7B,EAAE,+gBAA07B,EAAA,KAAA,EAAA"}
|
package/dist/index-BOsD8S57.js
DELETED
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as h, onMounted as W, openBlock as _, createElementBlock as p, normalizeClass as u, unref as n, toDisplayString as b, createCommentVNode as w, normalizeStyle as H, createElementVNode as z, computed as $, Fragment as M, withDirectives as P, withModifiers as Z, vModelText as J, renderList as R, watch as K, createBlock as T, resolveDynamicComponent as ee, createVNode as te } from "vue";
|
|
2
|
-
const ne = "_wrapper_1pges_169", oe = "_wrapper__field_1pges_174", re = "_wrapper__label_1pges_208", ae = "_wrapper__bottom_1pges_216", le = "_wrapper__errorMessage_1pges_220", se = "_wrapper__counter_1pges_225", C = {
|
|
3
|
-
wrapper: ne,
|
|
4
|
-
wrapper__field: oe,
|
|
5
|
-
wrapper__label: re,
|
|
6
|
-
wrapper__bottom: ae,
|
|
7
|
-
wrapper__errorMessage: le,
|
|
8
|
-
wrapper__counter: se,
|
|
9
|
-
"wrapper--error": "_wrapper--error_1pges_231"
|
|
10
|
-
}, ue = ["for"], _e = ["id", "maxlength", "name", "placeholder", "value"], ie = ["id", "maxlength", "name", "placeholder", "value"], Qe = /* @__PURE__ */ x({
|
|
11
|
-
__name: "TextInput",
|
|
12
|
-
props: {
|
|
13
|
-
id: {},
|
|
14
|
-
name: {},
|
|
15
|
-
modelValue: {},
|
|
16
|
-
label: { default: "" },
|
|
17
|
-
placeholder: { default: "" },
|
|
18
|
-
maxLength: { default: void 0 },
|
|
19
|
-
maxHeight: { default: void 0 },
|
|
20
|
-
error: { default: "" },
|
|
21
|
-
multiline: { type: Boolean, default: !1 },
|
|
22
|
-
autoGrow: { type: Boolean, default: !1 },
|
|
23
|
-
counter: { type: Boolean }
|
|
24
|
-
},
|
|
25
|
-
emits: ["input", "change", "paste", "focus", "blur"],
|
|
26
|
-
setup(s, { emit: a }) {
|
|
27
|
-
const l = s, e = a, o = h(null), d = () => {
|
|
28
|
-
if (l.autoGrow && o.value) {
|
|
29
|
-
o.value.style.height = "";
|
|
30
|
-
const t = Math.min(o.value.scrollHeight, l.maxHeight || o.value.scrollHeight);
|
|
31
|
-
o.value.style.height = `${t}px`;
|
|
32
|
-
}
|
|
33
|
-
}, m = (t) => {
|
|
34
|
-
e("input", t), d();
|
|
35
|
-
};
|
|
36
|
-
return W(() => {
|
|
37
|
-
d();
|
|
38
|
-
}), (t, r) => {
|
|
39
|
-
var y;
|
|
40
|
-
return _(), p("div", {
|
|
41
|
-
class: u(n(C).wrapper)
|
|
42
|
-
}, [
|
|
43
|
-
t.label ? (_(), p("label", {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: u(n(C).wrapper__label),
|
|
46
|
-
for: t.id
|
|
47
|
-
}, b(t.label), 11, ue)) : w("", !0),
|
|
48
|
-
t.multiline ? (_(), p("textarea", {
|
|
49
|
-
key: 1,
|
|
50
|
-
id: t.id,
|
|
51
|
-
ref_key: "textareaRef",
|
|
52
|
-
ref: o,
|
|
53
|
-
class: u([
|
|
54
|
-
n(C).wrapper__field,
|
|
55
|
-
{
|
|
56
|
-
[n(C)["wrapper--error"]]: t.error
|
|
57
|
-
}
|
|
58
|
-
]),
|
|
59
|
-
maxlength: t.maxLength,
|
|
60
|
-
name: t.name,
|
|
61
|
-
placeholder: t.placeholder,
|
|
62
|
-
style: H(t.maxHeight ? { maxHeight: `${t.maxHeight}px` } : void 0),
|
|
63
|
-
value: t.modelValue,
|
|
64
|
-
onBlur: r[0] || (r[0] = (i) => e("blur", i)),
|
|
65
|
-
onChange: r[1] || (r[1] = (i) => t.$emit("change", i)),
|
|
66
|
-
onFocus: r[2] || (r[2] = (i) => e("focus", i)),
|
|
67
|
-
onInput: m,
|
|
68
|
-
onPaste: r[3] || (r[3] = (i) => e("paste", i))
|
|
69
|
-
}, null, 46, _e)) : (_(), p("input", {
|
|
70
|
-
key: 2,
|
|
71
|
-
id: t.id,
|
|
72
|
-
type: "text",
|
|
73
|
-
class: u([
|
|
74
|
-
n(C).wrapper__field,
|
|
75
|
-
{
|
|
76
|
-
[n(C)["wrapper--error"]]: t.error
|
|
77
|
-
}
|
|
78
|
-
]),
|
|
79
|
-
maxlength: t.maxLength,
|
|
80
|
-
name: t.name,
|
|
81
|
-
placeholder: t.placeholder,
|
|
82
|
-
value: t.modelValue,
|
|
83
|
-
onBlur: r[4] || (r[4] = (i) => e("blur", i)),
|
|
84
|
-
onChange: r[5] || (r[5] = (i) => t.$emit("change", i)),
|
|
85
|
-
onFocus: r[6] || (r[6] = (i) => e("focus", i)),
|
|
86
|
-
onInput: m,
|
|
87
|
-
onPaste: r[7] || (r[7] = (i) => e("paste", i))
|
|
88
|
-
}, null, 42, ie)),
|
|
89
|
-
z("div", {
|
|
90
|
-
class: u(n(C).wrapper__bottom)
|
|
91
|
-
}, [
|
|
92
|
-
t.error ? (_(), p("div", {
|
|
93
|
-
key: 0,
|
|
94
|
-
class: u(n(C).wrapper__errorMessage)
|
|
95
|
-
}, b(t.error), 3)) : w("", !0),
|
|
96
|
-
t.counter ? (_(), p("div", {
|
|
97
|
-
key: 1,
|
|
98
|
-
class: u(n(C).wrapper__counter)
|
|
99
|
-
}, b(((y = t.modelValue) == null ? void 0 : y.toString().length) || 0), 3)) : w("", !0)
|
|
100
|
-
], 2)
|
|
101
|
-
], 2);
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
}), de = {
|
|
105
|
-
mounted(s, a) {
|
|
106
|
-
s.clickOutsideEvent = (l) => {
|
|
107
|
-
[s, ...a.value.exclude || []].some((o) => o && (o === l.target || o.contains(l.target))) || a.value.handler();
|
|
108
|
-
}, document.addEventListener("click", s.clickOutsideEvent);
|
|
109
|
-
},
|
|
110
|
-
unmounted(s) {
|
|
111
|
-
s.clickOutsideEvent && document.removeEventListener("click", s.clickOutsideEvent);
|
|
112
|
-
}
|
|
113
|
-
}, ce = (s, a) => {
|
|
114
|
-
var e;
|
|
115
|
-
let l = 0;
|
|
116
|
-
for (const o of s)
|
|
117
|
-
if (o.toLowerCase() === ((e = a[l]) == null ? void 0 : e.toLowerCase()) && l++, l === a.length)
|
|
118
|
-
return !0;
|
|
119
|
-
return !1;
|
|
120
|
-
}, pe = (s, a, l) => {
|
|
121
|
-
if (!l.trim())
|
|
122
|
-
return s;
|
|
123
|
-
const e = l.toLowerCase();
|
|
124
|
-
return s.filter((o) => {
|
|
125
|
-
const d = String(o[a]);
|
|
126
|
-
return ce(d.toLowerCase(), e);
|
|
127
|
-
}).sort((o, d) => {
|
|
128
|
-
const m = String(o[a]).toLowerCase(), t = String(d[a]).toLowerCase();
|
|
129
|
-
return m === e ? -1 : t === e ? 1 : m.startsWith(e) && !t.startsWith(e) ? -1 : !m.startsWith(e) && t.startsWith(e) ? 1 : m.length - t.length;
|
|
130
|
-
});
|
|
131
|
-
}, me = "_dropdown_zdj6q_169", ve = "_dropdown__valueContent_zdj6q_178", fe = "_dropdown__label_zdj6q_189", he = "_dropdown__value_zdj6q_178", we = "_dropdown__placeholder_zdj6q_196", ge = "_dropdown__arrowIcon_zdj6q_204", be = "_menu_zdj6q_209", ye = "_menu__searchContainer_zdj6q_222", Ce = "_menu__searchInputWrap_zdj6q_226", ke = "_menu__searchInput_zdj6q_226", ze = "_menu__errorMessage_zdj6q_247", Ie = "_menu__addButton_zdj6q_254", qe = "_menu__itemContainer_zdj6q_262", xe = "_menu__item_zdj6q_262", v = {
|
|
132
|
-
dropdown: me,
|
|
133
|
-
dropdown__valueContent: ve,
|
|
134
|
-
"dropdown__valueContent--open": "_dropdown__valueContent--open_zdj6q_186",
|
|
135
|
-
dropdown__label: fe,
|
|
136
|
-
dropdown__value: he,
|
|
137
|
-
dropdown__placeholder: we,
|
|
138
|
-
dropdown__arrowIcon: ge,
|
|
139
|
-
menu: be,
|
|
140
|
-
menu__searchContainer: ye,
|
|
141
|
-
menu__searchInputWrap: Ce,
|
|
142
|
-
menu__searchInput: ke,
|
|
143
|
-
"menu__searchInput--error": "_menu__searchInput--error_zdj6q_244",
|
|
144
|
-
menu__errorMessage: ze,
|
|
145
|
-
menu__addButton: Ie,
|
|
146
|
-
menu__itemContainer: qe,
|
|
147
|
-
menu__item: xe,
|
|
148
|
-
"menu__item--active": "_menu__item--active_zdj6q_300"
|
|
149
|
-
}, $e = ["for"], je = ["placeholder"], Be = ["onClick"], Xe = /* @__PURE__ */ x({
|
|
150
|
-
__name: "DropdownMenu",
|
|
151
|
-
props: {
|
|
152
|
-
id: {},
|
|
153
|
-
label: {},
|
|
154
|
-
defaultSelected: { default: "" },
|
|
155
|
-
menuHeight: { default: 154 },
|
|
156
|
-
placeholder: {},
|
|
157
|
-
addable: { type: Boolean },
|
|
158
|
-
addButtonText: {},
|
|
159
|
-
searchable: { type: Boolean },
|
|
160
|
-
searchPlaceHolder: {},
|
|
161
|
-
items: {},
|
|
162
|
-
validateAddItem: { type: Function, default: () => null }
|
|
163
|
-
},
|
|
164
|
-
emits: ["add-error", "item-added", "select-item"],
|
|
165
|
-
setup(s, { emit: a }) {
|
|
166
|
-
const l = de, e = s, o = a, d = h(), m = h(), t = h(!0), r = h(null), y = h(""), i = h(null), I = h({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: e.menuHeight }), j = h([...e.items]), q = h([...e.items]), S = () => {
|
|
167
|
-
if (!d.value)
|
|
168
|
-
return;
|
|
169
|
-
const { offsetTop: c, offsetLeft: f, offsetWidth: g } = d.value, G = window.innerHeight, E = c + d.value.offsetHeight, V = E + e.menuHeight > G;
|
|
170
|
-
I.value = {
|
|
171
|
-
x: f + window.scrollX,
|
|
172
|
-
y: V ? c + window.scrollY : E + window.scrollY,
|
|
173
|
-
width: g,
|
|
174
|
-
shouldOpenUp: V,
|
|
175
|
-
height: e.menuHeight
|
|
176
|
-
};
|
|
177
|
-
}, U = () => {
|
|
178
|
-
S(), t.value = !t.value;
|
|
179
|
-
}, L = () => {
|
|
180
|
-
i.value = null, y.value = "", j.value = [...q.value];
|
|
181
|
-
}, F = () => {
|
|
182
|
-
t.value = !1, L();
|
|
183
|
-
}, N = (c) => {
|
|
184
|
-
r.value = c, y.value = "", F(), o("select-item", c);
|
|
185
|
-
}, A = () => {
|
|
186
|
-
const c = y.value.trim(), f = e.validateAddItem(c, q.value);
|
|
187
|
-
if (f) {
|
|
188
|
-
i.value = f, o("add-error", f);
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
const g = {
|
|
192
|
-
text: c,
|
|
193
|
-
value: c
|
|
194
|
-
};
|
|
195
|
-
q.value.push(g), L(), o("item-added", g);
|
|
196
|
-
}, Y = () => {
|
|
197
|
-
j.value = pe(q.value, "text", y.value);
|
|
198
|
-
}, Q = () => {
|
|
199
|
-
i.value = "";
|
|
200
|
-
}, X = $(() => ({
|
|
201
|
-
top: I.value.shouldOpenUp ? `${I.value.y - 10}px` : `${I.value.y}px`,
|
|
202
|
-
left: `${I.value.x}px`,
|
|
203
|
-
width: `${I.value.width}px`,
|
|
204
|
-
height: `${e.menuHeight}px`
|
|
205
|
-
}));
|
|
206
|
-
W(() => {
|
|
207
|
-
if (S(), e.defaultSelected) {
|
|
208
|
-
const c = q.value.find((f) => f.value === e.defaultSelected);
|
|
209
|
-
c && (r.value = c, o("select-item", c));
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
const O = $(() => r.value ? r.value.text : "");
|
|
213
|
-
return (c, f) => (_(), p(M, null, [
|
|
214
|
-
z("div", {
|
|
215
|
-
ref_key: "dropdownRef",
|
|
216
|
-
ref: d,
|
|
217
|
-
class: u(n(v).dropdown)
|
|
218
|
-
}, [
|
|
219
|
-
c.label ? (_(), p("label", {
|
|
220
|
-
key: 0,
|
|
221
|
-
class: u(n(v).dropdown__label),
|
|
222
|
-
for: c.id
|
|
223
|
-
}, b(c.label), 11, $e)) : w("", !0),
|
|
224
|
-
z("button", {
|
|
225
|
-
class: u([
|
|
226
|
-
n(v).dropdown__valueContent,
|
|
227
|
-
{
|
|
228
|
-
[n(v)["dropdown__valueContent--open"]]: t.value
|
|
229
|
-
}
|
|
230
|
-
]),
|
|
231
|
-
onClick: U
|
|
232
|
-
}, [
|
|
233
|
-
z("span", {
|
|
234
|
-
class: u(n(v).dropdown__value)
|
|
235
|
-
}, b(O.value), 3),
|
|
236
|
-
c.placeholder && !O.value ? (_(), p("span", {
|
|
237
|
-
key: 0,
|
|
238
|
-
class: u(n(v).dropdown__placeholder)
|
|
239
|
-
}, b(c.placeholder), 3)) : w("", !0),
|
|
240
|
-
(_(), p("svg", {
|
|
241
|
-
fill: "none",
|
|
242
|
-
height: "17",
|
|
243
|
-
viewBox: "0 0 16 17",
|
|
244
|
-
width: "16",
|
|
245
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
246
|
-
class: u(n(v).dropdown__arrowIcon)
|
|
247
|
-
}, f[2] || (f[2] = [
|
|
248
|
-
z("path", {
|
|
249
|
-
d: "M8 11.2021L4.5359 6.70215L11.4641 6.70215L8 11.2021Z",
|
|
250
|
-
fill: "#91949F"
|
|
251
|
-
}, null, -1)
|
|
252
|
-
]), 2))
|
|
253
|
-
], 2)
|
|
254
|
-
], 2),
|
|
255
|
-
t.value ? P((_(), p("div", {
|
|
256
|
-
key: 0,
|
|
257
|
-
ref_key: "menuRef",
|
|
258
|
-
ref: m,
|
|
259
|
-
class: u(n(v).menu),
|
|
260
|
-
style: H(X.value),
|
|
261
|
-
onClick: f[1] || (f[1] = Z(() => {
|
|
262
|
-
}, ["prevent"]))
|
|
263
|
-
}, [
|
|
264
|
-
e.searchable ? (_(), p("div", {
|
|
265
|
-
key: 0,
|
|
266
|
-
class: u(n(v).menu__searchContainer)
|
|
267
|
-
}, [
|
|
268
|
-
z("div", {
|
|
269
|
-
class: u(n(v).menu__searchInputWrap)
|
|
270
|
-
}, [
|
|
271
|
-
P(z("input", {
|
|
272
|
-
type: "text",
|
|
273
|
-
class: u([
|
|
274
|
-
n(v).menu__searchInput,
|
|
275
|
-
{
|
|
276
|
-
[n(v)["menu__searchInput--error"]]: i.value
|
|
277
|
-
}
|
|
278
|
-
]),
|
|
279
|
-
placeholder: c.searchPlaceHolder,
|
|
280
|
-
"onUpdate:modelValue": f[0] || (f[0] = (g) => y.value = g),
|
|
281
|
-
onFocus: Q,
|
|
282
|
-
onInput: Y
|
|
283
|
-
}, null, 42, je), [
|
|
284
|
-
[J, y.value]
|
|
285
|
-
]),
|
|
286
|
-
i.value ? (_(), p("p", {
|
|
287
|
-
key: 0,
|
|
288
|
-
class: u(n(v).menu__errorMessage)
|
|
289
|
-
}, b(i.value), 3)) : w("", !0)
|
|
290
|
-
], 2),
|
|
291
|
-
e.addable ? (_(), p("button", {
|
|
292
|
-
key: 0,
|
|
293
|
-
class: u(n(v).menu__addButton),
|
|
294
|
-
onClick: A
|
|
295
|
-
}, b(c.addButtonText), 3)) : w("", !0)
|
|
296
|
-
], 2)) : w("", !0),
|
|
297
|
-
z("ul", {
|
|
298
|
-
class: u(n(v).menu__itemContainer)
|
|
299
|
-
}, [
|
|
300
|
-
(_(!0), p(M, null, R(j.value, (g) => (_(), p("li", {
|
|
301
|
-
key: g.value,
|
|
302
|
-
class: u([
|
|
303
|
-
n(v).menu__item,
|
|
304
|
-
{
|
|
305
|
-
[n(v)["menu__item--active"]]: r.value && g.value === r.value.value
|
|
306
|
-
}
|
|
307
|
-
]),
|
|
308
|
-
onClick: (G) => N(g)
|
|
309
|
-
}, b(g.text), 11, Be))), 128))
|
|
310
|
-
], 2)
|
|
311
|
-
], 6)), [
|
|
312
|
-
[n(l), { handler: F, exclude: [d.value, m.value] }]
|
|
313
|
-
]) : w("", !0)
|
|
314
|
-
], 64));
|
|
315
|
-
}
|
|
316
|
-
}), Me = (s, a, l) => {
|
|
317
|
-
const e = s[a];
|
|
318
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((o, d) => {
|
|
319
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
320
|
-
d.bind(
|
|
321
|
-
null,
|
|
322
|
-
new Error(
|
|
323
|
-
"Unknown variable dynamic import: " + a + (a.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
324
|
-
)
|
|
325
|
-
)
|
|
326
|
-
);
|
|
327
|
-
});
|
|
328
|
-
}, He = /* @__PURE__ */ x({
|
|
329
|
-
__name: "Icon",
|
|
330
|
-
props: {
|
|
331
|
-
name: {},
|
|
332
|
-
size: { default: 16 },
|
|
333
|
-
color: {}
|
|
334
|
-
},
|
|
335
|
-
setup(s) {
|
|
336
|
-
const a = s, l = h(null);
|
|
337
|
-
K(
|
|
338
|
-
() => a.name,
|
|
339
|
-
async (o) => {
|
|
340
|
-
try {
|
|
341
|
-
const d = await Me(/* @__PURE__ */ Object.assign({ "./icons/FilledCautionTriangle.vue": () => import("./FilledCautionTriangle-ORbgUqfx.js"), "./icons/FilledCheckCircle.vue": () => import("./FilledCheckCircle-DgwFiK4_.js"), "./icons/FilledErrorBox.vue": () => import("./FilledErrorBox-Bx6em6H-.js"), "./icons/FilledInfoCircle.vue": () => import("./FilledInfoCircle-cjamS6eU.js"), "./icons/LineCheck.vue": () => import("./LineCheck-SMu9mSFJ.js"), "./icons/LoadingCircle.vue": () => import("./LoadingCircle-CnxCc6n9.js"), "./icons/SmartIcon.vue": () => import("./SmartIcon-C5ZhgY9m.js") }), `./icons/${o}.vue`, 3);
|
|
342
|
-
l.value = d.default;
|
|
343
|
-
} catch (d) {
|
|
344
|
-
console.warn(`Icon "${o}" not found.`, d), l.value = null;
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
{ immediate: !0 }
|
|
348
|
-
);
|
|
349
|
-
const e = $(() => typeof a.size == "number" ? `${a.size}px` : a.size);
|
|
350
|
-
return (o, d) => l.value ? (_(), T(ee(l.value), {
|
|
351
|
-
key: 0,
|
|
352
|
-
class: "icon",
|
|
353
|
-
style: H({ width: e.value, height: e.value, fill: a.color || "currentColor" })
|
|
354
|
-
}, null, 8, ["style"])) : w("", !0);
|
|
355
|
-
}
|
|
356
|
-
}), Se = (s, a) => {
|
|
357
|
-
const l = s.__vccOpts || s;
|
|
358
|
-
for (const [e, o] of a)
|
|
359
|
-
l[e] = o;
|
|
360
|
-
return l;
|
|
361
|
-
}, D = /* @__PURE__ */ Se(He, [["__scopeId", "data-v-0439f329"]]), Le = "_button__size_default_qxh1r_1", Fe = "_button__size_small_qxh1r_8", Oe = "_button_qxh1r_1", Ge = "_button__label_qxh1r_191", Ee = "_button__solid_qxh1r_328", Ve = "_segmentGroup_qxh1r_335", Pe = "_fill_qxh1r_357", k = {
|
|
362
|
-
button__size_default: Le,
|
|
363
|
-
button__size_small: Fe,
|
|
364
|
-
button: Oe,
|
|
365
|
-
button__label: Ge,
|
|
366
|
-
"button--primary": "_button--primary_qxh1r_206",
|
|
367
|
-
"button--selected": "_button--selected_qxh1r_216",
|
|
368
|
-
"button--secondary": "_button--secondary_qxh1r_229",
|
|
369
|
-
"button--danger": "_button--danger_qxh1r_252",
|
|
370
|
-
"button--warning": "_button--warning_qxh1r_275",
|
|
371
|
-
"button--smart": "_button--smart_qxh1r_298",
|
|
372
|
-
button__solid: Ee,
|
|
373
|
-
segmentGroup: Ve,
|
|
374
|
-
"segmentGroup--vertical": "_segmentGroup--vertical_qxh1r_338",
|
|
375
|
-
"segmentGroup--horizontal": "_segmentGroup--horizontal_qxh1r_347",
|
|
376
|
-
fill: Pe
|
|
377
|
-
}, We = ["disabled", "onClick"], Ze = /* @__PURE__ */ x({
|
|
378
|
-
__name: "SegmentButton",
|
|
379
|
-
props: {
|
|
380
|
-
color: {},
|
|
381
|
-
size: { default: "default" },
|
|
382
|
-
align: { default: "horizontal" },
|
|
383
|
-
disabled: { type: Boolean, default: !1 },
|
|
384
|
-
segments: {},
|
|
385
|
-
fill: { type: Boolean }
|
|
386
|
-
},
|
|
387
|
-
emits: ["click"],
|
|
388
|
-
setup(s, { emit: a }) {
|
|
389
|
-
const l = s, e = a, o = h(""), d = (m) => {
|
|
390
|
-
l.disabled || m.disabled || (o.value = m.value, e("click", m.value));
|
|
391
|
-
};
|
|
392
|
-
return (m, t) => (_(), p("div", {
|
|
393
|
-
class: u([
|
|
394
|
-
n(k).segmentGroup,
|
|
395
|
-
n(k)[`segmentGroup--${m.align}`],
|
|
396
|
-
{ [n(k).fill]: m.fill }
|
|
397
|
-
])
|
|
398
|
-
}, [
|
|
399
|
-
(_(!0), p(M, null, R(m.segments, (r) => (_(), p("button", {
|
|
400
|
-
key: r.value,
|
|
401
|
-
class: u([
|
|
402
|
-
n(k).button,
|
|
403
|
-
n(k)[`button--${m.color}`],
|
|
404
|
-
n(k)[`button__size_${m.size}`],
|
|
405
|
-
n(k).fill,
|
|
406
|
-
{
|
|
407
|
-
[n(k)["button--selected"]]: r.value === o.value
|
|
408
|
-
}
|
|
409
|
-
]),
|
|
410
|
-
disabled: r.disabled || l.disabled,
|
|
411
|
-
onClick: (y) => d(r)
|
|
412
|
-
}, [
|
|
413
|
-
r.icon ? (_(), T(n(D), {
|
|
414
|
-
key: 0,
|
|
415
|
-
name: r.icon
|
|
416
|
-
}, null, 8, ["name"])) : w("", !0),
|
|
417
|
-
r.label ? (_(), p("span", {
|
|
418
|
-
key: 1,
|
|
419
|
-
class: u(n(k).button__label)
|
|
420
|
-
}, b(r.label), 3)) : w("", !0)
|
|
421
|
-
], 10, We))), 128))
|
|
422
|
-
], 2));
|
|
423
|
-
}
|
|
424
|
-
}), Re = "_container_2joy4_1", Te = "_container__text_2joy4_187", De = "_container__default_2joy4_191", Ue = "_container__warning_2joy4_199", Ne = "_container__alert_2joy4_207", Ae = "_container__success_2joy4_215", B = {
|
|
425
|
-
container: Re,
|
|
426
|
-
container__text: Te,
|
|
427
|
-
container__default: De,
|
|
428
|
-
container__warning: Ue,
|
|
429
|
-
container__alert: Ne,
|
|
430
|
-
container__success: Ae
|
|
431
|
-
}, Je = /* @__PURE__ */ x({
|
|
432
|
-
__name: "OnPageMessage",
|
|
433
|
-
props: {
|
|
434
|
-
variant: { default: "default" },
|
|
435
|
-
text: {}
|
|
436
|
-
},
|
|
437
|
-
setup(s) {
|
|
438
|
-
const a = s, l = $(() => {
|
|
439
|
-
switch (a.variant) {
|
|
440
|
-
case "alert":
|
|
441
|
-
return "FilledErrorBox";
|
|
442
|
-
case "warning":
|
|
443
|
-
return "FilledCautionTriangle";
|
|
444
|
-
case "success":
|
|
445
|
-
return "FilledCheckCircle";
|
|
446
|
-
default:
|
|
447
|
-
return "FilledInfoCircle";
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
return (e, o) => (_(), p("div", {
|
|
451
|
-
class: u([
|
|
452
|
-
n(B).container,
|
|
453
|
-
n(B)[`container__${e.variant}`]
|
|
454
|
-
])
|
|
455
|
-
}, [
|
|
456
|
-
te(D, {
|
|
457
|
-
name: l.value,
|
|
458
|
-
size: 24
|
|
459
|
-
}, null, 8, ["name"]),
|
|
460
|
-
z("span", {
|
|
461
|
-
class: u(n(B).container__text)
|
|
462
|
-
}, b(e.text), 3)
|
|
463
|
-
], 2));
|
|
464
|
-
}
|
|
465
|
-
});
|
|
466
|
-
export {
|
|
467
|
-
D as I,
|
|
468
|
-
Se as _,
|
|
469
|
-
Qe as a,
|
|
470
|
-
Xe as b,
|
|
471
|
-
Ze as c,
|
|
472
|
-
Je as d
|
|
473
|
-
};
|
|
474
|
-
//# sourceMappingURL=index-BOsD8S57.js.map
|