@szjy/workflow 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +127748 -0
- package/dist/index.umd.js +4129 -95
- package/dist/packages/components/Hello/component.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/index.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementAsyncContinuations.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementCandidateStarter.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementConditional.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementDocumentations.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementExtensionProperties.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementFieldInjection.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementFormType.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementGenerations.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementHOC.d.ts +12 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementImplementation.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementJobExecution.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementListeners.vue.d.ts +14 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementMultiInstance.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementStartInitiator.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementUserAssignment.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/ui/FieldList.vue.d.ts +36 -0
- package/dist/packages/components/Workflow/PropertyPanel/ui/HasEdit.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/ui/JsonEditor.vue.d.ts +14 -0
- package/dist/packages/components/Workflow/Toolbar.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/form-permissions/FormPermissionProperty.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/form-permissions/util.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/util.d.ts +10 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/CounterSignProperty.vue.d.ts +15 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/GatewayLineProperty.vue.d.ts +35 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/OrgTitleConfigProperty.vue.d.ts +24 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/UserConfigProperty.vue.d.ts +35 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/WorkflowStatusProperty.vue.d.ts +15 -0
- package/dist/packages/components/Workflow/biz-logic/leave/constant.d.ts +110 -0
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/index.d.ts +93 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/types.d.ts +42 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/approvalUtil.d.ts +6 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/counterSignUtil.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/findElementUtil.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/gatewayUtil.d.ts +6 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/orgUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/titleUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/userUtil.d.ts +15 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/workStatusUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/bpmn-icons/getIconType.d.ts +2 -0
- package/dist/packages/components/Workflow/bpmn-icons/index.d.ts +113 -0
- package/dist/packages/components/Workflow/component.d.ts +2 -0
- package/dist/packages/components/Workflow/components/biz/ConditionValueCreator.vue.d.ts +28 -0
- package/dist/packages/components/Workflow/components/biz/CounterSignSelector.vue.d.ts +49 -0
- package/dist/packages/components/Workflow/components/biz/GatewayConditionSelector.vue.d.ts +39 -0
- package/dist/packages/components/Workflow/components/biz/OrgTitleSelector.vue.d.ts +67 -0
- package/dist/packages/components/Workflow/components/biz/UserSelector.vue.d.ts +39 -0
- package/dist/packages/components/Workflow/components/common/BpmnIcon.vue.d.ts +23 -0
- package/dist/packages/components/Workflow/components/common/CollapseTitle.vue.d.ts +14 -0
- package/dist/packages/components/Workflow/components/common/EditItem.vue.d.ts +39 -0
- package/dist/packages/components/Workflow/contants.d.ts +31 -0
- package/dist/packages/components/Workflow/customTranslate/index.d.ts +1 -0
- package/dist/packages/components/Workflow/exposeApi.d.ts +14 -0
- package/dist/packages/components/Workflow/index.vue.d.ts +13 -0
- package/dist/packages/components/Workflow/main.vue.d.ts +25 -0
- package/dist/packages/components/Workflow/palette/CustomPalette.d.ts +13 -0
- package/dist/packages/components/Workflow/palette/CustomPaletteProvider.d.ts +103 -0
- package/dist/packages/components/Workflow/palette/index.d.ts +11 -0
- package/dist/packages/components/Workflow/palette/replaceDefault.d.ts +1 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/FieldInjectionPropertiesUtil.d.ts +10 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/asynchronousContinuationsUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/candidateStarter.d.ts +6 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/conditionUtil.d.ts +27 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/documentationUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/executionListenersUtil.d.ts +14 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/extensionPropertiesUtil.d.ts +4 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/formTypeUtil.d.ts +4 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/idUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/implementationUtil.d.ts +12 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/initiatorUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/jobExecutionUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/listenersUtil.d.ts +16 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/multiInstanceUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/nameUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/processUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/scriptUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/userAssignmentUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/instance.d.ts +1 -0
- package/dist/packages/components/Workflow/store/modeler.d.ts +69 -0
- package/dist/packages/components/Workflow/store/permission/constants.d.ts +41 -0
- package/dist/packages/components/Workflow/store/permission/index.d.ts +27 -0
- package/dist/packages/components/Workflow/store/useElementUpdateListener.d.ts +1 -0
- package/dist/packages/components/Workflow/types/utils.d.ts +5 -0
- package/dist/packages/components/Workflow/utils/BpmnAsyncElement.d.ts +4 -0
- package/dist/packages/components/Workflow/utils/BpmnEventDefinitionUtil.d.ts +29 -0
- package/dist/packages/components/Workflow/utils/BpmnExtensionElementsUtil.d.ts +14 -0
- package/dist/packages/components/Workflow/utils/BpmnImplementationType.d.ts +27 -0
- package/dist/packages/components/Workflow/utils/BpmnValidator.d.ts +13 -0
- package/dist/packages/components/Workflow/utils/ElementUtil.d.ts +23 -0
- package/dist/packages/components/Workflow/utils/Logger.d.ts +13 -0
- package/dist/packages/components/Workflow/utils/common.d.ts +3 -0
- package/dist/packages/components/Workflow/utils/emitter.d.ts +8 -0
- package/dist/packages/components/Workflow/utils/parseBizString.d.ts +23 -0
- package/dist/packages/components/Workflow/xml.d.ts +1 -0
- package/dist/packages/components/components.d.ts +2 -0
- package/dist/packages/components/contants.d.ts +2 -0
- package/dist/packages/components/create.d.ts +13 -0
- package/dist/packages/components/installer.d.ts +2 -0
- package/dist/packages/i18n/en_US/configForm.d.ts +33 -0
- package/dist/packages/i18n/en_US/elements/events.d.ts +49 -0
- package/dist/packages/i18n/en_US/elements/gateway.d.ts +14 -0
- package/dist/packages/i18n/en_US/elements/other.d.ts +184 -0
- package/dist/packages/i18n/en_US/elements/tasks.d.ts +28 -0
- package/dist/packages/i18n/en_US/index.d.ts +394 -0
- package/dist/packages/i18n/en_US/lint.d.ts +5 -0
- package/dist/packages/i18n/en_US/panel.d.ts +88 -0
- package/dist/packages/i18n/en_US/toolbar.d.ts +28 -0
- package/dist/packages/i18n/index.d.ts +790 -0
- package/dist/packages/i18n/zh_CN/configForm.d.ts +33 -0
- package/dist/packages/i18n/zh_CN/elements/events.d.ts +49 -0
- package/dist/packages/i18n/zh_CN/elements/gateway.d.ts +14 -0
- package/dist/packages/i18n/zh_CN/elements/other.d.ts +184 -0
- package/dist/packages/i18n/zh_CN/elements/tasks.d.ts +28 -0
- package/dist/packages/i18n/zh_CN/index.d.ts +394 -0
- package/dist/packages/i18n/zh_CN/lint.d.ts +5 -0
- package/dist/packages/i18n/zh_CN/panel.d.ts +88 -0
- package/dist/packages/i18n/zh_CN/toolbar.d.ts +28 -0
- package/dist/style.css +1 -0
- package/dist/vanilla-picker-CWMPCyEj.mjs +539 -0
- package/package.json +24 -5
- package/dist/packages/components/index.d.ts +0 -3
@@ -0,0 +1,539 @@
|
|
1
|
+
/*!
|
2
|
+
* vanilla-picker v2.12.2
|
3
|
+
* https://vanilla-picker.js.org
|
4
|
+
*
|
5
|
+
* Copyright 2017-2023 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
6
|
+
* Released under the ISC license.
|
7
|
+
*/
|
8
|
+
var O = function(l, i) {
|
9
|
+
if (!(l instanceof i))
|
10
|
+
throw new TypeError("Cannot call a class as a function");
|
11
|
+
}, R = /* @__PURE__ */ function() {
|
12
|
+
function l(i, e) {
|
13
|
+
for (var t = 0; t < e.length; t++) {
|
14
|
+
var r = e[t];
|
15
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, r.key, r);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
return function(i, e, t) {
|
19
|
+
return e && l(i.prototype, e), t && l(i, t), i;
|
20
|
+
};
|
21
|
+
}(), y = /* @__PURE__ */ function() {
|
22
|
+
function l(i, e) {
|
23
|
+
var t = [], r = !0, n = !1, o = void 0;
|
24
|
+
try {
|
25
|
+
for (var c = i[Symbol.iterator](), a; !(r = (a = c.next()).done) && (t.push(a.value), !(e && t.length === e)); r = !0)
|
26
|
+
;
|
27
|
+
} catch (s) {
|
28
|
+
n = !0, o = s;
|
29
|
+
} finally {
|
30
|
+
try {
|
31
|
+
!r && c.return && c.return();
|
32
|
+
} finally {
|
33
|
+
if (n)
|
34
|
+
throw o;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
return t;
|
38
|
+
}
|
39
|
+
return function(i, e) {
|
40
|
+
if (Array.isArray(i))
|
41
|
+
return i;
|
42
|
+
if (Symbol.iterator in Object(i))
|
43
|
+
return l(i, e);
|
44
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
45
|
+
};
|
46
|
+
}();
|
47
|
+
String.prototype.startsWith = String.prototype.startsWith || function(l) {
|
48
|
+
return this.indexOf(l) === 0;
|
49
|
+
};
|
50
|
+
String.prototype.padStart = String.prototype.padStart || function(l, i) {
|
51
|
+
for (var e = this; e.length < l; )
|
52
|
+
e = i + e;
|
53
|
+
return e;
|
54
|
+
};
|
55
|
+
var N = { cb: "0f8ff", tqw: "aebd7", q: "-ffff", qmrn: "7fffd4", zr: "0ffff", bg: "5f5dc", bsq: "e4c4", bck: "---", nch: "ebcd", b: "--ff", bvt: "8a2be2", brwn: "a52a2a", brw: "deb887", ctb: "5f9ea0", hrt: "7fff-", chcT: "d2691e", cr: "7f50", rnw: "6495ed", crns: "8dc", crms: "dc143c", cn: "-ffff", Db: "--8b", Dcn: "-8b8b", Dgnr: "b8860b", Dgr: "a9a9a9", Dgrn: "-64-", Dkhk: "bdb76b", Dmgn: "8b-8b", Dvgr: "556b2f", Drng: "8c-", Drch: "9932cc", Dr: "8b--", Dsmn: "e9967a", Dsgr: "8fbc8f", DsTb: "483d8b", DsTg: "2f4f4f", Dtrq: "-ced1", Dvt: "94-d3", ppnk: "1493", pskb: "-bfff", mgr: "696969", grb: "1e90ff", rbrc: "b22222", rwht: "af0", stg: "228b22", chs: "-ff", gnsb: "dcdcdc", st: "8f8ff", g: "d7-", gnr: "daa520", gr: "808080", grn: "-8-0", grnw: "adff2f", hnw: "0fff0", htpn: "69b4", nnr: "cd5c5c", ng: "4b-82", vr: "0", khk: "0e68c", vnr: "e6e6fa", nrb: "0f5", wngr: "7cfc-", mnch: "acd", Lb: "add8e6", Lcr: "08080", Lcn: "e0ffff", Lgnr: "afad2", Lgr: "d3d3d3", Lgrn: "90ee90", Lpnk: "b6c1", Lsmn: "a07a", Lsgr: "20b2aa", Lskb: "87cefa", LsTg: "778899", Lstb: "b0c4de", Lw: "e0", m: "-ff-", mgrn: "32cd32", nn: "af0e6", mgnt: "-ff", mrn: "8--0", mqm: "66cdaa", mmb: "--cd", mmrc: "ba55d3", mmpr: "9370db", msg: "3cb371", mmsT: "7b68ee", "": "-fa9a", mtr: "48d1cc", mmvt: "c71585", mnLb: "191970", ntc: "5fffa", mstr: "e4e1", mccs: "e4b5", vjw: "dead", nv: "--80", c: "df5e6", v: "808-0", vrb: "6b8e23", rng: "a5-", rngr: "45-", rch: "da70d6", pgnr: "eee8aa", pgrn: "98fb98", ptrq: "afeeee", pvtr: "db7093", ppwh: "efd5", pchp: "dab9", pr: "cd853f", pnk: "c0cb", pm: "dda0dd", pwrb: "b0e0e6", prp: "8-080", cc: "663399", r: "--", sbr: "bc8f8f", rb: "4169e1", sbrw: "8b4513", smn: "a8072", nbr: "4a460", sgrn: "2e8b57", ssh: "5ee", snn: "a0522d", svr: "c0c0c0", skb: "87ceeb", sTb: "6a5acd", sTgr: "708090", snw: "afa", n: "-ff7f", stb: "4682b4", tn: "d2b48c", t: "-8080", thst: "d8bfd8", tmT: "6347", trqs: "40e0d0", vt: "ee82ee", whT: "5deb3", wht: "", hts: "5f5f5", w: "-", wgrn: "9acd32" };
|
56
|
+
function A(l) {
|
57
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, e = i > 0 ? l.toFixed(i).replace(/0+$/, "").replace(/\.$/, "") : l.toString();
|
58
|
+
return e || "0";
|
59
|
+
}
|
60
|
+
var z = function() {
|
61
|
+
function l(i, e, t, r) {
|
62
|
+
O(this, l);
|
63
|
+
var n = this;
|
64
|
+
function o(a) {
|
65
|
+
if (a.startsWith("hsl")) {
|
66
|
+
var s = a.match(/([\-\d\.e]+)/g).map(Number), p = y(s, 4), u = p[0], f = p[1], d = p[2], b = p[3];
|
67
|
+
b === void 0 && (b = 1), u /= 360, f /= 100, d /= 100, n.hsla = [u, f, d, b];
|
68
|
+
} else if (a.startsWith("rgb")) {
|
69
|
+
var m = a.match(/([\-\d\.e]+)/g).map(Number), h = y(m, 4), v = h[0], g = h[1], E = h[2], k = h[3];
|
70
|
+
k === void 0 && (k = 1), n.rgba = [v, g, E, k];
|
71
|
+
} else
|
72
|
+
a.startsWith("#") ? n.rgba = l.hexToRgb(a) : n.rgba = l.nameToRgb(a) || l.hexToRgb(a);
|
73
|
+
}
|
74
|
+
if (i !== void 0)
|
75
|
+
if (Array.isArray(i))
|
76
|
+
this.rgba = i;
|
77
|
+
else if (t === void 0) {
|
78
|
+
var c = i && "" + i;
|
79
|
+
c && o(c.toLowerCase());
|
80
|
+
} else
|
81
|
+
this.rgba = [i, e, t, r === void 0 ? 1 : r];
|
82
|
+
}
|
83
|
+
return R(l, [{
|
84
|
+
key: "printRGB",
|
85
|
+
value: function(e) {
|
86
|
+
var t = e ? this.rgba : this.rgba.slice(0, 3), r = t.map(function(n, o) {
|
87
|
+
return A(n, o === 3 ? 3 : 0);
|
88
|
+
});
|
89
|
+
return e ? "rgba(" + r + ")" : "rgb(" + r + ")";
|
90
|
+
}
|
91
|
+
}, {
|
92
|
+
key: "printHSL",
|
93
|
+
value: function(e) {
|
94
|
+
var t = [360, 100, 100, 1], r = ["", "%", "%", ""], n = e ? this.hsla : this.hsla.slice(0, 3), o = n.map(function(c, a) {
|
95
|
+
return A(c * t[a], a === 3 ? 3 : 1) + r[a];
|
96
|
+
});
|
97
|
+
return e ? "hsla(" + o + ")" : "hsl(" + o + ")";
|
98
|
+
}
|
99
|
+
}, {
|
100
|
+
key: "printHex",
|
101
|
+
value: function(e) {
|
102
|
+
var t = this.hex;
|
103
|
+
return e ? t : t.substring(0, 7);
|
104
|
+
}
|
105
|
+
}, {
|
106
|
+
key: "rgba",
|
107
|
+
get: function() {
|
108
|
+
if (this._rgba)
|
109
|
+
return this._rgba;
|
110
|
+
if (!this._hsla)
|
111
|
+
throw new Error("No color is set");
|
112
|
+
return this._rgba = l.hslToRgb(this._hsla);
|
113
|
+
},
|
114
|
+
set: function(e) {
|
115
|
+
e.length === 3 && (e[3] = 1), this._rgba = e, this._hsla = null;
|
116
|
+
}
|
117
|
+
}, {
|
118
|
+
key: "rgbString",
|
119
|
+
get: function() {
|
120
|
+
return this.printRGB();
|
121
|
+
}
|
122
|
+
}, {
|
123
|
+
key: "rgbaString",
|
124
|
+
get: function() {
|
125
|
+
return this.printRGB(!0);
|
126
|
+
}
|
127
|
+
}, {
|
128
|
+
key: "hsla",
|
129
|
+
get: function() {
|
130
|
+
if (this._hsla)
|
131
|
+
return this._hsla;
|
132
|
+
if (!this._rgba)
|
133
|
+
throw new Error("No color is set");
|
134
|
+
return this._hsla = l.rgbToHsl(this._rgba);
|
135
|
+
},
|
136
|
+
set: function(e) {
|
137
|
+
e.length === 3 && (e[3] = 1), this._hsla = e, this._rgba = null;
|
138
|
+
}
|
139
|
+
}, {
|
140
|
+
key: "hslString",
|
141
|
+
get: function() {
|
142
|
+
return this.printHSL();
|
143
|
+
}
|
144
|
+
}, {
|
145
|
+
key: "hslaString",
|
146
|
+
get: function() {
|
147
|
+
return this.printHSL(!0);
|
148
|
+
}
|
149
|
+
}, {
|
150
|
+
key: "hex",
|
151
|
+
get: function() {
|
152
|
+
var e = this.rgba, t = e.map(function(r, n) {
|
153
|
+
return n < 3 ? r.toString(16) : Math.round(r * 255).toString(16);
|
154
|
+
});
|
155
|
+
return "#" + t.map(function(r) {
|
156
|
+
return r.padStart(2, "0");
|
157
|
+
}).join("");
|
158
|
+
},
|
159
|
+
set: function(e) {
|
160
|
+
this.rgba = l.hexToRgb(e);
|
161
|
+
}
|
162
|
+
}], [{
|
163
|
+
key: "hexToRgb",
|
164
|
+
value: function(e) {
|
165
|
+
var t = (e.startsWith("#") ? e.slice(1) : e).replace(/^(\w{3})$/, "$1F").replace(/^(\w)(\w)(\w)(\w)$/, "$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/, "$1FF");
|
166
|
+
if (!t.match(/^([0-9a-fA-F]{8})$/))
|
167
|
+
throw new Error("Unknown hex color; " + e);
|
168
|
+
var r = t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(n) {
|
169
|
+
return parseInt(n, 16);
|
170
|
+
});
|
171
|
+
return r[3] = r[3] / 255, r;
|
172
|
+
}
|
173
|
+
}, {
|
174
|
+
key: "nameToRgb",
|
175
|
+
value: function(e) {
|
176
|
+
var t = e.toLowerCase().replace("at", "T").replace(/[aeiouyldf]/g, "").replace("ght", "L").replace("rk", "D").slice(-5, 4), r = N[t];
|
177
|
+
return r === void 0 ? r : l.hexToRgb(r.replace(/\-/g, "00").padStart(6, "f"));
|
178
|
+
}
|
179
|
+
}, {
|
180
|
+
key: "rgbToHsl",
|
181
|
+
value: function(e) {
|
182
|
+
var t = y(e, 4), r = t[0], n = t[1], o = t[2], c = t[3];
|
183
|
+
r /= 255, n /= 255, o /= 255;
|
184
|
+
var a = Math.max(r, n, o), s = Math.min(r, n, o), p = void 0, u = void 0, f = (a + s) / 2;
|
185
|
+
if (a === s)
|
186
|
+
p = u = 0;
|
187
|
+
else {
|
188
|
+
var d = a - s;
|
189
|
+
switch (u = f > 0.5 ? d / (2 - a - s) : d / (a + s), a) {
|
190
|
+
case r:
|
191
|
+
p = (n - o) / d + (n < o ? 6 : 0);
|
192
|
+
break;
|
193
|
+
case n:
|
194
|
+
p = (o - r) / d + 2;
|
195
|
+
break;
|
196
|
+
case o:
|
197
|
+
p = (r - n) / d + 4;
|
198
|
+
break;
|
199
|
+
}
|
200
|
+
p /= 6;
|
201
|
+
}
|
202
|
+
return [p, u, f, c];
|
203
|
+
}
|
204
|
+
}, {
|
205
|
+
key: "hslToRgb",
|
206
|
+
value: function(e) {
|
207
|
+
var t = y(e, 4), r = t[0], n = t[1], o = t[2], c = t[3], a = void 0, s = void 0, p = void 0;
|
208
|
+
if (n === 0)
|
209
|
+
a = s = p = o;
|
210
|
+
else {
|
211
|
+
var u = function(h, v, g) {
|
212
|
+
return g < 0 && (g += 1), g > 1 && (g -= 1), g < 0.16666666666666666 ? h + (v - h) * 6 * g : g < 0.5 ? v : g < 0.6666666666666666 ? h + (v - h) * (0.6666666666666666 - g) * 6 : h;
|
213
|
+
}, f = o < 0.5 ? o * (1 + n) : o + n - o * n, d = 2 * o - f;
|
214
|
+
a = u(d, f, r + 1 / 3), s = u(d, f, r), p = u(d, f, r - 1 / 3);
|
215
|
+
}
|
216
|
+
var b = [a * 255, s * 255, p * 255].map(Math.round);
|
217
|
+
return b[3] = c, b;
|
218
|
+
}
|
219
|
+
}]), l;
|
220
|
+
}(), F = function() {
|
221
|
+
function l() {
|
222
|
+
O(this, l), this._events = [];
|
223
|
+
}
|
224
|
+
return R(l, [{
|
225
|
+
key: "add",
|
226
|
+
value: function(e, t, r) {
|
227
|
+
e.addEventListener(t, r, !1), this._events.push({
|
228
|
+
target: e,
|
229
|
+
type: t,
|
230
|
+
handler: r
|
231
|
+
});
|
232
|
+
}
|
233
|
+
}, {
|
234
|
+
key: "remove",
|
235
|
+
value: function(e, t, r) {
|
236
|
+
this._events = this._events.filter(function(n) {
|
237
|
+
var o = !0;
|
238
|
+
return e && e !== n.target && (o = !1), t && t !== n.type && (o = !1), r && r !== n.handler && (o = !1), o && l._doRemove(n.target, n.type, n.handler), !o;
|
239
|
+
});
|
240
|
+
}
|
241
|
+
}, {
|
242
|
+
key: "destroy",
|
243
|
+
value: function() {
|
244
|
+
this._events.forEach(function(e) {
|
245
|
+
return l._doRemove(e.target, e.type, e.handler);
|
246
|
+
}), this._events = [];
|
247
|
+
}
|
248
|
+
}], [{
|
249
|
+
key: "_doRemove",
|
250
|
+
value: function(e, t, r) {
|
251
|
+
e.removeEventListener(t, r, !1);
|
252
|
+
}
|
253
|
+
}]), l;
|
254
|
+
}();
|
255
|
+
function U(l) {
|
256
|
+
var i = document.createElement("div");
|
257
|
+
return i.innerHTML = l, i.firstElementChild;
|
258
|
+
}
|
259
|
+
function L(l, i, e) {
|
260
|
+
var t = !1;
|
261
|
+
function r(a, s, p) {
|
262
|
+
return Math.max(s, Math.min(a, p));
|
263
|
+
}
|
264
|
+
function n(a, s, p) {
|
265
|
+
if (p && (t = !0), !!t) {
|
266
|
+
a.preventDefault();
|
267
|
+
var u = i.getBoundingClientRect(), f = u.width, d = u.height, b = s.clientX, m = s.clientY, h = r(b - u.left, 0, f), v = r(m - u.top, 0, d);
|
268
|
+
e(h / f, v / d);
|
269
|
+
}
|
270
|
+
}
|
271
|
+
function o(a, s) {
|
272
|
+
var p = a.buttons === void 0 ? a.which : a.buttons;
|
273
|
+
p === 1 ? n(a, a, s) : t = !1;
|
274
|
+
}
|
275
|
+
function c(a, s) {
|
276
|
+
a.touches.length === 1 ? n(a, a.touches[0], s) : t = !1;
|
277
|
+
}
|
278
|
+
l.add(i, "mousedown", function(a) {
|
279
|
+
o(a, !0);
|
280
|
+
}), l.add(i, "touchstart", function(a) {
|
281
|
+
c(a, !0);
|
282
|
+
}), l.add(window, "mousemove", o), l.add(i, "touchmove", c), l.add(window, "mouseup", function(a) {
|
283
|
+
t = !1;
|
284
|
+
}), l.add(i, "touchend", function(a) {
|
285
|
+
t = !1;
|
286
|
+
}), l.add(i, "touchcancel", function(a) {
|
287
|
+
t = !1;
|
288
|
+
});
|
289
|
+
}
|
290
|
+
var B = `linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
291
|
+
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`, G = 360, P = "keydown", x = "mousedown", T = "focusin";
|
292
|
+
function _(l, i) {
|
293
|
+
return (i || document).querySelector(l);
|
294
|
+
}
|
295
|
+
function M(l) {
|
296
|
+
l.preventDefault(), l.stopPropagation();
|
297
|
+
}
|
298
|
+
function H(l, i, e, t, r) {
|
299
|
+
l.add(i, P, function(n) {
|
300
|
+
e.indexOf(n.key) >= 0 && (r && M(n), t(n));
|
301
|
+
});
|
302
|
+
}
|
303
|
+
var W = function() {
|
304
|
+
function l(i) {
|
305
|
+
O(this, l), this.settings = {
|
306
|
+
popup: "right",
|
307
|
+
layout: "default",
|
308
|
+
alpha: !0,
|
309
|
+
editor: !0,
|
310
|
+
editorFormat: "hex",
|
311
|
+
cancelButton: !1,
|
312
|
+
defaultColor: "#0cf"
|
313
|
+
}, this._events = new F(), this.onChange = null, this.onDone = null, this.onOpen = null, this.onClose = null, this.setOptions(i);
|
314
|
+
}
|
315
|
+
return R(l, [{
|
316
|
+
key: "setOptions",
|
317
|
+
value: function(e) {
|
318
|
+
var t = this;
|
319
|
+
if (!e)
|
320
|
+
return;
|
321
|
+
var r = this.settings;
|
322
|
+
function n(s, p, u) {
|
323
|
+
for (var f in s)
|
324
|
+
u && u.indexOf(f) >= 0 || (p[f] = s[f]);
|
325
|
+
}
|
326
|
+
if (e instanceof HTMLElement)
|
327
|
+
r.parent = e;
|
328
|
+
else {
|
329
|
+
r.parent && e.parent && r.parent !== e.parent && (this._events.remove(r.parent), this._popupInited = !1), n(e, r), e.onChange && (this.onChange = e.onChange), e.onDone && (this.onDone = e.onDone), e.onOpen && (this.onOpen = e.onOpen), e.onClose && (this.onClose = e.onClose);
|
330
|
+
var o = e.color || e.colour;
|
331
|
+
o && this._setColor(o);
|
332
|
+
}
|
333
|
+
var c = r.parent;
|
334
|
+
if (c && r.popup && !this._popupInited) {
|
335
|
+
var a = function(p) {
|
336
|
+
return t.openHandler(p);
|
337
|
+
};
|
338
|
+
this._events.add(c, "click", a), H(this._events, c, [" ", "Spacebar", "Enter"], a), this._popupInited = !0;
|
339
|
+
} else
|
340
|
+
e.parent && !r.popup && this.show();
|
341
|
+
}
|
342
|
+
}, {
|
343
|
+
key: "openHandler",
|
344
|
+
value: function(e) {
|
345
|
+
if (this.show()) {
|
346
|
+
e && e.preventDefault(), this.settings.parent.style.pointerEvents = "none";
|
347
|
+
var t = e && e.type === P ? this._domEdit : this.domElement;
|
348
|
+
setTimeout(function() {
|
349
|
+
return t.focus();
|
350
|
+
}, 100), this.onOpen && this.onOpen(this.colour);
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}, {
|
354
|
+
key: "closeHandler",
|
355
|
+
value: function(e) {
|
356
|
+
var t = e && e.type, r = !1;
|
357
|
+
if (!e)
|
358
|
+
r = !0;
|
359
|
+
else if (t === x || t === T) {
|
360
|
+
var n = (this.__containedEvent || 0) + 100;
|
361
|
+
e.timeStamp > n && (r = !0);
|
362
|
+
} else
|
363
|
+
M(e), r = !0;
|
364
|
+
r && this.hide() && (this.settings.parent.style.pointerEvents = "", t !== x && this.settings.parent.focus(), this.onClose && this.onClose(this.colour));
|
365
|
+
}
|
366
|
+
}, {
|
367
|
+
key: "movePopup",
|
368
|
+
value: function(e, t) {
|
369
|
+
this.closeHandler(), this.setOptions(e), t && this.openHandler();
|
370
|
+
}
|
371
|
+
}, {
|
372
|
+
key: "setColor",
|
373
|
+
value: function(e, t) {
|
374
|
+
this._setColor(e, { silent: t });
|
375
|
+
}
|
376
|
+
}, {
|
377
|
+
key: "_setColor",
|
378
|
+
value: function(e, t) {
|
379
|
+
if (typeof e == "string" && (e = e.trim()), !!e) {
|
380
|
+
t = t || {};
|
381
|
+
var r = void 0;
|
382
|
+
try {
|
383
|
+
r = new z(e);
|
384
|
+
} catch (o) {
|
385
|
+
if (t.failSilently)
|
386
|
+
return;
|
387
|
+
throw o;
|
388
|
+
}
|
389
|
+
if (!this.settings.alpha) {
|
390
|
+
var n = r.hsla;
|
391
|
+
n[3] = 1, r.hsla = n;
|
392
|
+
}
|
393
|
+
this.colour = this.color = r, this._setHSLA(null, null, null, null, t);
|
394
|
+
}
|
395
|
+
}
|
396
|
+
}, {
|
397
|
+
key: "setColour",
|
398
|
+
value: function(e, t) {
|
399
|
+
this.setColor(e, t);
|
400
|
+
}
|
401
|
+
}, {
|
402
|
+
key: "show",
|
403
|
+
value: function() {
|
404
|
+
var e = this.settings.parent;
|
405
|
+
if (!e)
|
406
|
+
return !1;
|
407
|
+
if (this.domElement) {
|
408
|
+
var t = this._toggleDOM(!0);
|
409
|
+
return this._setPosition(), t;
|
410
|
+
}
|
411
|
+
var r = this.settings.template || '<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>', n = U(r);
|
412
|
+
return this.domElement = n, this._domH = _(".picker_hue", n), this._domSL = _(".picker_sl", n), this._domA = _(".picker_alpha", n), this._domEdit = _(".picker_editor input", n), this._domSample = _(".picker_sample", n), this._domOkay = _(".picker_done button", n), this._domCancel = _(".picker_cancel button", n), n.classList.add("layout_" + this.settings.layout), this.settings.alpha || n.classList.add("no_alpha"), this.settings.editor || n.classList.add("no_editor"), this.settings.cancelButton || n.classList.add("no_cancel"), this._ifPopup(function() {
|
413
|
+
return n.classList.add("popup");
|
414
|
+
}), this._setPosition(), this.colour ? this._updateUI() : this._setColor(this.settings.defaultColor), this._bindEvents(), !0;
|
415
|
+
}
|
416
|
+
}, {
|
417
|
+
key: "hide",
|
418
|
+
value: function() {
|
419
|
+
return this._toggleDOM(!1);
|
420
|
+
}
|
421
|
+
}, {
|
422
|
+
key: "destroy",
|
423
|
+
value: function() {
|
424
|
+
this._events.destroy(), this.domElement && this.settings.parent.removeChild(this.domElement);
|
425
|
+
}
|
426
|
+
}, {
|
427
|
+
key: "_bindEvents",
|
428
|
+
value: function() {
|
429
|
+
var e = this, t = this, r = this.domElement, n = this._events;
|
430
|
+
function o(s, p, u) {
|
431
|
+
n.add(s, p, u);
|
432
|
+
}
|
433
|
+
o(r, "click", function(s) {
|
434
|
+
return s.preventDefault();
|
435
|
+
}), L(n, this._domH, function(s, p) {
|
436
|
+
return t._setHSLA(s);
|
437
|
+
}), L(n, this._domSL, function(s, p) {
|
438
|
+
return t._setHSLA(null, s, 1 - p);
|
439
|
+
}), this.settings.alpha && L(n, this._domA, function(s, p) {
|
440
|
+
return t._setHSLA(null, null, null, 1 - p);
|
441
|
+
});
|
442
|
+
var c = this._domEdit;
|
443
|
+
o(c, "input", function(s) {
|
444
|
+
t._setColor(this.value, { fromEditor: !0, failSilently: !0 });
|
445
|
+
}), o(c, "focus", function(s) {
|
446
|
+
var p = this;
|
447
|
+
p.selectionStart === p.selectionEnd && p.select();
|
448
|
+
}), this._ifPopup(function() {
|
449
|
+
var s = function(f) {
|
450
|
+
return e.closeHandler(f);
|
451
|
+
};
|
452
|
+
o(window, x, s), o(window, T, s), H(n, r, ["Esc", "Escape"], s);
|
453
|
+
var p = function(f) {
|
454
|
+
e.__containedEvent = f.timeStamp;
|
455
|
+
};
|
456
|
+
o(r, x, p), o(r, T, p), o(e._domCancel, "click", s);
|
457
|
+
});
|
458
|
+
var a = function(p) {
|
459
|
+
e._ifPopup(function() {
|
460
|
+
return e.closeHandler(p);
|
461
|
+
}), e.onDone && e.onDone(e.colour);
|
462
|
+
};
|
463
|
+
o(this._domOkay, "click", a), H(n, r, ["Enter"], a);
|
464
|
+
}
|
465
|
+
}, {
|
466
|
+
key: "_setPosition",
|
467
|
+
value: function() {
|
468
|
+
var e = this.settings.parent, t = this.domElement;
|
469
|
+
e !== t.parentNode && e.appendChild(t), this._ifPopup(function(r) {
|
470
|
+
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
471
|
+
var n = r === !0 ? "popup_right" : "popup_" + r;
|
472
|
+
["popup_top", "popup_bottom", "popup_left", "popup_right"].forEach(function(o) {
|
473
|
+
o === n ? t.classList.add(o) : t.classList.remove(o);
|
474
|
+
}), t.classList.add(n);
|
475
|
+
});
|
476
|
+
}
|
477
|
+
}, {
|
478
|
+
key: "_setHSLA",
|
479
|
+
value: function(e, t, r, n, o) {
|
480
|
+
o = o || {};
|
481
|
+
var c = this.colour, a = c.hsla;
|
482
|
+
[e, t, r, n].forEach(function(s, p) {
|
483
|
+
(s || s === 0) && (a[p] = s);
|
484
|
+
}), c.hsla = a, this._updateUI(o), this.onChange && !o.silent && this.onChange(c);
|
485
|
+
}
|
486
|
+
}, {
|
487
|
+
key: "_updateUI",
|
488
|
+
value: function(e) {
|
489
|
+
if (!this.domElement)
|
490
|
+
return;
|
491
|
+
e = e || {};
|
492
|
+
var t = this.colour, r = t.hsla, n = "hsl(" + r[0] * G + ", 100%, 50%)", o = t.hslString, c = t.hslaString, a = this._domH, s = this._domSL, p = this._domA, u = _(".picker_selector", a), f = _(".picker_selector", s), d = _(".picker_selector", p);
|
493
|
+
function b(I, S, C) {
|
494
|
+
S.style.left = C * 100 + "%";
|
495
|
+
}
|
496
|
+
function m(I, S, C) {
|
497
|
+
S.style.top = C * 100 + "%";
|
498
|
+
}
|
499
|
+
b(a, u, r[0]), this._domSL.style.backgroundColor = this._domH.style.color = n, b(s, f, r[1]), m(s, f, 1 - r[2]), s.style.color = o, m(p, d, 1 - r[3]);
|
500
|
+
var h = o, v = h.replace("hsl", "hsla").replace(")", ", 0)"), g = "linear-gradient(" + [h, v] + ")";
|
501
|
+
if (this._domA.style.background = g + ", " + B, !e.fromEditor) {
|
502
|
+
var E = this.settings.editorFormat, k = this.settings.alpha, w = void 0;
|
503
|
+
switch (E) {
|
504
|
+
case "rgb":
|
505
|
+
w = t.printRGB(k);
|
506
|
+
break;
|
507
|
+
case "hsl":
|
508
|
+
w = t.printHSL(k);
|
509
|
+
break;
|
510
|
+
default:
|
511
|
+
w = t.printHex(k);
|
512
|
+
}
|
513
|
+
this._domEdit.value = w;
|
514
|
+
}
|
515
|
+
this._domSample.style.color = c;
|
516
|
+
}
|
517
|
+
}, {
|
518
|
+
key: "_ifPopup",
|
519
|
+
value: function(e, t) {
|
520
|
+
this.settings.parent && this.settings.popup ? e && e(this.settings.popup) : t && t();
|
521
|
+
}
|
522
|
+
}, {
|
523
|
+
key: "_toggleDOM",
|
524
|
+
value: function(e) {
|
525
|
+
var t = this.domElement;
|
526
|
+
if (!t)
|
527
|
+
return !1;
|
528
|
+
var r = e ? "" : "none", n = t.style.display !== r;
|
529
|
+
return n && (t.style.display = r), n;
|
530
|
+
}
|
531
|
+
}]), l;
|
532
|
+
}();
|
533
|
+
{
|
534
|
+
var D = document.createElement("style");
|
535
|
+
D.textContent = '.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}', document.documentElement.firstElementChild.appendChild(D), W.StyleElement = D;
|
536
|
+
}
|
537
|
+
export {
|
538
|
+
W as default
|
539
|
+
};
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@szjy/workflow",
|
3
|
-
"version": "0.1.
|
4
|
-
"main": "dist/
|
5
|
-
"module": "dist/
|
3
|
+
"version": "0.1.3",
|
4
|
+
"main": "dist/index.umd.js",
|
5
|
+
"module": "dist/index.mjs",
|
6
6
|
"types": "dist/index.d.ts",
|
7
7
|
"files": [
|
8
8
|
"dist/*"
|
@@ -10,18 +10,37 @@
|
|
10
10
|
"scripts": {
|
11
11
|
"dev": "vite",
|
12
12
|
"build": "vue-tsc && vite build",
|
13
|
-
"preview": "vite preview"
|
13
|
+
"preview": "vite preview",
|
14
|
+
"release": "npx commit-and-tag-version"
|
14
15
|
},
|
15
16
|
"dependencies": {
|
17
|
+
"@ant-design/icons-vue": "^7.0.1",
|
18
|
+
"bpmn-js": "^17.0.2",
|
19
|
+
"bpmn-js-properties-panel": "^5.13.0",
|
20
|
+
"bpmn-moddle": "^9.0.1",
|
21
|
+
"dayjs": "^1.11.10",
|
22
|
+
"diagram-js": "^14.1.0",
|
23
|
+
"highlight.js": "^11.9.0",
|
24
|
+
"json-editor-vue": "^0.12.0",
|
25
|
+
"lodash.debounce": "^4.0.8",
|
26
|
+
"min-dash": "^4.2.1",
|
27
|
+
"min-dom": "^5.0.0",
|
28
|
+
"mitt": "^3.0.1",
|
29
|
+
"moddle": "^7.0.0",
|
16
30
|
"naive-ui": "^2.38.1",
|
17
|
-
"
|
31
|
+
"pinia": "^2.1.7",
|
32
|
+
"vue": "^3.4.21",
|
33
|
+
"vue-i18n": "^9.10.1"
|
18
34
|
},
|
19
35
|
"devDependencies": {
|
20
36
|
"@vitejs/plugin-vue": "^5.0.4",
|
21
37
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
38
|
+
"fast-glob": "^3.3.2",
|
39
|
+
"less": "^4.2.0",
|
22
40
|
"typescript": "^5.2.2",
|
23
41
|
"vite": "^5.1.6",
|
24
42
|
"vite-plugin-dts": "^3.7.3",
|
43
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
25
44
|
"vue-tsc": "^1.8.27"
|
26
45
|
}
|
27
46
|
}
|