3h1-ui 1.2.6 → 2.0.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.
Files changed (166) hide show
  1. package/es/{ui/types/global.d.ts → global.d.ts} +102 -102
  2. package/es/{ui/types/index.d.ts → index.d.ts} +28 -28
  3. package/es/index.js +7751 -5410
  4. package/es/style.css +853 -625
  5. package/lib/global.d.ts +102 -0
  6. package/lib/index.d.ts +28 -0
  7. package/lib/index.js +7718 -5380
  8. package/package.json +8 -6
  9. package/es/ui/index.d.ts +0 -20
  10. package/es/ui/src/Basic/index.d.ts +0 -4
  11. package/es/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
  12. package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
  13. package/es/ui/src/Button/index.d.ts +0 -5
  14. package/es/ui/src/Button/src/BasicButton.vue.d.ts +0 -2
  15. package/es/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
  16. package/es/ui/src/Button/src/props.d.ts +0 -37
  17. package/es/ui/src/ClickOutSide/index.d.ts +0 -2
  18. package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
  19. package/es/ui/src/Container/index.d.ts +0 -5
  20. package/es/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
  21. package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
  22. package/es/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
  23. package/es/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
  24. package/es/ui/src/Container/src/typing.d.ts +0 -15
  25. package/es/ui/src/ContextMenu/index.d.ts +0 -3
  26. package/es/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
  27. package/es/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
  28. package/es/ui/src/ContextMenu/src/typing.d.ts +0 -33
  29. package/es/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
  30. package/es/ui/src/CountDown/index.d.ts +0 -3
  31. package/es/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
  32. package/es/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
  33. package/es/ui/src/CountDown/src/useCountdown.d.ts +0 -9
  34. package/es/ui/src/CountTo/index.d.ts +0 -2
  35. package/es/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
  36. package/es/ui/src/Cropper/index.d.ts +0 -4
  37. package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
  38. package/es/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
  39. package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -73
  40. package/es/ui/src/Cropper/src/typing.d.ts +0 -6
  41. package/es/ui/src/Description/index.d.ts +0 -4
  42. package/es/ui/src/Description/src/Description.vue.d.ts +0 -101
  43. package/es/ui/src/Description/src/typing.d.ts +0 -39
  44. package/es/ui/src/Description/src/useDescription.d.ts +0 -2
  45. package/es/ui/src/Drawer/index.d.ts +0 -3
  46. package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
  47. package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
  48. package/es/ui/src/Drawer/src/props.d.ts +0 -115
  49. package/es/ui/src/Drawer/src/typing.d.ts +0 -177
  50. package/es/ui/src/Drawer/src/useDrawer.d.ts +0 -6
  51. package/es/ui/src/Dropdown/index.d.ts +0 -3
  52. package/es/ui/src/Dropdown/src/typing.d.ts +0 -9
  53. package/es/ui/src/Form/index.d.ts +0 -13
  54. package/es/ui/src/Form/src/BasicForm.vue.d.ts +0 -2
  55. package/es/ui/src/Form/src/componentMap.d.ts +0 -6
  56. package/es/ui/src/Form/src/components/ApiCascader.vue.d.ts +0 -2
  57. package/es/ui/src/Form/src/components/ApiModalSelect/DeptTree.vue.d.ts +0 -130
  58. package/es/ui/src/Form/src/components/ApiModalSelect/Table.vue.d.ts +0 -11
  59. package/es/ui/src/Form/src/components/ApiRadioGroup.vue.d.ts +0 -2
  60. package/es/ui/src/Form/src/components/ApiSelect.vue.d.ts +0 -2
  61. package/es/ui/src/Form/src/components/ApiTransfer.vue.d.ts +0 -2
  62. package/es/ui/src/Form/src/components/ApiTree.vue.d.ts +0 -2
  63. package/es/ui/src/Form/src/components/ApiTreeSelect.vue.d.ts +0 -2
  64. package/es/ui/src/Form/src/components/FormAction.vue.d.ts +0 -2
  65. package/es/ui/src/Form/src/components/FormItem.vue.d.ts +0 -72
  66. package/es/ui/src/Form/src/components/RadioButtonGroup.vue.d.ts +0 -35
  67. package/es/ui/src/Form/src/helper.d.ts +0 -14
  68. package/es/ui/src/Form/src/hooks/useAutoFocus.d.ts +0 -10
  69. package/es/ui/src/Form/src/hooks/useComponentRegister.d.ts +0 -3
  70. package/es/ui/src/Form/src/hooks/useForm.d.ts +0 -10
  71. package/es/ui/src/Form/src/hooks/useFormContext.d.ts +0 -8
  72. package/es/ui/src/Form/src/hooks/useFormEvents.d.ts +0 -28
  73. package/es/ui/src/Form/src/hooks/useFormValues.d.ts +0 -13
  74. package/es/ui/src/Form/src/hooks/useLabelWidth.d.ts +0 -318
  75. package/es/ui/src/Form/src/props.d.ts +0 -2
  76. package/es/ui/src/Form/src/types/hooks.d.ts +0 -6
  77. package/es/ui/src/Icon/data/icons.data.d.ts +0 -2
  78. package/es/ui/src/Icon/index.d.ts +0 -5
  79. package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
  80. package/es/ui/src/Loading/index.d.ts +0 -4
  81. package/es/ui/src/Loading/src/Loading.vue.d.ts +0 -57
  82. package/es/ui/src/Loading/src/createLoading.d.ts +0 -13
  83. package/es/ui/src/Loading/src/typing.d.ts +0 -9
  84. package/es/ui/src/Loading/src/useLoading.d.ts +0 -11
  85. package/es/ui/src/Modal/index.d.ts +0 -4
  86. package/es/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
  87. package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
  88. package/es/ui/src/Modal/src/components/Modal.d.ts +0 -10
  89. package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
  90. package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +0 -14
  91. package/es/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
  92. package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
  93. package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
  94. package/es/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
  95. package/es/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
  96. package/es/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
  97. package/es/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
  98. package/es/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
  99. package/es/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
  100. package/es/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
  101. package/es/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
  102. package/es/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
  103. package/es/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
  104. package/es/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
  105. package/es/ui/src/Modal/src/props.d.ts +0 -34
  106. package/es/ui/src/Modal/src/typing.d.ts +0 -173
  107. package/es/ui/src/Modal/src/utils/index.d.ts +0 -5
  108. package/es/ui/src/Modal/src/utils/is.d.ts +0 -13
  109. package/es/ui/src/Modal/src/utils/log.d.ts +0 -2
  110. package/es/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
  111. package/es/ui/src/Page/index.d.ts +0 -4
  112. package/es/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
  113. package/es/ui/src/Scrollbar/index.d.ts +0 -6
  114. package/es/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
  115. package/es/ui/src/Scrollbar/src/bar.d.ts +0 -14
  116. package/es/ui/src/Scrollbar/src/types.d.ts +0 -18
  117. package/es/ui/src/Scrollbar/src/util.d.ts +0 -8
  118. package/es/ui/src/StrengthMeter/index.d.ts +0 -2
  119. package/es/ui/src/Table/index.d.ts +0 -11
  120. package/es/ui/src/Table/src/BasicTable.vue.d.ts +0 -2
  121. package/es/ui/src/Table/src/componentMap.d.ts +0 -6
  122. package/es/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
  123. package/es/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
  124. package/es/ui/src/Table/src/components/TableAction.vue.d.ts +0 -2
  125. package/es/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
  126. package/es/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
  127. package/es/ui/src/Table/src/components/editable/helper.d.ts +0 -5
  128. package/es/ui/src/Table/src/components/editable/index.d.ts +0 -22
  129. package/es/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
  130. package/es/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
  131. package/es/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
  132. package/es/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
  133. package/es/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
  134. package/es/ui/src/Table/src/const.d.ts +0 -22
  135. package/es/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
  136. package/es/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
  137. package/es/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
  138. package/es/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
  139. package/es/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
  140. package/es/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
  141. package/es/ui/src/Table/src/hooks/useTable.d.ts +0 -17
  142. package/es/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
  143. package/es/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
  144. package/es/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
  145. package/es/ui/src/Table/src/hooks/useTableForm.d.ts +0 -8
  146. package/es/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
  147. package/es/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
  148. package/es/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
  149. package/es/ui/src/Table/src/props.d.ts +0 -2
  150. package/es/ui/src/Table/src/types/componentType.d.ts +0 -1
  151. package/es/ui/src/Table/src/types/pagination.d.ts +0 -93
  152. package/es/ui/src/Table/src/types/table.d.ts +0 -372
  153. package/es/ui/src/Table/src/types/tableAction.d.ts +0 -28
  154. package/es/ui/src/Transition/index.d.ts +0 -368
  155. package/es/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
  156. package/es/ui/src/Transition/src/CreateTransition.d.ts +0 -47
  157. package/es/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
  158. package/es/ui/src/Tree/index.d.ts +0 -12
  159. package/es/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
  160. package/es/ui/src/Tree/src/TreeIcon.d.ts +0 -2
  161. package/es/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
  162. package/es/ui/src/Tree/src/types/tree.d.ts +0 -105
  163. package/es/ui/src/Tree/style/index.d.ts +0 -0
  164. package/es/ui/src/directives/clickOutside.d.ts +0 -3
  165. package/es/ui/src/directives/index.d.ts +0 -1
  166. package/es/ui/src/enums/sizeEnum.d.ts +0 -11
