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