@quidgest/ui 0.21.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/json/api.json +398 -86
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +2130 -1166
- package/dist/ui.esm.js +809 -786
- package/dist/ui.js +735 -712
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +735 -712
- package/dist/ui.scss +1137 -844
- package/esm/components/QBadge/QBadge.d.ts +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +14 -7
- package/esm/components/QBadge/index.d.ts +3 -3
- package/esm/components/QBadge/types.d.ts +11 -4
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +0 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +10 -4
- package/esm/components/QButton/index.d.ts +0 -3
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +11 -4
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +2 -0
- package/esm/components/QButtonGroup/types.d.ts +9 -1
- package/esm/components/QButtonGroup/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +2 -2
- package/esm/components/QCheckbox/index.d.ts +3 -6
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +4 -3
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +1 -1
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +6 -8
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -1
- package/esm/components/QCombobox/index.d.ts +3 -4
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +18 -24
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/index.d.ts +9 -12
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +6 -1
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +1 -0
- package/esm/components/QDialog/index.d.ts +3 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +14 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +1 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -4
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +1 -0
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +0 -1
- package/esm/components/QOverflow/QOverflow.d.ts +21 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +109 -96
- package/esm/components/QOverflow/index.d.ts +12 -3
- package/esm/components/QOverflow/index.d.ts.map +1 -1
- package/esm/components/QOverflow/types.d.ts +11 -2
- package/esm/components/QOverflow/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +0 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +90 -90
- 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 +5 -3
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +20 -16
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/index.d.ts +10 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +1 -1
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.d.ts +21 -0
- package/esm/components/QProgress/QProgress.d.ts.map +1 -0
- package/esm/components/QProgress/QProgress.vue.js +108 -0
- package/esm/components/QProgress/QProgress2.vue.js +5 -0
- package/esm/components/QProgress/index.d.ts +45 -0
- package/esm/components/QProgress/index.d.ts.map +1 -0
- package/esm/components/QProgress/index.js +6 -0
- package/esm/components/QProgress/types.d.ts +78 -0
- package/esm/components/QProgress/types.d.ts.map +1 -0
- package/esm/components/QRadioGroup/QRadioButton.d.ts +0 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +55 -46
- package/esm/components/QRadioGroup/index.d.ts +9 -36
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/types.d.ts +15 -24
- package/esm/components/QRadioGroup/types.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/constants.d.ts +1 -1
- package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/constants.js +1 -1
- package/esm/components/QSelect/QSelect.d.ts +20 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +9 -1
- package/esm/components/QSelect/index.d.ts +10 -8
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +0 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +2 -2
- package/esm/components/QSidebar/QSidebarAnchor.d.ts +2 -1
- package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +12 -6
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
- package/esm/components/QSidebar/index.d.ts +6 -6
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +3 -1
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.d.ts +3 -2
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +34 -26
- package/esm/components/QSwitch/index.d.ts +5 -4
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +4 -2
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts +6 -8
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.d.ts +177 -2
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +127 -106
- package/esm/components/QTabs/context.d.ts +2 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +91 -5
- package/esm/components/QTabs/index.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +2 -1
- package/esm/components/QToggle/index.d.ts +6 -3
- package/esm/components/QToggle/index.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +1 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -0
- package/esm/components/QToggleGroup/index.d.ts +3 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +1 -1
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +34 -32
- package/esm/composables/useSafeTriangle/index.d.ts +1 -1
- package/esm/composables/useSafeTriangle/index.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.js +11 -11
- package/esm/types/component.d.ts +7 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/utils/color/theme-colors.d.ts +5 -5
- package/esm/utils/density.d.ts +12 -0
- package/esm/utils/density.d.ts.map +1 -0
- package/esm/utils/density.js +23 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +6 -2
- package/esm/{composables → utils}/overlay.d.ts +12 -0
- package/esm/utils/overlay.d.ts.map +1 -0
- package/esm/{composables → utils}/overlay.js +10 -2
- package/esm/utils/safeTriangle.d.ts +1 -1
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm/composables/overlay.d.ts.map +0 -1
|
@@ -303,9 +303,10 @@ declare const QPhoneField: {
|
|
|
303
303
|
readonly variant?: import('..').QBadgeVariant | undefined;
|
|
304
304
|
readonly color?: string | undefined;
|
|
305
305
|
readonly pill?: boolean | undefined;
|
|
306
|
-
readonly size?: import('
|
|
306
|
+
readonly size?: import('../../types/component').QComponentSize | undefined;
|
|
307
307
|
readonly disabled?: boolean | undefined;
|
|
308
308
|
readonly removable?: boolean | undefined;
|
|
309
|
+
readonly focusable?: boolean | undefined;
|
|
309
310
|
readonly icons?: typeof import('../QBadge/constants').DEFAULT_ICONS | undefined;
|
|
310
311
|
readonly texts?: typeof import('../QBadge/constants').DEFAULT_TEXTS | undefined;
|
|
311
312
|
readonly "onClick:remove"?: (() => any) | undefined;
|
|
@@ -327,11 +328,11 @@ declare const QPhoneField: {
|
|
|
327
328
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
328
329
|
"click:remove": () => any;
|
|
329
330
|
}, string, {
|
|
330
|
-
size: import('..').QBadgeSize;
|
|
331
331
|
variant: import('..').QBadgeVariant;
|
|
332
332
|
color: string;
|
|
333
333
|
icons: typeof import('../QBadge/constants').DEFAULT_ICONS;
|
|
334
334
|
texts: typeof import('../QBadge/constants').DEFAULT_TEXTS;
|
|
335
|
+
focusable: boolean;
|
|
335
336
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
336
337
|
beforeCreate?: (() => void) | (() => void)[];
|
|
337
338
|
created?: (() => void) | (() => void)[];
|
|
@@ -353,14 +354,14 @@ declare const QPhoneField: {
|
|
|
353
354
|
$nextTick: typeof import('vue').nextTick;
|
|
354
355
|
$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;
|
|
355
356
|
} & Readonly<{
|
|
356
|
-
size: import('..').QBadgeSize;
|
|
357
357
|
variant: import('..').QBadgeVariant;
|
|
358
358
|
color: string;
|
|
359
359
|
icons: typeof import('../QBadge/constants').DEFAULT_ICONS;
|
|
360
360
|
texts: typeof import('../QBadge/constants').DEFAULT_TEXTS;
|
|
361
|
+
focusable: boolean;
|
|
361
362
|
}> & Omit<Readonly<import('..').QBadgeProps> & Readonly<{
|
|
362
363
|
"onClick:remove"?: (() => any) | undefined;
|
|
363
|
-
}>, "
|
|
364
|
+
}>, "variant" | "color" | "icons" | "texts" | "focusable"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
364
365
|
$slots: {
|
|
365
366
|
default?(_: {}): any;
|
|
366
367
|
default?(_: {}): any;
|
|
@@ -375,9 +376,10 @@ declare const QPhoneField: {
|
|
|
375
376
|
readonly variant?: import('..').QBadgeVariant | undefined;
|
|
376
377
|
readonly color?: string | undefined;
|
|
377
378
|
readonly pill?: boolean | undefined;
|
|
378
|
-
readonly size?: import('
|
|
379
|
+
readonly size?: import('../../types/component').QComponentSize | undefined;
|
|
379
380
|
readonly disabled?: boolean | undefined;
|
|
380
381
|
readonly removable?: boolean | undefined;
|
|
382
|
+
readonly focusable?: boolean | undefined;
|
|
381
383
|
readonly icons?: typeof import('../QBadge/constants').DEFAULT_ICONS | undefined;
|
|
382
384
|
readonly texts?: typeof import('../QBadge/constants').DEFAULT_TEXTS | undefined;
|
|
383
385
|
readonly "onClick:remove"?: (() => any) | undefined;
|
|
@@ -399,11 +401,11 @@ declare const QPhoneField: {
|
|
|
399
401
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
400
402
|
"click:remove": () => any;
|
|
401
403
|
}, string, {
|
|
402
|
-
size: import('..').QBadgeSize;
|
|
403
404
|
variant: import('..').QBadgeVariant;
|
|
404
405
|
color: string;
|
|
405
406
|
icons: typeof import('../QBadge/constants').DEFAULT_ICONS;
|
|
406
407
|
texts: typeof import('../QBadge/constants').DEFAULT_TEXTS;
|
|
408
|
+
focusable: boolean;
|
|
407
409
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
408
410
|
beforeCreate?: (() => void) | (() => void)[];
|
|
409
411
|
created?: (() => void) | (() => void)[];
|
|
@@ -425,14 +427,14 @@ declare const QPhoneField: {
|
|
|
425
427
|
$nextTick: typeof import('vue').nextTick;
|
|
426
428
|
$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;
|
|
427
429
|
} & Readonly<{
|
|
428
|
-
size: import('..').QBadgeSize;
|
|
429
430
|
variant: import('..').QBadgeVariant;
|
|
430
431
|
color: string;
|
|
431
432
|
icons: typeof import('../QBadge/constants').DEFAULT_ICONS;
|
|
432
433
|
texts: typeof import('../QBadge/constants').DEFAULT_TEXTS;
|
|
434
|
+
focusable: boolean;
|
|
433
435
|
}> & Omit<Readonly<import('..').QBadgeProps> & Readonly<{
|
|
434
436
|
"onClick:remove"?: (() => any) | undefined;
|
|
435
|
-
}>, "
|
|
437
|
+
}>, "variant" | "color" | "icons" | "texts" | "focusable"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
436
438
|
$slots: {
|
|
437
439
|
default?(_: {}): any;
|
|
438
440
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPhoneField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAO650B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPhoneField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAO650B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPn/0B,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Placement } from '../../
|
|
1
|
+
import { Placement } from '../../utils/overlay';
|
|
2
2
|
import { Selector } from '../../utils/getElement';
|
|
3
3
|
import { QBaseComponentProps } from '../../types/component';
|
|
4
4
|
export type QPopoverProps = QBaseComponentProps & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { QProgressProps } from '.';
|
|
2
|
+
type __VLS_Props = QProgressProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: number;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: number) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
mini: boolean;
|
|
12
|
+
min: number;
|
|
13
|
+
max: number;
|
|
14
|
+
striped: boolean;
|
|
15
|
+
animated: boolean;
|
|
16
|
+
showLimits: boolean;
|
|
17
|
+
showValue: boolean;
|
|
18
|
+
showPercent: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=QProgress.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QProgress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QProgress/QProgress.vue"],"names":[],"mappings":"AAgDA;AA+MC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAyJnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;AAyGhB,wBAQG"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { useColor as e } from "../../composables/useColor/index.js";
|
|
2
|
+
import { useId as t } from "../../composables/useId/index.js";
|
|
3
|
+
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeModels as s, mergeProps as c, nextTick as l, normalizeClass as u, normalizeStyle as d, openBlock as f, ref as p, toDisplayString as m, toRef as h, unref as g, useModel as _, watch as v } from "vue";
|
|
4
|
+
//#region src/components/QProgress/QProgress.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var y = ["id"], b = [
|
|
6
|
+
"id",
|
|
7
|
+
"aria-valuenow",
|
|
8
|
+
"aria-valuemin",
|
|
9
|
+
"aria-valuemax",
|
|
10
|
+
"aria-valuetext",
|
|
11
|
+
"aria-labelledby"
|
|
12
|
+
], x = ["title"], S = {
|
|
13
|
+
class: "q-sr-only",
|
|
14
|
+
role: "status",
|
|
15
|
+
"aria-live": "polite",
|
|
16
|
+
"aria-atomic": "true"
|
|
17
|
+
}, C = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "q-progress__values"
|
|
20
|
+
}, w = { class: "q-progress__values-min" }, T = { class: "q-progress__values-max" }, E = /*@__PURE__*/ o({
|
|
21
|
+
inheritAttrs: !1,
|
|
22
|
+
__name: "QProgress",
|
|
23
|
+
props: /*@__PURE__*/ s({
|
|
24
|
+
id: {},
|
|
25
|
+
class: {},
|
|
26
|
+
label: {},
|
|
27
|
+
text: {},
|
|
28
|
+
striped: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
animated: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
mini: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !1
|
|
39
|
+
},
|
|
40
|
+
color: {},
|
|
41
|
+
min: { default: 0 },
|
|
42
|
+
max: { default: 100 },
|
|
43
|
+
showLimits: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
showValue: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
showPercent: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
modelValue: { default: 0 },
|
|
57
|
+
modelModifiers: {}
|
|
58
|
+
}),
|
|
59
|
+
emits: ["update:modelValue"],
|
|
60
|
+
setup(o) {
|
|
61
|
+
let s = o, E = _(o, "modelValue"), { style: D } = e(h(s, "color")), O = t(h(s, "id")), k = n(() => Number.isFinite(s.min) ? s.min < s.max ? s.min : s.max : 0), A = n(() => Number.isFinite(s.max) ? s.max > s.min ? s.max : s.min === s.max ? s.max + 1 : s.min : k.value + 1), j = n(() => Number.isNaN(E.value) ? 0 : E.value < k.value ? k.value : E.value > A.value ? A.value : E.value), M = n(() => Number(((j.value - k.value) / (A.value - k.value) * 100).toFixed(2))), N = n(() => ["q-progress", s.class]), P = n(() => ["q-progress__bar", { "q-progress__bar--mini": s.mini }]), F = n(() => ["q-progress__fill", {
|
|
62
|
+
"q-progress__fill--striped": s.striped,
|
|
63
|
+
"q-progress__fill--animated": s.animated && M.value < 100
|
|
64
|
+
}]), I = n(() => ({ width: `${M.value}%` })), L = n(() => {
|
|
65
|
+
if (D.value) return {
|
|
66
|
+
"--q-progress-main-color": D.value.mainColor,
|
|
67
|
+
"--q-progress-main-color-rgb": D.value.mainColorRgb,
|
|
68
|
+
"--q-progress-on-main-color": D.value.onMainColor
|
|
69
|
+
};
|
|
70
|
+
}), R = n(() => `${s.text ? `${s.text} ` : ""}${j.value} (${M.value}%)`), z = n(() => {
|
|
71
|
+
if (s.mini) return "";
|
|
72
|
+
let e = s.text ?? "";
|
|
73
|
+
return e += s.text && s.showValue ? " " : "", e += s.showValue ? j.value.toString() : "", e += (s.text || s.showValue) && s.showPercent ? " " : "", e += s.showPercent ? M.value.toString() + "%" : "", e;
|
|
74
|
+
}), B = n(() => s.label ? O.value + "_label" : void 0), V = p(""), H = p(0);
|
|
75
|
+
return v(E, async () => {
|
|
76
|
+
let e = M.value;
|
|
77
|
+
e - H.value < 25 && e < 100 || (H.value = e, await l(), V.value = `${s.label ? `${s.label} ` : ""}${M.value}%`);
|
|
78
|
+
}), (e, t) => (f(), i("div", { class: u(N.value) }, [
|
|
79
|
+
s.label ? (f(), i("span", {
|
|
80
|
+
key: 0,
|
|
81
|
+
id: B.value,
|
|
82
|
+
class: u(["q-progress__label", "q-label"])
|
|
83
|
+
}, m(s.label), 9, y)) : r("v-if", !0),
|
|
84
|
+
a("div", c({
|
|
85
|
+
id: g(O),
|
|
86
|
+
class: P.value,
|
|
87
|
+
style: L.value,
|
|
88
|
+
role: "progressbar",
|
|
89
|
+
"aria-valuenow": j.value,
|
|
90
|
+
"aria-valuemin": k.value,
|
|
91
|
+
"aria-valuemax": A.value,
|
|
92
|
+
"aria-valuetext": R.value || void 0,
|
|
93
|
+
"aria-labelledby": B.value
|
|
94
|
+
}, e.$attrs), [a("div", {
|
|
95
|
+
class: u(F.value),
|
|
96
|
+
style: d(I.value)
|
|
97
|
+
}, [z.value ? (f(), i("span", {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: "q-progress__fill-text",
|
|
100
|
+
title: z.value
|
|
101
|
+
}, m(z.value), 9, x)) : r("v-if", !0)], 6)], 16, b),
|
|
102
|
+
a("div", S, m(V.value), 1),
|
|
103
|
+
o.showLimits ? (f(), i("div", C, [a("span", w, m(k.value), 1), a("span", T, m(A.value), 1)])) : r("v-if", !0)
|
|
104
|
+
], 2));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
//#endregion
|
|
108
|
+
export { E as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const QProgress: import('vue').DefineComponent<{
|
|
2
|
+
modelValue?: number;
|
|
3
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
4
|
+
label?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
striped?: boolean;
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
mini?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
showLimits?: boolean;
|
|
13
|
+
showValue?: boolean;
|
|
14
|
+
showPercent?: boolean;
|
|
15
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: number) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
18
|
+
modelValue?: number;
|
|
19
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
20
|
+
label?: string;
|
|
21
|
+
text?: string;
|
|
22
|
+
striped?: boolean;
|
|
23
|
+
animated?: boolean;
|
|
24
|
+
mini?: boolean;
|
|
25
|
+
color?: string;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
showLimits?: boolean;
|
|
29
|
+
showValue?: boolean;
|
|
30
|
+
showPercent?: boolean;
|
|
31
|
+
}> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
mini: boolean;
|
|
35
|
+
min: number;
|
|
36
|
+
max: number;
|
|
37
|
+
striped: boolean;
|
|
38
|
+
animated: boolean;
|
|
39
|
+
showLimits: boolean;
|
|
40
|
+
showValue: boolean;
|
|
41
|
+
showPercent: boolean;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
export { QProgress };
|
|
44
|
+
export * from './types';
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QProgress/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAA8B,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA;AAGpB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
2
|
+
export type QProgressProps = QBaseComponentProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Text displayed above the progress bar.
|
|
5
|
+
*
|
|
6
|
+
* @category Content
|
|
7
|
+
*/
|
|
8
|
+
label?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Text displayed in the progress bar.
|
|
11
|
+
* Not shown if the 'mini' prop is true.
|
|
12
|
+
*
|
|
13
|
+
* @category Content
|
|
14
|
+
*/
|
|
15
|
+
text?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the progress bar is striped.
|
|
18
|
+
*
|
|
19
|
+
* @category Presentation
|
|
20
|
+
*/
|
|
21
|
+
striped?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the progress bar has an animation.
|
|
24
|
+
*
|
|
25
|
+
* @category Presentation
|
|
26
|
+
*/
|
|
27
|
+
animated?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the progress bar is mini.
|
|
30
|
+
* If true, the values of the 'text', 'showValue', and 'showPercent' props will not be shown.
|
|
31
|
+
*
|
|
32
|
+
* @category Presentation
|
|
33
|
+
*/
|
|
34
|
+
mini?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The color of the progress bar.
|
|
37
|
+
*
|
|
38
|
+
* @category Presentation
|
|
39
|
+
*/
|
|
40
|
+
color?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Minimum value for the range of the progress bar.
|
|
43
|
+
* If greater than 'max', these values will be swapped.
|
|
44
|
+
* If equal to 'max', 'max' will be max + 1.
|
|
45
|
+
*
|
|
46
|
+
* @category Content
|
|
47
|
+
*/
|
|
48
|
+
min?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum value for the range of the progress bar.
|
|
51
|
+
* If less than 'min', these values will be swapped.
|
|
52
|
+
* If equal to 'min', 'max' will be max + 1.
|
|
53
|
+
*
|
|
54
|
+
* @category Content
|
|
55
|
+
*/
|
|
56
|
+
max?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Whether to display the min and max values.
|
|
59
|
+
*
|
|
60
|
+
* @category Presentation
|
|
61
|
+
*/
|
|
62
|
+
showLimits?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether to display the current value in the progress bar.
|
|
65
|
+
* Not shown if the 'mini' prop is true.
|
|
66
|
+
*
|
|
67
|
+
* @category Presentation
|
|
68
|
+
*/
|
|
69
|
+
showValue?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether to display the current percent in the progress bar.
|
|
72
|
+
* Not shown if the 'mini' prop is true.
|
|
73
|
+
*
|
|
74
|
+
* @category Presentation
|
|
75
|
+
*/
|
|
76
|
+
showPercent?: boolean;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QProgress/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|
|
@@ -12,7 +12,6 @@ declare function __VLS_template(): {
|
|
|
12
12
|
};
|
|
13
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
14
|
declare const __VLS_component: import('vue').DefineComponent<QRadioButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QRadioButtonProps> & Readonly<{}>, {
|
|
15
|
-
size: import('./types').QRadioButtonSize;
|
|
16
15
|
color: string;
|
|
17
16
|
labelPlacement: import('./types').QRadioButtonLabelPlacement;
|
|
18
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioButton.vue"],"names":[],"mappings":"AAiCA;
|
|
1
|
+
{"version":3,"file":"QRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioButton.vue"],"names":[],"mappings":"AAiCA;AA8IC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAgG3C,iBAAS,cAAc;WAmFT,OAAO,IAA6B;;yBAbrB,GAAG;yBACF,GAAG;;;;;;EAiBhC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;OAQnB,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"}
|
|
@@ -24,7 +24,7 @@ var v = [
|
|
|
24
24
|
name: {},
|
|
25
25
|
labelPlacement: { default: "end" },
|
|
26
26
|
color: { default: "primary" },
|
|
27
|
-
size: {
|
|
27
|
+
size: {},
|
|
28
28
|
disabled: { type: Boolean },
|
|
29
29
|
readonly: { type: Boolean },
|
|
30
30
|
invalid: { type: Boolean }
|
|
@@ -34,7 +34,7 @@ var v = [
|
|
|
34
34
|
if (!S) throw Error("QRadioButton must be used inside a QRadioGroup");
|
|
35
35
|
let C = r(() => y.labelPlacement === "start" ? "append" : "prepend"), w = r(() => [
|
|
36
36
|
"q-radio-button",
|
|
37
|
-
y.size === "
|
|
37
|
+
y.size === "small" || y.size === "large" ? `q-radio-button--${y.size}` : void 0,
|
|
38
38
|
y.color === "primary" ? void 0 : `q-radio-button--${y.color}`,
|
|
39
39
|
{
|
|
40
40
|
"q-radio-button--readonly": y.readonly,
|
|
@@ -18,7 +18,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
-
|
|
21
|
+
labelPosition: import('..').QLabelPosition;
|
|
22
22
|
hasFocusOutline: boolean;
|
|
23
23
|
orientation: import('./types').QRadioButtonOrientation;
|
|
24
24
|
columns: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AA2BA;AA6GC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AAKzC,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAiErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmET,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,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,29 +1,26 @@
|
|
|
1
1
|
import { provideDefaults as e } from "../../composables/defaults.js";
|
|
2
2
|
import { useGroup as t } from "../../composables/useGroup/index.js";
|
|
3
3
|
import { useId as n } from "../../composables/useId/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import { computed as i, createBlock as a,
|
|
4
|
+
import { QField as r } from "../QField/index.js";
|
|
5
|
+
import { computed as i, createBlock as a, createElementVNode as o, createSlots as s, defineComponent as c, mergeModels as l, mergeProps as u, normalizeClass as d, openBlock as f, renderSlot as p, toRef as m, unref as h, useModel as g, watch as _, withCtx as v } from "vue";
|
|
6
6
|
//#region src/components/QRadioGroup/QRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var y = ["id"], b = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "q-field__extras"
|
|
10
|
-
}, x = /*@__PURE__*/ l({
|
|
7
|
+
var y = ["id"], b = /*@__PURE__*/ c({
|
|
11
8
|
inheritAttrs: !1,
|
|
12
9
|
__name: "QRadioGroup",
|
|
13
|
-
props: /*@__PURE__*/
|
|
10
|
+
props: /*@__PURE__*/ l({
|
|
14
11
|
id: {},
|
|
15
12
|
class: {},
|
|
16
13
|
label: {},
|
|
17
14
|
required: { type: Boolean },
|
|
18
15
|
for: {},
|
|
19
|
-
labelPosition: {},
|
|
16
|
+
labelPosition: { default: "topleft" },
|
|
17
|
+
readonly: { type: Boolean },
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
invalid: { type: Boolean },
|
|
20
20
|
name: {},
|
|
21
21
|
orientation: { default: "vertical" },
|
|
22
|
-
size: {
|
|
22
|
+
size: {},
|
|
23
23
|
columns: { default: 1 },
|
|
24
|
-
disabled: { type: Boolean },
|
|
25
|
-
readonly: { type: Boolean },
|
|
26
|
-
invalid: { type: Boolean },
|
|
27
24
|
hasFocusOutline: {
|
|
28
25
|
type: Boolean,
|
|
29
26
|
default: !0
|
|
@@ -33,48 +30,60 @@ var y = ["id"], b = {
|
|
|
33
30
|
modelModifiers: {}
|
|
34
31
|
}),
|
|
35
32
|
emits: ["update:modelValue"],
|
|
36
|
-
setup(
|
|
37
|
-
let
|
|
38
|
-
active:
|
|
33
|
+
setup(c) {
|
|
34
|
+
let l = c, b = g(c, "modelValue"), { active: x } = t({
|
|
35
|
+
active: b,
|
|
39
36
|
required: !0
|
|
40
37
|
});
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
_(x, (e) => {
|
|
39
|
+
b.value = e;
|
|
43
40
|
});
|
|
44
|
-
let
|
|
41
|
+
let S = n(m(l, "id")), C = i(() => l.name ?? S.value), w = i(() => [
|
|
45
42
|
"q-radio-group",
|
|
46
43
|
{
|
|
47
|
-
"q-radio-group--horizontal":
|
|
48
|
-
"q-radio-group--focus-style":
|
|
44
|
+
"q-radio-group--horizontal": l.orientation === "horizontal",
|
|
45
|
+
"q-radio-group--focus-style": l.hasFocusOutline
|
|
49
46
|
},
|
|
50
|
-
|
|
51
|
-
]),
|
|
47
|
+
l.class
|
|
48
|
+
]), T = i(() => l.columns > 1 ? { "--q-radio-group-columns": l.columns } : {});
|
|
52
49
|
return e({ QRadioButton: {
|
|
53
|
-
size:
|
|
54
|
-
disabled:
|
|
55
|
-
readonly:
|
|
56
|
-
invalid:
|
|
57
|
-
name:
|
|
58
|
-
} }), (e, t) => (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
class: ["q-radio-group__group", { "q-radio-group--grid": u.columns > 1 }],
|
|
50
|
+
size: m(l, "size"),
|
|
51
|
+
disabled: m(l, "disabled"),
|
|
52
|
+
readonly: m(l, "readonly"),
|
|
53
|
+
invalid: m(l, "invalid"),
|
|
54
|
+
name: C
|
|
55
|
+
} }), (e, t) => (f(), a(h(r), {
|
|
56
|
+
for: h(S),
|
|
57
|
+
class: d(w.value),
|
|
58
|
+
label: l.label,
|
|
59
|
+
"label-position": l.labelPosition,
|
|
60
|
+
required: l.required,
|
|
61
|
+
readonly: l.readonly,
|
|
62
|
+
disabled: l.disabled,
|
|
63
|
+
invalid: l.invalid
|
|
64
|
+
}, s({
|
|
65
|
+
control: v(() => [o("div", u({
|
|
66
|
+
id: h(S),
|
|
67
|
+
class: ["q-radio-group__group", { "q-radio-group--grid": l.columns > 1 }],
|
|
72
68
|
role: "radiogroup",
|
|
73
|
-
style:
|
|
74
|
-
}, e.$attrs), [
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
style: T.value
|
|
70
|
+
}, e.$attrs), [p(e.$slots, "default")], 16, y)]),
|
|
71
|
+
_: 2
|
|
72
|
+
}, [e.$slots.extras ? {
|
|
73
|
+
name: "extras",
|
|
74
|
+
fn: v(() => [p(e.$slots, "extras")]),
|
|
75
|
+
key: "0"
|
|
76
|
+
} : void 0]), 1032, [
|
|
77
|
+
"for",
|
|
78
|
+
"class",
|
|
79
|
+
"label",
|
|
80
|
+
"label-position",
|
|
81
|
+
"required",
|
|
82
|
+
"readonly",
|
|
83
|
+
"disabled",
|
|
84
|
+
"invalid"
|
|
85
|
+
]));
|
|
77
86
|
}
|
|
78
87
|
});
|
|
79
88
|
//#endregion
|
|
80
|
-
export {
|
|
89
|
+
export { b as default };
|