@knime/scripting-editor 0.0.131 → 0.0.133

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.
Files changed (110) hide show
  1. package/dist/{AnyOfTwinlist-DEv6xgTn-BV0O3had.js → AnyOfTwinlist-CKNl_Xwk-DpdmD6Y_.js} +1 -1
  2. package/dist/{ArrayLayout-xpUEX4UY.js → ArrayLayout-XksJXnhS.js} +51 -51
  3. package/dist/{ButtonControl-BFG84O1r.js → ButtonControl-CGN4of4k.js} +5 -5
  4. package/dist/{CheckboxControl-Yqf7_a5P--lSSti7m.js → CheckboxControl-Doj5Pl3W-Dk3mHCwf.js} +1 -1
  5. package/dist/{CheckboxesControl-Cx7qUDbd-ByGOCDtp.js → CheckboxesControl-of1RkErM-Depvhzov.js} +2 -2
  6. package/dist/{CodeEditorControl-DAfgzg-h.js → CodeEditorControl-Cw_Gj8Kn.js} +28 -28
  7. package/dist/{ColorControl-BjIoBGby-B54hb0gK.js → ColorControl-CYp6665w-Cz3T7gFq.js} +1 -1
  8. package/dist/{ColorPreviewControl-Cmpb3_o4--muSe_be.js → ColorPreviewControl-DASvbRv2-BcvEXrhU.js} +24 -24
  9. package/dist/{ComboBoxControl-DJsbSwD6-xuE8rZyf.js → ComboBoxControl-CDsmu2re-DX4k5SqO.js} +7 -7
  10. package/dist/{ConfigurationNodeNotSupported-Bkfoi87W.js → ConfigurationNodeNotSupported-DyQhBiW9.js} +3 -3
  11. package/dist/{ControlWithSubParameters-B9TiQfTU.js → ControlWithSubParameters-zcN9X0gF.js} +18 -14
  12. package/dist/{CredentialsControl-CqulYPUL.js → CredentialsControl-B0awnzBc.js} +2 -2
  13. package/dist/{CredentialsControlBase-x4zTZK8u.js → CredentialsControlBase-CMeDxKBK.js} +14 -14
  14. package/dist/{DateControl-CcuCk97j-CdiO3xtM.js → DateControl-CQqgNnLT-BwpIpPwC.js} +5 -5
  15. package/dist/DateTimeControl-CREQEjeO-DvTO-X97.js +112 -0
  16. package/dist/{DateTimeFormatPickerControl-CpaOPUR6-J_PpzzAB.js → DateTimeFormatPickerControl-C8vEg2z6-COYnZjFW.js} +1 -1
  17. package/dist/DialogFileExplorer-zbo5DDXP.js +433 -0
  18. package/dist/{DirtyTrackerRenderer-6k1ego1B.js → DirtyTrackerRenderer-DC192nyo.js} +1 -1
  19. package/dist/{DropdownControl-CpSZxjr1-C804I9fG.js → DropdownControl-CtwmuEsb-Cyfs0JQW.js} +2 -2
  20. package/dist/DynamicInputControl-DXw5qoOq.js +6 -0
  21. package/dist/{ExecutorCoresControl-DoG2-XCx-BC0pTSv1.js → ExecutorCoresControl-CoEYfg6t-Cc6LPHHw.js} +1 -1
  22. package/dist/{ExecutorMemoryControl-DqYRmLt2-DgmK5cxY.js → ExecutorMemoryControl-BljLEdwM-CJXpm-_6.js} +1 -1
  23. package/dist/{FileChooserControl-Cv9Nvwrw.js → FileChooserControl-B0tWVocx.js} +2 -2
  24. package/dist/{FileChooserControlBase-C4WoqeuQ.js → FileChooserControlBase-xHnkds47.js} +91 -91
  25. package/dist/{FileChooserControlForMultiFile-DJydfSjI.js → FileChooserControlForMultiFile-C_v0Qlrw.js} +1 -1
  26. package/dist/{FileUploadControl-IAwE26IH-LLTdmWyW.js → FileUploadControl-BN1ZcIOy-81dPQCFP.js} +138 -138
  27. package/dist/{GridSelectionControl-DUVIpMsY-CuyLvikR.js → GridSelectionControl-llAAbmgk-CX0TsQ0E.js} +32 -32
  28. package/dist/{HorizontalLayout-92oHZT6R--JjwD9hI.js → HorizontalLayout-jN2ocYG5-CrErZyTw.js} +5 -5
  29. package/dist/{IntegerControl-B2TyUPGu-BLpffmEs.js → IntegerControl-CaIxt1i8-DEsNKUHq.js} +1 -1
  30. package/dist/{IntervalControl-BbIwNXK3-DcVnnDMh.js → IntervalControl-t714rU_V-MGYedhl3.js} +3 -3
  31. package/dist/{LabeledGroup-oOuEM_pN.js → LabeledGroup-LQTFxJnW.js} +6 -6
  32. package/dist/{LegacyCredentialsControl-DAZOUpou.js → LegacyCredentialsControl-B7HDTB-Y.js} +24 -20
  33. package/dist/{LinkControl-Cmk_qiO_-CF2rBAA7.js → LinkControl-DHge9xPr-DJ2ZdJgk.js} +1 -1
  34. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-C0YzJo8M-DJVLdb5q.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cj3ak4Kd-CGPIwlnR.js} +1 -1
  35. package/dist/{ManualTwinlistControl-DTl3XPje-CnoltRZh.js → ManualTwinlistControl-DDabLDpL-CBO85_R7.js} +13 -13
  36. package/dist/{MultiFileChooserControl-1YghP5YI.js → MultiFileChooserControl-Bir5CRJ9.js} +15 -15
  37. package/dist/{MultiRuleWrapper-BnwWI1WL.js → MultiRuleWrapper-DwJa92_U.js} +1 -1
  38. package/dist/{MultiSelectListBoxControl-DIV0UiGV-CN3b9J9V.js → MultiSelectListBoxControl-DdWI84_Z-S4a3Gqjz.js} +32 -32
  39. package/dist/{MultimodeTwinlistControl-F1L7mwSB-GnzFL4Xl.js → MultimodeTwinlistControl-Da66Qd_9-Bbml7WCJ.js} +27 -27
  40. package/dist/{NameFilter-Crwz1wiJ-CU1s2b7c.js → NameFilter-CGftAGoS-eES5XN_m.js} +1 -1
  41. package/dist/{NumberControl-CTycpm1q-SsW1E9e6.js → NumberControl-D6IUlr0F-BY4ied5y.js} +1 -1
  42. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-CRNO3Yp4-DIZHQaJH.js → NumberControlBase.vue_vue_type_script_setup_true_lang-E8FQgjrx-D0v57kFS.js} +3 -3
  43. package/dist/{OneOfDropdown-B7KrUOWD-DAFKZmqZ.js → OneOfDropdown-C67MhziA-CpMIH2JQ.js} +5 -5
  44. package/dist/ProgressButtonControl-CxH6Cipu-C6HhyVpC.js +54 -0
  45. package/dist/{RadioButtonsWithDescriptionControl-UmWLsOmL-BjelKrcC.js → RadioButtonsWithDescriptionControl-CbJxLwdI-BoB6XMXH.js} +7 -7
  46. package/dist/{RadioControl-BAoCJNMH-VuiN6M_V.js → RadioControl-DcUIHhJC-BwptwkBW.js} +1 -1
  47. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DKx6ts7n-BNr3sbHh.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CWUPk9t_-DNZ6dVPk.js} +7 -7
  48. package/dist/{ResourceControlBase-97R2-qQ7-BBi11JJj.js → ResourceControlBase-BQY6errk-u3DjtQtM.js} +18 -18
  49. package/dist/RichTextControl-Mcxf362n-DdOUSE6M.js +19683 -0
  50. package/dist/{SectionLayout-DS6gpiV1-BN6brreP.js → SectionLayout-DyslAsrB-CUKYruK6.js} +13 -13
  51. package/dist/{SettingsSubPanelLayout-CJeD408x-yH9r1jii.js → SettingsSubPanelLayout-Cay8i6NA-DbMFWTQS.js} +7 -7
  52. package/dist/{SimpleTwinlistControl-L1tY6QlY-Dvmt0hp3.js → SimpleTwinlistControl-D4BFF9jE-CLzhAZh8.js} +2 -2
  53. package/dist/{SingleSelectControl-Ce9RLMjD-CTQ6TVF0.js → SingleSelectControl-D-yUZtl2-BUEaZUuq.js} +2 -2
  54. package/dist/{SingleSelectListBoxControl-Dv-XXwO4-BrMTb8AD.js → SingleSelectListBoxControl-BpC-WEID-Fkrf5Nzh.js} +11 -11
  55. package/dist/{SortListControl-BlsAnJjH-tbIOGxZ_.js → SortListControl-7mmEkodd-CNOnx3jy.js} +17 -17
  56. package/dist/{StringFileChooserControl-BUYM9fmT.js → StringFileChooserControl-Bx5y6IUS.js} +11 -11
  57. package/dist/{StyledListItem-DjdZOUWD-BMILJImI.js → StyledListItem-BmNDGGnr-Bq-z-rsZ.js} +17 -17
  58. package/dist/{TeamAndSpacesControl-CEdzSJPJ-45d6LeCk.js → TeamAndSpacesControl-BI4anOSY-M-p6tIeU.js} +20 -20
  59. package/dist/{TeamResourceControl-Cd0UTItF-Coo1MGve.js → TeamResourceControl-s9NfKZEk-YrY32KjS.js} +1 -1
  60. package/dist/{TextAreaControl-B-AfgqCE-BxgZnZ7G.js → TextAreaControl-DSBystkT-BSHORNXB.js} +4 -4
  61. package/dist/TextControl-DBIt0sjP-BIZDsHMy.js +59813 -0
  62. package/dist/{TimeControl-DOs9b4bm-B7dozTCB.js → TimeControl-COlrx8kC-BcVH6ODv.js} +5 -5
  63. package/dist/{TimeframesControl-4JGOYGkE-DfsHVFg9.js → TimeframesControl-Cg12Kpcx-C7dGpAT6.js} +13 -13
  64. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-C_u035me-DAGCRygG.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-_TYZPooB-Dfpkfwo6.js} +4 -4
  65. package/dist/{TypedStringFilter-C6N8H2Xj-CI1wXgVk.js → TypedStringFilter-CX3YoFa7-C1x-NGyu.js} +1 -1
  66. package/dist/{ValueSwitchControl-BO6x8fsi-B4Fuvawe.js → ValueSwitchControl-DpxEagdS-C4QFBVRx.js} +1 -1
  67. package/dist/{VennDiagramLayout-HkmFaxWm.js → VennDiagramLayout-DUW0acFP.js} +39 -39
  68. package/dist/{VerticalLayout-AMSQYCUV-HYDBzl_2.js → VerticalLayout-X4PVwPsF-b_ZcHKaF.js} +4 -4
  69. package/dist/ZonedDateTimeControl-CWeuMH0t-Dt7Rxkqb.js +100 -0
  70. package/dist/auto-configure-BU7AIhL7-7W3z7Vjz-6q91a8j9.js +22 -0
  71. package/dist/copy-D43FaHi--Bqzsv-mJ-7FU3jkgQ.js +22 -0
  72. package/dist/duplicate-Mtq886XD-BDwFp0vh-CIu7W6h6.js +22 -0
  73. package/dist/feedback-CSzO39Ck-BS5Fxtel.js +22 -0
  74. package/dist/feedback-CSzO39Ck-CKiwRjzw.js +22 -0
  75. package/dist/feedback-CSzO39Ck-_5Kb5BA8-CKe-zu3t.js +22 -0
  76. package/dist/{copy-DAYm6-mo-CDvX8jVa-B9UCeqRZ.js → folder-move-6L5NfoIs-CCvXkj23-BYHDrg6P.js} +5 -5
  77. package/dist/import-table-BaqmTPnF-CZCiPNmS.js +22 -0
  78. package/dist/import-table-BaqmTPnF-D0en45ie.js +22 -0
  79. package/dist/import-table-BaqmTPnF-KBTO9jUb-Bpwci1gw.js +22 -0
  80. package/dist/linked-component-BOb5aj87-VJSVKxb2-DMjL90PX.js +22 -0
  81. package/dist/login-DGaxAy8E-D6O36glE.js +22 -0
  82. package/dist/login-DGaxAy8E-DplCH1d8-6sF6_FhA.js +22 -0
  83. package/dist/login-DGaxAy8E-_ybELmwN.js +22 -0
  84. package/dist/main.js +605 -600
  85. package/dist/parameters.js +1 -1
  86. package/dist/random-seed-BmLMj_2x-DINXvCyu-wqk9PzlG.js +22 -0
  87. package/dist/random-seed-BmLMj_2x-DKTVdNoj.js +22 -0
  88. package/dist/random-seed-BmLMj_2x-qRFs8Sbo.js +22 -0
  89. package/dist/table-Pffb9Oig-CvTPEL4F.js +22 -0
  90. package/dist/table-Pffb9Oig-Qm0Lnd2q-C-VWjB_D.js +22 -0
  91. package/dist/table-Pffb9Oig-TCq5zt91.js +22 -0
  92. package/dist/update-file-5lTfm97G-BGdh5udY.js +22 -0
  93. package/dist/update-file-5lTfm97G-BwwZevAR.js +22 -0
  94. package/dist/update-file-5lTfm97G-mHppEON3-CqyuH0wP.js +22 -0
  95. package/dist/{useFileChooserBackend-uDGm68hp.js → useFileChooserBackend-Cnk4jIty.js} +9 -9
  96. package/dist/{usePossibleValues-CsJuQ591-r_2wYQe_.js → usePossibleValues-BbkYA3Ri-phbvmDoC.js} +2 -2
  97. package/dist/validate-CD0_eO0m-8oVXNF5a-JUzgUSW_.js +22 -0
  98. package/dist/validate-CD0_eO0m-Dsn7xOmd.js +22 -0
  99. package/dist/validate-CD0_eO0m-DxUbUuun.js +22 -0
  100. package/package.json +3 -3
  101. package/dist/DateTimeControl-CuB6aWlL-CgLiloF4.js +0 -89
  102. package/dist/DateTimeFormatPickerWithTypeControl-BQKDIoYn-Vw11sEhI.js +0 -598
  103. package/dist/DialogFileExplorer-CiOfUL_M.js +0 -501
  104. package/dist/DynamicInputControl-Bc99HU8j.js +0 -6
  105. package/dist/RichTextControl-D4ItwmZa-CV9QLVR2.js +0 -19326
  106. package/dist/TextControl-DfrjuKwf-2f9eJp4g.js +0 -54247
  107. package/dist/ZonedDateTimeControl-1lHvcaQc-X46S4Ze5.js +0 -82
  108. package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +0 -2003
  109. package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +0 -34
  110. /package/dist/{useUnknownValuesInTwinlist-DuLcQlCx-D2ve7iXH.js → useUnknownValuesInTwinlist-uBQ8vniL-D2ve7iXH.js} +0 -0
