@gct-paas/excel 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/dist/AntdIcon-C3RMq2zm.js +1040 -0
- package/dist/{VueVideoPlayer-dTA6rv55.js → VueVideoPlayer-ZLD8hL4k.js} +2 -2
- package/dist/{agg-design-BSh_tHX-.js → agg-design-C8kk8Kch.js} +1 -1
- package/dist/{agg-props-DgdpMWgC.js → agg-props-CGmbXrHl.js} +1 -1
- package/dist/{agg-style-aUn3JT2k.js → agg-style-C_1CXG03.js} +1 -1
- package/dist/{align-editor-BNAaRXra.js → align-editor-DPdYAGLc.js} +1 -1
- package/dist/{attach-fields-editor-CnCVzcVh.js → attach-fields-editor-CIDhAemZ.js} +2 -2
- package/dist/{barcode-design-BPj7bVmK.js → barcode-design-CoYVoEFn.js} +2 -3
- package/dist/base/index.es.js +160 -898
- package/dist/{base-font-editor-C2g5pe1r.js → base-font-editor-BPfw_Re6.js} +2 -2
- package/dist/{boolean-design-DQcD63hA.js → boolean-design-BXbr26D4.js} +2 -3
- package/dist/{boolean-props-foEwOqoS.js → boolean-props-nCzH09qP.js} +3 -3
- package/dist/{boolean-style-BjM3jV9-.js → boolean-style-Cl18Y8qB.js} +4 -5
- package/dist/{cell-upload-Cg6qgXIl.js → cell-upload-CO49bM5f.js} +2 -2
- package/dist/{date-format-editor-B5TNYQOa.js → date-format-editor-BDkwE_r3.js} +2 -2
- package/dist/{date-time-design-DtFbeX45.js → date-time-design-CuMNyFsU.js} +1 -1
- package/dist/{date-time-props-Bg68phPu.js → date-time-props-CLttq7YV.js} +3 -4
- package/dist/{date-time-style-R3n3DWXL.js → date-time-style-CekvgyZk.js} +1 -1
- package/dist/{decimal-design-OvRMF5yY.js → decimal-design-D6FK5-3M.js} +1 -1
- package/dist/{decimal-display-mode-CMDX0MxE.js → decimal-display-mode-CqaSh2ls.js} +2 -3
- package/dist/{decimal-props-CiZcfWWs.js → decimal-props-DEwnN1Q2.js} +4 -4
- package/dist/{decimal-style-VcGRGgo0.js → decimal-style-CJWmQdHz.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-JAtSG3Hg.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-mgY8bHUJ.js} +2 -3
- package/dist/{diagonal-design-DckKhSUa.js → diagonal-design-CIopLvpL.js} +2 -2
- package/dist/{document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-C7m8TMOx.js → document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-D66iEl9_.js} +519 -1648
- package/dist/{Scrollbar-CZkJPRdu.js → document-sub-table-action-DTmf8djY.js} +32 -69
- package/dist/{double-design-BM09f_KU.js → double-design-CgvwQhau.js} +1 -1
- package/dist/{double-props-CeLgHsjo.js → double-props-TPv4fMW4.js} +4 -4
- package/dist/{double-style-DMLsVFfm.js → double-style-D6-yE_wb.js} +1 -1
- package/dist/{edit.utils-CXmmCnxE-DSPt0ECN.js → edit.utils-CXmmCnxE-BdPovZCI.js} +1 -1
- package/dist/{enum-design-CQV-mqqb.js → enum-design-DPpnnCBS.js} +2 -2
- package/dist/{enum-props-BHfTLRzU.js → enum-props-BozGqUk1.js} +4 -4
- package/dist/{enum-style-BEacuGVm.js → enum-style-BqFQ-u6u.js} +2 -2
- package/dist/excel.css +5325 -5250
- package/dist/{exceljs.min-BcrTQ29P.js → exceljs.min-Q7cd3slm.js} +2 -2
- package/dist/{expression-design-Vrtb7ZND.js → expression-design-TmsclPp9.js} +1 -1
- package/dist/{expression-props-DK-FoXcG.js → expression-props-D7Zk2Lj6.js} +1 -1
- package/dist/{expression-style-ClfZ23YJ.js → expression-style-DO5M9Ajy.js} +1 -1
- package/dist/{file-design-Cqn1H4ZT.js → file-design-D5w6xSTk.js} +1 -1
- package/dist/{file-props-C4TOFyAy.js → file-props-Bn7VgFDv.js} +2 -2
- package/dist/{file-style-B8L7LTU_.js → file-style-C2uWZfTL.js} +1 -1
- package/dist/{font-editor-Buf4R-Dg.js → font-editor-CxA5Db2_.js} +3 -3
- package/dist/{form-annotation-controller-Cg8TG2fi.js → form-annotation-controller-NcH3tnGJ.js} +2 -2
- package/dist/{image-design-DqAVKsuU.js → image-design-DIWSfrcq.js} +2 -2
- package/dist/{image-design-ChrM491B.js → image-design-DSbpGyCq.js} +2 -2
- package/dist/{image-props-yqaLEHSt.js → image-props-5fStBp37.js} +1 -1
- package/dist/{image-style-DVsD4FVx.js → image-style-ChKqwGjs.js} +1 -1
- package/dist/{index-CI1cxVRo.js → index-0fm9o8n6.js} +1 -2
- package/dist/{index-CmL4Be-K.js → index-3W4ojOsw.js} +1 -2
- package/dist/{index-GdSr850L.js → index-B5sCWlDl.js} +1 -2
- package/dist/{index-ou_rGN3F.js → index-BIBsEVp6.js} +1 -2
- package/dist/{index-BufHZCTt.js → index-BKTmHFPX.js} +3196 -1997
- package/dist/{index-BTeqM5Kn.js → index-BLZe6LV2.js} +1 -2
- package/dist/{index-B5bl5kGU.js → index-BQlGsxLp.js} +1 -2
- package/dist/{index-BLiD7NWb.js → index-BlD4K4x9.js} +1 -2
- package/dist/{index-C6J0DxCZ.js → index-BomC1N9j.js} +1 -2
- package/dist/{index-CR24b9nh.js → index-Bp_dDukK.js} +1 -2
- package/dist/{index-ZwgghSxK.js → index-C-R-S828.js} +1 -2
- package/dist/{index-Cbu-reyu.js → index-CKWk_Iax.js} +1 -2
- package/dist/{index-C-PCNtnr.js → index-CLfbQ9Km.js} +1 -2
- package/dist/{index-D2VzxQne.js → index-Cejm_o4O.js} +1 -2
- package/dist/{index-Dhkp_b7I.js → index-CiCyHGDi.js} +1 -2
- package/dist/{index-CEbxeuOx.js → index-CigaIXAe.js} +2 -3
- package/dist/{index-E8vZZFog.js → index-CnSZi6Rb.js} +1 -2
- package/dist/{index-BU5CPVZ9.js → index-CpFGw3N1.js} +1 -2
- package/dist/{index-DOQB5bpZ.js → index-CrsYNoBp.js} +1 -2
- package/dist/{index-D1YtyRKV.js → index-Czp4LZY9.js} +1 -2
- package/dist/{index-DUTCTiG6.js → index-D56i-zWI.js} +2 -3
- package/dist/{index-BNXmOMqP.js → index-D7tSQpaj.js} +2 -3
- package/dist/{index-ByW44_lg.js → index-DM8guHf_.js} +25 -1059
- package/dist/{index-D4oVIylK.js → index-DP-fe4OH.js} +1 -2
- package/dist/{index-DjFpScza.js → index-DSzP8X8O.js} +1 -2
- package/dist/{index-B6HMGpdJ.js → index-D_W1JQG3.js} +1 -2
- package/dist/{index-BOR8Q8y9.js → index-DfJnS3jv.js} +1 -2
- package/dist/{index-CxWoK5T3.js → index-Fm6FGBuV.js} +2 -3
- package/dist/{index-DCOAv1RI.js → index-I4RvYVZ5.js} +1 -2
- package/dist/{index-UvBvlRH6.js → index-TurTXvNN.js} +2 -3
- package/dist/{index-Dlfg1YKC.js → index-j478qavG.js} +1 -2
- package/dist/{index-BVjCKddq.js → index-qQN-nVT9.js} +1 -2
- package/dist/{index-DiW6xxVC.js → index-uZMZ5Sw0.js} +1 -2
- package/dist/index.es.js +34 -7
- package/dist/{integer-design-C6VCvXTM.js → integer-design-D9JByLVX.js} +1 -1
- package/dist/integer-props-BjWENkem.js +160 -0
- package/dist/{integer-style-Dn7g1ycQ.js → integer-style-CT8R9q-n.js} +1 -1
- package/dist/mb-render-JL1sDSy6.js +478 -0
- package/dist/{number-input-ex-Cul_CZQ0.js → number-input-ex-3TUi3vyu.js} +1 -1
- package/dist/{org-props-DREu4eul.js → org-props-DFbUC2TP.js} +2 -3
- package/dist/{org-style-DWgicBvo.js → org-style-DgGKHpDd.js} +1 -1
- package/dist/{pagination-design-C7Y3dklf.js → pagination-design-BgfX6d8b.js} +2 -3
- package/dist/paper-widget-design-CAqW3laq.js +4 -0
- package/dist/{qrcode-design-fGE8BQ-O.js → qrcode-design-80yZ4fJY.js} +1 -1
- package/dist/{ref-autofill-editor-B-Fso3FS.js → ref-autofill-editor-BIy-Jm0g.js} +2 -2
- package/dist/{ref-props-Bkx5kKf6.js → ref-props-B_GWOIQV.js} +3 -3
- package/dist/{ref-style-EN9Ns73A.js → ref-style-Dw1h5H98.js} +1 -1
- package/dist/{revo-grid.entry-C51uy2x-.js → revo-grid.entry-DNrCIdcu.js} +1 -1
- package/dist/{revogr-attribution_7.entry-6GWxPTYu.js → revogr-attribution_7.entry-g7DReToZ.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-MHLzoSuG.js → revogr-clipboard_3.entry-vJotBpPb.js} +2 -2
- package/dist/{revogr-data_4.entry-D1WYZoa6.js → revogr-data_4.entry-CoP8SHrP.js} +2 -2
- package/dist/{revogr-filter-panel.entry-BpgqhpkQ.js → revogr-filter-panel.entry-Cl_ZKbCr.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-Bvjy4qIw.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-CAjUQ7Ig.js} +2 -3
- package/dist/{serialnumber-design-C0T0j8QO.js → serialnumber-design-DCbPl9zc.js} +1 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.es.js +87 -0
- package/dist/{signature-design-DYWt8Ey-.js → signature-design-DgMBF1dM.js} +1 -1
- package/dist/{signature-props-BtQoL2UQ.js → signature-props-DbaXK1t8.js} +3 -3
- package/dist/{signature-style-BXxi_a0T.js → signature-style-dr1T4Dfx.js} +1 -1
- package/dist/{single-field-drop-Ddtf_x2v.js → single-field-drop-gbyOxdwW.js} +2 -2
- package/dist/{size-editor-Dw9e652e.js → size-editor-BSZoEseb.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +2 -0
- package/dist/src/adapter/setup.d.ts +4 -0
- package/dist/src/index.d.ts +16 -1
- package/dist/src/nocode-base/src/components/index.d.ts +1 -4
- package/dist/src/nocode-mobile-render/src/integration/form-ins/change-form-ins-popup.vue.d.ts +2 -2
- package/dist/src/nocode-mobile-render/src/integration/mobile-edhr-fill-modal.vue.d.ts +1 -67
- package/dist/src/nocode-mobile-render/src/integration/mobile-edhr-menu.vue.d.ts +4 -4
- package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/index.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/header.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/field-tree-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/add-builtin-param/add-builtin-param-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/form-field-tree-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/material-rdo-select.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/designer/public-api.d.ts +5 -0
- package/dist/src/{nocode-base/src/components/error-group-panel.vue.d.ts → online-form/src/views/integration/apaas_dp/designer/apaas-dp-print-sheet-view.vue.d.ts} +2 -3
- package/dist/src/online-form/src/views/integration/apaas_dp/designer/apaas-dp-print.vue.d.ts +2 -0
- package/dist/src/shared/components/rdo-tree-select/rdo-tree-select.vue.d.ts +2 -2
- package/dist/src/shared/components/version-select/version-select.vue.d.ts +2 -2
- package/dist/src/shared/index.d.ts +4 -0
- package/dist/{text-design-Cd-SRz7Y.js → text-design-Bnh_H2pu.js} +2 -2
- package/dist/{text-design-vceuHLPE.js → text-design-CCmIloIc.js} +2 -3
- package/dist/{text-props-CxTkG4Zm.js → text-props-cPJGCpv2.js} +4 -3
- package/dist/{text-style-DVy49LXX.js → text-style-CD_4lxio.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-BVaBzkFx.js → throttle-Cpk1LoGk-BjiiSDKG.js} +1 -1
- package/dist/{timediff-design-W6UPLRAX.js → timediff-design-OvKUg4IL.js} +1 -2
- package/dist/{trace-design-BuhIchCy.js → trace-design-BXQyDWnc.js} +2 -2
- package/dist/{trace-props-0E_STwaq.js → trace-props-yQEe--Vy.js} +5 -5
- package/dist/{trace-style-CfSg0-lN.js → trace-style-DUJXCepn.js} +1 -1
- package/dist/{user-props-BiFKaiMZ.js → user-props-DVYxW97f.js} +2 -3
- package/dist/{user-style-CxsyKyXC.js → user-style-jlKo2wS8.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-BrTKGp_z.js → value-editor.vue_vue_type_style_index_0_lang-CgqZs-Ag.js} +2 -3
- package/dist/{integer-props-BD4PuU4P.js → version-select-D6Jjs5hL.js} +93 -165
- package/dist/web-render/index.es.js +13 -12
- package/dist/{widget-barcode-Ctswl_H6.js → widget-barcode-DJ6E5SyP.js} +4 -5
- package/dist/{widget-diagonal-CkutzUiE.js → widget-diagonal-CAg-NXwA.js} +3 -3
- package/dist/{widget-image-CiGzVibD.js → widget-image-BAoTYQSQ.js} +5 -4
- package/dist/{widget-line-C-Nz3ZEK.js → widget-line-Cm9PTXss.js} +2 -3
- package/dist/{widget-pagination-B2fU-QnL.js → widget-pagination-DNPTBaOV.js} +5 -6
- package/dist/{widget-power-CU5Fx3HO.js → widget-power-cfqc0tm3.js} +3 -3
- package/dist/{widget-qrcode-DwZUkDpg.js → widget-qrcode-Cc6Iju1_.js} +3 -4
- package/dist/{widget-rangelimit-CCYANaY4.js → widget-rangelimit-CIe0fkdQ.js} +3 -3
- package/dist/{widget-serialnumber-vbZRJ1zL.js → widget-serialnumber-DJ97P3Pb.js} +1 -1
- package/dist/{widget-text-BQpus-v_.js → widget-text-66OkH_MY.js} +5 -5
- package/dist/{widget-timediff-C2PnkPsn.js → widget-timediff-_PSHGrTL.js} +2 -3
- package/package.json +8 -2
- package/dist/paper-widget-design-CZ2TYnKG.js +0 -4
- package/dist/src/nocode-base/src/components/ebr-wiki-layout.vue.d.ts +0 -34
- package/dist/src/nocode-base/src/components/edhr-new-wiki-tree.vue.d.ts +0 -46
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import * as Antd from "ant-design-vue";
|
|
2
2
|
import { ConfigProvider, message, Modal, Form } from "ant-design-vue";
|
|
3
|
-
import {
|
|
3
|
+
import { i as api, l as getDefaultExportFromCjs, bf as getAugmentedNamespace, k as commonjsGlobal, D as useModal, E as useNamespace, _ as _export_sfc, b4 as getParseRuleConfig, aI as uuid2$1 } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-D66iEl9_.js";
|
|
4
4
|
import { watch, ref as ref$1, reactive, h, resolveComponent, defineComponent, inject, computed, createCommentVNode, createApp, Teleport, nextTick, provide, onMounted, onUnmounted, onBeforeUnmount, TransitionGroup, getCurrentInstance, onActivated, onDeactivated, createVNode, render, openBlock, createElementBlock, normalizeClass, unref, withCtx, createElementVNode, createTextVNode, toDisplayString, normalizeStyle, Fragment, renderList, createBlock, withModifiers, renderSlot, mergeProps, toRaw, withKeys, toRef, watchEffect } from "vue";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import { isNil, debounce, cloneDeep } from "lodash-es";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
SignatureTypeEnum2["SIGNATURE_DATE"] = "signature_date";
|
|
10
|
-
SignatureTypeEnum2["SIGNATURE_DATETIME"] = "signature_datetime";
|
|
11
|
-
return SignatureTypeEnum2;
|
|
12
|
-
})(SignatureTypeEnum || {});
|
|
7
|
+
import { S as SignatureTypeEnum } from "./AntdIcon-C3RMq2zm.js";
|
|
8
|
+
import { n as noop, t as tryOnScopeDispose, c as isClient, d as tryOnMounted, r as resolveUnref, i as isIOS, e as isString, f as identity, w as watchDebounced, u as useFormModel, M as MBRender, b as MCRender } from "./mb-render-JL1sDSy6.js";
|
|
13
9
|
function unrefElement(elRef) {
|
|
14
10
|
var _a;
|
|
15
11
|
const plain = resolveUnref(elRef);
|
|
@@ -412,7 +408,7 @@ const initWebPaasUploadApis = () => {
|
|
|
412
408
|
},
|
|
413
409
|
transfer: (filename) => {
|
|
414
410
|
if (!filename) return "";
|
|
415
|
-
return `${
|
|
411
|
+
return `${window.NocodeAdapter.minioPath}${!filename.startsWith("/") ? `/${filename}` : filename}`;
|
|
416
412
|
}
|
|
417
413
|
});
|
|
418
414
|
};
|
|
@@ -16235,7 +16231,7 @@ const VxeIcon = Object.assign(VxeIconComponent, {
|
|
|
16235
16231
|
app.component(VxeIconComponent.name, VxeIconComponent);
|
|
16236
16232
|
}
|
|
16237
16233
|
});
|
|
16238
|
-
const Icon
|
|
16234
|
+
const Icon = VxeIcon;
|
|
16239
16235
|
dynamicApp.component(VxeIcon.name, VxeIcon);
|
|
16240
16236
|
function renderTitlePrefixIcon(params) {
|
|
16241
16237
|
const { $table, column } = params;
|
|
@@ -30674,7 +30670,7 @@ Antd.Modal.confirm = (arg) => {
|
|
|
30674
30670
|
};
|
|
30675
30671
|
Antd.Modal.props.focusTriggerAfterClose.default = false;
|
|
30676
30672
|
function registerVxeTable(app) {
|
|
30677
|
-
app.use(Column).use(Table).use(Icon
|
|
30673
|
+
app.use(Column).use(Table).use(Icon).use(Tooltip).use(Edit).use(Grid).use(Validator);
|
|
30678
30674
|
}
|
|
30679
30675
|
function registerDialogComp(app) {
|
|
30680
30676
|
app.provide(APP_INST, app);
|
|
@@ -30724,1032 +30720,6 @@ class GctDialog {
|
|
|
30724
30720
|
app.mount(container);
|
|
30725
30721
|
}
|
|
30726
30722
|
}
|
|
30727
|
-
function bound01(n, max2) {
|
|
30728
|
-
if (isOnePointZero(n)) {
|
|
30729
|
-
n = "100%";
|
|
30730
|
-
}
|
|
30731
|
-
var isPercent = isPercentage(n);
|
|
30732
|
-
n = max2 === 360 ? n : Math.min(max2, Math.max(0, parseFloat(n)));
|
|
30733
|
-
if (isPercent) {
|
|
30734
|
-
n = parseInt(String(n * max2), 10) / 100;
|
|
30735
|
-
}
|
|
30736
|
-
if (Math.abs(n - max2) < 1e-6) {
|
|
30737
|
-
return 1;
|
|
30738
|
-
}
|
|
30739
|
-
if (max2 === 360) {
|
|
30740
|
-
n = (n < 0 ? n % max2 + max2 : n % max2) / parseFloat(String(max2));
|
|
30741
|
-
} else {
|
|
30742
|
-
n = n % max2 / parseFloat(String(max2));
|
|
30743
|
-
}
|
|
30744
|
-
return n;
|
|
30745
|
-
}
|
|
30746
|
-
function isOnePointZero(n) {
|
|
30747
|
-
return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
|
|
30748
|
-
}
|
|
30749
|
-
function isPercentage(n) {
|
|
30750
|
-
return typeof n === "string" && n.indexOf("%") !== -1;
|
|
30751
|
-
}
|
|
30752
|
-
function boundAlpha(a) {
|
|
30753
|
-
a = parseFloat(a);
|
|
30754
|
-
if (isNaN(a) || a < 0 || a > 1) {
|
|
30755
|
-
a = 1;
|
|
30756
|
-
}
|
|
30757
|
-
return a;
|
|
30758
|
-
}
|
|
30759
|
-
function convertToPercentage(n) {
|
|
30760
|
-
if (n <= 1) {
|
|
30761
|
-
return "".concat(Number(n) * 100, "%");
|
|
30762
|
-
}
|
|
30763
|
-
return n;
|
|
30764
|
-
}
|
|
30765
|
-
function pad2(c) {
|
|
30766
|
-
return c.length === 1 ? "0" + c : String(c);
|
|
30767
|
-
}
|
|
30768
|
-
function rgbToRgb(r, g, b) {
|
|
30769
|
-
return {
|
|
30770
|
-
r: bound01(r, 255) * 255,
|
|
30771
|
-
g: bound01(g, 255) * 255,
|
|
30772
|
-
b: bound01(b, 255) * 255
|
|
30773
|
-
};
|
|
30774
|
-
}
|
|
30775
|
-
function hue2rgb(p, q, t2) {
|
|
30776
|
-
if (t2 < 0) {
|
|
30777
|
-
t2 += 1;
|
|
30778
|
-
}
|
|
30779
|
-
if (t2 > 1) {
|
|
30780
|
-
t2 -= 1;
|
|
30781
|
-
}
|
|
30782
|
-
if (t2 < 1 / 6) {
|
|
30783
|
-
return p + (q - p) * (6 * t2);
|
|
30784
|
-
}
|
|
30785
|
-
if (t2 < 1 / 2) {
|
|
30786
|
-
return q;
|
|
30787
|
-
}
|
|
30788
|
-
if (t2 < 2 / 3) {
|
|
30789
|
-
return p + (q - p) * (2 / 3 - t2) * 6;
|
|
30790
|
-
}
|
|
30791
|
-
return p;
|
|
30792
|
-
}
|
|
30793
|
-
function hslToRgb(h2, s, l) {
|
|
30794
|
-
var r;
|
|
30795
|
-
var g;
|
|
30796
|
-
var b;
|
|
30797
|
-
h2 = bound01(h2, 360);
|
|
30798
|
-
s = bound01(s, 100);
|
|
30799
|
-
l = bound01(l, 100);
|
|
30800
|
-
if (s === 0) {
|
|
30801
|
-
g = l;
|
|
30802
|
-
b = l;
|
|
30803
|
-
r = l;
|
|
30804
|
-
} else {
|
|
30805
|
-
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
30806
|
-
var p = 2 * l - q;
|
|
30807
|
-
r = hue2rgb(p, q, h2 + 1 / 3);
|
|
30808
|
-
g = hue2rgb(p, q, h2);
|
|
30809
|
-
b = hue2rgb(p, q, h2 - 1 / 3);
|
|
30810
|
-
}
|
|
30811
|
-
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
30812
|
-
}
|
|
30813
|
-
function rgbToHsv(r, g, b) {
|
|
30814
|
-
r = bound01(r, 255);
|
|
30815
|
-
g = bound01(g, 255);
|
|
30816
|
-
b = bound01(b, 255);
|
|
30817
|
-
var max2 = Math.max(r, g, b);
|
|
30818
|
-
var min2 = Math.min(r, g, b);
|
|
30819
|
-
var h2 = 0;
|
|
30820
|
-
var v2 = max2;
|
|
30821
|
-
var d = max2 - min2;
|
|
30822
|
-
var s = max2 === 0 ? 0 : d / max2;
|
|
30823
|
-
if (max2 === min2) {
|
|
30824
|
-
h2 = 0;
|
|
30825
|
-
} else {
|
|
30826
|
-
switch (max2) {
|
|
30827
|
-
case r:
|
|
30828
|
-
h2 = (g - b) / d + (g < b ? 6 : 0);
|
|
30829
|
-
break;
|
|
30830
|
-
case g:
|
|
30831
|
-
h2 = (b - r) / d + 2;
|
|
30832
|
-
break;
|
|
30833
|
-
case b:
|
|
30834
|
-
h2 = (r - g) / d + 4;
|
|
30835
|
-
break;
|
|
30836
|
-
}
|
|
30837
|
-
h2 /= 6;
|
|
30838
|
-
}
|
|
30839
|
-
return { h: h2, s, v: v2 };
|
|
30840
|
-
}
|
|
30841
|
-
function hsvToRgb(h2, s, v2) {
|
|
30842
|
-
h2 = bound01(h2, 360) * 6;
|
|
30843
|
-
s = bound01(s, 100);
|
|
30844
|
-
v2 = bound01(v2, 100);
|
|
30845
|
-
var i = Math.floor(h2);
|
|
30846
|
-
var f = h2 - i;
|
|
30847
|
-
var p = v2 * (1 - s);
|
|
30848
|
-
var q = v2 * (1 - f * s);
|
|
30849
|
-
var t2 = v2 * (1 - (1 - f) * s);
|
|
30850
|
-
var mod = i % 6;
|
|
30851
|
-
var r = [v2, q, p, p, t2, v2][mod];
|
|
30852
|
-
var g = [t2, v2, v2, q, p, p][mod];
|
|
30853
|
-
var b = [p, p, t2, v2, v2, q][mod];
|
|
30854
|
-
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
30855
|
-
}
|
|
30856
|
-
function rgbToHex(r, g, b, allow3Char) {
|
|
30857
|
-
var hex = [
|
|
30858
|
-
pad2(Math.round(r).toString(16)),
|
|
30859
|
-
pad2(Math.round(g).toString(16)),
|
|
30860
|
-
pad2(Math.round(b).toString(16))
|
|
30861
|
-
];
|
|
30862
|
-
return hex.join("");
|
|
30863
|
-
}
|
|
30864
|
-
function convertHexToDecimal(h2) {
|
|
30865
|
-
return parseIntFromHex(h2) / 255;
|
|
30866
|
-
}
|
|
30867
|
-
function parseIntFromHex(val) {
|
|
30868
|
-
return parseInt(val, 16);
|
|
30869
|
-
}
|
|
30870
|
-
var names = {
|
|
30871
|
-
aliceblue: "#f0f8ff",
|
|
30872
|
-
antiquewhite: "#faebd7",
|
|
30873
|
-
aqua: "#00ffff",
|
|
30874
|
-
aquamarine: "#7fffd4",
|
|
30875
|
-
azure: "#f0ffff",
|
|
30876
|
-
beige: "#f5f5dc",
|
|
30877
|
-
bisque: "#ffe4c4",
|
|
30878
|
-
black: "#000000",
|
|
30879
|
-
blanchedalmond: "#ffebcd",
|
|
30880
|
-
blue: "#0000ff",
|
|
30881
|
-
blueviolet: "#8a2be2",
|
|
30882
|
-
brown: "#a52a2a",
|
|
30883
|
-
burlywood: "#deb887",
|
|
30884
|
-
cadetblue: "#5f9ea0",
|
|
30885
|
-
chartreuse: "#7fff00",
|
|
30886
|
-
chocolate: "#d2691e",
|
|
30887
|
-
coral: "#ff7f50",
|
|
30888
|
-
cornflowerblue: "#6495ed",
|
|
30889
|
-
cornsilk: "#fff8dc",
|
|
30890
|
-
crimson: "#dc143c",
|
|
30891
|
-
cyan: "#00ffff",
|
|
30892
|
-
darkblue: "#00008b",
|
|
30893
|
-
darkcyan: "#008b8b",
|
|
30894
|
-
darkgoldenrod: "#b8860b",
|
|
30895
|
-
darkgray: "#a9a9a9",
|
|
30896
|
-
darkgreen: "#006400",
|
|
30897
|
-
darkgrey: "#a9a9a9",
|
|
30898
|
-
darkkhaki: "#bdb76b",
|
|
30899
|
-
darkmagenta: "#8b008b",
|
|
30900
|
-
darkolivegreen: "#556b2f",
|
|
30901
|
-
darkorange: "#ff8c00",
|
|
30902
|
-
darkorchid: "#9932cc",
|
|
30903
|
-
darkred: "#8b0000",
|
|
30904
|
-
darksalmon: "#e9967a",
|
|
30905
|
-
darkseagreen: "#8fbc8f",
|
|
30906
|
-
darkslateblue: "#483d8b",
|
|
30907
|
-
darkslategray: "#2f4f4f",
|
|
30908
|
-
darkslategrey: "#2f4f4f",
|
|
30909
|
-
darkturquoise: "#00ced1",
|
|
30910
|
-
darkviolet: "#9400d3",
|
|
30911
|
-
deeppink: "#ff1493",
|
|
30912
|
-
deepskyblue: "#00bfff",
|
|
30913
|
-
dimgray: "#696969",
|
|
30914
|
-
dimgrey: "#696969",
|
|
30915
|
-
dodgerblue: "#1e90ff",
|
|
30916
|
-
firebrick: "#b22222",
|
|
30917
|
-
floralwhite: "#fffaf0",
|
|
30918
|
-
forestgreen: "#228b22",
|
|
30919
|
-
fuchsia: "#ff00ff",
|
|
30920
|
-
gainsboro: "#dcdcdc",
|
|
30921
|
-
ghostwhite: "#f8f8ff",
|
|
30922
|
-
goldenrod: "#daa520",
|
|
30923
|
-
gold: "#ffd700",
|
|
30924
|
-
gray: "#808080",
|
|
30925
|
-
green: "#008000",
|
|
30926
|
-
greenyellow: "#adff2f",
|
|
30927
|
-
grey: "#808080",
|
|
30928
|
-
honeydew: "#f0fff0",
|
|
30929
|
-
hotpink: "#ff69b4",
|
|
30930
|
-
indianred: "#cd5c5c",
|
|
30931
|
-
indigo: "#4b0082",
|
|
30932
|
-
ivory: "#fffff0",
|
|
30933
|
-
khaki: "#f0e68c",
|
|
30934
|
-
lavenderblush: "#fff0f5",
|
|
30935
|
-
lavender: "#e6e6fa",
|
|
30936
|
-
lawngreen: "#7cfc00",
|
|
30937
|
-
lemonchiffon: "#fffacd",
|
|
30938
|
-
lightblue: "#add8e6",
|
|
30939
|
-
lightcoral: "#f08080",
|
|
30940
|
-
lightcyan: "#e0ffff",
|
|
30941
|
-
lightgoldenrodyellow: "#fafad2",
|
|
30942
|
-
lightgray: "#d3d3d3",
|
|
30943
|
-
lightgreen: "#90ee90",
|
|
30944
|
-
lightgrey: "#d3d3d3",
|
|
30945
|
-
lightpink: "#ffb6c1",
|
|
30946
|
-
lightsalmon: "#ffa07a",
|
|
30947
|
-
lightseagreen: "#20b2aa",
|
|
30948
|
-
lightskyblue: "#87cefa",
|
|
30949
|
-
lightslategray: "#778899",
|
|
30950
|
-
lightslategrey: "#778899",
|
|
30951
|
-
lightsteelblue: "#b0c4de",
|
|
30952
|
-
lightyellow: "#ffffe0",
|
|
30953
|
-
lime: "#00ff00",
|
|
30954
|
-
limegreen: "#32cd32",
|
|
30955
|
-
linen: "#faf0e6",
|
|
30956
|
-
magenta: "#ff00ff",
|
|
30957
|
-
maroon: "#800000",
|
|
30958
|
-
mediumaquamarine: "#66cdaa",
|
|
30959
|
-
mediumblue: "#0000cd",
|
|
30960
|
-
mediumorchid: "#ba55d3",
|
|
30961
|
-
mediumpurple: "#9370db",
|
|
30962
|
-
mediumseagreen: "#3cb371",
|
|
30963
|
-
mediumslateblue: "#7b68ee",
|
|
30964
|
-
mediumspringgreen: "#00fa9a",
|
|
30965
|
-
mediumturquoise: "#48d1cc",
|
|
30966
|
-
mediumvioletred: "#c71585",
|
|
30967
|
-
midnightblue: "#191970",
|
|
30968
|
-
mintcream: "#f5fffa",
|
|
30969
|
-
mistyrose: "#ffe4e1",
|
|
30970
|
-
moccasin: "#ffe4b5",
|
|
30971
|
-
navajowhite: "#ffdead",
|
|
30972
|
-
navy: "#000080",
|
|
30973
|
-
oldlace: "#fdf5e6",
|
|
30974
|
-
olive: "#808000",
|
|
30975
|
-
olivedrab: "#6b8e23",
|
|
30976
|
-
orange: "#ffa500",
|
|
30977
|
-
orangered: "#ff4500",
|
|
30978
|
-
orchid: "#da70d6",
|
|
30979
|
-
palegoldenrod: "#eee8aa",
|
|
30980
|
-
palegreen: "#98fb98",
|
|
30981
|
-
paleturquoise: "#afeeee",
|
|
30982
|
-
palevioletred: "#db7093",
|
|
30983
|
-
papayawhip: "#ffefd5",
|
|
30984
|
-
peachpuff: "#ffdab9",
|
|
30985
|
-
peru: "#cd853f",
|
|
30986
|
-
pink: "#ffc0cb",
|
|
30987
|
-
plum: "#dda0dd",
|
|
30988
|
-
powderblue: "#b0e0e6",
|
|
30989
|
-
purple: "#800080",
|
|
30990
|
-
rebeccapurple: "#663399",
|
|
30991
|
-
red: "#ff0000",
|
|
30992
|
-
rosybrown: "#bc8f8f",
|
|
30993
|
-
royalblue: "#4169e1",
|
|
30994
|
-
saddlebrown: "#8b4513",
|
|
30995
|
-
salmon: "#fa8072",
|
|
30996
|
-
sandybrown: "#f4a460",
|
|
30997
|
-
seagreen: "#2e8b57",
|
|
30998
|
-
seashell: "#fff5ee",
|
|
30999
|
-
sienna: "#a0522d",
|
|
31000
|
-
silver: "#c0c0c0",
|
|
31001
|
-
skyblue: "#87ceeb",
|
|
31002
|
-
slateblue: "#6a5acd",
|
|
31003
|
-
slategray: "#708090",
|
|
31004
|
-
slategrey: "#708090",
|
|
31005
|
-
snow: "#fffafa",
|
|
31006
|
-
springgreen: "#00ff7f",
|
|
31007
|
-
steelblue: "#4682b4",
|
|
31008
|
-
tan: "#d2b48c",
|
|
31009
|
-
teal: "#008080",
|
|
31010
|
-
thistle: "#d8bfd8",
|
|
31011
|
-
tomato: "#ff6347",
|
|
31012
|
-
turquoise: "#40e0d0",
|
|
31013
|
-
violet: "#ee82ee",
|
|
31014
|
-
wheat: "#f5deb3",
|
|
31015
|
-
white: "#ffffff",
|
|
31016
|
-
whitesmoke: "#f5f5f5",
|
|
31017
|
-
yellow: "#ffff00",
|
|
31018
|
-
yellowgreen: "#9acd32"
|
|
31019
|
-
};
|
|
31020
|
-
function inputToRGB(color) {
|
|
31021
|
-
var rgb = { r: 0, g: 0, b: 0 };
|
|
31022
|
-
var a = 1;
|
|
31023
|
-
var s = null;
|
|
31024
|
-
var v2 = null;
|
|
31025
|
-
var l = null;
|
|
31026
|
-
var ok = false;
|
|
31027
|
-
var format = false;
|
|
31028
|
-
if (typeof color === "string") {
|
|
31029
|
-
color = stringInputToObject(color);
|
|
31030
|
-
}
|
|
31031
|
-
if (typeof color === "object") {
|
|
31032
|
-
if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
|
|
31033
|
-
rgb = rgbToRgb(color.r, color.g, color.b);
|
|
31034
|
-
ok = true;
|
|
31035
|
-
format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
|
|
31036
|
-
} else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
|
|
31037
|
-
s = convertToPercentage(color.s);
|
|
31038
|
-
v2 = convertToPercentage(color.v);
|
|
31039
|
-
rgb = hsvToRgb(color.h, s, v2);
|
|
31040
|
-
ok = true;
|
|
31041
|
-
format = "hsv";
|
|
31042
|
-
} else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
|
|
31043
|
-
s = convertToPercentage(color.s);
|
|
31044
|
-
l = convertToPercentage(color.l);
|
|
31045
|
-
rgb = hslToRgb(color.h, s, l);
|
|
31046
|
-
ok = true;
|
|
31047
|
-
format = "hsl";
|
|
31048
|
-
}
|
|
31049
|
-
if (Object.prototype.hasOwnProperty.call(color, "a")) {
|
|
31050
|
-
a = color.a;
|
|
31051
|
-
}
|
|
31052
|
-
}
|
|
31053
|
-
a = boundAlpha(a);
|
|
31054
|
-
return {
|
|
31055
|
-
ok,
|
|
31056
|
-
format: color.format || format,
|
|
31057
|
-
r: Math.min(255, Math.max(rgb.r, 0)),
|
|
31058
|
-
g: Math.min(255, Math.max(rgb.g, 0)),
|
|
31059
|
-
b: Math.min(255, Math.max(rgb.b, 0)),
|
|
31060
|
-
a
|
|
31061
|
-
};
|
|
31062
|
-
}
|
|
31063
|
-
var CSS_INTEGER = "[-\\+]?\\d+%?";
|
|
31064
|
-
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
|
|
31065
|
-
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
31066
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
31067
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
31068
|
-
var matchers = {
|
|
31069
|
-
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
31070
|
-
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
|
|
31071
|
-
rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
|
|
31072
|
-
hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
|
|
31073
|
-
hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
|
|
31074
|
-
hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
|
|
31075
|
-
hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
|
|
31076
|
-
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
31077
|
-
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
31078
|
-
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
31079
|
-
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
31080
|
-
};
|
|
31081
|
-
function stringInputToObject(color) {
|
|
31082
|
-
color = color.trim().toLowerCase();
|
|
31083
|
-
if (color.length === 0) {
|
|
31084
|
-
return false;
|
|
31085
|
-
}
|
|
31086
|
-
var named = false;
|
|
31087
|
-
if (names[color]) {
|
|
31088
|
-
color = names[color];
|
|
31089
|
-
named = true;
|
|
31090
|
-
} else if (color === "transparent") {
|
|
31091
|
-
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
31092
|
-
}
|
|
31093
|
-
var match = matchers.rgb.exec(color);
|
|
31094
|
-
if (match) {
|
|
31095
|
-
return { r: match[1], g: match[2], b: match[3] };
|
|
31096
|
-
}
|
|
31097
|
-
match = matchers.rgba.exec(color);
|
|
31098
|
-
if (match) {
|
|
31099
|
-
return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
|
31100
|
-
}
|
|
31101
|
-
match = matchers.hsl.exec(color);
|
|
31102
|
-
if (match) {
|
|
31103
|
-
return { h: match[1], s: match[2], l: match[3] };
|
|
31104
|
-
}
|
|
31105
|
-
match = matchers.hsla.exec(color);
|
|
31106
|
-
if (match) {
|
|
31107
|
-
return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
|
31108
|
-
}
|
|
31109
|
-
match = matchers.hsv.exec(color);
|
|
31110
|
-
if (match) {
|
|
31111
|
-
return { h: match[1], s: match[2], v: match[3] };
|
|
31112
|
-
}
|
|
31113
|
-
match = matchers.hsva.exec(color);
|
|
31114
|
-
if (match) {
|
|
31115
|
-
return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
|
31116
|
-
}
|
|
31117
|
-
match = matchers.hex8.exec(color);
|
|
31118
|
-
if (match) {
|
|
31119
|
-
return {
|
|
31120
|
-
r: parseIntFromHex(match[1]),
|
|
31121
|
-
g: parseIntFromHex(match[2]),
|
|
31122
|
-
b: parseIntFromHex(match[3]),
|
|
31123
|
-
a: convertHexToDecimal(match[4]),
|
|
31124
|
-
format: named ? "name" : "hex8"
|
|
31125
|
-
};
|
|
31126
|
-
}
|
|
31127
|
-
match = matchers.hex6.exec(color);
|
|
31128
|
-
if (match) {
|
|
31129
|
-
return {
|
|
31130
|
-
r: parseIntFromHex(match[1]),
|
|
31131
|
-
g: parseIntFromHex(match[2]),
|
|
31132
|
-
b: parseIntFromHex(match[3]),
|
|
31133
|
-
format: named ? "name" : "hex"
|
|
31134
|
-
};
|
|
31135
|
-
}
|
|
31136
|
-
match = matchers.hex4.exec(color);
|
|
31137
|
-
if (match) {
|
|
31138
|
-
return {
|
|
31139
|
-
r: parseIntFromHex(match[1] + match[1]),
|
|
31140
|
-
g: parseIntFromHex(match[2] + match[2]),
|
|
31141
|
-
b: parseIntFromHex(match[3] + match[3]),
|
|
31142
|
-
a: convertHexToDecimal(match[4] + match[4]),
|
|
31143
|
-
format: named ? "name" : "hex8"
|
|
31144
|
-
};
|
|
31145
|
-
}
|
|
31146
|
-
match = matchers.hex3.exec(color);
|
|
31147
|
-
if (match) {
|
|
31148
|
-
return {
|
|
31149
|
-
r: parseIntFromHex(match[1] + match[1]),
|
|
31150
|
-
g: parseIntFromHex(match[2] + match[2]),
|
|
31151
|
-
b: parseIntFromHex(match[3] + match[3]),
|
|
31152
|
-
format: named ? "name" : "hex"
|
|
31153
|
-
};
|
|
31154
|
-
}
|
|
31155
|
-
return false;
|
|
31156
|
-
}
|
|
31157
|
-
function isValidCSSUnit(color) {
|
|
31158
|
-
return Boolean(matchers.CSS_UNIT.exec(String(color)));
|
|
31159
|
-
}
|
|
31160
|
-
var hueStep = 2;
|
|
31161
|
-
var saturationStep = 0.16;
|
|
31162
|
-
var saturationStep2 = 0.05;
|
|
31163
|
-
var brightnessStep1 = 0.05;
|
|
31164
|
-
var brightnessStep2 = 0.15;
|
|
31165
|
-
var lightColorCount = 5;
|
|
31166
|
-
var darkColorCount = 4;
|
|
31167
|
-
var darkColorMap = [{
|
|
31168
|
-
index: 7,
|
|
31169
|
-
opacity: 0.15
|
|
31170
|
-
}, {
|
|
31171
|
-
index: 6,
|
|
31172
|
-
opacity: 0.25
|
|
31173
|
-
}, {
|
|
31174
|
-
index: 5,
|
|
31175
|
-
opacity: 0.3
|
|
31176
|
-
}, {
|
|
31177
|
-
index: 5,
|
|
31178
|
-
opacity: 0.45
|
|
31179
|
-
}, {
|
|
31180
|
-
index: 5,
|
|
31181
|
-
opacity: 0.65
|
|
31182
|
-
}, {
|
|
31183
|
-
index: 5,
|
|
31184
|
-
opacity: 0.85
|
|
31185
|
-
}, {
|
|
31186
|
-
index: 4,
|
|
31187
|
-
opacity: 0.9
|
|
31188
|
-
}, {
|
|
31189
|
-
index: 3,
|
|
31190
|
-
opacity: 0.95
|
|
31191
|
-
}, {
|
|
31192
|
-
index: 2,
|
|
31193
|
-
opacity: 0.97
|
|
31194
|
-
}, {
|
|
31195
|
-
index: 1,
|
|
31196
|
-
opacity: 0.98
|
|
31197
|
-
}];
|
|
31198
|
-
function toHsv(_ref) {
|
|
31199
|
-
var r = _ref.r, g = _ref.g, b = _ref.b;
|
|
31200
|
-
var hsv = rgbToHsv(r, g, b);
|
|
31201
|
-
return {
|
|
31202
|
-
h: hsv.h * 360,
|
|
31203
|
-
s: hsv.s,
|
|
31204
|
-
v: hsv.v
|
|
31205
|
-
};
|
|
31206
|
-
}
|
|
31207
|
-
function toHex(_ref2) {
|
|
31208
|
-
var r = _ref2.r, g = _ref2.g, b = _ref2.b;
|
|
31209
|
-
return "#".concat(rgbToHex(r, g, b));
|
|
31210
|
-
}
|
|
31211
|
-
function mix(rgb1, rgb2, amount) {
|
|
31212
|
-
var p = amount / 100;
|
|
31213
|
-
var rgb = {
|
|
31214
|
-
r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
|
31215
|
-
g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
|
31216
|
-
b: (rgb2.b - rgb1.b) * p + rgb1.b
|
|
31217
|
-
};
|
|
31218
|
-
return rgb;
|
|
31219
|
-
}
|
|
31220
|
-
function getHue(hsv, i, light) {
|
|
31221
|
-
var hue;
|
|
31222
|
-
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
|
|
31223
|
-
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
|
|
31224
|
-
} else {
|
|
31225
|
-
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
|
|
31226
|
-
}
|
|
31227
|
-
if (hue < 0) {
|
|
31228
|
-
hue += 360;
|
|
31229
|
-
} else if (hue >= 360) {
|
|
31230
|
-
hue -= 360;
|
|
31231
|
-
}
|
|
31232
|
-
return hue;
|
|
31233
|
-
}
|
|
31234
|
-
function getSaturation(hsv, i, light) {
|
|
31235
|
-
if (hsv.h === 0 && hsv.s === 0) {
|
|
31236
|
-
return hsv.s;
|
|
31237
|
-
}
|
|
31238
|
-
var saturation;
|
|
31239
|
-
if (light) {
|
|
31240
|
-
saturation = hsv.s - saturationStep * i;
|
|
31241
|
-
} else if (i === darkColorCount) {
|
|
31242
|
-
saturation = hsv.s + saturationStep;
|
|
31243
|
-
} else {
|
|
31244
|
-
saturation = hsv.s + saturationStep2 * i;
|
|
31245
|
-
}
|
|
31246
|
-
if (saturation > 1) {
|
|
31247
|
-
saturation = 1;
|
|
31248
|
-
}
|
|
31249
|
-
if (light && i === lightColorCount && saturation > 0.1) {
|
|
31250
|
-
saturation = 0.1;
|
|
31251
|
-
}
|
|
31252
|
-
if (saturation < 0.06) {
|
|
31253
|
-
saturation = 0.06;
|
|
31254
|
-
}
|
|
31255
|
-
return Number(saturation.toFixed(2));
|
|
31256
|
-
}
|
|
31257
|
-
function getValue(hsv, i, light) {
|
|
31258
|
-
var value;
|
|
31259
|
-
if (light) {
|
|
31260
|
-
value = hsv.v + brightnessStep1 * i;
|
|
31261
|
-
} else {
|
|
31262
|
-
value = hsv.v - brightnessStep2 * i;
|
|
31263
|
-
}
|
|
31264
|
-
if (value > 1) {
|
|
31265
|
-
value = 1;
|
|
31266
|
-
}
|
|
31267
|
-
return Number(value.toFixed(2));
|
|
31268
|
-
}
|
|
31269
|
-
function generate$1(color) {
|
|
31270
|
-
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
31271
|
-
var patterns = [];
|
|
31272
|
-
var pColor = inputToRGB(color);
|
|
31273
|
-
for (var i = lightColorCount; i > 0; i -= 1) {
|
|
31274
|
-
var hsv = toHsv(pColor);
|
|
31275
|
-
var colorString = toHex(inputToRGB({
|
|
31276
|
-
h: getHue(hsv, i, true),
|
|
31277
|
-
s: getSaturation(hsv, i, true),
|
|
31278
|
-
v: getValue(hsv, i, true)
|
|
31279
|
-
}));
|
|
31280
|
-
patterns.push(colorString);
|
|
31281
|
-
}
|
|
31282
|
-
patterns.push(toHex(pColor));
|
|
31283
|
-
for (var _i = 1; _i <= darkColorCount; _i += 1) {
|
|
31284
|
-
var _hsv = toHsv(pColor);
|
|
31285
|
-
var _colorString = toHex(inputToRGB({
|
|
31286
|
-
h: getHue(_hsv, _i),
|
|
31287
|
-
s: getSaturation(_hsv, _i),
|
|
31288
|
-
v: getValue(_hsv, _i)
|
|
31289
|
-
}));
|
|
31290
|
-
patterns.push(_colorString);
|
|
31291
|
-
}
|
|
31292
|
-
if (opts.theme === "dark") {
|
|
31293
|
-
return darkColorMap.map(function(_ref3) {
|
|
31294
|
-
var index = _ref3.index, opacity = _ref3.opacity;
|
|
31295
|
-
var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || "#141414"), inputToRGB(patterns[index]), opacity * 100));
|
|
31296
|
-
return darkColorString;
|
|
31297
|
-
});
|
|
31298
|
-
}
|
|
31299
|
-
return patterns;
|
|
31300
|
-
}
|
|
31301
|
-
var presetPrimaryColors = {
|
|
31302
|
-
red: "#F5222D",
|
|
31303
|
-
volcano: "#FA541C",
|
|
31304
|
-
orange: "#FA8C16",
|
|
31305
|
-
gold: "#FAAD14",
|
|
31306
|
-
yellow: "#FADB14",
|
|
31307
|
-
lime: "#A0D911",
|
|
31308
|
-
green: "#52C41A",
|
|
31309
|
-
cyan: "#13C2C2",
|
|
31310
|
-
blue: "#1890FF",
|
|
31311
|
-
geekblue: "#2F54EB",
|
|
31312
|
-
purple: "#722ED1",
|
|
31313
|
-
magenta: "#EB2F96",
|
|
31314
|
-
grey: "#666666"
|
|
31315
|
-
};
|
|
31316
|
-
var presetPalettes = {};
|
|
31317
|
-
var presetDarkPalettes = {};
|
|
31318
|
-
Object.keys(presetPrimaryColors).forEach(function(key) {
|
|
31319
|
-
presetPalettes[key] = generate$1(presetPrimaryColors[key]);
|
|
31320
|
-
presetPalettes[key].primary = presetPalettes[key][5];
|
|
31321
|
-
presetDarkPalettes[key] = generate$1(presetPrimaryColors[key], {
|
|
31322
|
-
theme: "dark",
|
|
31323
|
-
backgroundColor: "#141414"
|
|
31324
|
-
});
|
|
31325
|
-
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
31326
|
-
});
|
|
31327
|
-
var containers = [];
|
|
31328
|
-
var styleElements = [];
|
|
31329
|
-
var usage = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
31330
|
-
function createStyleElement() {
|
|
31331
|
-
var styleElement = document.createElement("style");
|
|
31332
|
-
styleElement.setAttribute("type", "text/css");
|
|
31333
|
-
return styleElement;
|
|
31334
|
-
}
|
|
31335
|
-
function insertCss(css, options) {
|
|
31336
|
-
options = options || {};
|
|
31337
|
-
if (css === void 0) {
|
|
31338
|
-
throw new Error(usage);
|
|
31339
|
-
}
|
|
31340
|
-
var position = options.prepend === true ? "prepend" : "append";
|
|
31341
|
-
var container = options.container !== void 0 ? options.container : document.querySelector("head");
|
|
31342
|
-
var containerId = containers.indexOf(container);
|
|
31343
|
-
if (containerId === -1) {
|
|
31344
|
-
containerId = containers.push(container) - 1;
|
|
31345
|
-
styleElements[containerId] = {};
|
|
31346
|
-
}
|
|
31347
|
-
var styleElement;
|
|
31348
|
-
if (styleElements[containerId] !== void 0 && styleElements[containerId][position] !== void 0) {
|
|
31349
|
-
styleElement = styleElements[containerId][position];
|
|
31350
|
-
} else {
|
|
31351
|
-
styleElement = styleElements[containerId][position] = createStyleElement();
|
|
31352
|
-
if (position === "prepend") {
|
|
31353
|
-
container.insertBefore(styleElement, container.childNodes[0]);
|
|
31354
|
-
} else {
|
|
31355
|
-
container.appendChild(styleElement);
|
|
31356
|
-
}
|
|
31357
|
-
}
|
|
31358
|
-
if (css.charCodeAt(0) === 65279) {
|
|
31359
|
-
css = css.substr(1, css.length);
|
|
31360
|
-
}
|
|
31361
|
-
if (styleElement.styleSheet) {
|
|
31362
|
-
styleElement.styleSheet.cssText += css;
|
|
31363
|
-
} else {
|
|
31364
|
-
styleElement.textContent += css;
|
|
31365
|
-
}
|
|
31366
|
-
return styleElement;
|
|
31367
|
-
}
|
|
31368
|
-
function _objectSpread$2(target) {
|
|
31369
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31370
|
-
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
31371
|
-
var ownKeys = Object.keys(source);
|
|
31372
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
31373
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
31374
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31375
|
-
}));
|
|
31376
|
-
}
|
|
31377
|
-
ownKeys.forEach(function(key) {
|
|
31378
|
-
_defineProperty$2(target, key, source[key]);
|
|
31379
|
-
});
|
|
31380
|
-
}
|
|
31381
|
-
return target;
|
|
31382
|
-
}
|
|
31383
|
-
function _defineProperty$2(obj, key, value) {
|
|
31384
|
-
if (key in obj) {
|
|
31385
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
31386
|
-
} else {
|
|
31387
|
-
obj[key] = value;
|
|
31388
|
-
}
|
|
31389
|
-
return obj;
|
|
31390
|
-
}
|
|
31391
|
-
function warn(valid, message2) {
|
|
31392
|
-
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
31393
|
-
console.error("Warning: ".concat(message2));
|
|
31394
|
-
}
|
|
31395
|
-
}
|
|
31396
|
-
function warning(valid, message2) {
|
|
31397
|
-
warn(valid, "[@ant-design/icons-vue] ".concat(message2));
|
|
31398
|
-
}
|
|
31399
|
-
function isIconDefinition(target) {
|
|
31400
|
-
return typeof target === "object" && typeof target.name === "string" && typeof target.theme === "string" && (typeof target.icon === "object" || typeof target.icon === "function");
|
|
31401
|
-
}
|
|
31402
|
-
function generate(node, key, rootProps) {
|
|
31403
|
-
if (!rootProps) {
|
|
31404
|
-
return h(node.tag, _objectSpread$2({
|
|
31405
|
-
key
|
|
31406
|
-
}, node.attrs), (node.children || []).map(function(child, index) {
|
|
31407
|
-
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
31408
|
-
}));
|
|
31409
|
-
}
|
|
31410
|
-
return h(node.tag, _objectSpread$2({
|
|
31411
|
-
key
|
|
31412
|
-
}, rootProps, node.attrs), (node.children || []).map(function(child, index) {
|
|
31413
|
-
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
31414
|
-
}));
|
|
31415
|
-
}
|
|
31416
|
-
function getSecondaryColor(primaryColor) {
|
|
31417
|
-
return generate$1(primaryColor)[0];
|
|
31418
|
-
}
|
|
31419
|
-
function normalizeTwoToneColors(twoToneColor) {
|
|
31420
|
-
if (!twoToneColor) {
|
|
31421
|
-
return [];
|
|
31422
|
-
}
|
|
31423
|
-
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
31424
|
-
}
|
|
31425
|
-
var svgBaseProps = {
|
|
31426
|
-
width: "1em",
|
|
31427
|
-
height: "1em",
|
|
31428
|
-
fill: "currentColor",
|
|
31429
|
-
"aria-hidden": "true",
|
|
31430
|
-
focusable: "false"
|
|
31431
|
-
};
|
|
31432
|
-
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";
|
|
31433
|
-
var cssInjectedFlag = false;
|
|
31434
|
-
var useInsertStyles = function useInsertStyles2() {
|
|
31435
|
-
var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
|
|
31436
|
-
nextTick(function() {
|
|
31437
|
-
if (!cssInjectedFlag) {
|
|
31438
|
-
if (typeof window !== "undefined" && window.document && window.document.documentElement) {
|
|
31439
|
-
insertCss(styleStr, {
|
|
31440
|
-
prepend: true
|
|
31441
|
-
});
|
|
31442
|
-
}
|
|
31443
|
-
cssInjectedFlag = true;
|
|
31444
|
-
}
|
|
31445
|
-
});
|
|
31446
|
-
};
|
|
31447
|
-
var _excluded$1 = ["icon", "primaryColor", "secondaryColor"];
|
|
31448
|
-
function _objectWithoutProperties$1(source, excluded) {
|
|
31449
|
-
if (source == null) return {};
|
|
31450
|
-
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
31451
|
-
var key, i;
|
|
31452
|
-
if (Object.getOwnPropertySymbols) {
|
|
31453
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
31454
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
31455
|
-
key = sourceSymbolKeys[i];
|
|
31456
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
31457
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
31458
|
-
target[key] = source[key];
|
|
31459
|
-
}
|
|
31460
|
-
}
|
|
31461
|
-
return target;
|
|
31462
|
-
}
|
|
31463
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
31464
|
-
if (source == null) return {};
|
|
31465
|
-
var target = {};
|
|
31466
|
-
var sourceKeys = Object.keys(source);
|
|
31467
|
-
var key, i;
|
|
31468
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
31469
|
-
key = sourceKeys[i];
|
|
31470
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
31471
|
-
target[key] = source[key];
|
|
31472
|
-
}
|
|
31473
|
-
return target;
|
|
31474
|
-
}
|
|
31475
|
-
function _objectSpread$1(target) {
|
|
31476
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31477
|
-
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
31478
|
-
var ownKeys = Object.keys(source);
|
|
31479
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
31480
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
31481
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31482
|
-
}));
|
|
31483
|
-
}
|
|
31484
|
-
ownKeys.forEach(function(key) {
|
|
31485
|
-
_defineProperty$1(target, key, source[key]);
|
|
31486
|
-
});
|
|
31487
|
-
}
|
|
31488
|
-
return target;
|
|
31489
|
-
}
|
|
31490
|
-
function _defineProperty$1(obj, key, value) {
|
|
31491
|
-
if (key in obj) {
|
|
31492
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
31493
|
-
} else {
|
|
31494
|
-
obj[key] = value;
|
|
31495
|
-
}
|
|
31496
|
-
return obj;
|
|
31497
|
-
}
|
|
31498
|
-
var twoToneColorPalette = {
|
|
31499
|
-
primaryColor: "#333",
|
|
31500
|
-
secondaryColor: "#E6E6E6",
|
|
31501
|
-
calculated: false
|
|
31502
|
-
};
|
|
31503
|
-
function setTwoToneColors(_ref) {
|
|
31504
|
-
var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
|
|
31505
|
-
twoToneColorPalette.primaryColor = primaryColor;
|
|
31506
|
-
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
|
31507
|
-
twoToneColorPalette.calculated = !!secondaryColor;
|
|
31508
|
-
}
|
|
31509
|
-
function getTwoToneColors() {
|
|
31510
|
-
return _objectSpread$1({}, twoToneColorPalette);
|
|
31511
|
-
}
|
|
31512
|
-
var IconBase = function IconBase2(props, context) {
|
|
31513
|
-
var _props$context$attrs = _objectSpread$1({}, 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);
|
|
31514
|
-
var colors = twoToneColorPalette;
|
|
31515
|
-
if (primaryColor) {
|
|
31516
|
-
colors = {
|
|
31517
|
-
primaryColor,
|
|
31518
|
-
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
31519
|
-
};
|
|
31520
|
-
}
|
|
31521
|
-
useInsertStyles();
|
|
31522
|
-
warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
|
31523
|
-
if (!isIconDefinition(icon)) {
|
|
31524
|
-
return null;
|
|
31525
|
-
}
|
|
31526
|
-
var target = icon;
|
|
31527
|
-
if (target && typeof target.icon === "function") {
|
|
31528
|
-
target = _objectSpread$1({}, target, {
|
|
31529
|
-
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
31530
|
-
});
|
|
31531
|
-
}
|
|
31532
|
-
return generate(target.icon, "svg-".concat(target.name), _objectSpread$1({}, restProps, {
|
|
31533
|
-
"data-icon": target.name,
|
|
31534
|
-
width: "1em",
|
|
31535
|
-
height: "1em",
|
|
31536
|
-
fill: "currentColor",
|
|
31537
|
-
"aria-hidden": "true"
|
|
31538
|
-
}));
|
|
31539
|
-
};
|
|
31540
|
-
IconBase.props = {
|
|
31541
|
-
icon: Object,
|
|
31542
|
-
primaryColor: String,
|
|
31543
|
-
secondaryColor: String,
|
|
31544
|
-
focusable: String
|
|
31545
|
-
};
|
|
31546
|
-
IconBase.inheritAttrs = false;
|
|
31547
|
-
IconBase.displayName = "IconBase";
|
|
31548
|
-
IconBase.getTwoToneColors = getTwoToneColors;
|
|
31549
|
-
IconBase.setTwoToneColors = setTwoToneColors;
|
|
31550
|
-
function _slicedToArray$1(arr, i) {
|
|
31551
|
-
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
|
|
31552
|
-
}
|
|
31553
|
-
function _nonIterableRest$1() {
|
|
31554
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31555
|
-
}
|
|
31556
|
-
function _unsupportedIterableToArray$1(o, minLen) {
|
|
31557
|
-
if (!o) return;
|
|
31558
|
-
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
31559
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
31560
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
31561
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
31562
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
31563
|
-
}
|
|
31564
|
-
function _arrayLikeToArray$1(arr, len) {
|
|
31565
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
31566
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
31567
|
-
arr2[i] = arr[i];
|
|
31568
|
-
}
|
|
31569
|
-
return arr2;
|
|
31570
|
-
}
|
|
31571
|
-
function _iterableToArrayLimit$1(arr, i) {
|
|
31572
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31573
|
-
if (_i == null) return;
|
|
31574
|
-
var _arr = [];
|
|
31575
|
-
var _n = true;
|
|
31576
|
-
var _d = false;
|
|
31577
|
-
var _s, _e;
|
|
31578
|
-
try {
|
|
31579
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
31580
|
-
_arr.push(_s.value);
|
|
31581
|
-
if (i && _arr.length === i) break;
|
|
31582
|
-
}
|
|
31583
|
-
} catch (err) {
|
|
31584
|
-
_d = true;
|
|
31585
|
-
_e = err;
|
|
31586
|
-
} finally {
|
|
31587
|
-
try {
|
|
31588
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
31589
|
-
} finally {
|
|
31590
|
-
if (_d) throw _e;
|
|
31591
|
-
}
|
|
31592
|
-
}
|
|
31593
|
-
return _arr;
|
|
31594
|
-
}
|
|
31595
|
-
function _arrayWithHoles$1(arr) {
|
|
31596
|
-
if (Array.isArray(arr)) return arr;
|
|
31597
|
-
}
|
|
31598
|
-
function setTwoToneColor(twoToneColor) {
|
|
31599
|
-
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray$1(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
31600
|
-
return IconBase.setTwoToneColors({
|
|
31601
|
-
primaryColor,
|
|
31602
|
-
secondaryColor
|
|
31603
|
-
});
|
|
31604
|
-
}
|
|
31605
|
-
function getTwoToneColor() {
|
|
31606
|
-
var colors = IconBase.getTwoToneColors();
|
|
31607
|
-
if (!colors.calculated) {
|
|
31608
|
-
return colors.primaryColor;
|
|
31609
|
-
}
|
|
31610
|
-
return [colors.primaryColor, colors.secondaryColor];
|
|
31611
|
-
}
|
|
31612
|
-
var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
31613
|
-
function _slicedToArray(arr, i) {
|
|
31614
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
31615
|
-
}
|
|
31616
|
-
function _nonIterableRest() {
|
|
31617
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31618
|
-
}
|
|
31619
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
31620
|
-
if (!o) return;
|
|
31621
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
31622
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
31623
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
31624
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
31625
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
31626
|
-
}
|
|
31627
|
-
function _arrayLikeToArray(arr, len) {
|
|
31628
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
31629
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
31630
|
-
arr2[i] = arr[i];
|
|
31631
|
-
}
|
|
31632
|
-
return arr2;
|
|
31633
|
-
}
|
|
31634
|
-
function _iterableToArrayLimit(arr, i) {
|
|
31635
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31636
|
-
if (_i == null) return;
|
|
31637
|
-
var _arr = [];
|
|
31638
|
-
var _n = true;
|
|
31639
|
-
var _d = false;
|
|
31640
|
-
var _s, _e;
|
|
31641
|
-
try {
|
|
31642
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
31643
|
-
_arr.push(_s.value);
|
|
31644
|
-
if (i && _arr.length === i) break;
|
|
31645
|
-
}
|
|
31646
|
-
} catch (err) {
|
|
31647
|
-
_d = true;
|
|
31648
|
-
_e = err;
|
|
31649
|
-
} finally {
|
|
31650
|
-
try {
|
|
31651
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
31652
|
-
} finally {
|
|
31653
|
-
if (_d) throw _e;
|
|
31654
|
-
}
|
|
31655
|
-
}
|
|
31656
|
-
return _arr;
|
|
31657
|
-
}
|
|
31658
|
-
function _arrayWithHoles(arr) {
|
|
31659
|
-
if (Array.isArray(arr)) return arr;
|
|
31660
|
-
}
|
|
31661
|
-
function _objectSpread(target) {
|
|
31662
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31663
|
-
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
31664
|
-
var ownKeys = Object.keys(source);
|
|
31665
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
31666
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
31667
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31668
|
-
}));
|
|
31669
|
-
}
|
|
31670
|
-
ownKeys.forEach(function(key) {
|
|
31671
|
-
_defineProperty(target, key, source[key]);
|
|
31672
|
-
});
|
|
31673
|
-
}
|
|
31674
|
-
return target;
|
|
31675
|
-
}
|
|
31676
|
-
function _defineProperty(obj, key, value) {
|
|
31677
|
-
if (key in obj) {
|
|
31678
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
31679
|
-
} else {
|
|
31680
|
-
obj[key] = value;
|
|
31681
|
-
}
|
|
31682
|
-
return obj;
|
|
31683
|
-
}
|
|
31684
|
-
function _objectWithoutProperties(source, excluded) {
|
|
31685
|
-
if (source == null) return {};
|
|
31686
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
31687
|
-
var key, i;
|
|
31688
|
-
if (Object.getOwnPropertySymbols) {
|
|
31689
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
31690
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
31691
|
-
key = sourceSymbolKeys[i];
|
|
31692
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
31693
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
31694
|
-
target[key] = source[key];
|
|
31695
|
-
}
|
|
31696
|
-
}
|
|
31697
|
-
return target;
|
|
31698
|
-
}
|
|
31699
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
31700
|
-
if (source == null) return {};
|
|
31701
|
-
var target = {};
|
|
31702
|
-
var sourceKeys = Object.keys(source);
|
|
31703
|
-
var key, i;
|
|
31704
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
31705
|
-
key = sourceKeys[i];
|
|
31706
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
31707
|
-
target[key] = source[key];
|
|
31708
|
-
}
|
|
31709
|
-
return target;
|
|
31710
|
-
}
|
|
31711
|
-
setTwoToneColor("#1890ff");
|
|
31712
|
-
var Icon = function Icon2(props, context) {
|
|
31713
|
-
var _classObj;
|
|
31714
|
-
var _props$context$attrs = _objectSpread({}, 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);
|
|
31715
|
-
var classObj = (_classObj = {
|
|
31716
|
-
anticon: true
|
|
31717
|
-
}, _defineProperty(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty(_classObj, cls, cls), _classObj);
|
|
31718
|
-
var svgClassString = spin === "" || !!spin || icon.name === "loading" ? "anticon-spin" : "";
|
|
31719
|
-
var iconTabIndex = tabindex;
|
|
31720
|
-
if (iconTabIndex === void 0 && onClick) {
|
|
31721
|
-
iconTabIndex = -1;
|
|
31722
|
-
restProps.tabindex = iconTabIndex;
|
|
31723
|
-
}
|
|
31724
|
-
var svgStyle = rotate ? {
|
|
31725
|
-
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
31726
|
-
transform: "rotate(".concat(rotate, "deg)")
|
|
31727
|
-
} : void 0;
|
|
31728
|
-
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
31729
|
-
return createVNode("span", _objectSpread({
|
|
31730
|
-
"role": "img",
|
|
31731
|
-
"aria-label": icon.name
|
|
31732
|
-
}, restProps, {
|
|
31733
|
-
"onClick": onClick,
|
|
31734
|
-
"class": classObj
|
|
31735
|
-
}), [createVNode(IconBase, {
|
|
31736
|
-
"class": svgClassString,
|
|
31737
|
-
"icon": icon,
|
|
31738
|
-
"primaryColor": primaryColor,
|
|
31739
|
-
"secondaryColor": secondaryColor,
|
|
31740
|
-
"style": svgStyle
|
|
31741
|
-
}, null)]);
|
|
31742
|
-
};
|
|
31743
|
-
Icon.props = {
|
|
31744
|
-
spin: Boolean,
|
|
31745
|
-
rotate: Number,
|
|
31746
|
-
icon: Object,
|
|
31747
|
-
twoToneColor: String
|
|
31748
|
-
};
|
|
31749
|
-
Icon.displayName = "AntdIcon";
|
|
31750
|
-
Icon.inheritAttrs = false;
|
|
31751
|
-
Icon.getTwoToneColor = getTwoToneColor;
|
|
31752
|
-
Icon.setTwoToneColor = setTwoToneColor;
|
|
31753
30723
|
var cryptoJs$1 = { exports: {} };
|
|
31754
30724
|
function commonjsRequire(path) {
|
|
31755
30725
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -38464,7 +37434,7 @@ function getPreviewUrl(url, name, callback) {
|
|
|
38464
37434
|
if (callback && typeof callback === "function") {
|
|
38465
37435
|
return callback?.(url);
|
|
38466
37436
|
}
|
|
38467
|
-
return `${
|
|
37437
|
+
return `${window.NocodeAdapter.minioPath}${!url.startsWith("/") ? `/${url}` : url}`;
|
|
38468
37438
|
} else if (name) {
|
|
38469
37439
|
return createWhiteImageWithText(name, 240, 136);
|
|
38470
37440
|
}
|
|
@@ -38752,7 +37722,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
38752
37722
|
data.ctx.clearRect(0, 0, canvasWidth, canvasHeight);
|
|
38753
37723
|
data.points = [];
|
|
38754
37724
|
}
|
|
38755
|
-
function
|
|
37725
|
+
function getValue() {
|
|
38756
37726
|
if (!data.points.length) {
|
|
38757
37727
|
return void 0;
|
|
38758
37728
|
}
|
|
@@ -38783,7 +37753,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
38783
37753
|
return "30px";
|
|
38784
37754
|
};
|
|
38785
37755
|
__expose({
|
|
38786
|
-
getValue
|
|
37756
|
+
getValue,
|
|
38787
37757
|
setValue,
|
|
38788
37758
|
clear
|
|
38789
37759
|
});
|
|
@@ -42909,34 +41879,30 @@ export {
|
|
|
42909
41879
|
BomModal as B,
|
|
42910
41880
|
FormFieldSelect as F,
|
|
42911
41881
|
GctDialog as G,
|
|
42912
|
-
Icon as I,
|
|
42913
41882
|
ModalWrapper as M,
|
|
42914
41883
|
ParseRuleModal as P,
|
|
42915
41884
|
SignMode as S,
|
|
42916
41885
|
Uploader as U,
|
|
42917
|
-
|
|
41886
|
+
useWebUpload as a,
|
|
42918
41887
|
buildUUID as b,
|
|
42919
|
-
|
|
41888
|
+
useEventListener as c,
|
|
42920
41889
|
defaultWindow as d,
|
|
42921
|
-
|
|
42922
|
-
|
|
41890
|
+
unrefElement as e,
|
|
41891
|
+
useWindowSize as f,
|
|
42923
41892
|
getPreviewUrl as g,
|
|
42924
|
-
|
|
41893
|
+
onClickOutside as h,
|
|
42925
41894
|
initWebPaasUploadApis as i,
|
|
42926
|
-
|
|
42927
|
-
|
|
42928
|
-
|
|
42929
|
-
ScanModal$
|
|
42930
|
-
ScanModal
|
|
41895
|
+
initWebNocodeAdapter as j,
|
|
41896
|
+
SignSwitcher as k,
|
|
41897
|
+
ScanModal$2 as l,
|
|
41898
|
+
ScanModal$1 as m,
|
|
41899
|
+
ScanModal as n,
|
|
42931
41900
|
openSignModal as o,
|
|
42932
|
-
|
|
42933
|
-
|
|
42934
|
-
|
|
42935
|
-
|
|
42936
|
-
|
|
41901
|
+
StocktakeWebRender as p,
|
|
41902
|
+
initRenderToAdapter as q,
|
|
41903
|
+
commonjsRequire as r,
|
|
41904
|
+
useIntersectionObserver as s,
|
|
41905
|
+
cacheAdapter as t,
|
|
42937
41906
|
uuid2 as u,
|
|
42938
|
-
|
|
42939
|
-
warning as w,
|
|
42940
|
-
cacheAdapter as x,
|
|
42941
|
-
require$$0 as y
|
|
41907
|
+
require$$0 as v
|
|
42942
41908
|
};
|