@knime/jsonforms 1.21.13 → 1.21.14
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 +6 -0
- package/dist/{AnyOfTwinlist-RYrVJHV_.js → AnyOfTwinlist-CV39JeCp.js} +1 -1
- package/dist/{CheckboxControl-BZQzU-Kr.js → CheckboxControl-CS4nuJTP.js} +1 -1
- package/dist/{CheckboxesControl-BwtY2fOR.js → CheckboxesControl-DXJMkZ49.js} +2 -2
- package/dist/{ColorControl-CpETHjy6.js → ColorControl-CpBVJh38.js} +1 -1
- package/dist/{ColorPreviewControl-3_H8I1ri.js → ColorPreviewControl-0VK3OqwY.js} +1 -1
- package/dist/{ComboBoxControl-DqRfhSYY.js → ComboBoxControl-avfNedsG.js} +4 -4
- package/dist/DateControl-B8E0JEIV.js +42 -0
- package/dist/DateTimeControl-DPjGzRqg.js +78 -0
- package/dist/{DateTimeFormatPickerControl-8pdgRAZx.js → DateTimeFormatPickerControl-Cx3yfT3O.js} +1 -1
- package/dist/DateTimeFormatPickerWithTypeControl-CodEVQG_.js +586 -0
- package/dist/{DropdownControl-BRwJh-oy.js → DropdownControl-DEggcwK1.js} +2 -2
- package/dist/{ExecutorCoresControl-iOlO4K2q.js → ExecutorCoresControl-CvCVcaHM.js} +1 -1
- package/dist/{ExecutorMemoryControl-BtEuJKmI.js → ExecutorMemoryControl-CpbVJNq4.js} +1 -1
- package/dist/{FileUploadControl-Bo7spGQA.js → FileUploadControl-CNUi9QfR.js} +21 -21
- package/dist/{GridSelectionControl-N52hhlRg.js → GridSelectionControl-HV2yNE4R.js} +14 -14
- package/dist/{HorizontalLayout-CdU7c7fd.js → HorizontalLayout-Cqf3hzxv.js} +1 -1
- package/dist/{IntegerControl-CZVvT_hf.js → IntegerControl-Ba5QkLCa.js} +1 -1
- package/dist/IntervalControl-DlLV8RQr.js +48 -0
- package/dist/{LinkControl-CMeBPEW1.js → LinkControl-COH9jvPg.js} +4 -4
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-l_tRM6I-.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cir2ym2M.js} +5 -5
- package/dist/{ManualTwinlistControl-Lq5T8rQ5.js → ManualTwinlistControl-jJGxlq9j.js} +3 -3
- package/dist/{MultiSelectListBoxControl-CzeR-Wbl.js → MultiSelectListBoxControl-DcWDraNF.js} +12 -12
- package/dist/{MultimodeTwinlistControl-Co2COblq.js → MultimodeTwinlistControl-B-rEhgKQ.js} +1 -1
- package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-BFrN-w7G.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-yhmiIg95.js} +5 -5
- package/dist/{NameFilter-BfYUOZX-.js → NameFilter-BFKNf9cO.js} +1 -1
- package/dist/{NumberControl-D5LeZR7g.js → NumberControl-BAxGZy_4.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-yBfQ2lTo.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Dlxx71hk.js} +2 -2
- package/dist/{OneOfDropdown-DkXPGVGA.js → OneOfDropdown-DcetHKT5.js} +4 -4
- package/dist/{RadioButtonsWithDescriptionControl-BZEiPIT7.js → RadioButtonsWithDescriptionControl-pZ0gJ6iz.js} +4 -4
- package/dist/{RadioControl-BM8jzumR.js → RadioControl-B8-nxddP.js} +1 -1
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DEZ-BDbe.js → RadioControlBase.vue_vue_type_script_setup_true_lang-8xWE-iQR.js} +8 -8
- package/dist/ResourceControlBase-ZMTuwwL2.js +86 -0
- package/dist/{RichTextControl-BSDuXS-r.js → RichTextControl-kptCYz2A.js} +5874 -4964
- package/dist/{SectionHeading-CQPP2Ldw.js → SectionHeading-MlqCj5BS.js} +1 -1
- package/dist/{SectionLayout-DVSBUJWh.js → SectionLayout-nV1GnghP.js} +3 -3
- package/dist/SettingsSubPanel-Z6urYwz1.js +5 -0
- package/dist/{SettingsSubPanelLayout-BGGUILX0.js → SettingsSubPanelLayout-BNMJbUsL.js} +4 -4
- package/dist/{SimpleButtonControl-CrZYDy2d.js → SimpleButtonControl-DZFYl2H3.js} +8 -8
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-zrzBlOHh.js +27089 -0
- package/dist/{SimpleTwinlistControl-DNXi9aTL.js → SimpleTwinlistControl-Ds2BQOoO.js} +2 -2
- package/dist/{SingleSelectControl-UgYnjUWO.js → SingleSelectControl-CLv_Mah-.js} +2 -2
- package/dist/{SingleSelectListBoxControl-CxkgaK13.js → SingleSelectListBoxControl-DM_5t3Nv.js} +3 -3
- package/dist/{SortListControl-C_ov2UWK.js → SortListControl-COd0WHwd.js} +1 -1
- package/dist/{StyledListItem-CzxxmMCV.js → StyledListItem-D3NbpWl3.js} +1 -1
- package/dist/{TeamAndSpacesControl-D7oS2zYV.js → TeamAndSpacesControl-A8mWrSE4.js} +1 -1
- package/dist/{TeamResourceControl-CYobSLvC.js → TeamResourceControl-CAgwzjRZ.js} +1 -1
- package/dist/{TextAreaControl-AG_b-Z5X.js → TextAreaControl-DRBGqA7a.js} +1 -1
- package/dist/{TextControl-BSEmxN5j.js → TextControl--Tw-AE3y.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-CadH1IKc.js → TextControl.vue_vue_type_script_setup_true_lang-PdbUWJUv.js} +2 -2
- package/dist/TimeControl-D_hEPt2Z.js +69 -0
- package/dist/TimeframesControl-EKcriaC8.js +345 -0
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-SsKJamsg.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-BRq0ANwm.js} +2 -2
- package/dist/{TypedStringFilter-DAcGj5q1.js → TypedStringFilter-UUuSnJNk.js} +1 -1
- package/dist/{ValueSwitchControl-CXrI8Yl-.js → ValueSwitchControl-BwERUIyr.js} +1 -1
- package/dist/{VerticalLayout-eL6w0Hg9.js → VerticalLayout-BET3pZ_K.js} +2 -2
- package/dist/{VerticalLayoutBase-B9SsD2_6.js → VerticalLayoutBase-HYtDwVLA.js} +1 -1
- package/dist/ZonedDateTimeControl-CsbZwGMX.js +77 -0
- package/dist/{_Uint8Array-Du4fEgNS.js → _Uint8Array-DJimCh8a.js} +5 -7
- package/dist/classApi-CHpAZrj3.js +3328 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/plainDateTimeUtils-CR0UhpkD.js +52 -0
- package/dist/src/composables/usePlainDateTimeBatch.d.ts +31 -0
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/utils/plainDateTimeUtils.d.ts +66 -0
- package/dist/testing.js +4285 -3982
- package/dist/{toString-Cng8dMI8.js → toString-B8vqfiDe.js} +3 -4
- package/dist/{useBuiltinValidations-CT2mv4JV.js → useBuiltinValidations-CzYsm8oq.js} +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ.js +2003 -0
- package/dist/usePlainDateTimeBatch-Bd2G-GY9.js +34 -0
- package/dist/{usePossibleValues-DlVd3QMh.js → usePossibleValues-CGt7yrJ6.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-UbVZb8Wt.js → useUnknownValuesInTwinlist-Bez1tY4_.js} +1 -1
- package/package.json +5 -8
- package/dist/DateControl-Cg1q7qVH.js +0 -35
- package/dist/DateTimeControl-C7EwnT5D.js +0 -44
- package/dist/DateTimeFormatPickerWithTypeControl-oBFnJRkM.js +0 -464
- package/dist/IntervalControl-DW-jmzYH.js +0 -751
- package/dist/ResourceControlBase-Djv2vDNo.js +0 -69
- package/dist/SettingsSubPanel-DKVUGp-Q.js +0 -5
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-3pf9Mad5.js +0 -28295
- package/dist/TimeControl-GY-l_p55.js +0 -35
- package/dist/TimePartInput-BGCbCcks.js +0 -254
- package/dist/TimeframesControl-BT_-Fm_A.js +0 -87
- package/dist/Tooltip-Bc8zeqxg.js +0 -24
- package/dist/ValueSwitch-DnpLqjm_.js +0 -130
- package/dist/ZonedDateTimeControl-y5IsH4g_.js +0 -66
- package/dist/_baseIteratee-echQG1Gb.js +0 -308
- package/dist/arrow-dropdown-DMFBPPcK.js +0 -17
- package/dist/floating-ui.vue-Bk6u3tWN.js +0 -1060
- package/dist/localTimeUtils-DlStha9G.js +0 -12315
- package/dist/popper-iehk3xNV.js +0 -923
- package/dist/src/utils/localTimeUtils.d.ts +0 -18
- package/dist/useDropdownNavigation-EOwf_fL0.js +0 -946
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as o, openBlock as r, createBlock as m, unref as s } from "vue";
|
|
2
|
-
import { l as i, D as h } from "./localTimeUtils-DlStha9G.js";
|
|
3
|
-
const v = /* @__PURE__ */ u({
|
|
4
|
-
__name: "TimeControl",
|
|
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(e) {
|
|
15
|
-
const l = e, a = o(() => i.fromString(l.control.data)), n = o(() => l.control.uischema.options), d = o(
|
|
16
|
-
() => n.value?.showMilliseconds ?? !0
|
|
17
|
-
);
|
|
18
|
-
return (p, t) => (r(), m(s(h), {
|
|
19
|
-
id: e.labelForId,
|
|
20
|
-
"model-value": a.value,
|
|
21
|
-
required: !0,
|
|
22
|
-
compact: "",
|
|
23
|
-
disabled: e.disabled,
|
|
24
|
-
"show-date": !1,
|
|
25
|
-
"show-time": !0,
|
|
26
|
-
"show-seconds": n.value?.showSeconds,
|
|
27
|
-
"show-milliseconds": d.value,
|
|
28
|
-
"is-valid": e.isValid,
|
|
29
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.changeValue(s(i).toString(c)))
|
|
30
|
-
}, null, 8, ["id", "model-value", "disabled", "show-seconds", "show-milliseconds", "is-valid"]));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
v as default
|
|
35
|
-
};
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { A as f } from "./arrow-dropdown-DMFBPPcK.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { resolveComponent as V, openBlock as m, createElementBlock as h, normalizeClass as a, createElementVNode as o, createCommentVNode as c, withModifiers as r, createVNode as p } from "vue";
|
|
4
|
-
import { _ as v } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-3pf9Mad5.js";
|
|
5
|
-
const g = (t) => Math.max(Math.floor(Math.log10(Math.abs(t))), 0) + 1, b = 200, I = 50, E = 1, N = {
|
|
6
|
-
name: "TimePartInput",
|
|
7
|
-
components: {
|
|
8
|
-
ArrowIcon: f
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: {
|
|
12
|
-
default: 0,
|
|
13
|
-
type: [Number, String]
|
|
14
|
-
},
|
|
15
|
-
id: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: null
|
|
18
|
-
},
|
|
19
|
-
min: {
|
|
20
|
-
default: Number.MIN_SAFE_INTEGER,
|
|
21
|
-
type: Number
|
|
22
|
-
},
|
|
23
|
-
max: {
|
|
24
|
-
default: Number.MAX_SAFE_INTEGER,
|
|
25
|
-
type: Number
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* Minimum number of digits shown, non existent digits will be filled with zeros (0)
|
|
29
|
-
* e.g 3 -> 001, no leading zeros with the default 0
|
|
30
|
-
*/
|
|
31
|
-
minDigits: {
|
|
32
|
-
default: 0,
|
|
33
|
-
type: Number
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* Validity controlled by the parent component to be flexible.
|
|
37
|
-
*/
|
|
38
|
-
isValid: {
|
|
39
|
-
default: !0,
|
|
40
|
-
type: Boolean
|
|
41
|
-
},
|
|
42
|
-
inputClasses: {
|
|
43
|
-
default: "",
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
default: !1,
|
|
48
|
-
type: Boolean
|
|
49
|
-
},
|
|
50
|
-
compact: {
|
|
51
|
-
default: !1,
|
|
52
|
-
type: Boolean
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
emits: ["update:modelValue", "bounds"],
|
|
56
|
-
data() {
|
|
57
|
-
return {
|
|
58
|
-
clicked: !1,
|
|
59
|
-
// false to prevent unintended 'mouseup' or 'mouseleave' events.
|
|
60
|
-
hovered: !1,
|
|
61
|
-
// if the input field is currently hovered or not
|
|
62
|
-
/* @type {String|Number} */
|
|
63
|
-
localValue: this.modelValue
|
|
64
|
-
// value with leading zeros
|
|
65
|
-
};
|
|
66
|
-
},
|
|
67
|
-
computed: {
|
|
68
|
-
stepSize() {
|
|
69
|
-
return E;
|
|
70
|
-
},
|
|
71
|
-
inputClassList() {
|
|
72
|
-
let t = this.inputClasses;
|
|
73
|
-
return this.hovered && (t += " hover"), t;
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
watch: {
|
|
77
|
-
modelValue: {
|
|
78
|
-
handler(t) {
|
|
79
|
-
this.localValue = this.padValue(t);
|
|
80
|
-
},
|
|
81
|
-
immediate: !0
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* The reference to the timeout which is set when
|
|
86
|
-
* a user clicks one of the numeric spinner wheels. This
|
|
87
|
-
* Timeout will trigger the spinnerArrowInterval.
|
|
88
|
-
*/
|
|
89
|
-
spinnerArrowTimeout: null,
|
|
90
|
-
/**
|
|
91
|
-
* This interval rapid calls the change value method until the
|
|
92
|
-
* user releases the mouse.
|
|
93
|
-
*/
|
|
94
|
-
spinnerArrowInterval: null,
|
|
95
|
-
mounted() {
|
|
96
|
-
this.initialValue = this.modelValue;
|
|
97
|
-
},
|
|
98
|
-
methods: {
|
|
99
|
-
/**
|
|
100
|
-
* Check min/max limits and return details about it
|
|
101
|
-
* @param {Number} value - value to check for min/max bounds
|
|
102
|
-
* @returns {Object} - bounds info object also used for @bounds event
|
|
103
|
-
*/
|
|
104
|
-
limitBounds(t) {
|
|
105
|
-
return t < this.min ? {
|
|
106
|
-
type: "min",
|
|
107
|
-
limit: this.min,
|
|
108
|
-
input: t,
|
|
109
|
-
value: this.min
|
|
110
|
-
} : t > this.max ? {
|
|
111
|
-
type: "max",
|
|
112
|
-
limit: this.max,
|
|
113
|
-
input: t,
|
|
114
|
-
value: this.max
|
|
115
|
-
} : {
|
|
116
|
-
value: t
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
/**
|
|
120
|
-
* Pad with zeros based on minDigits prop
|
|
121
|
-
*
|
|
122
|
-
* @param {Number} value
|
|
123
|
-
* @returns {String|Number}
|
|
124
|
-
*/
|
|
125
|
-
padValue(t) {
|
|
126
|
-
if (isNaN(t) || !t && t !== 0 || t < 0)
|
|
127
|
-
return t;
|
|
128
|
-
const e = t.toString(10);
|
|
129
|
-
return this.minDigits < 1 ? e : e.padStart(this.minDigits, "0");
|
|
130
|
-
},
|
|
131
|
-
getValue() {
|
|
132
|
-
return parseInt(this.$refs.input.value, 10);
|
|
133
|
-
},
|
|
134
|
-
onBlur() {
|
|
135
|
-
this.localValue = this.padValue(this.modelValue);
|
|
136
|
-
},
|
|
137
|
-
onInput(t) {
|
|
138
|
-
const e = t.target.value, i = parseInt(e, 10);
|
|
139
|
-
if (e === "")
|
|
140
|
-
this.localValue = "";
|
|
141
|
-
else {
|
|
142
|
-
const u = i.toString(10).length;
|
|
143
|
-
if (e === "")
|
|
144
|
-
return;
|
|
145
|
-
if (isNaN(i) || u > g(this.max)) {
|
|
146
|
-
this.$refs.input.value = this.padValue(this.localValue);
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
const l = this.limitBounds(i);
|
|
151
|
-
l.type ? this.$emit("bounds", l) : this.$emit("update:modelValue", l.value);
|
|
152
|
-
},
|
|
153
|
-
validate(t) {
|
|
154
|
-
let e = !0, i;
|
|
155
|
-
return t = typeof t > "u" ? this.getValue() : t, typeof t != "number" || isNaN(t) ? (e = !1, i = "Current value is not a number.") : (this.min > t || this.max < t) && (e = !1, i = "Current value is outside allowed range."), { isValid: e, errorMessage: i };
|
|
156
|
-
},
|
|
157
|
-
/**
|
|
158
|
-
* Change value updates the actual value of the input field if a valid new value
|
|
159
|
-
* can be found. It prevents users from further invalidating the value in the input
|
|
160
|
-
* by moving in the wrong direction (lower than min/higher than max).
|
|
161
|
-
*
|
|
162
|
-
* @param {Number} increment - the amount by which to change the current value.
|
|
163
|
-
* @returns {undefined}
|
|
164
|
-
*/
|
|
165
|
-
changeValue(t) {
|
|
166
|
-
let e = this.getValue();
|
|
167
|
-
this.validate(e).isValid || (e < this.min ? e = this.min : e > this.max ? e = this.max : e = this.initialValue);
|
|
168
|
-
let i = e + t;
|
|
169
|
-
if (i = Math.round(i * 10) / 10, this.validate(i).isValid)
|
|
170
|
-
this.$refs.input.value = this.padValue(i), this.onInput({ target: this.$refs.input });
|
|
171
|
-
else {
|
|
172
|
-
const l = this.limitBounds(i);
|
|
173
|
-
l.type && this.$emit("bounds", l);
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
/**
|
|
177
|
-
* This method is the callback handler for mouse events on the input field controls.
|
|
178
|
-
* It is fired when either the up-arrow or down-arrow is pressed by the user. It manages
|
|
179
|
-
* both mousedown and mouseup events. It clears any existing timeouts or intervals which
|
|
180
|
-
* may have been set previously. It also recognizes when the mouse leaves the button
|
|
181
|
-
* (which could cause a mouseup event to be missed) and therefore uses the this.clicked
|
|
182
|
-
* data property to ensure it doesn't get stuck in an interval.
|
|
183
|
-
*
|
|
184
|
-
* @param {Event} e - the DOM event object which triggered the handler.
|
|
185
|
-
* @param {String} type - the type of button pressed (either 'increased' or 'decreased').
|
|
186
|
-
* @returns {undefined}
|
|
187
|
-
*/
|
|
188
|
-
mouseEvent(t, e) {
|
|
189
|
-
if (this.disabled)
|
|
190
|
-
return;
|
|
191
|
-
clearTimeout(this.spinnerArrowInterval), clearInterval(this.spinnerArrowTimeout);
|
|
192
|
-
let i = this.stepSize;
|
|
193
|
-
if (e === "decrease" && (i *= -1), t.type === "mousedown") {
|
|
194
|
-
this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
|
|
195
|
-
this.spinnerArrowInterval = setInterval(() => {
|
|
196
|
-
this.changeValue(i);
|
|
197
|
-
}, I);
|
|
198
|
-
}, b);
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
this.clicked && (this.clicked = !1, this.changeValue(i));
|
|
202
|
-
},
|
|
203
|
-
toggleHover() {
|
|
204
|
-
this.hovered = !this.hovered;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}, M = ["id", "value", "min", "max", "step", "disabled"], y = {
|
|
208
|
-
key: 0,
|
|
209
|
-
class: "invalid-marker"
|
|
210
|
-
};
|
|
211
|
-
function A(t, e, i, l, u, n) {
|
|
212
|
-
const d = V("ArrowIcon");
|
|
213
|
-
return m(), h("div", {
|
|
214
|
-
class: a(["wrapper", { disabled: i.disabled, compact: i.compact }])
|
|
215
|
-
}, [
|
|
216
|
-
o("input", {
|
|
217
|
-
id: i.id,
|
|
218
|
-
ref: "input",
|
|
219
|
-
type: "number",
|
|
220
|
-
role: "spinButton",
|
|
221
|
-
value: u.localValue,
|
|
222
|
-
min: i.min,
|
|
223
|
-
max: i.max,
|
|
224
|
-
step: n.stepSize,
|
|
225
|
-
class: a(n.inputClassList),
|
|
226
|
-
disabled: i.disabled,
|
|
227
|
-
onInput: e[0] || (e[0] = (...s) => n.onInput && n.onInput(...s)),
|
|
228
|
-
onBlur: e[1] || (e[1] = (...s) => n.onBlur && n.onBlur(...s)),
|
|
229
|
-
onMouseenter: e[2] || (e[2] = (...s) => n.toggleHover && n.toggleHover(...s)),
|
|
230
|
-
onMouseleave: e[3] || (e[3] = (...s) => n.toggleHover && n.toggleHover(...s))
|
|
231
|
-
}, null, 42, M),
|
|
232
|
-
i.isValid ? c("", !0) : (m(), h("span", y)),
|
|
233
|
-
o("span", {
|
|
234
|
-
class: a(["increase", { disabled: i.disabled }]),
|
|
235
|
-
onMousedown: e[4] || (e[4] = r((s) => n.mouseEvent(s, "increase"), ["prevent"])),
|
|
236
|
-
onMouseup: e[5] || (e[5] = r((s) => n.mouseEvent(s, "increase"), ["prevent"])),
|
|
237
|
-
onMouseleave: e[6] || (e[6] = (s) => n.mouseEvent(s, "increase"))
|
|
238
|
-
}, [
|
|
239
|
-
p(d)
|
|
240
|
-
], 34),
|
|
241
|
-
o("span", {
|
|
242
|
-
class: a(["decrease", { disabled: i.disabled }]),
|
|
243
|
-
onMousedown: e[7] || (e[7] = r((s) => n.mouseEvent(s, "decrease"), ["prevent"])),
|
|
244
|
-
onMouseup: e[8] || (e[8] = r((s) => n.mouseEvent(s, "decrease"), ["prevent"])),
|
|
245
|
-
onMouseleave: e[9] || (e[9] = (s) => n.mouseEvent(s, "decrease"))
|
|
246
|
-
}, [
|
|
247
|
-
p(d)
|
|
248
|
-
], 34)
|
|
249
|
-
], 2);
|
|
250
|
-
}
|
|
251
|
-
const B = /* @__PURE__ */ v(N, [["render", A], ["__scopeId", "data-v-bf742de5"]]);
|
|
252
|
-
export {
|
|
253
|
-
B as T
|
|
254
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, openBlock as x, createElementBlock as V, createVNode as o, unref as a, withCtx as v, createElementVNode as i } from "vue";
|
|
2
|
-
import { T as r } from "./TimePartInput-BGCbCcks.js";
|
|
3
|
-
import { at as c, _ as b } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-3pf9Mad5.js";
|
|
4
|
-
const B = { class: "timeframe" }, N = { class: "input-wrapper" }, C = { class: "input-wrapper" }, F = /* @__PURE__ */ g({
|
|
5
|
-
__name: "TimeframesControl",
|
|
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(l) {
|
|
16
|
-
const p = ["hh", "mm", "ss"].length, m = l, e = (u, t, d) => {
|
|
17
|
-
const n = u?.value ?? u, f = Number(n), I = Number.isNaN(f) ? 0 : f, s = (m.control.data?.[t] ?? "00:00:00").split(":");
|
|
18
|
-
for (; s.length < p; )
|
|
19
|
-
s.push("00");
|
|
20
|
-
s[d] = String(I).padStart(2, "0"), t === "end" && (s[2] = "59");
|
|
21
|
-
const T = {
|
|
22
|
-
...m.control.data,
|
|
23
|
-
[t]: s.slice(0, p).join(":")
|
|
24
|
-
};
|
|
25
|
-
m.changeValue(T);
|
|
26
|
-
};
|
|
27
|
-
return (u, t) => (x(), V("div", B, [
|
|
28
|
-
o(a(c), { text: "Between" }, {
|
|
29
|
-
default: v(({ labelForId: d }) => [
|
|
30
|
-
i("div", N, [
|
|
31
|
-
o(a(r), {
|
|
32
|
-
id: d,
|
|
33
|
-
min: 0,
|
|
34
|
-
max: 23,
|
|
35
|
-
"min-digits": 2,
|
|
36
|
-
compact: "",
|
|
37
|
-
"model-value": parseInt((l.control.data?.start ?? "00:00:00").split(":")[0], 10),
|
|
38
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => e(n, "start", 0)),
|
|
39
|
-
onBounds: t[1] || (t[1] = (n) => e(n, "start", 0))
|
|
40
|
-
}, null, 8, ["id", "model-value"]),
|
|
41
|
-
t[8] || (t[8] = i("span", null, ":", -1)),
|
|
42
|
-
o(a(r), {
|
|
43
|
-
min: 0,
|
|
44
|
-
max: 59,
|
|
45
|
-
"min-digits": 2,
|
|
46
|
-
compact: "",
|
|
47
|
-
"model-value": parseInt((l.control.data?.start ?? "00:00:00").split(":")[1], 10),
|
|
48
|
-
"onUpdate:modelValue": t[2] || (t[2] = (n) => e(n, "start", 1)),
|
|
49
|
-
onBounds: t[3] || (t[3] = (n) => e(n, "start", 1))
|
|
50
|
-
}, null, 8, ["model-value"])
|
|
51
|
-
])
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}),
|
|
55
|
-
o(a(c), { text: "and" }, {
|
|
56
|
-
default: v(({ labelForId: d }) => [
|
|
57
|
-
i("div", C, [
|
|
58
|
-
o(a(r), {
|
|
59
|
-
id: d,
|
|
60
|
-
min: 0,
|
|
61
|
-
max: 23,
|
|
62
|
-
"min-digits": 2,
|
|
63
|
-
compact: "",
|
|
64
|
-
"model-value": parseInt((l.control.data?.end ?? "00:00:00").split(":")[0], 10),
|
|
65
|
-
"onUpdate:modelValue": t[4] || (t[4] = (n) => e(n, "end", 0)),
|
|
66
|
-
onBounds: t[5] || (t[5] = (n) => e(n, "end", 0))
|
|
67
|
-
}, null, 8, ["id", "model-value"]),
|
|
68
|
-
t[9] || (t[9] = i("span", null, ":", -1)),
|
|
69
|
-
o(a(r), {
|
|
70
|
-
min: 0,
|
|
71
|
-
max: 59,
|
|
72
|
-
"min-digits": 2,
|
|
73
|
-
compact: "",
|
|
74
|
-
"model-value": parseInt((l.control.data?.end ?? "00:00:00").split(":")[1], 10),
|
|
75
|
-
"onUpdate:modelValue": t[6] || (t[6] = (n) => e(n, "end", 1)),
|
|
76
|
-
onBounds: t[7] || (t[7] = (n) => e(n, "end", 1))
|
|
77
|
-
}, null, 8, ["model-value"])
|
|
78
|
-
])
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
})
|
|
82
|
-
]));
|
|
83
|
-
}
|
|
84
|
-
}), R = /* @__PURE__ */ b(F, [["__scopeId", "data-v-fef66a7b"]]);
|
|
85
|
-
export {
|
|
86
|
-
R as default
|
|
87
|
-
};
|
package/dist/Tooltip-Bc8zeqxg.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as o, renderSlot as s, toDisplayString as n, createCommentVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-3pf9Mad5.js";
|
|
3
|
-
const i = {
|
|
4
|
-
name: "Tooltip",
|
|
5
|
-
props: {
|
|
6
|
-
text: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: !0
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}, d = { class: "tooltip" }, p = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "text"
|
|
14
|
-
};
|
|
15
|
-
function _(r, l, t, m, u, f) {
|
|
16
|
-
return e(), o("div", d, [
|
|
17
|
-
s(r.$slots, "default", {}, void 0, !0),
|
|
18
|
-
t.text ? (e(), o("span", p, n(t.text), 1)) : c("", !0)
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
const k = /* @__PURE__ */ a(i, [["render", _], ["__scopeId", "data-v-64e1cb84"]]);
|
|
22
|
-
export {
|
|
23
|
-
k as T
|
|
24
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as o, createElementBlock as d, Fragment as n, renderList as v, normalizeClass as i, createElementVNode as s, toDisplayString as r, renderSlot as p, createCommentVNode as V, resolveComponent as B, createBlock as $, withCtx as g, normalizeProps as h, guardReactiveProps as S } from "vue";
|
|
2
|
-
import { R as k, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-3pf9Mad5.js";
|
|
3
|
-
const R = u({
|
|
4
|
-
name: "BaseRadioButtons",
|
|
5
|
-
props: {
|
|
6
|
-
id: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
name: {
|
|
15
|
-
type: String,
|
|
16
|
-
default() {
|
|
17
|
-
return `RadioButtons-${k()}`;
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
disabled: {
|
|
21
|
-
default: !1,
|
|
22
|
-
type: Boolean
|
|
23
|
-
},
|
|
24
|
-
possibleValues: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => [],
|
|
27
|
-
validator(e) {
|
|
28
|
-
return Array.isArray(e) ? e.every(
|
|
29
|
-
(a) => a.hasOwnProperty("id") && a.hasOwnProperty("text")
|
|
30
|
-
) : !1;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["update:modelValue"],
|
|
35
|
-
methods: {
|
|
36
|
-
onInput(e) {
|
|
37
|
-
const a = e.target.value;
|
|
38
|
-
this.$emit("update:modelValue", a);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}), w = ["id"], C = ["checked", "value", "name", "disabled"], I = ["title"];
|
|
42
|
-
function A(e, a, f, b, y, c) {
|
|
43
|
-
return o(), d("div", {
|
|
44
|
-
id: e.id,
|
|
45
|
-
role: "radiogroup"
|
|
46
|
-
}, [
|
|
47
|
-
(o(!0), d(n, null, v(e.possibleValues, (l) => (o(), d("label", {
|
|
48
|
-
key: `radio-${l.id}`,
|
|
49
|
-
class: i({ disabled: e.disabled || l.disabled })
|
|
50
|
-
}, [
|
|
51
|
-
s("input", {
|
|
52
|
-
ref_for: !0,
|
|
53
|
-
ref: "input",
|
|
54
|
-
checked: e.modelValue === l.id,
|
|
55
|
-
value: l.id,
|
|
56
|
-
name: e.name,
|
|
57
|
-
disabled: e.disabled || l.disabled,
|
|
58
|
-
type: "radio",
|
|
59
|
-
onChange: a[0] || (a[0] = (...t) => e.onInput && e.onInput(...t))
|
|
60
|
-
}, null, 40, C),
|
|
61
|
-
s("span", {
|
|
62
|
-
title: l.text
|
|
63
|
-
}, r(l.text), 9, I),
|
|
64
|
-
p(e.$slots, "default", { item: l }, void 0, !0),
|
|
65
|
-
l.subtext ? (o(), d(n, { key: 0 }, [
|
|
66
|
-
a[1] || (a[1] = s("br", null, null, -1)),
|
|
67
|
-
s("span", null, r(l.subtext), 1)
|
|
68
|
-
], 64)) : V("", !0)
|
|
69
|
-
], 2))), 128))
|
|
70
|
-
], 8, w);
|
|
71
|
-
}
|
|
72
|
-
const P = /* @__PURE__ */ m(R, [["render", A], ["__scopeId", "data-v-2bbebb4b"]]), _ = u({
|
|
73
|
-
name: "ValueSwitch",
|
|
74
|
-
components: {
|
|
75
|
-
BaseRadioButtons: P
|
|
76
|
-
},
|
|
77
|
-
props: {
|
|
78
|
-
id: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: null
|
|
81
|
-
},
|
|
82
|
-
modelValue: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: null
|
|
85
|
-
},
|
|
86
|
-
name: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: null
|
|
89
|
-
},
|
|
90
|
-
disabled: {
|
|
91
|
-
default: !1,
|
|
92
|
-
type: Boolean
|
|
93
|
-
},
|
|
94
|
-
possibleValues: {
|
|
95
|
-
type: Array,
|
|
96
|
-
default: () => []
|
|
97
|
-
},
|
|
98
|
-
compact: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: !1
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
emits: ["update:modelValue"]
|
|
104
|
-
});
|
|
105
|
-
function z(e, a, f, b, y, c) {
|
|
106
|
-
const l = B("BaseRadioButtons");
|
|
107
|
-
return o(), $(l, {
|
|
108
|
-
id: e.id,
|
|
109
|
-
ref: "radioButton",
|
|
110
|
-
"possible-values": e.possibleValues,
|
|
111
|
-
"model-value": e.modelValue,
|
|
112
|
-
name: e.name,
|
|
113
|
-
disabled: e.disabled,
|
|
114
|
-
class: i(["value-switch", {
|
|
115
|
-
disabled: e.disabled,
|
|
116
|
-
compact: e.compact,
|
|
117
|
-
normal: !e.compact
|
|
118
|
-
}]),
|
|
119
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => e.$emit("update:modelValue", t))
|
|
120
|
-
}, {
|
|
121
|
-
default: g((t) => [
|
|
122
|
-
p(e.$slots, "default", h(S(t)), void 0, !0)
|
|
123
|
-
]),
|
|
124
|
-
_: 3
|
|
125
|
-
}, 8, ["id", "possible-values", "model-value", "name", "disabled", "class"]);
|
|
126
|
-
}
|
|
127
|
-
const O = /* @__PURE__ */ m(_, [["render", z], ["__scopeId", "data-v-83231815"]]);
|
|
128
|
-
export {
|
|
129
|
-
O as V
|
|
130
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as a, openBlock as p, createElementBlock as V, createVNode as m, unref as c } from "vue";
|
|
2
|
-
import { f as b, t as f, D as h } from "./localTimeUtils-DlStha9G.js";
|
|
3
|
-
import { a3 as T, _ as g } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-3pf9Mad5.js";
|
|
4
|
-
const w = ["id"], C = /* @__PURE__ */ v({
|
|
5
|
-
__name: "ZonedDateTimeControl",
|
|
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(e) {
|
|
16
|
-
const s = e, n = a(() => s.control.uischema.options), o = a({
|
|
17
|
-
get: () => s.control.data,
|
|
18
|
-
set: s.changeValue
|
|
19
|
-
}), d = a({
|
|
20
|
-
get: () => f(o.value.dateTime),
|
|
21
|
-
set: (l) => {
|
|
22
|
-
o.value = {
|
|
23
|
-
...o.value,
|
|
24
|
-
// get wall time of UTC time
|
|
25
|
-
dateTime: b(l)
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}), u = a({
|
|
29
|
-
get: () => o.value.timeZone,
|
|
30
|
-
set: (l) => {
|
|
31
|
-
o.value = {
|
|
32
|
-
...o.value,
|
|
33
|
-
timeZone: l
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}), r = a(() => n.value?.possibleValues ?? []);
|
|
37
|
-
return (l, t) => (p(), V("div", {
|
|
38
|
-
id: e.labelForId,
|
|
39
|
-
class: "layout-container"
|
|
40
|
-
}, [
|
|
41
|
-
m(c(h), {
|
|
42
|
-
modelValue: d.value,
|
|
43
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) => d.value = i),
|
|
44
|
-
required: !0,
|
|
45
|
-
"show-timezone": !1,
|
|
46
|
-
"show-seconds": n.value?.showSeconds,
|
|
47
|
-
"show-milliseconds": n.value?.showMilliseconds,
|
|
48
|
-
timezone: "UTC",
|
|
49
|
-
"is-valid": e.isValid,
|
|
50
|
-
compact: "",
|
|
51
|
-
disabled: e.disabled
|
|
52
|
-
}, null, 8, ["modelValue", "show-seconds", "show-milliseconds", "is-valid", "disabled"]),
|
|
53
|
-
m(c(T), {
|
|
54
|
-
modelValue: u.value,
|
|
55
|
-
"onUpdate:modelValue": t[1] || (t[1] = (i) => u.value = i),
|
|
56
|
-
error: !e.isValid,
|
|
57
|
-
"possible-values": r.value,
|
|
58
|
-
disabled: e.disabled,
|
|
59
|
-
ariaLabel: "Timezone"
|
|
60
|
-
}, null, 8, ["modelValue", "error", "possible-values", "disabled"])
|
|
61
|
-
], 8, w));
|
|
62
|
-
}
|
|
63
|
-
}), z = /* @__PURE__ */ g(C, [["__scopeId", "data-v-bd87c35e"]]);
|
|
64
|
-
export {
|
|
65
|
-
z as default
|
|
66
|
-
};
|