cnhis-design-vue 3.3.3-beta.74 → 3.3.3-beta.75

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 (36) hide show
  1. package/README.md +87 -87
  2. package/es/components/classification/index.d.ts +16 -258
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -258
  4. package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -258
  5. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  6. package/es/components/classification/src/index.vue.d.ts +16 -258
  7. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  8. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  9. package/es/components/info-header/index.d.ts +9 -17
  10. package/es/components/info-header/src/InfoHeader.vue.d.ts +9 -17
  11. package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
  12. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -2
  13. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
  14. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -17
  15. package/es/components/info-header/src/constants/index.d.ts +1 -1
  16. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  17. package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
  18. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  19. package/es/components/shortcut-provider/src/utils/index.js +3 -1
  20. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -258
  21. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +7 -129
  22. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +107 -13
  23. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +7 -129
  24. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +7 -129
  25. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +2 -8
  26. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -258
  27. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +26 -1
  28. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -258
  29. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +3 -1
  30. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +16 -1
  31. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  32. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  33. package/es/components/table-filter/src/types/enums.js +1 -0
  34. package/es/env.d.ts +25 -25
  35. package/es/shared/package.json.js +1 -1
  36. package/package.json +2 -3
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -626,6 +626,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
626
626
  class: string;
627
627
  };
628
628
  specialDateRange: string[];
629
+ specialCustomDateRange: string[];
629
630
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
630
631
  actionList_prop: {
631
632
  type: import("vue").PropType<import("..").IClassifyListType>;
@@ -1017,6 +1018,12 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1017
1018
  label: string;
1018
1019
  value: string;
1019
1020
  }[];
