@qynpm/ui 1.0.34 → 1.0.36

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.
Files changed (126) hide show
  1. package/README.md +91 -56
  2. package/dist/index.cjs +7 -6
  3. package/dist/index.mjs +63 -61
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-dialog/index.cjs +1 -1
  7. package/dist/qy-dialog/index.mjs +1 -1
  8. package/dist/qy-drawer/index.cjs +1 -1
  9. package/dist/qy-drawer/index.mjs +1 -1
  10. package/dist/qy-file-picker/index.cjs +1 -1
  11. package/dist/qy-file-picker/index.mjs +1 -1
  12. package/dist/qy-form-section/index.cjs +1 -1
  13. package/dist/qy-form-section/index.mjs +1 -1
  14. package/dist/qy-iframe/index.cjs +1 -1
  15. package/dist/qy-iframe/index.mjs +1 -1
  16. package/dist/qy-image/index.cjs +1 -1
  17. package/dist/qy-image/index.mjs +1 -1
  18. package/dist/qy-image-preview/index.cjs +1 -1
  19. package/dist/qy-image-preview/index.mjs +2 -2
  20. package/dist/qy-image-upload/index.cjs +1 -1
  21. package/dist/qy-image-upload/index.mjs +1 -1
  22. package/dist/qy-input-number/index.cjs +1 -1
  23. package/dist/qy-input-number/index.mjs +1 -1
  24. package/dist/qy-input-tag/index.cjs +1 -0
  25. package/dist/qy-input-tag/index.mjs +7 -0
  26. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  27. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  28. package/dist/qy-menu-actions/index.cjs +1 -1
  29. package/dist/qy-menu-actions/index.mjs +1 -1
  30. package/dist/qy-money-input/index.cjs +1 -1
  31. package/dist/qy-money-input/index.mjs +5 -2
  32. package/dist/qy-popover/index.cjs +1 -1
  33. package/dist/qy-popover/index.mjs +1 -1
  34. package/dist/qy-record-quote-search/index.cjs +1 -1
  35. package/dist/qy-record-quote-search/index.mjs +1 -1
  36. package/dist/qy-remark-image/index.cjs +1 -1
  37. package/dist/qy-remark-image/index.mjs +1 -1
  38. package/dist/qy-remote-select/index.cjs +1 -1
  39. package/dist/qy-remote-select/index.mjs +1 -1
  40. package/dist/qy-search-input/index.cjs +1 -1
  41. package/dist/qy-search-input/index.mjs +1 -1
  42. package/dist/qy-selection-dialog/index.cjs +1 -1
  43. package/dist/qy-selection-dialog/index.mjs +1 -1
  44. package/dist/qy-tree-select/index.cjs +1 -1
  45. package/dist/qy-tree-select/index.mjs +1 -1
  46. package/dist/qy-upload/index.cjs +1 -1
  47. package/dist/qy-upload/index.mjs +5 -2
  48. package/dist/shared/{index-IXbvJ9d7.mjs → index-4SkLDBra.mjs} +1 -1
  49. package/dist/shared/index-BYX0biqw.mjs +766 -0
  50. package/dist/shared/{index-n04hARNG.cjs → index-Bli6Gx5d.cjs} +1 -1
  51. package/dist/shared/{index-BBZQowyp.mjs → index-BuUtJrIy.mjs} +9 -9
  52. package/dist/shared/index-BxxwEr52.mjs +107 -0
  53. package/dist/shared/index-C1i-hd-W.cjs +1 -0
  54. package/dist/shared/{index-Dyyp1ix9.cjs → index-C7lRQtzs.cjs} +1 -1
  55. package/dist/shared/{index-C_adKysL.mjs → index-CdnHMuo3.mjs} +1 -1
  56. package/dist/shared/index-D654b42n.mjs +2754 -0
  57. package/dist/shared/{index-D6-K5xSD.cjs → index-DlGwHshu.cjs} +1 -1
  58. package/dist/shared/{index-BeubtXXl.cjs → index-DnHfk7NM.cjs} +1 -1
  59. package/dist/shared/index-DnNIseRJ.cjs +1 -0
  60. package/dist/shared/{index-ccugL1Ie.mjs → index-Dr-Q5krU.mjs} +4 -4
  61. package/dist/shared/index-aIqtIYsu.cjs +1 -0
  62. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
  63. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
  64. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
  65. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
  66. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs → index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs} +9 -9
  67. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
  68. package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
  69. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
  70. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
  71. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs → index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs} +19 -17
  72. package/dist/shared/utils-BjEXwY3L.cjs +1 -0
  73. package/dist/shared/utils-DoyI5oM8.mjs +148 -0
  74. package/index.d.ts +113 -56
  75. package/package.json +489 -483
  76. package/qy-alert/index.d.ts +64 -64
  77. package/qy-autocomplete/index.d.ts +5 -5
  78. package/qy-avatar/index.d.ts +67 -67
  79. package/qy-badge/index.d.ts +63 -63
  80. package/qy-card/index.d.ts +64 -64
  81. package/qy-cascader/index.d.ts +198 -198
  82. package/qy-collapse/index.d.ts +59 -59
  83. package/qy-collapse-item/index.d.ts +45 -45
  84. package/qy-descriptions/index.d.ts +47 -47
  85. package/qy-descriptions-item/index.d.ts +46 -46
  86. package/qy-dialog/index.d.ts +63 -63
  87. package/qy-divider/index.d.ts +53 -53
  88. package/qy-drawer/index.d.ts +55 -55
  89. package/qy-empty/index.d.ts +51 -51
  90. package/qy-file-picker/index.d.ts +4 -1
  91. package/qy-iframe/index.d.ts +66 -66
  92. package/qy-image/index.d.ts +28 -28
  93. package/qy-image-preview/index.d.ts +20 -20
  94. package/qy-image-upload/index.d.ts +69 -12
  95. package/qy-input/index.d.ts +76 -18
  96. package/qy-input-number/index.d.ts +64 -30
  97. package/qy-input-tag/index.d.ts +69 -0
  98. package/qy-link/index.d.ts +69 -69
  99. package/qy-loading/index.d.ts +25 -25
  100. package/qy-menu-actions/index.d.ts +29 -29
  101. package/qy-money-input/index.d.ts +87 -12
  102. package/qy-progress/index.d.ts +74 -74
  103. package/qy-result/index.d.ts +64 -64
  104. package/qy-scrollbar/index.d.ts +85 -85
  105. package/qy-skeleton/index.d.ts +54 -54
  106. package/qy-skeleton-item/index.d.ts +48 -48
  107. package/qy-step/index.d.ts +55 -55
  108. package/qy-steps/index.d.ts +62 -62
  109. package/qy-tab-pane/index.d.ts +40 -40
  110. package/qy-table-column-settings/index.d.ts +18 -18
  111. package/qy-tabs/index.d.ts +84 -84
  112. package/qy-tree/index.d.ts +132 -132
  113. package/qy-tree-select/index.d.ts +123 -123
  114. package/qy-upload/index.d.ts +99 -5
  115. package/dist/shared/index-BkX9xlbI.cjs +0 -1
  116. package/dist/shared/index-C_1KP3l9.mjs +0 -129
  117. package/dist/shared/index-Dw5upK-A.cjs +0 -1
  118. package/dist/shared/index-fh9l84rU.mjs +0 -3541
  119. package/dist/shared/index.vue_vue_type_script_setup_true_lang-5gku7Zwv.cjs +0 -1
  120. package/dist/shared/index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs +0 -132
  121. package/dist/shared/index.vue_vue_type_style_index_0_lang-DccRGtZE.cjs +0 -1
  122. package/dist/shared/index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs +0 -1
  123. package/dist/shared/utils-D2KAQCCB.cjs +0 -1
  124. package/dist/shared/utils-DUntDntI.mjs +0 -112
  125. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs → index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs} +0 -0
  126. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CglCPcj-.cjs → index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs} +0 -0
