cnhis-design-vue 3.1.42-beta.2 → 3.1.42-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.
Files changed (147) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/src/index.vue.js +1 -1
  3. package/es/components/base-search/style/index.css +1 -1
  4. package/es/components/big-table/index.d.ts +3 -4
  5. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  6. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  7. package/es/components/big-table/style/index.css +1 -1
  8. package/es/components/button-print/index.d.ts +4 -4
  9. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  10. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  11. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  12. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  13. package/es/components/button-print/src/utils/print.js +1 -1
  14. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  15. package/es/components/config-provider/src/interface.d.ts +4 -4
  16. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  17. package/es/components/fabric-chart/index.d.ts +2 -2
  18. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  19. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
  20. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
  25. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
  26. package/es/components/field-set/index.d.ts +84 -15
  27. package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
  28. package/es/components/field-set/src/types/index.d.ts +18 -0
  29. package/es/components/field-set/src/types/index.js +1 -0
  30. package/es/components/form-config/index.d.ts +28 -25
  31. package/es/components/form-config/src/FormConfig.vue.d.ts +28 -25
  32. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  33. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  34. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -13
  35. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  36. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  37. package/es/components/form-config/src/constants/index.d.ts +12 -1
  38. package/es/components/form-config/src/constants/index.js +1 -1
  39. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  40. package/es/components/form-config/src/types/index.d.ts +1 -0
  41. package/es/components/form-render/index.d.ts +12 -12
  42. package/es/components/form-render/index.js +1 -1
  43. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  44. package/es/components/form-render/src/FormRender.vue.js +1 -1
  45. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  46. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  47. package/es/components/form-render/src/components/renderer/date.js +1 -1
  48. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  49. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  50. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  51. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  52. package/es/components/form-render/src/components/renderer/select.js +1 -1
  53. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  54. package/es/components/form-render/src/hooks/index.js +1 -1
  55. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  56. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  57. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  58. package/es/components/form-render/src/types/index.d.ts +2 -1
  59. package/es/components/iho-table/index.d.ts +3 -0
  60. package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -0
  61. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  62. package/es/components/iho-table/src/constants/index.d.ts +2 -1
  63. package/es/components/iho-table/src/constants/index.js +1 -1
  64. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  65. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  66. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  67. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  68. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  69. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  70. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  71. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  72. package/es/components/iho-table/src/plugins/index.js +1 -1
  73. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  79. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  80. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  81. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  82. package/es/components/iho-table/src/types/index.d.ts +2 -1
  83. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  84. package/es/components/iho-table/src/utils/index.d.ts +3 -0
  85. package/es/components/iho-table/src/utils/index.js +1 -1
  86. package/es/components/iho-table/style/index.css +1 -1
  87. package/es/components/index.css +1 -1
  88. package/es/components/index.d.ts +1 -0
  89. package/es/components/index.js +1 -1
  90. package/es/components/info-header/index.d.ts +28 -28
  91. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  92. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  93. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  94. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  95. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  96. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  97. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  98. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  99. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  100. package/es/components/info-header/style/index.css +1 -1
  101. package/es/components/keyboard/index.d.ts +1 -1
  102. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  103. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  104. package/es/components/keyboard/src/constants/index.js +1 -1
  105. package/es/components/keyboard/style/index.css +1 -1
  106. package/es/components/scale-view/index.d.ts +25 -66
  107. package/es/components/scale-view/src/ScaleView.vue.d.ts +25 -66
  108. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  109. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  110. package/es/components/scale-view/style/index.css +1 -1
  111. package/es/components/select-person/index.d.ts +1 -1
  112. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  113. package/es/components/shortcut-setter/index.d.ts +12 -12
  114. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  115. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  116. package/es/components/steps-wheel/src/constants/index.js +1 -1
  117. package/es/components/steps-wheel/style/index.css +1 -1
  118. package/es/components/table-filter/index.d.ts +0 -1
  119. package/es/components/table-filter/index.js +1 -1
  120. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  121. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  122. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  123. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  124. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
  125. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  126. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  127. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  128. package/es/components/table-filter/src/types/index.d.ts +0 -74
  129. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  130. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  131. package/es/shared/{mixins → hooks}/index.js +1 -1
  132. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  133. package/es/shared/hooks/useAsyncQueue.js +1 -0
  134. package/package.json +2 -2
  135. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  136. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  137. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  138. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  139. package/es/components/table-filter/src/hooks/export.js +0 -1
  140. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  141. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  142. package/es/shared/utils/colorLog.d.ts +0 -31
  143. package/es/shared/utils/colorLog.js +0 -1
  144. /package/es/shared/{mixins → hooks}/useDateTime.d.ts +0 -0
  145. /package/es/shared/{mixins → hooks}/useDateTime.js +0 -0
  146. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  147. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -313,7 +313,7 @@ declare const _default: import("vue").DefineComponent<{
313
313
  onScroll?: ((...args: any[]) => any) | undefined;
314
314
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
315
315
  }>>;