1021
+ widgetRangeOptions: {
1022
+ label: string;
1023
+ value: string;
1024
+ }[];
1025
+ startDateNum: import("vue").Ref<any>;
1026
+ endDateNum: import("vue").Ref<any>;
1020
1027
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1021
1028
  filterType: {
1022
1029
  type: StringConstructor;
@@ -1049,135 +1056,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1049
1056
  emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
1050
1057
  valueCp: import("vue").WritableComputedRef<any>;
1051
1058
  presetValCp: import("vue").WritableComputedRef<string>;
1052
- CDatePicker: SFCWithInstall<import("vue").DefineComponent<{
1053
- updateUnchangedValue: {
1054
- type: BooleanConstructor;
1055
- };
1056
- onConfirm: {
1057
- type: FunctionConstructor;
1058
- };
1059
- formattedValue: {
1060
- type: import("vue").PropType<(string | [string, string]) | null | undefined>;
1061
- };
1062
- placeholder: {
1063
- type: StringConstructor;
1064
- };
1065
- allowedInvalidValue: {
1066
- type: StringConstructor;
1067
- };
1068
- to: {
1069
- type: import("vue").PropType<string | false | HTMLElement>;
1070
- default: string;
1071
- };
1072
- holidays: {
1073
- type: import("vue").PropType<Date[]>;
1074
- default: () => never[];
1075
- };
1076
- type: {
1077
- type: StringConstructor;
1078
- default: string;
1079
- };
1080
- isDateDisabled: {
1081
- type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1082
- };
1083
- }, {
1084
- attrs: {
1085
- [x: string]: unknown;
1086
- };
1087
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1088
- updateUnchangedValue: {
1089
- type: BooleanConstructor;
1090
- };
1091
- onConfirm: {
1092
- type: FunctionConstructor;
1093
- };
1094
- formattedValue: {
1095
- type: import("vue").PropType<(string | [string, string]) | null | undefined>;
1096
- };
1097
- placeholder: {
1098
- type: StringConstructor;
1099
- };
1100
- allowedInvalidValue: {
1101
- type: StringConstructor;
1102
- };
1103
- to: {
1104
- type: import("vue").PropType<string | false | HTMLElement>;
1105
- default: string;
1106
- };
1107
- holidays: {
1108
- type: import("vue").PropType<Date[]>;
1109
- default: () => never[];
1110
- };
1111
- type: {
1112
- type: StringConstructor;
1113
- default: string;
1114
- };
1115
- isDateDisabled: {
1116
- type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1117
- };
1118
- }>> & {
1119
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1120
- }>>;
1121
- emit: (event: "update:formatted-value", ...args: any[]) => void;
1122
- datePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
1123
- panelInstRef: import("vue").Ref<null>;
1124
- placeholderRef: import("vue").Ref<any>;
1125
- oldValue: string;
1126
- currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
1127
- isDateTime: import("vue").ComputedRef<boolean>;
1128
- formatRef: import("vue").ComputedRef<string>;
1129
- panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
1130
- _isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
1131
- focus: () => any;
1132
- blur: () => any;
1133
- handleConfirm: (target: HTMLInputElement) => void;
1134
- onUpdateShow: (show: boolean) => Promise<void>;
1135
- watchers: import("../../shared/types").AnyFn[];
1136
- stopWatcher: () => void;
1137
- setHoliday: (show: boolean) => Promise<void>;
1138
- onConfirm: (...args: any[]) => Promise<void>;
1139
- isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1140
- setShortcutValue: (type: "month" | "week") => Promise<void>;
1141
- NDatePicker: any;
1142
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1143
- updateUnchangedValue: {
1144
- type: BooleanConstructor;
1145
- };
1146
- onConfirm: {
1147
- type: FunctionConstructor;
1148
- };
1149
- formattedValue: {
1150
- type: import("vue").PropType<(string | [string, string]) | null | undefined>;
1151
- };
1152
- placeholder: {
1153
- type: StringConstructor;
1154
- };
1155
- allowedInvalidValue: {
1156
- type: StringConstructor;
1157
- };
1158
- to: {
1159
- type: import("vue").PropType<string | false | HTMLElement>;
1160
- default: string;
1161
- };
1162
- holidays: {
1163
- type: import("vue").PropType<Date[]>;
1164
- default: () => never[];
1165
- };
1166
- type: {
1167
- type: StringConstructor;
1168
- default: string;
1169
- };
1170
- isDateDisabled: {
1171
- type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1172
- };
1173
- }>> & {
1174
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1175
- }, {
1176
- type: string;
1177
- updateUnchangedValue: boolean;
1178
- to: string | false | HTMLElement;
1179
- holidays: Date[];
1180
- }>>;
1059
+ handleChange: (val: any, type: "start" | "end") => void;
1181
1060
  NSelect: any;
1182
1061
  NInputNumber: any;
1183
1062
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1972,6 +1851,12 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1972
1851
  label: string;
1973
1852
  value: string;
1974
1853
  }[];