@@ -1,598 +0,0 @@
1
- import { defineComponent as M, computed as T, createElementBlock as f, openBlock as c, createVNode as k, unref as g, resolveComponent as X, createBlock as A, normalizeClass as z, withCtx as Z, renderSlot as j, normalizeProps as Y, guardReactiveProps as ee, mergeModels as ae, useModel as le, ref as w, createElementVNode as v, createCommentVNode as F, withDirectives as te, vModelText as oe, normalizeStyle as ne, Fragment as R, renderList as K, toDisplayString as B, useCssVars as se, watch as S, reactive as re, onMounted as ie, nextTick as H, onUnmounted as de, h as ue } from "vue";
2
- import { P as I, n as me, H as ce, l as pe } from "./TextControl-DfrjuKwf-2f9eJp4g.js";
3
- import { a as ve, t as fe, n as ye, r as he, i as be, o as Te, e as ge } from "./useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js";
4
- const we = {
5
- xmlns: "http://www.w3.org/2000/svg",
6
- fill: "none",
7
- stroke: "#000",
8
- "stroke-linejoin": "round",
9
- viewBox: "0 0 32 32"
10
- };
11
- function Ee(e, o) {
12
- return c(), f("svg", we, [...o[0] || (o[0] = [
13
- v("path", { d: "m11.9 22.3 2.7 4.4-4.5 2.8m4.5-2.8C9 26 4.7 21.7 4.7 16c0-5.1 3.4-9.4 8.1-10.8M20 9.7l-2.6-4.4 4.5-2.8m-4.5 2.8c5.6.7 9.9 5 9.9 10.7 0 5.1-3.4 9.4-8.1 10.8" }, null, -1)
14
- ])]);
15
- }
16
- const Ve = { render: Ee }, xe = (e, o) => ({
17
- render() {
18
- const s = e.render({}, []), d = ue("title", o);
19
- return d.ns = "svg", s.children.unshift(d), s;
20
- }
21
- }), _e = /* @__PURE__ */ M({
22
- __name: "LoadingIcon",
23
- setup(e) {
24
- const o = xe(Ve, "Loading…");
25
- return (s, d) => (c(), A(g(o)));
26
- }
27
- }), ke = /* @__PURE__ */ I(_e, [["__scopeId", "data-v-6b552b81"]]), Me = {
28
- xmlns: "http://www.w3.org/2000/svg",
29
- fill: "none",
30
- "stroke-linejoin": "round",
31
- viewBox: "0 0 32 32"
32
- };
33
- function Ie(e, o) {
34
- return c(), f("svg", Me, [...o[0] || (o[0] = [
35
- v("path", {
36
- fill: "#000",
37
- d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
38
- }, null, -1)
39
- ])]);
40
- }
41
- const ze = { render: Ie }, De = M({
42
- name: "BaseRadioButtons",
43
- props: {
44
- id: {
45
- type: String,
46
- default: null
47
- },
48
- modelValue: {
49
- type: String,
50
- default: null
51
- },
52
- name: {
53
- type: String,
54
- default() {
55
- return `RadioButtons-${pe()}`;
56
- }
57
- },
58
- disabled: {
59
- default: !1,
60
- type: Boolean
61
- },
62
- possibleValues: {
63
- type: Array,
64
- default: () => [],
65
- validator(e) {
66
- return Array.isArray(e) ? e.every(
67
- (o) => o.hasOwnProperty("id") && o.hasOwnProperty("text")
68
- ) : !1;
69
- }
70
- }
71
- },
72
- emits: ["update:modelValue"],
73
- methods: {
74
- onInput(e) {
75
- const o = e.target.value;
76
- this.$emit("update:modelValue", o);
77
- }
78
- }
79
- }), Ae = ["id"], Fe = ["checked", "value", "name", "disabled"], Be = ["title"];
80
- function Ce(e, o, s, d, E, V) {
81
- return c(), f("div", {
82
- id: e.id,
83
- role: "radiogroup"
84
- }, [
85
- (c(!0), f(R, null, K(e.possibleValues, (n) => (c(), f("label", {
86
- key: `radio-${n.id}`,
87
- class: z({ disabled: e.disabled || n.disabled })
88
- }, [
89
- v("input", {
90
- ref_for: !0,
91
- ref: "input",
92
- checked: e.modelValue === n.id,
93
- value: n.id,
94
- name: e.name,
95
- disabled: e.disabled || n.disabled,
96
- type: "radio",
97
- onChange: o[0] || (o[0] = (...u) => e.onInput && e.onInput(...u))
98
- }, null, 40, Fe),
99
- v("span", {
100
- title: n.text
101
- }, B(n.text), 9, Be),
102
- j(e.$slots, "default", { item: n }, void 0, !0),
103
- n.subtext ? (c(), f(R, { key: 0 }, [
104
- o[1] || (o[1] = v("br", null, null, -1)),
105
- v("span", null, B(n.subtext), 1)
106
- ], 64)) : F("", !0)
107
- ], 2))), 128))
108
- ], 8, Ae);
109
- }
110
- const Se = /* @__PURE__ */ I(De, [["render", Ce], ["__scopeId", "data-v-2bbebb4b"]]), Re = M({
111
- name: "ValueSwitch",
112
- components: {
113
- BaseRadioButtons: Se
114
- },
115
- props: {
116
- id: {
117
- type: String,
118
- default: null
119
- },
120
- modelValue: {
121
- type: String,
122
- default: null
123
- },
124
- name: {
125
- type: String,
126
- default: null
127
- },
128
- disabled: {
129
- default: !1,
130
- type: Boolean
131
- },
132
- possibleValues: {
133
- type: Array,
134
- default: () => []
135
- },
136
- compact: {
137
- type: Boolean,
138
- default: !1
139
- }
140
- },
141
- emits: ["update:modelValue"]
142
- });
143
- function Ne(e, o, s, d, E, V) {
144
- const n = X("BaseRadioButtons");
145
- return c(), A(n, {
146
- id: e.id,
147
- ref: "radioButton",
148
- "possible-values": e.possibleValues,
149
- "model-value": e.modelValue,
150
- name: e.name,
151
- disabled: e.disabled,
152
- class: z(["value-switch", {
153
- disabled: e.disabled,
154
- compact: e.compact,
155
- normal: !e.compact
156
- }]),
157
- "onUpdate:modelValue": o[0] || (o[0] = (u) => e.$emit("update:modelValue", u))
158
- }, {
159
- default: Z((u) => [
160
- j(e.$slots, "default", Y(ee(u)), void 0, !0)
161
- ]),
162
- _: 3
163
- }, 8, ["id", "possible-values", "model-value", "name", "disabled", "class"]);
164
- }
165
- const N = /* @__PURE__ */ I(Re, [["render", Ne], ["__scopeId", "data-v-83231815"]]), Pe = { class: "popover" }, Oe = { class: "formats-container-border-host" }, Ue = {
166
- key: 0,
167
- class: "no-formats-available"
168
- }, $e = {
169
- key: 1,
170
- class: "no-formats-available"
171
- }, He = ["onClick"], Le = { class: "format-pattern" }, Ze = { class: "format-preview" }, L = 1, je = /* @__PURE__ */ M({
172
- __name: "DateTimeFormatPickerPopover",
173
- props: {
174
- allFormats: {},
175
- selectedType: {},
176
- initialSelectedPattern: {},
177
- showTypeSwitch: { type: Boolean }
178
- },
179
- emits: ["commit", "cancel"],
180
- setup(e, { emit: o }) {
181
- se((a) => ({
182
- v3b9e5e3a: L
183
- }));
184
- const s = o, d = e, E = T(() => [
185
- {
186
- id: "RECENT",
187
- text: "Recent"
188
- },
189
- {
190
- id: "STANDARD",
191
- text: "ISO"
192
- },
193
- {
194
- id: "EUROPEAN",
195
- text: "European"
196
- },
197
- {
198
- id: "AMERICAN",
199
- text: "United States"
200
- }
201
- ]), V = T(() => [
202
- {
203
- id: "DATE",
204
- text: "Date"
205
- },
206
- {
207
- id: "DATE_TIME",
208
- text: "Date & time"
209
- },
210
- {
211
- id: "TIME",
212
- text: "Time"
213
- },
214
- {
215
- id: "ZONED_DATE_TIME",
216
- text: "Zoned date & time"
217
- }
218
- ]), n = w(null), u = w(null), i = w("RECENT"), m = w(d.selectedType);
219
- S(
220
- () => d.selectedType,
221
- (a) => {
222
- u.value = a;
223
- }
224
- );
225
- const r = T(
226
- () => {
227
- var a;
228
- return ((a = d.allFormats) == null ? void 0 : a.filter(
229
- (l) => l.category === i.value && l.temporalType === m.value
230
- )) ?? null;
231
- }
232
- ), h = w(null), b = re({}), x = (a) => `${a.format}-${a.category}-${a.temporalType}`, q = (a) => (l) => {
233
- b[x(a)] = l;
234
- }, _ = (a) => ({
235
- format: a.format,
236
- temporalType: a.temporalType
237
- }), {
238
- currentIndex: P,
239
- onKeydown: O,
240
- resetNavigation: G,
241
- setElement: J
242
- } = Te({
243
- keepOpenedOnTab: !0,
244
- getFirstElement: () => ({
245
- index: 0,
246
- onClick: () => s(
247
- "commit",
248
- _(r.value[0])
249
- )
250
- }),
251
- getLastElement: () => {
252
- const a = r.value.length - 1;
253
- return {
254
- index: a,
255
- onClick: () => s(
256
- "commit",
257
- _(r.value[a])
258
- )
259
- };
260
- },
261
- getNextElement: (a, l) => {
262
- if (a = a === null || a === -1 ? null : a, l === 1) {
263
- const t = ((a ?? -1) + 1) % r.value.length;
264
- return {
265
- index: t,
266
- onClick: () => s(
267
- "commit",
268
- _(r.value[t])
269
- )
270
- };
271
- } else {
272
- const t = ((a ?? 0) - 1 + r.value.length) % r.value.length;
273
- return {
274
- index: t,
275
- onClick: () => s(
276
- "commit",
277
- _(r.value[t])
278
- )
279
- };
280
- }
281
- },
282
- close: () => {
283
- s("cancel");
284
- }
285
- }), W = (a) => {
286
- const l = a.parentElement;
287
- if (l && l.scrollHeight > l.clientHeight) {
288
- const t = l.offsetTop + L, p = l.clientHeight + l.scrollTop, y = a.offsetTop + a.offsetHeight - t;
289
- y > p ? l.scrollTop = y - l.clientHeight : a.offsetTop - l.scrollTop < t && (l.scrollTop = a.offsetTop - t);
290
- }
291
- }, U = (a) => {
292
- const l = b[`${a}-${i.value}-${m.value}`];
293
- l && W(l);
294
- }, $ = async (a, l, t) => {
295
- m.value = l ?? m.value, i.value = t ?? i.value, await H(), u.value = a, U(a);
296
- const p = r.value.findIndex(
297
- (y) => y.format === a
298
- );
299
- J({
300
- index: p,
301
- onClick: () => s(
302
- "commit",
303
- _(r.value[p])
304
- )
305
- });
306
- };
307
- S(P, (a) => {
308
- var t, p;
309
- if (a === null)
310
- return;
311
- const l = (p = (t = r.value) == null ? void 0 : t[a]) == null ? void 0 : p.format;
312
- l && U(l);
313
- }), S([m, i], () => {
314
- var a, l;
315
- m.value === ((a = n.value) == null ? void 0 : a.temporalType) && i.value === ((l = n.value) == null ? void 0 : l.category) ? $(
316
- n.value.format,
317
- n.value.temporalType,
318
- n.value.category
319
- ) : (u.value = null, G());
320
- });
321
- const D = w(!1);
322
- return ie(async () => {
323
- if (!d.allFormats)
324
- return;
325
- const a = [
326
- "RECENT",
327
- "STANDARD",
328
- "EUROPEAN",
329
- "AMERICAN"
330
- ], l = d.allFormats.filter((t) => d.initialSelectedPattern === t.format).filter(
331
- (t) => (
332
- // if the type switch is hidden, filter to only formats with the same type
333
- d.selectedType === t.temporalType || d.showTypeSwitch
334
- )
335
- ).sort((t, p) => {
336
- const y = a.indexOf(t.category), C = a.indexOf(p.category);
337
- return y - C;
338
- });
339
- if (l.length > 0) {
340
- const t = l[0].format, p = l[0].temporalType, y = l[0].category;
341
- await $(t, p, y);
342
- const C = r.value.findIndex(
343
- (Q) => Q.format === t
344
- );
345
- n.value = {
346
- format: t,
347
- index: C,
348
- category: y,
349
- temporalType: p
350
- };
351
- }
352
- H(() => D.value = !0);
353
- }), de(() => D.value = !1), (a, l) => (c(), A(g(ge), {
354
- active: D.value,
355
- "onUpdate:active": l[3] || (l[3] = (t) => D.value = t),
356
- "initial-focus": () => h.value ?? !1
357
- }, {
358
- default: Z(() => [
359
- v("div", Pe, [
360
- e.showTypeSwitch ? (c(), A(N, {
361
- key: 0,
362
- id: "selectedFormatType",
363
- ref: "typeSwitchRef",
364
- modelValue: m.value,
365
- "onUpdate:modelValue": l[0] || (l[0] = (t) => m.value = t),
366
- compact: "",
367
- "possible-values": V.value,
368
- class: "filter-switch"
369
- }, null, 8, ["modelValue", "possible-values"])) : F("", !0),
370
- k(N, {
371
- id: "selectedFormatStandard",
372
- ref: "standardSwitchRef",
373
- modelValue: i.value,
374
- "onUpdate:modelValue": l[1] || (l[1] = (t) => i.value = t),
375
- compact: "",
376
- "possible-values": E.value,
377
- class: "filter-switch"
378
- }, null, 8, ["modelValue", "possible-values"]),
379
- v("div", Oe, [
380
- v("div", {
381
- id: "dateFormats",
382
- ref_key: "formatContainerRef",
383
- ref: h,
384
- class: "formats-container",
385
- tabindex: "0",
386
- role: "menu",
387
- onKeydown: l[2] || (l[2] = //@ts-ignore
388
- (...t) => g(O) && g(O)(...t))
389
- }, [
390
- r.value === null ? (c(), f("div", Ue, [
391
- k(ke, { class: "loading-spinner" })
392
- ])) : r.value.length === 0 ? (c(), f("div", $e, " No formats available ")) : (c(!0), f(R, { key: 2 }, K(r.value, (t, p) => {
393
- var y;
394
- return c(), f("div", {
395
- key: x(t),
396
- ref_for: !0,
397
- ref: q(t),
398
- class: z([{
399
- highlighted: p === g(P),
400
- applied: p === ((y = n.value) == null ? void 0 : y.index) && t.category === n.value.category && t.temporalType === n.value.temporalType
401
- }, "single-format"]),
402
- role: "menuitem",
403
- onClick: () => s("commit", _(t))
404
- }, [
405
- v("span", Le, B(t.format), 1),
406
- v("span", Ze, B(t.example), 1)
407
- ], 10, He);
408
- }), 128))
409
- ], 544)
410
- ])
411
- ])
412
- ]),
413
- _: 1
414
- }, 8, ["active", "initial-focus"]));
415
- }
416
- }), Ke = /* @__PURE__ */ I(je, [["__scopeId", "data-v-8bb40d8b"]]), qe = { class: "input-fields" }, Ge = ["disabled"], Je = {
417
- key: 0,
418
- class: "invalid-marker"
419
- }, We = ["disabled"], Qe = {}, Xe = /* @__PURE__ */ M({
420
- ...Qe,
421
- __name: "DateTimeFormatInput",
422
- props: /* @__PURE__ */ ae({
423
- disabled: { type: Boolean, default: !1 },
424
- compact: { type: Boolean, default: !1 },
425
- isValid: { type: Boolean, default: !0 },
426
- allDefaultFormats: {},
427
- allowedTypes: { default: () => [
428
- "DATE",
429
- "TIME",
430
- "DATE_TIME",
431
- "ZONED_DATE_TIME"
432
- ] },
433
- showTypeSwitchInPopover: { type: Boolean, default: !0 }
434
- }, {
435
- modelValue: {
436
- default: {
437
- format: "yyyy-MM-dd",
438
- temporalType: "DATE"
439
- }
440
- },
441
- modelModifiers: {}
442
- }),
443
- emits: ["update:modelValue"],
444
- setup(e) {
445
- const o = e, s = le(e, "modelValue"), d = T({
446
- get: () => s.value.format,
447
- set: (h) => {
448
- s.value = {
449
- ...s.value,
450
- format: h
451
- };
452
- }
453
- }), E = "Format like 'yyyy-MM-dd'", V = T(() => o.isValid), n = w(null), u = w(null), i = w(!1), m = (h) => {
454
- s.value = h, i.value = !1;
455
- };
456
- ce(u, () => i.value = !1, {
457
- ignore: [n]
458
- });
459
- const { floatingStyles: r } = ve(
460
- n,
461
- u,
462
- {
463
- middleware: [
464
- ye({
465
- mainAxis: 2,
466
- crossAxis: 0
467
- }),
468
- he(),
469
- be({
470
- mainAxis: !0,
471
- crossAxis: !1
472
- })
473
- ],
474
- placement: "top-end",
475
- whileElementsMounted: fe
476
- }
477
- );
478
- return (h, b) => (c(), f("div", null, [
479
- v("div", {
480
- class: z(["wrapper", { disabled: e.disabled, compact: e.compact }])
481
- }, [
482
- v("span", qe, [
483
- te(v("input", {
484
- "onUpdate:modelValue": b[0] || (b[0] = (x) => d.value = x),
485
- type: "text",
486
- disabled: e.disabled,
487
- placeholder: E,
488
- spellcheck: "false",
489
- onFocus: b[1] || (b[1] = (x) => i.value = !1)
490
- }, null, 40, Ge), [
491
- [oe, d.value]
492
- ]),
493
- V.value ? F("", !0) : (c(), f("span", Je)),
494
- v("button", {
495
- ref_key: "togglePopoverButtonRef",
496
- ref: n,
497
- class: z(["trigger-popover-button", { active: i.value }]),
498
- disabled: e.disabled,
499
- onClick: b[2] || (b[2] = (x) => i.value = !i.value)
500
- }, [
501
- k(g(ze))
502
- ], 10, We)
503
- ])
504
- ], 2),
505
- i.value ? (c(), f("div", {
506
- key: 0,
507
- ref_key: "floatingPopoverRef",
508
- ref: u,
509
- class: "popover",
510
- style: ne(g(r))
511
- }, [
512
- k(Ke, {
513
- "all-formats": e.allDefaultFormats,
514
- "initial-selected-pattern": s.value.format,
515
- "selected-type": s.value.temporalType,
516
- "show-type-switch": e.showTypeSwitchInPopover,
517
- onCommit: m,
518
- onCancel: b[3] || (b[3] = (x) => i.value = !1)
519
- }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
520
- ], 4)) : F("", !0)
521
- ]));
522
- }
523
- }), Ye = /* @__PURE__ */ I(Xe, [["__scopeId", "data-v-1577d5ce"]]), ea = ["id"], aa = /* @__PURE__ */ M({
524
- __name: "DateTimeFormatPickerWithTypeControl",
525
- props: {
526
- control: {},
527
- handleChange: { type: Function },
528
- changeValue: { type: Function },
529
- disabled: { type: Boolean },
530
- error: { type: Boolean },
531
- subText: {},
532
- onRegisterValidation: { type: Function },
533
- labelForId: {}
534
- },
535
- setup(e) {
536
- const o = e, s = T(
537
- () => o.control.uischema
538
- ), d = T(() => s.value.options), E = T(() => {
539
- var m;
540
- return (m = d.value) == null ? void 0 : m.allowedFormats;
541
- }), V = me(s, "dateTimeFormats"), n = [
542
- {
543
- id: "DATE",
544
- text: "Date"
545
- },
546
- {
547
- id: "DATE_TIME",
548
- text: "Date & time"
549
- },
550
- {
551
- id: "TIME",
552
- text: "Time"
553
- },
554
- {
555
- id: "ZONED_DATE_TIME",
556
- text: "Zoned date & time"
557
- }
558
- ], u = T({
559
- get: () => o.control.data,
560
- set: (m) => {
561
- o.changeValue(m);
562
- }
563
- }), i = T({
564
- get: () => u.value.temporalType,
565
- set: (m) => {
566
- u.value = {
567
- ...u.value,
568
- temporalType: m
569
- };
570
- }
571
- });
572
- return (m, r) => (c(), f("div", {
573
- id: e.labelForId,
574
- class: "control-container"
575
- }, [
576
- k(g(N), {
577
- modelValue: i.value,
578
- "onUpdate:modelValue": r[0] || (r[0] = (h) => i.value = h),
579
- compact: "",
580
- "possible-values": n,
581
- disabled: e.disabled
582
- }, null, 8, ["modelValue", "disabled"]),
583
- k(g(Ye), {
584
- modelValue: u.value,
585
- "onUpdate:modelValue": r[1] || (r[1] = (h) => u.value = h),
586
- compact: "",
587
- disabled: e.disabled,
588
- "show-type-switch-in-popover": !1,
589
- "allowed-formats": E.value,
590
- "all-default-formats": g(V),
591
- "is-valid": !0
592
- }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
593
- ], 8, ea));
594
- }
595
- }), na = /* @__PURE__ */ I(aa, [["__scopeId", "data-v-f6f7c887"]]);
596
- export {
597
- na as default
598
- };