316
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
316
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
317
317
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
318
318
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
319
319
  formHeight: import("vue").ComputedRef<string>;
@@ -469,32 +469,32 @@ declare const _default: import("vue").DefineComponent<{
469
469
  data: any;
470
470
  loading: boolean;
471
471
  required: boolean;
472
- hidden: boolean;
473
- visible: boolean;
474
- content: any;
475
- reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
476
- active: boolean;
477
- disabled: boolean;
478
- display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
479
472
  value: string;
480
473
  readonly index: string | number;
474
+ disabled: boolean;
481
475
  onFocus: (...args: any[]) => Promise<void>;
482
476
  onBlur: (...args: any[]) => Promise<void>;
483
477
  onInput: (...args: any[]) => Promise<void>;
478
+ reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
479
+ visible: boolean;
484
480
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
485
481
  validator: import("../../../../../../es/components/form-render").FieldValidator;
486
482
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
487
483
  title: string;
488
484
  form: import("../../../../../../es/components/form-render").Form<any>;
485
+ content: any;
489
486
  componentProps: Record<string, any>;
490
487
  decoratorProps: Record<string, any>;
488
+ display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
491
489
  description: string;
492
490
  readOnly: boolean;
493
491
  editable: boolean;
492
+ hidden: boolean;
494
493
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
495
494
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
496
495
  validating: boolean;
497
496
  submitting: boolean;
497
+ active: boolean;
498
498
  visited: boolean;
499
499
  selfModified: boolean;
500
500
  modified: boolean;
@@ -581,7 +581,7 @@ declare const _default: import("vue").DefineComponent<{
581
581
  };
582
582
  readonly disabled: BooleanConstructor;
583
583
  readonly displayDirective: {
584
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
584
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
585
585
  readonly default: "if";
586
586
  };
587
587
  readonly closable: {
@@ -606,7 +606,7 @@ declare const _default: import("vue").DefineComponent<{
606
606
  };
607
607
  readonly disabled: BooleanConstructor;
608
608
  readonly displayDirective: {
609
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
609
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
610
610
  readonly default: "if";
611
611
  };
612
612
  readonly closable: {
@@ -620,10 +620,10 @@ declare const _default: import("vue").DefineComponent<{
620
620
  }>>, {
621
621
  readonly disabled: boolean;
622
622
  readonly closable: boolean | undefined;
623
- readonly displayDirective: "show" | "if" | "show:lazy";
623
+ readonly displayDirective: "if" | "show" | "show:lazy";
624
624
  }>;
625
625
  NTabs: any;
626
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
626
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
627
627
  fieldList: {
628
628
  type: import("vue").PropType<FieldItem[]>;
629
629
  };
@@ -1 +1 @@
1
- .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px}@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.c-info-header .iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px)}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{display:none!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header .n-base-selection,.c-info-header .n-base-selection-label,.c-info-header .n-date-picker,.c-info-header .n-input,.c-info-header .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header .n-base-selection input,.c-info-header .n-base-selection-label input,.c-info-header .n-date-picker input,.c-info-header .n-input input,.c-info-header .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header .n-select{line-height:1}
1
+ .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px}@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.c-info-header .iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px)}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{display:none!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
@@ -332,8 +332,8 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
332
332
  onChange?: ((...args: any[]) => any) | undefined;
333
333
  onKeydown?: ((...args: any[]) => any) | undefined;
334
334
  }, {
335
- drag: boolean;
336
335
  mode: "number" | "day" | "dose" | "english";
336
+ drag: boolean;
337
337
  positionInitialValue: import("@vueuse/core").Position;
338
338
  panel: boolean;
339
339
  moveOffset: import("@vueuse/core").Position;
@@ -333,8 +333,8 @@ declare const _default: import("vue").DefineComponent<{
333
333
  onChange?: ((...args: any[]) => any) | undefined;
334
334
  onKeydown?: ((...args: any[]) => any) | undefined;
335
335
  }, {
336
- drag: boolean;
337
336
  mode: "number" | "day" | "dose" | "english";
337
+ drag: boolean;
338
338
  positionInitialValue: Position;
339
339
  panel: boolean;
340
340
  moveOffset: Position;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as r,createVNode as s,mergeProps as d,createElementBlock as f,normalizeClass as c,createElementVNode as p,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as x,GitCompareOutline as _,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/mixins/useTheme.js";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=p("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),f("div",{key:2,class:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[s(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:r((()=>[K,s(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:c(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(_)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:r((()=>[s(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:r((()=>[s(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
1
+ import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as f,normalizeClass as p,createElementVNode as c,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as _,GitCompareOutline as x,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/hooks/useTheme.js";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=c("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),f("div",{key:2,class:p(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[r(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[K,r(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(_)},null,8,["component"])])),_:1},8,["style"]),c("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:p(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(x)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
@@ -1 +1 @@
1
- const o={"--c-color-hover":"#2474ff33","--c-color-pressed":"#2474ff"};export{o as defaultCssVars};
1
+ const r={"--c-primary-color-hover":"#2474ff33","--c-primary-color-pressed":"#2474ff"};export{r as defaultCssVars};
@@ -1 +1 @@
1
- .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{background:#fff;display:flex;height:160px}.c-keyboard.isFixed{position:fixed;z-index:1}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:var(--c-color-hover);border:1px solid var(--c-color-pressed)}.c-keyboard .btn:active{background:var(--c-color-pressed);color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .n-space{gap:unset!important}.c-keyboard .margin-offset{margin:-4px 0 0 -4px}.c-keyboard .left{box-sizing:border-box;padding:6px;width:128px}.c-keyboard .left.isDose{width:158px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:var(--c-color-hover);border:1px solid var(--c-color-pressed)}.c-keyboard .left .keys span:active{background:var(--c-color-pressed);color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days,.c-keyboard .right-dose{border-left:1px solid #d5d5d5}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;margin-top:8px;width:56px}.c-keyboard .right-days .btn:first-child{margin-top:0}.c-keyboard .right-dose{padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;margin-right:8px;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;margin-bottom:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .right-dose .inputs .inputs-right{margin-left:8px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;margin:1px 0 0 -4px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:var(--c-color-hover);border:1px solid var(--c-color-pressed)}.c-keyboard-english .keys span:active{background:var(--c-color-pressed);color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
1
+ .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{background:#fff;display:flex;height:160px}.c-keyboard.isFixed{position:fixed;z-index:1}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:var(--c-primary-color-hover);border:1px solid var(--c-primary-color-pressed)}.c-keyboard .btn:active{background:var(--c-primary-color-pressed);color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .n-space{gap:unset!important}.c-keyboard .margin-offset{margin:-4px 0 0 -4px}.c-keyboard .left{box-sizing:border-box;padding:6px;width:128px}.c-keyboard .left.isDose{width:158px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:var(--c-primary-color-hover);border:1px solid var(--c-primary-color-pressed)}.c-keyboard .left .keys span:active{background:var(--c-primary-color-pressed);color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days,.c-keyboard .right-dose{border-left:1px solid #d5d5d5}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;margin-top:8px;width:56px}.c-keyboard .right-days .btn:first-child{margin-top:0}.c-keyboard .right-dose{padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;margin-right:8px;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;margin-bottom:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .right-dose .inputs .inputs-right{margin-left:8px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;margin:1px 0 0 -4px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;margin:4px 0 0 4px;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:var(--c-primary-color-hover);border:1px solid var(--c-primary-color-pressed)}.c-keyboard-english .keys span:active{background:var(--c-primary-color-pressed);color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
@@ -1,5 +1,13 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
2
  declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
3
+ guageData: {
4
+ type: ObjectConstructor;
5
+ default: () => {};
6
+ };
7
+ styleSetting: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
3
11
  ids: {
4
12
  type: ObjectConstructor;
5
13
  default: () => {
@@ -11,10 +19,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
11
19
  default: () => {};
12
20
  type: ObjectConstructor;
13
21
  };
14
- guageData: {
15
- type: ObjectConstructor;
16
- default: () => {};
17
- };
18
22
  noBtn: {
19
23
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
20
24
  default: boolean;
@@ -23,10 +27,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
23
27
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
24
28
  default: boolean;
25
29
  };
26
- source: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
30
  isLock: {
31
31
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
32
32
  default: boolean;
@@ -35,19 +35,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
35
35
  type: StringConstructor;
36
36
  default: string;
37
37
  };
38
- styleSetting: {
39
- type: ObjectConstructor;
40
- default: () => {};
41
- };
42
- fontSizeObj: {
43
- type: ObjectConstructor;
44
- default: () => {
45
- large: number;
46
- medium: number;
47
- small: number;
48
- extrasmall: number;
49
- };
50
- };
51
38
  openType: {
52
39
  type: StringConstructor;
53
40
  default: string;
@@ -145,6 +132,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
145
132
  evatipMap: {};
146
133
  };
147
134
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
135
+ guageData: {
136
+ type: ObjectConstructor;
137
+ default: () => {};
138
+ };
139
+ styleSetting: {
140
+ type: ObjectConstructor;
141
+ default: () => {};
142
+ };
148
143
  ids: {
149
144
  type: ObjectConstructor;
150
145
  default: () => {
@@ -156,10 +151,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
156
151
  default: () => {};
157
152
  type: ObjectConstructor;
158
153
  };
159
- guageData: {
160
- type: ObjectConstructor;
161
- default: () => {};
162
- };
163
154
  noBtn: {
164
155
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
165
156
  default: boolean;
@@ -168,10 +159,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
168
159
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
169
160
  default: boolean;
170
161
  };
171
- source: {
172
- type: StringConstructor;
173
- default: string;
174
- };
175
162
  isLock: {
176
163
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
177
164
  default: boolean;
@@ -180,19 +167,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
180
167
  type: StringConstructor;
181
168
  default: string;
182
169
  };
183
- styleSetting: {
184
- type: ObjectConstructor;
185
- default: () => {};
186
- };
187
- fontSizeObj: {
188
- type: ObjectConstructor;
189
- default: () => {
190
- large: number;
191
- medium: number;
192
- small: number;
193
- extrasmall: number;
194
- };
195
- };
196
170
  openType: {
197
171
  type: StringConstructor;
198
172
  default: string;
@@ -1080,6 +1054,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1080
1054
  readonly ignorePathChange: boolean;
1081
1055
  }>;
1082
1056
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1057
+ guageData: {
1058
+ type: ObjectConstructor;
1059
+ default: () => {};
1060
+ };
1061
+ styleSetting: {
1062
+ type: ObjectConstructor;
1063
+ default: () => {};
1064
+ };
1083
1065
  ids: {
1084
1066
  type: ObjectConstructor;
1085
1067
  default: () => {
@@ -1091,10 +1073,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1091
1073
  default: () => {};
1092
1074
  type: ObjectConstructor;
1093
1075
  };
1094
- guageData: {
1095
- type: ObjectConstructor;
1096
- default: () => {};
1097
- };
1098
1076
  noBtn: {
1099
1077
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
1100
1078
  default: boolean;
@@ -1103,10 +1081,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1103
1081
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
1104
1082
  default: boolean;
1105
1083
  };
1106
- source: {
1107
- type: StringConstructor;
1108
- default: string;
1109
- };
1110
1084
  isLock: {
1111
1085
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
1112
1086
  default: boolean;
@@ -1115,19 +1089,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1115
1089
  type: StringConstructor;
1116
1090
  default: string;
1117
1091
  };
1118
- styleSetting: {
1119
- type: ObjectConstructor;
1120
- default: () => {};
1121
- };
1122
- fontSizeObj: {
1123
- type: ObjectConstructor;
1124
- default: () => {
1125
- large: number;
1126
- medium: number;
1127
- small: number;
1128
- extrasmall: number;
1129
- };
1130
- };
1131
1092
  openType: {
1132
1093
  type: StringConstructor;
1133
1094
  default: string;
@@ -1206,12 +1167,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1206
1167
  getLabelList: Function;
1207
1168
  deleteLabel: Function;
1208
1169
  saveLabelItem: Function;
1209
- ids: Record<string, any>;
1210
1170
  guageData: Record<string, any>;
1171
+ ids: Record<string, any>;
1211
1172
  noBtn: string | number | boolean;
1212
1173
  hideBtn: string | number | boolean;
1213
- source: string;
1214
- fontSizeObj: Record<string, any>;
1215
1174
  openType: string;
1216
1175
  scaleApiConfig: Record<string, any>;
1217
1176
  getSelectOptions: Function;
@@ -1,4 +1,12 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ guageData: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ styleSetting: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
2
10
  ids: {
3
11
  type: ObjectConstructor;
4
12
  default: () => {
@@ -10,10 +18,6 @@ declare const _default: import("vue").DefineComponent<{
10
18
  default: () => {};
11
19
  type: ObjectConstructor;
12
20
  };
13
- guageData: {
14
- type: ObjectConstructor;
15
- default: () => {};
16
- };
17
21
  noBtn: {
18
22
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
19
23
  default: boolean;
@@ -22,10 +26,6 @@ declare const _default: import("vue").DefineComponent<{
22
26
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
23
27
  default: boolean;
24
28
  };
25
- source: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
29
  isLock: {
30
30
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
31
31
  default: boolean;
@@ -34,19 +34,6 @@ declare const _default: import("vue").DefineComponent<{
34
34
  type: StringConstructor;
35
35
  default: string;
36
36
  };
37
- styleSetting: {
38
- type: ObjectConstructor;
39
- default: () => {};
40
- };
41
- fontSizeObj: {
42
- type: ObjectConstructor;
43
- default: () => {
44
- large: number;
45
- medium: number;
46
- small: number;
47
- extrasmall: number;
48
- };
49
- };
50
37
  openType: {
51
38
  type: StringConstructor;
52
39
  default: string;
@@ -144,6 +131,14 @@ declare const _default: import("vue").DefineComponent<{
144
131
  evatipMap: {};
145
132
  };
146
133
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
134
+ guageData: {
135
+ type: ObjectConstructor;
136
+ default: () => {};
137
+ };
138
+ styleSetting: {
139
+ type: ObjectConstructor;
140
+ default: () => {};
141
+ };
147
142
  ids: {
148
143
  type: ObjectConstructor;
149
144
  default: () => {
@@ -155,10 +150,6 @@ declare const _default: import("vue").DefineComponent<{
155
150
  default: () => {};
156
151
  type: ObjectConstructor;
157
152
  };
158
- guageData: {
159
- type: ObjectConstructor;
160
- default: () => {};
161
- };
162
153
  noBtn: {
163
154
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
164
155
  default: boolean;
@@ -167,10 +158,6 @@ declare const _default: import("vue").DefineComponent<{
167
158
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
168
159
  default: boolean;
169
160
  };
170
- source: {
171
- type: StringConstructor;
172
- default: string;
173
- };
174
161
  isLock: {
175
162
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
176
163
  default: boolean;
@@ -179,19 +166,6 @@ declare const _default: import("vue").DefineComponent<{
179
166
  type: StringConstructor;
180
167
  default: string;
181
168
  };
182
- styleSetting: {
183
- type: ObjectConstructor;
184
- default: () => {};
185
- };
186
- fontSizeObj: {
187
- type: ObjectConstructor;
188
- default: () => {
189
- large: number;
190
- medium: number;
191
- small: number;
192
- extrasmall: number;
193
- };
194
- };
195
169
  openType: {
196
170
  type: StringConstructor;
197
171
  default: string;
@@ -1079,6 +1053,14 @@ declare const _default: import("vue").DefineComponent<{
1079
1053
  readonly ignorePathChange: boolean;
1080
1054
  }>;
1081
1055
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1056
+ guageData: {
1057
+ type: ObjectConstructor;
1058
+ default: () => {};
1059
+ };
1060
+ styleSetting: {
1061
+ type: ObjectConstructor;
1062
+ default: () => {};
1063
+ };
1082
1064
  ids: {
1083
1065
  type: ObjectConstructor;
1084
1066
  default: () => {
@@ -1090,10 +1072,6 @@ declare const _default: import("vue").DefineComponent<{
1090
1072
  default: () => {};
1091
1073
  type: ObjectConstructor;
1092
1074
  };
1093
- guageData: {
1094
- type: ObjectConstructor;
1095
- default: () => {};
1096
- };
1097
1075
  noBtn: {
1098
1076
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
1099
1077
  default: boolean;
@@ -1102,10 +1080,6 @@ declare const _default: import("vue").DefineComponent<{
1102
1080
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
1103
1081
  default: boolean;
1104
1082
  };
1105
- source: {
1106
- type: StringConstructor;
1107
- default: string;
1108
- };
1109
1083
  isLock: {
1110
1084
  type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
1111
1085
  default: boolean;
@@ -1114,19 +1088,6 @@ declare const _default: import("vue").DefineComponent<{
1114
1088
  type: StringConstructor;
1115
1089
  default: string;
1116
1090
  };
1117
- styleSetting: {
1118
- type: ObjectConstructor;
1119
- default: () => {};
1120
- };
1121
- fontSizeObj: {
1122
- type: ObjectConstructor;
1123
- default: () => {
1124
- large: number;
1125
- medium: number;
1126
- small: number;
1127
- extrasmall: number;
1128
- };
1129
- };
1130
1091
  openType: {
1131
1092
  type: StringConstructor;
1132
1093
  default: string;
@@ -1205,12 +1166,10 @@ declare const _default: import("vue").DefineComponent<{
1205
1166
  getLabelList: Function;
1206
1167
  deleteLabel: Function;
1207
1168
  saveLabelItem: Function;
1208
- ids: Record<string, any>;
1209
1169
  guageData: Record<string, any>;
1170
+ ids: Record<string, any>;
1210
1171
  noBtn: string | number | boolean;
1211
1172
  hideBtn: string | number | boolean;
1212
- source: string;
1213
- fontSizeObj: Record<string, any>;
1214
1173
  openType: string;
1215
1174
  scaleApiConfig: Record<string, any>;
1216
1175
  getSelectOptions: Function;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as m,mergeProps as v,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as V,NFormItem as F,NButton as K}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:me,hasScore:ve,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,scaleEdit:Se}=_(Q,z,{query:ne}),{initForm:Ee}=A(Q,z,H,{query:ne}),{submitMethod:_e}=j(Q,z,H,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:je}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const Te=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{Ee(o)}))}),{immediate:!0});const De=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Oe=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,_e(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},Le=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},xe=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,Ae(e,o,z.formArray),je(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),Ae(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Ie=(e,o)=>{console.log(o),z.form[o.val_key]=e},Pe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},Ne=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void qe("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value||Se.value)return void qe("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}qe(a)},qe=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Me()},onNegativeClick(){}})},Me=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}_e()}))},Be=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:Ne,cancel:Be}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),m(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),m(N,v({key:0},r(Ce),{onWriteGuage:De}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),m(P,v({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Oe}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(ve)?(n(),m(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(V),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),m(r(F),{key:0,path:e.val_key,"show-label":!r(D)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(me)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void Le(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,Le(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),m(C(e.renderCom),v(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:xe,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Pe(e)})(o,e),onVodFileList:Ie}),null,16,["onOnChange"])),r(ke)(e)?(n(),m(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),m(r(K),{key:0,onClick:Be},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),m(r(K),{key:1,onClick:Ne,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
1
+ import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as l,createElementBlock as n,normalizeClass as s,unref as r,createCommentVNode as u,Fragment as c,createBlock as p,mergeProps as d,createElementVNode as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as h,resolveDynamicComponent as k,h as C}from"vue";import S from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as _}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as A,isCollection as O,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import D from"./components/NoData.vue.js";import P from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"./components/EvaluateCountdown.vue.js";import x from"./components/EvaluatePage.vue.js";import N from"./components/AnswerParse.vue.js";import B from"./components/ScaleScore.js";import{useDialog as I,useMessage as M,NForm as q,NFormItem as R,NButton as K}from"naive-ui";import U from"../../../_virtual/plugin-vue_export-helper.js";const V=["innerHTML"],H={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y={key:1,class:"footer"};var X=U(e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({checkFileMd5Exist:"http://192.168.1.223:12060/storage/checkFileMd5Exist",fileChannel:"null",md5:"9ed34823e7ef4754819704135b29c9ab",objectName:"0/0/20220602",partFileMerge:"http://192.168.1.223:12060/storage/partFileMerge",partFileUpload:"http://192.168.1.223:12060/storage/partFileUpload",token:"4d0eb8f174994d33adb71766d1ef8ce4"})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:U,emit:X}){const G=e,{ScaleViewState:Q}=w(),Z=t(Q),$=I(),z=M(),ee=a(null),te=a(null),{noDataState:ae,setNoData:oe,resetNodata:ie}=S(),le=A(),{showEvatip:ne,isFormBoldOpen:se,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:pe,hasScore:de,isPreviewScale:me,showEvaluateEntry:ve,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:be,propsConfig:he,evaluatePageProps:ke,evaluateCountdownProps:Ce,skipCover:Se,scaleEdit:we}=E(G,Z,{query:le}),{initForm:Ee}=_(G,Z,X,{query:le}),{submitMethod:_e}=j(G,Z,X,{query:le}),{nextLogicEvent:je,handleDynamicDataRelation:Ae}=L(G,Z);(()=>{let{id:e}=le;e&&(Z.shareId=e)})();const Oe=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),Z.spinning=!1,Z.hasFrontAddress=!1,oe(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>G.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Oe(e):e.guage_id&&Oe(e)}),{immediate:!0}),o((()=>G.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;Z.form={},Z.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{Ee(t)}))}),{immediate:!0});const Te=e=>{Z.showEvaluateSettingWrap=!1,Z.showEvaluateCountdown=!!e,X("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),Z.showEvaluateCountdown=!1,me.value||(Z.banSubmit=!0,_e(),$.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},De=e=>{$.warning({title:"提示",content:()=>C("div",{class:"evatip-container"},[C("span","答案解析:"),C("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Pe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||(Z.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:l=[]}=e;Z.form[t.val_key]=a,je(e,t,Z.formArray),Ae(l,t,Z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(Z.choiceComObj[t.val_key]=o),je(e,t,Z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,t,Z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":Z.submitForm[t.val_key]=e}},Fe=(e,t)=>{console.log(t),Z.form[t.val_key]=e},xe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),Z.labelSelectedList=t,{labelStr:a.join(","),labels:o}},Ne=()=>{var e;if(!Z.formArray.find((e=>T(e.type))))return void Be("确认要提交吗?");let{evaluateResultSetting:t}=Z.config;if(!t||!Object.keys(t).length&&!ve.value||we.value)return void Be("确认要结束测评吗?");if("formIframe"==G.openType&&ve.value)return void X("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==Z?void 0:Z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Be(a)},Be=e=>{$.warning({title:"温馨提示",content:()=>C("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Ie()},onNegativeClick(){}})},Ie=()=>{var e;null==(e=te.value)||e.validate((e=>{var t;if(e){console.log(e);let a=(null==(t=e[0])?void 0:t[0])||{},o=a.field,i=a.message,l=Z.formArray.find((e=>e.databaseTitle===o));return l&&(o=l.title),z.error(o+i),!1}_e()}))},Me=()=>{X("onCloseSetting")};return U({getScaleData:()=>({...Z}),onSubmit:Ne,cancel:Me}),(e,t)=>(l(),n("div",{class:s(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),Z.spinning||Z.hasFrontAddress?u("v-if",!0):(l(),n(c,{key:0},[r(ae).noData?(l(),p(D,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(l(),n(c,{key:1},[r(ve)&&!r(Se)?(l(),p(x,d({key:0},r(ke),{onWriteGuage:Te}),null,16)):(l(),n(c,{key:1},[r(fe)?(l(),p(F,d({key:0,ref_key:"countdownDom",ref:ee},r(Ce),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),m("div",{class:s(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:v(r(re))},[r(de)?(l(),p(r(B),{key:0,config:Z.config,maxScore:Z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(q),{ref_key:"formRef",ref:te,model:Z.form,rules:Z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(l(!0),n(c,null,y(Z.formArray,((e,t)=>(l(),n(c,{key:(e.id||e.seq)+t},[r(ce)(e)?(l(),p(r(R),{key:0,path:e.val_key,"show-label":!r(O)(e.type),class:"c-scle-form-item"},{label:g((()=>[m("span",{class:s({"scale-label-required":r(se)(e)}),innerHTML:r(pe)(e)},null,10,V),r(se)(e)?(l(),n("span",H,"(必填)")):u("v-if",!0),r(ye)(e)?(l(),n("span",W,b(r(ye)(e)),1)):u("v-if",!0),r(ne)(e)?(l(),n("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if(Z.evatipMap[e.id])return void De(Z.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=G.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void z.error(`${a} Is not a function`);let i=await o(e.id);i&&(Z.evatipMap[e.id]||(Z.evatipMap[e.id]=i,De(i)))})(e)},[f(r(P),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,J)):u("v-if",!0)])),default:g((()=>[(l(),p(k(e.renderCom),d(r(he)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Pe,onOnChange:t=>((e,t)=>{Z.form[t.val_key]=xe(e)})(t,e),onVodFileList:Fe}),null,16,["onOnChange"])),r(be)(e)?(l(),p(N,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(l(),n("div",Y,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==G.sourceType?(l(),p(r(K),{key:0,onClick:Me},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),G.isLock?u("v-if",!0):(l(),p(r(K),{key:1,onClick:Ne,disabled:Z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{X as default};
@@ -68,8 +68,8 @@ declare const _default: import("vue").DefineComponent<{
68
68
  onOnClose?: ((...args: any[]) => any) | undefined;
69
69
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
70
70
  }, {
71
- visible: boolean;
72
71
  closable: boolean;
72
+ visible: boolean;
73
73
  modalWidth: string;
74
74
  modalHeight: string;
75
75
  title: string | Function;