@hbdlzy/ui-core 0.1.2 → 0.1.3

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 (83) hide show
  1. package/components.manifest.json +5 -0
  2. package/dist/components/BaseCard/BaseCard.types.d.ts +36 -0
  3. package/dist/components/BaseCard/BaseCard.vue.d.ts +122 -0
  4. package/dist/components/BaseCard/index.d.ts +3 -0
  5. package/dist/components/BaseEChart/BaseEChart.types.d.ts +26 -0
  6. package/dist/components/BaseEChart/BaseEChart.vue.d.ts +66 -0
  7. package/dist/components/BaseEChart/index.d.ts +3 -0
  8. package/dist/components/BaseExportButton/BaseExportButton.types.d.ts +21 -0
  9. package/dist/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -0
  10. package/dist/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -0
  11. package/dist/components/BaseExportButton/index.d.ts +5 -0
  12. package/dist/components/BaseTable/BaseTable.types.d.ts +163 -0
  13. package/dist/components/BaseTable/BaseTable.vue.d.ts +157 -0
  14. package/dist/components/BaseTable/index.d.ts +3 -0
  15. package/dist/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -0
  16. package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -0
  17. package/dist/components/OutlinedCascader/index.d.ts +3 -0
  18. package/dist/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -0
  19. package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -0
  20. package/dist/components/OutlinedDatePicker/index.d.ts +3 -0
  21. package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -0
  22. package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -0
  23. package/dist/components/OutlinedDateTimePicker/index.d.ts +3 -0
  24. package/dist/components/OutlinedInput/OutlinedInput.types.d.ts +29 -0
  25. package/dist/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -0
  26. package/dist/components/OutlinedInput/index.d.ts +3 -0
  27. package/dist/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -0
  28. package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -0
  29. package/dist/components/OutlinedSelect/index.d.ts +3 -0
  30. package/dist/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -0
  31. package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -0
  32. package/dist/components/OutlinedTimePicker/index.d.ts +3 -0
  33. package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -0
  34. package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -0
  35. package/dist/components/OutlinedTreeSelect/index.d.ts +3 -0
  36. package/dist/echarts/index.d.ts +9 -0
  37. package/dist/excel/exportExcel.d.ts +18 -0
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.d.ts +26 -0
  40. package/dist/index.js +306 -30
  41. package/dist/style.css +1 -1
  42. package/package.json +5 -4
  43. package/src/components/BaseCard/BaseCard.types.d.ts +36 -0
  44. package/src/components/BaseCard/BaseCard.vue.d.ts +122 -0
  45. package/src/components/BaseCard/index.d.ts +3 -0
  46. package/src/components/BaseEChart/BaseEChart.types.d.ts +26 -0
  47. package/src/components/BaseEChart/BaseEChart.vue.d.ts +66 -0
  48. package/src/components/BaseEChart/index.d.ts +3 -0
  49. package/src/components/BaseExportButton/BaseExportButton.types.d.ts +21 -0
  50. package/src/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -0
  51. package/src/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -0
  52. package/src/components/BaseExportButton/index.d.ts +5 -0
  53. package/src/components/BaseTable/BaseTable.types.d.ts +163 -0
  54. package/src/components/BaseTable/BaseTable.types.ts +12 -0
  55. package/src/components/BaseTable/BaseTable.vue +412 -13
  56. package/src/components/BaseTable/BaseTable.vue.d.ts +157 -0
  57. package/src/components/BaseTable/README.md +106 -120
  58. package/src/components/BaseTable/index.d.ts +3 -0
  59. package/src/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -0
  60. package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -0
  61. package/src/components/OutlinedCascader/index.d.ts +3 -0
  62. package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -0
  63. package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -0
  64. package/src/components/OutlinedDatePicker/index.d.ts +3 -0
  65. package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -0
  66. package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -0
  67. package/src/components/OutlinedDateTimePicker/index.d.ts +3 -0
  68. package/src/components/OutlinedInput/OutlinedInput.types.d.ts +29 -0
  69. package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -0
  70. package/src/components/OutlinedInput/index.d.ts +3 -0
  71. package/src/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -0
  72. package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -0
  73. package/src/components/OutlinedSelect/index.d.ts +3 -0
  74. package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -0
  75. package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -0
  76. package/src/components/OutlinedTimePicker/index.d.ts +3 -0
  77. package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -0
  78. package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -0
  79. package/src/components/OutlinedTreeSelect/index.d.ts +3 -0
  80. package/src/echarts/index.d.ts +9 -0
  81. package/src/echarts/index.ts +13 -8
  82. package/src/excel/exportExcel.d.ts +18 -0
  83. package/src/index.d.ts +26 -0
@@ -0,0 +1,137 @@
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
+ };
@@ -0,0 +1,3 @@
1
+ import OutlinedTreeSelect from './OutlinedTreeSelect.vue';
2
+ export default OutlinedTreeSelect;
3
+ export type { OutlinedTreeSelectCssValue, OutlinedTreeSelectExpose, OutlinedTreeSelectNode, OutlinedTreeSelectOptionValue, OutlinedTreeSelectProps, OutlinedTreeSelectValue } from './OutlinedTreeSelect.types';
@@ -0,0 +1,9 @@
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,12 +1,17 @@
1
1
  import * as echarts from 'echarts'
2
-
3
- export type {
4
- ECharts as EChartInstance,
5
- EChartsOption as EChartOption,
6
- InitOpts as EChartInitOptions,
7
- LoadingOption as EChartLoadingOptions,
8
- ResizeOpts as EChartResizeOptions,
9
- SetOptionOpts as EChartSetOptionOptions
2
+ import type {
3
+ ECharts,
4
+ EChartsInitOpts,
5
+ EChartsOption,
6
+ ResizeOpts,
7
+ SetOptionOpts
10
8
  } from 'echarts'
11
9
 
10
+ export type EChartInstance = ECharts
11
+ export type EChartOption = EChartsOption
12
+ export type EChartInitOptions = EChartsInitOpts
13
+ export type EChartLoadingOptions = Parameters<ECharts['showLoading']>[1]
14
+ export type EChartResizeOptions = ResizeOpts
15
+ export type EChartSetOptionOptions = SetOptionOpts
16
+
12
17
  export { echarts }
@@ -0,0 +1,18 @@
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 ADDED
@@ -0,0 +1,26 @@
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';