@gct-paas/excel 0.1.20 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/{VueVideoPlayer-DePpm38H.js → VueVideoPlayer-dfgekKID.js} +2 -2
  2. package/dist/{agg-design-hreKYp5a.js → agg-design-yDLZkVkR.js} +1 -1
  3. package/dist/{agg-props-CCDh2o6E.js → agg-props-DrXyaNCT.js} +1 -1
  4. package/dist/{agg-style-Bh8vdJvs.js → agg-style-D_6r9Myg.js} +1 -1
  5. package/dist/{align-editor-DpDuDOMr.js → align-editor-D5Ra4SB6.js} +1 -1
  6. package/dist/{attach-fields-editor-BeGxW6de.js → attach-fields-editor-C4JBi-p_.js} +3 -2
  7. package/dist/{barcode-design-CFVTZNAy.js → barcode-design-D3JH5Afi.js} +2 -2
  8. package/dist/base/index.es.js +350 -172
  9. package/dist/{base-font-editor-laOkjBe1.js → base-font-editor-B6J_Ts2T.js} +3 -2
  10. package/dist/{boolean-design-DIlM9Nrt.js → boolean-design-DQvGDcd9.js} +2 -2
  11. package/dist/{boolean-props-CGuFs72-.js → boolean-props-BPxPHLqI.js} +3 -3
  12. package/dist/{boolean-style-BUz6sBUN.js → boolean-style-BSc1-meP.js} +4 -4
  13. package/dist/{cell-upload-Dw3t7ZKJ.js → cell-upload-CiWekXUb.js} +3 -2
  14. package/dist/{date-range-editor-rXaru-8n.js → date-range-editor-DPt8-LqQ.js} +3 -2
  15. package/dist/{date-time-design-HfjWK3SA.js → date-time-design-Dv4dW-Iy.js} +1 -1
  16. package/dist/{date-time-props-C_cG-6wI.js → date-time-props-Cs4GVKqC.js} +3 -3
  17. package/dist/{date-time-style-BeCDP5TE.js → date-time-style-iSIC_SNA.js} +1 -1
  18. package/dist/{decimal-design-DzLpjX9N.js → decimal-design-C-GvHZPx.js} +1 -1
  19. package/dist/{decimal-display-mode-BhD1cOOe.js → decimal-display-mode-C_ooE9xL.js} +2 -2
  20. package/dist/{decimal-props-C6f22071.js → decimal-props-Vv8GsEHC.js} +4 -4
  21. package/dist/{decimal-style-XN3rLM2j.js → decimal-style-CY-zOSpD.js} +1 -1
  22. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CJC4kBNh.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Bw0TkvW-.js} +3 -2
  23. package/dist/{diagonal-design-Dh0qhgSq.js → diagonal-design-DS1kXGt1.js} +16 -4
  24. package/dist/{double-design-XHHlqmEp.js → double-design-DAz8wmRS.js} +1 -1
  25. package/dist/{double-props-Cvi36aBN.js → double-props-e76nS4qi.js} +4 -4
  26. package/dist/{double-style-Dkoth54S.js → double-style-kWIo_xYy.js} +1 -1
  27. package/dist/{dynamic-table-action-mGrBO_bn.js → dynamic-table-action-CbHoY76E.js} +42 -3
  28. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js} +205 -266
  29. package/dist/{edit.utils-CXmmCnxE-DeDBtyJd.js → edit.utils-CXmmCnxE-CLCBDG4R.js} +1 -1
  30. package/dist/{enum-design-CAOAFdI6.js → enum-design-DVoXOTIU.js} +2 -2
  31. package/dist/{enum-props-CBN-AvBS.js → enum-props-DgsIc2Fz.js} +4 -4
  32. package/dist/{enum-style-cOiK44Ae.js → enum-style-C4r86NqC.js} +3 -3
  33. package/dist/excel.css +9781 -10010
  34. package/dist/{exceljs.min-pnja99MZ.js → exceljs.min-D-mqoZsC.js} +2 -2
  35. package/dist/{expression-design-CqgcK8eO.js → expression-design-D7PiPYQJ.js} +1 -1
  36. package/dist/{expression-props-wXQOIrMY.js → expression-props-DDcg6alT.js} +1 -1
  37. package/dist/{expression-style-BzavnOux.js → expression-style-C0GgXqbp.js} +1 -1
  38. package/dist/{file-design-BSQknhnY.js → file-design-CeAmaBow.js} +1 -1
  39. package/dist/{file-props-CwiuBVHW.js → file-props-e06WxwTc.js} +2 -2
  40. package/dist/{file-style-CG4a3THb.js → file-style-FigMgXwH.js} +1 -1
  41. package/dist/{font-editor--CgwL-wF.js → font-editor-DYBI1FXx.js} +3 -3
  42. package/dist/{image-design-D1D0SN5W.js → image-design-CcHGCTJH.js} +2 -2
  43. package/dist/{image-design-CwPjfDxf.js → image-design-DxKCuSrx.js} +2 -2
  44. package/dist/{image-props-C4E9gMsG.js → image-props-Co5Kp-ZH.js} +1 -1
  45. package/dist/{image-style-CIb1mi13.js → image-style-D6I5jBAk.js} +1 -1
  46. package/dist/{index-BJYSmTeW.js → index-8-tnvhRC.js} +1 -1
  47. package/dist/{index-0mxMA4vZ.js → index-B2Rk7ex6.js} +1 -1
  48. package/dist/{index-Drf0Arr4.js → index-BC-Zhsm-.js} +1 -1
  49. package/dist/{index-D9tUJAeF.js → index-BZfGHVOt.js} +1 -1
  50. package/dist/{index-B7DDYlzm.js → index-Bsabb65u.js} +1 -1
  51. package/dist/{index-DOj318_B.js → index-C7EF3bU6.js} +2 -2
  52. package/dist/{index-CeMBvNee.js → index-CRcKdyyr.js} +1 -1
  53. package/dist/{index-DLoQlQk6.js → index-CTEoW7C9.js} +2 -2
  54. package/dist/{index-ZrNXSw4w.js → index-CgDvaY3D.js} +1 -1
  55. package/dist/{index-CcmNFTia.js → index-CpsQzaA9.js} +2 -2
  56. package/dist/{index-CIl6oWcB.js → index-CwwHZhmI.js} +1 -1
  57. package/dist/{index-CKqLoN9r.js → index-D3H3AjqQ.js} +1 -1
  58. package/dist/{index-B2ZNkbGm.js → index-D51-PvAq.js} +1 -1
  59. package/dist/{index-BAlLZmfu.js → index-D6YzCpCw.js} +2 -1
  60. package/dist/{index-Dl2FIifp.js → index-D7DRfQTh.js} +1 -1
  61. package/dist/{index-PWmkKVZV.js → index-DFGBKBau.js} +1 -1
  62. package/dist/{index-BG_CEaW0.js → index-DJdI2Xy_.js} +41808 -3703
  63. package/dist/{index-A2MbCZtS.js → index-DSSHWwFD.js} +4 -1
  64. package/dist/{index-D0XkCn_x.js → index-DXtJ-139.js} +1 -1
  65. package/dist/index-Dacbq4L4.js +4420 -0
  66. package/dist/{index-D0n65ya-.js → index-DgBJVPsK.js} +1 -1
  67. package/dist/{index-BKoXo3Ha.js → index-Dku5Txlf.js} +1 -1
  68. package/dist/{index-PMDIMwwL.js → index-DsBusJ7S.js} +1 -1
  69. package/dist/{index-BneV2tbp.js → index-Dx6OiqW2.js} +1 -1
  70. package/dist/{index-Cgka0WmQ.js → index-E-flWZFi.js} +1 -1
  71. package/dist/{index-B2tFXR--.js → index-GGZRPnYe.js} +2 -2
  72. package/dist/{index-Bi4hE4Ye.js → index-H9YwRWK1.js} +2 -2
  73. package/dist/{index-CGSTq7zN.js → index-J1Nf5wgV.js} +1 -1
  74. package/dist/{index-BSHUFede.js → index-OK49_noi.js} +1 -1
  75. package/dist/{index-HHF5iK-6.js → index-UeWlvtDf.js} +1 -1
  76. package/dist/{index-UUDS4nmS.js → index-l3TfFIxY.js} +1 -1
  77. package/dist/{index-ByTKu8n6.js → index-xg8BpbDL.js} +1 -1
  78. package/dist/{index-Hg59RKKE.js → index-yclgXrqJ.js} +1 -1
  79. package/dist/index.es.js +45 -45
  80. package/dist/{integer-design-Cy9c0fzI.js → integer-design-DJ4aKAz0.js} +1 -1
  81. package/dist/{integer-props-DFDOIb2a.js → integer-props-CaSOySHa.js} +5 -4
  82. package/dist/{integer-style-CfIX5ReH.js → integer-style-CCLqQ4ys.js} +1 -1
  83. package/dist/{mb-render-D_uumPQr.js → mb-render-JGHghp5L.js} +1 -30
  84. package/dist/{number-input-ex-CWci0pCj.js → number-input-ex-CtHpEamV.js} +2 -1
  85. package/dist/{org-props-B5dk289u.js → org-props-CRAmwHlJ.js} +2 -2
  86. package/dist/{org-style-BoSDPuw9.js → org-style-BWj_AEnP.js} +1 -1
  87. package/dist/{pagination-design-Ci4wxUIk.js → pagination-design-BGUqZKxh.js} +2 -2
  88. package/dist/paper-widget-design-CgmZ8LSm.js +4 -0
  89. package/dist/{qrcode-design-CJ9R5DIn.js → qrcode-design-CjN0UWN3.js} +1 -1
  90. package/dist/{ref-autofill-editor-B4KDvHhR.js → ref-autofill-editor-BKYPW69A.js} +2 -3
  91. package/dist/{ref-props-CwDGepT3.js → ref-props-M99PRlsI.js} +3 -3
  92. package/dist/{ref-style-B35CsOQO.js → ref-style-BCeprSYg.js} +1 -1
  93. package/dist/{regex-editor-CIVvr_Lx.js → regex-editor-BGaFYbF4.js} +3 -2
  94. package/dist/{revo-grid.entry-DeWzC35s.js → revo-grid.entry-Bokapeoj.js} +1 -1
  95. package/dist/{revogr-attribution_7.entry-BJZ-twfj.js → revogr-attribution_7.entry-D7WJHpFT.js} +3 -3
  96. package/dist/{revogr-clipboard_3.entry-DkgRA8qw.js → revogr-clipboard_3.entry-Bk1SGzbF.js} +2 -2
  97. package/dist/{revogr-data_4.entry-BZLzvcbo.js → revogr-data_4.entry-2v7X9qHp.js} +2 -2
  98. package/dist/{revogr-filter-panel.entry-zGvhshno.js → revogr-filter-panel.entry-DXaW46ts.js} +1 -1
  99. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-Asn5-ZRz.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-ygXwKc_C.js} +2 -2
  100. package/dist/{serialnumber-design-CYFU5TVt.js → serialnumber-design-Bo13RmJa.js} +1 -1
  101. package/dist/shared/index.es.js +18 -19
  102. package/dist/{signature-design-Cwi0cZOI.js → signature-design-DT5T5nus.js} +1 -1
  103. package/dist/{signature-props-cQRB8U8x.js → signature-props-cW9R4qcY.js} +3 -3
  104. package/dist/{signature-style-C90NsLxg.js → signature-style-XPxgyfzG.js} +1 -1
  105. package/dist/{single-field-drop-BFhQs-3z.js → single-field-drop-CjK8KjfH.js} +3 -2
  106. package/dist/{size-editor-Dx3y_otg.js → size-editor-aLyY3Bsr.js} +1 -1
  107. package/dist/src/nocode-base/src/constant/index.d.ts +16 -1
  108. package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +14 -148
  109. package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +0 -1
  110. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +3 -1
  111. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -1
  112. package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +13 -0
  113. package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
  114. package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -0
  115. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -1
  116. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +8 -1
  117. package/dist/src/nocode-base/src/types/widgets/i-diagonal.d.ts +4 -2
  118. package/dist/src/nocode-web-render/src/index.d.ts +0 -1
  119. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +12 -1
  120. package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +8 -1
  121. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +7 -0
  122. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter-editor.vue.d.ts +20 -0
  123. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +30 -0
  124. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-source-field-select.vue.d.ts +22 -0
  125. package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/index.d.ts +3 -0
  126. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +40 -0
  127. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +55 -0
  128. package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/data-source-title.vue.d.ts +2 -2
  129. package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/assoc-filter.d.ts +11 -0
  130. package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +2 -2
  131. package/dist/src/shared/components/version-select/version-select.vue.d.ts +2 -2
  132. package/dist/{text-design-TEheiKQx.js → text-design-DIR_98fe.js} +2 -2
  133. package/dist/{text-design-jMPxIgZW.js → text-design-Dz8pIESR.js} +2 -2
  134. package/dist/{text-props-CrkSvg6D.js → text-props-BxirdX2V.js} +5 -5
  135. package/dist/{text-style-DmwTt8KQ.js → text-style-MPmJRVRg.js} +1 -1
  136. package/dist/{throttle-Cpk1LoGk-DTkhEkFR.js → throttle-Cpk1LoGk-C22z7VFi.js} +1 -1
  137. package/dist/{timediff-design-D_if-K1S.js → timediff-design-Pud7SFpe.js} +1 -1
  138. package/dist/{trace-design-oN7pgtab.js → trace-design-DNVZ_y9D.js} +2 -2
  139. package/dist/trace-props-LPvWrrti.js +610 -0
  140. package/dist/{trace-style-TNnFcvfw.js → trace-style-DnaicSRA.js} +1 -1
  141. package/dist/use-namespace-qtLS8nEh.js +88 -0
  142. package/dist/{user-props-Ce-ilCmU.js → user-props-DdTpHX3B.js} +2 -2
  143. package/dist/{user-style-4rp0jKYP.js → user-style-6SWgJi8d.js} +1 -1
  144. package/dist/{value-editor.vue_vue_type_style_index_0_lang-DMuR0u4j.js → value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js} +2 -2
  145. package/dist/{version-select-DSFIlYgX.js → version-select-CXWtI4W-.js} +1041 -4
  146. package/dist/web-render/index.es.js +12 -955
  147. package/dist/{widget-barcode-Du7LOaiy.js → widget-barcode-iBjDv4NF.js} +4 -4
  148. package/dist/{widget-diagonal-D-q7WK6T.js → widget-diagonal-4ZMgaI9y.js} +73 -17
  149. package/dist/{widget-image-Da5mvgMm.js → widget-image-B63wZzz4.js} +5 -5
  150. package/dist/{widget-line-oIFH8P04.js → widget-line-CIG-L--W.js} +2 -2
  151. package/dist/{widget-pagination-CSonelt_.js → widget-pagination-CAmhXECi.js} +5 -5
  152. package/dist/{widget-power-CWczWA7K.js → widget-power-CsiguFSe.js} +4 -3
  153. package/dist/{widget-qrcode-MQ-cSphb.js → widget-qrcode-BuEayrLO.js} +3 -3
  154. package/dist/{widget-rangelimit-CFDeRJIf.js → widget-rangelimit-CqaLvV8n.js} +4 -3
  155. package/dist/{widget-serialnumber-DlE2-jvp.js → widget-serialnumber-C_wAw0TS.js} +1 -1
  156. package/dist/{widget-text-B1SnpOGN.js → widget-text-CRApo2EO.js} +5 -5
  157. package/dist/{widget-timediff-DeyJbqRE.js → widget-timediff-D1q5VNhe.js} +2 -2
  158. package/package.json +1 -1
  159. package/dist/AntdIcon-C3RMq2zm.js +0 -1040
  160. package/dist/form-annotation-controller-DDDyHAwe.js +0 -707
  161. package/dist/index-CWpratsK.js +0 -41850
  162. package/dist/paper-widget-design-BilYU9rh.js +0 -4
  163. package/dist/src/nocode-base/src/hooks/annotation/types.d.ts +0 -16
  164. package/dist/src/nocode-web-render/src/annotation/form-abandon-medpro-modal.vue.d.ts +0 -15
  165. package/dist/src/nocode-web-render/src/annotation/form-abandon-modal.vue.d.ts +0 -15
  166. package/dist/src/nocode-web-render/src/annotation/form-abandon-v2-modal.vue.d.ts +0 -11
  167. package/dist/src/nocode-web-render/src/annotation/index.d.ts +0 -2
  168. package/dist/src/nocode-web-render/src/annotation/submit-form-change-modal.vue.d.ts +0 -104
  169. package/dist/src/nocode-web-render/src/annotation/use-annotation.d.ts +0 -37
  170. package/dist/trace-props-BFnUk6kv.js +0 -275
