@knime/jsonforms 1.19.6 → 1.20.1
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/CHANGELOG.md +28 -0
- package/dist/{AnyOfTwinlist-DXjbNRLq.js → AnyOfTwinlist-CosNPUKG.js} +1 -1
- package/dist/{Checkbox-CZIoPAZU.js → Checkbox-BLHyWo4X.js} +1 -1
- package/dist/{CheckboxControl-D6LP2SAg.js → CheckboxControl-DyBcYCFe.js} +1 -1
- package/dist/{CheckboxesControl-D9DA7-T0.js → CheckboxesControl-DqcN6RcZ.js} +2 -2
- package/dist/{ColorControl-rCN_X6Wk.js → ColorControl-CPklP_Ox.js} +1 -1
- package/dist/{ColorPreviewControl-Dv7_mc6t.js → ColorPreviewControl-BhbI9XDV.js} +1 -1
- package/dist/{ComboBoxControl-DUaaxMZ_.js → ComboBoxControl-DR9x8i0b.js} +8 -8
- package/dist/{DateControl-5AuxnnvM.js → DateControl-DJxV5wzs.js} +1 -1
- package/dist/DateTimeControl-CoNsGbev.js +44 -0
- package/dist/{DateTimeFormatPickerControl-CbLnDDbr.js → DateTimeFormatPickerControl-BmtxQjzI.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-BBpPB5TM.js → DateTimeFormatPickerWithTypeControl-CK7LsO-R.js} +12 -12
- package/dist/{DropdownControl-2UdsfufQ.js → DropdownControl-nLA0kshc.js} +5 -5
- package/dist/ExecutorCoresControl-BgB0R_Xv.js +42 -0
- package/dist/ExecutorMemoryControl-Ck5naUl2.js +41 -0
- package/dist/FileUploadControl-CByhtwi1.js +197 -0
- package/dist/GridSelectionControl-8g--blrX.js +115 -0
- package/dist/{HorizontalLayout-ao9JZxiP.js → HorizontalLayout-Bc4F2xJR.js} +6 -6
- package/dist/InputField-Gw6K93vY.js +148 -0
- package/dist/{IntegerControl-wq8pma-E.js → IntegerControl-CAh031mO.js} +1 -1
- package/dist/{IntervalControl-DuI-4Y1d.js → IntervalControl-ocjzEBto.js} +168 -184
- package/dist/LinkControl-BML6cXj-.js +35 -0
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-C2sH3IaG.js +57 -0
- package/dist/{LoadingIcon-BhelL9SM.js → LoadingIcon-B0S8ig5H.js} +1 -1
- package/dist/{ManualTwinlistControl-rP4L1RP6.js → ManualTwinlistControl-BdbrjZtS.js} +4 -4
- package/dist/{MultiSelectListBoxControl-iUqimLmu.js → MultiSelectListBoxControl-0M1iLfXZ.js} +2 -2
- package/dist/{MultimodeTwinlistControl-DTuLtZRx.js → MultimodeTwinlistControl-aL0Jr_Hp.js} +19 -20
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-DhQuoNrM.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C61plPNM.js} +2 -2
- package/dist/{MultiselectListBox-DijeK4wH.js → MultiselectListBox-BJqQv0AT.js} +5 -5
- package/dist/{NameFilter-C1_u0chZ.js → NameFilter-DvoXjvd8.js} +1 -1
- package/dist/{NumberControl-BYvfrBJs.js → NumberControl-BEYR3aHU.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DBbHZCg_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CSwuzJVa.js} +2 -2
- package/dist/{OneOfDropdown-BcqrG6U3.js → OneOfDropdown-Bg1JOuCZ.js} +1 -1
- package/dist/RadioButtonsWithDescriptionControl-Cmzn6X0W.js +57 -0
- package/dist/{RadioControl-BNB_hYVd.js → RadioControl-D4invwra.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-C7JiVgxq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CuOORFSE.js} +2 -2
- package/dist/ResourceControlBase-BCx6cBBz.js +158 -0
- package/dist/{RichTextControl-BIjtuTf7.js → RichTextControl-TbANBneT.js} +2059 -1991
- package/dist/{SectionHeading-CUxdd2GX.js → SectionHeading-DoNDREK2.js} +1 -1
- package/dist/{SectionLayout-NqTBT8Al.js → SectionLayout-Dsd4wFck.js} +3 -3
- package/dist/SettingsSubPanel-sQPONy-U.js +5 -0
- package/dist/{SettingsSubPanelLayout-Biu_QPw1.js → SettingsSubPanelLayout-DbYqmGOS.js} +7 -7
- package/dist/{SimpleButtonControl-B0cnKTy4.js → SimpleButtonControl-DhM4t6v3.js} +6 -6
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js +26176 -0
- package/dist/{SimpleTwinlistControl-BIIN8GzH.js → SimpleTwinlistControl-Chay0D48.js} +2 -2
- package/dist/{SingleSelectControl-GbRcLm19.js → SingleSelectControl-BRfqeLOh.js} +2 -2
- package/dist/{SingleSelectListBoxControl-DkRfB8oZ.js → SingleSelectListBoxControl-DyDspddM.js} +5 -5
- package/dist/{SortListControl-BTS1lJOo.js → SortListControl-DX0uhRfk.js} +104 -118
- package/dist/{StyledListItem-DBa0VNHX.js → StyledListItem-B_FaDixp.js} +1 -1
- package/dist/TeamAndSpacesControl-CVGPGpqd.js +64 -0
- package/dist/TeamResourceControl-DD-USgie.js +38 -0
- package/dist/{TextAreaControl-DrABn8Uh.js → TextAreaControl-BCIrrOzR.js} +1 -1
- package/dist/{TextControl-CHyUjofE.js → TextControl-B_2oeFoq.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CuCBV4pA.js +45 -0
- package/dist/{TimeControl-B4oVEJCX.js → TimeControl-CeL2KxIB.js} +1 -1
- package/dist/TimePartInput-BbHxGv7L.js +254 -0
- package/dist/TimeframesControl-BBUDxMaB.js +87 -0
- package/dist/Tooltip-B5O8iOuG.js +24 -0
- package/dist/{TwinlistControlBase-CiK7yseq.js → TwinlistControlBase--CFSodU_.js} +3 -3
- package/dist/{TwinlistLoadingInfo-x51VCOej.js → TwinlistLoadingInfo-aB5QCSFX.js} +18 -18
- package/dist/{TypedStringFilter-DC6B-Fds.js → TypedStringFilter-BjyKvhn1.js} +1 -1
- package/dist/{ValueSwitch-ChY5YK2o.js → ValueSwitch-DYxCMQ9c.js} +4 -4
- package/dist/{ValueSwitchControl-CJdAUIwq.js → ValueSwitchControl-CQkiPcwC.js} +1 -1
- package/dist/{VerticalLayout-DWbD5oCa.js → VerticalLayout-DygOb7L9.js} +2 -2
- package/dist/{VerticalLayoutBase-COwlULuo.js → VerticalLayoutBase-Dq_p4WmZ.js} +1 -1
- package/dist/{ZonedDateTimeControl-CLiwgCKR.js → ZonedDateTimeControl-CKyKzTtF.js} +2 -2
- package/dist/_Uint8Array-Boy5On8p.js +349 -0
- package/dist/_baseAssignValue-CG1hoqdJ.js +19 -0
- package/dist/{_baseEach-84mBqaP3.js → _baseEach-LxtQB6N-.js} +1 -1
- package/dist/_baseIteratee-BBGehgFZ.js +308 -0
- package/dist/floating-ui.vue-Bk6u3tWN.js +1060 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +53 -51
- package/dist/{localTimeUtils-LXk5i7aP.js → localTimeUtils-C7kma5fB.js} +3163 -3553
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- package/dist/src/constants/inputFormats.d.ts +14 -0
- package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/withDescription.d.ts +2 -0
- package/dist/src/layoutComponents/index.d.ts +2 -1
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +74 -0
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +16 -0
- package/dist/src/renderers/defaultRenderers.d.ts +152 -3
- package/dist/src/renderers/executorCoresResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/executorMemoryResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/fileUploadRenderer.d.ts +1 -0
- package/dist/src/renderers/gridSelectionRenderer.d.ts +1 -0
- package/dist/src/renderers/linkRenderer.d.ts +69 -0
- package/dist/src/renderers/passwordRenderer.d.ts +1 -0
- package/dist/src/renderers/quantityRenderer.d.ts +1 -0
- package/dist/src/renderers/radioWithDescriptionRenderer.d.ts +69 -0
- package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +76 -0
- package/dist/src/renderers/sortListRenderer.d.ts +1 -3
- package/dist/src/renderers/teamAndSpaceDropdownRenderer.d.ts +3 -0
- package/dist/src/renderers/teamResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/timeframesRenderer.d.ts +4 -0
- package/dist/src/renderers/usernameRenderer.d.ts +1 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +13 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/FileUploadControl.vue.d.ts +6 -0
- package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +9 -0
- package/dist/src/uiComponents/LinkControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/PasswordControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/QuantityControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +1 -3
- package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeframesControl.vue.d.ts +8 -0
- package/dist/src/uiComponents/UsernameControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/configs/executionContexts.config.d.ts +29 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +2 -2
- package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/resourceControls/SmallDonutChart.vue.d.ts +20 -0
- package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -3
- package/dist/testing.js +2602 -2589
- package/dist/toString-Bbm8o0hZ.js +25 -0
- package/dist/{useBuiltinValidations-BUVcN7lQ.js → useBuiltinValidations-zKGc6Pdt.js} +1 -1
- package/dist/useDropdownNavigation-EOwf_fL0.js +946 -0
- package/dist/{usePossibleValues-D16WFE9l.js → usePossibleValues-DhdKca4Z.js} +1 -1
- package/package.json +5 -5
- package/dist/DateTimeControl-DZjFx11V.js +0 -44
- package/dist/Label-Vxe-id5C.js +0 -218
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DGUZn4wH.js +0 -52
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js +0 -25430
- package/dist/SettingsSubPanel-CO7Sguho.js +0 -5
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-yTQu10VH.js +0 -45
- package/dist/_baseIteratee-CBFfQfHB.js +0 -640
- package/dist/floating-ui.vue-Fx4CxKut.js +0 -1057
- package/dist/toString-gvdOTqCo.js +0 -25
- package/dist/useDropdownNavigation-2Yhk7zes.js +0 -821
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @knime/json-forms
|
|
2
2
|
|
|
3
|
+
## 1.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6a0afa2]
|
|
8
|
+
- @knime/components@1.46.0
|
|
9
|
+
- @knime/rich-text-editor@1.8.17
|
|
10
|
+
|
|
11
|
+
## 1.20.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 80f6f17: - added KNIME Hub renderers
|
|
16
|
+
- grid and timeframe
|
|
17
|
+
- link
|
|
18
|
+
- quantity
|
|
19
|
+
- simple array layout
|
|
20
|
+
- file upload
|
|
21
|
+
- resources
|
|
22
|
+
- team resources
|
|
23
|
+
- execution memory
|
|
24
|
+
- execution cores
|
|
25
|
+
- username and password
|
|
26
|
+
- buttons with description (chub execution)
|
|
27
|
+
- team and space dropdown
|
|
28
|
+
- add description button to controls
|
|
29
|
+
- added a demo app using mock schemas
|
|
30
|
+
|
|
3
31
|
## 1.19.6
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as t, createBlock as p, mergeProps as a, unref as l } from "vue";
|
|
2
2
|
import { o as r } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { T as i } from "./TwinlistControlBase
|
|
3
|
+
import { T as i } from "./TwinlistControlBase--CFSodU_.js";
|
|
4
4
|
const y = /* @__PURE__ */ s({
|
|
5
5
|
__name: "AnyOfTwinlist",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as s, createElementBlock as i, normalizeClass as o, createElementVNode as d, renderSlot as c } from "vue";
|
|
2
|
-
import { _ as u } from "./
|
|
2
|
+
import { _ as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "Checkbox",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, ref as d, openBlock as r, createElementBlock as i, createElementVNode as u, createVNode as c, unref as v, renderSlot as a } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a8 as b, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
const f = { class: "checkbox-container" }, p = /* @__PURE__ */ s({
|
|
4
4
|
__name: "CheckboxControl",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, computed as n, ref as i, toRef as r, onMounted as u, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { I as f, _ as h } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
import { o as v } from "./index-Blg1O3Fz.js";
|
|
4
|
-
import { u as V } from "./usePossibleValues-
|
|
4
|
+
import { u as V } from "./usePossibleValues-DhdKca4Z.js";
|
|
5
5
|
const y = /* @__PURE__ */ c({
|
|
6
6
|
__name: "CheckboxesControl",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { M as t } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
const u = /* @__PURE__ */ o({
|
|
4
4
|
__name: "ColorControl",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, openBlock as e, createElementBlock as o, createVNode as y, unref as p, computed as s, normalizeStyle as m, createBlock as d, Fragment as f, renderList as k } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { J as w, _ as v, u as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
|
|
4
4
|
__name: "ColorPreviewEmptyState",
|
|
5
5
|
setup(a) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { resolveComponent as f, openBlock as r, createElementBlock as b, withModifiers as a, withKeys as u, normalizeClass as w, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as h, withDirectives as C, normalizeStyle as A, Fragment as D, renderList as P, createBlock as E, withCtx as O, createTextVNode as T, vShow as k, defineComponent as x, vModelText as $, toRef as z, computed as y, unref as N } from "vue";
|
|
2
|
-
import { u as U } from "./usePossibleValues-
|
|
2
|
+
import { u as U } from "./usePossibleValues-DhdKca4Z.js";
|
|
3
3
|
import { C as L } from "./close-CwP2mh9x.js";
|
|
4
|
-
import { _ as B,
|
|
4
|
+
import { _ as B, N as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { A as K } from "./arrow-dropdown-DMFBPPcK.js";
|
|
7
|
-
import { C as j } from "./Checkbox-
|
|
7
|
+
import { C as j } from "./Checkbox-BLHyWo4X.js";
|
|
8
8
|
import { c as W } from "./createMissingItem-B00Kg95q.js";
|
|
9
9
|
const g = () => {
|
|
10
10
|
let e = document?.activeElement;
|
|
11
11
|
for (; e?.shadowRoot; )
|
|
12
12
|
e = e?.shadowRoot?.activeElement;
|
|
13
13
|
return e;
|
|
14
|
-
}, v = 1, G = 28.5,
|
|
14
|
+
}, v = 1, G = 28.5, X = 8, q = {
|
|
15
15
|
name: "Multiselect",
|
|
16
16
|
components: {
|
|
17
17
|
Checkbox: j,
|
|
@@ -151,7 +151,7 @@ const g = () => {
|
|
|
151
151
|
},
|
|
152
152
|
optionsHeight() {
|
|
153
153
|
return this.useSpecificOptionsHeight ? {
|
|
154
|
-
"max-height": `${this.sizeVisibleOptions * G +
|
|
154
|
+
"max-height": `${this.sizeVisibleOptions * G + X}px`
|
|
155
155
|
} : {};
|
|
156
156
|
},
|
|
157
157
|
refocusElementOnClose() {
|
|
@@ -243,7 +243,7 @@ const g = () => {
|
|
|
243
243
|
).map((e) => e.$el && e.$el.firstChild));
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, J = { key: 1 }, Q = ["tabindex"];
|
|
247
247
|
function Y(e, t, l, n, c, o) {
|
|
248
248
|
const m = f("DropdownIcon"), d = f("Checkbox");
|
|
249
249
|
return r(), b("div", {
|
|
@@ -260,7 +260,7 @@ function Y(e, t, l, n, c, o) {
|
|
|
260
260
|
onFocusout: t[5] || (t[5] = a((...s) => o.onFocusOut && o.onFocusOut(...s), ["stop"])),
|
|
261
261
|
onMousedown: t[6] || (t[6] = (...s) => o.onMousedown && o.onMousedown(...s))
|
|
262
262
|
}, [
|
|
263
|
-
l.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (r(), b("div",
|
|
263
|
+
l.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (r(), b("div", J, [
|
|
264
264
|
p("div", {
|
|
265
265
|
ref: "toggle",
|
|
266
266
|
role: "button",
|
|
@@ -296,7 +296,7 @@ function Y(e, t, l, n, c, o) {
|
|
|
296
296
|
])
|
|
297
297
|
], 34);
|
|
298
298
|
}
|
|
299
|
-
const Z = /* @__PURE__ */ B(
|
|
299
|
+
const Z = /* @__PURE__ */ B(q, [["render", Y], ["__scopeId", "data-v-eeb8fb15"]]), I = "draft-id-combobox-preview-item", _ = x({
|
|
300
300
|
name: "ComboBox",
|
|
301
301
|
components: {
|
|
302
302
|
Multiselect: Z,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, computed as d, openBlock as s, createBlock as u, unref as r } from "vue";
|
|
2
|
-
import { f as m, t as c, D as p } from "./localTimeUtils-
|
|
2
|
+
import { f as m, t as c, D as p } from "./localTimeUtils-C7kma5fB.js";
|
|
3
3
|
const b = /* @__PURE__ */ i({
|
|
4
4
|
__name: "DateControl",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as r, computed as o, openBlock as v, createBlock as p, unref as h } from "vue";
|
|
2
|
+
import { t, f as w, D as f } from "./localTimeUtils-C7kma5fB.js";
|
|
3
|
+
const x = /* @__PURE__ */ r({
|
|
4
|
+
__name: "DateTimeControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
12
|
+
labelForId: {}
|
|
13
|
+
},
|
|
14
|
+
setup(a) {
|
|
15
|
+
const l = a, e = o(() => l.control.uischema.options), s = o(
|
|
16
|
+
() => e.value?.minimum ? t(e.value.minimum) : null
|
|
17
|
+
), u = o(
|
|
18
|
+
() => e.value?.maximum ? t(e.value.maximum) : null
|
|
19
|
+
), d = o(() => e.value?.twoLines ?? !0), i = o({
|
|
20
|
+
get: () => t(l.control.data),
|
|
21
|
+
set: (n) => l.changeValue(w(n))
|
|
22
|
+
});
|
|
23
|
+
return (n, m) => (v(), p(h(f), {
|
|
24
|
+
id: a.labelForId,
|
|
25
|
+
modelValue: i.value,
|
|
26
|
+
"onUpdate:modelValue": m[0] || (m[0] = (c) => i.value = c),
|
|
27
|
+
"two-lines": d.value,
|
|
28
|
+
required: !0,
|
|
29
|
+
"show-time": e.value?.showTime,
|
|
30
|
+
"show-seconds": e.value?.showSeconds,
|
|
31
|
+
"show-milliseconds": e.value?.showMilliseconds,
|
|
32
|
+
timezone: "UTC",
|
|
33
|
+
"date-format": e.value?.dateFormat,
|
|
34
|
+
min: s.value,
|
|
35
|
+
max: u.value,
|
|
36
|
+
"is-valid": a.isValid,
|
|
37
|
+
compact: "",
|
|
38
|
+
disabled: a.disabled
|
|
39
|
+
}, null, 8, ["id", "modelValue", "two-lines", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
x as default
|
|
44
|
+
};
|
package/dist/{DateTimeFormatPickerControl-CbLnDDbr.js → DateTimeFormatPickerControl-BmtxQjzI.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as a, openBlock as i, createBlock as c, unref as t } from "vue";
|
|
2
|
-
import { u as m,
|
|
2
|
+
import { u as m, O as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
const V = /* @__PURE__ */ s({
|
|
4
4
|
__name: "DateTimeFormatPickerControl",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { openBlock as v, createElementBlock as w, createElementVNode as y, defineComponent as A, useCssVars as q, computed as h, ref as g, watch as I, reactive as G, onMounted as J, nextTick as $, onUnmounted as Q, createBlock as O, unref as x, withCtx as X, createCommentVNode as C, createVNode as b, Fragment as Y, renderList as ee, normalizeClass as _, toDisplayString as H, useModel as te, withDirectives as oe, vModelText as le, normalizeStyle as ae, mergeModels as se } from "vue";
|
|
2
|
-
import { _ as S,
|
|
3
|
-
import { V as z } from "./ValueSwitch-
|
|
4
|
-
import { u as re, a as de, o as ce, s as ue, f as me } from "./floating-ui.vue-
|
|
5
|
-
import { u as pe, F as ve } from "./useDropdownNavigation-
|
|
6
|
-
import { L as fe } from "./LoadingIcon-
|
|
2
|
+
import { _ as S, P as ne, u as ie } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
|
+
import { V as z } from "./ValueSwitch-DYxCMQ9c.js";
|
|
4
|
+
import { u as re, a as de, o as ce, s as ue, f as me } from "./floating-ui.vue-Bk6u3tWN.js";
|
|
5
|
+
import { u as pe, F as ve } from "./useDropdownNavigation-EOwf_fL0.js";
|
|
6
|
+
import { L as fe } from "./LoadingIcon-B0S8ig5H.js";
|
|
7
7
|
const ye = {
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
fill: "none",
|
|
@@ -89,7 +89,7 @@ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-con
|
|
|
89
89
|
temporalType: e.temporalType
|
|
90
90
|
}), {
|
|
91
91
|
currentIndex: R,
|
|
92
|
-
onKeydown:
|
|
92
|
+
onKeydown: P,
|
|
93
93
|
resetNavigation: Z,
|
|
94
94
|
setElement: W
|
|
95
95
|
} = pe({
|
|
@@ -141,11 +141,11 @@ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-con
|
|
|
141
141
|
const o = t.offsetTop + U, s = t.clientHeight + t.scrollTop, T = e.offsetTop + e.offsetHeight - o;
|
|
142
142
|
T > s ? t.scrollTop = T - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, N = (e) => {
|
|
145
145
|
const t = p[`${e}-${a.value}-${d.value}`];
|
|
146
146
|
t && K(t);
|
|
147
147
|
}, B = async (e, t, o) => {
|
|
148
|
-
d.value = t ?? d.value, a.value = o ?? a.value, await $(), u.value = e,
|
|
148
|
+
d.value = t ?? d.value, a.value = o ?? a.value, await $(), u.value = e, N(e);
|
|
149
149
|
const s = l.value.findIndex(
|
|
150
150
|
(T) => T.format === e
|
|
151
151
|
);
|
|
@@ -161,7 +161,7 @@ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-con
|
|
|
161
161
|
if (e === null)
|
|
162
162
|
return;
|
|
163
163
|
const t = l.value?.[e]?.format;
|
|
164
|
-
t &&
|
|
164
|
+
t && N(t);
|
|
165
165
|
}), I([d, a], () => {
|
|
166
166
|
d.value === r.value?.temporalType && a.value === r.value?.category ? B(
|
|
167
167
|
r.value.format,
|
|
@@ -236,7 +236,7 @@ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-con
|
|
|
236
236
|
tabindex: "0",
|
|
237
237
|
role: "menu",
|
|
238
238
|
onKeydown: t[2] || (t[2] = //@ts-ignore
|
|
239
|
-
(...o) => x(
|
|
239
|
+
(...o) => x(P) && x(P)(...o))
|
|
240
240
|
}, [
|
|
241
241
|
l.value === null ? (v(), w("div", xe, [
|
|
242
242
|
b(fe, { class: "loading-spinner" })
|
|
@@ -368,7 +368,7 @@ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-con
|
|
|
368
368
|
], 4)) : C("", !0)
|
|
369
369
|
]));
|
|
370
370
|
}
|
|
371
|
-
}), Se = /* @__PURE__ */ S(Ae, [["__scopeId", "data-v-1577d5ce"]]), Re = ["id"],
|
|
371
|
+
}), Se = /* @__PURE__ */ S(Ae, [["__scopeId", "data-v-1577d5ce"]]), Re = ["id"], Pe = /* @__PURE__ */ A({
|
|
372
372
|
__name: "DateTimeFormatPickerWithTypeControl",
|
|
373
373
|
props: {
|
|
374
374
|
control: {},
|
|
@@ -436,7 +436,7 @@ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-con
|
|
|
436
436
|
}, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
|
|
437
437
|
], 8, Re));
|
|
438
438
|
}
|
|
439
|
-
}), Le = /* @__PURE__ */ S(
|
|
439
|
+
}), Le = /* @__PURE__ */ S(Pe, [["__scopeId", "data-v-8517cafd"]]);
|
|
440
440
|
export {
|
|
441
441
|
Le as default
|
|
442
442
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as r, toRef as s, computed as o, openBlock as n, createBlock as t, unref as d } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as m } from "./usePossibleValues-
|
|
4
|
-
import { _ as b } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
const
|
|
2
|
+
import { K as c } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
|
+
import { u as m } from "./usePossibleValues-DhdKca4Z.js";
|
|
4
|
+
import { _ as b } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-C2sH3IaG.js";
|
|
5
|
+
const p = /* @__PURE__ */ r({
|
|
6
6
|
__name: "DropdownControl",
|
|
7
7
|
props: {
|
|
8
8
|
control: {},
|
|
@@ -37,5 +37,5 @@ const F = /* @__PURE__ */ r({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
p as default
|
|
41
41
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as p, computed as o, openBlock as h, createBlock as m, normalizeProps as _, guardReactiveProps as v, withCtx as f, createElementVNode as e, toDisplayString as s } from "vue";
|
|
2
|
+
import { R as x } from "./ResourceControlBase-BCx6cBBz.js";
|
|
3
|
+
import { _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
4
|
+
const y = { class: "info-container" }, V = { class: "chart-title" }, g = { class: "chart-description" }, B = /* @__PURE__ */ p({
|
|
5
|
+
__name: "ExecutorCoresControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(c) {
|
|
16
|
+
const t = c, i = o(
|
|
17
|
+
() => t.control.uischema.options?.donutTitle || ""
|
|
18
|
+
), n = o(
|
|
19
|
+
() => t.control.schema.secondaryValue || 0
|
|
20
|
+
), a = o(
|
|
21
|
+
() => t.control.uischema.options?.donutMax ?? 1 / 0
|
|
22
|
+
), l = o(
|
|
23
|
+
() => a.value === -1 ? "unlimited" : a.value
|
|
24
|
+
), r = o(
|
|
25
|
+
() => t.control.uischema.options?.isSharedContext ?? !1
|
|
26
|
+
), u = o(() => t.control.data + n.value), d = o(
|
|
27
|
+
() => `This execution context will use ${n.value} vCore tokens. In total, ${u.value} of ${l.value} vCore tokens available ${r.value ? "from the license" : "for this team"} will be used.`
|
|
28
|
+
);
|
|
29
|
+
return (b, k) => (h(), m(x, _(v(t)), {
|
|
30
|
+
"donut-info": f(() => [
|
|
31
|
+
e("div", y, [
|
|
32
|
+
e("div", V, s(i.value), 1),
|
|
33
|
+
e("div", g, s(d.value), 1)
|
|
34
|
+
])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 16));
|
|
38
|
+
}
|
|
39
|
+
}), T = /* @__PURE__ */ C(B, [["__scopeId", "data-v-67543247"]]);
|
|
40
|
+
export {
|
|
41
|
+
T as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as d, computed as o, openBlock as p, createBlock as m, normalizeProps as _, guardReactiveProps as h, withCtx as f, createElementVNode as e, toDisplayString as a } from "vue";
|
|
2
|
+
import { R as v } from "./ResourceControlBase-BCx6cBBz.js";
|
|
3
|
+
import { _ as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
4
|
+
const y = { class: "info-container" }, B = { class: "chart-title" }, g = { class: "chart-description" }, C = /* @__PURE__ */ d({
|
|
5
|
+
__name: "ExecutorMemoryControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(s) {
|
|
16
|
+
const t = s, n = o(
|
|
17
|
+
() => t.control.schema.secondaryValue || 0
|
|
18
|
+
), c = o(
|
|
19
|
+
() => t.control.uischema.options?.donutTitle || ""
|
|
20
|
+
), i = o(
|
|
21
|
+
() => t.control.uischema.options?.currentUsage ?? 0
|
|
22
|
+
), r = o(
|
|
23
|
+
() => t.control.uischema.options?.donutMax ?? 1 / 0
|
|
24
|
+
), l = o(() => n.value + i.value), u = o(
|
|
25
|
+
() => `This execution context will use a maximum of ${n.value} GB RAM.
|
|
26
|
+
In total, ${l.value} GB of ${r.value} GB available for this team will be used.`
|
|
27
|
+
);
|
|
28
|
+
return (V, b) => (p(), m(v, _(h(t)), {
|
|
29
|
+
"donut-info": f(() => [
|
|
30
|
+
e("div", y, [
|
|
31
|
+
e("div", B, a(c.value), 1),
|
|
32
|
+
e("div", g, a(u.value), 1)
|
|
33
|
+
])
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
}, 16));
|
|
37
|
+
}
|
|
38
|
+
}), I = /* @__PURE__ */ x(C, [["__scopeId", "data-v-515b606e"]]);
|
|
39
|
+
export {
|
|
40
|
+
I as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { defineComponent as N, ref as h, computed as g, openBlock as V, createElementBlock as G, createVNode as R, unref as q, createElementVNode as v, toDisplayString as K } from "vue";
|
|
2
|
+
import { C as E, G as W, A as $, B as I, y as Y, _ as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
|
+
import { e as J, o as Q, U as w, j as X, a as j, m as U, n as T, i as Z, S as k, g as z } from "./_Uint8Array-Boy5On8p.js";
|
|
4
|
+
import { b as ee } from "./_baseAssignValue-CG1hoqdJ.js";
|
|
5
|
+
import { i as te } from "./isArray-WzO_os3q.js";
|
|
6
|
+
var S = Object.create, re = /* @__PURE__ */ (function() {
|
|
7
|
+
function e() {
|
|
8
|
+
}
|
|
9
|
+
return function(t) {
|
|
10
|
+
if (!E(t))
|
|
11
|
+
return {};
|
|
12
|
+
if (S)
|
|
13
|
+
return S(t);
|
|
14
|
+
e.prototype = t;
|
|
15
|
+
var r = new e();
|
|
16
|
+
return e.prototype = void 0, r;
|
|
17
|
+
};
|
|
18
|
+
})();
|
|
19
|
+
function ne(e, t) {
|
|
20
|
+
for (var r = -1, a = e == null ? 0 : e.length; ++r < a && t(e[r], r, e) !== !1; )
|
|
21
|
+
;
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
var oe = Object.prototype, ae = oe.hasOwnProperty;
|
|
25
|
+
function ce(e, t, r) {
|
|
26
|
+
var a = e[t];
|
|
27
|
+
(!(ae.call(e, t) && J(a, r)) || r === void 0 && !(t in e)) && ee(e, t, r);
|
|
28
|
+
}
|
|
29
|
+
var ie = Q(Object.getPrototypeOf, Object), D = typeof exports == "object" && exports && !exports.nodeType && exports, O = D && typeof module == "object" && module && !module.nodeType && module, se = O && O.exports === D, C = se ? W.Buffer : void 0;
|
|
30
|
+
C && C.allocUnsafe;
|
|
31
|
+
function le(e, t) {
|
|
32
|
+
return e.slice();
|
|
33
|
+
}
|
|
34
|
+
var fe = Object.prototype, ue = fe.hasOwnProperty;
|
|
35
|
+
function be(e) {
|
|
36
|
+
var t = e.length, r = new e.constructor(t);
|
|
37
|
+
return t && typeof e[0] == "string" && ue.call(e, "index") && (r.index = e.index, r.input = e.input), r;
|
|
38
|
+
}
|
|
39
|
+
function m(e) {
|
|
40
|
+
var t = new e.constructor(e.byteLength);
|
|
41
|
+
return new w(t).set(new w(e)), t;
|
|
42
|
+
}
|
|
43
|
+
function pe(e, t) {
|
|
44
|
+
var r = m(e.buffer);
|
|
45
|
+
return new e.constructor(r, e.byteOffset, e.byteLength);
|
|
46
|
+
}
|
|
47
|
+
var de = /\w*$/;
|
|
48
|
+
function ge(e) {
|
|
49
|
+
var t = new e.constructor(e.source, de.exec(e));
|
|
50
|
+
return t.lastIndex = e.lastIndex, t;
|
|
51
|
+
}
|
|
52
|
+
var x = $ ? $.prototype : void 0, F = x ? x.valueOf : void 0;
|
|
53
|
+
function ye(e) {
|
|
54
|
+
return F ? Object(F.call(e)) : {};
|
|
55
|
+
}
|
|
56
|
+
function Te(e, t) {
|
|
57
|
+
var r = m(e.buffer);
|
|
58
|
+
return new e.constructor(r, e.byteOffset, e.length);
|
|
59
|
+
}
|
|
60
|
+
var je = "[object Boolean]", me = "[object Date]", Ae = "[object Map]", he = "[object Number]", ve = "[object RegExp]", $e = "[object Set]", we = "[object String]", Se = "[object Symbol]", Oe = "[object ArrayBuffer]", Ce = "[object DataView]", xe = "[object Float32Array]", Fe = "[object Float64Array]", Be = "[object Int8Array]", _e = "[object Int16Array]", Ee = "[object Int32Array]", Ie = "[object Uint8Array]", Ue = "[object Uint8ClampedArray]", De = "[object Uint16Array]", Me = "[object Uint32Array]";
|
|
61
|
+
function Pe(e, t, r) {
|
|
62
|
+
var a = e.constructor;
|
|
63
|
+
switch (t) {
|
|
64
|
+
case Oe:
|
|
65
|
+
return m(e);
|
|
66
|
+
case je:
|
|
67
|
+
case me:
|
|
68
|
+
return new a(+e);
|
|
69
|
+
case Ce:
|
|
70
|
+
return pe(e);
|
|
71
|
+
case xe:
|
|
72
|
+
case Fe:
|
|
73
|
+
case Be:
|
|
74
|
+
case _e:
|
|
75
|
+
case Ee:
|
|
76
|
+
case Ie:
|
|
77
|
+
case Ue:
|
|
78
|
+
case De:
|
|
79
|
+
case Me:
|
|
80
|
+
return Te(e);
|
|
81
|
+
case Ae:
|
|
82
|
+
return new a();
|
|
83
|
+
case he:
|
|
84
|
+
case we:
|
|
85
|
+
return new a(e);
|
|
86
|
+
case ve:
|
|
87
|
+
return ge(e);
|
|
88
|
+
case $e:
|
|
89
|
+
return new a();
|
|
90
|
+
case Se:
|
|
91
|
+
return ye(e);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function Le(e) {
|
|
95
|
+
return typeof e.constructor == "function" && !X(e) ? re(ie(e)) : {};
|
|
96
|
+
}
|
|
97
|
+
var Ne = "[object Map]";
|
|
98
|
+
function Ve(e) {
|
|
99
|
+
return I(e) && j(e) == Ne;
|
|
100
|
+
}
|
|
101
|
+
var B = T && T.isMap, Ge = B ? U(B) : Ve, Re = "[object Set]";
|
|
102
|
+
function qe(e) {
|
|
103
|
+
return I(e) && j(e) == Re;
|
|
104
|
+
}
|
|
105
|
+
var _ = T && T.isSet, Ke = _ ? U(_) : qe, M = "[object Arguments]", We = "[object Array]", Ye = "[object Boolean]", He = "[object Date]", Je = "[object Error]", P = "[object Function]", Qe = "[object GeneratorFunction]", Xe = "[object Map]", Ze = "[object Number]", L = "[object Object]", ke = "[object RegExp]", ze = "[object Set]", et = "[object String]", tt = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", ot = "[object DataView]", at = "[object Float32Array]", ct = "[object Float64Array]", it = "[object Int8Array]", st = "[object Int16Array]", lt = "[object Int32Array]", ft = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", bt = "[object Uint16Array]", pt = "[object Uint32Array]", n = {};
|
|
106
|
+
n[M] = n[We] = n[nt] = n[ot] = n[Ye] = n[He] = n[at] = n[ct] = n[it] = n[st] = n[lt] = n[Xe] = n[Ze] = n[L] = n[ke] = n[ze] = n[et] = n[tt] = n[ft] = n[ut] = n[bt] = n[pt] = !0;
|
|
107
|
+
n[Je] = n[P] = n[rt] = !1;
|
|
108
|
+
function y(e, t, r, a, u, c) {
|
|
109
|
+
var o;
|
|
110
|
+
if (o !== void 0)
|
|
111
|
+
return o;
|
|
112
|
+
if (!E(e))
|
|
113
|
+
return e;
|
|
114
|
+
var p = te(e);
|
|
115
|
+
if (p)
|
|
116
|
+
o = be(e);
|
|
117
|
+
else {
|
|
118
|
+
var i = j(e), d = i == P || i == Qe;
|
|
119
|
+
if (Z(e))
|
|
120
|
+
return le(e);
|
|
121
|
+
if (i == L || i == M || d && !u)
|
|
122
|
+
o = d ? {} : Le(e);
|
|
123
|
+
else {
|
|
124
|
+
if (!n[i])
|
|
125
|
+
return u ? e : {};
|
|
126
|
+
o = Pe(e, i);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
c || (c = new k());
|
|
130
|
+
var l = c.get(e);
|
|
131
|
+
if (l)
|
|
132
|
+
return l;
|
|
133
|
+
c.set(e, o), Ke(e) ? e.forEach(function(s) {
|
|
134
|
+
o.add(y(s, t, r, s, e, c));
|
|
135
|
+
}) : Ge(e) && e.forEach(function(s, f) {
|
|
136
|
+
o.set(f, y(s, t, r, f, e, c));
|
|
137
|
+
});
|
|
138
|
+
var b = z, A = p ? void 0 : b(e);
|
|
139
|
+
return ne(A || e, function(s, f) {
|
|
140
|
+
A && (f = s, s = e[f]), ce(o, f, y(s, t, r, f, e, c));
|
|
141
|
+
}), o;
|
|
142
|
+
}
|
|
143
|
+
var dt = 1, gt = 4;
|
|
144
|
+
function yt(e) {
|
|
145
|
+
return y(e, dt | gt);
|
|
146
|
+
}
|
|
147
|
+
const Tt = { class: "wrapper" }, jt = { class: "filename" }, mt = ["id", "aria-label", "accept", "multiple", "disabled"], At = /* @__PURE__ */ N({
|
|
148
|
+
inheritAttrs: !1,
|
|
149
|
+
__name: "FileUploadControl",
|
|
150
|
+
props: {
|
|
151
|
+
control: {},
|
|
152
|
+
handleChange: { type: Function },
|
|
153
|
+
changeValue: { type: Function },
|
|
154
|
+
disabled: { type: Boolean },
|
|
155
|
+
isValid: { type: Boolean },
|
|
156
|
+
onRegisterValidation: { type: Function },
|
|
157
|
+
labelForId: {}
|
|
158
|
+
},
|
|
159
|
+
setup(e) {
|
|
160
|
+
const t = e, r = h(yt(t.control.data)), a = g(
|
|
161
|
+
() => t.control.uischema.options?.accept ?? "*"
|
|
162
|
+
), u = g(
|
|
163
|
+
() => t.control.uischema.options?.multiple ?? !1
|
|
164
|
+
), c = h(null), o = g(() => r.value?.map?.(({ name: l }) => l).join(", ") || "No file selected"), p = g(() => `Select file${u.value ? "s" : ""}`), i = () => {
|
|
165
|
+
c.value?.click();
|
|
166
|
+
}, d = (l) => {
|
|
167
|
+
const b = l.target;
|
|
168
|
+
b.files && (r.value = Array.from(b.files), t.handleChange(t.control.path, Array.from(r.value)));
|
|
169
|
+
};
|
|
170
|
+
return (l, b) => (V(), G("div", Tt, [
|
|
171
|
+
R(q(Y), {
|
|
172
|
+
class: "file-select-button",
|
|
173
|
+
label: p.value,
|
|
174
|
+
"leading-icon": "search",
|
|
175
|
+
variant: "outlined",
|
|
176
|
+
disabled: e.disabled,
|
|
177
|
+
onClick: i
|
|
178
|
+
}, null, 8, ["label", "disabled"]),
|
|
179
|
+
v("span", jt, K(o.value), 1),
|
|
180
|
+
v("input", {
|
|
181
|
+
id: e.labelForId,
|
|
182
|
+
ref_key: "fileSelector",
|
|
183
|
+
ref: c,
|
|
184
|
+
"aria-label": e.control.label,
|
|
185
|
+
type: "file",
|
|
186
|
+
accept: a.value,
|
|
187
|
+
multiple: u.value,
|
|
188
|
+
disabled: e.disabled,
|
|
189
|
+
hidden: "",
|
|
190
|
+
onChange: d
|
|
191
|
+
}, null, 40, mt)
|
|
192
|
+
]));
|
|
193
|
+
}
|
|
194
|
+
}), Ot = /* @__PURE__ */ H(At, [["__scopeId", "data-v-7d1e4998"]]);
|
|
195
|
+
export {
|
|
196
|
+
Ot as default
|
|
197
|
+
};
|