cnhis-design-vue 3.1.15-beta.1 → 3.1.15-beta.10

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 (220) hide show
  1. package/es/packages/annotation-edit/src/AnnotationEdit.js +2 -1
  2. package/es/packages/big-table/index.d.ts +8 -11
  3. package/es/packages/big-table/src/BigTable.vue.d.ts +24 -19
  4. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +17 -11
  5. package/es/packages/big-table/src/bigTableProps.d.ts +4 -3
  6. package/es/packages/big-table/src/bigTableProps.js +1 -1
  7. package/es/packages/big-table/src/components/edit-form/edit-date.js +2 -1
  8. package/es/packages/big-table/src/components/edit-form/edit-select.js +2 -1
  9. package/es/packages/big-table/src/components/edit-form/edit-separate.js +8 -1
  10. package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +2 -1
  11. package/es/packages/big-table/src/hooks/useAnnotation.d.ts +4 -0
  12. package/es/packages/big-table/src/hooks/useAnnotation.js +21 -0
  13. package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +7 -2
  14. package/es/packages/big-table/src/hooks/useEdit.d.ts +2 -1
  15. package/es/packages/big-table/style/index.css +27 -1
  16. package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +2 -2
  17. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +8 -8
  18. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +2 -2
  19. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +1 -1
  20. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +4 -3
  21. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +2 -2
  22. package/es/packages/bpmn-workflow/src/custom/customModeler/index.js +1 -1
  23. package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +2 -2
  24. package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +3 -3
  25. package/es/packages/button-print/src/utils/print.d.ts +1 -1
  26. package/es/packages/button-print/src/utils/print.js +1 -1
  27. package/es/packages/fabric-chart/index.d.ts +1 -0
  28. package/es/packages/fabric-chart/src/FabricChart.js +17 -17
  29. package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +12 -10
  30. package/es/packages/fabric-chart/src/hooks/useCenter.js +7 -5
  31. package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +4 -2
  32. package/es/packages/fabric-chart/src/hooks/useDraw.js +1 -0
  33. package/es/packages/fabric-chart/src/hooks/useLeft.js +5 -4
  34. package/es/packages/field-set/index.d.ts +4365 -0
  35. package/es/packages/field-set/src/FieldSet.js +53 -54
  36. package/es/packages/field-set/src/FieldSet.vue.d.ts +4365 -0
  37. package/es/packages/field-set/style/index.css +0 -9
  38. package/es/packages/form-config/index.d.ts +12111 -0
  39. package/es/packages/form-config/index.js +10 -0
  40. package/es/packages/form-config/src/FormConfig.js +113 -0
  41. package/es/packages/form-config/src/FormConfig.vue.d.ts +12113 -0
  42. package/es/packages/form-config/src/components/FormConfigCreator.js +97 -0
  43. package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +5094 -0
  44. package/es/packages/form-config/src/components/FormConfigEdit.js +81 -0
  45. package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +3591 -0
  46. package/es/packages/form-config/src/constants/index.d.ts +28 -0
  47. package/es/packages/form-config/src/constants/index.js +28 -0
  48. package/es/packages/form-config/src/hooks/index.d.ts +2 -0
  49. package/es/packages/form-config/src/hooks/index.js +2 -0
  50. package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +6 -0
  51. package/es/packages/form-config/src/hooks/useConfigurationField.js +103 -0
  52. package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +5 -0
  53. package/es/packages/form-config/src/hooks/usePresetRenderer.js +117 -0
  54. package/es/packages/form-config/src/hooks/useSortable.d.ts +11 -0
  55. package/es/packages/form-config/src/hooks/useSortable.js +31 -0
  56. package/es/packages/form-config/src/types/index.d.ts +18 -0
  57. package/es/packages/form-config/src/types/index.js +1 -0
  58. package/es/packages/form-config/style/index.css +108 -0
  59. package/es/packages/form-render/index.d.ts +24 -3
  60. package/es/packages/form-render/src/FormRender.js +10 -6
  61. package/es/packages/form-render/src/FormRender.vue.d.ts +24 -3
  62. package/es/packages/form-render/src/components/renderer/cascader.js +7 -7
  63. package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +5 -0
  64. package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +32 -0
  65. package/es/packages/form-render/src/components/renderer/{combination.d.ts → combination/index.d.ts} +7 -1
  66. package/es/packages/form-render/src/components/renderer/combination/index.js +157 -0
  67. package/es/packages/form-render/src/components/renderer/complex.d.ts +2 -0
  68. package/es/packages/form-render/src/components/renderer/complex.js +2 -5
  69. package/es/packages/form-render/src/components/renderer/date.d.ts +29 -0
  70. package/es/packages/form-render/src/components/renderer/date.js +63 -56
  71. package/es/packages/form-render/src/components/renderer/formItem.js +3 -3
  72. package/es/packages/form-render/src/components/renderer/index.js +1 -1
  73. package/es/packages/form-render/src/components/renderer/radio.js +4 -1
  74. package/es/packages/form-render/src/components/renderer/select.d.ts +9 -0
  75. package/es/packages/form-render/src/components/renderer/select.js +28 -17
  76. package/es/packages/form-render/src/constants/index.d.ts +2 -1
  77. package/es/packages/form-render/src/hooks/useAnchor.d.ts +7 -6
  78. package/es/packages/form-render/src/hooks/useAnchor.js +1 -2
  79. package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +6 -1
  80. package/es/packages/form-render/src/hooks/useAsyncQueue.js +12 -7
  81. package/es/packages/form-render/src/hooks/useCommonInjection.d.ts +6 -0
  82. package/es/packages/form-render/src/hooks/useCommonInjection.js +19 -0
  83. package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +4 -5
  84. package/es/packages/form-render/src/hooks/useFormContext.d.ts +3 -3
  85. package/es/packages/form-render/src/hooks/useFormContext.js +21 -3
  86. package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.d.ts +13 -0
  87. package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.js +10 -0
  88. package/es/packages/form-render/src/types/fieldItem.d.ts +16 -0
  89. package/es/packages/form-render/src/types/index.d.ts +30 -2
  90. package/es/packages/form-render/src/utils/index.d.ts +7 -5
  91. package/es/packages/form-render/src/utils/index.js +59 -11
  92. package/es/packages/form-render/style/index.css +11 -10
  93. package/es/packages/form-table/src/hooks/useNuiThemeOverrides.js +1 -1
  94. package/es/packages/index.css +147 -21
  95. package/es/packages/index.d.ts +3 -1
  96. package/es/packages/index.js +4 -1
  97. package/es/packages/info-header/index.d.ts +1 -3
  98. package/es/packages/info-header/src/HiddenContent.js +1 -1
  99. package/es/packages/info-header/src/HiddenContent.vue.d.ts +1 -3
  100. package/es/packages/info-header/src/InfoHeader.vue.d.ts +1 -3
  101. package/es/packages/info-header/style/index.css +1 -1
  102. package/es/packages/shortcut-provider/index.d.ts +2 -11
  103. package/es/packages/shortcut-provider/src/ShortcutProvider.js +1 -5
  104. package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -11
  105. package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +11 -8
  106. package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +44 -28
  107. package/es/packages/shortcut-provider/src/types/index.d.ts +32 -4
  108. package/es/packages/shortcut-provider/src/utils/index.d.ts +3 -0
  109. package/es/packages/shortcut-provider/src/utils/index.js +15 -5
  110. package/es/packages/shortcut-setter/index.d.ts +32 -9
  111. package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -9
  112. package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +8 -6
  113. package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +8 -6
  114. package/es/src/utils/state.d.ts +29 -0
  115. package/es/src/utils/state.js +44 -0
  116. package/package.json +10 -1
  117. package/es/_virtual/_commonjsHelpers.js +0 -7
  118. package/es/_virtual/css.escape.js +0 -3
  119. package/es/_virtual/inherits.js +0 -3
  120. package/es/_virtual/inherits_browser.js +0 -3
  121. package/es/node_modules/@formily/path/esm/contexts.js +0 -22
  122. package/es/node_modules/@formily/path/esm/destructor.js +0 -124
  123. package/es/node_modules/@formily/path/esm/index.js +0 -579
  124. package/es/node_modules/@formily/path/esm/matcher.js +0 -199
  125. package/es/node_modules/@formily/path/esm/parser.js +0 -402
  126. package/es/node_modules/@formily/path/esm/shared.js +0 -73
  127. package/es/node_modules/@formily/path/esm/tokenizer.js +0 -287
  128. package/es/node_modules/@formily/path/esm/tokens.js +0 -240
  129. package/es/node_modules/@formily/path/esm/types.js +0 -17
  130. package/es/node_modules/css.escape/css.escape.js +0 -110
  131. package/es/node_modules/date-fns/esm/_lib/defaultOptions/index.js +0 -6
  132. package/es/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -18
  133. package/es/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
  134. package/es/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -27
  135. package/es/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
  136. package/es/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -38
  137. package/es/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -7
  138. package/es/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -27
  139. package/es/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -23
  140. package/es/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -15
  141. package/es/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -15
  142. package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -15
  143. package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -15
  144. package/es/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -25
  145. package/es/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -21
  146. package/es/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -15
  147. package/es/node_modules/date-fns/esm/compareAsc/index.js +0 -52
  148. package/es/node_modules/date-fns/esm/constants/index.js +0 -40
  149. package/es/node_modules/date-fns/esm/differenceInCalendarDays/index.js +0 -49
  150. package/es/node_modules/date-fns/esm/differenceInCalendarMonths/index.js +0 -35
  151. package/es/node_modules/date-fns/esm/differenceInCalendarYears/index.js +0 -33
  152. package/es/node_modules/date-fns/esm/differenceInDays/index.js +0 -86
  153. package/es/node_modules/date-fns/esm/differenceInMonths/index.js +0 -59
  154. package/es/node_modules/date-fns/esm/differenceInYears/index.js +0 -43
  155. package/es/node_modules/date-fns/esm/endOfDay/index.js +0 -30
  156. package/es/node_modules/date-fns/esm/endOfMonth/index.js +0 -32
  157. package/es/node_modules/date-fns/esm/isLastDayOfMonth/index.js +0 -30
  158. package/es/node_modules/date-fns/esm/parse/_lib/Parser.js +0 -32
  159. package/es/node_modules/date-fns/esm/parse/_lib/Setter.js +0 -37
  160. package/es/node_modules/date-fns/esm/parse/_lib/constants.js +0 -48
  161. package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
  162. package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +0 -55
  163. package/es/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +0 -55
  164. package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +0 -52
  165. package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +0 -80
  166. package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +0 -56
  167. package/es/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +0 -53
  168. package/es/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +0 -30
  169. package/es/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +0 -29
  170. package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +0 -48
  171. package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +0 -41
  172. package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +0 -42
  173. package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +0 -50
  174. package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +0 -99
  175. package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +0 -46
  176. package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -46
  177. package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +0 -43
  178. package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +0 -33
  179. package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +0 -96
  180. package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +0 -43
  181. package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +0 -61
  182. package/es/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +0 -41
  183. package/es/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +0 -80
  184. package/es/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +0 -73
  185. package/es/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +0 -41
  186. package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -96
  187. package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +0 -80
  188. package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +0 -73
  189. package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -26
  190. package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +0 -26
  191. package/es/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +0 -66
  192. package/es/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -109
  193. package/es/node_modules/date-fns/esm/parse/_lib/utils.js +0 -133
  194. package/es/node_modules/date-fns/esm/startOfDay/index.js +0 -30
  195. package/es/node_modules/date-fns/esm/toDate/index.js +0 -55
  196. package/es/node_modules/diagram-js/lib/command/CommandInterceptor.js +0 -139
  197. package/es/node_modules/diagram-js/lib/draw/BaseRenderer.js +0 -88
  198. package/es/node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js +0 -591
  199. package/es/node_modules/diagram-js/lib/features/rules/RuleProvider.js +0 -88
  200. package/es/node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js +0 -120
  201. package/es/node_modules/diagram-js/lib/navigation/movecanvas/index.js +0 -8
  202. package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js +0 -227
  203. package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js +0 -24
  204. package/es/node_modules/diagram-js/lib/util/ClickTrap.js +0 -23
  205. package/es/node_modules/diagram-js/lib/util/Cursor.js +0 -20
  206. package/es/node_modules/diagram-js/lib/util/Event.js +0 -22
  207. package/es/node_modules/diagram-js/lib/util/Math.js +0 -9
  208. package/es/node_modules/diagram-js/lib/util/Mouse.js +0 -30
  209. package/es/node_modules/diagram-js/lib/util/Platform.js +0 -5
  210. package/es/node_modules/diagram-js/lib/util/PositionUtil.js +0 -8
  211. package/es/node_modules/diagram-js/lib/util/RenderUtil.js +0 -25
  212. package/es/node_modules/diagram-js/lib/util/SvgTransformUtil.js +0 -48
  213. package/es/node_modules/ids/dist/index.esm.js +0 -164
  214. package/es/node_modules/inherits/inherits.js +0 -19
  215. package/es/node_modules/inherits/inherits_browser.js +0 -38
  216. package/es/node_modules/inherits-browser/dist/index.es.js +0 -3
  217. package/es/node_modules/min-dash/dist/index.esm.js +0 -169
  218. package/es/node_modules/min-dom/dist/index.esm.js +0 -588
  219. package/es/node_modules/tiny-svg/dist/index.esm.js +0 -525
  220. package/es/packages/form-render/src/components/renderer/combination.js +0 -168
