@quidgest/ui 0.15.9 → 0.16.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/manifest/components.json +4 -1
- package/dist/ui.css +11 -12
- package/dist/ui.esm.js +3758 -3654
- package/dist/ui.js +26 -26
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +748 -741
- package/dist/ui.scss +34 -31
- package/esm/components/QAccordion/QAccordion.d.ts +4 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +21 -17
- package/esm/components/QAccordion/QAccordionItem.d.ts +19 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -0
- package/esm/components/QAccordion/QAccordionItem.vue.js +42 -0
- package/esm/components/QAccordion/QAccordionItem.vue2.js +4 -0
- package/esm/components/QAccordion/index.d.ts +35 -15
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/index.js +6 -4
- package/esm/components/QAccordion/types.d.ts +25 -5
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +9 -11
- package/esm/components/QButton/types.d.ts +0 -4
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +60 -65
- package/esm/components/QCollapsible/index.d.ts +14 -14
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +16 -18
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +59 -57
- package/esm/components/QCombobox/index.d.ts +11 -9
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +4 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +16 -16
- package/esm/components/QList/QList.d.ts +9 -9
- package/esm/components/QList/QListItem.d.ts +1 -1
- package/esm/components/QList/index.d.ts +10 -10
- package/esm/components/QOverlay/QOverlay.vue.js +15 -16
- package/esm/components/QOverlay/index.d.ts +0 -3
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +0 -4
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +12 -13
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +31 -34
- package/esm/components/QRadioGroup/QRadioButton.vue.js +3 -3
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +1 -1
- package/esm/components/QSelect/QSelect.d.ts +16 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +58 -56
- package/esm/components/QSelect/index.d.ts +11 -8
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +4 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/{QButtonToggle/QButtonToggle.d.ts → QToggle/QToggle.d.ts} +11 -9
- package/esm/components/QToggle/QToggle.d.ts.map +1 -0
- package/esm/components/QToggle/QToggle.vue.js +40 -0
- package/esm/components/QToggle/QToggle.vue2.js +4 -0
- package/esm/components/QToggle/index.d.ts +71 -0
- package/esm/components/QToggle/index.d.ts.map +1 -0
- package/esm/components/{QButtonToggle → QToggle}/index.js +3 -3
- package/esm/components/QToggle/types.d.ts +3 -0
- package/esm/components/QToggle/types.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +28 -0
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +49 -0
- package/esm/components/QToggleGroup/QToggleGroup.vue2.js +4 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +19 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +44 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +4 -0
- package/esm/components/QToggleGroup/index.d.ts +75 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -0
- package/esm/components/QToggleGroup/index.js +8 -0
- package/esm/components/QToggleGroup/types.d.ts +19 -0
- package/esm/components/QToggleGroup/types.d.ts.map +1 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +42 -40
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +83 -79
- package/esm/composables/{group.d.ts → useGroup/index.d.ts} +11 -3
- package/esm/composables/useGroup/index.d.ts.map +1 -0
- package/esm/composables/useGroup/index.js +38 -0
- package/esm/index.d.ts +4 -1
- package/package.json +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +0 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +0 -62
- package/esm/components/QButtonToggle/QButtonToggle.vue2.js +0 -4
- package/esm/components/QButtonToggle/index.d.ts +0 -51
- package/esm/components/QButtonToggle/index.d.ts.map +0 -1
- package/esm/components/QButtonToggle/types.d.ts +0 -29
- package/esm/components/QButtonToggle/types.d.ts.map +0 -1
- package/esm/composables/group.d.ts.map +0 -1
- package/esm/composables/group.js +0 -31
|
@@ -101,8 +101,8 @@ declare function __VLS_template(): {
|
|
|
101
101
|
readonly itemLabel?: string | undefined;
|
|
102
102
|
readonly disabled?: boolean | undefined;
|
|
103
103
|
readonly selectable?: boolean | undefined;
|
|
104
|
-
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
105
104
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
105
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
106
106
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
107
107
|
$attrs: {
|
|
108
108
|
[x: string]: unknown;
|
|
@@ -124,8 +124,8 @@ declare function __VLS_template(): {
|
|
|
124
124
|
readonly disabled?: boolean | undefined;
|
|
125
125
|
readonly description?: string | undefined;
|
|
126
126
|
readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
|
|
127
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
128
127
|
readonly onClick?: (() => any) | undefined;
|
|
128
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
129
129
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
130
130
|
$attrs: {
|
|
131
131
|
[x: string]: unknown;
|
|
@@ -139,13 +139,13 @@ declare function __VLS_template(): {
|
|
|
139
139
|
$root: import('vue').ComponentPublicInstance | null;
|
|
140
140
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
141
141
|
$host: Element | null;
|
|
142
|
-
$emit: ((event: "
|
|
142
|
+
$emit: ((event: "click") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
143
143
|
$el: HTMLLIElement;
|
|
144
144
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
145
145
|
modelValue?: boolean;
|
|
146
146
|
} & import('..').QListItemProps> & Readonly<{
|
|
147
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
148
147
|
onClick?: (() => any) | undefined;
|
|
148
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
150
150
|
"update:modelValue": (value: boolean) => any;
|
|
151
151
|
} & {
|
|
@@ -177,8 +177,8 @@ declare function __VLS_template(): {
|
|
|
177
177
|
}> & Omit<Readonly<{
|
|
178
178
|
modelValue?: boolean;
|
|
179
179
|
} & import('..').QListItemProps> & Readonly<{
|
|
180
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
181
180
|
onClick?: (() => any) | undefined;
|
|
181
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
182
182
|
}>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
183
183
|
$slots: {
|
|
184
184
|
prepend?(_: {}): any;
|
|
@@ -193,7 +193,7 @@ declare function __VLS_template(): {
|
|
|
193
193
|
$root: import('vue').ComponentPublicInstance | null;
|
|
194
194
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
195
195
|
$host: Element | null;
|
|
196
|
-
$emit: ((event: "
|
|
196
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
197
197
|
$el: any;
|
|
198
198
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
199
199
|
modelValue?: any;
|
|
@@ -206,8 +206,8 @@ declare function __VLS_template(): {
|
|
|
206
206
|
disabled?: boolean;
|
|
207
207
|
selectable?: boolean;
|
|
208
208
|
}> & Readonly<{
|
|
209
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
210
209
|
onClick?: ((key: any) => any) | undefined;
|
|
210
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
211
211
|
}>, {
|
|
212
212
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
213
213
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -256,8 +256,8 @@ declare function __VLS_template(): {
|
|
|
256
256
|
disabled?: boolean;
|
|
257
257
|
selectable?: boolean;
|
|
258
258
|
}> & Readonly<{
|
|
259
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
260
259
|
onClick?: ((key: any) => any) | undefined;
|
|
260
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
261
261
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
262
262
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
263
263
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -383,8 +383,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
383
383
|
readonly itemLabel?: string | undefined;
|
|
384
384
|
readonly disabled?: boolean | undefined;
|
|
385
385
|
readonly selectable?: boolean | undefined;
|
|
386
|
-
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
387
386
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
387
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
388
388
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
389
389
|
$attrs: {
|
|
390
390
|
[x: string]: unknown;
|
|
@@ -406,8 +406,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
406
406
|
readonly disabled?: boolean | undefined;
|
|
407
407
|
readonly description?: string | undefined;
|
|
408
408
|
readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
|
|
409
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
410
409
|
readonly onClick?: (() => any) | undefined;
|
|
410
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
411
411
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
412
412
|
$attrs: {
|
|
413
413
|
[x: string]: unknown;
|
|
@@ -421,13 +421,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
421
421
|
$root: import('vue').ComponentPublicInstance | null;
|
|
422
422
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
423
423
|
$host: Element | null;
|
|
424
|
-
$emit: ((event: "
|
|
424
|
+
$emit: ((event: "click") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
425
425
|
$el: HTMLLIElement;
|
|
426
426
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
427
427
|
modelValue?: boolean;
|
|
428
428
|
} & import('..').QListItemProps> & Readonly<{
|
|
429
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
430
429
|
onClick?: (() => any) | undefined;
|
|
430
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
431
431
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
432
432
|
"update:modelValue": (value: boolean) => any;
|
|
433
433
|
} & {
|
|
@@ -459,8 +459,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
459
459
|
}> & Omit<Readonly<{
|
|
460
460
|
modelValue?: boolean;
|
|
461
461
|
} & import('..').QListItemProps> & Readonly<{
|
|
462
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
463
462
|
onClick?: (() => any) | undefined;
|
|
463
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
464
464
|
}>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
465
465
|
$slots: {
|
|
466
466
|
prepend?(_: {}): any;
|
|
@@ -475,7 +475,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
475
475
|
$root: import('vue').ComponentPublicInstance | null;
|
|
476
476
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
477
477
|
$host: Element | null;
|
|
478
|
-
$emit: ((event: "
|
|
478
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
479
479
|
$el: any;
|
|
480
480
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
481
481
|
modelValue?: any;
|
|
@@ -488,8 +488,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
488
488
|
disabled?: boolean;
|
|
489
489
|
selectable?: boolean;
|
|
490
490
|
}> & Readonly<{
|
|
491
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
492
491
|
onClick?: ((key: any) => any) | undefined;
|
|
492
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
493
493
|
}>, {
|
|
494
494
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
495
495
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -538,8 +538,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
538
538
|
disabled?: boolean;
|
|
539
539
|
selectable?: boolean;
|
|
540
540
|
}> & Readonly<{
|
|
541
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
542
541
|
onClick?: ((key: any) => any) | undefined;
|
|
542
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
543
543
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
544
544
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
545
545
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AA0HA;AAwSC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAatD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAEpD,KAAK,WAAW,GAAG,YAAY,CAAC;AAkKjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA8TT,OAAO,IAA6B;;yBAnBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAoFmsB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjE/1B;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA8BqtB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArB91B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as D, useModel as
|
|
1
|
+
import { defineComponent as P, mergeModels as D, useModel as K, ref as b, computed as k, watch as H, nextTick as X, createElementBlock as f, openBlock as t, Fragment as z, createVNode as g, unref as n, mergeProps as A, createSlots as j, withCtx as i, toDisplayString as F, createCommentVNode as h, createTextVNode as G, renderSlot as d, createBlock as _, normalizeProps as J, createElementVNode as W, withModifiers as Y } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as Z, DEFAULT_ICONS as ee } from "./types.js";
|
|
3
3
|
import { QButton as le } from "../QButton/index.js";
|
|
4
4
|
import { QField as oe } from "../QField/index.js";
|
|
@@ -7,8 +7,8 @@ import { QList as te } from "../QList/index.js";
|
|
|
7
7
|
import { QOverlay as ne } from "../QOverlay/index.js";
|
|
8
8
|
import { QSpinnerLoader as ie } from "../QSpinnerLoader/index.js";
|
|
9
9
|
import { QChevron as se } from "../__internal__/QChevron/index.js";
|
|
10
|
-
import { QClearButton as
|
|
11
|
-
const
|
|
10
|
+
import { QClearButton as re } from "../__internal__/QClearButton/index.js";
|
|
11
|
+
const de = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "q-select__value"
|
|
14
14
|
}, ue = {
|
|
@@ -37,6 +37,7 @@ const re = {
|
|
|
37
37
|
clearable: { type: Boolean },
|
|
38
38
|
loading: { type: Boolean },
|
|
39
39
|
emptyValue: {},
|
|
40
|
+
inline: { type: Boolean },
|
|
40
41
|
icons: { default: () => ee },
|
|
41
42
|
texts: { default: () => Z }
|
|
42
43
|
}, {
|
|
@@ -44,44 +45,44 @@ const re = {
|
|
|
44
45
|
modelModifiers: {}
|
|
45
46
|
}),
|
|
46
47
|
emits: /* @__PURE__ */ D(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
47
|
-
setup(q, { emit:
|
|
48
|
-
const e = q, m =
|
|
48
|
+
setup(q, { emit: O }) {
|
|
49
|
+
const e = q, m = O, p = K(q, "modelValue"), o = b(!1), v = b(null), x = b(null), w = b(null), R = k(() => s.value === void 0), s = k(
|
|
49
50
|
() => {
|
|
50
51
|
var l;
|
|
51
52
|
return (l = e.items) == null ? void 0 : l.find((a) => a[e.itemValue] === p.value);
|
|
52
53
|
}
|
|
53
|
-
),
|
|
54
|
+
), M = k(
|
|
54
55
|
() => s.value ? s.value[e.itemLabel] : ""
|
|
55
|
-
),
|
|
56
|
+
), V = k(
|
|
56
57
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
57
58
|
);
|
|
58
59
|
function B(l) {
|
|
59
|
-
p.value = l,
|
|
60
|
+
p.value = l, y();
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
62
|
+
function E() {
|
|
63
|
+
V.value && (B(e.emptyValue), Q());
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function N(l) {
|
|
65
66
|
var a, u, c;
|
|
66
|
-
!((a =
|
|
67
|
+
!((a = w.value) != null && a.contains(l.relatedTarget)) && !((c = (u = v.value) == null ? void 0 : u.fieldRef) != null && c.contains(l.relatedTarget)) && y();
|
|
67
68
|
}
|
|
68
69
|
function L() {
|
|
69
70
|
o.value || (m("before-show"), o.value = !0);
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function y() {
|
|
72
73
|
o.value && (m("before-hide"), o.value = !1);
|
|
73
74
|
}
|
|
74
75
|
function $() {
|
|
75
|
-
e.readonly || e.disabled || (o.value ?
|
|
76
|
+
e.readonly || e.disabled || (o.value ? y() : L());
|
|
76
77
|
}
|
|
77
78
|
function C(l) {
|
|
78
|
-
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && L(), ["Escape", "Tab"].includes(l.key) && (o.value ?
|
|
79
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && L(), ["Escape", "Tab"].includes(l.key) && (o.value ? y() : V.value && l.key === "Escape" && E()), l.key === "Delete" && e.clearable && E());
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function U() {
|
|
81
82
|
var l;
|
|
82
|
-
e.loading ? (l =
|
|
83
|
+
e.loading ? (l = w.value) == null || l.focus() : T(), m("show");
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function I() {
|
|
85
86
|
Q(), m("hide");
|
|
86
87
|
}
|
|
87
88
|
function Q() {
|
|
@@ -92,10 +93,10 @@ const re = {
|
|
|
92
93
|
var l;
|
|
93
94
|
(l = x.value) == null || l.$el.focus();
|
|
94
95
|
}
|
|
95
|
-
return
|
|
96
|
+
return H(
|
|
96
97
|
() => e.loading,
|
|
97
98
|
(l) => {
|
|
98
|
-
!l && o.value &&
|
|
99
|
+
!l && o.value && X(T);
|
|
99
100
|
}
|
|
100
101
|
), (l, a) => {
|
|
101
102
|
var u, c;
|
|
@@ -103,7 +104,7 @@ const re = {
|
|
|
103
104
|
z,
|
|
104
105
|
null,
|
|
105
106
|
[
|
|
106
|
-
|
|
107
|
+
g(n(oe), A({
|
|
107
108
|
id: e.id,
|
|
108
109
|
ref_key: "triggerEl",
|
|
109
110
|
ref: v,
|
|
@@ -128,17 +129,17 @@ const re = {
|
|
|
128
129
|
invalid: e.invalid
|
|
129
130
|
}, l.$attrs, {
|
|
130
131
|
onClick: $,
|
|
131
|
-
onKeydown:
|
|
132
|
-
}),
|
|
132
|
+
onKeydown: C
|
|
133
|
+
}), j({
|
|
133
134
|
append: i(() => [
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
d(l.$slots, "append"),
|
|
136
|
+
V.value && p.value ? (t(), _(n(re), {
|
|
136
137
|
key: 0,
|
|
137
138
|
icons: e.icons,
|
|
138
139
|
texts: e.texts,
|
|
139
|
-
onClick:
|
|
140
|
-
}, null, 8, ["icons", "texts"])) :
|
|
141
|
-
e.readonly ?
|
|
140
|
+
onClick: E
|
|
141
|
+
}, null, 8, ["icons", "texts"])) : h("v-if", !0),
|
|
142
|
+
e.readonly ? h("v-if", !0) : (t(), _(n(le), {
|
|
142
143
|
key: 1,
|
|
143
144
|
class: "q-select__chevron",
|
|
144
145
|
"aria-label": e.texts.showOptions,
|
|
@@ -150,7 +151,7 @@ const re = {
|
|
|
150
151
|
onClick: $
|
|
151
152
|
}, {
|
|
152
153
|
default: i(() => [
|
|
153
|
-
|
|
154
|
+
g(n(se), {
|
|
154
155
|
"model-value": o.value,
|
|
155
156
|
icons: e.icons
|
|
156
157
|
}, null, 8, ["model-value", "icons"])
|
|
@@ -160,24 +161,24 @@ const re = {
|
|
|
160
161
|
}, 8, ["aria-label", "disabled"]))
|
|
161
162
|
]),
|
|
162
163
|
default: i(() => [
|
|
163
|
-
|
|
164
|
+
R.value ? (t(), f("span", ue, [
|
|
164
165
|
!e.readonly && !e.disabled ? (t(), f(
|
|
165
166
|
z,
|
|
166
167
|
{ key: 0 },
|
|
167
168
|
[
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
G(
|
|
170
|
+
F(e.texts.placeholder),
|
|
170
171
|
1
|
|
171
172
|
/* TEXT */
|
|
172
173
|
)
|
|
173
174
|
],
|
|
174
175
|
64
|
|
175
176
|
/* STABLE_FRAGMENT */
|
|
176
|
-
)) :
|
|
177
|
+
)) : h("v-if", !0)
|
|
177
178
|
])) : (t(), f(
|
|
178
179
|
"span",
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
de,
|
|
181
|
+
F(M.value),
|
|
181
182
|
1
|
|
182
183
|
/* TEXT */
|
|
183
184
|
))
|
|
@@ -188,16 +189,16 @@ const re = {
|
|
|
188
189
|
(u = s.value) != null && u.icon || l.$slots.prepend ? {
|
|
189
190
|
name: "prepend",
|
|
190
191
|
fn: i(() => {
|
|
191
|
-
var
|
|
192
|
+
var r, S;
|
|
192
193
|
return [
|
|
193
|
-
|
|
194
|
-
(
|
|
194
|
+
d(l.$slots, "prepend"),
|
|
195
|
+
(r = s.value) != null && r.icon ? (t(), _(
|
|
195
196
|
n(ae),
|
|
196
|
-
|
|
197
|
+
J(A({ key: 0 }, (S = s.value) == null ? void 0 : S.icon)),
|
|
197
198
|
null,
|
|
198
199
|
16
|
|
199
200
|
/* FULL_PROPS */
|
|
200
|
-
)) :
|
|
201
|
+
)) : h("v-if", !0)
|
|
201
202
|
];
|
|
202
203
|
}),
|
|
203
204
|
key: "0"
|
|
@@ -205,39 +206,40 @@ const re = {
|
|
|
205
206
|
l.$slots.extras ? {
|
|
206
207
|
name: "extras",
|
|
207
208
|
fn: i(() => [
|
|
208
|
-
|
|
209
|
+
d(l.$slots, "extras")
|
|
209
210
|
]),
|
|
210
211
|
key: "1"
|
|
211
212
|
} : void 0
|
|
212
213
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
213
|
-
|
|
214
|
+
g(n(ne), {
|
|
214
215
|
modelValue: o.value,
|
|
215
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
216
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
|
|
216
217
|
spy: "",
|
|
217
218
|
trigger: "manual",
|
|
218
219
|
placement: "bottom-start",
|
|
219
220
|
width: "anchor",
|
|
220
221
|
"scroll-lock": "",
|
|
222
|
+
inline: e.inline,
|
|
221
223
|
anchor: (c = v.value) == null ? void 0 : c.$el,
|
|
222
224
|
offset: 2,
|
|
223
|
-
onEnter:
|
|
224
|
-
onLeave:
|
|
225
|
+
onEnter: U,
|
|
226
|
+
onLeave: I
|
|
225
227
|
}, {
|
|
226
228
|
default: i(() => [
|
|
227
|
-
|
|
229
|
+
W("div", {
|
|
228
230
|
ref_key: "contentRef",
|
|
229
|
-
ref:
|
|
231
|
+
ref: w,
|
|
230
232
|
"data-testid": "combobox-dropdown",
|
|
231
233
|
"data-key": e.id,
|
|
232
234
|
class: "q-select__body",
|
|
233
235
|
tabindex: "-1",
|
|
234
|
-
onFocusout:
|
|
235
|
-
onKeydown:
|
|
236
|
+
onFocusout: N,
|
|
237
|
+
onKeydown: Y(C, ["stop"])
|
|
236
238
|
}, [
|
|
237
|
-
|
|
239
|
+
d(l.$slots, "body.prepend"),
|
|
238
240
|
e.loading ? (t(), f("div", fe, [
|
|
239
|
-
|
|
240
|
-
])) : (t(),
|
|
241
|
+
g(n(ie), { size: 24 })
|
|
242
|
+
])) : (t(), _(n(te), {
|
|
241
243
|
key: 1,
|
|
242
244
|
ref_key: "listRef",
|
|
243
245
|
ref: x,
|
|
@@ -250,18 +252,18 @@ const re = {
|
|
|
250
252
|
"item-value": e.itemValue,
|
|
251
253
|
"onUpdate:modelValue": B
|
|
252
254
|
}, {
|
|
253
|
-
item: i(({ item:
|
|
254
|
-
|
|
255
|
+
item: i(({ item: r }) => [
|
|
256
|
+
d(l.$slots, "item", { item: r })
|
|
255
257
|
]),
|
|
256
258
|
_: 3
|
|
257
259
|
/* FORWARDED */
|
|
258
260
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
259
|
-
|
|
261
|
+
d(l.$slots, "body.append")
|
|
260
262
|
], 40, ce)
|
|
261
263
|
]),
|
|
262
264
|
_: 3
|
|
263
265
|
/* FORWARDED */
|
|
264
|
-
}, 8, ["modelValue", "anchor"])
|
|
266
|
+
}, 8, ["modelValue", "inline", "anchor"])
|
|
265
267
|
],
|
|
266
268
|
64
|
|
267
269
|
/* STABLE_FRAGMENT */
|
|
@@ -19,6 +19,7 @@ declare const QSelect: {
|
|
|
19
19
|
clearable?: boolean;
|
|
20
20
|
loading?: boolean;
|
|
21
21
|
emptyValue?: any;
|
|
22
|
+
inline?: boolean;
|
|
22
23
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
23
24
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
24
25
|
}> & Readonly<{
|
|
@@ -125,8 +126,8 @@ declare const QSelect: {
|
|
|
125
126
|
readonly itemLabel?: string | undefined;
|
|
126
127
|
readonly disabled?: boolean | undefined;
|
|
127
128
|
readonly selectable?: boolean | undefined;
|
|
128
|
-
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
129
129
|
readonly onClick?: ((key: any) => any) | undefined;
|
|
130
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
130
131
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
131
132
|
$attrs: {
|
|
132
133
|
[x: string]: unknown;
|
|
@@ -148,8 +149,8 @@ declare const QSelect: {
|
|
|
148
149
|
readonly disabled?: boolean | undefined;
|
|
149
150
|
readonly description?: string | undefined;
|
|
150
151
|
readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
|
|
151
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
152
152
|
readonly onClick?: (() => any) | undefined;
|
|
153
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
153
154
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
154
155
|
$attrs: {
|
|
155
156
|
[x: string]: unknown;
|
|
@@ -163,13 +164,13 @@ declare const QSelect: {
|
|
|
163
164
|
$root: import('vue').ComponentPublicInstance | null;
|
|
164
165
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
165
166
|
$host: Element | null;
|
|
166
|
-
$emit: ((event: "
|
|
167
|
+
$emit: ((event: "click") => void) & ((event: "update:modelValue", value: boolean) => void);
|
|
167
168
|
$el: HTMLLIElement;
|
|
168
169
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
169
170
|
modelValue?: boolean;
|
|
170
171
|
} & import('..').QListItemProps> & Readonly<{
|
|
171
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
172
172
|
onClick?: (() => any) | undefined;
|
|
173
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
173
174
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
174
175
|
"update:modelValue": (value: boolean) => any;
|
|
175
176
|
} & {
|
|
@@ -201,8 +202,8 @@ declare const QSelect: {
|
|
|
201
202
|
}> & Omit<Readonly<{
|
|
202
203
|
modelValue?: boolean;
|
|
203
204
|
} & import('..').QListItemProps> & Readonly<{
|
|
204
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
205
205
|
onClick?: (() => any) | undefined;
|
|
206
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
206
207
|
}>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
207
208
|
$slots: {
|
|
208
209
|
prepend?(_: {}): any;
|
|
@@ -217,7 +218,7 @@ declare const QSelect: {
|
|
|
217
218
|
$root: import('vue').ComponentPublicInstance | null;
|
|
218
219
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
219
220
|
$host: Element | null;
|
|
220
|
-
$emit: ((event: "
|
|
221
|
+
$emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
|
|
221
222
|
$el: any;
|
|
222
223
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
223
224
|
modelValue?: any;
|
|
@@ -230,8 +231,8 @@ declare const QSelect: {
|
|
|
230
231
|
disabled?: boolean;
|
|
231
232
|
selectable?: boolean;
|
|
232
233
|
}> & Readonly<{
|
|
233
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
234
234
|
onClick?: ((key: any) => any) | undefined;
|
|
235
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
235
236
|
}>, {
|
|
236
237
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
237
238
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -280,8 +281,8 @@ declare const QSelect: {
|
|
|
280
281
|
disabled?: boolean;
|
|
281
282
|
selectable?: boolean;
|
|
282
283
|
}> & Readonly<{
|
|
283
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
284
284
|
onClick?: ((key: any) => any) | undefined;
|
|
285
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
285
286
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
286
287
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
287
288
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -326,6 +327,7 @@ declare const QSelect: {
|
|
|
326
327
|
clearable?: boolean;
|
|
327
328
|
loading?: boolean;
|
|
328
329
|
emptyValue?: any;
|
|
330
|
+
inline?: boolean;
|
|
329
331
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
330
332
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
331
333
|
}> & Readonly<{
|
|
@@ -364,6 +366,7 @@ declare const QSelect: {
|
|
|
364
366
|
clearable?: boolean;
|
|
365
367
|
loading?: boolean;
|
|
366
368
|
emptyValue?: any;
|
|
369
|
+
inline?: boolean;
|
|
367
370
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
368
371
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
369
372
|
}> & Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIuwzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJj2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -30,6 +30,10 @@ export type QSelectProps = QFieldProps & {
|
|
|
30
30
|
* used to check if the field has a selected item.
|
|
31
31
|
*/
|
|
32
32
|
emptyValue?: any;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to disable the teleport of the select overlay.
|
|
35
|
+
*/
|
|
36
|
+
inline?: boolean;
|
|
33
37
|
/**
|
|
34
38
|
* Custom icon configurations.
|
|
35
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAGM,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAA;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAGM,CAAA"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import { QToggleProps } from './types';
|
|
2
|
+
type __VLS_Props = QToggleProps;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?:
|
|
4
|
+
modelValue?: boolean;
|
|
5
5
|
} & __VLS_Props;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
|
-
slots:
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
9
11
|
refs: {};
|
|
10
|
-
rootEl:
|
|
12
|
+
rootEl: HTMLButtonElement;
|
|
11
13
|
};
|
|
12
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
15
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
"update:modelValue": (value:
|
|
16
|
+
"update:modelValue": (value: boolean) => any;
|
|
15
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: ((value:
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
18
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
18
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
21
|
export default _default;
|
|
20
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -22,4 +24,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
22
24
|
$slots: S;
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=QToggle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as s, mergeModels as r, useModel as c, computed as d, createBlock as u, openBlock as p, unref as i, mergeProps as m, withCtx as g, renderSlot as f } from "vue";
|
|
2
|
+
import { QButton as B } from "../QButton/index.js";
|
|
3
|
+
const k = /* @__PURE__ */ s({
|
|
4
|
+
__name: "QToggle",
|
|
5
|
+
props: /* @__PURE__ */ r({
|
|
6
|
+
id: {},
|
|
7
|
+
class: {},
|
|
8
|
+
label: {},
|
|
9
|
+
variant: {},
|
|
10
|
+
color: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
borderless: { type: Boolean },
|
|
13
|
+
elevated: { type: Boolean },
|
|
14
|
+
block: { type: Boolean },
|
|
15
|
+
loading: { type: Boolean },
|
|
16
|
+
size: {},
|
|
17
|
+
iconPos: {},
|
|
18
|
+
pill: { type: Boolean }
|
|
19
|
+
}, {
|
|
20
|
+
modelValue: { type: Boolean },
|
|
21
|
+
modelModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(o) {
|
|
25
|
+
const l = o, e = c(o, "modelValue"), t = d(() => ["q-toggle", { "q-toggle--active": e.value }]);
|
|
26
|
+
function a() {
|
|
27
|
+
e.value = !e.value;
|
|
28
|
+
}
|
|
29
|
+
return (n, v) => (p(), u(i(B), m({ class: t.value }, l, { onClick: a }), {
|
|
30
|
+
default: g(() => [
|
|
31
|
+
f(n.$slots, "default")
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
/* FORWARDED */
|
|
35
|
+
}, 16, ["class"]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
k as default
|
|
40
|
+
};
|