@hbdlzy/ui-core 0.1.3 → 0.1.5

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 (82) hide show
  1. package/README.md +7 -0
  2. package/components.manifest.json +10 -0
  3. package/dist/components/BaseCard/BaseCard.types.d.ts +36 -36
  4. package/dist/components/BaseCard/BaseCard.vue.d.ts +122 -122
  5. package/dist/components/BaseCard/index.d.ts +3 -3
  6. package/dist/components/BaseEChart/BaseEChart.types.d.ts +26 -26
  7. package/dist/components/BaseEChart/BaseEChart.vue.d.ts +66 -66
  8. package/dist/components/BaseEChart/index.d.ts +3 -3
  9. package/dist/components/BaseExportButton/BaseExportButton.types.d.ts +21 -21
  10. package/dist/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -4
  11. package/dist/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -128
  12. package/dist/components/BaseExportButton/index.d.ts +5 -5
  13. package/dist/components/BaseTable/BaseTable.types.d.ts +163 -163
  14. package/dist/components/BaseTable/BaseTable.vue.d.ts +157 -157
  15. package/dist/components/BaseTable/index.d.ts +3 -3
  16. package/dist/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -25
  17. package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -85
  18. package/dist/components/OutlinedCascader/index.d.ts +3 -3
  19. package/dist/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -27
  20. package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -88
  21. package/dist/components/OutlinedDatePicker/index.d.ts +3 -3
  22. package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -26
  23. package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -97
  24. package/dist/components/OutlinedDateTimePicker/index.d.ts +3 -3
  25. package/dist/components/OutlinedInput/OutlinedInput.types.d.ts +29 -29
  26. package/dist/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -97
  27. package/dist/components/OutlinedInput/index.d.ts +3 -3
  28. package/dist/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -38
  29. package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -116
  30. package/dist/components/OutlinedSelect/index.d.ts +3 -3
  31. package/dist/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -28
  32. package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -94
  33. package/dist/components/OutlinedTimePicker/index.d.ts +3 -3
  34. package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -46
  35. package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -137
  36. package/dist/components/OutlinedTreeSelect/index.d.ts +3 -3
  37. package/dist/echarts/index.d.ts +9 -9
  38. package/dist/excel/exportExcel.d.ts +18 -18
  39. package/dist/index.cjs +42 -1
  40. package/dist/index.d.ts +27 -26
  41. package/dist/index.js +169 -1
  42. package/dist/ripple/index.d.ts +2 -0
  43. package/package.json +6 -2
  44. package/src/index.ts +5 -0
  45. package/src/ripple/index.ts +213 -0
  46. package/src/components/BaseCard/BaseCard.types.d.ts +0 -36
  47. package/src/components/BaseCard/BaseCard.vue.d.ts +0 -122
  48. package/src/components/BaseCard/index.d.ts +0 -3
  49. package/src/components/BaseEChart/BaseEChart.types.d.ts +0 -26
  50. package/src/components/BaseEChart/BaseEChart.vue.d.ts +0 -66
  51. package/src/components/BaseEChart/index.d.ts +0 -3
  52. package/src/components/BaseExportButton/BaseExportButton.types.d.ts +0 -21
  53. package/src/components/BaseExportButton/BaseExportButton.utils.d.ts +0 -4
  54. package/src/components/BaseExportButton/BaseExportButton.vue.d.ts +0 -128
  55. package/src/components/BaseExportButton/index.d.ts +0 -5
  56. package/src/components/BaseTable/BaseTable.types.d.ts +0 -163
  57. package/src/components/BaseTable/BaseTable.vue.d.ts +0 -157
  58. package/src/components/BaseTable/index.d.ts +0 -3
  59. package/src/components/OutlinedCascader/OutlinedCascader.types.d.ts +0 -25
  60. package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +0 -85
  61. package/src/components/OutlinedCascader/index.d.ts +0 -3
  62. package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +0 -27
  63. package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +0 -88
  64. package/src/components/OutlinedDatePicker/index.d.ts +0 -3
  65. package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +0 -26
  66. package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +0 -97
  67. package/src/components/OutlinedDateTimePicker/index.d.ts +0 -3
  68. package/src/components/OutlinedInput/OutlinedInput.types.d.ts +0 -29
  69. package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +0 -97
  70. package/src/components/OutlinedInput/index.d.ts +0 -3
  71. package/src/components/OutlinedSelect/OutlinedSelect.types.d.ts +0 -38
  72. package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +0 -116
  73. package/src/components/OutlinedSelect/index.d.ts +0 -3
  74. package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +0 -28
  75. package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +0 -94
  76. package/src/components/OutlinedTimePicker/index.d.ts +0 -3
  77. package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +0 -46
  78. package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +0 -137
  79. package/src/components/OutlinedTreeSelect/index.d.ts +0 -3
  80. package/src/echarts/index.d.ts +0 -9
  81. package/src/excel/exportExcel.d.ts +0 -18
  82. package/src/index.d.ts +0 -26
