@adyen/bento-vue2 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +17 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useLazyLoading/useLazyLoading.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +27 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +522 -114
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +5 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +13 -3
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.types.d.ts +1 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +5 -21
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +119 -71
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/stepper/components/step/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/stepper/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.keys.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +42 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +389 -50
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/lazy-load.d.ts +1 -0
- package/dist/accordion.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/base-button.89e9efbd.js +88 -0
- package/dist/chunks/base-button.89e9efbd.js.map +1 -0
- package/dist/chunks/base-modal.6eaa7e53.js +211 -0
- package/dist/chunks/base-modal.6eaa7e53.js.map +1 -0
- package/dist/chunks/{calendar.c20df708.js → calendar.44459d87.js} +2 -2
- package/dist/chunks/{calendar.c20df708.js.map → calendar.44459d87.js.map} +1 -1
- package/dist/chunks/{checkbox.5a69ce9d.js → checkbox.b69b8f22.js} +16 -16
- package/dist/chunks/{checkbox.5a69ce9d.js.map → checkbox.b69b8f22.js.map} +1 -1
- package/dist/chunks/{copy.982e1b19.js → copy.57f969d4.js} +2 -2
- package/dist/chunks/{copy.982e1b19.js.map → copy.57f969d4.js.map} +1 -1
- package/dist/chunks/debounce.b5ef6acf.js +10 -0
- package/dist/chunks/debounce.b5ef6acf.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.9bef4138.js → dropdown-default-textbox.2d093874.js} +8 -7
- package/dist/chunks/{dropdown-default-textbox.9bef4138.js.map → dropdown-default-textbox.2d093874.js.map} +1 -1
- package/dist/chunks/{dropdown.15cc1c45.js → dropdown.10ea8304.js} +33 -31
- package/dist/chunks/dropdown.10ea8304.js.map +1 -0
- package/dist/chunks/{index.c39c64c9.js → index.0f8690c4.js} +2 -2
- package/dist/chunks/{index.c39c64c9.js.map → index.0f8690c4.js.map} +1 -1
- package/dist/chunks/{index.58ce168a.js → index.4a11da21.js} +179 -170
- package/dist/chunks/index.4a11da21.js.map +1 -0
- package/dist/chunks/{index.876ea5bf.js → index.660f2f2e.js} +2 -2
- package/dist/chunks/{index.876ea5bf.js.map → index.660f2f2e.js.map} +1 -1
- package/dist/chunks/{index.b9c8c99a.js → index.f607a3f1.js} +4 -4
- package/dist/chunks/{index.b9c8c99a.js.map → index.f607a3f1.js.map} +1 -1
- package/dist/chunks/{debounce.f8d92e44.js → keyboard-navigation.ca47dfa8.js} +11 -17
- package/dist/chunks/keyboard-navigation.ca47dfa8.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.f8b467a7.js → listbox-option-tag.e2688e54.js} +2 -2
- package/dist/chunks/{listbox-option-tag.f8b467a7.js.map → listbox-option-tag.e2688e54.js.map} +1 -1
- package/dist/chunks/{listbox.cbf47484.js → listbox.201a8521.js} +6 -5
- package/dist/chunks/{listbox.cbf47484.js.map → listbox.201a8521.js.map} +1 -1
- package/dist/chunks/{tooltip.0297fd5d.js → tooltip.f89cb0cd.js} +18 -18
- package/dist/chunks/{tooltip.0297fd5d.js.map → tooltip.f89cb0cd.js.map} +1 -1
- package/dist/chunks/use-has-slot.6052d56a.js.map +1 -1
- package/dist/code-snippet.js +193 -191
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +750 -640
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +5 -5
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +10 -10
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +533 -491
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +71 -50
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +181 -102
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -1
- package/dist/index.js +200 -193
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +2 -2
- package/dist/internal.js +4 -4
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +39 -30
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +29 -26
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -2
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +43 -31
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +1228 -180
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +3 -3
- package/dist/segmented-control.js +9 -9
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +13 -13
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +229 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +1 -1
- package/dist/tag.js +2 -2
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle.js +14 -14
- package/dist/toggle.js.map +1 -1
- package/dist/web-types.json +279 -60
- package/package.json +3 -3
- package/dist/chunks/base-button.7a676605.js +0 -82
- package/dist/chunks/base-button.7a676605.js.map +0 -1
- package/dist/chunks/base-modal.a51d2395.js +0 -207
- package/dist/chunks/base-modal.a51d2395.js.map +0 -1
- package/dist/chunks/debounce.f8d92e44.js.map +0 -1
- package/dist/chunks/dropdown.15cc1c45.js.map +0 -1
- package/dist/chunks/index.58ce168a.js.map +0 -1
package/dist/code-snippet.js
CHANGED
|
@@ -7,24 +7,24 @@ import { json as Ze } from "@codemirror/lang-json";
|
|
|
7
7
|
import { xml as Qe } from "@codemirror/lang-xml";
|
|
8
8
|
import { javascript as Ye } from "@codemirror/lang-javascript";
|
|
9
9
|
import { java as et } from "@codemirror/lang-java";
|
|
10
|
-
import { B as tt } from "./chunks/dropdown.
|
|
11
|
-
import { f as nt } from "./chunks/base-modal.
|
|
10
|
+
import { B as tt } from "./chunks/dropdown.10ea8304.js";
|
|
11
|
+
import { f as nt } from "./chunks/base-modal.6eaa7e53.js";
|
|
12
12
|
import { a as rt } from "./chunks/button.66df5734.js";
|
|
13
13
|
import { B as it } from "./chunks/index.1645ffcb.js";
|
|
14
14
|
import { BentoLoadingIndicator as st } from "./loading-indicator.js";
|
|
15
15
|
import { u as lt } from "./chunks/i18n.155748d6.js";
|
|
16
16
|
import { n as Te } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
17
|
-
import { C as ot } from "./chunks/copy.
|
|
18
|
-
import { b as at } from "./chunks/tooltip.
|
|
19
|
-
import "./assets/
|
|
20
|
-
const
|
|
21
|
-
let
|
|
17
|
+
import { C as ot } from "./chunks/copy.57f969d4.js";
|
|
18
|
+
import { b as at } from "./chunks/tooltip.f89cb0cd.js";
|
|
19
|
+
import "./assets/index16.css";
|
|
20
|
+
const ut = 1024;
|
|
21
|
+
let ft = 0;
|
|
22
22
|
class v {
|
|
23
23
|
/**
|
|
24
24
|
Create a new node prop type.
|
|
25
25
|
*/
|
|
26
26
|
constructor(e = {}) {
|
|
27
|
-
this.id =
|
|
27
|
+
this.id = ft++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
|
|
28
28
|
throw new Error("This node type doesn't define a deserialize function");
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -165,20 +165,20 @@ W.none = new W(
|
|
|
165
165
|
8
|
|
166
166
|
/* NodeFlag.Anonymous */
|
|
167
167
|
);
|
|
168
|
-
const
|
|
168
|
+
const ue = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap();
|
|
169
169
|
var S;
|
|
170
170
|
(function(i) {
|
|
171
171
|
i[i.ExcludeBuffers = 1] = "ExcludeBuffers", i[i.IncludeAnonymous = 2] = "IncludeAnonymous", i[i.IgnoreMounts = 4] = "IgnoreMounts", i[i.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
172
172
|
})(S || (S = {}));
|
|
173
|
-
class
|
|
173
|
+
class V {
|
|
174
174
|
/**
|
|
175
175
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
176
176
|
*/
|
|
177
177
|
constructor(e, t, n, r, s) {
|
|
178
178
|
if (this.type = e, this.children = t, this.positions = n, this.length = r, this.props = null, s && s.length) {
|
|
179
179
|
this.props = /* @__PURE__ */ Object.create(null);
|
|
180
|
-
for (let [l,
|
|
181
|
-
this.props[typeof l == "number" ? l : l.id] =
|
|
180
|
+
for (let [l, u] of s)
|
|
181
|
+
this.props[typeof l == "number" ? l : l.id] = u;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
@@ -209,8 +209,8 @@ class R {
|
|
|
209
209
|
[`moveTo`](#common.TreeCursor.moveTo).
|
|
210
210
|
*/
|
|
211
211
|
cursorAt(e, t = 0, n = 0) {
|
|
212
|
-
let r =
|
|
213
|
-
return s.moveTo(e, t),
|
|
212
|
+
let r = ue.get(this) || this.topNode, s = new _e(r);
|
|
213
|
+
return s.moveTo(e, t), ue.set(this, s._tree), s;
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
Get a [syntax node](#common.SyntaxNode) object for the top of the
|
|
@@ -231,8 +231,8 @@ class R {
|
|
|
231
231
|
[`resolveInner`](#common.Tree.resolveInner) instead.
|
|
232
232
|
*/
|
|
233
233
|
resolve(e, t = 0) {
|
|
234
|
-
let n = le(
|
|
235
|
-
return
|
|
234
|
+
let n = le(ue.get(this) || this.topNode, e, t, !1);
|
|
235
|
+
return ue.set(this, n), n;
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
238
|
Like [`resolve`](#common.Tree.resolve), but will enter
|
|
@@ -263,15 +263,15 @@ class R {
|
|
|
263
263
|
not have its children iterated over (or `leave` called).
|
|
264
264
|
*/
|
|
265
265
|
iterate(e) {
|
|
266
|
-
let { enter: t, leave: n, from: r = 0, to: s = this.length } = e, l = e.mode || 0,
|
|
266
|
+
let { enter: t, leave: n, from: r = 0, to: s = this.length } = e, l = e.mode || 0, u = (l & S.IncludeAnonymous) > 0;
|
|
267
267
|
for (let h = this.cursor(l | S.IncludeAnonymous); ; ) {
|
|
268
268
|
let C = !1;
|
|
269
|
-
if (h.from <= s && h.to >= r && (!
|
|
269
|
+
if (h.from <= s && h.to >= r && (!u && h.type.isAnonymous || t(h) !== !1)) {
|
|
270
270
|
if (h.firstChild())
|
|
271
271
|
continue;
|
|
272
272
|
C = !0;
|
|
273
273
|
}
|
|
274
|
-
for (; C && n && (
|
|
274
|
+
for (; C && n && (u || !h.type.isAnonymous) && n(h), !h.nextSibling(); ) {
|
|
275
275
|
if (!h.parent())
|
|
276
276
|
return;
|
|
277
277
|
C = !0;
|
|
@@ -303,7 +303,7 @@ class R {
|
|
|
303
303
|
[`NodeType.none`](#common.NodeType^none).
|
|
304
304
|
*/
|
|
305
305
|
balance(e = {}) {
|
|
306
|
-
return this.children.length <= 8 ? this : we(W.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new
|
|
306
|
+
return this.children.length <= 8 ? this : we(W.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new V(this.type, t, n, r, this.propValues), e.makeTree || ((t, n, r) => new V(W.none, t, n, r)));
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
309
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -313,7 +313,7 @@ class R {
|
|
|
313
313
|
return gt(e);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
|
|
316
|
+
V.empty = new V(W.none, [], [], 0);
|
|
317
317
|
class Ce {
|
|
318
318
|
constructor(e, t) {
|
|
319
319
|
this.buffer = e, this.index = t;
|
|
@@ -378,20 +378,20 @@ class q {
|
|
|
378
378
|
@internal
|
|
379
379
|
*/
|
|
380
380
|
findChild(e, t, n, r, s) {
|
|
381
|
-
let { buffer: l } = this,
|
|
382
|
-
for (let h = e; h != t && !(je(s, r, l[h + 1], l[h + 2]) && (
|
|
381
|
+
let { buffer: l } = this, u = -1;
|
|
382
|
+
for (let h = e; h != t && !(je(s, r, l[h + 1], l[h + 2]) && (u = h, n > 0)); h = l[h + 3])
|
|
383
383
|
;
|
|
384
|
-
return
|
|
384
|
+
return u;
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
387
|
@internal
|
|
388
388
|
*/
|
|
389
389
|
slice(e, t, n) {
|
|
390
390
|
let r = this.buffer, s = new Uint16Array(t - e), l = 0;
|
|
391
|
-
for (let
|
|
392
|
-
s[h++] = r[
|
|
393
|
-
let C = s[h++] = r[
|
|
394
|
-
s[h++] = r[
|
|
391
|
+
for (let u = e, h = 0; u < t; ) {
|
|
392
|
+
s[h++] = r[u++], s[h++] = r[u++] - n;
|
|
393
|
+
let C = s[h++] = r[u++] - n;
|
|
394
|
+
s[h++] = r[u++] - e, l = Math.max(l, C);
|
|
395
395
|
}
|
|
396
396
|
return new q(s, l, this.set);
|
|
397
397
|
}
|
|
@@ -421,8 +421,8 @@ function le(i, e, t, n) {
|
|
|
421
421
|
}
|
|
422
422
|
let s = n ? 0 : S.IgnoreOverlays;
|
|
423
423
|
if (n)
|
|
424
|
-
for (let l = i,
|
|
425
|
-
l instanceof O && l.index < 0 && ((r =
|
|
424
|
+
for (let l = i, u = l.parent; u; l = u, u = l.parent)
|
|
425
|
+
l instanceof O && l.index < 0 && ((r = u.enter(e, t, s)) === null || r === void 0 ? void 0 : r.from) != l.from && (i = u);
|
|
426
426
|
for (; ; ) {
|
|
427
427
|
let l = i.enter(e, t, s);
|
|
428
428
|
if (!l)
|
|
@@ -482,8 +482,8 @@ class O extends He {
|
|
|
482
482
|
}
|
|
483
483
|
nextChild(e, t, n, r, s = 0) {
|
|
484
484
|
for (let l = this; ; ) {
|
|
485
|
-
for (let { children:
|
|
486
|
-
let k =
|
|
485
|
+
for (let { children: u, positions: h } = l._tree, C = t > 0 ? u.length : -1; e != C; e += t) {
|
|
486
|
+
let k = u[e], N = h[e] + l.from;
|
|
487
487
|
if (je(r, n, N, N + k.length)) {
|
|
488
488
|
if (k instanceof q) {
|
|
489
489
|
if (s & S.ExcludeBuffers)
|
|
@@ -495,8 +495,8 @@ class O extends He {
|
|
|
495
495
|
let A;
|
|
496
496
|
if (!(s & S.IgnoreMounts) && (A = ge.get(k)) && !A.overlay)
|
|
497
497
|
return new O(A.tree, N, e, l);
|
|
498
|
-
let
|
|
499
|
-
return s & S.IncludeAnonymous || !
|
|
498
|
+
let E = new O(k, N, e, l);
|
|
499
|
+
return s & S.IncludeAnonymous || !E.type.isAnonymous ? E : E.nextChild(t < 0 ? k.children.length - 1 : 0, t, n, r);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}
|
|
@@ -544,8 +544,8 @@ class O extends He {
|
|
|
544
544
|
let r;
|
|
545
545
|
if (!(n & S.IgnoreOverlays) && (r = ge.get(this._tree)) && r.overlay) {
|
|
546
546
|
let s = e - this.from;
|
|
547
|
-
for (let { from: l, to:
|
|
548
|
-
if ((t > 0 ? l <= s : l < s) && (t < 0 ?
|
|
547
|
+
for (let { from: l, to: u } of r.overlay)
|
|
548
|
+
if ((t > 0 ? l <= s : l < s) && (t < 0 ? u >= s : u > s))
|
|
549
549
|
return new O(r.tree, r.overlay[0].from + this.from, -1, this);
|
|
550
550
|
}
|
|
551
551
|
return this.nextChild(0, 1, e, t, n);
|
|
@@ -714,7 +714,7 @@ class F extends He {
|
|
|
714
714
|
let l = n.buffer[this.index + 1];
|
|
715
715
|
e.push(n.slice(r, s, l)), t.push(0);
|
|
716
716
|
}
|
|
717
|
-
return new
|
|
717
|
+
return new V(this.type, e, t, this.to - this.from);
|
|
718
718
|
}
|
|
719
719
|
/**
|
|
720
720
|
@internal
|
|
@@ -751,8 +751,8 @@ function pt(i, e, t) {
|
|
|
751
751
|
} else {
|
|
752
752
|
let l = ge.get(s.tree);
|
|
753
753
|
if (l && l.overlay && l.overlay[0].from <= e && l.overlay[l.overlay.length - 1].to >= e) {
|
|
754
|
-
let
|
|
755
|
-
(r || (r = [n])).push(le(
|
|
754
|
+
let u = new O(l.tree, l.overlay[0].from + s.from, -1, s);
|
|
755
|
+
(r || (r = [n])).push(le(u, e, t, !1));
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
return r ? Re(r) : n;
|
|
@@ -925,8 +925,8 @@ class _e {
|
|
|
925
925
|
for (; n; { index: t, _parent: n } = n)
|
|
926
926
|
if (t > -1)
|
|
927
927
|
for (let s = t + e, l = e < 0 ? -1 : n._tree.children.length; s != l; s += e) {
|
|
928
|
-
let
|
|
929
|
-
if (this.mode & S.IncludeAnonymous ||
|
|
928
|
+
let u = n._tree.children[s];
|
|
929
|
+
if (this.mode & S.IncludeAnonymous || u instanceof q || !u.type.isAnonymous || ke(u))
|
|
930
930
|
return !1;
|
|
931
931
|
}
|
|
932
932
|
return !0;
|
|
@@ -1059,13 +1059,13 @@ function ke(i) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function gt(i) {
|
|
1061
1061
|
var e;
|
|
1062
|
-
let { buffer: t, nodeSet: n, maxBufferLength: r =
|
|
1063
|
-
function N(g, b,
|
|
1064
|
-
let { id: c, start: d, end: _, size: x } =
|
|
1062
|
+
let { buffer: t, nodeSet: n, maxBufferLength: r = ut, reused: s = [], minRepeatType: l = n.types.length } = i, u = Array.isArray(t) ? new Ce(t, t.length) : t, h = n.types, C = 0, k = 0;
|
|
1063
|
+
function N(g, b, f, y, p, m) {
|
|
1064
|
+
let { id: c, start: d, end: _, size: x } = u, L = k;
|
|
1065
1065
|
for (; x < 0; )
|
|
1066
|
-
if (
|
|
1066
|
+
if (u.next(), x == -1) {
|
|
1067
1067
|
let U = s[c];
|
|
1068
|
-
|
|
1068
|
+
f.push(U), y.push(d - g);
|
|
1069
1069
|
return;
|
|
1070
1070
|
} else if (x == -3) {
|
|
1071
1071
|
C = c;
|
|
@@ -1076,62 +1076,62 @@ function gt(i) {
|
|
|
1076
1076
|
} else
|
|
1077
1077
|
throw new RangeError(`Unrecognized record size: ${x}`);
|
|
1078
1078
|
let X = h[c], te, Z, Ne = d - g;
|
|
1079
|
-
if (_ - d <= r && (Z =
|
|
1080
|
-
let U = new Uint16Array(Z.size - Z.skip), B =
|
|
1081
|
-
for (;
|
|
1082
|
-
|
|
1079
|
+
if (_ - d <= r && (Z = z(u.pos - b, p))) {
|
|
1080
|
+
let U = new Uint16Array(Z.size - Z.skip), B = u.pos - Z.size, P = U.length;
|
|
1081
|
+
for (; u.pos > B; )
|
|
1082
|
+
P = $(Z.start, U, P);
|
|
1083
1083
|
te = new q(U, _ - Z.start, n), Ne = Z.start - g;
|
|
1084
1084
|
} else {
|
|
1085
|
-
let U =
|
|
1086
|
-
|
|
1087
|
-
let B = [],
|
|
1088
|
-
for (;
|
|
1089
|
-
Q >= 0 &&
|
|
1090
|
-
if (Q >= 0 && ne > 0 && ne < B.length && I(B,
|
|
1091
|
-
let Se =
|
|
1092
|
-
te = we(X, B,
|
|
1085
|
+
let U = u.pos - x;
|
|
1086
|
+
u.next();
|
|
1087
|
+
let B = [], P = [], Q = c >= l ? c : -1, ne = 0, oe = _;
|
|
1088
|
+
for (; u.pos > U; )
|
|
1089
|
+
Q >= 0 && u.id == Q && u.size >= 0 ? (u.end <= oe - r && (I(B, P, d, ne, u.end, oe, Q, L), ne = B.length, oe = u.end), u.next()) : m > 2500 ? A(d, U, B, P) : N(d, U, B, P, Q, m + 1);
|
|
1090
|
+
if (Q >= 0 && ne > 0 && ne < B.length && I(B, P, d, ne, d, oe, Q, L), B.reverse(), P.reverse(), Q > -1 && ne > 0) {
|
|
1091
|
+
let Se = E(X);
|
|
1092
|
+
te = we(X, B, P, 0, B.length, 0, _ - d, Se, Se);
|
|
1093
1093
|
} else
|
|
1094
|
-
te =
|
|
1094
|
+
te = M(X, B, P, _ - d, L - _);
|
|
1095
1095
|
}
|
|
1096
|
-
|
|
1096
|
+
f.push(te), y.push(Ne);
|
|
1097
1097
|
}
|
|
1098
|
-
function A(g, b,
|
|
1098
|
+
function A(g, b, f, y) {
|
|
1099
1099
|
let p = [], m = 0, c = -1;
|
|
1100
|
-
for (;
|
|
1101
|
-
let { id: d, start: _, end: x, size: L } =
|
|
1100
|
+
for (; u.pos > b; ) {
|
|
1101
|
+
let { id: d, start: _, end: x, size: L } = u;
|
|
1102
1102
|
if (L > 4)
|
|
1103
|
-
|
|
1103
|
+
u.next();
|
|
1104
1104
|
else {
|
|
1105
1105
|
if (c > -1 && _ < c)
|
|
1106
1106
|
break;
|
|
1107
|
-
c < 0 && (c = x - r), p.push(d, _, x), m++,
|
|
1107
|
+
c < 0 && (c = x - r), p.push(d, _, x), m++, u.next();
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
if (m) {
|
|
1111
1111
|
let d = new Uint16Array(m * 4), _ = p[p.length - 2];
|
|
1112
1112
|
for (let x = p.length - 3, L = 0; x >= 0; x -= 3)
|
|
1113
1113
|
d[L++] = p[x], d[L++] = p[x + 1] - _, d[L++] = p[x + 2] - _, d[L++] = L;
|
|
1114
|
-
|
|
1114
|
+
f.push(new q(d, p[2] - _, n)), y.push(_ - g);
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return (b,
|
|
1117
|
+
function E(g) {
|
|
1118
|
+
return (b, f, y) => {
|
|
1119
1119
|
let p = 0, m = b.length - 1, c, d;
|
|
1120
|
-
if (m >= 0 && (c = b[m]) instanceof
|
|
1120
|
+
if (m >= 0 && (c = b[m]) instanceof V) {
|
|
1121
1121
|
if (!m && c.type == g && c.length == y)
|
|
1122
1122
|
return c;
|
|
1123
|
-
(d = c.prop(v.lookAhead)) && (p =
|
|
1123
|
+
(d = c.prop(v.lookAhead)) && (p = f[m] + c.length + d);
|
|
1124
1124
|
}
|
|
1125
|
-
return
|
|
1125
|
+
return M(g, b, f, y, p);
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
|
-
function I(g, b,
|
|
1128
|
+
function I(g, b, f, y, p, m, c, d) {
|
|
1129
1129
|
let _ = [], x = [];
|
|
1130
1130
|
for (; g.length > y; )
|
|
1131
|
-
_.push(g.pop()), x.push(b.pop() +
|
|
1132
|
-
g.push(
|
|
1131
|
+
_.push(g.pop()), x.push(b.pop() + f - p);
|
|
1132
|
+
g.push(M(n.types[c], _, x, m - p, d - m)), b.push(p - f);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function M(g, b, f, y, p = 0, m) {
|
|
1135
1135
|
if (C) {
|
|
1136
1136
|
let c = [v.contextHash, C];
|
|
1137
1137
|
m = m ? [c].concat(m) : [c];
|
|
@@ -1140,54 +1140,54 @@ function gt(i) {
|
|
|
1140
1140
|
let c = [v.lookAhead, p];
|
|
1141
1141
|
m = m ? [c].concat(m) : [c];
|
|
1142
1142
|
}
|
|
1143
|
-
return new
|
|
1143
|
+
return new V(g, b, f, y, m);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1146
|
-
let
|
|
1145
|
+
function z(g, b) {
|
|
1146
|
+
let f = u.fork(), y = 0, p = 0, m = 0, c = f.end - r, d = { size: 0, start: 0, skip: 0 };
|
|
1147
1147
|
e:
|
|
1148
|
-
for (let _ =
|
|
1149
|
-
let x =
|
|
1150
|
-
if (
|
|
1151
|
-
d.size = y, d.start = p, d.skip = m, m += 4, y += 4,
|
|
1148
|
+
for (let _ = f.pos - g; f.pos > _; ) {
|
|
1149
|
+
let x = f.size;
|
|
1150
|
+
if (f.id == b && x >= 0) {
|
|
1151
|
+
d.size = y, d.start = p, d.skip = m, m += 4, y += 4, f.next();
|
|
1152
1152
|
continue;
|
|
1153
1153
|
}
|
|
1154
|
-
let L =
|
|
1155
|
-
if (x < 0 || L < _ ||
|
|
1154
|
+
let L = f.pos - x;
|
|
1155
|
+
if (x < 0 || L < _ || f.start < c)
|
|
1156
1156
|
break;
|
|
1157
|
-
let X =
|
|
1158
|
-
for (
|
|
1159
|
-
if (
|
|
1160
|
-
if (
|
|
1157
|
+
let X = f.id >= l ? 4 : 0, te = f.start;
|
|
1158
|
+
for (f.next(); f.pos > L; ) {
|
|
1159
|
+
if (f.size < 0)
|
|
1160
|
+
if (f.size == -3)
|
|
1161
1161
|
X += 4;
|
|
1162
1162
|
else
|
|
1163
1163
|
break e;
|
|
1164
1164
|
else
|
|
1165
|
-
|
|
1166
|
-
|
|
1165
|
+
f.id >= l && (X += 4);
|
|
1166
|
+
f.next();
|
|
1167
1167
|
}
|
|
1168
1168
|
p = te, y += x, m += X;
|
|
1169
1169
|
}
|
|
1170
1170
|
return (b < 0 || y == g) && (d.size = y, d.start = p, d.skip = m), d.size > 4 ? d : void 0;
|
|
1171
1171
|
}
|
|
1172
|
-
function $(g, b,
|
|
1173
|
-
let { id: y, start: p, end: m, size: c } =
|
|
1174
|
-
if (
|
|
1175
|
-
let d =
|
|
1172
|
+
function $(g, b, f) {
|
|
1173
|
+
let { id: y, start: p, end: m, size: c } = u;
|
|
1174
|
+
if (u.next(), c >= 0 && y < l) {
|
|
1175
|
+
let d = f;
|
|
1176
1176
|
if (c > 4) {
|
|
1177
|
-
let _ =
|
|
1178
|
-
for (;
|
|
1179
|
-
|
|
1177
|
+
let _ = u.pos - (c - 4);
|
|
1178
|
+
for (; u.pos > _; )
|
|
1179
|
+
f = $(g, b, f);
|
|
1180
1180
|
}
|
|
1181
|
-
b[--
|
|
1181
|
+
b[--f] = d, b[--f] = m - g, b[--f] = p - g, b[--f] = y;
|
|
1182
1182
|
} else
|
|
1183
1183
|
c == -3 ? C = y : c == -4 && (k = y);
|
|
1184
|
-
return
|
|
1184
|
+
return f;
|
|
1185
1185
|
}
|
|
1186
1186
|
let D = [], w = [];
|
|
1187
|
-
for (;
|
|
1187
|
+
for (; u.pos > 0; )
|
|
1188
1188
|
N(i.start || 0, i.bufferStart || 0, D, w, -1, 0);
|
|
1189
1189
|
let J = (e = i.length) !== null && e !== void 0 ? e : D.length ? w[0] + D[0].length : 0;
|
|
1190
|
-
return new
|
|
1190
|
+
return new V(h[i.topID], D.reverse(), w.reverse(), J);
|
|
1191
1191
|
}
|
|
1192
1192
|
const ze = /* @__PURE__ */ new WeakMap();
|
|
1193
1193
|
function de(i, e) {
|
|
@@ -1197,7 +1197,7 @@ function de(i, e) {
|
|
|
1197
1197
|
if (t == null) {
|
|
1198
1198
|
t = 1;
|
|
1199
1199
|
for (let n of e.children) {
|
|
1200
|
-
if (n.type != i || !(n instanceof
|
|
1200
|
+
if (n.type != i || !(n instanceof V)) {
|
|
1201
1201
|
t = 1;
|
|
1202
1202
|
break;
|
|
1203
1203
|
}
|
|
@@ -1207,7 +1207,7 @@ function de(i, e) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
return t;
|
|
1209
1209
|
}
|
|
1210
|
-
function we(i, e, t, n, r, s, l,
|
|
1210
|
+
function we(i, e, t, n, r, s, l, u, h) {
|
|
1211
1211
|
let C = 0;
|
|
1212
1212
|
for (let I = n; I < r; I++)
|
|
1213
1213
|
C += de(i, e[I]);
|
|
@@ -1215,34 +1215,34 @@ function we(i, e, t, n, r, s, l, f, h) {
|
|
|
1215
1215
|
C * 1.5 / 8
|
|
1216
1216
|
/* Balance.BranchFactor */
|
|
1217
1217
|
), N = [], A = [];
|
|
1218
|
-
function
|
|
1219
|
-
for (let w =
|
|
1220
|
-
let J = w, g =
|
|
1218
|
+
function E(I, M, z, $, D) {
|
|
1219
|
+
for (let w = z; w < $; ) {
|
|
1220
|
+
let J = w, g = M[w], b = de(i, I[w]);
|
|
1221
1221
|
for (w++; w < $; w++) {
|
|
1222
|
-
let
|
|
1223
|
-
if (b +
|
|
1222
|
+
let f = de(i, I[w]);
|
|
1223
|
+
if (b + f >= k)
|
|
1224
1224
|
break;
|
|
1225
|
-
b +=
|
|
1225
|
+
b += f;
|
|
1226
1226
|
}
|
|
1227
1227
|
if (w == J + 1) {
|
|
1228
1228
|
if (b > k) {
|
|
1229
|
-
let
|
|
1230
|
-
|
|
1229
|
+
let f = I[J];
|
|
1230
|
+
E(f.children, f.positions, 0, f.children.length, M[J] + D);
|
|
1231
1231
|
continue;
|
|
1232
1232
|
}
|
|
1233
1233
|
N.push(I[J]);
|
|
1234
1234
|
} else {
|
|
1235
|
-
let
|
|
1236
|
-
N.push(we(i, I,
|
|
1235
|
+
let f = M[w - 1] + I[w - 1].length - g;
|
|
1236
|
+
N.push(we(i, I, M, J, w, g, f, null, h));
|
|
1237
1237
|
}
|
|
1238
1238
|
A.push(g + D - s);
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
|
-
return
|
|
1241
|
+
return E(e, t, n, r, 0), (u || h)(N, A, l);
|
|
1242
1242
|
}
|
|
1243
1243
|
new v({ perNode: !0 });
|
|
1244
1244
|
let mt = 0;
|
|
1245
|
-
class
|
|
1245
|
+
class R {
|
|
1246
1246
|
/**
|
|
1247
1247
|
@internal
|
|
1248
1248
|
*/
|
|
@@ -1259,7 +1259,7 @@ class H {
|
|
|
1259
1259
|
static define(e) {
|
|
1260
1260
|
if (e != null && e.base)
|
|
1261
1261
|
throw new Error("Can not derive from a modified tag");
|
|
1262
|
-
let t = new
|
|
1262
|
+
let t = new R([], null, []);
|
|
1263
1263
|
if (t.set.push(t), e)
|
|
1264
1264
|
for (let n of e.set)
|
|
1265
1265
|
t.set.push(n);
|
|
@@ -1290,17 +1290,17 @@ class me {
|
|
|
1290
1290
|
static get(e, t) {
|
|
1291
1291
|
if (!t.length)
|
|
1292
1292
|
return e;
|
|
1293
|
-
let n = t[0].instances.find((
|
|
1293
|
+
let n = t[0].instances.find((u) => u.base == e && yt(t, u.modified));
|
|
1294
1294
|
if (n)
|
|
1295
1295
|
return n;
|
|
1296
|
-
let r = [], s = new
|
|
1297
|
-
for (let
|
|
1298
|
-
|
|
1296
|
+
let r = [], s = new R(r, e, t);
|
|
1297
|
+
for (let u of t)
|
|
1298
|
+
u.instances.push(s);
|
|
1299
1299
|
let l = xt(t);
|
|
1300
|
-
for (let
|
|
1301
|
-
if (!
|
|
1300
|
+
for (let u of e.set)
|
|
1301
|
+
if (!u.modified.length)
|
|
1302
1302
|
for (let h of l)
|
|
1303
|
-
r.push(me.get(
|
|
1303
|
+
r.push(me.get(u, h));
|
|
1304
1304
|
return s;
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
@@ -1327,8 +1327,8 @@ function _t(i, e) {
|
|
|
1327
1327
|
return {
|
|
1328
1328
|
style: (s) => {
|
|
1329
1329
|
let l = r;
|
|
1330
|
-
for (let
|
|
1331
|
-
for (let h of
|
|
1330
|
+
for (let u of s)
|
|
1331
|
+
for (let h of u.set) {
|
|
1332
1332
|
let C = t[h.id];
|
|
1333
1333
|
if (C) {
|
|
1334
1334
|
l = l ? l + " " + C : C;
|
|
@@ -1340,23 +1340,23 @@ function _t(i, e) {
|
|
|
1340
1340
|
scope: n
|
|
1341
1341
|
};
|
|
1342
1342
|
}
|
|
1343
|
-
const a =
|
|
1343
|
+
const a = R.define, fe = a(), G = a(), Ee = a(G), Me = a(G), K = a(), he = a(K), ye = a(K), H = a(), Y = a(H), T = a(), j = a(), ve = a(), ie = a(ve), ce = a(), o = {
|
|
1344
1344
|
/**
|
|
1345
1345
|
A comment.
|
|
1346
1346
|
*/
|
|
1347
|
-
comment:
|
|
1347
|
+
comment: fe,
|
|
1348
1348
|
/**
|
|
1349
1349
|
A line [comment](#highlight.tags.comment).
|
|
1350
1350
|
*/
|
|
1351
|
-
lineComment: a(
|
|
1351
|
+
lineComment: a(fe),
|
|
1352
1352
|
/**
|
|
1353
1353
|
A block [comment](#highlight.tags.comment).
|
|
1354
1354
|
*/
|
|
1355
|
-
blockComment: a(
|
|
1355
|
+
blockComment: a(fe),
|
|
1356
1356
|
/**
|
|
1357
1357
|
A documentation [comment](#highlight.tags.comment).
|
|
1358
1358
|
*/
|
|
1359
|
-
docComment: a(
|
|
1359
|
+
docComment: a(fe),
|
|
1360
1360
|
/**
|
|
1361
1361
|
Any kind of identifier.
|
|
1362
1362
|
*/
|
|
@@ -1453,85 +1453,85 @@ const a = H.define, ue = a(), G = a(), Ee = a(G), Me = a(G), K = a(), he = a(K),
|
|
|
1453
1453
|
/**
|
|
1454
1454
|
A language keyword.
|
|
1455
1455
|
*/
|
|
1456
|
-
keyword:
|
|
1456
|
+
keyword: T,
|
|
1457
1457
|
/**
|
|
1458
1458
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
1459
1459
|
object.
|
|
1460
1460
|
*/
|
|
1461
|
-
self: a(
|
|
1461
|
+
self: a(T),
|
|
1462
1462
|
/**
|
|
1463
1463
|
The [keyword](#highlight.tags.keyword) for null.
|
|
1464
1464
|
*/
|
|
1465
|
-
null: a(
|
|
1465
|
+
null: a(T),
|
|
1466
1466
|
/**
|
|
1467
1467
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
1468
1468
|
*/
|
|
1469
|
-
atom: a(
|
|
1469
|
+
atom: a(T),
|
|
1470
1470
|
/**
|
|
1471
1471
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
1472
1472
|
*/
|
|
1473
|
-
unit: a(
|
|
1473
|
+
unit: a(T),
|
|
1474
1474
|
/**
|
|
1475
1475
|
A modifier [keyword](#highlight.tags.keyword).
|
|
1476
1476
|
*/
|
|
1477
|
-
modifier: a(
|
|
1477
|
+
modifier: a(T),
|
|
1478
1478
|
/**
|
|
1479
1479
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
1480
1480
|
*/
|
|
1481
|
-
operatorKeyword: a(
|
|
1481
|
+
operatorKeyword: a(T),
|
|
1482
1482
|
/**
|
|
1483
1483
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
1484
1484
|
*/
|
|
1485
|
-
controlKeyword: a(
|
|
1485
|
+
controlKeyword: a(T),
|
|
1486
1486
|
/**
|
|
1487
1487
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
1488
1488
|
*/
|
|
1489
|
-
definitionKeyword: a(
|
|
1489
|
+
definitionKeyword: a(T),
|
|
1490
1490
|
/**
|
|
1491
1491
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
1492
1492
|
interfacing with modules.
|
|
1493
1493
|
*/
|
|
1494
|
-
moduleKeyword: a(
|
|
1494
|
+
moduleKeyword: a(T),
|
|
1495
1495
|
/**
|
|
1496
1496
|
An operator.
|
|
1497
1497
|
*/
|
|
1498
|
-
operator:
|
|
1498
|
+
operator: j,
|
|
1499
1499
|
/**
|
|
1500
1500
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
1501
1501
|
*/
|
|
1502
|
-
derefOperator: a(
|
|
1502
|
+
derefOperator: a(j),
|
|
1503
1503
|
/**
|
|
1504
1504
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
1505
1505
|
*/
|
|
1506
|
-
arithmeticOperator: a(
|
|
1506
|
+
arithmeticOperator: a(j),
|
|
1507
1507
|
/**
|
|
1508
1508
|
Logical [operator](#highlight.tags.operator).
|
|
1509
1509
|
*/
|
|
1510
|
-
logicOperator: a(
|
|
1510
|
+
logicOperator: a(j),
|
|
1511
1511
|
/**
|
|
1512
1512
|
Bit [operator](#highlight.tags.operator).
|
|
1513
1513
|
*/
|
|
1514
|
-
bitwiseOperator: a(
|
|
1514
|
+
bitwiseOperator: a(j),
|
|
1515
1515
|
/**
|
|
1516
1516
|
Comparison [operator](#highlight.tags.operator).
|
|
1517
1517
|
*/
|
|
1518
|
-
compareOperator: a(
|
|
1518
|
+
compareOperator: a(j),
|
|
1519
1519
|
/**
|
|
1520
1520
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
1521
1521
|
*/
|
|
1522
|
-
updateOperator: a(
|
|
1522
|
+
updateOperator: a(j),
|
|
1523
1523
|
/**
|
|
1524
1524
|
[Operator](#highlight.tags.operator) that defines something.
|
|
1525
1525
|
*/
|
|
1526
|
-
definitionOperator: a(
|
|
1526
|
+
definitionOperator: a(j),
|
|
1527
1527
|
/**
|
|
1528
1528
|
Type-related [operator](#highlight.tags.operator).
|
|
1529
1529
|
*/
|
|
1530
|
-
typeOperator: a(
|
|
1530
|
+
typeOperator: a(j),
|
|
1531
1531
|
/**
|
|
1532
1532
|
Control-flow [operator](#highlight.tags.operator).
|
|
1533
1533
|
*/
|
|
1534
|
-
controlOperator: a(
|
|
1534
|
+
controlOperator: a(j),
|
|
1535
1535
|
/**
|
|
1536
1536
|
Program or markup punctuation.
|
|
1537
1537
|
*/
|
|
@@ -1568,7 +1568,7 @@ const a = H.define, ue = a(), G = a(), Ee = a(G), Me = a(G), K = a(), he = a(K),
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
Content, for example plain text in XML or markup documents.
|
|
1570
1570
|
*/
|
|
1571
|
-
content:
|
|
1571
|
+
content: H,
|
|
1572
1572
|
/**
|
|
1573
1573
|
[Content](#highlight.tags.content) that represents a heading.
|
|
1574
1574
|
*/
|
|
@@ -1600,37 +1600,37 @@ const a = H.define, ue = a(), G = a(), Ee = a(G), Me = a(G), K = a(), he = a(K),
|
|
|
1600
1600
|
/**
|
|
1601
1601
|
A prose separator (such as a horizontal rule).
|
|
1602
1602
|
*/
|
|
1603
|
-
contentSeparator: a(
|
|
1603
|
+
contentSeparator: a(H),
|
|
1604
1604
|
/**
|
|
1605
1605
|
[Content](#highlight.tags.content) that represents a list.
|
|
1606
1606
|
*/
|
|
1607
|
-
list: a(
|
|
1607
|
+
list: a(H),
|
|
1608
1608
|
/**
|
|
1609
1609
|
[Content](#highlight.tags.content) that represents a quote.
|
|
1610
1610
|
*/
|
|
1611
|
-
quote: a(
|
|
1611
|
+
quote: a(H),
|
|
1612
1612
|
/**
|
|
1613
1613
|
[Content](#highlight.tags.content) that is emphasized.
|
|
1614
1614
|
*/
|
|
1615
|
-
emphasis: a(
|
|
1615
|
+
emphasis: a(H),
|
|
1616
1616
|
/**
|
|
1617
1617
|
[Content](#highlight.tags.content) that is styled strong.
|
|
1618
1618
|
*/
|
|
1619
|
-
strong: a(
|
|
1619
|
+
strong: a(H),
|
|
1620
1620
|
/**
|
|
1621
1621
|
[Content](#highlight.tags.content) that is part of a link.
|
|
1622
1622
|
*/
|
|
1623
|
-
link: a(
|
|
1623
|
+
link: a(H),
|
|
1624
1624
|
/**
|
|
1625
1625
|
[Content](#highlight.tags.content) that is styled as code or
|
|
1626
1626
|
monospace.
|
|
1627
1627
|
*/
|
|
1628
|
-
monospace: a(
|
|
1628
|
+
monospace: a(H),
|
|
1629
1629
|
/**
|
|
1630
1630
|
[Content](#highlight.tags.content) that has a strike-through
|
|
1631
1631
|
style.
|
|
1632
1632
|
*/
|
|
1633
|
-
strikethrough: a(
|
|
1633
|
+
strikethrough: a(H),
|
|
1634
1634
|
/**
|
|
1635
1635
|
Inserted text in a change-tracking format.
|
|
1636
1636
|
*/
|
|
@@ -1671,31 +1671,31 @@ const a = H.define, ue = a(), G = a(), Ee = a(G), Me = a(G), K = a(), he = a(K),
|
|
|
1671
1671
|
given element is being defined. Expected to be used with the
|
|
1672
1672
|
various [name](#highlight.tags.name) tags.
|
|
1673
1673
|
*/
|
|
1674
|
-
definition:
|
|
1674
|
+
definition: R.defineModifier(),
|
|
1675
1675
|
/**
|
|
1676
1676
|
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
1677
1677
|
something is constant. Mostly expected to be used with
|
|
1678
1678
|
[variable names](#highlight.tags.variableName).
|
|
1679
1679
|
*/
|
|
1680
|
-
constant:
|
|
1680
|
+
constant: R.defineModifier(),
|
|
1681
1681
|
/**
|
|
1682
1682
|
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
1683
1683
|
a [variable](#highlight.tags.variableName) or [property
|
|
1684
1684
|
name](#highlight.tags.propertyName) is being called or defined
|
|
1685
1685
|
as a function.
|
|
1686
1686
|
*/
|
|
1687
|
-
function:
|
|
1687
|
+
function: R.defineModifier(),
|
|
1688
1688
|
/**
|
|
1689
1689
|
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
1690
1690
|
[names](#highlight.tags.name) to indicate that they belong to
|
|
1691
1691
|
the language's standard environment.
|
|
1692
1692
|
*/
|
|
1693
|
-
standard:
|
|
1693
|
+
standard: R.defineModifier(),
|
|
1694
1694
|
/**
|
|
1695
1695
|
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
1696
1696
|
[names](#highlight.tags.name) is local to some scope.
|
|
1697
1697
|
*/
|
|
1698
|
-
local:
|
|
1698
|
+
local: R.defineModifier(),
|
|
1699
1699
|
/**
|
|
1700
1700
|
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
1701
1701
|
can be used to tag language-specific alternative variants of
|
|
@@ -1704,7 +1704,7 @@ const a = H.define, ue = a(), G = a(), Ee = a(G), Me = a(G), K = a(), he = a(K),
|
|
|
1704
1704
|
[variable name](#highlight.tags.variableName) tags, since those
|
|
1705
1705
|
come up a lot.
|
|
1706
1706
|
*/
|
|
1707
|
-
special:
|
|
1707
|
+
special: R.defineModifier()
|
|
1708
1708
|
};
|
|
1709
1709
|
_t([
|
|
1710
1710
|
{ tag: o.link, class: "tok-link" },
|
|
@@ -1931,29 +1931,29 @@ const Mt = Et.exports, Pt = {
|
|
|
1931
1931
|
emits: [se.ACTION, se.CHANGE],
|
|
1932
1932
|
setup(i, { emit: e }) {
|
|
1933
1933
|
const { t } = lt(), n = ae(null), r = [], s = () => {
|
|
1934
|
-
}, l = re(() => i.langLabel ?? i.lang.toUpperCase()),
|
|
1935
|
-
"b-code-snippet--inline":
|
|
1936
|
-
"b-code-snippet--scrollable": !
|
|
1934
|
+
}, l = re(() => i.langLabel ?? i.lang.toUpperCase()), u = re(() => i.variant === pe.INLINE), h = re(() => ({
|
|
1935
|
+
"b-code-snippet--inline": u.value,
|
|
1936
|
+
"b-code-snippet--scrollable": !u.value
|
|
1937
1937
|
})), C = re(() => ({
|
|
1938
1938
|
"b-code-snippet__code-area-content--editable": i.editable
|
|
1939
|
-
})), { loadLang: k } = Lt(i.lang), N = Ae(), A = Ae(),
|
|
1939
|
+
})), { loadLang: k } = Lt(i.lang), N = Ae(), A = Ae(), E = new be(), I = new be(), M = new be(), z = ae(null), $ = ae(0);
|
|
1940
1940
|
$e(async () => {
|
|
1941
1941
|
const g = await k();
|
|
1942
|
-
|
|
1942
|
+
z.value = i.content;
|
|
1943
1943
|
const b = ({ state: p }) => {
|
|
1944
|
-
|
|
1945
|
-
},
|
|
1944
|
+
z.value = p.doc.toString();
|
|
1945
|
+
}, f = [
|
|
1946
1946
|
Ue(),
|
|
1947
1947
|
We.of([Ke]),
|
|
1948
|
-
|
|
1948
|
+
E.of(g()),
|
|
1949
1949
|
I.of(At),
|
|
1950
|
-
|
|
1950
|
+
M.of(Le.readOnly.of(!i.editable)),
|
|
1951
1951
|
Ie.updateListener.of((p) => b(p))
|
|
1952
1952
|
];
|
|
1953
|
-
i.variant === "multiline" &&
|
|
1953
|
+
i.variant === "multiline" && f.push([Ge(), Fe()]);
|
|
1954
1954
|
const y = Le.create({
|
|
1955
1955
|
doc: i.content,
|
|
1956
|
-
extensions: [...
|
|
1956
|
+
extensions: [...f]
|
|
1957
1957
|
});
|
|
1958
1958
|
$.value = y.doc.length, A.value = new Ie({
|
|
1959
1959
|
state: y,
|
|
@@ -1962,21 +1962,23 @@ const Mt = Et.exports, Pt = {
|
|
|
1962
1962
|
}), De(
|
|
1963
1963
|
() => i.content,
|
|
1964
1964
|
() => {
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1965
|
+
if (i.content !== z.value) {
|
|
1966
|
+
const g = i.content.length;
|
|
1967
|
+
A.value.dispatch({
|
|
1968
|
+
changes: {
|
|
1969
|
+
from: 0,
|
|
1970
|
+
to: $.value,
|
|
1971
|
+
insert: i.content
|
|
1972
|
+
}
|
|
1973
|
+
}), $.value = g;
|
|
1974
|
+
}
|
|
1973
1975
|
}
|
|
1974
1976
|
);
|
|
1975
1977
|
const D = re(() => t(i.actionableText)), w = () => {
|
|
1976
|
-
e(se.ACTION,
|
|
1978
|
+
e(se.ACTION, z.value);
|
|
1977
1979
|
};
|
|
1978
1980
|
Je(() => {
|
|
1979
|
-
e(se.CHANGE,
|
|
1981
|
+
z.value !== null && e(se.CHANGE, z.value);
|
|
1980
1982
|
});
|
|
1981
1983
|
const J = ae(!1);
|
|
1982
1984
|
return {
|
|
@@ -1985,12 +1987,12 @@ const Mt = Et.exports, Pt = {
|
|
|
1985
1987
|
codeAreaContentConditionalClasses: C,
|
|
1986
1988
|
conditionalClasses: h,
|
|
1987
1989
|
container: N,
|
|
1988
|
-
currentContents:
|
|
1990
|
+
currentContents: z,
|
|
1989
1991
|
displayedLang: l,
|
|
1990
1992
|
editor: A,
|
|
1991
1993
|
selectedLanguage: n,
|
|
1992
1994
|
showModal: J,
|
|
1993
|
-
isInlineVariant:
|
|
1995
|
+
isInlineVariant: u,
|
|
1994
1996
|
// Methods
|
|
1995
1997
|
handleChangeLanguage: s,
|
|
1996
1998
|
onActionClicked: w,
|
|
@@ -2004,13 +2006,13 @@ var jt = function() {
|
|
|
2004
2006
|
var e = this, t = e._self._c;
|
|
2005
2007
|
return e._self._setupProxy, t("div", { staticClass: "b-code-snippet", class: e.conditionalClasses }, [e.isInlineVariant ? e._e() : t("section", { staticClass: "b-code-snippet__action-bar" }, [t("div", { staticClass: "b-code-snippet__action-bar--start" }, [e.availableLanguages.length > 0 ? t("bento-dropdown", e._b({ staticClass: "b-code-snippet__language-picker", attrs: { disabled: e.availableLanguages.length === 1, items: e.availableLanguages }, on: { input: e.handleChangeLanguage }, model: { value: e.selectedLanguage, callback: function(n) {
|
|
2006
2008
|
e.selectedLanguage = n;
|
|
2007
|
-
}, expression: "selectedLanguage" } }, "bento-dropdown", e.$props, !1)) : e._e(), t("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.displayedLang) + " ")])], 1), t("div", { staticClass: "b-code-snippet__action-bar--end" }, [e.loading ? t("bento-loading-indicator") : e._e(), t("copy", { staticClass: "b-structured-list__icon", attrs: { text: e.currentContents } }), e.expandable ? t("bento-button", { attrs: { variant: "tertiary", condensed: "", "aria-label": e.t("expand") }, on: { click: function(n) {
|
|
2009
|
+
}, expression: "selectedLanguage" } }, "bento-dropdown", e.$props, !1)) : e._e(), t("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.displayedLang) + " ")])], 1), t("div", { staticClass: "b-code-snippet__action-bar--end" }, [e.loading ? t("bento-loading-indicator") : e._e(), e.currentContents !== null ? t("copy", { staticClass: "b-structured-list__icon", attrs: { text: e.currentContents } }) : e._e(), e.expandable ? t("bento-button", { attrs: { variant: "tertiary", condensed: "", "aria-label": e.t("expand") }, on: { click: function(n) {
|
|
2008
2010
|
e.showModal = !0;
|
|
2009
2011
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
2010
2012
|
return [t("expand-icon")];
|
|
2011
2013
|
}, proxy: !0 }], null, !1, 3789760120) }) : e._e(), e.actionable ? t("bento-button", { attrs: { variant: "primary", tertiary: "", condensed: "" }, on: { click: e.onActionClicked }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
2012
2014
|
return [t("bento-typography", { staticClass: "b-code-snippet__action-button", attrs: { el: "span" } }, [e._v(" " + e._s(e.runText) + " ")])];
|
|
2013
|
-
}, proxy: !0 }], null, !1, 4293069853) }) : e._e()], 1)]), e.content ? t("code", { staticClass: "b-code-snippet__code-area" }, [t("div", { ref: "container", staticClass: "b-code-snippet__code-area-content", class: e.codeAreaContentConditionalClasses })]) : t("section", [e._t("empty-state", function() {
|
|
2015
|
+
}, proxy: !0 }], null, !1, 4293069853) }) : e._e()], 1)]), e.content || e.editable ? t("code", { staticClass: "b-code-snippet__code-area" }, [t("div", { ref: "container", staticClass: "b-code-snippet__code-area-content", class: e.codeAreaContentConditionalClasses })]) : t("section", [e._t("empty-state", function() {
|
|
2014
2016
|
return [t("div", { staticClass: "b-code-snippet__empty-state" }, [e._v("Nothing to show")])];
|
|
2015
2017
|
})], 2), e.expandable ? t("base-modal", { staticClass: "b-code-snippet__modal", attrs: { "hide-close-button": !0, "custom-padding": "0px", "is-dismissible": !0, "is-open": e.showModal, size: "large" }, on: { "close-modal": function(n) {
|
|
2016
2018
|
e.showModal = !1;
|
|
@@ -2023,7 +2025,7 @@ var jt = function() {
|
|
|
2023
2025
|
Ht,
|
|
2024
2026
|
!1,
|
|
2025
2027
|
null,
|
|
2026
|
-
"
|
|
2028
|
+
"24e59c4c",
|
|
2027
2029
|
null,
|
|
2028
2030
|
null
|
|
2029
2031
|
);
|