cnhis-design-vue 3.4.0-beta.17 → 3.4.0-beta.20
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.
- package/README.md +87 -87
- package/es/components/button-print/src/utils/print.js +1 -0
- package/es/components/classification/index.d.ts +39 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +39 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +39 -0
- package/es/components/classification/src/index.vue.d.ts +39 -0
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +8 -3
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/iho-chat/index.d.ts +26 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +26 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +16 -12
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/table-export-field/index.d.ts +3 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +66 -20
- package/es/components/table-export-field/src/index.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +26 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +26 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +26 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -0
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/ho-edge.d.ts +12 -0
- package/es/shared/utils/ho-edge.js +58 -0
- package/package.json +2 -2
@@ -537,6 +537,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
537
537
|
type: StringConstructor;
|
538
538
|
default: string;
|
539
539
|
};
|
540
|
+
updateValueOnClose: {
|
541
|
+
type: BooleanConstructor;
|
542
|
+
default: boolean;
|
543
|
+
};
|
540
544
|
isDateDisabled: {
|
541
545
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
542
546
|
};
|
@@ -572,6 +576,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
572
576
|
type: StringConstructor;
|
573
577
|
default: string;
|
574
578
|
};
|
579
|
+
updateValueOnClose: {
|
580
|
+
type: BooleanConstructor;
|
581
|
+
default: boolean;
|
582
|
+
};
|
575
583
|
isDateDisabled: {
|
576
584
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
577
585
|
};
|
@@ -627,6 +635,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
627
635
|
type: StringConstructor;
|
628
636
|
default: string;
|
629
637
|
};
|
638
|
+
updateValueOnClose: {
|
639
|
+
type: BooleanConstructor;
|
640
|
+
default: boolean;
|
641
|
+
};
|
630
642
|
isDateDisabled: {
|
631
643
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
632
644
|
};
|
@@ -637,6 +649,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
637
649
|
updateUnchangedValue: boolean;
|
638
650
|
to: string | false | HTMLElement;
|
639
651
|
holidays: Date[];
|
652
|
+
updateValueOnClose: boolean;
|
640
653
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
641
654
|
DateQuickBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
642
655
|
componentCfg: {
|
@@ -851,6 +864,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
851
864
|
type: StringConstructor;
|
852
865
|
default: string;
|
853
866
|
};
|
867
|
+
updateValueOnClose: {
|
868
|
+
type: BooleanConstructor;
|
869
|
+
default: boolean;
|
870
|
+
};
|
854
871
|
isDateDisabled: {
|
855
872
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
856
873
|
};
|
@@ -886,6 +903,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
886
903
|
type: StringConstructor;
|
887
904
|
default: string;
|
888
905
|
};
|
906
|
+
updateValueOnClose: {
|
907
|
+
type: BooleanConstructor;
|
908
|
+
default: boolean;
|
909
|
+
};
|
889
910
|
isDateDisabled: {
|
890
911
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
891
912
|
};
|
@@ -941,6 +962,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
941
962
|
type: StringConstructor;
|
942
963
|
default: string;
|
943
964
|
};
|
965
|
+
updateValueOnClose: {
|
966
|
+
type: BooleanConstructor;
|
967
|
+
default: boolean;
|
968
|
+
};
|
944
969
|
isDateDisabled: {
|
945
970
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
946
971
|
};
|
@@ -951,6 +976,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
951
976
|
updateUnchangedValue: boolean;
|
952
977
|
to: string | false | HTMLElement;
|
953
978
|
holidays: Date[];
|
979
|
+
updateValueOnClose: boolean;
|
954
980
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
955
981
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
956
982
|
componentCfg: {
|
@@ -1127,6 +1153,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1127
1153
|
type: StringConstructor;
|
1128
1154
|
default: string;
|
1129
1155
|
};
|
1156
|
+
updateValueOnClose: {
|
1157
|
+
type: BooleanConstructor;
|
1158
|
+
default: boolean;
|
1159
|
+
};
|
1130
1160
|
isDateDisabled: {
|
1131
1161
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1132
1162
|
};
|
@@ -1162,6 +1192,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1162
1192
|
type: StringConstructor;
|
1163
1193
|
default: string;
|
1164
1194
|
};
|
1195
|
+
updateValueOnClose: {
|
1196
|
+
type: BooleanConstructor;
|
1197
|
+
default: boolean;
|
1198
|
+
};
|
1165
1199
|
isDateDisabled: {
|
1166
1200
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1167
1201
|
};
|
@@ -1217,6 +1251,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1217
1251
|
type: StringConstructor;
|
1218
1252
|
default: string;
|
1219
1253
|
};
|
1254
|
+
updateValueOnClose: {
|
1255
|
+
type: BooleanConstructor;
|
1256
|
+
default: boolean;
|
1257
|
+
};
|
1220
1258
|
isDateDisabled: {
|
1221
1259
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1222
1260
|
};
|
@@ -1227,6 +1265,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1227
1265
|
updateUnchangedValue: boolean;
|
1228
1266
|
to: string | false | HTMLElement;
|
1229
1267
|
holidays: Date[];
|
1268
|
+
updateValueOnClose: boolean;
|
1230
1269
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
1231
1270
|
DateQuickBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
1232
1271
|
componentCfg: {
|
@@ -1448,6 +1487,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1448
1487
|
type: StringConstructor;
|
1449
1488
|
default: string;
|
1450
1489
|
};
|
1490
|
+
updateValueOnClose: {
|
1491
|
+
type: BooleanConstructor;
|
1492
|
+
default: boolean;
|
1493
|
+
};
|
1451
1494
|
isDateDisabled: {
|
1452
1495
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1453
1496
|
};
|
@@ -1483,6 +1526,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1483
1526
|
type: StringConstructor;
|
1484
1527
|
default: string;
|
1485
1528
|
};
|
1529
|
+
updateValueOnClose: {
|
1530
|
+
type: BooleanConstructor;
|
1531
|
+
default: boolean;
|
1532
|
+
};
|
1486
1533
|
isDateDisabled: {
|
1487
1534
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1488
1535
|
};
|
@@ -1538,6 +1585,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1538
1585
|
type: StringConstructor;
|
1539
1586
|
default: string;
|
1540
1587
|
};
|
1588
|
+
updateValueOnClose: {
|
1589
|
+
type: BooleanConstructor;
|
1590
|
+
default: boolean;
|
1591
|
+
};
|
1541
1592
|
isDateDisabled: {
|
1542
1593
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
1543
1594
|
};
|
@@ -1548,6 +1599,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1548
1599
|
updateUnchangedValue: boolean;
|
1549
1600
|
to: string | false | HTMLElement;
|
1550
1601
|
holidays: Date[];
|
1602
|
+
updateValueOnClose: boolean;
|
1551
1603
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
1552
1604
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
1553
1605
|
type: {
|
package/es/env.d.ts
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
/// <reference types="vite/client" />
|
2
|
-
|
3
|
-
interface ImportMetaEnv {
|
4
|
-
readonly VITE_APP_TYPE: string;
|
5
|
-
// 更多环境变量...
|
6
|
-
}
|
7
|
-
|
8
|
-
interface ImportMeta {
|
9
|
-
readonly env: ImportMetaEnv;
|
10
|
-
}
|
11
|
-
|
12
|
-
declare module '*.vue' {
|
13
|
-
// @ts-ignore
|
14
|
-
import type { App, defineComponent } from 'vue';
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
18
|
-
install(app: App): void;
|
19
|
-
};
|
20
|
-
// @ts-ignore
|
21
|
-
export default component;
|
22
|
-
}
|
23
|
-
|
24
|
-
declare module '*.js';
|
25
|
-
|
1
|
+
/// <reference types="vite/client" />
|
2
|
+
|
3
|
+
interface ImportMetaEnv {
|
4
|
+
readonly VITE_APP_TYPE: string;
|
5
|
+
// 更多环境变量...
|
6
|
+
}
|
7
|
+
|
8
|
+
interface ImportMeta {
|
9
|
+
readonly env: ImportMetaEnv;
|
10
|
+
}
|
11
|
+
|
12
|
+
declare module '*.vue' {
|
13
|
+
// @ts-ignore
|
14
|
+
import type { App, defineComponent } from 'vue';
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
18
|
+
install(app: App): void;
|
19
|
+
};
|
20
|
+
// @ts-ignore
|
21
|
+
export default component;
|
22
|
+
}
|
23
|
+
|
24
|
+
declare module '*.js';
|
25
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
declare class HoEdge {
|
2
|
+
private readonly webview;
|
3
|
+
private msgHandleQueue;
|
4
|
+
constructor();
|
5
|
+
/** 发送消息 */
|
6
|
+
postMsg(data: any): Promise<unknown> | undefined;
|
7
|
+
/** 接收消息 */
|
8
|
+
msgHandle(evt: any): any;
|
9
|
+
destory(): void;
|
10
|
+
}
|
11
|
+
export declare const hoEdge: HoEdge;
|
12
|
+
export {};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
let HoEdgeInstance = null;
|
2
|
+
class HoEdge {
|
3
|
+
constructor() {
|
4
|
+
this.webview = null;
|
5
|
+
this.msgHandleQueue = [];
|
6
|
+
var _a, _b, _c, _d;
|
7
|
+
if (HoEdgeInstance)
|
8
|
+
return HoEdgeInstance;
|
9
|
+
HoEdgeInstance = this;
|
10
|
+
const _window = window;
|
11
|
+
try {
|
12
|
+
this.webview = _window.top ? (_a = _window.top.chrome) == null ? void 0 : _a.webview : (_b = _window.chrome) == null ? void 0 : _b.webview;
|
13
|
+
} catch (error) {
|
14
|
+
this.webview = (_c = _window.chrome) == null ? void 0 : _c.webview;
|
15
|
+
}
|
16
|
+
if (!this.webview)
|
17
|
+
return;
|
18
|
+
this.msgHandleQueue = [];
|
19
|
+
(_d = this.webview) == null ? void 0 : _d.addEventListener("message", this.msgHandle.bind(this));
|
20
|
+
}
|
21
|
+
postMsg(data) {
|
22
|
+
if (!this.webview)
|
23
|
+
return;
|
24
|
+
return new Promise((resolve) => {
|
25
|
+
var _a;
|
26
|
+
const exec = data.exec;
|
27
|
+
this.msgHandleQueue.push({ resolve, exec });
|
28
|
+
(_a = this.webview) == null ? void 0 : _a.postMessage(data);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
msgHandle(evt) {
|
32
|
+
let data = (evt == null ? void 0 : evt.data) || "{}";
|
33
|
+
if (typeof data === "string") {
|
34
|
+
data = JSON.parse(data);
|
35
|
+
}
|
36
|
+
const handler = this.msgHandleQueue.pop();
|
37
|
+
if (!handler) {
|
38
|
+
console.log("\u627E\u4E0D\u5230\u5339\u914D\u7684\u529F\u80FD\u51FD\u6570");
|
39
|
+
return;
|
40
|
+
}
|
41
|
+
const { resolve, exec } = handler;
|
42
|
+
if (exec !== data.exec) {
|
43
|
+
console.log(`\u5C01\u88C5\u6D4F\u89C8\u5668\u547D\u4EE4\u4E0D\u5339\u914D\uFF0C\u5F53\u524D\uFF1A${exec}\uFF0C\u8FD4\u56DE\u7684\u547D\u4EE4\uFF1A${data.exec}`);
|
44
|
+
return;
|
45
|
+
}
|
46
|
+
return resolve(data);
|
47
|
+
}
|
48
|
+
destory() {
|
49
|
+
var _a;
|
50
|
+
if (!this.webview)
|
51
|
+
return;
|
52
|
+
this.msgHandleQueue = [];
|
53
|
+
(_a = this.webview) == null ? void 0 : _a.removeEventListener("message", this.msgHandle);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
const hoEdge = new HoEdge();
|
57
|
+
|
58
|
+
export { hoEdge };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.4.0-beta.
|
3
|
+
"version": "3.4.0-beta.20",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -73,5 +73,5 @@
|
|
73
73
|
"iOS 7",
|
74
74
|
"last 3 iOS versions"
|
75
75
|
],
|
76
|
-
"gitHead": "
|
76
|
+
"gitHead": "5fb113aa91c1485451ca4c4e2887694a0f4c1a50"
|
77
77
|
}
|