3h1-ui 1.2.0 → 1.2.2

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 (144) hide show
  1. package/es/index.js +7 -9
  2. package/es/ui/src/Button/index.d.ts +1 -48
  3. package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +1 -1
  4. package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +3 -55
  5. package/es/ui/src/Drawer/index.d.ts +0 -1
  6. package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +1 -1
  7. package/es/ui/src/Modal/index.d.ts +4 -0
  8. package/es/ui/src/Modal/src/components/Modal.d.ts +10 -0
  9. package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +1 -1
  10. package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +14 -0
  11. package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +1 -1
  12. package/es/ui/src/Modal/src/props.d.ts +34 -0
  13. package/es/ui/src/Table/src/props.d.ts +2 -0
  14. package/lib/index.js +5 -7
  15. package/package.json +2 -2
  16. package/lib/ui/index.d.ts +0 -20
  17. package/lib/ui/src/Basic/index.d.ts +0 -4
  18. package/lib/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
  19. package/lib/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
  20. package/lib/ui/src/Button/index.d.ts +0 -51
  21. package/lib/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
  22. package/lib/ui/src/Button/src/props.d.ts +0 -37
  23. package/lib/ui/src/ClickOutSide/index.d.ts +0 -2
  24. package/lib/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
  25. package/lib/ui/src/Container/index.d.ts +0 -5
  26. package/lib/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
  27. package/lib/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
  28. package/lib/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
  29. package/lib/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
  30. package/lib/ui/src/Container/src/typing.d.ts +0 -15
  31. package/lib/ui/src/ContextMenu/index.d.ts +0 -3
  32. package/lib/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
  33. package/lib/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
  34. package/lib/ui/src/ContextMenu/src/typing.d.ts +0 -33
  35. package/lib/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
  36. package/lib/ui/src/CountDown/index.d.ts +0 -3
  37. package/lib/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
  38. package/lib/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
  39. package/lib/ui/src/CountDown/src/useCountdown.d.ts +0 -9
  40. package/lib/ui/src/CountTo/index.d.ts +0 -2
  41. package/lib/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
  42. package/lib/ui/src/Cropper/index.d.ts +0 -4
  43. package/lib/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
  44. package/lib/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
  45. package/lib/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -125
  46. package/lib/ui/src/Cropper/src/typing.d.ts +0 -6
  47. package/lib/ui/src/Description/index.d.ts +0 -4
  48. package/lib/ui/src/Description/src/Description.vue.d.ts +0 -101
  49. package/lib/ui/src/Description/src/typing.d.ts +0 -39
  50. package/lib/ui/src/Description/src/useDescription.d.ts +0 -2
  51. package/lib/ui/src/Drawer/index.d.ts +0 -4
  52. package/lib/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
  53. package/lib/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
  54. package/lib/ui/src/Drawer/src/props.d.ts +0 -115
  55. package/lib/ui/src/Drawer/src/typing.d.ts +0 -177
  56. package/lib/ui/src/Drawer/src/useDrawer.d.ts +0 -6
  57. package/lib/ui/src/Dropdown/index.d.ts +0 -3
  58. package/lib/ui/src/Dropdown/src/typing.d.ts +0 -9
  59. package/lib/ui/src/Icon/data/icons.data.d.ts +0 -2
  60. package/lib/ui/src/Icon/index.d.ts +0 -5
  61. package/lib/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
  62. package/lib/ui/src/Loading/index.d.ts +0 -4
  63. package/lib/ui/src/Loading/src/Loading.vue.d.ts +0 -57
  64. package/lib/ui/src/Loading/src/createLoading.d.ts +0 -13
  65. package/lib/ui/src/Loading/src/typing.d.ts +0 -9
  66. package/lib/ui/src/Loading/src/useLoading.d.ts +0 -11
  67. package/lib/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
  68. package/lib/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
  69. package/lib/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
  70. package/lib/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
  71. package/lib/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
  72. package/lib/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
  73. package/lib/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
  74. package/lib/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
  75. package/lib/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
  76. package/lib/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
  77. package/lib/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
  78. package/lib/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
  79. package/lib/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
  80. package/lib/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
  81. package/lib/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
  82. package/lib/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
  83. package/lib/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
  84. package/lib/ui/src/Modal/src/typing.d.ts +0 -173
  85. package/lib/ui/src/Modal/src/utils/index.d.ts +0 -5
  86. package/lib/ui/src/Modal/src/utils/is.d.ts +0 -13
  87. package/lib/ui/src/Modal/src/utils/log.d.ts +0 -2
  88. package/lib/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
  89. package/lib/ui/src/Page/index.d.ts +0 -4
  90. package/lib/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
  91. package/lib/ui/src/Scrollbar/index.d.ts +0 -6
  92. package/lib/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
  93. package/lib/ui/src/Scrollbar/src/bar.d.ts +0 -14
  94. package/lib/ui/src/Scrollbar/src/types.d.ts +0 -18
  95. package/lib/ui/src/Scrollbar/src/util.d.ts +0 -8
  96. package/lib/ui/src/StrengthMeter/index.d.ts +0 -2
  97. package/lib/ui/src/Table/index.d.ts +0 -11
  98. package/lib/ui/src/Table/src/componentMap.d.ts +0 -6
  99. package/lib/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
  100. package/lib/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
  101. package/lib/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
  102. package/lib/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
  103. package/lib/ui/src/Table/src/components/editable/helper.d.ts +0 -5
  104. package/lib/ui/src/Table/src/components/editable/index.d.ts +0 -22
  105. package/lib/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
  106. package/lib/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
  107. package/lib/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
  108. package/lib/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
  109. package/lib/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
  110. package/lib/ui/src/Table/src/const.d.ts +0 -22
  111. package/lib/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
  112. package/lib/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
  113. package/lib/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
  114. package/lib/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
  115. package/lib/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
  116. package/lib/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
  117. package/lib/ui/src/Table/src/hooks/useTable.d.ts +0 -17
  118. package/lib/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
  119. package/lib/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
  120. package/lib/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
  121. package/lib/ui/src/Table/src/hooks/useTableForm.d.ts +0 -9
  122. package/lib/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
  123. package/lib/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
  124. package/lib/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
  125. package/lib/ui/src/Table/src/types/componentType.d.ts +0 -1
  126. package/lib/ui/src/Table/src/types/pagination.d.ts +0 -93
  127. package/lib/ui/src/Table/src/types/table.d.ts +0 -372
  128. package/lib/ui/src/Table/src/types/tableAction.d.ts +0 -28
  129. package/lib/ui/src/Transition/index.d.ts +0 -368
  130. package/lib/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
  131. package/lib/ui/src/Transition/src/CreateTransition.d.ts +0 -47
  132. package/lib/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
  133. package/lib/ui/src/Tree/index.d.ts +0 -12
  134. package/lib/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
  135. package/lib/ui/src/Tree/src/TreeIcon.d.ts +0 -2
  136. package/lib/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
  137. package/lib/ui/src/Tree/src/types/tree.d.ts +0 -105
  138. package/lib/ui/src/Tree/style/index.d.ts +0 -0
  139. package/lib/ui/src/directives/clickOutside.d.ts +0 -3
  140. package/lib/ui/src/directives/index.d.ts +0 -1
  141. package/lib/ui/src/enums/sizeEnum.d.ts +0 -11
  142. package/lib/ui/types/global.d.ts +0 -102
  143. package/lib/ui/types/index.d.ts +0 -28
  144. /package/{lib/ui/src/Button/src/BasicButton.vue.d.ts → es/ui/src/Table/src/BasicTable.vue.d.ts} +0 -0
