@validol4ik/uikit 0.2.16 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Validates any requred field
3
+ *
4
+ * @param {string} val
5
+ * @returns string | boolean
6
+ */
7
+ declare const _default: (val: string) => string | boolean;
8
+ export default _default;
@@ -1,2 +1,2 @@
1
- export declare const icons_o: readonly ["search", "telegram", "instagram_o", "price-tag_o", "coin_o", "checklist", "rule", "quote_o", "play_o", "visibility-off", "visibility", "user-close_o", "user-plus_o", "user_o", "circle-question_o", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "arrow-download", "arrow-export", "arrow-logout", "arrow-share", "bulleted-list", "menu", "text-left", "text-right", "check", "award_o", "medal_o", "bookmark_o", "calendar_o", "circle-check_o", "circle-info_o", "pie-chart_o", "edit_o", "trash_o", "copy_o", "copied_o", "folder_o", "folder-plus_o", "file-plus_o", "flag_o", "home_o", "timer_o", "unlock_o", "lock_o", "mail_o", "plus", "minus", "translate", "trophy_o", "return", "close", "more-vertical", "drag", "stack_o", "mic_o", "mic-off_o", "circle-question_o"];
2
- export declare const icons: readonly ["instagram", "price-tag", "coin", "quote", "play", "award", "medal", "bookmark", "calendar", "circle-check", "circle-info", "pie-chart", "edit", "trash", "copy", "copied", "folder", "folder-plus", "file-plus", "flag", "home", "timer", "unlock", "lock", "mail", "user-close", "user-plus", "user", "trophy", "stack", "mic", "mic-off", "circle-question"];
1
+ export declare const icons_o: readonly ["crown_o", "star_fall_o", "star_o", "search", "telegram", "instagram_o", "price-tag_o", "coin_o", "checklist", "rule", "quote_o", "play_o", "visibility-off", "visibility", "user-close_o", "user-plus_o", "user_o", "circle-question_o", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "arrow-download", "arrow-export", "arrow-logout", "arrow-share", "bulleted-list", "menu", "text-left", "text-right", "check", "award_o", "medal_o", "bookmark_o", "calendar_o", "circle-check_o", "circle-info_o", "pie-chart_o", "edit_o", "trash_o", "copy_o", "copied_o", "folder_o", "folder-plus_o", "file-plus_o", "flag_o", "home_o", "timer_o", "unlock_o", "lock_o", "mail_o", "plus", "minus", "translate", "trophy_o", "return", "close", "more-vertical", "drag", "stack_o", "mic_o", "mic-off_o", "circle-question_o"];
2
+ export declare const icons: readonly ["crown", "star_fall", "star", "instagram", "price-tag", "coin", "quote", "play", "award", "medal", "bookmark", "calendar", "circle-check", "circle-info", "pie-chart", "edit", "trash", "copy", "copied", "folder", "folder-plus", "file-plus", "flag", "home", "timer", "unlock", "lock", "mail", "user-close", "user-plus", "user", "trophy", "stack", "mic", "mic-off", "circle-question"];
@@ -1,13 +1,3 @@
1
1
  import { AppIconProps } from './types';
2
-
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<AppIconProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AppIconProps>>>, {}, {}>;
2
+ declare const _default: import('vue').DefineComponent<AppIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
3
  export default _default;
5
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
6
- type __VLS_TypePropsToRuntimeProps<T> = {
7
- [K in keyof T]-?: {} extends Pick<T, K> ? {
8
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
9
- } : {
10
- type: import('vue').PropType<T[K]>;
11
- required: true;
12
- };
13
- };
@@ -1,9 +1,8 @@
1
- import { Color } from '../types';
1
+ import { NamedColor } from 'quasar';
2
2
  import { icons_o, icons } from './iconsList';
3
-
4
3
  export interface AppIconProps {
5
4
  name: string;
6
5
  size?: string;
7
- color?: Color;
6
+ color?: NamedColor;
8
7
  }
9
8
  export type AppIconNames = (typeof icons)[number] | (typeof icons_o)[number];
@@ -1,39 +1,22 @@
1
1
  import { AppButtonProps } from './types';