@@ -1,9 +1,15 @@
1
- import { createVNode, defineComponent, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, withCtx, withKeys, normalizeClass, toDisplayString, createTextVNode, createCommentVNode, Fragment, renderList, normalizeStyle, computed, createBlock, withModifiers, toRaw, unref, nextTick, mergeProps, h } from "vue";
2
- import { v as FormTypeEnum, i as api, u as useModal, _ as _export_sfc, bX as FormDesignEnum, G as useNamespace, aX as ControlStatusEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js";
1
+ import { nextTick, h, createVNode, defineComponent, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, withCtx, withKeys, normalizeClass, toDisplayString, createTextVNode, createCommentVNode, Fragment, renderList, normalizeStyle, computed, createBlock, withModifiers, toRaw, unref, mergeProps } from "vue";
2
+ import { t as FormTypeEnum, i as api, _ as _export_sfc, bY as FormDesignEnum, aZ as ControlStatusEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
3
+ import { u as useModal, a as useNamespace } from "./use-namespace-qtLS8nEh.js";
3
4
  import { orderBy, isArray, cloneDeep } from "lodash-es";
4
5
  import "dayjs";
5
6
  import { Form } from "ant-design-vue";
6
- import { I as Icon } from "./AntdIcon-C3RMq2zm.js";
7
+ var SignatureTypeEnum = /* @__PURE__ */ ((SignatureTypeEnum2) => {
8
+ SignatureTypeEnum2["SIGNATURE_ONLY"] = "signature_only";
9
+ SignatureTypeEnum2["SIGNATURE_DATE"] = "signature_date";
10
+ SignatureTypeEnum2["SIGNATURE_DATETIME"] = "signature_datetime";
11
+ return SignatureTypeEnum2;
12
+ })(SignatureTypeEnum || {});
7
13
  var SEARCH_SEVICE = /* @__PURE__ */ ((SEARCH_SEVICE2) => {
8
14
  SEARCH_SEVICE2["EQ"] = "eq";
9
15
  SEARCH_SEVICE2["IEQ"] = "iEq";
@@ -37,6 +43,1032 @@ var SEARCH_SEVICE = /* @__PURE__ */ ((SEARCH_SEVICE2) => {
37
43
  SEARCH_SEVICE2["VERSIONNE"] = "versionNe";
38
44
  return SEARCH_SEVICE2;
39
45
  })(SEARCH_SEVICE || {});
46
+ function bound01(n, max) {
47
+ if (isOnePointZero(n)) {
48
+ n = "100%";
49
+ }
50
+ var isPercent = isPercentage(n);
51
+ n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
52
+ if (isPercent) {
53
+ n = parseInt(String(n * max), 10) / 100;
54
+ }
55
+ if (Math.abs(n - max) < 1e-6) {
56
+ return 1;
57
+ }
58
+ if (max === 360) {
59
+ n = (n < 0 ? n % max + max : n % max) / parseFloat(String(max));
60
+ } else {
61
+ n = n % max / parseFloat(String(max));
62
+ }
63
+ return n;
64
+ }
65
+ function isOnePointZero(n) {
66
+ return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
67
+ }
68
+ function isPercentage(n) {
69
+ return typeof n === "string" && n.indexOf("%") !== -1;
70
+ }
71
+ function boundAlpha(a) {
72
+ a = parseFloat(a);
73
+ if (isNaN(a) || a < 0 || a > 1) {
74
+ a = 1;
75
+ }
76
+ return a;
77
+ }
78
+ function convertToPercentage(n) {
79
+ if (n <= 1) {
80
+ return "".concat(Number(n) * 100, "%");
81
+ }
82
+ return n;
83
+ }
84
+ function pad2(c) {
85
+ return c.length === 1 ? "0" + c : String(c);
86
+ }
87
+ function rgbToRgb(r, g, b) {
88
+ return {
89
+ r: bound01(r, 255) * 255,
90
+ g: bound01(g, 255) * 255,
91
+ b: bound01(b, 255) * 255
92
+ };
93
+ }
94
+ function hue2rgb(p, q, t) {
95
+ if (t < 0) {
96
+ t += 1;
97
+ }
98
+ if (t > 1) {
99
+ t -= 1;
100
+ }
101
+ if (t < 1 / 6) {
102
+ return p + (q - p) * (6 * t);
103
+ }
104
+ if (t < 1 / 2) {
105
+ return q;
106
+ }
107
+ if (t < 2 / 3) {
108
+ return p + (q - p) * (2 / 3 - t) * 6;
109
+ }
110
+ return p;
111
+ }
112
+ function hslToRgb(h2, s, l) {
113
+ var r;
114
+ var g;
115
+ var b;
116
+ h2 = bound01(h2, 360);
117
+ s = bound01(s, 100);
118
+ l = bound01(l, 100);
119
+ if (s === 0) {
120
+ g = l;
121
+ b = l;
122
+ r = l;
123
+ } else {
124
+ var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
125
+ var p = 2 * l - q;
126
+ r = hue2rgb(p, q, h2 + 1 / 3);
127
+ g = hue2rgb(p, q, h2);
128
+ b = hue2rgb(p, q, h2 - 1 / 3);
129
+ }
130
+ return { r: r * 255, g: g * 255, b: b * 255 };
131
+ }
132
+ function rgbToHsv(r, g, b) {
133
+ r = bound01(r, 255);
134
+ g = bound01(g, 255);
135
+ b = bound01(b, 255);
136
+ var max = Math.max(r, g, b);
137
+ var min = Math.min(r, g, b);
138
+ var h2 = 0;
139
+ var v = max;
140
+ var d = max - min;
141
+ var s = max === 0 ? 0 : d / max;
142
+ if (max === min) {
143
+ h2 = 0;
144
+ } else {
145
+ switch (max) {
146
+ case r:
147
+ h2 = (g - b) / d + (g < b ? 6 : 0);
148
+ break;
149
+ case g:
150
+ h2 = (b - r) / d + 2;
151
+ break;
152
+ case b:
153
+ h2 = (r - g) / d + 4;
154
+ break;
155
+ }
156
+ h2 /= 6;
157
+ }
158
+ return { h: h2, s, v };
159
+ }
160
+ function hsvToRgb(h2, s, v) {
161
+ h2 = bound01(h2, 360) * 6;
162
+ s = bound01(s, 100);
163
+ v = bound01(v, 100);
164
+ var i = Math.floor(h2);
165
+ var f = h2 - i;
166
+ var p = v * (1 - s);
167
+ var q = v * (1 - f * s);
168
+ var t = v * (1 - (1 - f) * s);
169
+ var mod = i % 6;
170
+ var r = [v, q, p, p, t, v][mod];
171
+ var g = [t, v, v, q, p, p][mod];
172
+ var b = [p, p, t, v, v, q][mod];
173
+ return { r: r * 255, g: g * 255, b: b * 255 };
174
+ }
175
+ function rgbToHex(r, g, b, allow3Char) {
176
+ var hex = [
177
+ pad2(Math.round(r).toString(16)),
178
+ pad2(Math.round(g).toString(16)),
179
+ pad2(Math.round(b).toString(16))
180
+ ];
181
+ return hex.join("");
182
+ }
183
+ function convertHexToDecimal(h2) {
184
+ return parseIntFromHex(h2) / 255;
185
+ }
186
+ function parseIntFromHex(val) {
187
+ return parseInt(val, 16);
188
+ }
189
+ var names = {
190
+ aliceblue: "#f0f8ff",
191
+ antiquewhite: "#faebd7",
192
+ aqua: "#00ffff",
193
+ aquamarine: "#7fffd4",
194
+ azure: "#f0ffff",
195
+ beige: "#f5f5dc",
196
+ bisque: "#ffe4c4",
197
+ black: "#000000",
198
+ blanchedalmond: "#ffebcd",
199
+ blue: "#0000ff",
200
+ blueviolet: "#8a2be2",
201
+ brown: "#a52a2a",
202
+ burlywood: "#deb887",
203
+ cadetblue: "#5f9ea0",
204
+ chartreuse: "#7fff00",
205
+ chocolate: "#d2691e",
206
+ coral: "#ff7f50",
207
+ cornflowerblue: "#6495ed",
208
+ cornsilk: "#fff8dc",
209
+ crimson: "#dc143c",
210
+ cyan: "#00ffff",
211
+ darkblue: "#00008b",
212
+ darkcyan: "#008b8b",
213
+ darkgoldenrod: "#b8860b",
214
+ darkgray: "#a9a9a9",
215
+ darkgreen: "#006400",
216
+ darkgrey: "#a9a9a9",
217
+ darkkhaki: "#bdb76b",
218
+ darkmagenta: "#8b008b",
219
+ darkolivegreen: "#556b2f",
220
+ darkorange: "#ff8c00",
221
+ darkorchid: "#9932cc",
222
+ darkred: "#8b0000",
223
+ darksalmon: "#e9967a",
224
+ darkseagreen: "#8fbc8f",
225
+ darkslateblue: "#483d8b",
226
+ darkslategray: "#2f4f4f",
227
+ darkslategrey: "#2f4f4f",
228
+ darkturquoise: "#00ced1",
229
+ darkviolet: "#9400d3",
230
+ deeppink: "#ff1493",
231
+ deepskyblue: "#00bfff",
232
+ dimgray: "#696969",
233
+ dimgrey: "#696969",
234
+ dodgerblue: "#1e90ff",
235
+ firebrick: "#b22222",
236
+ floralwhite: "#fffaf0",
237
+ forestgreen: "#228b22",
238
+ fuchsia: "#ff00ff",
239
+ gainsboro: "#dcdcdc",
240
+ ghostwhite: "#f8f8ff",
241
+ goldenrod: "#daa520",
242
+ gold: "#ffd700",
243
+ gray: "#808080",
244
+ green: "#008000",
245
+ greenyellow: "#adff2f",
246
+ grey: "#808080",
247
+ honeydew: "#f0fff0",
248
+ hotpink: "#ff69b4",
249
+ indianred: "#cd5c5c",
250
+ indigo: "#4b0082",
251
+ ivory: "#fffff0",
252
+ khaki: "#f0e68c",
253
+ lavenderblush: "#fff0f5",
254
+ lavender: "#e6e6fa",
255
+ lawngreen: "#7cfc00",
256
+ lemonchiffon: "#fffacd",
257
+ lightblue: "#add8e6",
258
+ lightcoral: "#f08080",
259
+ lightcyan: "#e0ffff",
260
+ lightgoldenrodyellow: "#fafad2",
261
+ lightgray: "#d3d3d3",
262
+ lightgreen: "#90ee90",
263
+ lightgrey: "#d3d3d3",
264
+ lightpink: "#ffb6c1",
265
+ lightsalmon: "#ffa07a",
266
+ lightseagreen: "#20b2aa",
267
+ lightskyblue: "#87cefa",
268
+ lightslategray: "#778899",
269
+ lightslategrey: "#778899",
270
+ lightsteelblue: "#b0c4de",
271
+ lightyellow: "#ffffe0",
272
+ lime: "#00ff00",
273
+ limegreen: "#32cd32",
274
+ linen: "#faf0e6",
275
+ magenta: "#ff00ff",
276
+ maroon: "#800000",
277
+ mediumaquamarine: "#66cdaa",
278
+ mediumblue: "#0000cd",
279
+ mediumorchid: "#ba55d3",
280
+ mediumpurple: "#9370db",
281
+ mediumseagreen: "#3cb371",
282
+ mediumslateblue: "#7b68ee",
283
+ mediumspringgreen: "#00fa9a",
284
+ mediumturquoise: "#48d1cc",
285
+ mediumvioletred: "#c71585",
286
+ midnightblue: "#191970",
287
+ mintcream: "#f5fffa",
288
+ mistyrose: "#ffe4e1",
289
+ moccasin: "#ffe4b5",
290
+ navajowhite: "#ffdead",
291
+ navy: "#000080",
292
+ oldlace: "#fdf5e6",
293
+ olive: "#808000",
294
+ olivedrab: "#6b8e23",
295
+ orange: "#ffa500",
296
+ orangered: "#ff4500",
297
+ orchid: "#da70d6",
298
+ palegoldenrod: "#eee8aa",
299
+ palegreen: "#98fb98",
300
+ paleturquoise: "#afeeee",
301
+ palevioletred: "#db7093",
302
+ papayawhip: "#ffefd5",
303
+ peachpuff: "#ffdab9",
304
+ peru: "#cd853f",
305
+ pink: "#ffc0cb",
306
+ plum: "#dda0dd",
307
+ powderblue: "#b0e0e6",
308
+ purple: "#800080",
309
+ rebeccapurple: "#663399",
310
+ red: "#ff0000",
311
+ rosybrown: "#bc8f8f",
312
+ royalblue: "#4169e1",
313
+ saddlebrown: "#8b4513",
314
+ salmon: "#fa8072",
315
+ sandybrown: "#f4a460",
316
+ seagreen: "#2e8b57",
317
+ seashell: "#fff5ee",
318
+ sienna: "#a0522d",
319
+ silver: "#c0c0c0",
320
+ skyblue: "#87ceeb",
321
+ slateblue: "#6a5acd",
322
+ slategray: "#708090",
323
+ slategrey: "#708090",
324
+ snow: "#fffafa",
325
+ springgreen: "#00ff7f",
326
+ steelblue: "#4682b4",
327
+ tan: "#d2b48c",
328
+ teal: "#008080",
329
+ thistle: "#d8bfd8",
330
+ tomato: "#ff6347",
331
+ turquoise: "#40e0d0",
332
+ violet: "#ee82ee",
333
+ wheat: "#f5deb3",
334
+ white: "#ffffff",
335
+ whitesmoke: "#f5f5f5",
336
+ yellow: "#ffff00",
337
+ yellowgreen: "#9acd32"
338
+ };
339
+ function inputToRGB(color) {
340
+ var rgb = { r: 0, g: 0, b: 0 };
341
+ var a = 1;
342
+ var s = null;
343
+ var v = null;
344
+ var l = null;
345
+ var ok = false;
346
+ var format = false;
347
+ if (typeof color === "string") {
348
+ color = stringInputToObject(color);
349
+ }
350
+ if (typeof color === "object") {
351
+ if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
352
+ rgb = rgbToRgb(color.r, color.g, color.b);
353
+ ok = true;
354
+ format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
355
+ } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
356
+ s = convertToPercentage(color.s);
357
+ v = convertToPercentage(color.v);
358
+ rgb = hsvToRgb(color.h, s, v);
359
+ ok = true;
360
+ format = "hsv";
361
+ } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
362
+ s = convertToPercentage(color.s);
363
+ l = convertToPercentage(color.l);
364
+ rgb = hslToRgb(color.h, s, l);
365
+ ok = true;
366
+ format = "hsl";
367
+ }
368
+ if (Object.prototype.hasOwnProperty.call(color, "a")) {
369
+ a = color.a;
370
+ }
371
+ }
372
+ a = boundAlpha(a);
373
+ return {
374
+ ok,
375
+ format: color.format || format,
376
+ r: Math.min(255, Math.max(rgb.r, 0)),
377
+ g: Math.min(255, Math.max(rgb.g, 0)),
378
+ b: Math.min(255, Math.max(rgb.b, 0)),
379
+ a
380
+ };
381
+ }
382
+ var CSS_INTEGER = "[-\\+]?\\d+%?";
383
+ var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
384
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
385
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
386
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
387
+ var matchers = {
388
+ CSS_UNIT: new RegExp(CSS_UNIT),
389
+ rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
390
+ rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
391
+ hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
392
+ hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
393
+ hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
394
+ hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
395
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
396
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
397
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
398
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
399
+ };
400
+ function stringInputToObject(color) {
401
+ color = color.trim().toLowerCase();
402
+ if (color.length === 0) {
403
+ return false;
404
+ }
405
+ var named = false;
406
+ if (names[color]) {
407
+ color = names[color];
408
+ named = true;
409
+ } else if (color === "transparent") {
410
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
411
+ }
412
+ var match = matchers.rgb.exec(color);
413
+ if (match) {
414
+ return { r: match[1], g: match[2], b: match[3] };
415
+ }
416
+ match = matchers.rgba.exec(color);
417
+ if (match) {
418
+ return { r: match[1], g: match[2], b: match[3], a: match[4] };
419
+ }
420
+ match = matchers.hsl.exec(color);
421
+ if (match) {
422
+ return { h: match[1], s: match[2], l: match[3] };
423
+ }
424
+ match = matchers.hsla.exec(color);
425
+ if (match) {
426
+ return { h: match[1], s: match[2], l: match[3], a: match[4] };
427
+ }
428
+ match = matchers.hsv.exec(color);
429
+ if (match) {
430
+ return { h: match[1], s: match[2], v: match[3] };
431
+ }
432
+ match = matchers.hsva.exec(color);
433
+ if (match) {
434
+ return { h: match[1], s: match[2], v: match[3], a: match[4] };
435
+ }
436
+ match = matchers.hex8.exec(color);
437
+ if (match) {
438
+ return {
439
+ r: parseIntFromHex(match[1]),
440
+ g: parseIntFromHex(match[2]),
441
+ b: parseIntFromHex(match[3]),
442
+ a: convertHexToDecimal(match[4]),
443
+ format: named ? "name" : "hex8"
444
+ };
445
+ }
446
+ match = matchers.hex6.exec(color);
447
+ if (match) {
448
+ return {
449
+ r: parseIntFromHex(match[1]),
450
+ g: parseIntFromHex(match[2]),
451
+ b: parseIntFromHex(match[3]),
452
+ format: named ? "name" : "hex"
453
+ };
454
+ }
455
+ match = matchers.hex4.exec(color);
456
+ if (match) {
457
+ return {
458
+ r: parseIntFromHex(match[1] + match[1]),
459
+ g: parseIntFromHex(match[2] + match[2]),
460
+ b: parseIntFromHex(match[3] + match[3]),
461
+ a: convertHexToDecimal(match[4] + match[4]),
462
+ format: named ? "name" : "hex8"
463
+ };
464
+ }
465
+ match = matchers.hex3.exec(color);
466
+ if (match) {
467
+ return {
468
+ r: parseIntFromHex(match[1] + match[1]),
469
+ g: parseIntFromHex(match[2] + match[2]),
470
+ b: parseIntFromHex(match[3] + match[3]),
471
+ format: named ? "name" : "hex"
472
+ };
473
+ }
474
+ return false;
475
+ }
476
+ function isValidCSSUnit(color) {
477
+ return Boolean(matchers.CSS_UNIT.exec(String(color)));
478
+ }
479
+ var hueStep = 2;
480
+ var saturationStep = 0.16;
481
+ var saturationStep2 = 0.05;
482
+ var brightnessStep1 = 0.05;
483
+ var brightnessStep2 = 0.15;
484
+ var lightColorCount = 5;
485
+ var darkColorCount = 4;
486
+ var darkColorMap = [{
487
+ index: 7,
488
+ opacity: 0.15
489
+ }, {
490
+ index: 6,
491
+ opacity: 0.25
492
+ }, {
493
+ index: 5,
494
+ opacity: 0.3
495
+ }, {
496
+ index: 5,
497
+ opacity: 0.45
498
+ }, {
499
+ index: 5,
500
+ opacity: 0.65
501
+ }, {
502
+ index: 5,
503
+ opacity: 0.85
504
+ }, {
505
+ index: 4,
506
+ opacity: 0.9
507
+ }, {
508
+ index: 3,
509
+ opacity: 0.95
510
+ }, {
511
+ index: 2,
512
+ opacity: 0.97
513
+ }, {
514
+ index: 1,
515
+ opacity: 0.98
516
+ }];
517
+ function toHsv(_ref) {
518
+ var r = _ref.r, g = _ref.g, b = _ref.b;
519
+ var hsv = rgbToHsv(r, g, b);
520
+ return {
521
+ h: hsv.h * 360,
522
+ s: hsv.s,
523
+ v: hsv.v
524
+ };
525
+ }
526
+ function toHex(_ref2) {
527
+ var r = _ref2.r, g = _ref2.g, b = _ref2.b;
528
+ return "#".concat(rgbToHex(r, g, b));
529
+ }
530
+ function mix(rgb1, rgb2, amount) {
531
+ var p = amount / 100;
532
+ var rgb = {
533
+ r: (rgb2.r - rgb1.r) * p + rgb1.r,
534
+ g: (rgb2.g - rgb1.g) * p + rgb1.g,
535
+ b: (rgb2.b - rgb1.b) * p + rgb1.b
536
+ };
537
+ return rgb;
538
+ }
539
+ function getHue(hsv, i, light) {
540
+ var hue;
541
+ if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
542
+ hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
543
+ } else {
544
+ hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
545
+ }
546
+ if (hue < 0) {
547
+ hue += 360;
548
+ } else if (hue >= 360) {
549
+ hue -= 360;
550
+ }
551
+ return hue;
552
+ }
553
+ function getSaturation(hsv, i, light) {
554
+ if (hsv.h === 0 && hsv.s === 0) {
555
+ return hsv.s;
556
+ }
557
+ var saturation;
558
+ if (light) {
559
+ saturation = hsv.s - saturationStep * i;
560
+ } else if (i === darkColorCount) {
561
+ saturation = hsv.s + saturationStep;
562
+ } else {
563
+ saturation = hsv.s + saturationStep2 * i;
564
+ }
565
+ if (saturation > 1) {
566
+ saturation = 1;
567
+ }
568
+ if (light && i === lightColorCount && saturation > 0.1) {
569
+ saturation = 0.1;
570
+ }
571
+ if (saturation < 0.06) {
572
+ saturation = 0.06;
573
+ }
574
+ return Number(saturation.toFixed(2));
575
+ }
576
+ function getValue(hsv, i, light) {
577
+ var value;
578
+ if (light) {
579
+ value = hsv.v + brightnessStep1 * i;
580
+ } else {
581
+ value = hsv.v - brightnessStep2 * i;
582
+ }
583
+ if (value > 1) {
584
+ value = 1;
585
+ }
586
+ return Number(value.toFixed(2));
587
+ }
588
+ function generate$1(color) {
589
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
590
+ var patterns = [];
591
+ var pColor = inputToRGB(color);
592
+ for (var i = lightColorCount; i > 0; i -= 1) {
593
+ var hsv = toHsv(pColor);
594
+ var colorString = toHex(inputToRGB({
595
+ h: getHue(hsv, i, true),
596
+ s: getSaturation(hsv, i, true),
597
+ v: getValue(hsv, i, true)
598
+ }));
599
+ patterns.push(colorString);
600
+ }
601
+ patterns.push(toHex(pColor));
602
+ for (var _i = 1; _i <= darkColorCount; _i += 1) {
603
+ var _hsv = toHsv(pColor);
604
+ var _colorString = toHex(inputToRGB({
605
+ h: getHue(_hsv, _i),
606
+ s: getSaturation(_hsv, _i),
607
+ v: getValue(_hsv, _i)
608
+ }));
609
+ patterns.push(_colorString);
610
+ }
611
+ if (opts.theme === "dark") {
612
+ return darkColorMap.map(function(_ref3) {
613
+ var index = _ref3.index, opacity = _ref3.opacity;
614
+ var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || "#141414"), inputToRGB(patterns[index]), opacity * 100));
615
+ return darkColorString;
616
+ });
617
+ }
618
+ return patterns;
619
+ }
620
+ var presetPrimaryColors = {
621
+ red: "#F5222D",
622
+ volcano: "#FA541C",
623
+ orange: "#FA8C16",
624
+ gold: "#FAAD14",
625
+ yellow: "#FADB14",
626
+ lime: "#A0D911",
627
+ green: "#52C41A",
628
+ cyan: "#13C2C2",
629
+ blue: "#1890FF",
630
+ geekblue: "#2F54EB",
631
+ purple: "#722ED1",
632
+ magenta: "#EB2F96",
633
+ grey: "#666666"
634
+ };
635
+ var presetPalettes = {};
636
+ var presetDarkPalettes = {};
637
+ Object.keys(presetPrimaryColors).forEach(function(key) {
638
+ presetPalettes[key] = generate$1(presetPrimaryColors[key]);
639
+ presetPalettes[key].primary = presetPalettes[key][5];
640
+ presetDarkPalettes[key] = generate$1(presetPrimaryColors[key], {
641
+ theme: "dark",
642
+ backgroundColor: "#141414"
643
+ });
644
+ presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
645
+ });
646
+ var containers = [];
647
+ var styleElements = [];
648
+ var usage = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
649
+ function createStyleElement() {
650
+ var styleElement = document.createElement("style");
651
+ styleElement.setAttribute("type", "text/css");
652
+ return styleElement;
653
+ }
654
+ function insertCss(css, options) {
655
+ options = options || {};
656
+ if (css === void 0) {
657
+ throw new Error(usage);
658
+ }
659
+ var position = options.prepend === true ? "prepend" : "append";
660
+ var container = options.container !== void 0 ? options.container : document.querySelector("head");
661
+ var containerId = containers.indexOf(container);
662
+ if (containerId === -1) {
663
+ containerId = containers.push(container) - 1;
664
+ styleElements[containerId] = {};
665
+ }
666
+ var styleElement;
667
+ if (styleElements[containerId] !== void 0 && styleElements[containerId][position] !== void 0) {
668
+ styleElement = styleElements[containerId][position];
669
+ } else {
670
+ styleElement = styleElements[containerId][position] = createStyleElement();
671
+ if (position === "prepend") {
672
+ container.insertBefore(styleElement, container.childNodes[0]);
673
+ } else {
674
+ container.appendChild(styleElement);
675
+ }
676
+ }
677
+ if (css.charCodeAt(0) === 65279) {
678
+ css = css.substr(1, css.length);
679
+ }
680
+ if (styleElement.styleSheet) {
681
+ styleElement.styleSheet.cssText += css;
682
+ } else {
683
+ styleElement.textContent += css;
684
+ }
685
+ return styleElement;
686
+ }
687
+ function _objectSpread$3(target) {
688
+ for (var i = 1; i < arguments.length; i++) {
689
+ var source = arguments[i] != null ? Object(arguments[i]) : {};
690
+ var ownKeys = Object.keys(source);
691
+ if (typeof Object.getOwnPropertySymbols === "function") {
692
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
693
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
694
+ }));
695
+ }
696
+ ownKeys.forEach(function(key) {
697
+ _defineProperty$3(target, key, source[key]);
698
+ });
699
+ }
700
+ return target;
701
+ }
702
+ function _defineProperty$3(obj, key, value) {
703
+ if (key in obj) {
704
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
705
+ } else {
706
+ obj[key] = value;
707
+ }
708
+ return obj;
709
+ }
710
+ function warn(valid, message) {
711
+ if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
712
+ console.error("Warning: ".concat(message));
713
+ }
714
+ }
715
+ function warning(valid, message) {
716
+ warn(valid, "[@ant-design/icons-vue] ".concat(message));
717
+ }
718
+ function isIconDefinition(target) {
719
+ return typeof target === "object" && typeof target.name === "string" && typeof target.theme === "string" && (typeof target.icon === "object" || typeof target.icon === "function");
720
+ }
721
+ function generate(node, key, rootProps) {
722
+ if (!rootProps) {
723
+ return h(node.tag, _objectSpread$3({
724
+ key
725
+ }, node.attrs), (node.children || []).map(function(child, index) {
726
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
727
+ }));
728
+ }
729
+ return h(node.tag, _objectSpread$3({
730
+ key
731
+ }, rootProps, node.attrs), (node.children || []).map(function(child, index) {
732
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
733
+ }));
734
+ }
735
+ function getSecondaryColor(primaryColor) {
736
+ return generate$1(primaryColor)[0];
737
+ }
738
+ function normalizeTwoToneColors(twoToneColor) {
739
+ if (!twoToneColor) {
740
+ return [];
741
+ }
742
+ return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
743
+ }
744
+ var svgBaseProps = {
745
+ width: "1em",
746
+ height: "1em",
747
+ fill: "currentColor",
748
+ "aria-hidden": "true",
749
+ focusable: "false"
750
+ };
751
+ var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
752
+ var cssInjectedFlag = false;
753
+ var useInsertStyles = function useInsertStyles2() {
754
+ var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
755
+ nextTick(function() {
756
+ if (!cssInjectedFlag) {
757
+ if (typeof window !== "undefined" && window.document && window.document.documentElement) {
758
+ insertCss(styleStr, {
759
+ prepend: true
760
+ });
761
+ }
762
+ cssInjectedFlag = true;
763
+ }
764
+ });
765
+ };
766
+ var _excluded$1 = ["icon", "primaryColor", "secondaryColor"];
767
+ function _objectWithoutProperties$1(source, excluded) {
768
+ if (source == null) return {};
769
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
770
+ var key, i;
771
+ if (Object.getOwnPropertySymbols) {
772
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
773
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
774
+ key = sourceSymbolKeys[i];
775
+ if (excluded.indexOf(key) >= 0) continue;
776
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
777
+ target[key] = source[key];
778
+ }
779
+ }
780
+ return target;
781
+ }
782
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
783
+ if (source == null) return {};
784
+ var target = {};
785
+ var sourceKeys = Object.keys(source);
786
+ var key, i;
787
+ for (i = 0; i < sourceKeys.length; i++) {
788
+ key = sourceKeys[i];
789
+ if (excluded.indexOf(key) >= 0) continue;
790
+ target[key] = source[key];
791
+ }
792
+ return target;
793
+ }
794
+ function _objectSpread$2(target) {
795
+ for (var i = 1; i < arguments.length; i++) {
796
+ var source = arguments[i] != null ? Object(arguments[i]) : {};
797
+ var ownKeys = Object.keys(source);
798
+ if (typeof Object.getOwnPropertySymbols === "function") {
799
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
800
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
801
+ }));
802
+ }
803
+ ownKeys.forEach(function(key) {
804
+ _defineProperty$2(target, key, source[key]);
805
+ });
806
+ }
807
+ return target;
808
+ }
809
+ function _defineProperty$2(obj, key, value) {
810
+ if (key in obj) {
811
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
812
+ } else {
813
+ obj[key] = value;
814
+ }
815
+ return obj;
816
+ }
817
+ var twoToneColorPalette = {
818
+ primaryColor: "#333",
819
+ secondaryColor: "#E6E6E6",
820
+ calculated: false
821
+ };
822
+ function setTwoToneColors(_ref) {
823
+ var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
824
+ twoToneColorPalette.primaryColor = primaryColor;
825
+ twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
826
+ twoToneColorPalette.calculated = !!secondaryColor;
827
+ }
828
+ function getTwoToneColors() {
829
+ return _objectSpread$2({}, twoToneColorPalette);
830
+ }
831
+ var IconBase = function IconBase2(props, context) {
832
+ var _props$context$attrs = _objectSpread$2({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
833
+ var colors = twoToneColorPalette;
834
+ if (primaryColor) {
835
+ colors = {
836
+ primaryColor,
837
+ secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
838
+ };
839
+ }
840
+ useInsertStyles();
841
+ warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
842
+ if (!isIconDefinition(icon)) {
843
+ return null;
844
+ }
845
+ var target = icon;
846
+ if (target && typeof target.icon === "function") {
847
+ target = _objectSpread$2({}, target, {
848
+ icon: target.icon(colors.primaryColor, colors.secondaryColor)
849
+ });
850
+ }
851
+ return generate(target.icon, "svg-".concat(target.name), _objectSpread$2({}, restProps, {
852
+ "data-icon": target.name,
853
+ width: "1em",
854
+ height: "1em",
855
+ fill: "currentColor",
856
+ "aria-hidden": "true"
857
+ }));
858
+ };
859
+ IconBase.props = {
860
+ icon: Object,
861
+ primaryColor: String,
862
+ secondaryColor: String,
863
+ focusable: String
864
+ };
865
+ IconBase.inheritAttrs = false;
866
+ IconBase.displayName = "IconBase";
867
+ IconBase.getTwoToneColors = getTwoToneColors;
868
+ IconBase.setTwoToneColors = setTwoToneColors;
869
+ function _slicedToArray$1(arr, i) {
870
+ return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
871
+ }
872
+ function _nonIterableRest$1() {
873
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
874
+ }
875
+ function _unsupportedIterableToArray$1(o, minLen) {
876
+ if (!o) return;
877
+ if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
878
+ var n = Object.prototype.toString.call(o).slice(8, -1);
879
+ if (n === "Object" && o.constructor) n = o.constructor.name;
880
+ if (n === "Map" || n === "Set") return Array.from(o);
881
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
882
+ }
883
+ function _arrayLikeToArray$1(arr, len) {
884
+ if (len == null || len > arr.length) len = arr.length;
885
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
886
+ arr2[i] = arr[i];
887
+ }
888
+ return arr2;
889
+ }
890
+ function _iterableToArrayLimit$1(arr, i) {
891
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
892
+ if (_i == null) return;
893
+ var _arr = [];
894
+ var _n = true;
895
+ var _d = false;
896
+ var _s, _e;
897
+ try {
898
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
899
+ _arr.push(_s.value);
900
+ if (i && _arr.length === i) break;
901
+ }
902
+ } catch (err) {
903
+ _d = true;
904
+ _e = err;
905
+ } finally {
906
+ try {
907
+ if (!_n && _i["return"] != null) _i["return"]();
908
+ } finally {
909
+ if (_d) throw _e;
910
+ }
911
+ }
912
+ return _arr;
913
+ }
914
+ function _arrayWithHoles$1(arr) {
915
+ if (Array.isArray(arr)) return arr;
916
+ }
917
+ function setTwoToneColor(twoToneColor) {
918
+ var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray$1(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
919
+ return IconBase.setTwoToneColors({
920
+ primaryColor,
921
+ secondaryColor
922
+ });
923
+ }
924
+ function getTwoToneColor() {
925
+ var colors = IconBase.getTwoToneColors();
926
+ if (!colors.calculated) {
927
+ return colors.primaryColor;
928
+ }
929
+ return [colors.primaryColor, colors.secondaryColor];
930
+ }
931
+ var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
932
+ function _slicedToArray(arr, i) {
933
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
934
+ }
935
+ function _nonIterableRest() {
936
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
937
+ }
938
+ function _unsupportedIterableToArray(o, minLen) {
939
+ if (!o) return;
940
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
941
+ var n = Object.prototype.toString.call(o).slice(8, -1);
942
+ if (n === "Object" && o.constructor) n = o.constructor.name;
943
+ if (n === "Map" || n === "Set") return Array.from(o);
944
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
945
+ }
946
+ function _arrayLikeToArray(arr, len) {
947
+ if (len == null || len > arr.length) len = arr.length;
948
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
949
+ arr2[i] = arr[i];
950
+ }
951
+ return arr2;
952
+ }
953
+ function _iterableToArrayLimit(arr, i) {
954
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
955
+ if (_i == null) return;
956
+ var _arr = [];
957
+ var _n = true;
958
+ var _d = false;
959
+ var _s, _e;
960
+ try {
961
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
962
+ _arr.push(_s.value);
963
+ if (i && _arr.length === i) break;
964
+ }
965
+ } catch (err) {
966
+ _d = true;
967
+ _e = err;
968
+ } finally {
969
+ try {
970
+ if (!_n && _i["return"] != null) _i["return"]();
971
+ } finally {
972
+ if (_d) throw _e;
973
+ }
974
+ }
975
+ return _arr;
976
+ }
977
+ function _arrayWithHoles(arr) {
978
+ if (Array.isArray(arr)) return arr;
979
+ }
980
+ function _objectSpread$1(target) {
981
+ for (var i = 1; i < arguments.length; i++) {
982
+ var source = arguments[i] != null ? Object(arguments[i]) : {};
983
+ var ownKeys = Object.keys(source);
984
+ if (typeof Object.getOwnPropertySymbols === "function") {
985
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
986
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
987
+ }));
988
+ }
989
+ ownKeys.forEach(function(key) {
990
+ _defineProperty$1(target, key, source[key]);
991
+ });
992
+ }
993
+ return target;
994
+ }
995
+ function _defineProperty$1(obj, key, value) {
996
+ if (key in obj) {
997
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
998
+ } else {
999
+ obj[key] = value;
1000
+ }
1001
+ return obj;
1002
+ }
1003
+ function _objectWithoutProperties(source, excluded) {
1004
+ if (source == null) return {};
1005
+ var target = _objectWithoutPropertiesLoose(source, excluded);
1006
+ var key, i;
1007
+ if (Object.getOwnPropertySymbols) {
1008
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1009
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
1010
+ key = sourceSymbolKeys[i];
1011
+ if (excluded.indexOf(key) >= 0) continue;
1012
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1013
+ target[key] = source[key];
1014
+ }
1015
+ }
1016
+ return target;
1017
+ }
1018
+ function _objectWithoutPropertiesLoose(source, excluded) {
1019
+ if (source == null) return {};
1020
+ var target = {};
1021
+ var sourceKeys = Object.keys(source);
1022
+ var key, i;
1023
+ for (i = 0; i < sourceKeys.length; i++) {
1024
+ key = sourceKeys[i];
1025
+ if (excluded.indexOf(key) >= 0) continue;
1026
+ target[key] = source[key];
1027
+ }
1028
+ return target;
1029
+ }
1030
+ setTwoToneColor("#1890ff");
1031
+ var Icon = function Icon2(props, context) {
1032
+ var _classObj;
1033
+ var _props$context$attrs = _objectSpread$1({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
1034
+ var classObj = (_classObj = {
1035
+ anticon: true
1036
+ }, _defineProperty$1(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$1(_classObj, cls, cls), _classObj);
1037
+ var svgClassString = spin === "" || !!spin || icon.name === "loading" ? "anticon-spin" : "";
1038
+ var iconTabIndex = tabindex;
1039
+ if (iconTabIndex === void 0 && onClick) {
1040
+ iconTabIndex = -1;
1041
+ restProps.tabindex = iconTabIndex;
1042
+ }
1043
+ var svgStyle = rotate ? {
1044
+ msTransform: "rotate(".concat(rotate, "deg)"),
1045
+ transform: "rotate(".concat(rotate, "deg)")
1046
+ } : void 0;
1047
+ var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
1048
+ return createVNode("span", _objectSpread$1({
1049
+ "role": "img",
1050
+ "aria-label": icon.name
1051
+ }, restProps, {
1052
+ "onClick": onClick,
1053
+ "class": classObj
1054
+ }), [createVNode(IconBase, {
1055
+ "class": svgClassString,
1056
+ "icon": icon,
1057
+ "primaryColor": primaryColor,
1058
+ "secondaryColor": secondaryColor,
1059
+ "style": svgStyle
1060
+ }, null)]);
1061
+ };
1062
+ Icon.props = {
1063
+ spin: Boolean,
1064
+ rotate: Number,
1065
+ icon: Object,
1066
+ twoToneColor: String
1067
+ };
1068
+ Icon.displayName = "AntdIcon";
1069
+ Icon.inheritAttrs = false;
1070
+ Icon.getTwoToneColor = getTwoToneColor;
1071
+ Icon.setTwoToneColor = setTwoToneColor;
40
1072
  var CloseOutlined$1 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, "name": "close", "theme": "outlined" };
41
1073
  function _objectSpread(target) {
42
1074
  for (var i = 1; i < arguments.length; i++) {
@@ -1272,8 +2304,13 @@ const VersionSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "dat
1272
2304
  export {
1273
2305
  CloseOutlined as C,
1274
2306
  EmptyImg as E,
2307
+ Icon as I,
1275
2308
  OnlineFormModelModal as O,
1276
2309
  SEARCH_SEVICE as S,
1277
2310
  VersionSelect as V,
1278
- _sfc_main$6 as _
2311
+ _sfc_main$6 as _,
2312
+ SignatureTypeEnum as a,
2313
+ svgBaseProps as s,
2314
+ useInsertStyles as u,
2315
+ warning as w
1279
2316
  };