@@ -57,17 +57,19 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
57
57
  fieldItem: import("..").FieldItem;
58
58
  placeholder: string;
59
59
  editPlaceholder: string;
60
- operation: ("disabled" | "reset")[];
60
+ operation: ("reset" | "state")[];
61
61
  };
62
- query: (key: string) => any;
62
+ query: (key: string) => Omit<import("..").ShortcutItem, "callback">;
63
63
  update: (key: string, info: KeyboardEvent | Partial<import("..").ShortcutSignatureInfo>) => void;
64
- updateState: (key: string, state?: boolean | undefined) => void;
65
- shortcutItem: import("vue").ComputedRef<any>;
64
+ updateDisabled: (key: string, state?: boolean | undefined) => void;
65
+ onReset: (key: string) => void;
66
+ updateManagerDisabled: (disabled?: boolean | undefined) => void;
67
+ shortcutItem: import("vue").ComputedRef<Omit<import("..").ShortcutItem, "callback">>;
66
68
  disabledState: import("vue").ComputedRef<boolean>;
67
69
  currentSetShortcut: import("vue").ComputedRef<string>;
68
70
  state: import("vue").Ref<import("./constant").ShortcutInputState>;
69
71
  isEditState: import("vue").ComputedRef<boolean>;
70
- hasOperation: (operation: "disabled" | "reset") => boolean;
72
+ hasOperation: (operation: "reset" | "state") => boolean;
71
73
  currentEditShortcut: import("vue").Ref<string>;