@@ -1,46 +0,0 @@
1
- export type OutlinedTreeSelectCssValue = string | number;
2
- export type OutlinedTreeSelectOptionValue = string | number | boolean | Record<string, unknown> | null;
3
- export type OutlinedTreeSelectValue = OutlinedTreeSelectOptionValue | OutlinedTreeSelectOptionValue[];
4
- export interface OutlinedTreeSelectNode {
5
- label?: string;
6
- value?: OutlinedTreeSelectOptionValue;
7
- children?: OutlinedTreeSelectNode[];
8
- disabled?: boolean;
9
- [key: string]: unknown;
10
- }
11
- export interface OutlinedTreeSelectProps {
12
- value?: OutlinedTreeSelectValue;
13
- data?: OutlinedTreeSelectNode[];
14
- propsValue?: Record<string, unknown>;
15
- placeholder?: string;
16
- label?: string;
17
- disabled?: boolean;
18
- clearable?: boolean;
19
- filterable?: boolean;
20
- multiple?: boolean;
21
- showCheckbox?: boolean;
22
- checkStrictly?: boolean;
23
- checkOnClickNode?: boolean;
24
- defaultExpandAll?: boolean;
25
- expandOnClickNode?: boolean;
26
- renderAfterExpand?: boolean;
27
- collapseTags?: boolean;
28
- collapseTagsTooltip?: boolean;
29
- maxCollapseTags?: number;
30
- popperClass?: string;
31
- nodeKey?: string;
32
- keyValue?: string;
33
- labelValue?: string;
34
- childrenValue?: string;
35
- disabledValue?: string;
36
- inputHeight?: number;
37
- isBorder?: boolean;
38
- marginBottom?: OutlinedTreeSelectCssValue;
39
- paddingTop?: OutlinedTreeSelectCssValue;
40
- }
41
- export interface OutlinedTreeSelectExpose {
42
- focus: () => void;
43
- blur: () => void;
44
- clear: () => void;
45
- getTreeSelectRef: () => unknown | null;
46
- }
@@ -1,137 +0,0 @@
1
- import type { OutlinedTreeSelectCssValue, OutlinedTreeSelectProps, OutlinedTreeSelectValue } from './OutlinedTreeSelect.types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedTreeSelectProps>, {
3
- value: undefined;
4
- data: () => never[];
5
- propsValue: undefined;
6
- placeholder: string;
7
- label: string;
8
- disabled: boolean;
9
- clearable: boolean;
10
- filterable: boolean;
11
- multiple: boolean;
12
- showCheckbox: boolean;
13
- checkStrictly: boolean;
14
- checkOnClickNode: boolean;
15
- defaultExpandAll: boolean;
16
- expandOnClickNode: boolean;
17
- renderAfterExpand: boolean;
18
- collapseTags: boolean;
19
- collapseTagsTooltip: boolean;
20
- maxCollapseTags: number;
21
- popperClass: string;
22
- nodeKey: string;
23
- keyValue: string;
24
- labelValue: string;
25
- childrenValue: string;
26
- disabledValue: string;
27
- inputHeight: number;
28
- isBorder: boolean;
29
- marginBottom: number;
30
- paddingTop: number;
31
- }>>, {
32
- focus: () => void;
33
- blur: () => void;
34
- clear: () => void;
35
- getTreeSelectRef: () => unknown;
36
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
- input: (value: OutlinedTreeSelectValue) => void;
38
- "update:value": (value: OutlinedTreeSelectValue) => void;
39
- change: (value: OutlinedTreeSelectValue) => void;
40
- focus: (value: FocusEvent) => void;
41
- blur: (value: FocusEvent) => void;
42
- "visible-change": (value: boolean) => void;
43
- clear: () => void;
44
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedTreeSelectProps>, {
45
- value: undefined;
46
- data: () => never[];
47
- propsValue: undefined;
48
- placeholder: string;
49
- label: string;
50
- disabled: boolean;
51
- clearable: boolean;
52
- filterable: boolean;
53
- multiple: boolean;
54
- showCheckbox: boolean;
55
- checkStrictly: boolean;
56
- checkOnClickNode: boolean;
57
- defaultExpandAll: boolean;
58
- expandOnClickNode: boolean;
59
- renderAfterExpand: boolean;
60
- collapseTags: boolean;
61
- collapseTagsTooltip: boolean;
62
- maxCollapseTags: number;
63
- popperClass: string;
64
- nodeKey: string;
65
- keyValue: string;
66
- labelValue: string;
67
- childrenValue: string;
68
- disabledValue: string;
69
- inputHeight: number;
70
- isBorder: boolean;
71
- marginBottom: number;
72
- paddingTop: number;
73
- }>>> & Readonly<{
74
- onBlur?: ((value: FocusEvent) => any) | undefined;
75
- onChange?: ((value: OutlinedTreeSelectValue) => any) | undefined;
76
- onFocus?: ((value: FocusEvent) => any) | undefined;
77
- onInput?: ((value: OutlinedTreeSelectValue) => any) | undefined;
78
- onClear?: (() => any) | undefined;
79
- "onUpdate:value"?: ((value: OutlinedTreeSelectValue) => any) | undefined;
80
- "onVisible-change"?: ((value: boolean) => any) | undefined;
81
- }>, {
82
- data: import("./OutlinedTreeSelect.types").OutlinedTreeSelectNode[];
83
- label: string;
84
- disabled: boolean;
85
- defaultExpandAll: boolean;
86
- popperClass: string;
87
- value: OutlinedTreeSelectValue;
88
- placeholder: string;
89
- clearable: boolean;
90
- inputHeight: number;
91
- isBorder: boolean;
92
- marginBottom: OutlinedTreeSelectCssValue;
93
- paddingTop: OutlinedTreeSelectCssValue;
94
- multiple: boolean;
95
- collapseTags: boolean;
96
- collapseTagsTooltip: boolean;
97
- filterable: boolean;
98
- keyValue: string;
99
- labelValue: string;
100
- maxCollapseTags: number;
101
- propsValue: Record<string, unknown>;
102
- showCheckbox: boolean;
103
- checkStrictly: boolean;
104
- checkOnClickNode: boolean;
105
- expandOnClickNode: boolean;
106
- renderAfterExpand: boolean;
107
- nodeKey: string;
108
- childrenValue: string;
109
- disabledValue: string;
110
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
111
- empty?(_: {}): any;
112
- header?(_: {}): any;
113
- footer?(_: {}): any;
114
- }>;
115
- export default _default;
116
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
117
- type __VLS_TypePropsToRuntimeProps<T> = {
118
- [K in keyof T]-?: {} extends Pick<T, K> ? {
119
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
120
- } : {
121
- type: import('vue').PropType<T[K]>;
122
- required: true;
123
- };
124
- };
125
- type __VLS_WithDefaults<P, D> = {
126
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
127
- default: D[K];
128
- }> : P[K];
129
- };
130
- type __VLS_Prettify<T> = {
131
- [K in keyof T]: T[K];
132
- } & {};
133
- type __VLS_WithTemplateSlots<T, S> = T & {
134
- new (): {
135
- $slots: S;
136
- };
137
- };
@@ -1,3 +0,0 @@
1
- import OutlinedTreeSelect from './OutlinedTreeSelect.vue';
2
- export default OutlinedTreeSelect;
3
- export type { OutlinedTreeSelectCssValue, OutlinedTreeSelectExpose, OutlinedTreeSelectNode, OutlinedTreeSelectOptionValue, OutlinedTreeSelectProps, OutlinedTreeSelectValue } from './OutlinedTreeSelect.types';
@@ -1,9 +0,0 @@
1
- import * as echarts from 'echarts';
2
- import type { ECharts, EChartsInitOpts, EChartsOption, ResizeOpts, SetOptionOpts } from 'echarts';
3
- export type EChartInstance = ECharts;
4
- export type EChartOption = EChartsOption;
5
- export type EChartInitOptions = EChartsInitOpts;
6
- export type EChartLoadingOptions = Parameters<ECharts['showLoading']>[1];
7
- export type EChartResizeOptions = ResizeOpts;
8
- export type EChartSetOptionOptions = SetOptionOpts;
9
- export { echarts };
@@ -1,18 +0,0 @@
1
- export type ExcelCellValue = string | number | boolean | null | undefined | Date;
2
- export interface ExcelExportColumn<Row = Record<string, any>> {
3
- label: string;
4
- key?: string;
5
- width?: number;
6
- formatter?: (row: Row, rowIndex: number, column: ExcelExportColumn<Row>) => ExcelCellValue;
7
- children?: Array<ExcelExportColumn<Row>>;
8
- }
9
- export interface ExcelExportOptions<Row = Record<string, any>> {
10
- fileName: string;
11
- sheetName?: string;
12
- columns: Array<ExcelExportColumn<Row>>;
13
- data: Array<Row>;
14
- autoWidth?: boolean;
15
- defaultColumnWidth?: number;
16
- }
17
- export declare function exportExcel<Row = Record<string, any>>(options: ExcelExportOptions<Row>): Promise<void>;
18
- export default exportExcel;
package/src/index.d.ts DELETED
@@ -1,26 +0,0 @@
1
- export { echarts } from './echarts';
2
- export type { EChartInitOptions, EChartInstance, EChartLoadingOptions, EChartOption, EChartResizeOptions, EChartSetOptionOptions } from './echarts';
3
- export { default as BaseCard } from './components/BaseCard';
4
- export * from './components/BaseCard';
5
- export { default as BaseTable } from './components/BaseTable';
6
- export * from './components/BaseTable';
7
- export { default as BaseEChart } from './components/BaseEChart';
8
- export * from './components/BaseEChart';
9
- export { default as BaseExportButton } from './components/BaseExportButton';
10
- export * from './components/BaseExportButton';
11
- export { default as OutlinedInput } from './components/OutlinedInput';
12
- export * from './components/OutlinedInput';
13
- export { default as OutlinedSelect } from './components/OutlinedSelect';
14
- export * from './components/OutlinedSelect';
15
- export { default as OutlinedDatePicker } from './components/OutlinedDatePicker';
16
- export * from './components/OutlinedDatePicker';
17
- export { default as OutlinedDateTimePicker } from './components/OutlinedDateTimePicker';
18
- export * from './components/OutlinedDateTimePicker';
19
- export { default as OutlinedTimePicker } from './components/OutlinedTimePicker';
20
- export * from './components/OutlinedTimePicker';
21
- export { default as OutlinedCascader } from './components/OutlinedCascader';
22
- export * from './components/OutlinedCascader';
23
- export { default as OutlinedTreeSelect } from './components/OutlinedTreeSelect';
24
- export * from './components/OutlinedTreeSelect';
25
- export { exportExcel } from './excel/exportExcel';
26
- export type { ExcelCellValue, ExcelExportColumn, ExcelExportOptions } from './excel/exportExcel';