@knime/jsonforms 1.5.6 → 1.5.8
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 +16 -0
- package/dist/{AnyOfTwinlist-BqQv5Xyi.js → AnyOfTwinlist-D_wKDkgH.js} +1 -1
- package/dist/{BaseButton-IxPtDwG0.js → BaseButton-C13_k-le.js} +1 -1
- package/dist/{Button-UbZjwIR5.js → Button-D59Hu_Oe.js} +2 -2
- package/dist/{Checkbox-tU1FBcYa.js → Checkbox-BCFe0QQA.js} +1 -1
- package/dist/{CheckboxControl-Cero8A93.js → CheckboxControl-Bxmhd07k.js} +2 -2
- package/dist/{Checkboxes-Cv9xOedo.js → Checkboxes-Ct7xbZzA.js} +2 -2
- package/dist/{CheckboxesControl-CuQ8rrK6.js → CheckboxesControl-BHmaIJxP.js} +2 -2
- package/dist/{ColumnFilter-DzUxSneQ.js → ColumnFilter-Dm9u-ihr.js} +1 -1
- package/dist/{ColumnSelect-BTasLA6a.js → ColumnSelect-BhOWUmeV.js} +2 -2
- package/dist/{ComboBoxControl-Y1VF2OkU.js → ComboBoxControl-CiXpVeil.js} +3 -3
- package/dist/{DateControl-D60FMHjB.js → DateControl-CZcZUyDm.js} +1 -1
- package/dist/{DateTimeControl-lVeFEtyV.js → DateTimeControl-Bhnh0Ppw.js} +2 -2
- package/dist/{DateTimeFormatPickerControl-DfTO7UPF.js → DateTimeFormatPickerControl-CtJk8jQF.js} +3 -3
- package/dist/{DateTimeInput-CnYi3BY_.js → DateTimeInput-CecGpLQL.js} +3 -3
- package/dist/{Dropdown-D6ss_dBL.js → Dropdown-CeUdmLWb.js} +77 -76
- package/dist/{DropdownControl-CJ3A6BxQ.js → DropdownControl-BbSTmj4b.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-DuYsfeZO.js → DropdownControl.vue_vue_type_script_setup_true_lang-VEZYnhcS.js} +10 -10
- package/dist/{FunctionButton-oBm1y6HM.js → FunctionButton-DqrPll2b.js} +2 -2
- package/dist/{HorizontalLayout-CXcTx9uH.js → HorizontalLayout-B35pXQro.js} +1 -1
- package/dist/{InputField-Cqh9C7BC.js → InputField-CfTNsOpl.js} +1 -1
- package/dist/{IntegerControl-B0xGtJAv.js → IntegerControl-BA039DeJ.js} +1 -1
- package/dist/{IntervalControl-aao32pMA.js → IntervalControl-ZIfW0R6H.js} +4 -4
- package/dist/{MultiselectListBox-hcOjC8_y.js → MultiselectListBox-B9AMd6lu.js} +1 -1
- package/dist/{NameFilter-D577IcDg.js → NameFilter-DIK_hfEG.js} +1 -1
- package/dist/{NumberControl-CPiH_1Kz.js → NumberControl-B3cmM4q8.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BGx4EmJ8.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DnbBgqMT.js} +2 -2
- package/dist/{NumberInput-Cnozk9af.js → NumberInput-CyLbNMgq.js} +1 -1
- package/dist/{OneOfDropdown-DxbGKqen.js → OneOfDropdown-CYjXvc-8.js} +1 -1
- package/dist/{RadioControl-PMvDrL01.js → RadioControl-kq8I7uUs.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DW_fzjGj.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Db3c7o8X.js} +2 -2
- package/dist/{RichTextControl-BjRYt9Ru.js → RichTextControl-3izRkdn7.js} +6 -6
- package/dist/{SectionLayout-BsdMRk5s.js → SectionLayout-DPgbDaqO.js} +9 -9
- package/dist/{SimpleButtonControl-B8-vruQQ.js → SimpleButtonControl-CdY2dArP.js} +2 -2
- package/dist/{SimpleTwinlistControl-ChOiJ6Fq.js → SimpleTwinlistControl-BEH4bbqT.js} +2 -2
- package/dist/{SortListControl-CEaE9_Oq.js → SortListControl-uVMSNrRs.js} +25 -25
- package/dist/{TextAreaControl-CaZMYZ0i.js → TextAreaControl-CItxQ3qN.js} +1 -1
- package/dist/{TextControl-CY8DsnJe.js → TextControl-CinlE4yD.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DOeCZGqR.js → TextControl.vue_vue_type_script_setup_true_lang-C1sg5jOI.js} +3 -3
- package/dist/{TimeControl-CV8xnybb.js → TimeControl-_FkL2Pmp.js} +2 -2
- package/dist/{TwinlistControl-BUbuhF9r.js → TwinlistControl-J97lsIsJ.js} +4 -4
- package/dist/{TwinlistLoadingInfo-vYfdM0js.js → TwinlistLoadingInfo-pVyUVKlm.js} +5 -5
- package/dist/{ValueSwitch-g9plppWH.js → ValueSwitch-CILN5ncB.js} +1 -1
- package/dist/{ValueSwitchControl-BRLJQppH.js → ValueSwitchControl-CmNBQoMK.js} +1 -1
- package/dist/{VerticalLayout-Ce_ivNNW.js → VerticalLayout-Ct0EbMgR.js} +2 -2
- package/dist/VerticalLayoutBase-CQKByBuX.js +20 -0
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Ok-Ncbxu.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js} +2471 -2452
- package/dist/{ZonedDateTimeControl-CW7JEcci.js → ZonedDateTimeControl-Bwj70QE6.js} +4 -4
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-BqWdd9Pj.js → localTimeUtils-CtqjaX2h.js} +1 -1
- package/dist/{magic-string.es-BDTetD65.js → magic-string.es-D4UQQyt0.js} +154 -156
- package/dist/{navigator-BYUFe-z3.js → navigator-DWmzYl-A.js} +2 -2
- package/dist/src/higherOrderComponents/control/{ErrorMessage.vue.d.ts → errorMessage/ErrorLine.vue.d.ts} +2 -2
- package/dist/src/higherOrderComponents/control/{withErrorMessage.d.ts → errorMessage/withErrorMessage.d.ts} +2 -2
- package/dist/src/higherOrderComponents/control/index.d.ts +2 -1
- package/dist/src/uiComponents/index.d.ts +1 -2
- package/dist/{svgWithTitle-SVfkxpX-.js → svgWithTitle-CBUO7Hcc.js} +1 -1
- package/dist/testing.js +10209 -9162
- package/package.json +6 -6
- package/dist/VerticalLayoutBase-CGWxuvxr.js +0 -20
- /package/dist/src/higherOrderComponents/control/{ErrorMessageWrapper.vue.d.ts → errorMessage/ErrorMessages.vue.d.ts} +0 -0
|
@@ -4,9 +4,9 @@ function ut() {
|
|
|
4
4
|
(function(e, n) {
|
|
5
5
|
n(t);
|
|
6
6
|
})(lt, function(e) {
|
|
7
|
-
const
|
|
8
|
-
for (let a = 0; a <
|
|
9
|
-
const h =
|
|
7
|
+
const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = new Uint8Array(64), f = new Uint8Array(128);
|
|
8
|
+
for (let a = 0; a < r.length; a++) {
|
|
9
|
+
const h = r.charCodeAt(a);
|
|
10
10
|
u[a] = h, f[h] = a;
|
|
11
11
|
}
|
|
12
12
|
function o(a, h) {
|
|
@@ -78,20 +78,20 @@ function ut() {
|
|
|
78
78
|
g = o(i, g);
|
|
79
79
|
const b = o(i, 0);
|
|
80
80
|
if (!k(i, h)) {
|
|
81
|
-
const
|
|
82
|
-
|
|
81
|
+
const v = d.pop();
|
|
82
|
+
v[2] = g, v[3] = b;
|
|
83
83
|
continue;
|
|
84
84
|
}
|
|
85
85
|
const m = o(i, 0), w = o(i, 0) & 1 ? [g, b, 0, 0, m, o(i, 0)] : [g, b, 0, 0, m];
|
|
86
|
-
let
|
|
86
|
+
let y = F;
|
|
87
87
|
if (k(i, h)) {
|
|
88
|
-
|
|
88
|
+
y = [];
|
|
89
89
|
do {
|
|
90
|
-
const
|
|
91
|
-
|
|
90
|
+
const v = o(i, 0);
|
|
91
|
+
y.push(v);
|
|
92
92
|
} while (k(i, h));
|
|
93
93
|
}
|
|
94
|
-
w.vars =
|
|
94
|
+
w.vars = y, l.push(w), d.push(w);
|
|
95
95
|
}
|
|
96
96
|
return l;
|
|
97
97
|
}
|
|
@@ -104,13 +104,13 @@ function ut() {
|
|
|
104
104
|
function H(a, h, i, l) {
|
|
105
105
|
const d = a[h], { 0: g, 1: b, 2: m, 3: S, 4: C, vars: w } = d;
|
|
106
106
|
h > 0 && i.write(44), l[0] = c(i, g, l[0]), c(i, b, 0), c(i, C, 0);
|
|
107
|
-
const
|
|
108
|
-
c(i,
|
|
109
|
-
for (const
|
|
110
|
-
c(i,
|
|
107
|
+
const y = d.length === 6 ? 1 : 0;
|
|
108
|
+
c(i, y, 0), d.length === 6 && c(i, d[5], 0);
|
|
109
|
+
for (const v of w)
|
|
110
|
+
c(i, v, 0);
|
|
111
111
|
for (h++; h < a.length; ) {
|
|
112
|
-
const
|
|
113
|
-
if (p > m || p === m &&
|
|
112
|
+
const v = a[h], { 0: p, 1: x } = v;
|
|
113
|
+
if (p > m || p === m && x >= S)
|
|
114
114
|
break;
|
|
115
115
|
h = H(a, h, i, l);
|
|
116
116
|
}
|
|
@@ -118,23 +118,23 @@ function ut() {
|
|
|
118
118
|
}
|
|
119
119
|
function tt(a) {
|
|
120
120
|
const { length: h } = a, i = new G(a), l = [], d = [];
|
|
121
|
-
let g = 0, b = 0, m = 0, S = 0, C = 0, w = 0,
|
|
121
|
+
let g = 0, b = 0, m = 0, S = 0, C = 0, w = 0, y = 0, v = 0;
|
|
122
122
|
do {
|
|
123
123
|
const p = i.indexOf(";");
|
|
124
|
-
let
|
|
124
|
+
let x = 0;
|
|
125
125
|
for (; i.pos < p; i.pos++) {
|
|
126
|
-
if (
|
|
126
|
+
if (x = o(i, x), !k(i, p)) {
|
|
127
127
|
const L = d.pop();
|
|
128
|
-
L[2] = g, L[3] =
|
|
128
|
+
L[2] = g, L[3] = x;
|
|
129
129
|
continue;
|
|
130
130
|
}
|
|
131
131
|
const R = o(i, 0), B = R & 1, A = R & 2, T = R & 4;
|
|
132
132
|
let Y = null, q = F, _;
|
|
133
133
|
if (B) {
|
|
134
134
|
const L = o(i, b);
|
|
135
|
-
m = o(i, b === L ? m : 0), b = L, _ = [g,
|
|
135
|
+
m = o(i, b === L ? m : 0), b = L, _ = [g, x, 0, 0, L, m];
|
|
136
136
|
} else
|
|
137
|
-
_ = [g,
|
|
137
|
+
_ = [g, x, 0, 0];
|
|
138
138
|
if (_.isScope = !!T, A) {
|
|
139
139
|
const L = S, I = C;
|
|
140
140
|
S = o(i, S);
|
|
@@ -144,16 +144,16 @@ function ut() {
|
|
|
144
144
|
if (_.callsite = Y, k(i, p)) {
|
|
145
145
|
q = [];
|
|
146
146
|
do {
|
|
147
|
-
|
|
147
|
+
y = g, v = x;
|
|
148
148
|
const L = o(i, 0);
|
|
149
149
|
let I;
|
|
150
150
|
if (L < -1) {
|
|
151
151
|
I = [[o(i, 0)]];
|
|
152
152
|
for (let j = -1; j > L; j--) {
|
|
153
|
-
const ot =
|
|
154
|
-
|
|
153
|
+
const ot = y;
|
|
154
|
+
y = o(i, y), v = o(i, y === ot ? v : 0);
|
|
155
155
|
const ht = o(i, 0);
|
|
156
|
-
I.push([ht,
|
|
156
|
+
I.push([ht, y, v]);
|
|
157
157
|
}
|
|
158
158
|
} else
|
|
159
159
|
I = [[L]];
|
|
@@ -175,22 +175,22 @@ function ut() {
|
|
|
175
175
|
return h.flush();
|
|
176
176
|
}
|
|
177
177
|
function J(a, h, i, l) {
|
|
178
|
-
const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings:
|
|
178
|
+
const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings: y } = d;
|
|
179
179
|
l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(44), l[1] = c(i, d[1], l[1]);
|
|
180
|
-
const
|
|
181
|
-
if (c(i,
|
|
182
|
-
const { 4: p, 5:
|
|
183
|
-
p !== l[2] && (l[3] = 0), l[2] = c(i, p, l[2]), l[3] = c(i,
|
|
180
|
+
const v = (d.length === 6 ? 1 : 0) | (w ? 2 : 0) | (C ? 4 : 0);
|
|
181
|
+
if (c(i, v, 0), d.length === 6) {
|
|
182
|
+
const { 4: p, 5: x } = d;
|
|
183
|
+
p !== l[2] && (l[3] = 0), l[2] = c(i, p, l[2]), l[3] = c(i, x, l[3]);
|
|
184
184
|
}
|
|
185
185
|
if (w) {
|
|
186
|
-
const { 0: p, 1:
|
|
187
|
-
p !== l[4] ? (l[5] = 0, l[6] = 0) :
|
|
186
|
+
const { 0: p, 1: x, 2: R } = d.callsite;
|
|
187
|
+
p !== l[4] ? (l[5] = 0, l[6] = 0) : x !== l[5] && (l[6] = 0), l[4] = c(i, p, l[4]), l[5] = c(i, x, l[5]), l[6] = c(i, R, l[6]);
|
|
188
188
|
}
|
|
189
|
-
if (
|
|
190
|
-
for (const p of
|
|
189
|
+
if (y)
|
|
190
|
+
for (const p of y) {
|
|
191
191
|
p.length > 1 && c(i, -p.length, 0);
|
|
192
|
-
const
|
|
193
|
-
c(i,
|
|
192
|
+
const x = p[0][0];
|
|
193
|
+
c(i, x, 0);
|
|
194
194
|
let R = g, B = b;
|
|
195
195
|
for (let A = 1; A < p.length; A++) {
|
|
196
196
|
const T = p[A];
|
|
@@ -198,8 +198,8 @@ function ut() {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
for (h++; h < a.length; ) {
|
|
201
|
-
const p = a[h], { 0:
|
|
202
|
-
if (
|
|
201
|
+
const p = a[h], { 0: x, 1: R } = p;
|
|
202
|
+
if (x > m || x === m && R >= S)
|
|
203
203
|
break;
|
|
204
204
|
h = J(a, h, i, l);
|
|
205
205
|
}
|
|
@@ -215,22 +215,22 @@ function ut() {
|
|
|
215
215
|
let d = 0, g = 0, b = 0, m = 0, S = 0;
|
|
216
216
|
do {
|
|
217
217
|
const C = i.indexOf(";"), w = [];
|
|
218
|
-
let
|
|
218
|
+
let y = !0, v = 0;
|
|
219
219
|
for (d = 0; i.pos < C; ) {
|
|
220
220
|
let p;
|
|
221
|
-
d = o(i, d), d <
|
|
221
|
+
d = o(i, d), d < v && (y = !1), v = d, k(i, C) ? (g = o(i, g), b = o(i, b), m = o(i, m), k(i, C) ? (S = o(i, S), p = [d, g, b, m, S]) : p = [d, g, b, m]) : p = [d], w.push(p), i.pos++;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
y || it(w), l.push(w), i.pos = C + 1;
|
|
224
224
|
} while (i.pos <= h);
|
|
225
225
|
return l;
|
|
226
226
|
}
|
|
227
227
|
function it(a) {
|
|
228
|
-
a.sort(
|
|
228
|
+
a.sort(st);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function st(a, h) {
|
|
231
231
|
return a[0] - h[0];
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function rt(a) {
|
|
234
234
|
const h = new D();
|
|
235
235
|
let i = 0, l = 0, d = 0, g = 0;
|
|
236
236
|
for (let b = 0; b < a.length; b++) {
|
|
@@ -245,7 +245,7 @@ function ut() {
|
|
|
245
245
|
}
|
|
246
246
|
return h.flush();
|
|
247
247
|
}
|
|
248
|
-
e.decode = nt, e.decodeGeneratedRanges = tt, e.decodeOriginalScopes = Z, e.encode =
|
|
248
|
+
e.decode = nt, e.decodeGeneratedRanges = tt, e.decodeOriginalScopes = Z, e.encode = rt, e.encodeGeneratedRanges = et, e.encodeOriginalScopes = V, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
249
249
|
});
|
|
250
250
|
}(M, M.exports)), M.exports;
|
|
251
251
|
}
|
|
@@ -301,10 +301,10 @@ class U {
|
|
|
301
301
|
this.intro = "", this.outro = "", this.edited && (this.content = this.original, this.storeName = !1, this.edited = !1);
|
|
302
302
|
}
|
|
303
303
|
split(t) {
|
|
304
|
-
const e = t - this.start, n = this.original.slice(0, e),
|
|
304
|
+
const e = t - this.start, n = this.original.slice(0, e), s = this.original.slice(e);
|
|
305
305
|
this.original = n;
|
|
306
|
-
const
|
|
307
|
-
return
|
|
306
|
+
const r = new U(t, this.end, s);
|
|
307
|
+
return r.outro = this.outro, this.outro = "", this.end = t, this.edited ? (r.edit("", !1), this.content = "") : this.content = n, r.next = this.next, r.next && (r.next.previous = r), r.previous = this, this.next = r, r;
|
|
308
308
|
}
|
|
309
309
|
toString() {
|
|
310
310
|
return this.intro + this.content + this.outro;
|
|
@@ -336,7 +336,7 @@ function at() {
|
|
|
336
336
|
const ft = /* @__PURE__ */ at();
|
|
337
337
|
class dt {
|
|
338
338
|
constructor(t) {
|
|
339
|
-
this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings = ct.encode(t.mappings), typeof t.x_google_ignoreList < "u" && (this.x_google_ignoreList = t.x_google_ignoreList);
|
|
339
|
+
this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings = ct.encode(t.mappings), typeof t.x_google_ignoreList < "u" && (this.x_google_ignoreList = t.x_google_ignoreList), typeof t.debugId < "u" && (this.debugId = t.debugId);
|
|
340
340
|
}
|
|
341
341
|
toString() {
|
|
342
342
|
return JSON.stringify(this);
|
|
@@ -347,24 +347,24 @@ class dt {
|
|
|
347
347
|
}
|
|
348
348
|
function gt(E) {
|
|
349
349
|
const t = E.split(`
|
|
350
|
-
`), e = t.filter((
|
|
350
|
+
`), e = t.filter((r) => /^\t+/.test(r)), n = t.filter((r) => /^ {2,}/.test(r));
|
|
351
351
|
if (e.length === 0 && n.length === 0)
|
|
352
352
|
return null;
|
|
353
353
|
if (e.length >= n.length)
|
|
354
354
|
return " ";
|
|
355
|
-
const
|
|
355
|
+
const s = n.reduce((r, u) => {
|
|
356
356
|
const f = /^ +/.exec(u)[0].length;
|
|
357
|
-
return Math.min(f,
|
|
357
|
+
return Math.min(f, r);
|
|
358
358
|
}, 1 / 0);
|
|
359
|
-
return new Array(
|
|
359
|
+
return new Array(s + 1).join(" ");
|
|
360
360
|
}
|
|
361
361
|
function pt(E, t) {
|
|
362
362
|
const e = E.split(/[/\\]/), n = t.split(/[/\\]/);
|
|
363
363
|
for (e.pop(); e[0] === n[0]; )
|
|
364
364
|
e.shift(), n.shift();
|
|
365
365
|
if (e.length) {
|
|
366
|
-
let
|
|
367
|
-
for (;
|
|
366
|
+
let s = e.length;
|
|
367
|
+
for (; s--; ) e[s] = "..";
|
|
368
368
|
}
|
|
369
369
|
return e.concat(n).join("/");
|
|
370
370
|
}
|
|
@@ -375,15 +375,15 @@ function wt(E) {
|
|
|
375
375
|
function Q(E) {
|
|
376
376
|
const t = E.split(`
|
|
377
377
|
`), e = [];
|
|
378
|
-
for (let n = 0,
|
|
379
|
-
e.push(
|
|
380
|
-
return function(
|
|
381
|
-
let
|
|
382
|
-
for (;
|
|
383
|
-
const c =
|
|
384
|
-
|
|
378
|
+
for (let n = 0, s = 0; n < t.length; n++)
|
|
379
|
+
e.push(s), s += t[n].length + 1;
|
|
380
|
+
return function(s) {
|
|
381
|
+
let r = 0, u = e.length;
|
|
382
|
+
for (; r < u; ) {
|
|
383
|
+
const c = r + u >> 1;
|
|
384
|
+
s < e[c] ? u = c : r = c + 1;
|
|
385
385
|
}
|
|
386
|
-
const f =
|
|
386
|
+
const f = r - 1, o = s - e[f];
|
|
387
387
|
return { line: f, column: o };
|
|
388
388
|
};
|
|
389
389
|
}
|
|
@@ -392,30 +392,35 @@ class Ct {
|
|
|
392
392
|
constructor(t) {
|
|
393
393
|
this.hires = t, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
|
|
394
394
|
}
|
|
395
|
-
addEdit(t, e, n,
|
|
395
|
+
addEdit(t, e, n, s) {
|
|
396
396
|
if (e.length) {
|
|
397
|
-
const
|
|
397
|
+
const r = e.length - 1;
|
|
398
398
|
let u = e.indexOf(`
|
|
399
399
|
`, 0), f = -1;
|
|
400
|
-
for (; u >= 0 &&
|
|
400
|
+
for (; u >= 0 && r > u; ) {
|
|
401
401
|
const c = [this.generatedCodeColumn, t, n.line, n.column];
|
|
402
|
-
|
|
402
|
+
s >= 0 && c.push(s), this.rawSegments.push(c), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, f = u, u = e.indexOf(`
|
|
403
403
|
`, u + 1);
|
|
404
404
|
}
|
|
405
405
|
const o = [this.generatedCodeColumn, t, n.line, n.column];
|
|
406
|
-
|
|
406
|
+
s >= 0 && o.push(s), this.rawSegments.push(o), this.advance(e.slice(f + 1));
|
|
407
407
|
} else this.pending && (this.rawSegments.push(this.pending), this.advance(e));
|
|
408
408
|
this.pending = null;
|
|
409
409
|
}
|
|
410
|
-
addUneditedChunk(t, e, n,
|
|
410
|
+
addUneditedChunk(t, e, n, s, r) {
|
|
411
411
|
let u = e.start, f = !0, o = !1;
|
|
412
412
|
for (; u < e.end; ) {
|
|
413
|
-
if (
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
if (n[u] === `
|
|
414
|
+
`)
|
|
415
|
+
s.line += 1, s.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, f = !0, o = !1;
|
|
416
|
+
else {
|
|
417
|
+
if (this.hires || f || r.has(u)) {
|
|
418
|
+
const c = [this.generatedCodeColumn, t, s.line, s.column];
|
|
419
|
+
this.hires === "boundary" ? bt.test(n[u]) ? o || (this.rawSegments.push(c), o = !0) : (this.rawSegments.push(c), o = !1) : this.rawSegments.push(c);
|
|
420
|
+
}
|
|
421
|
+
s.column += 1, this.generatedCodeColumn += 1, f = !1;
|
|
416
422
|
}
|
|
417
|
-
|
|
418
|
-
` ? (r.line += 1, r.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, f = !0) : (r.column += 1, this.generatedCodeColumn += 1, f = !1), u += 1;
|
|
423
|
+
u += 1;
|
|
419
424
|
}
|
|
420
425
|
this.pending = null;
|
|
421
426
|
}
|
|
@@ -454,7 +459,8 @@ class X {
|
|
|
454
459
|
sourcemapLocations: { writable: !0, value: new P() },
|
|
455
460
|
storedNames: { writable: !0, value: {} },
|
|
456
461
|
indentStr: { writable: !0, value: void 0 },
|
|
457
|
-
ignoreList: { writable: !0, value: e.ignoreList }
|
|
462
|
+
ignoreList: { writable: !0, value: e.ignoreList },
|
|
463
|
+
offset: { writable: !0, value: e.offset || 0 }
|
|
458
464
|
}), this.byStart[0] = n, this.byEnd[t.length] = n;
|
|
459
465
|
}
|
|
460
466
|
addSourcemapLocation(t) {
|
|
@@ -465,38 +471,38 @@ class X {
|
|
|
465
471
|
return this.outro += t, this;
|
|
466
472
|
}
|
|
467
473
|
appendLeft(t, e) {
|
|
468
|
-
if (typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
474
|
+
if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
469
475
|
this._split(t);
|
|
470
476
|
const n = this.byEnd[t];
|
|
471
477
|
return n ? n.appendLeft(e) : this.intro += e, this;
|
|
472
478
|
}
|
|
473
479
|
appendRight(t, e) {
|
|
474
|
-
if (typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
480
|
+
if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
475
481
|
this._split(t);
|
|
476
482
|
const n = this.byStart[t];
|
|
477
483
|
return n ? n.appendRight(e) : this.outro += e, this;
|
|
478
484
|
}
|
|
479
485
|
clone() {
|
|
480
|
-
const t = new X(this.original, { filename: this.filename });
|
|
486
|
+
const t = new X(this.original, { filename: this.filename, offset: this.offset });
|
|
481
487
|
let e = this.firstChunk, n = t.firstChunk = t.lastSearchedChunk = e.clone();
|
|
482
488
|
for (; e; ) {
|
|
483
489
|
t.byStart[n.start] = n, t.byEnd[n.end] = n;
|
|
484
|
-
const
|
|
485
|
-
|
|
490
|
+
const s = e.next, r = s && s.clone();
|
|
491
|
+
r && (n.next = r, r.previous = n, n = r), e = s;
|
|
486
492
|
}
|
|
487
493
|
return t.lastChunk = n, this.indentExclusionRanges && (t.indentExclusionRanges = this.indentExclusionRanges.slice()), t.sourcemapLocations = new P(this.sourcemapLocations), t.intro = this.intro, t.outro = this.outro, t;
|
|
488
494
|
}
|
|
489
495
|
generateDecodedMap(t) {
|
|
490
496
|
t = t || {};
|
|
491
|
-
const e = 0, n = Object.keys(this.storedNames),
|
|
492
|
-
return this.intro &&
|
|
493
|
-
const f =
|
|
494
|
-
u.intro.length &&
|
|
497
|
+
const e = 0, n = Object.keys(this.storedNames), s = new Ct(t.hires), r = Q(this.original);
|
|
498
|
+
return this.intro && s.advance(this.intro), this.firstChunk.eachNext((u) => {
|
|
499
|
+
const f = r(u.start);
|
|
500
|
+
u.intro.length && s.advance(u.intro), u.edited ? s.addEdit(
|
|
495
501
|
e,
|
|
496
502
|
u.content,
|
|
497
503
|
f,
|
|
498
504
|
u.storeName ? n.indexOf(u.original) : -1
|
|
499
|
-
) :
|
|
505
|
+
) : s.addUneditedChunk(e, u, this.original, f, this.sourcemapLocations), u.outro.length && s.advance(u.outro);
|
|
500
506
|
}), {
|
|
501
507
|
file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
|
|
502
508
|
sources: [
|
|
@@ -504,7 +510,7 @@ class X {
|
|
|
504
510
|
],
|
|
505
511
|
sourcesContent: t.includeContent ? [this.original] : void 0,
|
|
506
512
|
names: n,
|
|
507
|
-
mappings:
|
|
513
|
+
mappings: s.raw,
|
|
508
514
|
x_google_ignoreList: this.ignoreList ? [e] : void 0
|
|
509
515
|
};
|
|
510
516
|
}
|
|
@@ -524,26 +530,26 @@ class X {
|
|
|
524
530
|
const n = /^[^\r\n]/gm;
|
|
525
531
|
if (wt(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "") return this;
|
|
526
532
|
e = e || {};
|
|
527
|
-
const
|
|
533
|
+
const s = {};
|
|
528
534
|
e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((k) => {
|
|
529
535
|
for (let O = k[0]; O < k[1]; O += 1)
|
|
530
|
-
|
|
536
|
+
s[O] = !0;
|
|
531
537
|
});
|
|
532
|
-
let
|
|
533
|
-
const u = (c) =>
|
|
538
|
+
let r = e.indentStart !== !1;
|
|
539
|
+
const u = (c) => r ? `${t}${c}` : (r = !0, c);
|
|
534
540
|
this.intro = this.intro.replace(n, u);
|
|
535
541
|
let f = 0, o = this.firstChunk;
|
|
536
542
|
for (; o; ) {
|
|
537
543
|
const c = o.end;
|
|
538
544
|
if (o.edited)
|
|
539
|
-
|
|
545
|
+
s[f] || (o.content = o.content.replace(n, u), o.content.length && (r = o.content[o.content.length - 1] === `
|
|
540
546
|
`));
|
|
541
547
|
else
|
|
542
548
|
for (f = o.start; f < c; ) {
|
|
543
|
-
if (!
|
|
549
|
+
if (!s[f]) {
|
|
544
550
|
const k = this.original[f];
|
|
545
551
|
k === `
|
|
546
|
-
` ?
|
|
552
|
+
` ? r = !0 : k !== "\r" && r && (r = !1, f === o.start || (this._splitChunk(o, f), o = o.next), o.prependRight(t));
|
|
547
553
|
}
|
|
548
554
|
f += 1;
|
|
549
555
|
}
|
|
@@ -567,18 +573,18 @@ class X {
|
|
|
567
573
|
), N.insertRight = !0), this.prependRight(t, e);
|
|
568
574
|
}
|
|
569
575
|
move(t, e, n) {
|
|
570
|
-
if (n >= t && n <= e) throw new Error("Cannot move a selection inside itself");
|
|
576
|
+
if (t = t + this.offset, e = e + this.offset, n = n + this.offset, n >= t && n <= e) throw new Error("Cannot move a selection inside itself");
|
|
571
577
|
this._split(t), this._split(e), this._split(n);
|
|
572
|
-
const
|
|
573
|
-
if (!o &&
|
|
578
|
+
const s = this.byStart[t], r = this.byEnd[e], u = s.previous, f = r.next, o = this.byStart[n];
|
|
579
|
+
if (!o && r === this.lastChunk) return this;
|
|
574
580
|
const c = o ? o.previous : this.lastChunk;
|
|
575
|
-
return u && (u.next = f), f && (f.previous = u), c && (c.next =
|
|
581
|
+
return u && (u.next = f), f && (f.previous = u), c && (c.next = s), o && (o.previous = r), s.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = s.previous, this.lastChunk.next = null), s.previous = c, r.next = o || null, c || (this.firstChunk = s), o || (this.lastChunk = r), this;
|
|
576
582
|
}
|
|
577
|
-
overwrite(t, e, n,
|
|
578
|
-
return
|
|
583
|
+
overwrite(t, e, n, s) {
|
|
584
|
+
return s = s || {}, this.update(t, e, n, { ...s, overwrite: !s.contentOnly });
|
|
579
585
|
}
|
|
580
|
-
update(t, e, n,
|
|
581
|
-
if (typeof n != "string") throw new TypeError("replacement content must be a string");
|
|
586
|
+
update(t, e, n, s) {
|
|
587
|
+
if (t = t + this.offset, e = e + this.offset, typeof n != "string") throw new TypeError("replacement content must be a string");
|
|
582
588
|
if (this.original.length !== 0) {
|
|
583
589
|
for (; t < 0; ) t += this.original.length;
|
|
584
590
|
for (; e < 0; ) e += this.original.length;
|
|
@@ -588,11 +594,11 @@ class X {
|
|
|
588
594
|
throw new Error(
|
|
589
595
|
"Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
|
|
590
596
|
);
|
|
591
|
-
this._split(t), this._split(e),
|
|
597
|
+
this._split(t), this._split(e), s === !0 && (N.storeName || (console.warn(
|
|
592
598
|
"The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
|
|
593
|
-
), N.storeName = !0),
|
|
594
|
-
const
|
|
595
|
-
if (
|
|
599
|
+
), N.storeName = !0), s = { storeName: !0 });
|
|
600
|
+
const r = s !== void 0 ? s.storeName : !1, u = s !== void 0 ? s.overwrite : !1;
|
|
601
|
+
if (r) {
|
|
596
602
|
const c = this.original.slice(t, e);
|
|
597
603
|
Object.defineProperty(this.storedNames, c, {
|
|
598
604
|
writable: !0,
|
|
@@ -608,9 +614,9 @@ class X {
|
|
|
608
614
|
throw new Error("Cannot overwrite across a split point");
|
|
609
615
|
c = c.next, c.edit("", !1);
|
|
610
616
|
}
|
|
611
|
-
f.edit(n,
|
|
617
|
+
f.edit(n, r, !u);
|
|
612
618
|
} else {
|
|
613
|
-
const c = new U(t, e, "").edit(n,
|
|
619
|
+
const c = new U(t, e, "").edit(n, r);
|
|
614
620
|
o.next = c, c.previous = o;
|
|
615
621
|
}
|
|
616
622
|
return this;
|
|
@@ -620,19 +626,19 @@ class X {
|
|
|
620
626
|
return this.intro = t + this.intro, this;
|
|
621
627
|
}
|
|
622
628
|
prependLeft(t, e) {
|
|
623
|
-
if (typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
629
|
+
if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
624
630
|
this._split(t);
|
|
625
631
|
const n = this.byEnd[t];
|
|
626
632
|
return n ? n.prependLeft(e) : this.intro = e + this.intro, this;
|
|
627
633
|
}
|
|
628
634
|
prependRight(t, e) {
|
|
629
|
-
if (typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
635
|
+
if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
|
|
630
636
|
this._split(t);
|
|
631
637
|
const n = this.byStart[t];
|
|
632
638
|
return n ? n.prependRight(e) : this.outro = e + this.outro, this;
|
|
633
639
|
}
|
|
634
640
|
remove(t, e) {
|
|
635
|
-
if (this.original.length !== 0) {
|
|
641
|
+
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
636
642
|
for (; t < 0; ) t += this.original.length;
|
|
637
643
|
for (; e < 0; ) e += this.original.length;
|
|
638
644
|
}
|
|
@@ -646,7 +652,7 @@ class X {
|
|
|
646
652
|
return this;
|
|
647
653
|
}
|
|
648
654
|
reset(t, e) {
|
|
649
|
-
if (this.original.length !== 0) {
|
|
655
|
+
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
650
656
|
for (; t < 0; ) t += this.original.length;
|
|
651
657
|
for (; e < 0; ) e += this.original.length;
|
|
652
658
|
}
|
|
@@ -689,29 +695,29 @@ class X {
|
|
|
689
695
|
} while (n = n.previous);
|
|
690
696
|
return t = this.intro.lastIndexOf($), t !== -1 ? this.intro.substr(t + 1) + e : this.intro + e;
|
|
691
697
|
}
|
|
692
|
-
slice(t = 0, e = this.original.length) {
|
|
693
|
-
if (this.original.length !== 0) {
|
|
698
|
+
slice(t = 0, e = this.original.length - this.offset) {
|
|
699
|
+
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
694
700
|
for (; t < 0; ) t += this.original.length;
|
|
695
701
|
for (; e < 0; ) e += this.original.length;
|
|
696
702
|
}
|
|
697
|
-
let n = "",
|
|
698
|
-
for (;
|
|
699
|
-
if (
|
|
703
|
+
let n = "", s = this.firstChunk;
|
|
704
|
+
for (; s && (s.start > t || s.end <= t); ) {
|
|
705
|
+
if (s.start < e && s.end >= e)
|
|
700
706
|
return n;
|
|
701
|
-
|
|
707
|
+
s = s.next;
|
|
702
708
|
}
|
|
703
|
-
if (
|
|
709
|
+
if (s && s.edited && s.start !== t)
|
|
704
710
|
throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);
|
|
705
|
-
const
|
|
706
|
-
for (;
|
|
707
|
-
|
|
708
|
-
const u =
|
|
709
|
-
if (u &&
|
|
711
|
+
const r = s;
|
|
712
|
+
for (; s; ) {
|
|
713
|
+
s.intro && (r !== s || s.start === t) && (n += s.intro);
|
|
714
|
+
const u = s.start < e && s.end >= e;
|
|
715
|
+
if (u && s.edited && s.end !== e)
|
|
710
716
|
throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);
|
|
711
|
-
const f =
|
|
712
|
-
if (n +=
|
|
717
|
+
const f = r === s ? t - s.start : 0, o = u ? s.content.length + e - s.end : s.content.length;
|
|
718
|
+
if (n += s.content.slice(f, o), s.outro && (!u || s.end === e) && (n += s.outro), u)
|
|
713
719
|
break;
|
|
714
|
-
|
|
720
|
+
s = s.next;
|
|
715
721
|
}
|
|
716
722
|
return n;
|
|
717
723
|
}
|
|
@@ -731,9 +737,9 @@ class X {
|
|
|
731
737
|
}
|
|
732
738
|
_splitChunk(t, e) {
|
|
733
739
|
if (t.edited && t.content.length) {
|
|
734
|
-
const
|
|
740
|
+
const s = Q(this.original)(e);
|
|
735
741
|
throw new Error(
|
|
736
|
-
`Cannot split a chunk that has already been edited (${
|
|
742
|
+
`Cannot split a chunk that has already been edited (${s.line}:${s.column} – "${t.original}")`
|
|
737
743
|
);
|
|
738
744
|
}
|
|
739
745
|
const n = t.split(e);
|
|
@@ -771,8 +777,8 @@ class X {
|
|
|
771
777
|
if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
|
|
772
778
|
let n = this.lastChunk;
|
|
773
779
|
do {
|
|
774
|
-
const
|
|
775
|
-
if (n.end !==
|
|
780
|
+
const s = n.end, r = n.trimEnd(e);
|
|
781
|
+
if (n.end !== s && (this.lastChunk === n && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r) return !0;
|
|
776
782
|
n = n.previous;
|
|
777
783
|
} while (n);
|
|
778
784
|
return !1;
|
|
@@ -785,8 +791,8 @@ class X {
|
|
|
785
791
|
if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
|
|
786
792
|
let n = this.firstChunk;
|
|
787
793
|
do {
|
|
788
|
-
const
|
|
789
|
-
if (n.end !==
|
|
794
|
+
const s = n.end, r = n.trimStart(e);
|
|
795
|
+
if (n.end !== s && (n === this.lastChunk && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r) return !0;
|
|
790
796
|
n = n.next;
|
|
791
797
|
} while (n);
|
|
792
798
|
return !1;
|
|
@@ -798,51 +804,43 @@ class X {
|
|
|
798
804
|
return this.original !== this.toString();
|
|
799
805
|
}
|
|
800
806
|
_replaceRegexp(t, e) {
|
|
801
|
-
function n(
|
|
802
|
-
return typeof e == "string" ? e.replace(/\$(\$|&|\d+)/g, (f, o) => o === "$" ? "$" : o === "&" ?
|
|
807
|
+
function n(r, u) {
|
|
808
|
+
return typeof e == "string" ? e.replace(/\$(\$|&|\d+)/g, (f, o) => o === "$" ? "$" : o === "&" ? r[0] : +o < r.length ? r[+o] : `$${o}`) : e(...r, r.index, u, r.groups);
|
|
803
809
|
}
|
|
804
|
-
function r
|
|
810
|
+
function s(r, u) {
|
|
805
811
|
let f;
|
|
806
812
|
const o = [];
|
|
807
|
-
for (; f =
|
|
813
|
+
for (; f = r.exec(u); )
|
|
808
814
|
o.push(f);
|
|
809
815
|
return o;
|
|
810
816
|
}
|
|
811
817
|
if (t.global)
|
|
812
|
-
|
|
818
|
+
s(t, this.original).forEach((u) => {
|
|
813
819
|
if (u.index != null) {
|
|
814
820
|
const f = n(u, this.original);
|
|
815
|
-
f !== u[0] && this.overwrite(
|
|
816
|
-
u.index,
|
|
817
|
-
u.index + u[0].length,
|
|
818
|
-
f
|
|
819
|
-
);
|
|
821
|
+
f !== u[0] && this.overwrite(u.index, u.index + u[0].length, f);
|
|
820
822
|
}
|
|
821
823
|
});
|
|
822
824
|
else {
|
|
823
|
-
const
|
|
824
|
-
if (
|
|
825
|
-
const u = n(
|
|
826
|
-
u !==
|
|
827
|
-
s.index,
|
|
828
|
-
s.index + s[0].length,
|
|
829
|
-
u
|
|
830
|
-
);
|
|
825
|
+
const r = this.original.match(t);
|
|
826
|
+
if (r && r.index != null) {
|
|
827
|
+
const u = n(r, this.original);
|
|
828
|
+
u !== r[0] && this.overwrite(r.index, r.index + r[0].length, u);
|
|
831
829
|
}
|
|
832
830
|
}
|
|
833
831
|
return this;
|
|
834
832
|
}
|
|
835
833
|
_replaceString(t, e) {
|
|
836
|
-
const { original: n } = this,
|
|
837
|
-
return
|
|
834
|
+
const { original: n } = this, s = n.indexOf(t);
|
|
835
|
+
return s !== -1 && this.overwrite(s, s + t.length, e), this;
|
|
838
836
|
}
|
|
839
837
|
replace(t, e) {
|
|
840
838
|
return typeof t == "string" ? this._replaceString(t, e) : this._replaceRegexp(t, e);
|
|
841
839
|
}
|
|
842
840
|
_replaceAllString(t, e) {
|
|
843
|
-
const { original: n } = this,
|
|
844
|
-
for (let
|
|
845
|
-
n.slice(
|
|
841
|
+
const { original: n } = this, s = t.length;
|
|
842
|
+
for (let r = n.indexOf(t); r !== -1; r = n.indexOf(t, r + s))
|
|
843
|
+
n.slice(r, r + s) !== e && this.overwrite(r, r + s, e);
|
|
846
844
|
return this;
|
|
847
845
|
}
|
|
848
846
|
replaceAll(t, e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const a = () => {
|
|
2
2
|
var e, t;
|
|
3
3
|
return (t = (e = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : e.toLowerCase()) == null ? void 0 : t.includes("mac");
|
|
4
|
-
},
|
|
4
|
+
}, r = () => a() ? "metaKey" : "ctrlKey";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as g,
|
|
7
7
|
a as i
|
|
8
8
|
};
|