cnhis-design-vue 3.4.0-beta.18 → 3.4.0-beta.22

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 (49) hide show
  1. package/README.md +87 -87
  2. package/es/components/classification/index.d.ts +39 -0
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +39 -0
  4. package/es/components/classification/src/components/set-classification/index.vue.d.ts +39 -0
  5. package/es/components/classification/src/index.vue.d.ts +39 -0
  6. package/es/components/date-picker/index.d.ts +13 -0
  7. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  8. package/es/components/date-picker/src/DatePicker.vue2.js +8 -3
  9. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +10 -11
  10. package/es/components/field-set/src/FieldColor.vue.d.ts +29 -3
  11. package/es/components/field-set/src/FieldFilter.vue.d.ts +3 -3
  12. package/es/components/field-set/src/FieldSet.vue.d.ts +4 -4
  13. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  14. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  15. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  16. package/es/components/field-set/src/components/table-row.vue.d.ts +3 -3
  17. package/es/components/iho-chat/index.d.ts +26 -0
  18. package/es/components/iho-chat/src/Index.vue.d.ts +26 -0
  19. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +13 -0
  20. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  21. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  22. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  23. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +13 -0
  24. package/es/components/iho-table/src/IhoTable.vue2.js +16 -12
  25. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  26. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  27. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +3 -0
  28. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +9 -3
  29. package/es/components/shortcut-setter/index.d.ts +1 -0
  30. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  31. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +25 -23
  32. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  33. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  34. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  35. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  36. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +26 -0
  37. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  38. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  39. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +26 -0
  40. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +26 -0
  41. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  42. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  43. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  44. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  45. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -0
  46. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -0
  47. package/es/env.d.ts +25 -25
  48. package/es/shared/package.json.js +1 -1
  49. package/package.json +2 -2
@@ -1011,6 +1011,10 @@ declare const _default: import("vue").DefineComponent<{}, {
1011
1011
  type: StringConstructor;
1012
1012
  default: string;
1013
1013
  };
1014
+ updateValueOnClose: {
1015
+ type: BooleanConstructor;
1016
+ default: boolean;
1017
+ };
1014
1018
  isDateDisabled: {
1015
1019
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1016
1020
  };
@@ -1046,6 +1050,10 @@ declare const _default: import("vue").DefineComponent<{}, {
1046
1050
  type: StringConstructor;
1047
1051
  default: string;
1048
1052
  };
1053
+ updateValueOnClose: {
1054
+ type: BooleanConstructor;
1055
+ default: boolean;
1056
+ };
1049
1057
  isDateDisabled: {
1050
1058
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1051
1059
  };
@@ -1101,6 +1109,10 @@ declare const _default: import("vue").DefineComponent<{}, {
1101
1109
  type: StringConstructor;
1102
1110
  default: string;
1103
1111
  };
1112
+ updateValueOnClose: {
1113
+ type: BooleanConstructor;
1114
+ default: boolean;
1115
+ };
1104
1116
  isDateDisabled: {
1105
1117
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1106
1118
  };
