@quidgest/ui 0.15.5 → 0.15.8
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 +1 -0
- package/dist/ui.css +91 -1
- package/dist/ui.esm.js +4453 -4433
- package/dist/ui.js +18 -18
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +755 -754
- package/dist/ui.scss +32 -2
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +34 -32
- package/esm/components/QButton/types.d.ts +1 -1
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QButtonGroup/types.d.ts.map +1 -1
- package/esm/components/QButtonToggle/types.d.ts.map +1 -1
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +28 -28
- package/esm/components/QCheckbox/index.d.ts +18 -1
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/index.js +6 -4
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +53 -25
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +37 -37
- package/esm/components/QCombobox/index.d.ts +24 -10
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +4 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +15 -10
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +66 -34
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +36 -35
- package/esm/components/QDropdownMenu/index.d.ts +7 -4
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +4 -21
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +1 -1
- package/esm/components/QFileUpload/types.d.ts.map +1 -1
- package/esm/components/QIcon/types.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +1 -1
- package/esm/components/QInputGroup/types.d.ts.map +1 -1
- package/esm/components/QLabel/types.d.ts.map +1 -1
- package/esm/components/QLineLoader/types.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +39 -18
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +98 -94
- package/esm/components/QList/QListItem.d.ts +12 -6
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +52 -50
- package/esm/components/QList/index.d.ts +48 -19
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +0 -4
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/types.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +61 -33
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +14 -14
- package/esm/components/QSelect/index.d.ts +24 -10
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/types.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/types.d.ts.map +1 -1
- package/esm/components/QTextArea/types.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +10 -10
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/esm/components/QThemeProvider/types.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/types.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +8 -8
- package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -1
- package/esm/components/index.js +63 -62
- package/esm/composables/defaults.js +4 -4
- package/esm/composables/theme.d.ts.map +1 -1
- package/esm/composables/theme.js +5 -5
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +27 -25
- package/esm/composables/useColor/types.d.ts +9 -1
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/framework.d.ts +1 -1
- package/esm/framework.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.d.ts.map +1 -1
- package/esm/utils/color.d.ts +6 -0
- package/esm/utils/color.d.ts.map +1 -1
- package/esm/utils/color.js +16 -12
- package/esm/utils/theme.d.ts +1 -1
- package/esm/utils/theme.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -132,6 +132,7 @@ declare const QSelect: {
|
|
|
132
132
|
readonly disabled?: boolean | undefined;
|
|
133
133
|
readonly selectable?: boolean | undefined;
|
|
134
134
|
readonly "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
135
|
+
readonly onClick?: ((key: import('../../types/primitive').Primitive) => any) | undefined;
|
|
135
136
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
136
137
|
$attrs: {
|
|
137
138
|
[x: string]: unknown;
|
|
@@ -144,16 +145,17 @@ declare const QSelect: {
|
|
|
144
145
|
$: import('vue').ComponentInternalInstance;
|
|
145
146
|
$data: {};
|
|
146
147
|
$props: {
|
|
148
|
+
readonly modelValue?: boolean | undefined;
|
|
147
149
|
readonly value: import('../../types/primitive').Primitive;
|
|
148
150
|
readonly label: string;
|
|
149
151
|
readonly icon?: import('..').Icon | undefined;
|
|
150
152
|
readonly selectable?: boolean | undefined;
|
|
151
|
-
readonly selected?: boolean | undefined;
|
|
152
153
|
readonly highlighted?: boolean | undefined;
|
|
153
154
|
readonly disabled?: boolean | undefined;
|
|
154
155
|
readonly description?: string | undefined;
|
|
155
156
|
readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
|
|
156
|
-
readonly
|
|
157
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
158
|
+
readonly onClick?: (() => any) | undefined;
|
|
157
159
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
158
160
|
$attrs: {
|
|
159
161
|
[x: string]: unknown;
|
|
@@ -167,12 +169,17 @@ declare const QSelect: {
|
|
|
167
169
|
$root: import('vue').ComponentPublicInstance | null;
|
|
168
170
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
169
171
|
$host: Element | null;
|
|
170
|
-
$emit: (event: "
|
|
172
|
+
$emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
|
|
171
173
|
$el: HTMLLIElement;
|
|
172
|
-
$options: import('vue').ComponentOptionsBase<Readonly<
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
174
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
175
|
+
modelValue?: boolean;
|
|
176
|
+
} & import('..').QListItemProps> & Readonly<{
|
|
177
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
178
|
+
onClick?: (() => any) | undefined;
|
|
179
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
180
|
+
"update:modelValue": (value: boolean) => any;
|
|
181
|
+
} & {
|
|
182
|
+
click: () => any;
|
|
176
183
|
}, string, {
|
|
177
184
|
icons: typeof import('../QList/types').DEFAULT_ICONS;
|
|
178
185
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -197,8 +204,11 @@ declare const QSelect: {
|
|
|
197
204
|
$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;
|
|
198
205
|
} & Readonly<{
|
|
199
206
|
icons: typeof import('../QList/types').DEFAULT_ICONS;
|
|
200
|
-
}> & Omit<Readonly<
|
|
201
|
-
|
|
207
|
+
}> & Omit<Readonly<{
|
|
208
|
+
modelValue?: boolean;
|
|
209
|
+
} & import('..').QListItemProps> & Readonly<{
|
|
210
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
211
|
+
onClick?: (() => any) | undefined;
|
|
202
212
|
}>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
203
213
|
$slots: {
|
|
204
214
|
prepend?(_: {}): any;
|
|
@@ -213,7 +223,7 @@ declare const QSelect: {
|
|
|
213
223
|
$root: import('vue').ComponentPublicInstance | null;
|
|
214
224
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
215
225
|
$host: Element | null;
|
|
216
|
-
$emit: (event: "update:modelValue", value: import('../../types/primitive').Primitive) => void;
|
|
226
|
+
$emit: ((event: "update:modelValue", value: import('../../types/primitive').Primitive) => void) & ((event: "click", key: import('../../types/primitive').Primitive) => void);
|
|
217
227
|
$el: any;
|
|
218
228
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
219
229
|
modelValue?: import('../../types/primitive').Primitive;
|
|
@@ -227,6 +237,7 @@ declare const QSelect: {
|
|
|
227
237
|
selectable?: boolean;
|
|
228
238
|
}> & Readonly<{
|
|
229
239
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
240
|
+
onClick?: ((key: import('../../types/primitive').Primitive) => any) | undefined;
|
|
230
241
|
}>, {
|
|
231
242
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
232
243
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -234,6 +245,8 @@ declare const QSelect: {
|
|
|
234
245
|
getLastFocusableItemIndex: () => number;
|
|
235
246
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
236
247
|
"update:modelValue": (value: import('../../types/primitive').Primitive) => any;
|
|
248
|
+
} & {
|
|
249
|
+
click: (key: import('../../types/primitive').Primitive) => any;
|
|
237
250
|
}, string, {
|
|
238
251
|
groups: import('../QList/types').Group[];
|
|
239
252
|
itemValue: string;
|
|
@@ -274,6 +287,7 @@ declare const QSelect: {
|
|
|
274
287
|
selectable?: boolean;
|
|
275
288
|
}> & Readonly<{
|
|
276
289
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
290
|
+
onClick?: ((key: import('../../types/primitive').Primitive) => any) | undefined;
|
|
277
291
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
278
292
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
279
293
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -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"}
|
|
@@ -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,
|
|
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,mBAAmB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;QAGlD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAClB,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,mBAAmB,GAAG;QAC/B,EAAE,EAAE,MAAM,CAAA;KACV,CAAC,EAAE,CAAA;IAEJ;;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;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IAEtB;;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSkeletonLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSkeletonLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IACxD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSpinnerLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSpinnerLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAA;IAEpD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -22,7 +22,7 @@ declare function __VLS_template(): {
|
|
|
22
22
|
readonly label?: string | undefined;
|
|
23
23
|
readonly for?: string | undefined;
|
|
24
24
|
readonly required?: boolean | undefined;
|
|
25
|
-
readonly size?: import('
|
|
25
|
+
readonly size?: import('..').QFieldSize | undefined;
|
|
26
26
|
readonly readonly?: boolean | undefined;
|
|
27
27
|
readonly disabled?: boolean | undefined;
|
|
28
28
|
readonly invalid?: boolean | undefined;
|
|
@@ -43,10 +43,10 @@ declare function __VLS_template(): {
|
|
|
43
43
|
$host: Element | null;
|
|
44
44
|
$emit: (event: string, ...args: any[]) => void;
|
|
45
45
|
$el: any;
|
|
46
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
46
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
|
|
47
47
|
fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
48
48
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
49
|
-
size: import('
|
|
49
|
+
size: import('..').QFieldSize;
|
|
50
50
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
51
51
|
beforeCreate?: (() => void) | (() => void)[];
|
|
52
52
|
created?: (() => void) | (() => void)[];
|
|
@@ -68,8 +68,8 @@ declare function __VLS_template(): {
|
|
|
68
68
|
$nextTick: typeof import('vue').nextTick;
|
|
69
69
|
$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;
|
|
70
70
|
} & Readonly<{
|
|
71
|
-
size: import('
|
|
72
|
-
}> & Omit<Readonly<import('
|
|
71
|
+
size: import('..').QFieldSize;
|
|
72
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
|
|
73
73
|
fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
74
74
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
75
75
|
$slots: {
|
|
@@ -109,7 +109,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
109
109
|
readonly label?: string | undefined;
|
|
110
110
|
readonly for?: string | undefined;
|
|
111
111
|
readonly required?: boolean | undefined;
|
|
112
|
-
readonly size?: import('
|
|
112
|
+
readonly size?: import('..').QFieldSize | undefined;
|
|
113
113
|
readonly readonly?: boolean | undefined;
|
|
114
114
|
readonly disabled?: boolean | undefined;
|
|
115
115
|
readonly invalid?: boolean | undefined;
|
|
@@ -130,10 +130,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
130
130
|
$host: Element | null;
|
|
131
131
|
$emit: (event: string, ...args: any[]) => void;
|
|
132
132
|
$el: any;
|
|
133
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
133
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
|
|
134
134
|
fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
135
135
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
136
|
-
size: import('
|
|
136
|
+
size: import('..').QFieldSize;
|
|
137
137
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
138
138
|
beforeCreate?: (() => void) | (() => void)[];
|
|
139
139
|
created?: (() => void) | (() => void)[];
|
|
@@ -155,8 +155,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
155
155
|
$nextTick: typeof import('vue').nextTick;
|
|
156
156
|
$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;
|
|
157
157
|
} & Readonly<{
|
|
158
|
-
size: import('
|
|
159
|
-
}> & Omit<Readonly<import('
|
|
158
|
+
size: import('..').QFieldSize;
|
|
159
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
|
|
160
160
|
fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
161
161
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
162
162
|
$slots: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAgIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoEpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAgIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoEpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqEytc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnD92c;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Bouc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB72c,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO2ozB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPluzB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA;AAGrB,YAAY,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, createBlock as i, openBlock as n, unref as o, normalizeClass as m, withCtx as u, createVNode as p, normalizeProps as d, guardReactiveProps as f } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as _, DEFAULT_ICONS as x } from "./types.js";
|
|
3
3
|
import { QButton as C } from "../../QButton/index.js";
|
|
4
4
|
import { QIcon as b } from "../../QIcon/index.js";
|
|
5
|
-
const
|
|
5
|
+
const Q = /* @__PURE__ */ s({
|
|
6
6
|
__name: "QClearButton",
|
|
7
7
|
props: {
|
|
8
8
|
id: {},
|
|
@@ -11,16 +11,16 @@ const h = /* @__PURE__ */ i({
|
|
|
11
11
|
texts: { default: () => _ }
|
|
12
12
|
},
|
|
13
13
|
emits: ["click"],
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
14
|
+
setup(a, { emit: r }) {
|
|
15
|
+
const e = a, l = r;
|
|
16
16
|
function c(t) {
|
|
17
17
|
l("click", t);
|
|
18
18
|
}
|
|
19
|
-
return (t, k) => (
|
|
19
|
+
return (t, k) => (n(), i(o(C), {
|
|
20
20
|
id: e.id,
|
|
21
21
|
class: m(["q-clear-btn", e.class]),
|
|
22
22
|
"aria-label": e.texts.clearValue,
|
|
23
|
-
variant: "
|
|
23
|
+
variant: "ghost",
|
|
24
24
|
color: "neutral",
|
|
25
25
|
borderless: "",
|
|
26
26
|
tabindex: "-1",
|
|
@@ -28,7 +28,7 @@ const h = /* @__PURE__ */ i({
|
|
|
28
28
|
}, {
|
|
29
29
|
default: u(() => [
|
|
30
30
|
p(
|
|
31
|
-
|
|
31
|
+
o(b),
|
|
32
32
|
d(f(e.icons.clear)),
|
|
33
33
|
null,
|
|
34
34
|
16
|
|
@@ -41,5 +41,5 @@ const h = /* @__PURE__ */ i({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
Q as default
|
|
45
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG;IACrD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -3,81 +3,82 @@ import { QBadge as p } from "./QBadge/index.js";
|
|
|
3
3
|
import { QBadgeIndicator as m } from "./QBadgeIndicator/index.js";
|
|
4
4
|
import { QButton as f } from "./QButton/index.js";
|
|
5
5
|
import { QButtonGroup as a } from "./QButtonGroup/index.js";
|
|
6
|
-
import { QButtonToggle as
|
|
6
|
+
import { QButtonToggle as n } from "./QButtonToggle/index.js";
|
|
7
7
|
import { QCard as s } from "./QCard/index.js";
|
|
8
|
-
import { QCheckbox as c } from "./QCheckbox/index.js";
|
|
9
|
-
import { QCollapsible as
|
|
8
|
+
import { QCheckbox as c, QCheckboxLabel as u } from "./QCheckbox/index.js";
|
|
9
|
+
import { QCollapsible as I } from "./QCollapsible/index.js";
|
|
10
10
|
import { QColorPicker as g } from "./QColorPicker/index.js";
|
|
11
|
-
import { QCombobox as
|
|
12
|
-
import { QDateTimePicker as
|
|
13
|
-
import { QDialog as
|
|
14
|
-
import { QDismissibleLayer as
|
|
15
|
-
import { QDropdownMenu as
|
|
11
|
+
import { QCombobox as y } from "./QCombobox/index.js";
|
|
12
|
+
import { QDateTimePicker as C } from "./QDateTimePicker/index.js";
|
|
13
|
+
import { QDialog as k } from "./QDialog/index.js";
|
|
14
|
+
import { QDismissibleLayer as v } from "./QDismissibleLayer/index.js";
|
|
15
|
+
import { QDropdownMenu as S } from "./QDropdownMenu/index.js";
|
|
16
16
|
import { QField as w } from "./QField/index.js";
|
|
17
|
-
import { QFileUpload as
|
|
18
|
-
import { QFocusTrap as
|
|
19
|
-
import { QIcon as
|
|
20
|
-
import { QInputGroup as
|
|
21
|
-
import { QLabel as
|
|
22
|
-
import { QLineLoader as
|
|
23
|
-
import { QList as
|
|
24
|
-
import { QMeter as
|
|
25
|
-
import { QOverlay as
|
|
26
|
-
import { QPasswordField as
|
|
27
|
-
import { QPopover as
|
|
28
|
-
import { QPropertyList as
|
|
29
|
-
import { QRadioButton as
|
|
30
|
-
import { QSelect as
|
|
31
|
-
import { QSkeletonLoader as
|
|
17
|
+
import { QFileUpload as A } from "./QFileUpload/index.js";
|
|
18
|
+
import { QFocusTrap as O } from "./QFocusTrap/index.js";
|
|
19
|
+
import { QIcon as j, QIconFont as q, QIconImg as z, QIconSvg as E } from "./QIcon/index.js";
|
|
20
|
+
import { QInputGroup as J } from "./QInputGroup/index.js";
|
|
21
|
+
import { QLabel as N } from "./QLabel/index.js";
|
|
22
|
+
import { QLineLoader as W } from "./QLineLoader/index.js";
|
|
23
|
+
import { QList as Y, QListItem as Z, QListItemGroup as _ } from "./QList/index.js";
|
|
24
|
+
import { QMeter as oo } from "./QMeter/index.js";
|
|
25
|
+
import { QOverlay as eo } from "./QOverlay/index.js";
|
|
26
|
+
import { QPasswordField as po } from "./QPasswordField/index.js";
|
|
27
|
+
import { QPopover as mo } from "./QPopover/index.js";
|
|
28
|
+
import { QPropertyList as fo, QPropertyListGroup as io, QPropertyListPanel as ao, QPropertyListRow as lo } from "./QPropertyList/index.js";
|
|
29
|
+
import { QRadioButton as so, QRadioGroup as Lo } from "./QRadioGroup/index.js";
|
|
30
|
+
import { QSelect as uo } from "./QSelect/index.js";
|
|
31
|
+
import { QSkeletonLoader as Io } from "./QSkeletonLoader/index.js";
|
|
32
32
|
import { QSpinnerLoader as go } from "./QSpinnerLoader/index.js";
|
|
33
|
-
import { QTextArea as
|
|
34
|
-
import { QTextField as
|
|
35
|
-
import { QThemeProvider as
|
|
36
|
-
import { QTooltip as
|
|
33
|
+
import { QTextArea as yo } from "./QTextArea/index.js";
|
|
34
|
+
import { QTextField as Co } from "./QTextField/index.js";
|
|
35
|
+
import { QThemeProvider as ko } from "./QThemeProvider/index.js";
|
|
36
|
+
import { QTooltip as vo } from "./QTooltip/index.js";
|
|
37
37
|
export {
|
|
38
38
|
e as QAccordion,
|
|
39
39
|
p as QBadge,
|
|
40
40
|
m as QBadgeIndicator,
|
|
41
41
|
f as QButton,
|
|
42
42
|
a as QButtonGroup,
|
|
43
|
-
|
|
43
|
+
n as QButtonToggle,
|
|
44
44
|
s as QCard,
|
|
45
45
|
c as QCheckbox,
|
|
46
|
-
|
|
46
|
+
u as QCheckboxLabel,
|
|
47
|
+
I as QCollapsible,
|
|
47
48
|
g as QColorPicker,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
y as QCombobox,
|
|
50
|
+
C as QDateTimePicker,
|
|
51
|
+
k as QDialog,
|
|
52
|
+
v as QDismissibleLayer,
|
|
53
|
+
S as QDropdownMenu,
|
|
53
54
|
w as QField,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
55
|
+
A as QFileUpload,
|
|
56
|
+
O as QFocusTrap,
|
|
57
|
+
j as QIcon,
|
|
58
|
+
q as QIconFont,
|
|
59
|
+
z as QIconImg,
|
|
60
|
+
E as QIconSvg,
|
|
61
|
+
J as QInputGroup,
|
|
62
|
+
N as QLabel,
|
|
63
|
+
W as QLineLoader,
|
|
64
|
+
Y as QList,
|
|
65
|
+
Z as QListItem,
|
|
66
|
+
_ as QListItemGroup,
|
|
67
|
+
oo as QMeter,
|
|
68
|
+
eo as QOverlay,
|
|
69
|
+
po as QPasswordField,
|
|
70
|
+
mo as QPopover,
|
|
71
|
+
fo as QPropertyList,
|
|
72
|
+
io as QPropertyListGroup,
|
|
73
|
+
ao as QPropertyListPanel,
|
|
74
|
+
lo as QPropertyListRow,
|
|
75
|
+
so as QRadioButton,
|
|
76
|
+
Lo as QRadioGroup,
|
|
77
|
+
uo as QSelect,
|
|
78
|
+
Io as QSkeletonLoader,
|
|
78
79
|
go as QSpinnerLoader,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
yo as QTextArea,
|
|
81
|
+
Co as QTextField,
|
|
82
|
+
ko as QThemeProvider,
|
|
83
|
+
vo as QTooltip
|
|
83
84
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getCurrentInstance as d, computed as f, ref as m, provide as p, inject as v } from "vue";
|
|
1
2
|
import { isEmpty as s } from "../utils/isEmpty.js";
|
|
2
|
-
import { merge as
|
|
3
|
-
import { getCurrentInstance as d, computed as a, ref as m, provide as p, inject as v } from "vue";
|
|
3
|
+
import { merge as a } from "../utils/merge.js";
|
|
4
4
|
const i = "q-defaults";
|
|
5
5
|
function E() {
|
|
6
6
|
var r, u;
|
|
@@ -10,11 +10,11 @@ function E() {
|
|
|
10
10
|
const t = e.type.name ?? e.type.__name;
|
|
11
11
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
12
12
|
const n = l(), o = (r = n.value) == null ? void 0 : r.Global, c = (u = n.value) == null ? void 0 : u[t];
|
|
13
|
-
return
|
|
13
|
+
return f(() => a(o, c));
|
|
14
14
|
}
|
|
15
15
|
function I(e) {
|
|
16
16
|
if (s(e)) return;
|
|
17
|
-
const t = l(), n = m(e), o =
|
|
17
|
+
const t = l(), n = m(e), o = f(() => s(n.value) ? t.value : a(t.value, n.value));
|
|
18
18
|
p(i, o);
|
|
19
19
|
}
|
|
20
20
|
function l() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAMjD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;IAEhD,uBAAuB;IACvB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACnC,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
|
package/esm/composables/theme.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { inject as r, provide as c } from "vue";
|
|
2
|
+
import { createThemeInstance as h } from "../utils/theme.js";
|
|
3
3
|
const n = Symbol.for("q-theme");
|
|
4
4
|
function s() {
|
|
5
|
-
const e =
|
|
5
|
+
const e = r(n);
|
|
6
6
|
if (!e)
|
|
7
7
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
10
10
|
function u(e) {
|
|
11
|
-
const o = s(), m = o.themes, t =
|
|
12
|
-
return
|
|
11
|
+
const o = s(), m = o.themes, t = h(e, m);
|
|
12
|
+
return c(n, t), t;
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
15
|
n as ThemeSymbol,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,SAAS,CAAA;AAczD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,cAAc,CA8C5E;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEjD"}
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { parseColor as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
function
|
|
5
|
-
const t =
|
|
6
|
-
() => t.value ? !
|
|
7
|
-
),
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
10
|
-
let n =
|
|
11
|
-
const
|
|
1
|
+
import { computed as s, unref as v } from "vue";
|
|
2
|
+
import { parseColor as g, rgbToHsl as d, darken as b, colorToHex as p, getContrastingColor as y, rgbToVariableString as c } from "../../utils/color.js";
|
|
3
|
+
import { useTheme as T } from "../theme.js";
|
|
4
|
+
function k(o) {
|
|
5
|
+
const t = s(() => v(o)), i = s(
|
|
6
|
+
() => t.value ? !H(t.value) : !1
|
|
7
|
+
), C = s(() => {
|
|
8
|
+
const e = t.value;
|
|
9
|
+
if (!e) return;
|
|
10
|
+
let n = e;
|
|
11
|
+
const f = T();
|
|
12
12
|
if (i.value) {
|
|
13
|
-
const
|
|
14
|
-
n =
|
|
13
|
+
const l = e;
|
|
14
|
+
n = f.current.value.scheme[l] ?? e;
|
|
15
15
|
}
|
|
16
|
-
let
|
|
16
|
+
let r;
|
|
17
17
|
try {
|
|
18
|
-
if (
|
|
19
|
-
} catch (
|
|
20
|
-
console.error("Failed to parse color:",
|
|
18
|
+
if (r = g(n), !r) return;
|
|
19
|
+
} catch (l) {
|
|
20
|
+
console.error("Failed to parse color:", l);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const h = d(r), a = y(h.l), u = b(r, 25), m = p(u);
|
|
24
24
|
return {
|
|
25
25
|
mainColor: n,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
mainColorRgb: c(r),
|
|
27
|
+
onMainColor: a,
|
|
28
|
+
hoverColor: m,
|
|
29
|
+
hoverColorRgb: c(u),
|
|
30
|
+
onHoverColor: a
|
|
29
31
|
};
|
|
30
32
|
});
|
|
31
|
-
return { isUtilityColor: i, style:
|
|
33
|
+
return { isUtilityColor: i, style: C };
|
|
32
34
|
}
|
|
33
|
-
function
|
|
35
|
+
function H(o) {
|
|
34
36
|
return o.startsWith("#") || o.startsWith("rgb") || o.startsWith("hsl");
|
|
35
37
|
}
|
|
36
38
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
H as isCssColor,
|
|
40
|
+
k as useColor
|
|
39
41
|
};
|
|
@@ -4,9 +4,13 @@ import { ComputedRef } from 'vue';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ColorStyle {
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The main color to be used.
|
|
8
8
|
*/
|
|
9
9
|
mainColor: string;
|
|
10
|
+
/**
|
|
11
|
+
* The RGB representation of the main color.
|
|
12
|
+
*/
|
|
13
|
+
mainColorRgb: string;
|
|
10
14
|
/**
|
|
11
15
|
* The color to be used for content on top of the main color.
|
|
12
16
|
*/
|
|
@@ -15,6 +19,10 @@ export interface ColorStyle {
|
|
|
15
19
|
* Optional color to be used when the component is in hover state.
|
|
16
20
|
*/
|
|
17
21
|
hoverColor?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The RGB representation of the hover color.
|
|
24
|
+
*/
|
|
25
|
+
hoverColorRgb?: string;
|
|
18
26
|
/**
|
|
19
27
|
* Optional color to be used for content when the component is in hover state.
|
|
20
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;CAC1C"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;CAC1C"}
|
package/esm/framework.d.ts
CHANGED
package/esm/framework.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAA;AAMrE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAiBpE"}
|