@@ -1,105 +0,0 @@
1
- import type { ExtractPropTypes } from 'vue';
2
- import type { TreeDataItem } from 'ant-design-vue/es/tree/Tree';
3
- export declare enum ToolbarEnum {
4
- SELECT_ALL = 0,
5
- UN_SELECT_ALL = 1,
6
- EXPAND_ALL = 2,
7
- UN_EXPAND_ALL = 3,
8
- CHECK_STRICTLY = 4,
9
- CHECK_UN_STRICTLY = 5
10
- }
11
- export declare const treeEmits: string[];
12
- export interface TreeState {
13
- expandedKeys: KeyType[];
14
- selectedKeys: KeyType[];
15
- checkedKeys: CheckKeys;
16
- checkStrictly: boolean;
17
- }
18
- export interface FieldNames {
19
- children?: string;
20
- title?: string;
21
- key?: string;
22
- }
23
- export declare type KeyType = string | number;
24
- export declare type CheckKeys = KeyType[] | {
25
- checked: string[] | number[];
26
- halfChecked: string[] | number[];
27
- };
28
- export declare const treeProps: {
29
- value: import("@shy-plugins/utils").BuildPropReturn<PropType<KeyType[] | CheckKeys>, (() => KeyType[]) | (() => KeyType[]) | (() => {
30
- checked: string[] | number[];
31
- halfChecked: string[] | number[];
32
- }), unknown, unknown, unknown>;
33
- renderIcon: import("@shy-plugins/utils").BuildPropReturn<PropType<(params: Recordable) => string>, ((params: Recordable) => string) | (() => (params: Recordable) => string), unknown, unknown, unknown>;
34
- helpMessage: import("@shy-plugins/utils").BuildPropReturn<PropType<string | string[]>, string | (() => string), unknown, unknown, unknown>;
35
- title: import("@shy-plugins/utils").BuildPropReturn<StringConstructor, string | (() => string), unknown, unknown, unknown>;
36
- toolbar: BooleanConstructor;
37
- search: BooleanConstructor;
38
- searchValue: import("@shy-plugins/utils").BuildPropReturn<StringConstructor, string | (() => string), unknown, unknown, unknown>;
39
- checkStrictly: BooleanConstructor;
40
- clickRowToExpand: import("@shy-plugins/utils").BuildPropReturn<BooleanConstructor, boolean | (() => false) | (() => true), unknown, unknown, unknown>;
41
- checkable: BooleanConstructor;
42
- defaultExpandLevel: import("@shy-plugins/utils").BuildPropReturn<PropType<string | number>, string | (() => string), unknown, unknown, unknown>;
43
- defaultExpandAll: BooleanConstructor;
44
- fieldNames: import("@shy-plugins/utils").BuildPropReturn<PropType<FieldNames>, unknown, unknown, unknown, unknown>;
45
- treeData: import("@shy-plugins/utils").BuildPropReturn<PropType<import("ant-design-vue/es/vc-tree/interface").DataNode[]>, () => import("ant-design-vue/es/vc-tree/interface").DataNode[], unknown, unknown, unknown>;
46
- actionList: import("@shy-plugins/utils").BuildPropReturn<PropType<TreeActionItem[]>, () => any[], unknown, unknown, unknown>;
47
- expandedKeys: import("@shy-plugins/utils").BuildPropReturn<PropType<KeyType[]>, () => any[], unknown, unknown, unknown>;
48
- selectedKeys: import("@shy-plugins/utils").BuildPropReturn<PropType<KeyType[]>, () => any[], unknown, unknown, unknown>;
49
- checkedKeys: import("@shy-plugins/utils").BuildPropReturn<PropType<CheckKeys>, () => any[], unknown, unknown, unknown>;
50
- beforeRightClick: import("@shy-plugins/utils").BuildPropReturn<PropType<(...arg: any) => ContextMenuItem[] | ContextMenuOptions>, any, unknown, unknown, unknown>;
51
- rightMenuList: import("@shy-plugins/utils").BuildPropReturn<PropType<ContextMenuItem[]>, () => ContextMenuItem[], unknown, unknown, unknown>;
52
- filterFn: import("@shy-plugins/utils").BuildPropReturn<PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>, any, unknown, unknown, unknown>;
53
- highlight: import("@shy-plugins/utils").BuildPropReturn<PropType<String | Boolean>, boolean | (() => false) | (() => true), unknown, unknown, unknown>;
54
- expandOnSearch: BooleanConstructor;
55
- checkOnSearch: BooleanConstructor;
56
- selectedOnSearch: BooleanConstructor;
57
- loading: import("@shy-plugins/utils").BuildPropReturn<BooleanConstructor, boolean | (() => false) | (() => true), unknown, unknown, unknown>;
58
- treeWrapperClassName: StringConstructor;
59
- };
60
- export declare type TreeProps = ExtractPropTypes<typeof treeProps>;
61
- export interface ContextMenuItem {
62
- label: string;
63
- icon?: string;
64
- hidden?: boolean;
65
- disabled?: boolean;
66
- handler?: Fn;
67
- divider?: boolean;
68
- children?: ContextMenuItem[];
69
- }
70
- export interface ContextMenuOptions {
71
- icon?: string;
72
- styles?: any;
73
- items?: ContextMenuItem[];
74
- }
75
- export interface TreeItem extends TreeDataItem {
76
- icon?: any;
77
- }
78
- export interface TreeActionItem {
79
- render: (record: Recordable) => any;
80
- show?: boolean | ((record: Recordable) => boolean);
81
- }
82
- export interface InsertNodeParams {
83
- parentKey: string | null;
84
- node: TreeDataItem;
85
- list?: TreeDataItem[];
86
- push?: 'push' | 'unshift';
87
- }
88
- export interface TreeActionType {
89
- checkAll: (checkAll: boolean) => void;
90
- expandAll: (expandAll: boolean) => void;
91
- setExpandedKeys: (keys: KeyType[]) => void;
92
- getExpandedKeys: () => KeyType[];
93
- setSelectedKeys: (keys: KeyType[]) => void;
94
- getSelectedKeys: () => KeyType[];
95
- setCheckedKeys: (keys: CheckKeys) => void;
96
- getCheckedKeys: () => CheckKeys;
97
- filterByLevel: (level: number) => void;
98
- insertNodeByKey: (opt: InsertNodeParams) => void;
99
- insertNodesByKey: (opt: InsertNodeParams) => void;
100
- deleteNodeByKey: (key: string) => void;
101
- updateNodeByKey: (key: string, node: Omit<TreeDataItem, 'key'>) => void;
102
- setSearchValue: (value: string) => void;
103
- getSearchValue: () => string;
104
- getSelectedNode: (key: KeyType, treeList?: TreeItem[], selectNode?: TreeItem | null) => TreeItem | null;
105
- }
File without changes
@@ -1,3 +0,0 @@
1
- import type { ObjectDirective } from 'vue';
2
- declare const ClickOutside: ObjectDirective;
3
- export default ClickOutside;
@@ -1 +0,0 @@
1
- export { default as clickOutside } from './clickOutside';
@@ -1,11 +0,0 @@
1
- export declare enum SizeEnum {
2
- DEFAULT = "default",
3
- SMALL = "small",
4
- LARGE = "large"
5
- }
6
- export declare enum SizeNumberEnum {
7
- DEFAULT = 48,
8
- SMALL = 16,
9
- LARGE = 64
10
- }
11
- export declare const sizeMap: Map<SizeEnum, SizeNumberEnum>;
@@ -1,102 +0,0 @@
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 +0,0 @@
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>