@@ -1111,6 +1123,7 @@ declare const _default: import("vue").DefineComponent<{}, {
1111
1123
  updateUnchangedValue: boolean;
1112
1124
  to: string | false | HTMLElement;
1113
1125
  holidays: Date[];
1126
+ updateValueOnClose: boolean;
1114
1127
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
1115
1128
  readonly isArray: {
1116
1129
  (value?: any): value is any[];
@@ -601,7 +601,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
601
601
  }, {
602
602
  default: withCtx(() => [!unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
603
603
  key: 0
604
- }, [createCommentVNode(' <n-button\n quaternary\n size="tiny"\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\n >\n <template #icon>\n <n-icon size="17" :component="HappyOutline" />\n </template>\n </n-button> '), createVNode(unref(NButton), {
604
+ }, [createCommentVNode(' <n-button\r\n quaternary\r\n size="tiny"\r\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\r\n >\r\n <template #icon>\r\n <n-icon size="17" :component="HappyOutline" />\r\n </template>\r\n </n-button> '), createVNode(unref(NButton), {
605
605
  quaternary: "",
606
606
  size: "tiny",
607
607
  onClick: () => setReferenceMsg(item)
@@ -128,6 +128,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
128
128
  type: StringConstructor;
129
129
  default: string;
130
130
  };
131
+ updateValueOnClose: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ };
131
135
  isDateDisabled: {
132
136
  type: PropType<(current: number, ...arg: any[]) => boolean>;
133
137
  };
@@ -163,6 +167,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
163
167
  type: StringConstructor;
164
168
  default: string;
165
169
  };
170
+ updateValueOnClose: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
166
174
  isDateDisabled: {
167
175
  type: PropType<(current: number, ...arg: any[]) => boolean>;
168
176
  };
@@ -218,6 +226,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
218
226
  type: StringConstructor;
219
227
  default: string;
220
228
  };
229
+ updateValueOnClose: {
230
+ type: BooleanConstructor;
231
+ default: boolean;
232
+ };
221
233
  isDateDisabled: {
222
234
  type: PropType<(current: number, ...arg: any[]) => boolean>;
223
235
  };
@@ -228,6 +240,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
228
240
  updateUnchangedValue: boolean;
229
241
  to: string | false | HTMLElement;
230
242
  holidays: Date[];
243
+ updateValueOnClose: boolean;
231
244
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
232
245
  readonly isArray: {
233
246
  (value?: any): value is any[];
@@ -170,7 +170,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
170
170
  round: "",
171
171
  size: 100,
172
172
  onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
173
- }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
173
+ }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
174
174
  class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
175
175
  }, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
176
176
  strong: "",
@@ -181,6 +181,10 @@ declare const _default: import("vue").DefineComponent<{}, {
181
181
  type: StringConstructor;
182
182
  default: string;
183
183
  };
184
+ updateValueOnClose: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
184
188
  isDateDisabled: {
185
189
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
186
190
  };
@@ -216,6 +220,10 @@ declare const _default: import("vue").DefineComponent<{}, {
216
220
  type: StringConstructor;
217
221
  default: string;
218
222
  };
223
+ updateValueOnClose: {
224
+ type: BooleanConstructor;
225
+ default: boolean;
226
+ };
219
227
  isDateDisabled: {
220
228
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
221
229
  };
@@ -271,6 +279,10 @@ declare const _default: import("vue").DefineComponent<{}, {
271
279
  type: StringConstructor;
272
280
  default: string;
273
281
  };
282
+ updateValueOnClose: {
283
+ type: BooleanConstructor;
284
+ default: boolean;
285
+ };
274
286
  isDateDisabled: {
275
287
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
276
288
  };
@@ -281,6 +293,7 @@ declare const _default: import("vue").DefineComponent<{}, {
281
293
  updateUnchangedValue: boolean;
282
294
  to: string | false | HTMLElement;
283
295
  holidays: Date[];
296
+ updateValueOnClose: boolean;
284
297
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
285
298
  readonly SearchOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
286
299
  readonly userItemRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -58,10 +58,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  });
59
59
  const CSSVars = computed(() => {
60
60
  var _a2, _b2, _c;
61
- const result = { ...themCSSVars.value };
62
- result["--c-primary-color-opacity3"] = createOpacityColor(...hex2rgba(result["--c-primary-color"] + ""), 0.3);
63
- result["--c-scrollbar-width"] = widthAppend((_c = (_b2 = (_a2 = $xeTable.value) == null ? void 0 : _a2.reactData) == null ? void 0 : _b2.scrollbarWidth) != null ? _c : 0);
64
- return result;
61
+ const result2 = { ...themCSSVars.value };
62
+ result2["--c-primary-color-opacity3"] = createOpacityColor(...hex2rgba(result2["--c-primary-color"] + ""), 0.3);
63
+ result2["--c-scrollbar-width"] = widthAppend((_c = (_b2 = (_a2 = $xeTable.value) == null ? void 0 : _a2.reactData) == null ? void 0 : _b2.scrollbarWidth) != null ? _c : 0);
64
+ return result2;
65
65
  });
66
66
  const styles = computed(() => {
67
67
  var _a2, _b2;
@@ -128,18 +128,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
128
128
  provide(InjectionIhoTableFieldList, fieldListRef);
129
129
  const updateFieldListRefDebounced = useDebounceFn(updateFieldListRef, 10);
130
130
  function updateFieldListRef() {
131
- const result = applyTableFieldHooks(hooks, props.fieldList, configRef.value, {
131
+ const result2 = applyTableFieldHooks(hooks, props.fieldList, configRef.value, {
132
132
  $table,
133
133
  emits,
134
134
  loading,
135
135
  globProps: props,
136
136
  $xeTable
137
137
  });
138
- isEqualWith(result, toRaw(fieldListRef.value), (v, o) => {
138
+ isEqualWith(result2, toRaw(fieldListRef.value), (v, o) => {
139
139
  if (isFunction(v) && isFunction(o)) {
140
140
  return v.toString() === o.toString();
141
141
  }
142
- }) || (fieldListRef.value = result);
142
+ }) || (fieldListRef.value = result2);
143
143
  }
144
144
  const dataTransfer = createDataTransfer(hooks, configRef, { $table, emits, loading, globProps: props, $xeTable });
145
145
  let tableDataResolved = null;
@@ -154,10 +154,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
154
154
  const tableDataRef = ref([]);
155
155
  const updateTableDataRefDebounced = useDebounceFn(updateTableDataRef, 10);
156
156
  async function updateTableDataRef() {
157
- var _a2, _b2, _c, _d;
157
+ var _a2, _b2, _c, _d, _e;
158
158
  const resultData = await dataTransfer(props.tableData);
159
- const tableFullData = (_a2 = $table.value) == null ? void 0 : _a2.getTableData().fullData;
159
+ let tableFullData = (_a2 = $table.value) == null ? void 0 : _a2.getTableData().fullData;
160
160
  if (tableFullData) {
161
+ if ((_b2 = configRef.value.treeConfig) == null ? void 0 : _b2.transform) {
162
+ const { children = "childrenList" } = configRef.value.treeConfig;
163
+ tableFullData = tableFullData.map((item) => [item, ...item[children]]).flat();
164
+ }
161
165
  let resultIndex = 0;
162
166
  const isChanged = tableFullData.some((item) => {
163
167
  var _a3;
@@ -175,11 +179,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
175
179
  }
176
180
  }
177
181
  tableDataRef.value = resultData;
178
- if ((_b2 = configRef.value.treeConfig) == null ? void 0 : _b2.expandAll) {
182
+ if ((_c = configRef.value.treeConfig) == null ? void 0 : _c.expandAll) {
179
183
  await nextTick();
180
- (_c = $table.value) == null ? void 0 : _c.setAllTreeExpand(true);
184
+ (_d = $table.value) == null ? void 0 : _d.setAllTreeExpand(true);
181
185
  } else {
182
- (_d = $table.value) == null ? void 0 : _d.recalculate(true);
186
+ (_e = $table.value) == null ? void 0 : _e.recalculate(true);
183
187
  }
184
188
  resolveTableData();
185
189
  }
@@ -53,6 +53,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
53
53
  type: StringConstructor;
54
54
  default: string;
55
55
  };
56
+ updateValueOnClose: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
56
60
  isDateDisabled: {
57
61
  type: PropType<(current: number, ...arg: any[]) => boolean>;
58
62
  };
@@ -88,6 +92,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
88
92
  type: StringConstructor;
89
93
  default: string;
90
94
  };
95
+ updateValueOnClose: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
91
99
  isDateDisabled: {
92
100
  type: PropType<(current: number, ...arg: any[]) => boolean>;
93
101
  };
@@ -143,6 +151,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
151
  type: StringConstructor;
144
152
  default: string;
145
153
  };
154
+ updateValueOnClose: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
146
158
  isDateDisabled: {
147
159
  type: PropType<(current: number, ...arg: any[]) => boolean>;
148
160
  };
@@ -153,6 +165,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
153
165
  updateUnchangedValue: boolean;
154
166
  to: string | false | HTMLElement;
155
167
  holidays: Date[];
168
+ updateValueOnClose: boolean;
156
169
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
157
170
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
158
171
  payload: {
@@ -140,6 +140,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
140
  type: StringConstructor;
141
141
  default: string;
142
142
  };
143
+ updateValueOnClose: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
143
147
  isDateDisabled: {
144
148
  type: PropType<(current: number, ...arg: any[]) => boolean>;
145
149
  };
@@ -175,6 +179,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
175
179
  type: StringConstructor;
176
180
  default: string;
177
181
  };
182
+ updateValueOnClose: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
178
186
  isDateDisabled: {
179
187
  type: PropType<(current: number, ...arg: any[]) => boolean>;
180
188
  };
@@ -230,6 +238,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
230
238
  type: StringConstructor;
231
239
  default: string;
232
240
  };
241
+ updateValueOnClose: {
242
+ type: BooleanConstructor;
243
+ default: boolean;
244
+ };
233
245
  isDateDisabled: {
234
246
  type: PropType<(current: number, ...arg: any[]) => boolean>;
235
247
  };
@@ -240,6 +252,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
240
252
  updateUnchangedValue: boolean;
241
253
  to: string | false | HTMLElement;
242
254
  holidays: Date[];
255
+ updateValueOnClose: boolean;
243
256
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
244
257
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
245
258
  value: {
@@ -10,12 +10,14 @@ export declare class ShortcutManager {
10
10
  static log(message: string, dryRun?: boolean): string;
11
11
  constructor(environmentEle?: MaybeRef<HTMLElement | undefined>, scope?: string | Symbol);
12
12
  get traverse(): Omit<ShortcutItem, "callback">[];
13
+ remove(key: string): void;
13
14
  private query;
14
15
  update(key: string, info: KeyboardEvent | Partial<ShortcutSignatureInfo>): Promise<void>;
15
16
  register(shortcutItem: ShortcutItem): {
16
17
  stop: () => void;
17
18
  start: () => void;
18
19
  signature: () => string;
20
+ remove: () => void;
19
21
  };
20
22
  start(): this;
21
23
  destroy(): void;
@@ -26,6 +28,7 @@ export declare function useShortcuts(scope?: MaybeRef<string | Symbol | undefine
26
28
  stop: () => void;
27
29
  signature: () => string;
28
30
  start: () => void;
31
+ remove: () => void;
29
32
  };
30
33
  traverse: () => Omit<ShortcutItem, "callback">[];
31
34
  clear: () => void;
@@ -23,6 +23,10 @@ class ShortcutManager {
23
23
  get traverse() {
24
24
  return [...Object.values(this.shortcutCache.value)].sort((a, b) => (a.order || 0) - (b.order || 0));
25
25
  }
26
+ remove(key) {
27
+ Reflect.deleteProperty(this.shortcutCache.value, key);
28
+ this.shortcutCallbackMap.delete(key);
29
+ }
26
30
  query(key) {
27
31
  return this.shortcutCache.value[key];
28
32
  }
@@ -61,6 +65,7 @@ class ShortcutManager {
61
65
  }
62
66
  this.shortcutCache.value[shortcutItem.key] = omit(shortcutItem, ["callback"]);
63
67
  this.shortcutCallbackMap.set(shortcutItem.currentKeySignature, shortcutItem.callback);
68
+ const that = this;
64
69
  return createHandler(this.shortcutCache.value[shortcutItem.key]);
65
70
  function createHandler(shortcut) {
66
71
  return {
@@ -70,7 +75,8 @@ class ShortcutManager {
70
75
  start: () => {
71
76
  shortcut.status = ShortcutStatus.ACTIVE;
72
77
  },
73
- signature: () => shortcut.currentKeySignature
78
+ signature: () => shortcut.currentKeySignature,
79
+ remove: () => that.remove(shortcut.key)
74
80
  };
75
81
  }
76
82
  }
@@ -171,7 +177,7 @@ function useShortcuts(scope) {
171
177
  }
172
178
  }
173
179
  function register(shortcut) {
174
- const { stop, signature, start } = unref(manager).register(createShortcutItem(shortcut));
180
+ const { stop, signature, start, remove } = unref(manager).register(createShortcutItem(shortcut));
175
181
  if (getCurrentInstance()) {
176
182
  onBeforeUnmount(stop);
177
183
  onDeactivated(stop);
@@ -179,7 +185,7 @@ function useShortcuts(scope) {
179
185
  } else {
180
186
  onceRegisterWarn();
181
187
  }
182
- return { stop, signature, start };
188
+ return { stop, signature, start, remove };
183
189
  }
184
190
  function traverse() {
185
191
  return unref(manager).traverse;
@@ -30,6 +30,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<impor
30
30
  stop: () => void;
31
31
  signature: () => string;
32
32
  start: () => void;
33
+ remove: () => void;
33
34
  };
34
35
  traverse: () => Omit<import("..").ShortcutItem, "callback">[];
35
36
  clear: () => void;
@@ -33,6 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
33
33
  stop: () => void;
34
34
  signature: () => string;
35
35
  start: () => void;
36
+ remove: () => void;
36
37
  };
37
38
  traverse: () => Omit<import("../../../components/shortcut-provider").ShortcutItem, "callback">[];
38
39
  clear: () => void;
@@ -153,32 +153,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
153
153
  formValue.exportPath = "";
154
154
  emits("cancelSaveModal");
155
155
  }
156
- watch(() => props.curProgram, async (program) => {
157
- switch (program.schemeId) {
158
- case defaultKey:
159
- projectList.value = modeList.filter((mode) => mode.value === "addProject");
160
- selectProject.value = "addProject";
161
- formValue.projectName = "";
162
- break;
163
- default:
164
- projectList.value = cloneDeep(modeList);
165
- selectProject.value = "updateProject";
166
- formValue.projectName = program.schemeName;
167
- break;
168
- }
169
- const hoEdgeParams = {
170
- "exec": "getconf",
171
- "data": {
172
- "key": selectProject.value === "updateProject" ? program.schemeId : `${defaultKey}_schemeId`
156
+ watch(() => props.visible, async (isShow) => {
157
+ if (isShow) {
158
+ const program = props.curProgram;
159
+ switch (program.schemeId) {
160
+ case defaultKey:
161
+ projectList.value = modeList.filter((mode) => mode.value === "addProject");
162
+ selectProject.value = "addProject";
163
+ formValue.projectName = "";
164
+ break;
165
+ default:
166
+ projectList.value = cloneDeep(modeList);
167
+ selectProject.value = "updateProject";
168
+ formValue.projectName = program.schemeName;
169
+ break;
170
+ }
171
+ const hoEdgeParams = {
172
+ "exec": "getconf",
173
+ "data": {
174
+ "key": selectProject.value === "updateProject" ? program.schemeId : `${defaultKey}_schemeId`
175
+ }
176
+ };
177
+ const getHoEdgeData = await hoEdge.postMsg(hoEdgeParams);
178
+ if (getHoEdgeData == null ? void 0 : getHoEdgeData.result) {
179
+ formValue.exportPath = (getHoEdgeData == null ? void 0 : getHoEdgeData.res) || "";
173
180
  }
174
- };
175
- const getHoEdgeData = await hoEdge.postMsg(hoEdgeParams);
176
- if (getHoEdgeData == null ? void 0 : getHoEdgeData.result) {
177
- formValue.exportPath = (getHoEdgeData == null ? void 0 : getHoEdgeData.res) || "";
178
181
  }
179
182
  }, {
180
- immediate: true,
181
- deep: true
183
+ immediate: true
182
184
  });
183
185
  return (_ctx, _cache) => {
184
186
  return openBlock(), createBlock(unref(NModal), {
@@ -96,6 +96,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
96
96
  type: StringConstructor;
97
97
  default: string;
98
98
  };
99
+ updateValueOnClose: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
99
103
  isDateDisabled: {
100
104
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
101
105
  };
@@ -131,6 +135,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
131
135
  type: StringConstructor;
132
136
  default: string;
133
137
  };
138
+ updateValueOnClose: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
134
142
  isDateDisabled: {
135
143
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
136
144
  };
@@ -186,6 +194,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
186
194
  type: StringConstructor;
187
195
  default: string;
188
196
  };
197
+ updateValueOnClose: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
189
201
  isDateDisabled: {
190
202
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
191
203
  };
@@ -196,6 +208,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
196
208
  updateUnchangedValue: boolean;
197
209
  to: string | false | HTMLElement;
198
210
  holidays: Date[];
211
+ updateValueOnClose: boolean;
199
212
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
200
213
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
201
214
  componentCfg: {
@@ -59,6 +59,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
59
59
  type: StringConstructor;
60
60
  default: string;
61
61
  };
62
+ updateValueOnClose: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
62
66
  isDateDisabled: {
63
67
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
64
68
  };
@@ -94,6 +98,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
94
98
  type: StringConstructor;
95
99
  default: string;
96
100
  };
101
+ updateValueOnClose: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
97
105
  isDateDisabled: {
98
106
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
99
107
  };
@@ -149,6 +157,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
149
157
  type: StringConstructor;
150
158
  default: string;
151
159
  };
160
+ updateValueOnClose: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
152
164
  isDateDisabled: {
153
165
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
154
166
  };
@@ -159,6 +171,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
159
171
  updateUnchangedValue: boolean;
160
172
  to: string | false | HTMLElement;
161
173
  holidays: Date[];
174
+ updateValueOnClose: boolean;
162
175
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
163
176
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
164
177
  componentCfg: {
@@ -59,6 +59,10 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
59
59
  type: StringConstructor;
60
60
  default: string;
61
61
  };
62
+ updateValueOnClose: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
62
66
  isDateDisabled: {
63
67
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
64
68
  };
@@ -94,6 +98,10 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
94
98
  type: StringConstructor;
95
99
  default: string;
96
100
  };
101
+ updateValueOnClose: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
97
105
  isDateDisabled: {
98
106
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
99
107
  };
@@ -149,6 +157,10 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
149
157
  type: StringConstructor;
150
158
  default: string;
151
159
  };
160
+ updateValueOnClose: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
152
164
  isDateDisabled: {
153
165
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
154
166
  };
@@ -159,6 +171,7 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
159
171
  updateUnchangedValue: boolean;
160
172
  to: string | false | HTMLElement;
161
173
  holidays: Date[];
174
+ updateValueOnClose: boolean;
162
175
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
163
176
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
164
177
  componentCfg: {
@@ -214,6 +214,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
214
214
  type: StringConstructor;
215
215
  default: string;
216
216
  };
217
+ updateValueOnClose: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
217
221
  isDateDisabled: {
218
222
  type: PropType<(current: number, ...arg: any[]) => boolean>;
219
223
  };
@@ -249,6 +253,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
249
253
  type: StringConstructor;
250
254
  default: string;
251
255
  };
256
+ updateValueOnClose: {
257
+ type: BooleanConstructor;
258
+ default: boolean;
259
+ };
252
260
  isDateDisabled: {
253
261
  type: PropType<(current: number, ...arg: any[]) => boolean>;
254
262
  };
@@ -304,6 +312,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
304
312
  type: StringConstructor;
305
313
  default: string;
306
314
  };
315
+ updateValueOnClose: {
316
+ type: BooleanConstructor;
317
+ default: boolean;
318
+ };
307
319
  isDateDisabled: {
308
320
  type: PropType<(current: number, ...arg: any[]) => boolean>;
309
321
  };
@@ -314,6 +326,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
314
326
  updateUnchangedValue: boolean;
315
327
  to: string | false | HTMLElement;
316
328
  holidays: Date[];
329
+ updateValueOnClose: boolean;
317
330
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
318
331
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
319
332
  componentCfg: {