72
74
  showContent: import("vue").ComputedRef<string>;
73
75
  placeholder: import("vue").ComputedRef<string>;
@@ -79,7 +81,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
79
81
  updateDecorator: (fn: () => unknown, afterUpdate?: (() => void) | undefined) => void;
80
82
  onInputKeyUp: import("lodash").DebouncedFuncLeading<(event: KeyboardEvent) => void>;
81
83
  onStop: () => void;
82
- onReset: () => void;
84
+ onSignatureReset: () => void;
83
85
  NButton: import("vue").DefineComponent<{
84
86
  readonly color: StringConstructor;
85
87
  readonly textColor: StringConstructor;
@@ -4392,6 +4394,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
4392
4394
  uuid: {
4393
4395
  type: StringConstructor;
4394
4396
  };
4397
+ lifeCycle: {
4398
+ type: import("vue").PropType<Partial<{
4399
+ onSetup(): void;
4400
+ beforeRequest(fieldKey: string, params?: import("../../../es/src/types").AnyObject | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject>;
4401
+ afterRequest(fieldKey: string, payload?: any): import("../../../es/src/types").AnyObject[];
4402
+ }>>;
4403
+ };
4395
4404
  }, {
4396
4405
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
4397
4406
  fieldList: {
@@ -4500,6 +4509,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
4500
4509
  uuid: {
4501
4510
  type: StringConstructor;
4502
4511
  };
4512
+ lifeCycle: {
4513
+ type: import("vue").PropType<Partial<{
4514
+ onSetup(): void;
4515
+ beforeRequest(fieldKey: string, params?: import("../../../es/src/types").AnyObject | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject>;
4516
+ afterRequest(fieldKey: string, payload?: any): import("../../../es/src/types").AnyObject[];
4517
+ }>>;
4518
+ };
4503
4519
  }>> & {
4504
4520
  onFormChange?: ((...args: any[]) => any) | undefined;
4505
4521
  }>>;
@@ -4509,10 +4525,11 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
4509
4525
  businessCollector: import("..").BusinessCollector;
4510
4526
  formItemDepsCollector: import("..").FormItemDepsCollector;
4511
4527
  changeContextCollector: import("..").ContextCollector;
4512
- formUUID: any;
4528
+ formUUID: string;
4513
4529
  formModel: import("@formily/core").Form<{
4514
4530
  [x: string]: any;
4515
4531
  }>;
4532
+ scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
4516
4533
  schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
4517
4534
  [key: symbol]: any;
4518
4535
  [key: `x-${string}`]: any;
@@ -4628,7 +4645,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
4628
4645
  "x-compile-omitted"?: string[] | undefined;
4629
4646
  }>>;
4630
4647
  currentAnchor: import("vue").WritableComputedRef<string>;
4631
- scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
4632
4648
  generateAnchorList: (schema: import("@formily/json-schema").Stringify<{
4633
4649
  [key: symbol]: any;
4634
4650
  [key: `x-${string}`]: any;
@@ -4690,7 +4706,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
4690
4706
  name: string;
4691
4707
  title: string;
4692
4708
  }[]>;
4693
- formHeight: import("vue").ComputedRef<any>;
4709
+ formHeight: import("vue").ComputedRef<string | undefined>;
4694
4710
  onScroll: () => void;
4695
4711
  queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("..").FieldItem[]) => Promise<{
4696
4712
  widgetElement: HTMLInputElement | null | undefined;
@@ -5995,6 +6011,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
5995
6011
  uuid: {
5996
6012
  type: StringConstructor;
5997
6013
  };
6014
+ lifeCycle: {
6015
+ type: import("vue").PropType<Partial<{
6016
+ onSetup(): void;
6017
+ beforeRequest(fieldKey: string, params?: import("../../../es/src/types").AnyObject | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject>;
6018
+ afterRequest(fieldKey: string, payload?: any): import("../../../es/src/types").AnyObject[];
6019
+ }>>;
6020
+ };
5998
6021
  }>> & {
5999
6022
  onFormChange?: ((...args: any[]) => any) | undefined;
6000
6023
  }, {
@@ -57,17 +57,19 @@ declare const _default: import("vue").DefineComponent<{
57
57
  fieldItem: FieldItem;
58
58
  placeholder: string;
59
59
  editPlaceholder: string;
60
- operation: ("disabled" | "reset")[];
60
+ operation: ("reset" | "state")[];
61
61
  };
62
- query: (key: string) => any;
62
+ query: (key: string) => Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">;
63
63
  update: (key: string, info: KeyboardEvent | Partial<import("../../../../es/packages/shortcut-provider").ShortcutSignatureInfo>) => void;
64
- updateState: (key: string, state?: boolean | undefined) => void;
65
- shortcutItem: import("vue").ComputedRef<any>;
64
+ updateDisabled: (key: string, state?: boolean | undefined) => void;
65
+ onReset: (key: string) => void;
66
+ updateManagerDisabled: (disabled?: boolean | undefined) => void;
67
+ shortcutItem: import("vue").ComputedRef<Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">>;
66
68
  disabledState: import("vue").ComputedRef<boolean>;
67
69
  currentSetShortcut: import("vue").ComputedRef<string>;
68
70
  state: import("vue").Ref<import("../constant").ShortcutInputState>;
69
71
  isEditState: import("vue").ComputedRef<boolean>;
70
- hasOperation: (operation: "disabled" | "reset") => boolean;
72
+ hasOperation: (operation: "reset" | "state") => boolean;
71
73
  currentEditShortcut: import("vue").Ref<string>;
72
74
  showContent: import("vue").ComputedRef<string>;
73
75
  placeholder: import("vue").ComputedRef<string>;
@@ -79,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
79
81
  updateDecorator: (fn: () => unknown, afterUpdate?: (() => void) | undefined) => void;
80
82
  onInputKeyUp: import("lodash").DebouncedFuncLeading<(event: KeyboardEvent) => void>;
81
83
  onStop: () => void;
82
- onReset: () => void;
84
+ onSignatureReset: () => void;
83
85
  NButton: import("vue").DefineComponent<{
84
86
  readonly color: StringConstructor;
85
87
  readonly textColor: StringConstructor;
@@ -4392,6 +4394,13 @@ declare const _default: import("vue").DefineComponent<{
4392
4394
  uuid: {
4393
4395
  type: StringConstructor;
4394
4396
  };
4397
+ lifeCycle: {
4398
+ type: import("vue").PropType<Partial<{
4399
+ onSetup(): void;
4400
+ beforeRequest(fieldKey: string, params?: import("../../../src/types").AnyObject | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject>;
4401
+ afterRequest(fieldKey: string, payload?: any): import("../../../src/types").AnyObject[];
4402
+ }>>;
4403
+ };
4395
4404
  }, {
4396
4405
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
4397
4406
  fieldList: {
@@ -4500,6 +4509,13 @@ declare const _default: import("vue").DefineComponent<{
4500
4509
  uuid: {
4501
4510
  type: StringConstructor;
4502
4511
  };
4512
+ lifeCycle: {
4513
+ type: import("vue").PropType<Partial<{
4514
+ onSetup(): void;
4515
+ beforeRequest(fieldKey: string, params?: import("../../../src/types").AnyObject | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject>;
4516
+ afterRequest(fieldKey: string, payload?: any): import("../../../src/types").AnyObject[];
4517
+ }>>;
4518
+ };
4503
4519
  }>> & {
4504
4520
  onFormChange?: ((...args: any[]) => any) | undefined;
4505
4521
  }>>;
@@ -4509,10 +4525,11 @@ declare const _default: import("vue").DefineComponent<{
4509
4525
  businessCollector: import("../../../../es/packages/form-render").BusinessCollector;
4510
4526
  formItemDepsCollector: import("../../../../es/packages/form-render").FormItemDepsCollector;
4511
4527
  changeContextCollector: import("../../../../es/packages/form-render").ContextCollector;
4512
- formUUID: any;
4528
+ formUUID: string;
4513
4529
  formModel: import("@formily/core").Form<{
4514
4530
  [x: string]: any;
4515
4531
  }>;
4532
+ scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
4516
4533
  schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
4517
4534
  [key: symbol]: any;
4518
4535
  [key: `x-${string}`]: any;
@@ -4628,7 +4645,6 @@ declare const _default: import("vue").DefineComponent<{
4628
4645
  "x-compile-omitted"?: string[] | undefined;
4629
4646
  }>>;
4630
4647
  currentAnchor: import("vue").WritableComputedRef<string>;
4631
- scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
4632
4648
  generateAnchorList: (schema: import("@formily/json-schema").Stringify<{
4633
4649
  [key: symbol]: any;
4634
4650
  [key: `x-${string}`]: any;
@@ -4690,7 +4706,7 @@ declare const _default: import("vue").DefineComponent<{
4690
4706
  name: string;
4691
4707
  title: string;
4692
4708
  }[]>;
4693
- formHeight: import("vue").ComputedRef<any>;
4709
+ formHeight: import("vue").ComputedRef<string | undefined>;
4694
4710
  onScroll: () => void;
4695
4711
  queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
4696
4712
  widgetElement: HTMLInputElement | null | undefined;
@@ -5995,6 +6011,13 @@ declare const _default: import("vue").DefineComponent<{
5995
6011
  uuid: {
5996
6012
  type: StringConstructor;
5997
6013
  };
6014
+ lifeCycle: {
6015
+ type: import("vue").PropType<Partial<{
6016
+ onSetup(): void;
6017
+ beforeRequest(fieldKey: string, params?: import("../../../src/types").AnyObject | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject>;
6018
+ afterRequest(fieldKey: string, payload?: any): import("../../../src/types").AnyObject[];
6019
+ }>>;
6020
+ };
5998
6021
  }>> & {
5999
6022
  onFormChange?: ((...args: any[]) => any) | undefined;
6000
6023
  }, {
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  },
25
25
  setup(__props) {
26
26
  const props = __props;
27
- const { query, update, updateState } = useShortcuts(props.glob);
27
+ const { query, update, updateDisabled, onReset, updateManagerDisabled } = useShortcuts(props.glob);
28
28
  const shortcutItem = computed(() => {
29
29
  return query(props.fieldItem.val_key);
30
30
  });
@@ -49,11 +49,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  return isEditState.value ? props.placeholder : props.editPlaceholder;
50
50
  });
51
51
  function onInputFocus() {
52
+ updateManagerDisabled(true);
52
53
  state.value = ShortcutInputState.EDIT;
53
54
  }
54
55
  const inputRef = ref();
55
56
  function onInputBlur() {
56
57
  var _a;
58
+ updateManagerDisabled(false);
57
59
  state.value = ShortcutInputState.STATIC;
58
60
  currentEditShortcut.value = "";
59
61
  (_a = inputRef.value) == null ? void 0 : _a.blur();
@@ -76,12 +78,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
78
  function onStop() {
77
79
  if (!shortcutItem.value)
78
80
  return;
79
- updateDecorator(() => updateState(props.fieldItem.val_key, !disabledState.value), onInputBlur);
81
+ updateDecorator(() => updateDisabled(props.fieldItem.val_key, !disabledState.value), onInputBlur);
80
82
  }
81
- function onReset() {
83
+ function onSignatureReset() {
82
84
  if (!shortcutItem.value)
83
85
  return;
84
- updateDecorator(() => update(props.fieldItem.val_key, shortcutItem.value.defaultShortcut), onInputBlur);
86
+ updateDecorator(() => onReset(props.fieldItem.val_key), onInputBlur);
85
87
  }
86
88
  return (_ctx, _cache) => {
87
89
  return openBlock(), createElementBlock("section", _hoisted_1, [
@@ -97,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
99
  onKeyup: withModifiers(unref(onInputKeyUp), ["prevent", "stop"])
98
100
  }, null, 8, ["disabled", "value", "placeholder", "onKeydown", "onKeyup"]),
99
101
  createElementVNode("section", _hoisted_2, [
100
- hasOperation("disabled") ? (openBlock(), createBlock(unref(NButton), {
102
+ hasOperation("state") ? (openBlock(), createBlock(unref(NButton), {
101
103
  key: 0,
102
104
  text: "",
103
105
  onClick: onStop,
@@ -110,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
112
  }, 8, ["type"])) : createCommentVNode("v-if", true),
111
113
  hasOperation("reset") ? (openBlock(), createBlock(unref(NPopconfirm), {
112
114
  key: 1,
113
- onPositiveClick: onReset
115
+ onPositiveClick: onSignatureReset
114
116
  }, {
115
117
  trigger: withCtx(() => [
116
118
  createVNode(unref(NButton), {
@@ -47,17 +47,19 @@ declare const _default: import("vue").DefineComponent<{
47
47
  fieldItem: FieldItem;
48
48
  placeholder: string;
49
49
  editPlaceholder: string;
50
- operation: Array<'disabled' | 'reset'>;
50
+ operation: Array<'state' | 'reset'>;
51
51
  };
52
- query: (key: string) => any;
52
+ query: (key: string) => Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">;
53
53
  update: (key: string, info: KeyboardEvent | Partial<import("../../../../es/packages/shortcut-provider").ShortcutSignatureInfo>) => void;
54
- updateState: (key: string, state?: boolean | undefined) => void;
55
- shortcutItem: import("vue").ComputedRef<any>;
54
+ updateDisabled: (key: string, state?: boolean | undefined) => void;
55
+ onReset: (key: string) => void;
56
+ updateManagerDisabled: (disabled?: boolean | undefined) => void;
57
+ shortcutItem: import("vue").ComputedRef<Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">>;
56
58
  disabledState: import("vue").ComputedRef<boolean>;
57
59
  currentSetShortcut: import("vue").ComputedRef<string>;
58
60
  state: import("vue").Ref<ShortcutInputState>;
59
61
  isEditState: import("vue").ComputedRef<boolean>;
60
- hasOperation: (operation: 'disabled' | 'reset') => boolean;
62
+ hasOperation: (operation: 'state' | 'reset') => boolean;
61
63
  currentEditShortcut: import("vue").Ref<string>;
62
64
  showContent: import("vue").ComputedRef<string>;
63
65
  placeholder: import("vue").ComputedRef<string>;
@@ -69,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
69
71
  updateDecorator: (fn: () => unknown, afterUpdate?: () => void) => void;
70
72
  onInputKeyUp: import("lodash").DebouncedFuncLeading<(event: KeyboardEvent) => void>;
71
73
  onStop: () => void;
72
- onReset: () => void;
74
+ onSignatureReset: () => void;
73
75
  NButton: import("vue").DefineComponent<{
74
76
  readonly color: StringConstructor;
75
77
  readonly textColor: StringConstructor;
@@ -0,0 +1,29 @@
1
+ import { Ref, UnwrapRef, WritableComputedOptions, WritableComputedRef, ComputedRef } from 'vue';
2
+ interface GetState<T> {
3
+ (isRef: true): Ref<UnwrapRef<T>>;
4
+ (isRef?: false): UnwrapRef<T>;
5
+ }
6
+ export declare function useState<T>(initValue?: T): [GetState<T>, (val: UnwrapRef<T>) => UnwrapRef<T>];
7
+ export declare function useRef<T>(): GetState<T | null>;
8
+ /**
9
+ * v-for的ref引用
10
+ */
11
+ export declare function useRefs<T>(): [Set<T>, (el: T) => void];
12
+ /**
13
+ * v-for的ref引用
14
+ * @return 数组
15
+ */
16
+ export declare function useRefsArray<T>(): [T[], (el: T) => void];
17
+ interface GetComputed<T, R> {
18
+ (isRef: true): R;
19
+ (isRef: false): T;
20
+ (): T;
21
+ }
22
+ export declare function useComputed<T>(getter: WritableComputedOptions<T>['get']): GetComputed<T, ComputedRef<T>>;
23
+ export declare function useComputed<T>(options: WritableComputedOptions<T>): [GetComputed<T, WritableComputedRef<T>>, (val: T) => void];
24
+ /**
25
+ * 返回{ [key]: Ref }
26
+ * @params obj { [变量名]: useState或useComputed返回的getter函数 }
27
+ */
28
+ export declare function getRefs(obj: Record<string, GetState<any> | GetComputed<any, any>>): Record<string, Ref<any>>;
29
+ export {};
@@ -0,0 +1,44 @@
1
+ import { ref, onBeforeUpdate, computed, unref } from 'vue';
2
+
3
+ function useState(initValue) {
4
+ const state = ref(initValue);
5
+ const getState = (isRef) => isRef ? state : unref(state);
6
+ return [getState, (val) => state.value = val];
7
+ }
8
+ function useRef() {
9
+ return useState(null)[0];
10
+ }
11
+ function useRefs() {
12
+ const itemRefs = /* @__PURE__ */ new Set();
13
+ const setItemRef = (el) => el && itemRefs.add(el);
14
+ onBeforeUpdate(() => itemRefs.clear());
15
+ return [itemRefs, setItemRef];
16
+ }
17
+ function useRefsArray() {
18
+ let itemRefs = [];
19
+ const setItemRef = (el) => {
20
+ itemRefs.push(el);
21
+ };
22
+ onBeforeUpdate(() => {
23
+ itemRefs = [];
24
+ });
25
+ return [itemRefs, setItemRef];
26
+ }
27
+ function isWritableComputedOptions(arg) {
28
+ return typeof arg === "object" && Reflect.has(arg || {}, "set");
29
+ }
30
+ function useComputed(arg) {
31
+ const data = isWritableComputedOptions(arg) ? computed(arg) : computed(arg);
32
+ const getData = (isRef) => isRef ? data : data.value;
33
+ if (!isWritableComputedOptions(arg)) {
34
+ return getData;
35
+ }
36
+ return [getData, (val) => data.value = val];
37
+ }
38
+ function getRefs(obj) {
39
+ const result = {};
40
+ Object.entries(obj).forEach(([k, fn]) => result[k] = fn(true));
41
+ return result;
42
+ }
43
+
44
+ export { getRefs, useComputed, useRef, useRefs, useRefsArray, useState };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.15-beta.1",
4
+ "version": "3.1.15-beta.10",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.js",
7
7
  "main": "es/packages/index.js",
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@formily/core": "^2.1.9",
35
+ "@formily/path": "^2.1.9",
35
36
  "@formily/vue": "^2.1.9",
36
37
  "@highlightjs/vue-plugin": "^2.1.0",
37
38
  "@vicons/ionicons5": "^0.12.0",
@@ -43,14 +44,21 @@
43
44
  "babel-preset-typescript": "7.0.0-alpha.19",
44
45
  "bpmn-js": "^9.2.2",
45
46
  "crypto-js": "^4.1.1",
47
+ "date-fns": "^2.29.1",
48
+ "diagram-js": "^8.7.1",
46
49
  "highlight.js": "^11.5.1",
50
+ "ids": "^1.0.0",
51
+ "inherits": "^2.0.4",
47
52
  "lodash": "^4.17.21",
48
53
  "lodash-es": "^4.17.21",
49
54
  "lodash-unified": "^1.0.2",
55
+ "min-dash": "^3.8.1",
56
+ "min-dom": "^3.2.1",
50
57
  "moment": "^2.29.1",
51
58
  "naive-ui": "^2.29.0",
52
59
  "rimraf": "^3.0.2",
53
60
  "spark-md5": "^3.0.2",
61
+ "tiny-svg": "^2.2.4",
54
62
  "type-fest": "^2.13.0",
55
63
  "v-viewer": "^3.0.10",
56
64
  "video.js": "^7.19.2",
@@ -82,6 +90,7 @@
82
90
  "@types/markdown-it": "^12.2.3",
83
91
  "@types/node": "^17.0.38",
84
92
  "@types/replacestream": "^4.0.1",
93
+ "@types/sortablejs": "^1.13.0",
85
94
  "@types/vue-router": "^2.0.0",
86
95
  "@typescript-eslint/eslint-plugin": "^5.30.7",
87
96
  "@typescript-eslint/parser": "^5.30.7",
@@ -1,7 +0,0 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
- }
6
-
7
- export { commonjsGlobal, getDefaultExportFromCjs };
@@ -1,3 +0,0 @@
1
- var css_escape = {exports: {}};
2
-
3
- export { css_escape as c };
@@ -1,3 +0,0 @@
1
- var inherits = {exports: {}};
2
-
3
- export { inherits as i };
@@ -1,3 +0,0 @@
1
- var inherits_browser = {exports: {}};
2
-
3
- export { inherits_browser as i };
@@ -1,22 +0,0 @@
1
- var __assign = (undefined && undefined.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var ContextType = function (flag, props) {
13
- return __assign({ flag: flag }, props);
14
- };
15
- var bracketContext = ContextType('[]');
16
- var bracketArrayContext = ContextType('[\\d]');
17
- var bracketDContext = ContextType('[[]]');
18
- var parenContext = ContextType('()');
19
- var braceContext = ContextType('{}');
20
- var destructorContext = ContextType('{x}');
21
-
22
- export { braceContext, bracketArrayContext, bracketContext, bracketDContext, destructorContext, parenContext };
@@ -1,124 +0,0 @@
1
- import { isObjectPattern, isIdentifier, isArrayPattern, isDestructorExpression } from './types.js';
2
- import { isNum } from './shared.js';
3
-
4
- var DestructorCache = new Map();
5
- var isValid = function (val) { return val !== undefined && val !== null; };
6
- var getDestructor = function (source) {
7
- return DestructorCache.get(source);
8
- };
9
- var setDestructor = function (source, rules) {
10
- DestructorCache.set(source, rules);
11
- };
12
- var parseDestructorRules = function (node) {
13
- var rules = [];
14
- if (isObjectPattern(node)) {
15
- var index_1 = 0;
16
- node.properties.forEach(function (child) {
17
- rules[index_1] = {
18
- path: [],
19
- };
20
- rules[index_1].key = child.key.value;
21
- rules[index_1].path.push(child.key.value);
22
- if (isIdentifier(child.value)) {
23
- rules[index_1].key = child.value.value;
24
- }
25
- var basePath = rules[index_1].path;
26
- var childRules = parseDestructorRules(child.value);
27
- var k = index_1;
28
- childRules.forEach(function (rule) {
29
- if (rules[k]) {
30
- rules[k].key = rule.key;
31
- rules[k].path = basePath.concat(rule.path);
32
- }
33
- else {
34
- rules[k] = {
35
- key: rule.key,
36
- path: basePath.concat(rule.path),
37
- };
38
- }
39
- k++;
40
- });
41
- if (k > index_1) {
42
- index_1 = k;
43
- }
44
- else {
45
- index_1++;
46
- }
47
- });
48
- return rules;
49
- }
50
- else if (isArrayPattern(node)) {
51
- var index_2 = 0;
52
- node.elements.forEach(function (child, key) {
53
- rules[index_2] = {
54
- path: [],
55
- };
56
- rules[index_2].key = key;
57
- rules[index_2].path.push(key);
58
- if (isIdentifier(child)) {
59
- rules[index_2].key = child.value;
60
- }
61
- var basePath = rules[index_2].path;
62
- var childRules = parseDestructorRules(child);
63
- var k = index_2;
64
- childRules.forEach(function (rule) {
65
- if (rules[k]) {
66
- rules[k].key = rule.key;
67
- rules[k].path = basePath.concat(rule.path);
68
- }
69
- else {
70
- rules[k] = {
71
- key: rule.key,
72
- path: basePath.concat(rule.path),
73
- };
74
- }
75
- k++;
76
- });
77
- if (k > index_2) {
78
- index_2 = k;
79
- }
80
- else {
81
- index_2++;
82
- }
83
- });
84
- return rules;
85
- }
86
- if (isDestructorExpression(node)) {
87
- return parseDestructorRules(node.value);
88
- }
89
- return rules;
90
- };
91
- var setInByDestructor = function (source, rules, value, mutators) {
92
- rules.forEach(function (_a) {
93
- var key = _a.key, path = _a.path;
94
- mutators.setIn([key], source, mutators.getIn(path, value));
95
- });
96
- };
97
- var getInByDestructor = function (source, rules, mutators) {
98
- var response = {};
99
- if (rules.length) {
100
- if (isNum(rules[0].path[0])) {
101
- response = [];
102
- }
103
- }
104
- source = isValid(source) ? source : {};
105
- rules.forEach(function (_a) {
106
- var key = _a.key, path = _a.path;
107
- mutators.setIn(path, response, source[key]);
108
- });
109
- return response;
110
- };
111
- var deleteInByDestructor = function (source, rules, mutators) {
112
- rules.forEach(function (_a) {
113
- var key = _a.key;
114
- mutators.deleteIn([key], source);
115
- });
116
- };
117
- var existInByDestructor = function (source, rules, start, mutators) {
118
- return rules.every(function (_a) {
119
- var key = _a.key;
120
- return mutators.existIn([key], source, start);
121
- });
122
- };
123
-
124
- export { deleteInByDestructor, existInByDestructor, getDestructor, getInByDestructor, parseDestructorRules, setDestructor, setInByDestructor };