1854
+ widgetRangeOptions: {
1855
+ label: string;
1856
+ value: string;
1857
+ }[];
1858
+ startDateNum: import("vue").Ref<any>;
1859
+ endDateNum: import("vue").Ref<any>;
1975
1860
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1976
1861
  filterType: {
1977
1862
  type: StringConstructor;
@@ -2004,135 +1889,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
2004
1889
  emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
2005
1890
  valueCp: import("vue").WritableComputedRef<any>;
2006
1891
  presetValCp: import("vue").WritableComputedRef<string>;
2007
- CDatePicker: SFCWithInstall<import("vue").DefineComponent<{
2008
- updateUnchangedValue: {
2009
- type: BooleanConstructor;
2010
- };
2011
- onConfirm: {
2012
- type: FunctionConstructor;
2013
- };
2014
- formattedValue: {
2015
- type: import("vue").PropType<(string | [string, string]) | null | undefined>;
2016
- };
2017
- placeholder: {
2018
- type: StringConstructor;
2019
- };
2020
- allowedInvalidValue: {
2021
- type: StringConstructor;
2022
- };
2023
- to: {
2024
- type: import("vue").PropType<string | false | HTMLElement>;
2025
- default: string;
2026
- };
2027
- holidays: {
2028
- type: import("vue").PropType<Date[]>;
2029
- default: () => never[];
2030
- };
2031
- type: {
2032
- type: StringConstructor;
2033
- default: string;
2034
- };
2035
- isDateDisabled: {
2036
- type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
2037
- };
2038
- }, {
2039
- attrs: {
2040
- [x: string]: unknown;
2041
- };
2042
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2043
- updateUnchangedValue: {
2044
- type: BooleanConstructor;
2045
- };
2046
- onConfirm: {
2047
- type: FunctionConstructor;
2048
- };
2049
- formattedValue: {
2050
- type: import("vue").PropType<(string | [string, string]) | null | undefined>;
2051
- };
2052
- placeholder: {
2053
- type: StringConstructor;
2054
- };
2055
- allowedInvalidValue: {
2056
- type: StringConstructor;
2057
- };
2058
- to: {
2059
- type: import("vue").PropType<string | false | HTMLElement>;
2060
- default: string;
2061
- };
2062
- holidays: {
2063
- type: import("vue").PropType<Date[]>;
2064
- default: () => never[];
2065
- };
2066
- type: {
2067
- type: StringConstructor;
2068
- default: string;
2069
- };
2070
- isDateDisabled: {
2071
- type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
2072
- };
2073
- }>> & {
2074
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
2075
- }>>;
2076
- emit: (event: "update:formatted-value", ...args: any[]) => void;
2077
- datePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
2078
- panelInstRef: import("vue").Ref<null>;
2079
- placeholderRef: import("vue").Ref<any>;
2080
- oldValue: string;
2081
- currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
2082
- isDateTime: import("vue").ComputedRef<boolean>;
2083
- formatRef: import("vue").ComputedRef<string>;
2084
- panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
2085
- _isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
2086
- focus: () => any;
2087
- blur: () => any;
2088
- handleConfirm: (target: HTMLInputElement) => void;
2089
- onUpdateShow: (show: boolean) => Promise<void>;
2090
- watchers: import("../../shared/types").AnyFn[];
2091
- stopWatcher: () => void;
2092
- setHoliday: (show: boolean) => Promise<void>;
2093
- onConfirm: (...args: any[]) => Promise<void>;
2094
- isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
2095
- setShortcutValue: (type: "month" | "week") => Promise<void>;
2096
- NDatePicker: any;
2097
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2098
- updateUnchangedValue: {
2099
- type: BooleanConstructor;
2100
- };
2101
- onConfirm: {
2102
- type: FunctionConstructor;
2103
- };
2104
- formattedValue: {
2105
- type: import("vue").PropType<(string | [string, string]) | null | undefined>;
2106
- };
2107
- placeholder: {
2108
- type: StringConstructor;
2109
- };
2110
- allowedInvalidValue: {
2111
- type: StringConstructor;
2112
- };
2113
- to: {
2114
- type: import("vue").PropType<string | false | HTMLElement>;
2115
- default: string;
2116
- };
2117
- holidays: {
2118
- type: import("vue").PropType<Date[]>;
2119
- default: () => never[];
2120
- };
2121
- type: {
2122
- type: StringConstructor;
2123
- default: string;
2124
- };
2125
- isDateDisabled: {
2126
- type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
2127
- };
2128
- }>> & {
2129
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
2130
- }, {
2131
- type: string;
2132
- updateUnchangedValue: boolean;
2133
- to: string | false | HTMLElement;
2134
- holidays: Date[];
2135
- }>>;
1892
+ handleChange: (val: any, type: "start" | "end") => void;
2136
1893
  NSelect: any;
2137
1894
  NInputNumber: any;
2138
1895
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -2394,6 +2151,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
2394
2151
  ConditionEnums: {
2395
2152
  NULL: string;
2396
2153
  EQUAL: string;
2154
+ CUSTOM_RANGE: string;
2397
2155
  IN_THE_PAST: string;
2398
2156
  IN_THE_FUTURE: string;
2399
2157
  IN_THE_PAST_DI: string;