@knime/scripting-editor 0.0.124 → 0.0.125
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/{AnyOfTwinlist-By12blUM-C3JKalWM.js → AnyOfTwinlist-C0gjxeQW-ShOqAkJx.js} +1 -1
- package/dist/{ArrayLayout-C5yFgV8Q.js → ArrayLayout-q8ds1Aqz.js} +16 -16
- package/dist/{ButtonControl-cBR6Ne7s.js → ButtonControl-CYzXzZ_O.js} +1 -1
- package/dist/{CheckboxControl--qMC4yqR-CgacSNSR.js → CheckboxControl-CS6iXHnF-B3073KNg.js} +1 -1
- package/dist/{CheckboxesControl-BsOG-QR8-DdSUICiM.js → CheckboxesControl-CPKIkyWt-B5TS6lpg.js} +2 -2
- package/dist/{CodeEditorControl-BmA6cWok.js → CodeEditorControl-CXYWbcoo.js} +1 -1
- package/dist/{ColorControl-BX93RNbV-Bg6FmjdB.js → ColorControl-DeSwgyjS-C8KShUM8.js} +1 -1
- package/dist/{ColorPreviewControl-CFVeFXBp-BNXlVoi9.js → ColorPreviewControl-CntI0nTL-D5gFzGvP.js} +10 -10
- package/dist/{ComboBoxControl-M5HOJcy2-DVXiZQvt.js → ComboBoxControl-DBYnBkC4-1_wXpUcl.js} +4 -4
- package/dist/{ConfigurationNodeNotSupported-Dh2xU1UF.js → ConfigurationNodeNotSupported-DqmSOOBT.js} +1 -1
- package/dist/{ControlWithSubParameters-D0qNx3y-.js → ControlWithSubParameters-Ba390eOo.js} +8 -8
- package/dist/{CredentialsControl-CwZxixjM.js → CredentialsControl-BeCPOU6s.js} +2 -2
- package/dist/{CredentialsControlBase-BwUZOe-t.js → CredentialsControlBase-DBFidwMl.js} +8 -8
- package/dist/{DateControl-PYVPxPvC-BzWQEGvR.js → DateControl-Cx_CwvNB-CE8Fm3pC.js} +1 -1
- package/dist/{DateTimeControl-_8d8iizh-DqQwphIF.js → DateTimeControl-BJsDzufC-Cu4T1Lrt.js} +1 -1
- package/dist/{DateTimeFormatPickerControl-xRNNTLIl-DJ3bbKY3.js → DateTimeFormatPickerControl-C80v1qfK-CzhWsCj7.js} +8 -8
- package/dist/{DateTimeFormatPickerWithTypeControl-CZZBe3PC-LTeHxr8D.js → DateTimeFormatPickerWithTypeControl-Dt-FKtYV-wkd9HHay.js} +23 -23
- package/dist/{DialogFileExplorer-D6KGXnvM.js → DialogFileExplorer-DZmUEwjv.js} +201 -216
- package/dist/{DirtyTrackerRenderer-B5cH2aL8.js → DirtyTrackerRenderer-DcK-tATZ.js} +2 -2
- package/dist/{DropdownControl-sGxFWX33-ByFZSZbg.js → DropdownControl-D_BnA4-1-PRO5iNhR.js} +2 -2
- package/dist/DynamicInputControl-DeUyGCEc.js +6 -0
- package/dist/{ExecutorCoresControl-6DB4hS8_-BhtGiSqF.js → ExecutorCoresControl-BnglyGMR-DqB0caKw.js} +19 -14
- package/dist/{ExecutorMemoryControl-xKHl7IXW-D0e7o4CL.js → ExecutorMemoryControl-CRATGs9C-LF37A-C5.js} +2 -2
- package/dist/{FileChooserControl-DnRohPCZ.js → FileChooserControl-DnyrXeMn.js} +2 -2
- package/dist/FileChooserControlBase-BDrQg1r7.js +544 -0
- package/dist/{FileChooserControlForMultiFile-CMhiNDSM.js → FileChooserControlForMultiFile-DHnPYDbi.js} +1 -1
- package/dist/{FileUploadControl-Bjgh9vSl-CPHxxVRA.js → FileUploadControl-D42rjpJg-D_nG1ayB.js} +35 -34
- package/dist/{GridSelectionControl-DslOwaNV-B9aCP6XX.js → GridSelectionControl-BJk8-yiM-DW0dGK86.js} +18 -18
- package/dist/{HorizontalLayout-Dl9cC50s-CTgzEebl.js → HorizontalLayout-DwdPdBTW-BC0JQ8M3.js} +1 -1
- package/dist/{IntegerControl-DSzPJs4Z-zZCQlr8l.js → IntegerControl-D8OzxbRA-DoIwwIKL.js} +1 -1
- package/dist/{IntervalControl-DoWDLPMP-fal6DeXs.js → IntervalControl-Drljrv-b-D_w5jliC.js} +32 -32
- package/dist/{LabeledGroup-zL2NOk09.js → LabeledGroup-DrXamFRi.js} +1 -1
- package/dist/{LegacyCredentialsControl-CtqcCnFx.js → LegacyCredentialsControl-CzNFauaZ.js} +2 -2
- package/dist/{LinkControl-BuYI03b_-NJ2s5Dca.js → LinkControl-BvBBTFCs-DhRpUJ9F.js} +12 -12
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-DZ90-rk8-BdWmR-eL.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-D7No3JRo.js} +1 -1
- package/dist/{ManualTwinlistControl-mN3zJTMK-DGwdr0zl.js → ManualTwinlistControl-By0Hur_m-Eh_oX_4b.js} +7 -7
- package/dist/MultiFileChooserControl-C1xBR3Oh.js +401 -0
- package/dist/{MultiRuleWrapper-D5aY3_UC.js → MultiRuleWrapper-BoViCE45.js} +1 -1
- package/dist/{MultiSelectListBoxControl-CnSublPM-B1j0ZME0.js → MultiSelectListBoxControl-nmvLP18g-Cau3WBNA.js} +3 -3
- package/dist/{MultimodeTwinlistControl-CyZQ54SO-DT50Fro-.js → MultimodeTwinlistControl-yCdeWH2E-BXEYfhu_.js} +14 -14
- package/dist/{NameFilter-C1u8qsYQ-BAjFRRWl.js → NameFilter-D1TMJydD-BCDMDZ9m.js} +1 -1
- package/dist/{NumberControl-qiTgXs6x-LVbM4M31.js → NumberControl-uLMOLEbg-BN02h8ID.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bs-H6e08-CV_OeWxc.js → NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-CYM7aU-A.js} +3 -3
- package/dist/{OneOfDropdown-Dn6QM81--CwMpXCXg.js → OneOfDropdown-CDwwxb3h-Qm75Epl7.js} +4 -4
- package/dist/{RadioButtonsWithDescriptionControl-1X9F9obn-CPDfho0i.js → RadioButtonsWithDescriptionControl-5M_6G7Qk-C-lRNiQf.js} +1 -1
- package/dist/{RadioControl-BdHtNPFC-vdjL0p2Z.js → RadioControl-C73s-icb-eCORO2wi.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Cp22r9KZ-BLsCS6ST.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-BNhdXilP.js} +4 -4
- package/dist/{ResourceControlBase-CDpi3J6s-D0LxAMCa.js → ResourceControlBase-Bqq1PAX_-CDpMtg0d.js} +14 -14
- package/dist/{RichTextControl-5o904Fvx-CVqBj3Wi.js → RichTextControl-D9QD2_uO-gEpzLCAI.js} +7 -7
- package/dist/{SectionLayout-B9X7fzQ9-weWE29yL.js → SectionLayout-DY27pAtG-DmKc6jHs.js} +1 -1
- package/dist/{SettingsSubPanelLayout-D8j0-HKD-D2KHKfX_.js → SettingsSubPanelLayout-82gMWhpv-Bgknlz96.js} +15 -15
- package/dist/{SimpleTwinlistControl-RlnzOp0j-IrHSl4XC.js → SimpleTwinlistControl-P4KEYOq0-72s6dsaS.js} +2 -2
- package/dist/{SingleSelectControl-DPPwJUq3-IYYZ7X-L.js → SingleSelectControl-C_ZKkV5m-PjSlqYRi.js} +2 -2
- package/dist/{SingleSelectListBoxControl-EMc8u2ik-DEMnwGWh.js → SingleSelectListBoxControl-oMWH0vEE-C-_KJWqa.js} +3 -3
- package/dist/{SortListControl-Bw3K37ru-C20fveDO.js → SortListControl-4v3T2j_9-CHtVCaED.js} +15 -15
- package/dist/{StringFileChooserControl-DMBzTIng.js → StringFileChooserControl-CKp_5Vby.js} +19 -19
- package/dist/{StyledListItem-Bli2itH--DzQz0VeI.js → StyledListItem-D3LSfgGV-BIQYzIex.js} +1 -1
- package/dist/{TeamAndSpacesControl-BlvUuAAA-B1V6iD1Z.js → TeamAndSpacesControl-CH5ImByy-IFiDFnqU.js} +9 -9
- package/dist/{TeamResourceControl-DuLmQ7gc-DGpH70FI.js → TeamResourceControl-BFMuyWnk-nyWsEMS5.js} +2 -2
- package/dist/{TextAreaControl-DtfB44mR-Bwogmc7W.js → TextAreaControl-CrsZSU_f-DhnIbDX2.js} +1 -1
- package/dist/{TextControl-BlUQLMGo-CSdt3hw2.js → TextControl-B0ag-3Pv-DdQMdDop.js} +21356 -20506
- package/dist/{TimeControl-DWzlpLX--DVTcWUBt.js → TimeControl-Bt5OcjBc-B7zykVsr.js} +1 -1
- package/dist/{TimePartInput-CRP2YYM0-CbQSqTuJ.js → TimePartInput-CvwAzDuY-BD3G3W1e.js} +1 -1
- package/dist/{TimeframesControl-O_hzJcX5-DXtgwxa_.js → TimeframesControl-BE3LFgyl-sTfXusxC.js} +2 -2
- package/dist/{Tooltip-C9vAa0Wb-DNgF-D1Q.js → Tooltip-UlemzxdS-Brydd8ux.js} +1 -1
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-DtphbKhB-BhwFw0-m.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-BY9ATbAK.js} +2 -2
- package/dist/{TypedStringFilter-ByeMPxR6-CCQ4uw8i.js → TypedStringFilter-ry7fTUTx-2_vbd039.js} +1 -1
- package/dist/{ValueSwitch-BV9qUd5x-CEiCBY-I.js → ValueSwitch-BXaDBm2C-ssKvnGfK.js} +2 -2
- package/dist/{ValueSwitchControl-nW7WtSSM-D2W0Q4QS.js → ValueSwitchControl-aVx7pUi9-BZM0wH1q.js} +1 -1
- package/dist/{VennDiagramLayout-CGbt8VwT.js → VennDiagramLayout-BgqofESb.js} +1 -1
- package/dist/{VerticalLayout-C7_-yu_D-ODUVb0PV.js → VerticalLayout-Bv-LJOZ0-CblpkNEV.js} +1 -1
- package/dist/{ZonedDateTimeControl-DlrvZKe4-zaxSf2EX.js → ZonedDateTimeControl-6MUvXzd3-D-ars3P_.js} +5 -5
- package/dist/{_Uint8Array-BESS0YjU-BkSYIhdG.js → _Uint8Array-C_ozLuQF-Nwa7hPEk.js} +42 -42
- package/dist/lib/main.d.ts +1 -2
- package/dist/{localTimeUtils-Bl9xa5Jk-CrPaYHbw.js → localTimeUtils-DBMwKtLh-BfO_a0uM.js} +5 -5
- package/dist/main.js +8280 -7586
- package/dist/parameters.js +1 -1
- package/dist/{toString-DXFebvWA-Drhydq_D.js → toString-C-CNeuJl-rJeZUfkE.js} +1 -1
- package/dist/{useFileChooserBackend-D0qgqkW_.js → useFileChooserBackend-HoIvcM0_.js} +1 -1
- package/dist/usePossibleValues-B-W6u-1T-BQ31Bf2-.js +20 -0
- package/package.json +6 -6
- package/dist/DynamicInputControl-D59lIyv6.js +0 -6
- package/dist/FileChooserControlBase-Bzweo0oX.js +0 -613
- package/dist/MultiFileChooserControl-CZeL4h0p.js +0 -426
- package/dist/src/components/CompactTabBar.vue.d.ts +0 -45
- package/dist/usePossibleValues-B8es3DCW-CX4w2_Zt.js +0 -20
- /package/dist/{useUnknownValuesInTwinlist-qv0kKHaD-D2ve7iXH.js → useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js} +0 -0
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { createElementBlock as p, openBlock as i, createElementVNode as F, defineComponent as R, computed as n, ref as S, createCommentVNode as C, normalizeClass as j, renderSlot as z, createBlock as I, unref as v, toDisplayString as E, createVNode as m, Fragment as N, renderList as K, watch as V, withCtx as M, normalizeProps as U, mergeProps as Q } from "vue";
|
|
2
|
+
import { aB as $, aM as H, af as q, ae as G, ad as A, _ as J, d as X, aN as P, aO as Y } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
|
+
import { u as Z, g as ee, a as te } from "./useFileChooserBackend-HoIvcM0_.js";
|
|
4
|
+
import { LoadingIcon as oe } from "@knime/components";
|
|
5
|
+
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const le = {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
fill: "none",
|
|
9
|
+
stroke: "#000",
|
|
10
|
+
"stroke-linejoin": "round",
|
|
11
|
+
viewBox: "0 0 32 32"
|
|
12
|
+
};
|
|
13
|
+
function ne(c, e) {
|
|
14
|
+
return i(), p("svg", le, e[0] || (e[0] = [
|
|
15
|
+
F("circle", {
|
|
16
|
+
cx: "16",
|
|
17
|
+
cy: "16",
|
|
18
|
+
r: "13"
|
|
19
|
+
}, null, -1),
|
|
20
|
+
F("path", { d: "M9.9 10.1 22 22m-.1-12L10 22.1" }, null, -1)
|
|
21
|
+
]));
|
|
22
|
+
}
|
|
23
|
+
const re = { render: ne }, ae = {
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
fill: "none",
|
|
26
|
+
stroke: "#000",
|
|
27
|
+
"stroke-linejoin": "round",
|
|
28
|
+
viewBox: "0 0 32 32"
|
|
29
|
+
};
|
|
30
|
+
function se(c, e) {
|
|
31
|
+
return i(), p("svg", ae, e[0] || (e[0] = [
|
|
32
|
+
F("path", { d: "M26.615 8.397h-5.222V3.175m5.222 26H6.241v-26h15.152l5.222 5.222z" }, null, -1)
|
|
33
|
+
]));
|
|
34
|
+
}
|
|
35
|
+
const ie = { render: se }, ce = { class: "container" }, de = { class: "everything-except-error-message" }, ue = { class: "header-icon" }, pe = { class: "header-text" }, ve = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "visible-items-container"
|
|
38
|
+
}, fe = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "loading-overlay"
|
|
41
|
+
}, he = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "empty-list"
|
|
44
|
+
}, me = ["title"], Fe = { class: "visible-items-footer" }, ge = ["title"], we = /* @__PURE__ */ R({
|
|
45
|
+
__name: "FileSelectionPreview",
|
|
46
|
+
props: {
|
|
47
|
+
previewData: {},
|
|
48
|
+
filterMode: {},
|
|
49
|
+
expandByDefault: { type: Boolean, default: !1 },
|
|
50
|
+
isLoading: { type: Boolean, default: !1 }
|
|
51
|
+
},
|
|
52
|
+
setup(c) {
|
|
53
|
+
const e = c, l = n(
|
|
54
|
+
() => e.previewData.resultType === "SUCCESS" ? e.previewData.itemsAfterFiltering : []
|
|
55
|
+
), d = n(() => {
|
|
56
|
+
switch (e.filterMode) {
|
|
57
|
+
case "FILES_AND_FOLDERS":
|
|
58
|
+
return "files/folders";
|
|
59
|
+
case "FOLDERS":
|
|
60
|
+
return "folders";
|
|
61
|
+
default:
|
|
62
|
+
return "files";
|
|
63
|
+
}
|
|
64
|
+
}), s = n(() => {
|
|
65
|
+
if (e.previewData.resultType === "ERROR")
|
|
66
|
+
return `Error loading ${d.value}`;
|
|
67
|
+
const a = l.value.length, f = e.previewData.numItemsBeforeFiltering, u = `${a}${e.previewData.numFilesAfterFilteringIsOnlyLowerBound ? "+" : ""}`, w = `${f}${e.previewData.numFilesBeforeFilteringIsOnlyLowerBound ? "+" : ""}`;
|
|
68
|
+
return `${u} of ${w} ${d.value}`;
|
|
69
|
+
}), r = S(e.expandByDefault), h = () => {
|
|
70
|
+
r.value = !r.value;
|
|
71
|
+
};
|
|
72
|
+
return (a, f) => (i(), p("div", ce, [
|
|
73
|
+
F("div", de, [
|
|
74
|
+
F("div", {
|
|
75
|
+
class: j(["visible-items-header", { error: a.previewData.resultType === "ERROR" }])
|
|
76
|
+
}, [
|
|
77
|
+
F("div", ue, [
|
|
78
|
+
a.previewData.resultType === "SUCCESS" ? (i(), I(v(ie), { key: 0 })) : (i(), I(v(re), { key: 1 }))
|
|
79
|
+
]),
|
|
80
|
+
F("span", pe, E(s.value), 1),
|
|
81
|
+
z(a.$slots, "header-buttons-right", {}, void 0, !0)
|
|
82
|
+
], 2),
|
|
83
|
+
r.value ? (i(), p("div", ve, [
|
|
84
|
+
e.isLoading ? (i(), p("div", fe, [
|
|
85
|
+
m(v(oe), { class: "loading-spinner" })
|
|
86
|
+
])) : C("", !0),
|
|
87
|
+
l.value.length === 0 ? (i(), p("div", he, "No files")) : (i(!0), p(N, { key: 2 }, K(l.value, (u) => (i(), p("div", {
|
|
88
|
+
key: u,
|
|
89
|
+
title: u,
|
|
90
|
+
class: "visible-item"
|
|
91
|
+
}, E(u), 9, me))), 128))
|
|
92
|
+
])) : C("", !0),
|
|
93
|
+
F("div", Fe, [
|
|
94
|
+
m(v($), {
|
|
95
|
+
variant: "transparent",
|
|
96
|
+
label: r.value ? "Hide all" : "Show all",
|
|
97
|
+
onClick: h
|
|
98
|
+
}, null, 8, ["label"])
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
a.previewData.resultType === "ERROR" ? (i(), p("div", {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "flexible-error-message-container",
|
|
104
|
+
"data-test-id": "error-message",
|
|
105
|
+
title: a.previewData.errorMessage
|
|
106
|
+
}, E(a.previewData.errorMessage), 9, ge)) : C("", !0)
|
|
107
|
+
]));
|
|
108
|
+
}
|
|
109
|
+
}), W = /* @__PURE__ */ T(we, [["__scopeId", "data-v-2230b176"]]), _e = /* @__PURE__ */ R({
|
|
110
|
+
__name: "FieldRenderer",
|
|
111
|
+
props: {
|
|
112
|
+
control: {},
|
|
113
|
+
fieldName: {},
|
|
114
|
+
uischema: {}
|
|
115
|
+
},
|
|
116
|
+
setup(c) {
|
|
117
|
+
const e = c, l = n(() => H(e.control.path, e.fieldName)), d = n(
|
|
118
|
+
() => {
|
|
119
|
+
var s;
|
|
120
|
+
return (s = e.control.schema.properties) == null ? void 0 : s[e.fieldName];
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
return (s, r) => (i(), I(v(q), {
|
|
124
|
+
key: l.value,
|
|
125
|
+
schema: d.value,
|
|
126
|
+
uischema: s.uischema,
|
|
127
|
+
path: l.value,
|
|
128
|
+
enabled: s.control.enabled,
|
|
129
|
+
renderers: s.control.renderers,
|
|
130
|
+
cells: s.control.cells
|
|
131
|
+
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]));
|
|
132
|
+
}
|
|
133
|
+
}), B = "filters", ye = /* @__PURE__ */ R({
|
|
134
|
+
__name: "FilterSettings",
|
|
135
|
+
props: {
|
|
136
|
+
control: {},
|
|
137
|
+
handleChange: { type: Function }
|
|
138
|
+
},
|
|
139
|
+
setup(c, { expose: e }) {
|
|
140
|
+
const l = c, d = n(() => H(l.control.path, B)), s = n(
|
|
141
|
+
() => {
|
|
142
|
+
var r;
|
|
143
|
+
return (r = l.control.uischema.options) == null ? void 0 : r.filters.uiSchema;
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
return e({
|
|
147
|
+
/**
|
|
148
|
+
* Resets the filter settings to their default values. NOT the same as discarding them
|
|
149
|
+
* and returning to the saved state.
|
|
150
|
+
*/
|
|
151
|
+
resetFilters: () => {
|
|
152
|
+
var r;
|
|
153
|
+
l.handleChange(d.value, {
|
|
154
|
+
...(r = l.control.schema.default) == null ? void 0 : r[B],
|
|
155
|
+
filterMode: l.control.data.filters.filterMode
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}), (r, h) => (i(), I(_e, {
|
|
159
|
+
control: r.control,
|
|
160
|
+
"field-name": B,
|
|
161
|
+
"handle-change": r.handleChange,
|
|
162
|
+
uischema: s.value
|
|
163
|
+
}, null, 8, ["control", "handle-change", "uischema"]));
|
|
164
|
+
}
|
|
165
|
+
}), Se = ({
|
|
166
|
+
backendType: c,
|
|
167
|
+
filterOptions: e,
|
|
168
|
+
additionalFilterOptionsClassIdentifier: l,
|
|
169
|
+
includeSubFolders: d
|
|
170
|
+
}) => {
|
|
171
|
+
const s = G("getData");
|
|
172
|
+
return {
|
|
173
|
+
listItemsForPreview: (a, f) => {
|
|
174
|
+
const u = [
|
|
175
|
+
c.value,
|
|
176
|
+
a,
|
|
177
|
+
f,
|
|
178
|
+
d.value,
|
|
179
|
+
{
|
|
180
|
+
additionalFilterOptions: e.value,
|
|
181
|
+
additionalFilterOptionsClassIdentifier: l
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
return s({
|
|
185
|
+
method: "fileFilterPreview.listItemsForPreview",
|
|
186
|
+
options: u
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
resolveRelativePath: (a, f) => s({
|
|
190
|
+
method: "fileChooser.resolveRelativePath",
|
|
191
|
+
options: [c.value, a, f]
|
|
192
|
+
})
|
|
193
|
+
};
|
|
194
|
+
}, Ce = { class: "filter-settings-drawer-content" }, Ie = /* @__PURE__ */ R({
|
|
195
|
+
__name: "FilterPreview",
|
|
196
|
+
props: {
|
|
197
|
+
control: {},
|
|
198
|
+
handleChange: { type: Function },
|
|
199
|
+
changeValue: { type: Function },
|
|
200
|
+
disabled: { type: Boolean },
|
|
201
|
+
labelForId: {},
|
|
202
|
+
isValid: { type: Boolean },
|
|
203
|
+
messages: {},
|
|
204
|
+
onRegisterValidation: { type: Function }
|
|
205
|
+
},
|
|
206
|
+
setup(c) {
|
|
207
|
+
var o;
|
|
208
|
+
const e = c, l = n(() => {
|
|
209
|
+
var t;
|
|
210
|
+
return (t = e.control.data) == null ? void 0 : t.includeSubfolders;
|
|
211
|
+
}), d = n(
|
|
212
|
+
() => e.control.uischema
|
|
213
|
+
), { portIndex: s } = Z(d), r = n(
|
|
214
|
+
() => ee(e.control.data.path.fsCategory, s.value)
|
|
215
|
+
), h = S({
|
|
216
|
+
itemsAfterFiltering: [],
|
|
217
|
+
numItemsBeforeFiltering: 0,
|
|
218
|
+
numFilesAfterFilteringIsOnlyLowerBound: !1,
|
|
219
|
+
numFilesBeforeFilteringIsOnlyLowerBound: !1,
|
|
220
|
+
resultType: "SUCCESS"
|
|
221
|
+
}), a = S(!0), f = S(null), u = n(() => {
|
|
222
|
+
var t;
|
|
223
|
+
return (t = e.control.data) == null ? void 0 : t.filters;
|
|
224
|
+
}), w = Se({
|
|
225
|
+
backendType: r,
|
|
226
|
+
includeSubFolders: l,
|
|
227
|
+
filterOptions: u,
|
|
228
|
+
additionalFilterOptionsClassIdentifier: (o = e.control.uischema.options) == null ? void 0 : o.filters.classId
|
|
229
|
+
}), k = n(() => e.control.data.path), _ = n(() => e.control.data.filterMode), O = S(0), D = async () => {
|
|
230
|
+
var g, x;
|
|
231
|
+
a.value = !0, ++O.value;
|
|
232
|
+
let t = k.value.path;
|
|
233
|
+
k.value.fsCategory === "relative-to-workflow" && ((x = (g = d.value.options) == null ? void 0 : g.spaceFSOptions) != null && x.relativeWorkflowPath) && (t = await w.resolveRelativePath(
|
|
234
|
+
t,
|
|
235
|
+
d.value.options.spaceFSOptions.relativeWorkflowPath
|
|
236
|
+
));
|
|
237
|
+
const y = O.value, L = await w.listItemsForPreview(
|
|
238
|
+
t,
|
|
239
|
+
_.value
|
|
240
|
+
);
|
|
241
|
+
y === O.value && (h.value = L, a.value = !1);
|
|
242
|
+
};
|
|
243
|
+
V(
|
|
244
|
+
_,
|
|
245
|
+
(t) => {
|
|
246
|
+
e.control.data.filters.filterMode !== t && e.handleChange(
|
|
247
|
+
A(A(e.control.path, "filters"), "filterMode"),
|
|
248
|
+
t
|
|
249
|
+
);
|
|
250
|
+
},
|
|
251
|
+
{ immediate: !0 }
|
|
252
|
+
), V(
|
|
253
|
+
[l, u, k],
|
|
254
|
+
() => D(),
|
|
255
|
+
{
|
|
256
|
+
deep: !0
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
const b = S(null);
|
|
260
|
+
return (t, y) => (i(), p(N, null, [
|
|
261
|
+
m(W, {
|
|
262
|
+
"preview-data": h.value,
|
|
263
|
+
"is-loading": a.value,
|
|
264
|
+
"filter-mode": _.value
|
|
265
|
+
}, {
|
|
266
|
+
"header-buttons-right": M(() => [
|
|
267
|
+
m(v($), {
|
|
268
|
+
variant: "transparent",
|
|
269
|
+
label: "Edit filters",
|
|
270
|
+
"trailing-icon": "chevron-right",
|
|
271
|
+
onClick: y[0] || (y[0] = (L) => {
|
|
272
|
+
var g;
|
|
273
|
+
return (g = f.value) == null ? void 0 : g.expand();
|
|
274
|
+
})
|
|
275
|
+
})
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}, 8, ["preview-data", "is-loading", "filter-mode"]),
|
|
279
|
+
m(v(J), {
|
|
280
|
+
ref_key: "filterPanelRef",
|
|
281
|
+
ref: f,
|
|
282
|
+
"show-back-arrow": "",
|
|
283
|
+
"background-color-override": "var(--knime-gray-ultra-light)"
|
|
284
|
+
}, {
|
|
285
|
+
default: M(() => [
|
|
286
|
+
F("div", Ce, [
|
|
287
|
+
m(W, {
|
|
288
|
+
"preview-data": h.value,
|
|
289
|
+
"filter-mode": _.value,
|
|
290
|
+
"is-loading": a.value,
|
|
291
|
+
"expand-by-default": ""
|
|
292
|
+
}, {
|
|
293
|
+
"header-buttons-right": M(() => [
|
|
294
|
+
m(v($), {
|
|
295
|
+
variant: "transparent",
|
|
296
|
+
label: "Reset all filters",
|
|
297
|
+
destructive: "",
|
|
298
|
+
onClick: y[1] || (y[1] = (L) => {
|
|
299
|
+
var g;
|
|
300
|
+
return (g = b.value) == null ? void 0 : g.resetFilters();
|
|
301
|
+
})
|
|
302
|
+
})
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["preview-data", "filter-mode", "is-loading"]),
|
|
306
|
+
m(ye, {
|
|
307
|
+
ref_key: "filterSettingsRef",
|
|
308
|
+
ref: b,
|
|
309
|
+
control: t.control,
|
|
310
|
+
"handle-change": t.handleChange
|
|
311
|
+
}, null, 8, ["control", "handle-change"])
|
|
312
|
+
])
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
}, 512)
|
|
316
|
+
], 64));
|
|
317
|
+
}
|
|
318
|
+
}), ke = /* @__PURE__ */ T(Ie, [["__scopeId", "data-v-c2c72b99"]]), Oe = { class: "flex-column" }, Re = /* @__PURE__ */ R({
|
|
319
|
+
__name: "MultiFileChooserControl",
|
|
320
|
+
props: {
|
|
321
|
+
control: {},
|
|
322
|
+
handleChange: { type: Function },
|
|
323
|
+
changeValue: { type: Function },
|
|
324
|
+
disabled: { type: Boolean },
|
|
325
|
+
labelForId: {},
|
|
326
|
+
isValid: { type: Boolean },
|
|
327
|
+
messages: {},
|
|
328
|
+
onRegisterValidation: { type: Function }
|
|
329
|
+
},
|
|
330
|
+
setup(c) {
|
|
331
|
+
const e = c, l = n(
|
|
332
|
+
() => e.control.uischema
|
|
333
|
+
), d = X(l, "connectedFSOptions"), s = n(() => {
|
|
334
|
+
var t;
|
|
335
|
+
const o = (t = e.control.data) == null ? void 0 : t.filterMode;
|
|
336
|
+
return o === "WORKFLOW" ? "WORKFLOW" : o === "FILE" ? "FILE" : "FOLDER";
|
|
337
|
+
}), r = n(() => {
|
|
338
|
+
var t;
|
|
339
|
+
const o = (t = e.control.data) == null ? void 0 : t.filterMode;
|
|
340
|
+
return o !== "FILE" && o !== "FOLDER";
|
|
341
|
+
}), h = n(() => {
|
|
342
|
+
var o;
|
|
343
|
+
return {
|
|
344
|
+
...l.value.options,
|
|
345
|
+
connectedFSOptions: d.value ?? ((o = l.value.options) == null ? void 0 : o.connectedFSOptions),
|
|
346
|
+
selectionMode: s.value
|
|
347
|
+
};
|
|
348
|
+
}), a = {
|
|
349
|
+
FILE: "File",
|
|
350
|
+
WORKFLOW: "Workflow",
|
|
351
|
+
FOLDER: "Folder",
|
|
352
|
+
FILES_AND_FOLDERS: "Files and folders",
|
|
353
|
+
FILES_IN_FOLDERS: "Files in folders",
|
|
354
|
+
FOLDERS: "Folders"
|
|
355
|
+
}, f = (o) => ({
|
|
356
|
+
id: o,
|
|
357
|
+
text: a[o]
|
|
358
|
+
}), u = n(
|
|
359
|
+
() => {
|
|
360
|
+
var o, t;
|
|
361
|
+
return ((t = (o = l.value.options) == null ? void 0 : o.possibleFilterModes) == null ? void 0 : t.map(
|
|
362
|
+
f
|
|
363
|
+
)) ?? [];
|
|
364
|
+
}
|
|
365
|
+
), w = n(() => ({
|
|
366
|
+
possibleValues: u.value
|
|
367
|
+
})), k = n(() => u.value.length > 1), _ = n(
|
|
368
|
+
() => u.value.length > 2 ? "radio" : "valueSwitch"
|
|
369
|
+
), { isConnectedButNoFileConnectionIsAvailable: O, isConnected: D } = te(h), b = n(
|
|
370
|
+
() => {
|
|
371
|
+
var o;
|
|
372
|
+
return O.value || !D.value && ((o = e.control.data) == null ? void 0 : o.path.fsCategory) === "CONNECTED";
|
|
373
|
+
}
|
|
374
|
+
);
|
|
375
|
+
return (o, t) => (i(), p("div", Oe, [
|
|
376
|
+
k.value ? (i(), I(v(P), {
|
|
377
|
+
key: 0,
|
|
378
|
+
"field-name": "filterMode",
|
|
379
|
+
format: _.value,
|
|
380
|
+
options: w.value,
|
|
381
|
+
control: o.control
|
|
382
|
+
}, null, 8, ["format", "options", "control"])) : C("", !0),
|
|
383
|
+
m(v(P), {
|
|
384
|
+
"field-name": "path",
|
|
385
|
+
format: v(Y),
|
|
386
|
+
options: h.value,
|
|
387
|
+
control: o.control
|
|
388
|
+
}, null, 8, ["format", "options", "control"]),
|
|
389
|
+
r.value ? (i(), p(N, { key: 1 }, [
|
|
390
|
+
m(v(P), {
|
|
391
|
+
"field-name": "includeSubfolders",
|
|
392
|
+
control: o.control
|
|
393
|
+
}, null, 8, ["control"]),
|
|
394
|
+
b.value ? C("", !0) : (i(), I(ke, U(Q({ key: 0 }, e)), null, 16))
|
|
395
|
+
], 64)) : C("", !0)
|
|
396
|
+
]));
|
|
397
|
+
}
|
|
398
|
+
}), Pe = /* @__PURE__ */ T(Re, [["__scopeId", "data-v-756e4036"]]);
|
|
399
|
+
export {
|
|
400
|
+
Pe as default
|
|
401
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as n, openBlock as r, Fragment as s, renderList as o, createBlock as u, unref as m } from "vue";
|
|
2
|
-
import { af as p } from "./TextControl-
|
|
2
|
+
import { af as p } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
3
|
const y = /* @__PURE__ */ t({
|
|
4
4
|
__name: "MultiRuleWrapper",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, toRef as x, createBlock as g, openBlock as h, unref as b, resolveComponent as S, createElementBlock as c, normalizeStyle as v, normalizeClass as I, createElementVNode as m, createCommentVNode as f, mergeProps as C, withKeys as a, withModifiers as d, normalizeProps as V, guardReactiveProps as w, Fragment as k, renderList as D, withCtx as H, renderSlot as K, resolveDynamicComponent as B, toDisplayString as N, createVNode as A, watch as z } from "vue";
|
|
2
|
-
import { t as O } from "./usePossibleValues-
|
|
3
|
-
import { Y as L,
|
|
4
|
-
import { p as T } from "./StyledListItem-
|
|
2
|
+
import { t as O } from "./usePossibleValues-B-W6u-1T-BQ31Bf2-.js";
|
|
3
|
+
import { Y as L, o as P, m as R } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
4
|
+
import { p as T } from "./StyledListItem-D3LSfgGV-BIQYzIex.js";
|
|
5
5
|
const M = (e, t) => {
|
|
6
6
|
let i, n = 0;
|
|
7
7
|
return (...l) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as P, toRef as v, computed as d, createBlock as B, openBlock as N, unref as i, mergeProps as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as P, toRef as v, computed as d, createBlock as B, openBlock as N, unref as i, mergeProps as S } from "vue";
|
|
2
|
+
import { aS as u, b as $ } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
3
|
import { i as x } from "./index-Blg1O3Fz-CGafpkU1.js";
|
|
4
|
-
import { t as
|
|
4
|
+
import { t as G, c as X } from "./usePossibleValues-B-W6u-1T-BQ31Bf2-.js";
|
|
5
5
|
import { p as Y } from "./toKdsPossibleValues-BklBg3gG-Dr1D12GJ.js";
|
|
6
|
-
import { F as W } from "./useUnknownValuesInTwinlist-
|
|
7
|
-
const
|
|
6
|
+
import { F as W } from "./useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js";
|
|
7
|
+
const J = /* @__PURE__ */ P({
|
|
8
8
|
__name: "MultimodeTwinlistControl",
|
|
9
9
|
props: {
|
|
10
10
|
control: {},
|
|
@@ -18,11 +18,11 @@ const H = /* @__PURE__ */ P({
|
|
|
18
18
|
showTypeFilter: { type: Boolean, default: !1 }
|
|
19
19
|
},
|
|
20
20
|
setup(o) {
|
|
21
|
-
const a = o, { possibleValues: c } =
|
|
21
|
+
const a = o, { possibleValues: c } = G(
|
|
22
22
|
v(a, "control")
|
|
23
|
-
), { excludedLabel: F, includedLabel:
|
|
23
|
+
), { excludedLabel: F, includedLabel: U } = X(
|
|
24
24
|
v(a, "control")
|
|
25
|
-
), { selectedAndDeselected: p, setCurrentManualFilter:
|
|
25
|
+
), { selectedAndDeselected: p, setCurrentManualFilter: E } = W({
|
|
26
26
|
data: d(() => a.control.data),
|
|
27
27
|
possibleValueIds: d(
|
|
28
28
|
() => {
|
|
@@ -32,8 +32,8 @@ const H = /* @__PURE__ */ P({
|
|
|
32
32
|
)
|
|
33
33
|
}), s = (e) => {
|
|
34
34
|
const l = x(a.control.data, e);
|
|
35
|
-
a.changeValue(l),
|
|
36
|
-
},
|
|
35
|
+
a.changeValue(l), E(l.manualFilter);
|
|
36
|
+
}, T = d(
|
|
37
37
|
() => Y(c.value ?? [])
|
|
38
38
|
);
|
|
39
39
|
let r = null;
|
|
@@ -126,7 +126,7 @@ const H = /* @__PURE__ */ P({
|
|
|
126
126
|
};
|
|
127
127
|
return (e, l) => {
|
|
128
128
|
var t;
|
|
129
|
-
return N(), B(i(
|
|
129
|
+
return N(), B(i($), S(e.$attrs, {
|
|
130
130
|
id: o.labelForId,
|
|
131
131
|
ariaLabel: o.control.label,
|
|
132
132
|
disabled: o.disabled,
|
|
@@ -139,12 +139,12 @@ const H = /* @__PURE__ */ P({
|
|
|
139
139
|
"exclude-matches": o.control.data.patternFilter.isInverted,
|
|
140
140
|
"use-regex": f.value,
|
|
141
141
|
"selected-types": ((t = o.control.data.typeFilter) == null ? void 0 : t.selectedTypes) ?? [],
|
|
142
|
-
"possible-values":
|
|
142
|
+
"possible-values": T.value,
|
|
143
143
|
"filter-types": b.value,
|
|
144
144
|
"enable-pattern-filter": !0,
|
|
145
145
|
loading: i(p).selected === null,
|
|
146
146
|
"exclude-label": i(F),
|
|
147
|
-
"include-label": i(
|
|
147
|
+
"include-label": i(U),
|
|
148
148
|
error: !a.isValid,
|
|
149
149
|
"onUpdate:mode": k,
|
|
150
150
|
"onUpdate:manuallyIncluded": w,
|
|
@@ -160,5 +160,5 @@ const H = /* @__PURE__ */ P({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
export {
|
|
163
|
-
|
|
163
|
+
J as default
|
|
164
164
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, createBlock as o, openBlock as t, mergeProps as a } from "vue";
|
|
2
|
-
import l from "./MultimodeTwinlistControl-
|
|
2
|
+
import l from "./MultimodeTwinlistControl-yCdeWH2E-BXEYfhu_.js";
|
|
3
3
|
const u = /* @__PURE__ */ n({
|
|
4
4
|
__name: "NameFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as l } from "vue";
|
|
2
|
-
import { h as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { h as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-CYM7aU-A.js";
|
|
3
3
|
const u = /* @__PURE__ */ o({
|
|
4
4
|
__name: "NumberControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, computed as t, createBlock as d, openBlock as c, unref as p } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const b = 1, y = 0.1,
|
|
2
|
+
import { a as v, E as x } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
|
+
const b = 1, y = 0.1, f = /* @__PURE__ */ m({
|
|
4
4
|
__name: "NumberControlBase",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
@@ -48,5 +48,5 @@ const b = 1, y = 0.1, h = /* @__PURE__ */ m({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
|
-
h
|
|
51
|
+
f as h
|
|
52
52
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as s, computed as p, createBlock as c, openBlock as u, unref as r } from "vue";
|
|
2
|
+
import { j as m } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
3
|
import { c as b } from "./index-Blg1O3Fz-CGafpkU1.js";
|
|
4
|
-
const y = /* @__PURE__ */
|
|
4
|
+
const y = /* @__PURE__ */ s({
|
|
5
5
|
__name: "OneOfDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
@@ -14,7 +14,7 @@ const y = /* @__PURE__ */ p({
|
|
|
14
14
|
},
|
|
15
15
|
setup(e) {
|
|
16
16
|
var l, n;
|
|
17
|
-
const o = e, d = ((n = (l = o.control.schema) == null ? void 0 : l.oneOf) == null ? void 0 : n.map(b)) ?? [], a =
|
|
17
|
+
const o = e, d = ((n = (l = o.control.schema) == null ? void 0 : l.oneOf) == null ? void 0 : n.map(b)) ?? [], a = p({
|
|
18
18
|
get: () => o.control.data ?? "",
|
|
19
19
|
set: o.changeValue
|
|
20
20
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, computed as i, createElementBlock as t, openBlock as l, Fragment as c, createCommentVNode as b, renderList as h, createVNode as y, createElementVNode as s, unref as L, normalizeClass as M } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { u as g } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
3
|
const x = ["innerHTML"], B = ["innerHTML"], C = ["innerHTML"], F = /* @__PURE__ */ f({
|
|
4
4
|
__name: "RadioButtonsWithDescriptionControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, createBlock as t, openBlock as n, mergeProps as a } from "vue";
|
|
2
|
-
import { U as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { Y as p } from "./TextControl-
|
|
2
|
+
import { U as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-BNhdXilP.js";
|
|
3
|
+
import { Y as p } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
4
4
|
const l = /* @__PURE__ */ e({
|
|
5
5
|
__name: "RadioControl",
|
|
6
6
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as c, computed as i, ref as v, toRef as b, createElementBlock as f, createCommentVNode as y, onMounted as V, openBlock as n, Fragment as g, createBlock as u, unref as s } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { i as h, N as k } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
3
|
import { c as F } from "./index-Blg1O3Fz-CGafpkU1.js";
|
|
4
|
-
import { t as B } from "./usePossibleValues-
|
|
5
|
-
const
|
|
4
|
+
import { t as B } from "./usePossibleValues-B-W6u-1T-BQ31Bf2-.js";
|
|
5
|
+
const I = /* @__PURE__ */ c({
|
|
6
6
|
__name: "RadioControlBase",
|
|
7
7
|
props: {
|
|
8
8
|
control: {},
|
|
@@ -56,5 +56,5 @@ const O = /* @__PURE__ */ c({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
I as U
|
|
60
60
|
};
|
package/dist/{ResourceControlBase-CDpi3J6s-D0LxAMCa.js → ResourceControlBase-Bqq1PAX_-CDpMtg0d.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as B, computed as a, createElementBlock as c, openBlock as n, createBlock as _, resolveDynamicComponent as F, withCtx as L, createVNode as w, createCommentVNode as M, unref as N, renderSlot as $, createElementVNode as p, normalizeClass as g } from "vue";
|
|
2
|
-
import { Y as C,
|
|
3
|
-
import { k as
|
|
4
|
-
const
|
|
2
|
+
import { Y as C, E } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
|
|
3
|
+
import { k as I } from "./Tooltip-UlemzxdS-Brydd8ux.js";
|
|
4
|
+
const T = { class: "donut-container" }, U = ["viewBox"], D = ["r"], R = ["r"], z = ["viewBox"], P = ["r", "stroke-width"], S = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"], Y = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"], j = 0.5, o = 22, b = 10, A = /* @__PURE__ */ B({
|
|
5
5
|
__name: "SmallDonutChart",
|
|
6
6
|
props: {
|
|
7
7
|
value: {},
|
|
@@ -19,7 +19,7 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
19
19
|
return t.acceptValuesLargerThanMax ? e : Math.min(e, t.maxValue);
|
|
20
20
|
}), s = a(() => o - b), x = a(
|
|
21
21
|
// to account for rendering inaccuracies the background stroke is slightly smaller than the wedge stroke
|
|
22
|
-
() => s.value -
|
|
22
|
+
() => s.value - j
|
|
23
23
|
), u = a(() => o - s.value / 2), i = a(() => 2 * o), d = a(() => `0 0 ${i.value} ${i.value}`), r = a(() => 2 * Math.PI * u.value), m = (e) => {
|
|
24
24
|
if (t.maxValue <= 0 || !Number.isFinite(t.maxValue))
|
|
25
25
|
return r.value;
|
|
@@ -33,7 +33,7 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
33
33
|
), y = a(
|
|
34
34
|
() => m(h.value)
|
|
35
35
|
), v = a(() => `rotate(-90, ${o}, ${o})`), k = a(() => !Number.isFinite(t.maxValue));
|
|
36
|
-
return (e, V) => (n(), c("div",
|
|
36
|
+
return (e, V) => (n(), c("div", T, [
|
|
37
37
|
k.value ? (n(), c("svg", {
|
|
38
38
|
key: 0,
|
|
39
39
|
viewBox: d.value,
|
|
@@ -54,8 +54,8 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
54
54
|
r: b + 0.5,
|
|
55
55
|
"stroke-width": "1",
|
|
56
56
|
fill: "transparent"
|
|
57
|
-
}, null, 8,
|
|
58
|
-
], 8,
|
|
57
|
+
}, null, 8, R)
|
|
58
|
+
], 8, U)) : (n(), c("svg", {
|
|
59
59
|
key: 1,
|
|
60
60
|
viewBox: d.value,
|
|
61
61
|
class: "donut-chart"
|
|
@@ -67,7 +67,7 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
67
67
|
r: u.value,
|
|
68
68
|
"stroke-width": x.value,
|
|
69
69
|
fill: "transparent"
|
|
70
|
-
}, null, 8,
|
|
70
|
+
}, null, 8, P),
|
|
71
71
|
t.secondaryValue ? (n(), c("circle", {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: g(["value-wedge", "secondary-segment", { animate: t.animate }]),
|
|
@@ -79,7 +79,7 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
79
79
|
"stroke-dashoffset": y.value,
|
|
80
80
|
fill: "transparent",
|
|
81
81
|
transform: v.value
|
|
82
|
-
}, null, 10,
|
|
82
|
+
}, null, 10, S)) : M("", !0),
|
|
83
83
|
p("circle", {
|
|
84
84
|
class: g(["value-wedge", "primary-segment", { animate: t.animate }]),
|
|
85
85
|
cx: o,
|
|
@@ -90,11 +90,11 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
90
90
|
"stroke-dashoffset": f.value,
|
|
91
91
|
fill: "transparent",
|
|
92
92
|
transform: v.value
|
|
93
|
-
}, null, 10,
|
|
94
|
-
], 8,
|
|
93
|
+
}, null, 10, Y)
|
|
94
|
+
], 8, z))
|
|
95
95
|
]));
|
|
96
96
|
}
|
|
97
|
-
}), G = /* @__PURE__ */ C(
|
|
97
|
+
}), G = /* @__PURE__ */ C(A, [["__scopeId", "data-v-f344a6aa"]]), K = {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "chart"
|
|
100
100
|
}, Q = /* @__PURE__ */ B({
|
|
@@ -132,7 +132,7 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
132
132
|
var e;
|
|
133
133
|
return ((e = l.control.uischema.options) == null ? void 0 : e.disabledTooltip) || "";
|
|
134
134
|
}
|
|
135
|
-
), d = a(() => l.disabled && i.value ?
|
|
135
|
+
), d = a(() => l.disabled && i.value ? I : "div"), r = a(() => {
|
|
136
136
|
var e;
|
|
137
137
|
return ((e = l.control.uischema.options) == null ? void 0 : e.animate) ?? !0;
|
|
138
138
|
}), m = a(
|
|
@@ -153,7 +153,7 @@ const U = { class: "donut-container" }, A = ["viewBox"], D = ["r"], E = ["r"], R
|
|
|
153
153
|
class: "input-wrapper"
|
|
154
154
|
}, {
|
|
155
155
|
default: L(() => [
|
|
156
|
-
w(N(
|
|
156
|
+
w(N(E), {
|
|
157
157
|
ariaLabel: t.control.label,
|
|
158
158
|
"model-value": t.control.data,
|
|
159
159
|
min: f.value,
|