@@ -1,69 +1,69 @@
1
- import type {
2
- Component,
3
- ComponentOptionsMixin,
4
- DefineComponent,
5
- Plugin,
6
- PublicProps,
7
- SlotsType
8
- } from 'vue'
9
- import type { StyleValue } from 'vue'
10
-
11
- export type QyLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
12
- export type QyLinkUnderline = boolean | 'always' | 'never' | 'hover'
13
-
14
- export interface QyLinkProps {
15
- type?: QyLinkType
16
- underline?: QyLinkUnderline
17
- disabled?: boolean
18
- href?: string
19
- target?: string
20
- icon?: string | Component
21
- }
22
-
23
- export interface QyLinkAttrs {
24
- rel?: string
25
- download?: string | boolean
26
- hreflang?: string
27
- referrerpolicy?: string
28
- ping?: string
29
- tabindex?: string | number
30
- class?: unknown
31
- style?: StyleValue
32
- id?: string
33
- title?: string
34
- role?: string
35
- [key: `data-${string}`]: unknown
36
- [key: `aria-${string}`]: unknown
37
- }
38
-
39
- export interface QyLinkSlots {
40
- default?: () => unknown
41
- icon?: () => unknown
42
- }
43
-
44
- export type QyLinkEmits = {
45
- click: (event: MouseEvent) => void
46
- }
47
-
48
- type QyLinkComponentProps = QyLinkProps & QyLinkAttrs & {
49
- onClick?: QyLinkEmits['click']
50
- }
51
-
52
- declare const QyLink: DefineComponent<
53
- QyLinkProps,
54
- {},
55
- {},
56
- {},
57
- {},
58
- ComponentOptionsMixin,
59
- ComponentOptionsMixin,
60
- QyLinkEmits,
61
- string,
62
- PublicProps,
63
- QyLinkComponentProps,
64
- {},
65
- SlotsType<QyLinkSlots>
66
- > & Plugin
67
-
68
- export { QyLink }
69
- export default QyLink
1
+ import type {
2
+ Component,
3
+ ComponentOptionsMixin,
4
+ DefineComponent,
5
+ Plugin,
6
+ PublicProps,
7
+ SlotsType
8
+ } from 'vue'
9
+ import type { StyleValue } from 'vue'
10
+
11
+ export type QyLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
12
+ export type QyLinkUnderline = boolean | 'always' | 'never' | 'hover'
13
+
14
+ export interface QyLinkProps {
15
+ type?: QyLinkType
16
+ underline?: QyLinkUnderline
17
+ disabled?: boolean
18
+ href?: string
19
+ target?: string
20
+ icon?: string | Component
21
+ }
22
+
23
+ export interface QyLinkAttrs {
24
+ rel?: string
25
+ download?: string | boolean
26
+ hreflang?: string
27
+ referrerpolicy?: string
28
+ ping?: string
29
+ tabindex?: string | number
30
+ class?: unknown
31
+ style?: StyleValue
32
+ id?: string
33
+ title?: string
34
+ role?: string
35
+ [key: `data-${string}`]: unknown
36
+ [key: `aria-${string}`]: unknown
37
+ }
38
+
39
+ export interface QyLinkSlots {
40
+ default?: () => unknown
41
+ icon?: () => unknown
42
+ }
43
+
44
+ export type QyLinkEmits = {
45
+ click: (event: MouseEvent) => void
46
+ }
47
+
48
+ type QyLinkComponentProps = QyLinkProps & QyLinkAttrs & {
49
+ onClick?: QyLinkEmits['click']
50
+ }
51
+
52
+ declare const QyLink: DefineComponent<
53
+ QyLinkProps,
54
+ {},
55
+ {},
56
+ {},
57
+ {},
58
+ ComponentOptionsMixin,
59
+ ComponentOptionsMixin,
60
+ QyLinkEmits,
61
+ string,
62
+ PublicProps,
63
+ QyLinkComponentProps,
64
+ {},
65
+ SlotsType<QyLinkSlots>
66
+ > & Plugin
67
+
68
+ export { QyLink }
69
+ export default QyLink
@@ -1,25 +1,25 @@
1
- import type { Directive, Plugin } from 'vue'
2
- import type {
3
- QyLoadingDirectiveOptions,
4
- QyLoadingDirectiveValue,
5
- QyLoadingHandle,
6
- QyLoadingServiceOptions
7
- } from '@qynpm/hooks'
8
-
9
- export type {
10
- QyLoadingDirectiveOptions,
11
- QyLoadingDirectiveValue,
12
- QyLoadingHandle,
13
- QyLoadingServiceOptions
14
- }
15
-
16
- export declare const vQyLoading: Directive<
17
- HTMLElement,
18
- QyLoadingDirectiveValue
19
- >
20
- export declare const QyLoading: Plugin
21
- export declare function openQyLoading(
22
- options?: QyLoadingServiceOptions
23
- ): QyLoadingHandle
24
-
25
- export default QyLoading
1
+ import type { Directive, Plugin } from 'vue'
2
+ import type {
3
+ QyLoadingDirectiveOptions,
4
+ QyLoadingDirectiveValue,
5
+ QyLoadingHandle,
6
+ QyLoadingServiceOptions
7
+ } from '@qynpm/hooks'
8
+
9
+ export type {
10
+ QyLoadingDirectiveOptions,
11
+ QyLoadingDirectiveValue,
12
+ QyLoadingHandle,
13
+ QyLoadingServiceOptions
14
+ }
15
+
16
+ export declare const vQyLoading: Directive<
17
+ HTMLElement,
18
+ QyLoadingDirectiveValue
19
+ >
20
+ export declare const QyLoading: Plugin
21
+ export declare function openQyLoading(
22
+ options?: QyLoadingServiceOptions
23
+ ): QyLoadingHandle
24
+
25
+ export default QyLoading
@@ -1,29 +1,29 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- export type QyMenuActionType =
4
- | 'default'
5
- | 'primary'
6
- | 'success'
7
- | 'warning'
8
- | 'danger'
9
-
10
- export interface QyMenuActionContext<Row = Record<string, unknown>> {
11
- row?: Row
12
- rowIndex?: number
13
- }
14
-
15
- export interface QyMenuAction<Row = Record<string, unknown>> {
16
- key: string
17
- label: string
18
- type?: QyMenuActionType
19
- disabled?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
20
- hidden?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
21
- loading?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
22
- confirm?: boolean | string
23
- meta?: Record<string, unknown>
24
- }
25
-
26
- declare const QyMenuActions: DefineComponent<any, any, any> & Plugin
27
-
28
- export { QyMenuActions }
29
- export default QyMenuActions
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ export type QyMenuActionType =
4
+ | 'default'
5
+ | 'primary'
6
+ | 'success'
7
+ | 'warning'
8
+ | 'danger'
9
+
10
+ export interface QyMenuActionContext<Row = Record<string, unknown>> {
11
+ row?: Row
12
+ rowIndex?: number
13
+ }
14
+
15
+ export interface QyMenuAction<Row = Record<string, unknown>> {
16
+ key: string
17
+ label: string
18
+ type?: QyMenuActionType
19
+ disabled?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
20
+ hidden?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
21
+ loading?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
22
+ confirm?: boolean | string
23
+ meta?: Record<string, unknown>
24
+ }
25
+
26
+ declare const QyMenuActions: DefineComponent<any, any, any> & Plugin
27
+
28
+ export { QyMenuActions }
29
+ export default QyMenuActions
@@ -1,12 +1,87 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- /**
4
- * QyMoneyInput 单组件入口类型声明。
5
- *
6
- * 这里同时声明 DefineComponent 和 Plugin:
7
- * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
- * - Plugin 用于 app.use(QyMoneyInput) 时通过 Vue 插件类型校验。
9
- */
10
- declare const QyMoneyInput: DefineComponent<any, any, any> & Plugin
11
-
12
- export default QyMoneyInput
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType
7
+ } from 'vue'
8
+
9
+ export type QyMoneyInputValue = string | number | null | undefined
10
+ export type QyMoneyInputFormatTrigger = 'blur' | 'change' | 'none'
11
+ export type QyMoneyInputSize = 'small' | 'default' | 'large'
12
+
13
+ export interface QyMoneyInputProps {
14
+ modelValue?: QyMoneyInputValue
15
+ precision?: number
16
+ min?: number
17
+ max?: number
18
+ allowNegative?: boolean
19
+ formatTrigger?: QyMoneyInputFormatTrigger
20
+ emptyValue?: string | number
21
+ placeholder?: string
22
+ clearable?: boolean
23
+ disabled?: boolean
24
+ readonly?: boolean
25
+ size?: QyMoneyInputSize
26
+ name?: string
27
+ id?: string
28
+ autocomplete?: string
29
+ autofocus?: boolean
30
+ maxlength?: string | number
31
+ minlength?: string | number
32
+ tabindex?: string | number
33
+ ariaLabel?: string
34
+ }
35
+
36
+ export type QyMoneyInputEmits = {
37
+ 'update:modelValue': (value: string) => void
38
+ input: (value: string) => void
39
+ change: (value: string) => void
40
+ focus: (event: FocusEvent) => void
41
+ blur: (event: FocusEvent) => void
42
+ clear: () => void
43
+ enter: (event: KeyboardEvent) => void
44
+ }
45
+
46
+ export interface QyMoneyInputExposed {
47
+ focus(): void
48
+ blur(): void
49
+ select(): void
50
+ clear(): void
51
+ }
52
+
53
+ export interface QyMoneyInputSlots {
54
+ prefix?: () => unknown
55
+ suffix?: () => unknown
56
+ prepend?: () => unknown
57
+ append?: () => unknown
58
+ }
59
+
60
+ type QyMoneyInputComponentProps = QyMoneyInputProps & {
61
+ 'onUpdate:modelValue'?: QyMoneyInputEmits['update:modelValue']
62
+ onInput?: QyMoneyInputEmits['input']
63
+ onChange?: QyMoneyInputEmits['change']
64
+ onFocus?: QyMoneyInputEmits['focus']
65
+ onBlur?: QyMoneyInputEmits['blur']
66
+ onClear?: QyMoneyInputEmits['clear']
67
+ onEnter?: QyMoneyInputEmits['enter']
68
+ }
69
+
70
+ declare const QyMoneyInput: DefineComponent<
71
+ QyMoneyInputProps,
72
+ QyMoneyInputExposed,
73
+ {},
74
+ {},
75
+ {},
76
+ ComponentOptionsMixin,
77
+ ComponentOptionsMixin,
78
+ QyMoneyInputEmits,
79
+ string,
80
+ PublicProps,
81
+ QyMoneyInputComponentProps,
82
+ {},
83
+ SlotsType<QyMoneyInputSlots>
84
+ > & Plugin
85
+
86
+ export { QyMoneyInput }
87
+ export default QyMoneyInput
@@ -1,74 +1,74 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin,
5
- PublicProps,
6
- SlotsType,
7
- StyleValue
8
- } from 'vue'
9
-
10
- export type QyProgressType = 'line' | 'circle' | 'dashboard'
11
- export type QyProgressStatus = '' | 'success' | 'warning' | 'exception'
12
- export type QyProgressStrokeLinecap = 'inherit' | 'round' | 'butt' | 'square'
13
- export interface QyProgressColor {
14
- color: string
15
- percentage: number
16
- }
17
- export type QyProgressColorFunction = (percentage: number) => string
18
- export type QyProgressFormat = (percentage: number) => string
19
-
20
- export interface QyProgressProps {
21
- percentage?: number
22
- type?: QyProgressType
23
- status?: QyProgressStatus
24
- strokeWidth?: number
25
- strokeLinecap?: QyProgressStrokeLinecap
26
- width?: number
27
- showText?: boolean
28
- textInside?: boolean
29
- format?: QyProgressFormat
30
- color?: string | QyProgressColor[] | QyProgressColorFunction
31
- indeterminate?: boolean
32
- duration?: number
33
- striped?: boolean
34
- stripedFlow?: boolean
35
- }
36
-
37
- export interface QyProgressAttrs {
38
- class?: unknown
39
- style?: StyleValue
40
- id?: string
41
- role?: string
42
- title?: string
43
- [key: `data-${string}`]: unknown
44
- [key: `aria-${string}`]: unknown
45
- }
46
-
47
- export interface QyProgressSlotProps {
48
- readonly percentage: number
49
- }
50
-
51
- export interface QyProgressSlots {
52
- default?: (props: QyProgressSlotProps) => unknown
53
- }
54
-
55
- type QyProgressComponentProps = QyProgressProps & QyProgressAttrs
56
-
57
- declare const QyProgress: DefineComponent<
58
- QyProgressComponentProps,
59
- {},
60
- {},
61
- {},
62
- {},
63
- ComponentOptionsMixin,
64
- ComponentOptionsMixin,
65
- {},
66
- string,
67
- PublicProps,
68
- QyProgressComponentProps,
69
- {},
70
- SlotsType<QyProgressSlots>
71
- > & Plugin
72
-
73
- export { QyProgress }
74
- export default QyProgress
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType,
7
+ StyleValue
8
+ } from 'vue'
9
+
10
+ export type QyProgressType = 'line' | 'circle' | 'dashboard'
11
+ export type QyProgressStatus = '' | 'success' | 'warning' | 'exception'
12
+ export type QyProgressStrokeLinecap = 'inherit' | 'round' | 'butt' | 'square'
13
+ export interface QyProgressColor {
14
+ color: string
15
+ percentage: number
16
+ }
17
+ export type QyProgressColorFunction = (percentage: number) => string
18
+ export type QyProgressFormat = (percentage: number) => string
19
+
20
+ export interface QyProgressProps {
21
+ percentage?: number
22
+ type?: QyProgressType
23
+ status?: QyProgressStatus
24
+ strokeWidth?: number
25
+ strokeLinecap?: QyProgressStrokeLinecap
26
+ width?: number
27
+ showText?: boolean
28
+ textInside?: boolean
29
+ format?: QyProgressFormat
30
+ color?: string | QyProgressColor[] | QyProgressColorFunction
31
+ indeterminate?: boolean
32
+ duration?: number
33
+ striped?: boolean
34
+ stripedFlow?: boolean
35
+ }
36
+
37
+ export interface QyProgressAttrs {
38
+ class?: unknown
39
+ style?: StyleValue
40
+ id?: string
41
+ role?: string
42
+ title?: string
43
+ [key: `data-${string}`]: unknown
44
+ [key: `aria-${string}`]: unknown
45
+ }
46
+
47
+ export interface QyProgressSlotProps {
48
+ readonly percentage: number
49
+ }
50
+
51
+ export interface QyProgressSlots {
52
+ default?: (props: QyProgressSlotProps) => unknown
53
+ }
54
+
55
+ type QyProgressComponentProps = QyProgressProps & QyProgressAttrs
56
+
57
+ declare const QyProgress: DefineComponent<
58
+ QyProgressComponentProps,
59
+ {},
60
+ {},
61
+ {},
62
+ {},
63
+ ComponentOptionsMixin,
64
+ ComponentOptionsMixin,
65
+ {},
66
+ string,
67
+ PublicProps,
68
+ QyProgressComponentProps,
69
+ {},
70
+ SlotsType<QyProgressSlots>
71
+ > & Plugin
72
+
73
+ export { QyProgress }
74
+ export default QyProgress
@@ -1,64 +1,64 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin,
5
- PublicProps,
6
- SlotsType
7
- } from 'vue'
8
- import type { StyleValue } from 'vue'
9
-
10
- export type QyResultStatus =
11
- | 'success'
12
- | 'warning'
13
- | 'info'
14
- | 'error'
15
- | '401'
16
- | '403'
17
- | '404'
18
- | '500'
19
-
20
- export interface QyResultProps {
21
- status?: QyResultStatus
22
- title?: string
23
- description?: string
24
- image?: string
25
- imageAlt?: string
26
- }
27
-
28
- export interface QyResultAttrs {
29
- class?: unknown
30
- style?: StyleValue
31
- id?: string
32
- role?: string
33
- title?: string
34
- [key: `data-${string}`]: unknown
35
- [key: `aria-${string}`]: unknown
36
- }
37
-
38
- export interface QyResultSlots {
39
- visual?: () => unknown
40
- title?: () => unknown
41
- description?: () => unknown
42
- actions?: () => unknown
43
- }
44
-
45
- type QyResultComponentProps = QyResultProps & QyResultAttrs
46
-
47
- declare const QyResult: DefineComponent<
48
- QyResultComponentProps,
49
- {},
50
- {},
51
- {},
52
- {},
53
- ComponentOptionsMixin,
54
- ComponentOptionsMixin,
55
- {},
56
- string,
57
- PublicProps,
58
- QyResultComponentProps,
59
- {},
60
- SlotsType<QyResultSlots>
61
- > & Plugin
62
-
63
- export { QyResult }
64
- export default QyResult
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType
7
+ } from 'vue'
8
+ import type { StyleValue } from 'vue'
9
+
10
+ export type QyResultStatus =
11
+ | 'success'
12
+ | 'warning'
13
+ | 'info'
14
+ | 'error'
15
+ | '401'
16
+ | '403'
17
+ | '404'
18
+ | '500'
19
+
20
+ export interface QyResultProps {
21
+ status?: QyResultStatus
22
+ title?: string
23
+ description?: string
24
+ image?: string
25
+ imageAlt?: string
26
+ }
27
+
28
+ export interface QyResultAttrs {
29
+ class?: unknown
30
+ style?: StyleValue
31
+ id?: string
32
+ role?: string
33
+ title?: string
34
+ [key: `data-${string}`]: unknown
35
+ [key: `aria-${string}`]: unknown
36
+ }
37
+
38
+ export interface QyResultSlots {
39
+ visual?: () => unknown
40
+ title?: () => unknown
41
+ description?: () => unknown
42
+ actions?: () => unknown
43
+ }
44
+
45
+ type QyResultComponentProps = QyResultProps & QyResultAttrs
46
+
47
+ declare const QyResult: DefineComponent<
48
+ QyResultComponentProps,
49
+ {},
50
+ {},
51
+ {},
52
+ {},
53
+ ComponentOptionsMixin,
54
+ ComponentOptionsMixin,
55
+ {},
56
+ string,
57
+ PublicProps,
58
+ QyResultComponentProps,
59
+ {},
60
+ SlotsType<QyResultSlots>
61
+ > & Plugin
62
+
63
+ export { QyResult }
64
+ export default QyResult