@quidgest/ui 0.19.0 → 0.20.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/CHANGELOG.md +21 -1
- package/dist/json/api.json +1414 -45
- package/dist/manifest/components.json +2 -0
- package/dist/ui.css +1374 -5
- package/dist/ui.esm.js +1459 -841
- package/dist/ui.js +1444 -826
- package/dist/ui.min.css +2 -1
- package/dist/ui.min.js +1444 -826
- package/dist/ui.scss +569 -7
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +1 -1
- package/esm/components/QGauge/QGauge.d.ts +56 -0
- package/esm/components/QGauge/QGauge.d.ts.map +1 -0
- package/esm/components/QGauge/QGauge.vue.js +305 -0
- package/esm/components/QGauge/QGauge2.vue.js +5 -0
- package/esm/components/QGauge/constants.d.ts +6 -0
- package/esm/components/QGauge/constants.d.ts.map +1 -0
- package/esm/components/QGauge/constants.js +8 -0
- package/esm/components/QGauge/index.d.ts +124 -0
- package/esm/components/QGauge/index.d.ts.map +1 -0
- package/esm/components/QGauge/index.js +6 -0
- package/esm/components/QGauge/types.d.ts +146 -0
- package/esm/components/QGauge/types.d.ts.map +1 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts +147 -3
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +32 -23
- package/esm/components/QInputGroup/index.d.ts +81 -4
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +3 -1
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +24 -28
- package/esm/components/QList/types.d.ts +1 -1
- package/esm/components/QOverlay/types.d.ts +3 -1
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +2263 -0
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -0
- package/esm/components/QPhoneField/QPhoneField.vue.js +478 -0
- package/esm/components/QPhoneField/QPhoneField2.vue.js +5 -0
- package/esm/components/QPhoneField/constants.d.ts +11 -0
- package/esm/components/QPhoneField/constants.d.ts.map +1 -0
- package/esm/components/QPhoneField/constants.js +14 -0
- package/esm/components/QPhoneField/index.d.ts +1253 -0
- package/esm/components/QPhoneField/index.d.ts.map +1 -0
- package/esm/components/QPhoneField/index.js +6 -0
- package/esm/components/QPhoneField/types.d.ts +108 -0
- package/esm/components/QPhoneField/types.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +16 -1
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +158 -129
- package/esm/components/QSelect/index.d.ts +31 -3
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +13 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +64 -60
- package/esm/composables/useColor/index.d.ts +8 -0
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +16 -18
- package/esm/composables/useDialog/index.d.ts +2 -88
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +6 -6
- package/esm/composables/useDialog/types.d.ts +14 -4
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/vendors/country-flag-icons/modules/countries.json.js +4 -0
- package/esm/vendors/country-flag-icons/modules/hasFlag.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouType.js +312 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +142 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +145 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +45 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.js +258 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.util.js +57 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeParser.js +242 -0
- package/esm/vendors/libphonenumber-js/es6/AsYouTypeState.js +115 -0
- package/esm/vendors/libphonenumber-js/es6/ParseError.js +116 -0
- package/esm/vendors/libphonenumber-js/es6/PhoneNumber.js +164 -0
- package/esm/vendors/libphonenumber-js/es6/constants.js +4 -0
- package/esm/vendors/libphonenumber-js/es6/format.js +77 -0
- package/esm/vendors/libphonenumber-js/es6/formatIncompletePhoneNumber.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/getCountries.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/getExampleNumber.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/RFC3966.js +9 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/checkNumberLength.js +21 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extension/extractExtension.js +16 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +36 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +21 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +18 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumber.js +27 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +27 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +11 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +13 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +12 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +43 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/getIddPrefix.js +10 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/getNumberType.js +61 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/isCallingCode.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/isCountryCode.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +12 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/parseDigits.js +82 -0
- package/esm/vendors/libphonenumber-js/es6/helpers/stripIddPrefix.js +18 -0
- package/esm/vendors/libphonenumber-js/es6/isPossible.js +32 -0
- package/esm/vendors/libphonenumber-js/es6/isValid.js +11 -0
- package/esm/vendors/libphonenumber-js/es6/metadata.js +474 -0
- package/esm/vendors/libphonenumber-js/es6/normalizeArguments.js +110 -0
- package/esm/vendors/libphonenumber-js/es6/parse.js +103 -0
- package/esm/vendors/libphonenumber-js/es6/parseIncompletePhoneNumber.js +48 -0
- package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
- package/esm/vendors/libphonenumber-js/es6/parsePhoneNumberWithError_.js +58 -0
- package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber_.js +66 -0
- package/esm/vendors/libphonenumber-js/es6/tools/semver-compare.js +14 -0
- package/esm/vendors/libphonenumber-js/examples.mobile.json.js +250 -0
- package/esm/vendors/libphonenumber-js/max/exports/AsYouType.js +9 -0
- package/esm/vendors/libphonenumber-js/max/exports/formatIncompletePhoneNumber.js +8 -0
- package/esm/vendors/libphonenumber-js/max/exports/getCountries.js +8 -0
- package/esm/vendors/libphonenumber-js/max/exports/getCountryCallingCode.js +8 -0
- package/esm/vendors/libphonenumber-js/max/exports/getExampleNumber.js +8 -0
- package/esm/vendors/libphonenumber-js/max/exports/isSupportedCountry.js +8 -0
- package/esm/vendors/libphonenumber-js/max/exports/parsePhoneNumber.js +8 -0
- package/esm/vendors/libphonenumber-js/max/exports/withMetadataArgument.js +8 -0
- package/esm/vendors/libphonenumber-js/metadata.max.json.js +10489 -0
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QGauge/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,SAAS,CAAA;AAE3D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IAEtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IAE3E;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IAEzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IAE7E;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CACzC,CAAA"}
|
|
@@ -9,13 +9,157 @@ declare function __VLS_template(): {
|
|
|
9
9
|
append?(_: {}): any;
|
|
10
10
|
extras?(_: {}): any;
|
|
11
11
|
};
|
|
12
|
-
refs: {
|
|
12
|
+
refs: {
|
|
13
|
+
field: ({
|
|
14
|
+
$: import('vue').ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: {
|
|
17
|
+
readonly id?: string | undefined;
|
|
18
|
+
readonly class?: string | unknown[] | undefined;
|
|
19
|
+
readonly label?: string | undefined;
|
|
20
|
+
readonly required?: boolean | undefined;
|
|
21
|
+
readonly for?: string | undefined;
|
|
22
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
23
|
+
readonly size?: import('..').QFieldSize | undefined;
|
|
24
|
+
readonly readonly?: boolean | undefined;
|
|
25
|
+
readonly disabled?: boolean | undefined;
|
|
26
|
+
readonly invalid?: boolean | undefined;
|
|
27
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
28
|
+
$attrs: import('vue').Attrs;
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
} & {
|
|
32
|
+
field: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
$slots: Readonly<{
|
|
35
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
38
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
39
|
+
$host: Element | null;
|
|
40
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
41
|
+
$el: any;
|
|
42
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
|
|
43
|
+
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
45
|
+
size: import('..').QFieldSize;
|
|
46
|
+
labelPosition: import('..').QLabelPosition;
|
|
47
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
48
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
49
|
+
created?: (() => void) | (() => void)[];
|
|
50
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
51
|
+
mounted?: (() => void) | (() => void)[];
|
|
52
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
53
|
+
updated?: (() => void) | (() => void)[];
|
|
54
|
+
activated?: (() => void) | (() => void)[];
|
|
55
|
+
deactivated?: (() => void) | (() => void)[];
|
|
56
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
57
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
58
|
+
destroyed?: (() => void) | (() => void)[];
|
|
59
|
+
unmounted?: (() => void) | (() => void)[];
|
|
60
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
61
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
62
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
63
|
+
};
|
|
64
|
+
$forceUpdate: () => void;
|
|
65
|
+
$nextTick: typeof import('vue').nextTick;
|
|
66
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
67
|
+
} & Readonly<{
|
|
68
|
+
size: import('..').QFieldSize;
|
|
69
|
+
labelPosition: import('..').QLabelPosition;
|
|
70
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & {
|
|
71
|
+
fieldRef: HTMLDivElement | null;
|
|
72
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
73
|
+
$slots: {
|
|
74
|
+
'label.prepend'?(_: {}): any;
|
|
75
|
+
'label.append'?(_: {}): any;
|
|
76
|
+
control?(_: {}): any;
|
|
77
|
+
prepend?(_: {}): any;
|
|
78
|
+
default?(_: {}): any;
|
|
79
|
+
append?(_: {}): any;
|
|
80
|
+
extras?(_: {}): any;
|
|
81
|
+
};
|
|
82
|
+
}) | null;
|
|
83
|
+
};
|
|
13
84
|
rootEl: any;
|
|
14
85
|
};
|
|
15
86
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
declare const __VLS_component: import('vue').DefineComponent<QInputGroupProps, {
|
|
87
|
+
declare const __VLS_component: import('vue').DefineComponent<QInputGroupProps, {
|
|
88
|
+
fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
|
|
89
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QInputGroupProps> & Readonly<{}>, {
|
|
17
90
|
size: import('..').QFieldSize;
|
|
18
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
91
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
92
|
+
field: ({
|
|
93
|
+
$: import('vue').ComponentInternalInstance;
|
|
94
|
+
$data: {};
|
|
95
|
+
$props: {
|
|
96
|
+
readonly id?: string | undefined;
|
|
97
|
+
readonly class?: string | unknown[] | undefined;
|
|
98
|
+
readonly label?: string | undefined;
|
|
99
|
+
readonly required?: boolean | undefined;
|
|
100
|
+
readonly for?: string | undefined;
|
|
101
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
102
|
+
readonly size?: import('..').QFieldSize | undefined;
|
|
103
|
+
readonly readonly?: boolean | undefined;
|
|
104
|
+
readonly disabled?: boolean | undefined;
|
|
105
|
+
readonly invalid?: boolean | undefined;
|
|
106
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
107
|
+
$attrs: import('vue').Attrs;
|
|
108
|
+
$refs: {
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
} & {
|
|
111
|
+
field: HTMLDivElement;
|
|
112
|
+
};
|
|
113
|
+
$slots: Readonly<{
|
|
114
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
117
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
118
|
+
$host: Element | null;
|
|
119
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
120
|
+
$el: any;
|
|
121
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
|
|
122
|
+
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
123
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
124
|
+
size: import('..').QFieldSize;
|
|
125
|
+
labelPosition: import('..').QLabelPosition;
|
|
126
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
127
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
128
|
+
created?: (() => void) | (() => void)[];
|
|
129
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
130
|
+
mounted?: (() => void) | (() => void)[];
|
|
131
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
132
|
+
updated?: (() => void) | (() => void)[];
|
|
133
|
+
activated?: (() => void) | (() => void)[];
|
|
134
|
+
deactivated?: (() => void) | (() => void)[];
|
|
135
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
136
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
137
|
+
destroyed?: (() => void) | (() => void)[];
|
|
138
|
+
unmounted?: (() => void) | (() => void)[];
|
|
139
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
140
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
141
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
142
|
+
};
|
|
143
|
+
$forceUpdate: () => void;
|
|
144
|
+
$nextTick: typeof import('vue').nextTick;
|
|
145
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
146
|
+
} & Readonly<{
|
|
147
|
+
size: import('..').QFieldSize;
|
|
148
|
+
labelPosition: import('..').QLabelPosition;
|
|
149
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & {
|
|
150
|
+
fieldRef: HTMLDivElement | null;
|
|
151
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
152
|
+
$slots: {
|
|
153
|
+
'label.prepend'?(_: {}): any;
|
|
154
|
+
'label.append'?(_: {}): any;
|
|
155
|
+
control?(_: {}): any;
|
|
156
|
+
prepend?(_: {}): any;
|
|
157
|
+
default?(_: {}): any;
|
|
158
|
+
append?(_: {}): any;
|
|
159
|
+
extras?(_: {}): any;
|
|
160
|
+
};
|
|
161
|
+
}) | null;
|
|
162
|
+
}, any>;
|
|
19
163
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
164
|
export default _default;
|
|
21
165
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AA2CA;AAoFC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AA8B1C,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACT,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2DyrkB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EA3C90kB;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+BoskB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB70kB,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,15 +1,15 @@
|
|
|
1
1
|
import { provideDefaults as e } from "../../composables/defaults.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
3
|
import { QField as n } from "../QField/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createSlots as s, createVNode as c, defineComponent as l, guardReactiveProps as u, normalizeClass as d, normalizeProps as f, openBlock as p, renderSlot as m, unref as h, useTemplateRef as g, withCtx as _ } from "vue";
|
|
5
5
|
//#region src/components/QInputGroup/QInputGroup.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var v = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "q-input-group__prepend"
|
|
9
|
-
},
|
|
9
|
+
}, y = { key: 0 }, b = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "q-input-group__append"
|
|
12
|
-
},
|
|
12
|
+
}, x = { key: 0 }, S = /*@__PURE__*/ l({
|
|
13
13
|
__name: "QInputGroup",
|
|
14
14
|
props: {
|
|
15
15
|
id: {},
|
|
@@ -25,39 +25,48 @@ var g = {
|
|
|
25
25
|
prependIcon: {},
|
|
26
26
|
appendIcon: {}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
setup(l, { expose: S }) {
|
|
29
|
+
let C = l;
|
|
30
|
+
e({ QField: { size: "block" } });
|
|
31
|
+
let w = g("field");
|
|
32
|
+
return S({ fieldRef: r(() => w.value?.fieldRef) }), (e, r) => (p(), i(h(n), {
|
|
33
|
+
id: C.id,
|
|
34
|
+
ref: "field",
|
|
35
|
+
class: d(["q-input-group", C.class]),
|
|
36
|
+
for: C.for,
|
|
37
|
+
label: C.label,
|
|
38
|
+
"label-position": C.labelPosition,
|
|
39
|
+
required: C.required,
|
|
40
|
+
size: C.size,
|
|
41
|
+
readonly: C.readonly,
|
|
42
|
+
disabled: C.disabled,
|
|
43
|
+
invalid: C.invalid
|
|
44
|
+
}, s({
|
|
45
|
+
"label.prepend": _(() => [m(e.$slots, "label.prepend")]),
|
|
46
|
+
"label.append": _(() => [m(e.$slots, "label.append")]),
|
|
47
|
+
default: _(() => [
|
|
48
|
+
e.$slots.prepend || C.prependIcon ? (p(), o("div", v, [C.prependIcon ? (p(), o("span", y, [c(h(t), f(u(C.prependIcon)), null, 16)])) : a("v-if", !0), m(e.$slots, "prepend")])) : a("v-if", !0),
|
|
49
|
+
m(e.$slots, "default"),
|
|
50
|
+
e.$slots.append || C.appendIcon ? (p(), o("div", b, [C.appendIcon ? (p(), o("span", x, [c(h(t), f(u(C.appendIcon)), null, 16)])) : a("v-if", !0), m(e.$slots, "append")])) : a("v-if", !0)
|
|
45
51
|
]),
|
|
46
52
|
_: 2
|
|
47
53
|
}, [e.$slots.extras ? {
|
|
48
54
|
name: "extras",
|
|
49
|
-
fn:
|
|
55
|
+
fn: _(() => [m(e.$slots, "extras")]),
|
|
50
56
|
key: "0"
|
|
51
57
|
} : void 0]), 1032, [
|
|
52
58
|
"id",
|
|
53
59
|
"class",
|
|
60
|
+
"for",
|
|
54
61
|
"label",
|
|
55
62
|
"label-position",
|
|
56
63
|
"required",
|
|
57
64
|
"size",
|
|
65
|
+
"readonly",
|
|
66
|
+
"disabled",
|
|
58
67
|
"invalid"
|
|
59
68
|
]));
|
|
60
69
|
}
|
|
61
70
|
});
|
|
62
71
|
//#endregion
|
|
63
|
-
export {
|
|
72
|
+
export { S as default };
|
|
@@ -1,20 +1,97 @@
|
|
|
1
1
|
declare const QInputGroup: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
|
|
3
|
+
fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
5
|
size: import('..').QFieldSize;
|
|
4
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
6
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
7
|
+
field: ({
|
|
8
|
+
$: import('vue').ComponentInternalInstance;
|
|
9
|
+
$data: {};
|
|
10
|
+
$props: {
|
|
11
|
+
readonly id?: string | undefined;
|
|
12
|
+
readonly class?: string | unknown[] | undefined;
|
|
13
|
+
readonly label?: string | undefined;
|
|
14
|
+
readonly required?: boolean | undefined;
|
|
15
|
+
readonly for?: string | undefined;
|
|
16
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
17
|
+
readonly size?: import('..').QFieldSize | undefined;
|
|
18
|
+
readonly readonly?: boolean | undefined;
|
|
19
|
+
readonly disabled?: boolean | undefined;
|
|
20
|
+
readonly invalid?: boolean | undefined;
|
|
21
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
22
|
+
$attrs: import('vue').Attrs;
|
|
23
|
+
$refs: {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
} & {
|
|
26
|
+
field: HTMLDivElement;
|
|
27
|
+
};
|
|
28
|
+
$slots: Readonly<{
|
|
29
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
32
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
33
|
+
$host: Element | null;
|
|
34
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
35
|
+
$el: any;
|
|
36
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
|
|
37
|
+
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
38
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
39
|
+
size: import('..').QFieldSize;
|
|
40
|
+
labelPosition: import('..').QLabelPosition;
|
|
41
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
42
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
43
|
+
created?: (() => void) | (() => void)[];
|
|
44
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
45
|
+
mounted?: (() => void) | (() => void)[];
|
|
46
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
47
|
+
updated?: (() => void) | (() => void)[];
|
|
48
|
+
activated?: (() => void) | (() => void)[];
|
|
49
|
+
deactivated?: (() => void) | (() => void)[];
|
|
50
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
51
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
52
|
+
destroyed?: (() => void) | (() => void)[];
|
|
53
|
+
unmounted?: (() => void) | (() => void)[];
|
|
54
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
55
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
56
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
57
|
+
};
|
|
58
|
+
$forceUpdate: () => void;
|
|
59
|
+
$nextTick: typeof import('vue').nextTick;
|
|
60
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
61
|
+
} & Readonly<{
|
|
62
|
+
size: import('..').QFieldSize;
|
|
63
|
+
labelPosition: import('..').QLabelPosition;
|
|
64
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & {
|
|
65
|
+
fieldRef: HTMLDivElement | null;
|
|
66
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
67
|
+
$slots: {
|
|
68
|
+
'label.prepend'?(_: {}): any;
|
|
69
|
+
'label.append'?(_: {}): any;
|
|
70
|
+
control?(_: {}): any;
|
|
71
|
+
prepend?(_: {}): any;
|
|
72
|
+
default?(_: {}): any;
|
|
73
|
+
append?(_: {}): any;
|
|
74
|
+
extras?(_: {}): any;
|
|
75
|
+
};
|
|
76
|
+
}) | null;
|
|
77
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
5
78
|
P: {};
|
|
6
79
|
B: {};
|
|
7
80
|
D: {};
|
|
8
81
|
C: {};
|
|
9
82
|
M: {};
|
|
10
83
|
Defaults: {};
|
|
11
|
-
}, Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
|
|
84
|
+
}, Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
|
|
85
|
+
fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
|
|
86
|
+
}, {}, {}, {}, {
|
|
12
87
|
size: import('..').QFieldSize;
|
|
13
88
|
}>;
|
|
14
89
|
__isFragment?: never;
|
|
15
90
|
__isTeleport?: never;
|
|
16
91
|
__isSuspense?: never;
|
|
17
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
|
|
92
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
|
|
93
|
+
fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
|
|
94
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
18
95
|
size: import('..').QFieldSize;
|
|
19
96
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
20
97
|
$slots: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO650B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPn/0B,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAiDA;AA4cC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AA8O1C,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,IAAI,MAAM,CAIpC;AAED;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AA0DF,iBAAS,cAAc;WAgJT,OAAO,IAA6B;;yBAdpB,GAAG;;;;YACN,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAzFH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEpH,GAAE;;;;;;;;;;;;;;;;;;EAwGD;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAlIe,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEpH,GAAE;;;;;;;;;;;;;;;;OA2IA,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"}
|
|
@@ -143,7 +143,7 @@ var v = /*@__PURE__*/ s({
|
|
|
143
143
|
return r;
|
|
144
144
|
}
|
|
145
145
|
function K(e) {
|
|
146
|
-
return e.tabIndex === -
|
|
146
|
+
return e.tabIndex === -1;
|
|
147
147
|
}
|
|
148
148
|
function q(e) {
|
|
149
149
|
return e ? b.items?.filter((t) => t.group === e) : b.items;
|
|
@@ -166,6 +166,7 @@ var v = /*@__PURE__*/ s({
|
|
|
166
166
|
b.class
|
|
167
167
|
]),
|
|
168
168
|
role: "listbox",
|
|
169
|
+
"aria-multiselectable": b.multiple || void 0,
|
|
169
170
|
tabindex: b.disabled ? -1 : 0,
|
|
170
171
|
onFocus: M,
|
|
171
172
|
onMousedown: A,
|
|
@@ -222,6 +223,7 @@ var v = /*@__PURE__*/ s({
|
|
|
222
223
|
}, 40, [
|
|
223
224
|
"id",
|
|
224
225
|
"class",
|
|
226
|
+
"aria-multiselectable",
|
|
225
227
|
"tabindex"
|
|
226
228
|
]));
|
|
227
229
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAyDA;AAsIC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAgEnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;uFASnB,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"}
|
|
@@ -14,10 +14,7 @@ var w = [
|
|
|
14
14
|
], T = { class: "q-list-item__container" }, E = { class: "q-list-item__content" }, D = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "q-list-item__description"
|
|
17
|
-
}, O = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "q-list-item__check-container"
|
|
20
|
-
}, k = /*@__PURE__*/ d({
|
|
17
|
+
}, O = /*@__PURE__*/ d({
|
|
21
18
|
__name: "QListItem",
|
|
22
19
|
props: /*@__PURE__*/ p({
|
|
23
20
|
value: {},
|
|
@@ -39,47 +36,46 @@ var w = [
|
|
|
39
36
|
}),
|
|
40
37
|
emits: /*@__PURE__*/ p(["click"], ["update:modelValue"]),
|
|
41
38
|
setup(i, { emit: d }) {
|
|
42
|
-
let p = i,
|
|
43
|
-
if (!
|
|
44
|
-
function
|
|
45
|
-
p.disabled || (
|
|
39
|
+
let p = i, O = d, k = x(i, "modelValue"), A = n(), j = e(p.value);
|
|
40
|
+
if (!j) throw Error("QListItem: Failed to retrieve group item. Ensure the component is used within a QList context.");
|
|
41
|
+
function M() {
|
|
42
|
+
p.disabled || (O("click"), p.selectable && j?.toggle());
|
|
46
43
|
}
|
|
47
|
-
function
|
|
48
|
-
e.key === "Tab" && p.selectOnTab &&
|
|
44
|
+
function N(e) {
|
|
45
|
+
e.key === "Tab" && p.selectOnTab && M(), (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), M());
|
|
49
46
|
}
|
|
50
|
-
return S(
|
|
51
|
-
|
|
47
|
+
return S(j.isActive, (e) => {
|
|
48
|
+
k.value = e;
|
|
52
49
|
}, { immediate: !0 }), (e, n) => (_(), s("li", {
|
|
53
|
-
id: b(
|
|
50
|
+
id: b(A),
|
|
54
51
|
"data-key": p.value,
|
|
55
52
|
role: "option",
|
|
56
|
-
tabindex: p.disabled ? void 0 : -
|
|
53
|
+
tabindex: p.disabled ? void 0 : -1,
|
|
57
54
|
class: h(["q-list-item", {
|
|
58
|
-
"q-list-item--selected":
|
|
55
|
+
"q-list-item--selected": k.value,
|
|
59
56
|
"q-list-item--selectable": p.selectable,
|
|
60
57
|
"q-list-item--disabled": p.disabled,
|
|
61
58
|
"q-list-item--highlighted": p.highlighted
|
|
62
59
|
}]),
|
|
63
60
|
"aria-label": p.label,
|
|
64
|
-
"aria-selected": p.disabled ? void 0 :
|
|
65
|
-
onKeydown:
|
|
66
|
-
onClick: C(
|
|
61
|
+
"aria-selected": p.disabled ? void 0 : k.value,
|
|
62
|
+
onKeydown: N,
|
|
63
|
+
onClick: C(M, ["stop", "prevent"])
|
|
67
64
|
}, [
|
|
68
65
|
v(e.$slots, "prepend"),
|
|
69
66
|
c("div", T, [c("div", E, [v(e.$slots, "default", {}, () => [p.icon ? (_(), a(b(t), g(m({ key: 0 }, p.icon)), null, 16)) : o("v-if", !0), l(" " + y(p.label), 1)])]), p.description ? (_(), s("div", D, [u(b(t), g(f(p.icons.description)), null, 16), c("span", null, y(p.description), 1)])) : o("v-if", !0)]),
|
|
70
67
|
v(e.$slots, "append"),
|
|
71
|
-
p.selectable ? (_(), s("div",
|
|
72
|
-
|
|
68
|
+
p.selectable ? (_(), s("div", {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: h(["q-list-item__check-container", { "q-list-item__check-container--top": p.description }])
|
|
71
|
+
}, [p.checkboxless && k.value ? (_(), a(b(t), m({ key: 0 }, p.icons.check, { "aria-hidden": "true" }), null, 16)) : p.checkboxless ? o("v-if", !0) : (_(), a(b(r), {
|
|
72
|
+
key: 1,
|
|
73
73
|
disabled: p.disabled,
|
|
74
|
-
"model-value":
|
|
75
|
-
"onUpdate:modelValue":
|
|
76
|
-
}, null, 8, [
|
|
77
|
-
"borderless",
|
|
78
|
-
"disabled",
|
|
79
|
-
"model-value"
|
|
80
|
-
])])) : o("v-if", !0)
|
|
74
|
+
"model-value": k.value,
|
|
75
|
+
"onUpdate:modelValue": M
|
|
76
|
+
}, null, 8, ["disabled", "model-value"]))], 2)) : o("v-if", !0)
|
|
81
77
|
], 42, w));
|
|
82
78
|
}
|
|
83
79
|
});
|
|
84
80
|
//#endregion
|
|
85
|
-
export {
|
|
81
|
+
export { O as default };
|
|
@@ -2,6 +2,8 @@ import { QBaseComponentProps } from '../../types/component';
|
|
|
2
2
|
import { Appearance, Placement, Trigger } from '../../composables/overlay';
|
|
3
3
|
import { Selector } from '../../utils/getElement';
|
|
4
4
|
export type { Appearance as QOverlayAppearance, Trigger as QOverlayTrigger, Axis as QOverlayAxis, Side as QOverlaySide, Alignment as QOverlayAlignment, Placement as QOverlayPlacement } from '../../composables/overlay';
|
|
5
|
+
/** A DOM selector or element used to position an overlay. */
|
|
6
|
+
export type QOverlayAnchor = Selector | null;
|
|
5
7
|
export type QOverlayProps = QBaseComponentProps & {
|
|
6
8
|
/**
|
|
7
9
|
* The value of the selected item.
|
|
@@ -14,7 +16,7 @@ export type QOverlayProps = QBaseComponentProps & {
|
|
|
14
16
|
*
|
|
15
17
|
* @category Identification
|
|
16
18
|
*/
|
|
17
|
-
anchor?:
|
|
19
|
+
anchor?: QOverlayAnchor;
|
|
18
20
|
/**
|
|
19
21
|
* The appearance of the overlay.
|
|
20
22
|
* 'regular' uses body text color for background and body background color for text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,YAAY,EACX,UAAU,IAAI,kBAAkB,EAChC,OAAO,IAAI,eAAe,EAC1B,IAAI,IAAI,YAAY,EACpB,IAAI,IAAI,YAAY,EACpB,SAAS,IAAI,iBAAiB,EAC9B,SAAS,IAAI,iBAAiB,EAC9B,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,YAAY,EACX,UAAU,IAAI,kBAAkB,EAChC,OAAO,IAAI,eAAe,EAC1B,IAAI,IAAI,YAAY,EACpB,IAAI,IAAI,YAAY,EACpB,SAAS,IAAI,iBAAiB,EAC9B,SAAS,IAAI,iBAAiB,EAC9B,MAAM,2BAA2B,CAAA;AAElC,6DAA6D;AAC7D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,IAAI,CAAA;AAE5C,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAElC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAEzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;IAE1C;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAEnC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA"}
|