2
-
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AppButtonProps>, {
4
- size: "sm" | "md" | "lg" | undefined;
5
- color: string;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<AppButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
11
  click: (...args: any[]) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AppButtonProps>, {
9
- size: "sm" | "md" | "lg" | undefined;
10
- color: string;
11
- }>>> & {
12
+ }, string, import('vue').PublicProps, Readonly<AppButtonProps> & Readonly<{
12
13
  onClick?: ((...args: any[]) => any) | undefined;
13
- }, {
14
- size: "sm" | "md" | "lg";
15
- color: string;
16
- }, {}>, {
17
- default?(_: {}): any;
18
- }>;
14
+ }>, {
15
+ size: import('../../types').Size;
16
+ color: import('quasar').NamedColor;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
19
  export default _default;
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToRuntimeProps<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
- type __VLS_WithDefaults<P, D> = {
30
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
- default: D[K];
32
- }> : P[K];
33
- };
34
- type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
37
20
  type __VLS_WithTemplateSlots<T, S> = T & {
38
21
  new (): {
39
22
  $slots: S;
@@ -1,25 +1,24 @@
1
- import { QBtnProps } from 'quasar';
2
- import { Color } from '../../types';
1
+ import { QBtnProps, NamedColor } from 'quasar';
2
+ import { Size } from '../../types';
3
3
  import { AppIconNames } from '../../AppIcon/types';
4
-
5
4
  export interface AppButtonProps {
6
- size?: "sm" | "md" | "lg";
5
+ size?: Size;
7
6
  transparent?: boolean;
7
+ flat?: boolean;
8
8
  rounded?: boolean;
9
- color?: Color;
9
+ color?: NamedColor;
10
10
  iconLeft?: AppIconNames;
11
11
  iconRight?: AppIconNames;
12
12
  iconMiddle?: AppIconNames;
13
13
  disabled?: boolean;
14
- loading?: QBtnProps["loading"];
14
+ loading?: boolean;
15
15
  to?: QBtnProps["to"];
16
16
  href?: QBtnProps["href"];
17
17
  target?: QBtnProps["target"];
18
18
  submit?: boolean;
19
19
  ariaLabel?: string;
20
+ label?: string;
20
21
  }
21
- export declare enum ButtonPaddings {
22
- sm = "3px 9px",
23
- md = "5px 12px",
24
- lg = "9px 20px"
25
- }
22
+ export declare const ButtonPaddings: {
23
+ [x: string]: string;
24
+ };
@@ -1,5 +1,4 @@
1
1
  import { AppIconNames } from '../../AppIcon/types';
2
-
3
2
  declare const _default: {
4
3
  COPY: AppIconNames;
5
4
  COPIED: AppIconNames;
@@ -1,30 +1,6 @@
1
1
  import { default as CopyButtonProps } from './types';
2
-
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CopyButtonProps>, {
2
+ declare const _default: import('vue').DefineComponent<CopyButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CopyButtonProps> & Readonly<{}>, {
4
3
  transparent: boolean;
5
- color: string;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CopyButtonProps>, {
7
- transparent: boolean;
8
- color: string;
9
- }>>>, {
10
- color: string;
11
- transparent: boolean;
12
- }, {}>;
4
+ color: import('quasar').NamedColor;
5
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
6
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
23
- type __VLS_WithDefaults<P, D> = {
24
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
- default: D[K];
26
- }> : P[K];
27
- };
28
- type __VLS_Prettify<T> = {
29
- [K in keyof T]: T[K];
30
- } & {};
@@ -1,5 +1,4 @@
1
1
  import { AppButtonProps } from '../AppButton/types';
2
-
3
2
  export default interface CopyButtonProps extends AppButtonProps {
4
3
  text: string;
5
4
  }
@@ -1,6 +1,14 @@
1
+ import { NamedColor } from 'quasar';
2
+ import { Size } from './types';
1
3
  export declare const COLORS: {
2
- PRIMARY: string;
3
- INFO: string;
4
- NEGATIVE: string;
5
- POSITIVE: string;
4
+ PRIMARY: NamedColor;
5
+ INFO: NamedColor;
6
+ ACCENT: NamedColor;
7
+ NEGATIVE: NamedColor;
8
+ POSITIVE: NamedColor;
9
+ };
10
+ export declare const SIZES: {
11
+ SM: Size;
12
+ MD: Size;
13
+ LG: Size;
6
14
  };
@@ -0,0 +1,22 @@
1
+ import { Size } from '../../types';
2
+ import { QSelectOption, QSelectProps } from 'quasar';
3
+ interface AppSelectOption extends QSelectOption {
4
+ done?: boolean;
5
+ }
6
+ export interface AppSelectProps {
7
+ modelValue?: QSelectProps["modelValue"];
8
+ size?: Size;
9
+ options: AppSelectOption[];
10
+ multiple?: boolean;
11
+ label?: string;
12
+ placeholder?: string;
13
+ required?: boolean;
14
+ clearable?: boolean;
15
+ disabled?: boolean;
16
+ loading?: boolean;
17
+ filtering?: boolean;
18
+ autofocus?: boolean;
19
+ rules?: QSelectProps["rules"];
20
+ lazyRules?: QSelectProps["lazyRules"];
21
+ }
22
+ export {};
@@ -1,106 +1,8 @@
1
1
  import { default as AppButton } from './buttons/AppButton/index.vue';
2
+ import { AppButtonProps } from './buttons/AppButton/types';
2
3
  import { default as AppIcon } from './AppIcon/index.vue';
3
-
4
- declare const AppButtonCopy: import('vue').DefineComponent<{
5
- size: {
6
- type: import('vue').PropType<"sm" | "md" | "lg">;
7
- };
8
- color: {
9
- type: import('vue').PropType<string>;
10
- default: string;
11
- };
12
- text: {
13
- type: import('vue').PropType<string>;
14
- required: true;
15
- };
16
- loading: {
17
- type: import('vue').PropType<boolean | null>;
18
- };
19
- to: {
20
- type: import('vue').PropType<any>;
21
- };
22
- href: {
23
- type: import('vue').PropType<string>;
24
- };
25
- target: {
26
- type: import('vue').PropType<string>;
27
- };
28
- transparent: {
29
- type: import('vue').PropType<boolean>;
30
- default: boolean;
31
- };
32
- rounded: {
33
- type: import('vue').PropType<boolean>;
34
- };
35
- iconLeft: {
36
- type: import('vue').PropType<import('./AppIcon/types').AppIconNames>;
37
- };
38
- iconRight: {
39
- type: import('vue').PropType<import('./AppIcon/types').AppIconNames>;
40
- };
41
- iconMiddle: {
42
- type: import('vue').PropType<import('./AppIcon/types').AppIconNames>;
43
- };
44
- disabled: {
45
- type: import('vue').PropType<boolean>;
46
- };
47
- submit: {
48
- type: import('vue').PropType<boolean>;
49
- };
50
- ariaLabel: {
51
- type: import('vue').PropType<string>;
52
- };
53
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
54
- size: {
55
- type: import('vue').PropType<"sm" | "md" | "lg">;
56
- };
57
- color: {
58
- type: import('vue').PropType<string>;
59
- default: string;
60
- };
61
- text: {
62
- type: import('vue').PropType<string>;
63
- required: true;
64
- };
65
- loading: {
66
- type: import('vue').PropType<boolean | null>;
67
- };
68
- to: {
69
- type: import('vue').PropType<any>;
70
- };
71
- href: {
72
- type: import('vue').PropType<string>;
73
- };
74
- target: {
75
- type: import('vue').PropType<string>;
76
- };
77
- transparent: {
78
- type: import('vue').PropType<boolean>;
79
- default: boolean;
80
- };
81
- rounded: {
82
- type: import('vue').PropType<boolean>;
83
- };
84
- iconLeft: {
85
- type: import('vue').PropType<import('./AppIcon/types').AppIconNames>;
86
- };
87
- iconRight: {
88
- type: import('vue').PropType<import('./AppIcon/types').AppIconNames>;
89
- };
90
- iconMiddle: {
91
- type: import('vue').PropType<import('./AppIcon/types').AppIconNames>;
92
- };
93
- disabled: {
94
- type: import('vue').PropType<boolean>;
95
- };
96
- submit: {
97
- type: import('vue').PropType<boolean>;
98
- };
99
- ariaLabel: {
100
- type: import('vue').PropType<string>;
101
- };
102
- }>>, {
103
- color: string;
4
+ declare const AppButtonCopy: import('vue').DefineComponent<import('./buttons/CopyButton/types').default, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./buttons/CopyButton/types').default> & Readonly<{}>, {
104
5
  transparent: boolean;
105
- }, {}>;
106
- export { AppButton, AppIcon, AppButtonCopy };
6
+ color: import('quasar').NamedColor;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export { AppButton, AppButtonProps, AppIcon, AppButtonCopy };
@@ -1,3 +1 @@
1
- import { COLORS } from './constants.ts';
2
-
3
- export type Color = typeof COLORS.PRIMARY | typeof COLORS.INFO | typeof COLORS.NEGATIVE | typeof COLORS.POSITIVE;
1
+ export type Size = "sm" | "md" | "lg";
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
3
+ <svg width="800px" height="800px" viewBox="-31.5 0 319 319" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
4
+ <defs>
5
+ <path d="M9.87245893,293.324145 L0.0114611411,30.5732167 C-0.314208957,21.8955842 6.33948896,14.5413918 15.0063196,13.9997149 L238.494389,0.0317105427 C247.316188,-0.519651867 254.914637,6.18486163 255.466,15.0066607 C255.486773,15.339032 255.497167,15.6719708 255.497167,16.0049907 L255.497167,302.318596 C255.497167,311.157608 248.331732,318.323043 239.492719,318.323043 C239.253266,318.323043 239.013844,318.317669 238.774632,318.306926 L25.1475605,308.712253 C16.8276309,308.338578 10.1847994,301.646603 9.87245893,293.324145 L9.87245893,293.324145 Z" id="path-1">
6
+
7
+ </defs>
8
+ <g>
9
+ <mask id="mask-2" fill="white">
10
+ <use xlink:href="#path-1">
11
+
12
+ </mask>
13
+ <use fill="#FF4785" fill-rule="nonzero" xlink:href="#path-1">
14
+
15
+ <path d="M188.665358,39.126973 L190.191903,2.41148534 L220.883535,0 L222.205755,37.8634126 C222.251771,39.1811466 221.22084,40.2866846 219.903106,40.3327009 C219.338869,40.3524045 218.785907,40.1715096 218.342409,39.8221376 L206.506729,30.4984116 L192.493574,41.1282444 C191.443077,41.9251106 189.945493,41.7195021 189.148627,40.6690048 C188.813185,40.2267976 188.6423,39.6815326 188.665358,39.126973 Z M149.413703,119.980309 C149.413703,126.206975 191.355678,123.222696 196.986019,118.848893 C196.986019,76.4467826 174.234041,54.1651411 132.57133,54.1651411 C90.9086182,54.1651411 67.5656805,76.7934542 67.5656805,110.735941 C67.5656805,169.85244 147.345341,170.983856 147.345341,203.229219 C147.345341,212.280549 142.913138,217.654777 133.162291,217.654777 C120.456641,217.654777 115.433477,211.165914 116.024438,189.103298 C116.024438,184.317101 67.5656805,182.824962 66.0882793,189.103298 C62.3262146,242.56887 95.6363019,257.990394 133.753251,257.990394 C170.688279,257.990394 199.645341,238.303123 199.645341,202.663511 C199.645341,139.304202 118.683759,141.001326 118.683759,109.604526 C118.683759,96.8760922 128.139127,95.178968 133.753251,95.178968 C139.662855,95.178968 150.300143,96.2205679 149.413703,119.980309 Z" fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)">
16
+
17
+ </g>
18
+ </svg>
@@ -1 +1 @@
1
- export * from './icons/index'
1
+ export {}
@@ -1,2 +1 @@
1
-
2
1
  export {};
package/dist/icons.css CHANGED
@@ -1 +1 @@
1
- i.icon-kl{font-family:kl!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-kl-return:before{content:""}.icon-kl-close:before{content:""}.icon-kl-more-vertical:before{content:""}.icon-kl-drag:before{content:""}.icon-kl-stack_o:before{content:""}.icon-kl-mic-off_o:before{content:""}.icon-kl-mic_o:before{content:""}.icon-kl-stack:before{content:""}.icon-kl-mic-off:before{content:""}.icon-kl-mic:before{content:""}.icon-kl-circle-question:before{content:""}.icon-kl-search:before{content:""}.icon-kl-instagram_o:before{content:""}.icon-kl-telegram:before{content:""}.icon-kl-coin_o:before{content:""}.icon-kl-check:before{content:""}.icon-kl-translate:before{content:""}.icon-kl-price-tag_o:before{content:""}.icon-kl-rule:before{content:""}.icon-kl-checklist:before{content:""}.icon-kl-quote_o:before{content:""}.icon-kl-play_o:before{content:""}.icon-kl-plus:before{content:""}.icon-kl-minus:before{content:""}.icon-kl-visibility-off:before{content:""}.icon-kl-visibility:before{content:""}.icon-kl-circle-question_o:before{content:""}.icon-kl-arrow-up:before{content:""}.icon-kl-arrow-down:before{content:""}.icon-kl-arrow-left:before{content:""}.icon-kl-arrow-right:before{content:""}.icon-kl-arrow-download:before{content:""}.icon-kl-arrow-export:before{content:""}.icon-kl-arrow-logout:before{content:""}.icon-kl-arrow-share:before{content:""}.icon-kl-bulleted-list:before{content:""}.icon-kl-menu:before{content:""}.icon-kl-text-right:before{content:""}.icon-kl-text-left:before{content:""}.icon-kl-award_o:before{content:""}.icon-kl-medal_o:before{content:""}.icon-kl-bookmark_o:before{content:""}.icon-kl-calendar_o:before{content:""}.icon-kl-circle-check_o:before{content:""}.icon-kl-circle-info_o:before{content:""}.icon-kl-pie-chart_o:before{content:""}.icon-kl-edit_o:before{content:""}.icon-kl-trash_o:before{content:""}.icon-kl-copy_o:before{content:""}.icon-kl-copied_o:before{content:""}.icon-kl-folder_o:before{content:""}.icon-kl-folder-plus_o:before{content:""}.icon-kl-file-plus_o:before{content:""}.icon-kl-flag_o:before{content:""}.icon-kl-home_o:before{content:""}.icon-kl-timer_o:before{content:""}.icon-kl-unlock_o:before{content:""}.icon-kl-lock_o:before{content:""}.icon-kl-mail_o:before{content:""}.icon-kl-user_o:before{content:""}.icon-kl-user-plus_o:before{content:""}.icon-kl-user-close_o:before{content:""}.icon-kl-trophy_o:before{content:""}.icon-kl-instagram:before{content:""}.icon-kl-coin:before{content:""}.icon-kl-price-tag:before{content:""}.icon-kl-quote:before{content:""}.icon-kl-play:before{content:""}.icon-kl-award:before{content:""}.icon-kl-medal:before{content:""}.icon-kl-bookmark:before{content:""}.icon-kl-calendar:before{content:""}.icon-kl-circle-check:before{content:""}.icon-kl-circle-info:before{content:""}.icon-kl-pie-chart:before{content:""}.icon-kl-edit:before{content:""}.icon-kl-trash:before{content:""}.icon-kl-copy:before{content:""}.icon-kl-copied:before{content:""}.icon-kl-folder:before{content:""}.icon-kl-folder-plus:before{content:""}.icon-kl-file-plus:before{content:""}.icon-kl-flag:before{content:""}.icon-kl-home:before{content:""}.icon-kl-timer:before{content:""}.icon-kl-unlock:before{content:""}.icon-kl-lock:before{content:""}.icon-kl-mail:before{content:""}.icon-kl-user:before{content:""}.icon-kl-user-close:before{content:""}.icon-kl-user-plus:before{content:""}.icon-kl-trophy:before{content:""}
1
+ i.icon-kl{font-family:kl!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-kl-crown_o:before{content:""}.icon-kl-star_fall_o:before{content:""}.icon-kl-star_o:before{content:""}.icon-kl-translate:before{content:""}.icon-kl-return:before{content:""}.icon-kl-search:before{content:""}.icon-kl-plus:before{content:""}.icon-kl-minus:before{content:""}.icon-kl-check:before{content:""}.icon-kl-close:before{content:""}.icon-kl-arrow-up:before{content:""}.icon-kl-arrow-down:before{content:""}.icon-kl-arrow-left:before{content:""}.icon-kl-arrow-right:before{content:""}.icon-kl-more-vertical:before{content:""}.icon-kl-arrow-download:before{content:""}.icon-kl-arrow-export:before{content:""}.icon-kl-arrow-logout:before{content:""}.icon-kl-arrow-share:before{content:""}.icon-kl-drag:before{content:""}.icon-kl-rule:before{content:""}.icon-kl-checklist:before{content:""}.icon-kl-bulleted-list:before{content:""}.icon-kl-menu:before{content:""}.icon-kl-text-right:before{content:""}.icon-kl-text-left:before{content:""}.icon-kl-stack_o:before{content:""}.icon-kl-mic-off_o:before{content:""}.icon-kl-mic_o:before{content:""}.icon-kl-telegram:before{content:""}.icon-kl-instagram_o:before{content:""}.icon-kl-mail_o:before{content:""}.icon-kl-coin_o:before{content:""}.icon-kl-price-tag_o:before{content:""}.icon-kl-quote_o:before{content:""}.icon-kl-play_o:before{content:""}.icon-kl-award_o:before{content:""}.icon-kl-medal_o:before{content:""}.icon-kl-bookmark_o:before{content:""}.icon-kl-calendar_o:before{content:""}.icon-kl-circle-check_o:before{content:""}.icon-kl-circle-question_o:before{content:""}.icon-kl-circle-info_o:before{content:""}.icon-kl-pie-chart_o:before{content:""}.icon-kl-edit_o:before{content:""}.icon-kl-trash_o:before{content:""}.icon-kl-copy_o:before{content:""}.icon-kl-copied_o:before{content:""}.icon-kl-folder_o:before{content:""}.icon-kl-folder-plus_o:before{content:""}.icon-kl-file-plus_o:before{content:""}.icon-kl-flag_o:before{content:""}.icon-kl-home_o:before{content:""}.icon-kl-timer_o:before{content:""}.icon-kl-visibility-off:before{content:""}.icon-kl-visibility:before{content:""}.icon-kl-unlock_o:before{content:""}.icon-kl-lock_o:before{content:""}.icon-kl-user_o:before{content:""}.icon-kl-user-plus_o:before{content:""}.icon-kl-user-close_o:before{content:""}.icon-kl-trophy_o:before{content:""}.icon-kl-crown:before{content:""}.icon-kl-star_fall:before{content:""}.icon-kl-star:before{content:""}.icon-kl-stack:before{content:""}.icon-kl-mic-off:before{content:""}.icon-kl-mic:before{content:""}.icon-kl-instagram:before{content:""}.icon-kl-mail:before{content:""}.icon-kl-coin:before{content:""}.icon-kl-price-tag:before{content:""}.icon-kl-quote:before{content:""}.icon-kl-play:before{content:""}.icon-kl-award:before{content:""}.icon-kl-medal:before{content:""}.icon-kl-bookmark:before{content:""}.icon-kl-calendar:before{content:""}.icon-kl-circle-check:before{content:""}.icon-kl-circle-question:before{content:""}.icon-kl-circle-info:before{content:""}.icon-kl-pie-chart:before{content:""}.icon-kl-edit:before{content:""}.icon-kl-trash:before{content:""}.icon-kl-copy:before{content:""}.icon-kl-copied:before{content:""}.icon-kl-folder:before{content:""}.icon-kl-folder-plus:before{content:""}.icon-kl-file-plus:before{content:""}.icon-kl-flag:before{content:""}.icon-kl-home:before{content:""}.icon-kl-timer:before{content:""}.icon-kl-unlock:before{content:""}.icon-kl-lock:before{content:""}.icon-kl-user:before{content:""}.icon-kl-user-close:before{content:""}.icon-kl-user-plus:before{content:""}.icon-kl-trophy:before{content:""}
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),ne={PRIMARY:"primary",INFO:"info"},S={SM:"sm",MD:"md",LG:"lg"},de={[S.SM]:"3px 9px",[S.MD]:"5px 12px",[S.LG]:"9px 20px"},V={xs:18,sm:24,md:32,lg:38,xl:46},ae={size:String};function oe(e,t=V){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return n.markRaw(n.defineComponent(e))}function fe(e){return n.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function j(e,t){return e!==void 0?t.concat(e()):t}const Y="0 0 24 24",G=e=>e,K=e=>`ionicons ${e}`,re={"mdi-":e=>`mdi ${e}`,"icon-":G,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":G,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ie={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(re).join("|")+")"),pe=new RegExp("^("+Object.keys(ie).join("|")+")"),H=new RegExp("^("+Object.keys(le).join("|")+")"),ge=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,U=Q({name:"QIcon",props:{...ae,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),a=oe(e),i=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=n.computed(()=>{let c,l=e.name;if(l==="none"||!l)return{none:!0};if(o.iconMapFn!==null){const s=o.iconMapFn(l);if(s!==void 0)if(s.icon!==void 0){if(l=s.icon,l==="none"||!l)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(ge.test(l)===!0){const[s,h=Y]=l.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(u=>{const[b,p,y]=u.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(he.test(l)===!0)return{img:!0,src:l.substring(4)};if(be.test(l)===!0){const[s,h=Y]=l.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let C=" ";const g=l.match(me);if(g!==null)c=re[g[1]](l);else if(ke.test(l)===!0)c=l;else if(ye.test(l)===!0)c=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(H.test(l)===!0){c="notranslate material-symbols";const s=l.match(H);s!==null&&(l=l.substring(6),c+=le[s[1]]),C=l}else{c="notranslate material-icons";const s=l.match(pe);s!==null&&(l=l.substring(2),c+=ie[s[1]]),C=l}return{cls:c,content:C}});return()=>{const c={class:i.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?n.h(e.tag,c,ve(t.default)):d.value.img===!0?n.h(e.tag,c,j(t.default,[n.h("img",{src:d.value.src})])):d.value.svg===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?n.h(e.tag,c,j(t.default,[n.h("svg",{viewBox:d.value.viewBox},[n.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(c.class+=" "+d.value.cls),n.h(e.tag,c,j(t.default,[d.value.content])))}}}),Ce={size:{type:[String,Number],default:"1em"},color:String};function $e(e){return{cSize:n.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const qe=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=$e(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ee(e,t){const o=e.style;for(const a in t)o[a]=t[a]}const N={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(N,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Be(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function ue(e){e.stopPropagation()}function Le(e){e.cancelable!==!1&&e.preventDefault()}function P(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Re(e,t,o){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],N[i[3]])})}function Se(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],N[a[3]])}),e[o]=void 0)}function _e(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return _e(e)===!0?!1:[].concat(t).includes(e.keyCode)}function we(e,t=250){let o=!1,a;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),a=e.apply(this,arguments)),a}}function W(e,t,o,a){o.modifiers.stop===!0&&ue(e);const i=o.modifiers.color;let d=o.modifiers.center;d=d===!0||a===!0;const c=document.createElement("span"),l=document.createElement("span"),C=Be(e),{left:g,top:s,width:h,height:u}=t.getBoundingClientRect(),b=Math.sqrt(h*h+u*u),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${C.left-g-p}px`,k=`${(u-b)/2}px`,x=d?k:`${C.top-s-p}px`;l.className="q-ripple__inner",Ee(l,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${x},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${i?" text-"+i:""}`,c.setAttribute("dir","ltr"),c.appendChild(l),t.appendChild(c);const _=()=>{c.remove(),clearTimeout(w)};o.abort.push(_);let w=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,l.style.opacity=.2,w=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,w=setTimeout(()=>{c.remove(),o.abort.splice(o.abort.indexOf(_),1)},275)},250)},50)}function X(e,{modifiers:t,value:o,arg:a}){const i=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||a,keyCodes:[].concat(i.keyCodes||13)}}const xe=fe({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const a={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(i){a.enabled===!0&&i.qSkipRipple!==!0&&i.type===(a.modifiers.early===!0?"pointerdown":"click")&&W(i,e,a,i.qKeyEvent===!0)},keystart:we(i=>{a.enabled===!0&&i.qSkipRipple!==!0&&F(i,a.modifiers.keyCodes)===!0&&i.type===`key${a.modifiers.early===!0?"down":"up"}`&&W(i,e,a,!0)},300)};X(a,t),e.__qripple=a,Re(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&X(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),Se(t,"main"),delete e._qripple)}}),se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(se),Me={align:{type:String,validator:e=>Pe.includes(e)}};function Te(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${se[t]}`})}function Oe(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){for(const o in t){const a=t[o],i=e[o];if(typeof a=="string"){if(a!==i)return!1}else if(Array.isArray(i)===!1||i.length!==a.length||a.some((d,c)=>d!==i[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,a)=>o===t[a]):e.length===1&&e[0]===t}function Ae(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(Ae(e[o],t[o])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:a,proxy:i,emit:d}=o,c=Oe(o),l=n.computed(()=>a.disable!==!0&&a.href!==void 0),C=t===!0?n.computed(()=>c===!0&&a.disable!==!0&&l.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):n.computed(()=>c===!0&&l.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),g=n.computed(()=>C.value===!0?x(a.to):null),s=n.computed(()=>g.value!==null),h=n.computed(()=>l.value===!0||s.value===!0),u=n.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),b=n.computed(()=>l.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:g.value.href,target:a.target}:{}),p=n.computed(()=>{if(s.value===!1)return-1;const{matched:v}=g.value,{length:$}=v,E=v[$-1];if(E===void 0)return-1;const L=i.$route.matched;if(L.length===0)return-1;const R=L.findIndex(J.bind(null,E));if(R!==-1)return R;const I=Z(v[$-2]);return $>1&&Z(E)===I&&L[L.length-1].path!==I?L.findIndex(J.bind(null,v[$-2])):R}),y=n.computed(()=>s.value===!0&&p.value!==-1&&ze(i.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===i.$route.matched.length-1&&je(i.$route.params,g.value.params)),k=n.computed(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":y.value===!0?` ${a.activeClass}`:"":"");function x(v){try{return i.$router.resolve(v)}catch{}return null}function _(v,{returnRouterError:$,to:E=a.to,replace:L=a.replace}={}){if(a.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||a.target==="_blank")return Promise.resolve(!1);v.preventDefault();const R=i.$router[L===!0?"replace":"push"](E);return $===!0?R:R.then(()=>{}).catch(()=>{})}function w(v){if(s.value===!0){const $=E=>_(v,E);d("click",v,$),v.defaultPrevented!==!0&&$()}else d("click",v)}return{hasRouterLink:s,hasHrefLink:l,hasLink:h,linkTag:u,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:x,navigateToRouterLink:_,navigateOnClick:w}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ne={xs:8,sm:10,md:14,lg:20,xl:24},Ke=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ye={...ae,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ge={...Ye,round:Boolean};function He(e){const t=oe(e,Ne),o=Te(e),{hasRouterLink:a,hasLink:i,linkTag:d,linkAttrs:c,navigateOnClick:l}=De({fallbackTag:"button"}),C=n.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in te?te[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>s.value===!0?e.tabindex||0:-1),u=n.computed(()=>Qe(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return i.value===!0?Object.assign(f,c.value):Ke.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),p=n.computed(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=n.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:C,innerClasses:y,attributes:b,hasLink:i,linkTag:d,navigateOnClick:l,isActionable:s}}const{passiveCapture:q}=N;let M=null,T=null,O=null;const Ue=Q({name:"QBtn",props:{...Ge,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:a}=n.getCurrentInstance(),{classes:i,style:d,innerClasses:c,attributes:l,hasLink:C,linkTag:g,navigateOnClick:s,isActionable:h}=He(e),u=n.ref(null),b=n.ref(null);let p=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),x=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),_=n.computed(()=>({center:e.round})),w=n.computed(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const r={onClick:E,onKeydown:L,onMousedown:I};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=R}return r}return{onClick:P}}),$=n.computed(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:d.value,...l.value,...v.value}));function E(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const D=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",D,q),u.value!==null&&u.value.removeEventListener("blur",D,q)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",D,q),u.value.addEventListener("blur",D,q)}}s(r)}}function L(r){u.value!==null&&(o("keydown",r),F(r,[13,32])===!0&&T!==u.value&&(T!==null&&z(),r.defaultPrevented!==!0&&(u.value.focus(),T=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",B,!0),u.value.addEventListener("blur",B,q)),P(r)))}function R(r){u.value!==null&&(o("touchstart",r),r.defaultPrevented!==!0&&(M!==u.value&&(M!==null&&z(),M=u.value,p=r.target,p.addEventListener("touchcancel",B,q),p.addEventListener("touchend",B,q)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(r){u.value!==null&&(r.qSkipRipple=y===!0,o("mousedown",r),r.defaultPrevented!==!0&&O!==u.value&&(O!==null&&z(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",B,q)))}function B(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(T===u.value&&F(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&Le(m),r.cancelBubble===!0&&ue(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}o("keyup",r)}z()}}function z(r){const m=b.value;r!==!0&&(M===u.value||O===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),M===u.value&&(p!==null&&(p.removeEventListener("touchcancel",B,q),p.removeEventListener("touchend",B,q)),M=p=null),O===u.value&&(document.removeEventListener("mouseup",B,q),O=null),T===u.value&&(document.removeEventListener("keyup",B,!0),u.value!==null&&u.value.removeEventListener("blur",B,q),T=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function A(r){P(r),r.qSkipRipple=!0}return n.onBeforeUnmount(()=>{z(!0)}),Object.assign(a,{click:r=>{h.value===!0&&E(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(n.h(U,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&r.push(n.h("span",{class:"block"},[e.label])),r=j(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(n.h(U,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:w.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},r)),e.loading!==null&&m.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(qe)])]:null)),n.withDirectives(n.h(g.value,$.value,m),[[xe,x.value,void 0,_.value]])}}}),We=n.defineComponent({__name:"index",props:{size:{default:S.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ne.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},emits:["click"],setup(e){const t=e,o=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===S.SM,"app-btn_md":t.size===S.MD,"app-btn_lg":t.size===S.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(a,i)=>(n.openBlock(),n.createBlock(n.unref(Ue),{"no-caps":"",unelevated:"",class:n.normalizeClass(o.value),padding:n.unref(de)[a.size||n.unref(S).MD],loading:a.loading,disable:a.disabled||void 0,to:a.to,href:a.href,target:a.target,type:a.submit?"submit":void 0,"aria-label":a.ariaLabel,onClick:i[0]||(i[0]=d=>a.$emit("click",d))},{default:n.withCtx(()=>[a.iconLeft||a.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",a.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${a.iconLeft||a.iconMiddle}`,a.transparent||a.flat?`text-${a.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0),a.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(a.label),1)],64)):n.createCommentVNode("",!0),a.iconRight?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${a.iconRight}`,a.transparent?`text-${a.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label"]))}}),ce=(e,t)=>{const o=e.__vccOpts||e;for(const[a,i]of t)o[a]=i;return o},Xe=ce(We,[["__scopeId","data-v-ac94630a"]]),Ze=n.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Je=ce(Ze,[["__scopeId","data-v-73419357"]]),et=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-IrXRxHX3.cjs")));exports.AppButton=Xe;exports.AppButtonCopy=et;exports.COLORS=ne;exports.index=Je;