@@ -1,102 +1,102 @@
1
- import type {
2
- ComponentRenderProxy,
3
- VNode,
4
- VNodeChild,
5
- ComponentPublicInstance,
6
- FunctionalComponent,
7
- PropType as VuePropType
8
- } from 'vue'
9
-
10
- declare global {
11
- const __APP_INFO__: {
12
- pkg: {
13
- name: string
14
- version: string
15
- dependencies: Recordable<string>
16
- devDependencies: Recordable<string>
17
- }
18
- lastBuildTime: string
19
- }
20
- // declare interface Window {
21
- // // Global vue app instance
22
- // __APP__: App<Element>;
23
- // }
24
-
25
- // vue
26
- declare type PropType<T> = VuePropType<T>
27
- declare type VueNode = VNodeChild | JSX.Element
28
-
29
- export type Writable<T> = {
30
- -readonly [P in keyof T]: T[P]
31
- }
32
-
33
- declare type Nullable<T> = T | null
34
- declare type NonNullable<T> = T extends null | undefined ? never : T
35
- declare type Recordable<T = any> = Record<string, T>
36
- declare type ReadonlyRecordable<T = any> = {
37
- readonly [key: string]: T
38
- }
39
- declare type Indexable<T = any> = {
40
- [key: string]: T
41
- }
42
- declare type DeepPartial<T> = {
43
- [P in keyof T]?: DeepPartial<T[P]>
44
- }
45
- declare type TimeoutHandle = ReturnType<typeof setTimeout>
46
- declare type IntervalHandle = ReturnType<typeof setInterval>
47
-
48
- declare interface ChangeEvent extends Event {
49
- target: HTMLInputElement
50
- }
51
-
52
- declare interface WheelEvent {
53
- path?: EventTarget[]
54
- }
55
- interface ImportMetaEnv extends ViteEnv {
56
- __: unknown
57
- }
58
-
59
- declare interface ViteEnv {
60
- VITE_PORT: number
61
- VITE_USE_MOCK: boolean
62
- VITE_USE_PWA: boolean
63
- VITE_PUBLIC_PATH: string
64
- VITE_PROXY: [string, string][]
65
- VITE_GLOB_APP_TITLE: string
66
- VITE_GLOB_APP_SHORT_NAME: string
67
- VITE_GLOB_COPY_RIGHT: string
68
- VITE_USE_CDN: boolean
69
- VITE_DROP_CONSOLE: boolean
70
- VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
71
- VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
72
- VITE_LEGACY: boolean
73
- VITE_USE_IMAGEMIN: boolean
74
- VITE_GENERATE_UI: string
75
- }
76
-
77
- declare function parseInt(s: string | number, radix?: number): number
78
-
79
- declare function parseFloat(string: string | number): number
80
-
81
- namespace JSX {
82
- // tslint:disable no-empty-interface
83
- type Element = VNode
84
- // tslint:disable no-empty-interface
85
- type ElementClass = ComponentRenderProxy
86
- interface ElementAttributesProperty {
87
- $props: any
88
- }
89
- interface IntrinsicElements {
90
- [elem: string]: any
91
- }
92
- interface IntrinsicAttributes {
93
- [elem: string]: any
94
- }
95
- }
96
- }
97
-
98
- declare module 'vue' {
99
- export type JSXComponent<Props = any> =
100
- | { new (): ComponentPublicInstance<Props> }
101
- | FunctionalComponent<Props>
102
- }
1
+ import type {
2
+ ComponentRenderProxy,
3
+ VNode,
4
+ VNodeChild,
5
+ ComponentPublicInstance,
6
+ FunctionalComponent,
7
+ PropType as VuePropType
8
+ } from 'vue'
9
+
10
+ declare global {
11
+ const __APP_INFO__: {
12
+ pkg: {
13
+ name: string
14
+ version: string
15
+ dependencies: Recordable<string>
16
+ devDependencies: Recordable<string>
17
+ }
18
+ lastBuildTime: string
19
+ }
20
+ // declare interface Window {
21
+ // // Global vue app instance
22
+ // __APP__: App<Element>;
23
+ // }
24
+
25
+ // vue
26
+ declare type PropType<T> = VuePropType<T>
27
+ declare type VueNode = VNodeChild | JSX.Element
28
+
29
+ export type Writable<T> = {
30
+ -readonly [P in keyof T]: T[P]
31
+ }
32
+
33
+ declare type Nullable<T> = T | null
34
+ declare type NonNullable<T> = T extends null | undefined ? never : T
35
+ declare type Recordable<T = any> = Record<string, T>
36
+ declare type ReadonlyRecordable<T = any> = {
37
+ readonly [key: string]: T
38
+ }
39
+ declare type Indexable<T = any> = {
40
+ [key: string]: T
41
+ }
42
+ declare type DeepPartial<T> = {
43
+ [P in keyof T]?: DeepPartial<T[P]>
44
+ }
45
+ declare type TimeoutHandle = ReturnType<typeof setTimeout>
46
+ declare type IntervalHandle = ReturnType<typeof setInterval>
47
+
48
+ declare interface ChangeEvent extends Event {
49
+ target: HTMLInputElement
50
+ }
51
+
52
+ declare interface WheelEvent {
53
+ path?: EventTarget[]
54
+ }
55
+ interface ImportMetaEnv extends ViteEnv {
56
+ __: unknown
57
+ }
58
+
59
+ declare interface ViteEnv {
60
+ VITE_PORT: number
61
+ VITE_USE_MOCK: boolean
62
+ VITE_USE_PWA: boolean
63
+ VITE_PUBLIC_PATH: string
64
+ VITE_PROXY: [string, string][]
65
+ VITE_GLOB_APP_TITLE: string
66
+ VITE_GLOB_APP_SHORT_NAME: string
67
+ VITE_GLOB_COPY_RIGHT: string
68
+ VITE_USE_CDN: boolean
69
+ VITE_DROP_CONSOLE: boolean
70
+ VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none'
71
+ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean
72
+ VITE_LEGACY: boolean
73
+ VITE_USE_IMAGEMIN: boolean
74
+ VITE_GENERATE_UI: string
75
+ }
76
+
77
+ declare function parseInt(s: string | number, radix?: number): number
78
+
79
+ declare function parseFloat(string: string | number): number
80
+
81
+ namespace JSX {
82
+ // tslint:disable no-empty-interface
83
+ type Element = VNode
84
+ // tslint:disable no-empty-interface
85
+ type ElementClass = ComponentRenderProxy
86
+ interface ElementAttributesProperty {
87
+ $props: any
88
+ }
89
+ interface IntrinsicElements {
90
+ [elem: string]: any
91
+ }
92
+ interface IntrinsicAttributes {
93
+ [elem: string]: any
94
+ }
95
+ }
96
+ }
97
+
98
+ declare module 'vue' {
99
+ export type JSXComponent<Props = any> =
100
+ | { new (): ComponentPublicInstance<Props> }
101
+ | FunctionalComponent<Props>
102
+ }
@@ -1,28 +1,28 @@
1
- declare interface Fn<T = any, R = T> {
2
- (...arg: T[]): R
3
- }
4
-
5
- declare interface PromiseFn<T = any, R = T> {
6
- (...arg: T[]): Promise<R>
7
- }
8
-
9
- declare type RefType<T> = T | null
10
-
11
- declare type LabelValueOptions = {
12
- label: string
13
- value: any
14
- [key: string]: string | number | boolean
15
- }[]
16
-
17
- declare type EmitType = (event: string, ...args: any[]) => void
18
-
19
- declare type TargetContext = '_self' | '_blank'
20
-
21
- declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
22
- $el: T
23
- }
24
-
25
- declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
26
- ComponentElRef<T> | null
27
-
28
- declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
1
+ declare interface Fn<T = any, R = T> {
2
+ (...arg: T[]): R
3
+ }
4
+
5
+ declare interface PromiseFn<T = any, R = T> {
6
+ (...arg: T[]): Promise<R>
7
+ }
8
+
9
+ declare type RefType<T> = T | null
10
+
11
+ declare type LabelValueOptions = {
12
+ label: string
13
+ value: any
14
+ [key: string]: string | number | boolean
15
+ }[]
16
+
17
+ declare type EmitType = (event: string, ...args: any[]) => void
18
+
19
+ declare type TargetContext = '_self' | '_blank'
20
+
21
+ declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
22
+ $el: T
23
+ }
24
+
25
+ declare type ComponentRef<T extends HTMLElement = HTMLDivElement> =
26
+ ComponentElRef<T> | null
27
+
28
+ declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>