@vanelsas/baredom 4.9.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/custom-elements.json +77 -19
- package/dist/baremirror-alpha.js +36 -35
- package/dist/base.js +716 -708
- package/dist/integrity.json +113 -113
- package/dist/requests.js +8 -0
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +13 -13
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +18 -18
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +36 -36
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +30 -31
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +45 -45
- package/dist/x-combobox.js +35 -35
- package/dist/x-command-palette.js +31 -31
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +47 -46
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +33 -33
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +15 -15
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +23 -23
- package/dist/x-form-field.js +17 -17
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +19 -19
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +35 -35
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +40 -40
- package/dist/x-liquid-glass.js +38 -38
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +43 -45
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +30 -30
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +35 -35
- package/dist/x-organic-shape.js +14 -14
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +18 -18
- package/dist/x-particle-button.js +52 -52
- package/dist/x-popover.js +28 -28
- package/dist/x-progress-circle.js +8 -8
- package/dist/x-progress.js +8 -8
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -14
- package/dist/x-range-slider.js +29 -30
- package/dist/x-rating.js +24 -24
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +34 -34
- package/dist/x-scroll-timeline.js +50 -50
- package/dist/x-scroll.js +38 -38
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +14 -14
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +18 -18
- package/dist/x-spacer.js +3 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +15 -15
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.d.ts +1 -0
- package/dist/x-table-row.js +8 -9
- package/dist/x-table.d.ts +8 -5
- package/dist/x-table.js +20 -14
- package/dist/x-tabs.js +12 -12
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +7 -7
- package/dist/x-tooltip.js +14 -14
- package/dist/x-trace-history.js +117 -117
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +63 -64
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,102 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.10.1] - 2026-10-20
|
|
6
|
+
|
|
7
|
+
BareDOM 4.10.1 stops a focused control from recalculating the styles of the page on every
|
|
8
|
+
render, and makes BareMirror faster at many rows. All five adapters are released with it:
|
|
9
|
+
`-react` 3.3.0, `-angular` 3.3.0, `-vue` 0.9.0, `-svelte` 0.9.0 and `-solid` 0.9.0. They bind
|
|
10
|
+
`x-form-field`, `x-search-field` and `x-rating` to a form value. Each still works with
|
|
11
|
+
`@vanelsas/baredom` 4.0.0 or later. The binding of `x-search-field` follows a clear with 4.10.1.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Form bindings for `x-form-field`, `x-search-field` and `x-rating`** in the five adapters:
|
|
16
|
+
`v-model` in Vue, `bind:value` in Svelte, a control value accessor in Angular, and a
|
|
17
|
+
controlled mode in React and Solid. A binding follows the committed change event, so a text
|
|
18
|
+
field updates its value on blur or Enter, not while typing.
|
|
19
|
+
- **Two demos of BareMirror.** [Holes](https://avanelsas.github.io/baredom/bare-html/holes.html)
|
|
20
|
+
is a table written from a template in ClojureScript, with a hole that `x-table` also writes
|
|
21
|
+
and the check that finds it. [The tree](https://avanelsas.github.io/baredom/bare-html/tree.html)
|
|
22
|
+
is now on the demo site too.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **BareMirror reads and plans a move in 1,000 rows in about half the time.** Moving the first
|
|
27
|
+
row to the end through `syncPlaces` takes 0.50 ms, from 0.92 ms.
|
|
28
|
+
- **The task list demo** makes its counter with `defineElement`, and a row that leaves fades
|
|
29
|
+
out after `release`.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **A component writes `tabindex` only when it changes.** `x-checkbox`, `x-switch`, `x-radio`,
|
|
34
|
+
`x-chip`, `x-alert`, `x-toast`, `x-table-row`, `x-table-cell`, `x-timeline-item` and
|
|
35
|
+
`x-scroll` wrote it on every render. On a focused control that made the browser recalculate
|
|
36
|
+
the styles of the page each time.
|
|
37
|
+
- **`x-search-field` sends `x-search-field-change` with an empty value when it is cleared.**
|
|
38
|
+
- **`writeParts` reads only the own fields of a write.** A field inherited from a prototype is
|
|
39
|
+
no field.
|
|
40
|
+
- **An element from `defineElement` stays as it is when it moves** with `moveBefore`.
|
|
41
|
+
- **In the task list demo, Enter during IME composition no longer adds a task.**
|
|
42
|
+
|
|
43
|
+
## [4.10.0] - 2026-10-19
|
|
44
|
+
|
|
45
|
+
BareDOM 4.10 lets each component write its own selection or value only after an accepted
|
|
46
|
+
request, and reads a boolean attribute as HTML does. All five adapters are released with it:
|
|
47
|
+
`-react` 3.2.0, `-angular` 3.2.0, `-vue` 0.8.0, `-svelte` 0.8.0 and `-solid` 0.8.0. Each still
|
|
48
|
+
works with `@vanelsas/baredom` 4.0.0 or later. The `value` props of `x-table` and
|
|
49
|
+
`x-table-row` need 4.10.0.
|
|
50
|
+
|
|
51
|
+
### Added
|
|
52
|
+
|
|
53
|
+
- **`value` and `value-format` on `x-table`,** with their properties. `value` is the list of
|
|
54
|
+
selected row values, comma-separated or a JSON array. `x-table` sets `selected` on the rows
|
|
55
|
+
it names.
|
|
56
|
+
- **`value` on `x-table-row`.** A row's value is its `value`, else its `row-index`.
|
|
57
|
+
- **`x-table-row-select` is a request for the `value` of `x-table`,** and its detail gains
|
|
58
|
+
`value`. It is in `requestedValues`.
|
|
59
|
+
- **`x-table-cell-sort` is a request for `sort-direction`.** It is in `requestedValues`, and it
|
|
60
|
+
bubbles on past `x-table`, so a page can answer it.
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
|
|
64
|
+
- **A boolean attribute that is off by default is on when present, whatever its text,** as in
|
|
65
|
+
HTML. `x-checkbox`, `x-date-picker`, `x-command-palette`, `x-chart`, `x-badge`,
|
|
66
|
+
`x-breadcrumbs`, `x-color-picker`, `x-context-menu`, `x-form` and `x-spacer` read the text
|
|
67
|
+
`"false"` as off before. An attribute that is on by default still turns off with `"false"`,
|
|
68
|
+
but no longer with `"0"` (`removable` of `x-chip`, `show-tooltip` of `x-copy`).
|
|
69
|
+
- **`x-table` holds its selection in `value`.** A click on a row asks for a new `value`. A row
|
|
70
|
+
with neither `value` nor `row-index` is no longer selected by a click, and `selected` written
|
|
71
|
+
on a row of a table with a `value` is replaced.
|
|
72
|
+
- **`x-tabs` writes `value` only after an accepted `value-change-request`.** Without a `value`
|
|
73
|
+
it shows the first enabled tab marked `selected`, else the first enabled tab, and
|
|
74
|
+
`tabs.value` is `null`. A `value` that names no tab is no longer replaced.
|
|
75
|
+
- **`x-select`, `x-form-field`, `x-text-area` and `x-search-field` write `value` after an
|
|
76
|
+
accepted change.** A later refused change keeps the accepted value, and `previousValue`
|
|
77
|
+
reports it.
|
|
78
|
+
- **An `x-table-cell` header writes its own `sort-direction`** when its request is not
|
|
79
|
+
refused. A cancelled `x-table-sort` keeps the cell as it was.
|
|
80
|
+
- **Six events are no longer cancelable,** because their components never acted on a cancel:
|
|
81
|
+
`x-form-submit`, `x-search-field-search`, `x-liquid-dock-select`,
|
|
82
|
+
`x-proximity-list-select`, `x-timeline-item-click` and `x-color-picker-change`.
|
|
83
|
+
- **The `data` property of `x-chart` reflects its attribute.** Writing chart data, or JSON text
|
|
84
|
+
that holds it, writes its JSON. Reading parses the attribute into a new value.
|
|
85
|
+
|
|
86
|
+
### Fixed
|
|
87
|
+
|
|
88
|
+
- **A refused change no longer loses an earlier accepted value** in the four form controls
|
|
89
|
+
above.
|
|
90
|
+
- **`x-select` with no `value` restores the option the markup marks `selected`** after a
|
|
91
|
+
refused change, keeps an option with an empty value, and gives its form the same value as its
|
|
92
|
+
`value` getter.
|
|
93
|
+
- **The calendar of `x-date-picker` moves to the month of a date written after it connects,**
|
|
94
|
+
and keeps a month the user browsed to otherwise. Opening shows the month of the date again,
|
|
95
|
+
one day cell is always reachable by Tab, and Enter selects the cell it is pressed on.
|
|
96
|
+
- **Cancelling `x-table-row-click` on the row stops the selection,** as the docs said.
|
|
97
|
+
- **`x-tabs` hides the panel of a removed tab.**
|
|
98
|
+
- **The `data` property of `x-chart` no longer disagrees with the chart** after an attribute
|
|
99
|
+
write, and no longer returns ClojureScript data.
|
|
100
|
+
|
|
5
101
|
## [4.9.0] - 2026-10-19
|
|
6
102
|
|
|
7
103
|
BareDOM 4.9 lets each request event show what its handler leaves. BareMirror cancels a request
|
package/custom-elements.json
CHANGED
|
@@ -3731,7 +3731,7 @@
|
|
|
3731
3731
|
"type" : {
|
|
3732
3732
|
"text" : "CustomEvent<{ value: string; h: number; s: number; l: number; a: number }>"
|
|
3733
3733
|
},
|
|
3734
|
-
"cancelable" :
|
|
3734
|
+
"cancelable" : false,
|
|
3735
3735
|
"detail" : {
|
|
3736
3736
|
"value" : "string",
|
|
3737
3737
|
"h" : "number",
|
|
@@ -7907,7 +7907,7 @@
|
|
|
7907
7907
|
"type" : {
|
|
7908
7908
|
"text" : "CustomEvent<{ values: Record<string, any> }>"
|
|
7909
7909
|
},
|
|
7910
|
-
"cancelable" :
|
|
7910
|
+
"cancelable" : false,
|
|
7911
7911
|
"detail" : {
|
|
7912
7912
|
"values" : "Record<string, any>"
|
|
7913
7913
|
}
|
|
@@ -9882,7 +9882,7 @@
|
|
|
9882
9882
|
"type" : {
|
|
9883
9883
|
"text" : "CustomEvent<{ index: number; item: any; source: string }>"
|
|
9884
9884
|
},
|
|
9885
|
-
"cancelable" :
|
|
9885
|
+
"cancelable" : false,
|
|
9886
9886
|
"detail" : {
|
|
9887
9887
|
"index" : "number",
|
|
9888
9888
|
"item" : "any",
|
|
@@ -14053,7 +14053,7 @@
|
|
|
14053
14053
|
"type" : {
|
|
14054
14054
|
"text" : "CustomEvent<{ index: number; item: any; source: string }>"
|
|
14055
14055
|
},
|
|
14056
|
-
"cancelable" :
|
|
14056
|
+
"cancelable" : false,
|
|
14057
14057
|
"detail" : {
|
|
14058
14058
|
"index" : "number",
|
|
14059
14059
|
"item" : "any",
|
|
@@ -16441,7 +16441,7 @@
|
|
|
16441
16441
|
"type" : {
|
|
16442
16442
|
"text" : "CustomEvent<{ name: string; value: string }>"
|
|
16443
16443
|
},
|
|
16444
|
-
"cancelable" :
|
|
16444
|
+
"cancelable" : false,
|
|
16445
16445
|
"detail" : {
|
|
16446
16446
|
"name" : "string",
|
|
16447
16447
|
"value" : "string"
|
|
@@ -19005,9 +19005,9 @@
|
|
|
19005
19005
|
},
|
|
19006
19006
|
"members" : [ {
|
|
19007
19007
|
"kind" : "field",
|
|
19008
|
-
"name" : "
|
|
19008
|
+
"name" : "striped",
|
|
19009
19009
|
"type" : {
|
|
19010
|
-
"text" : "
|
|
19010
|
+
"text" : "boolean"
|
|
19011
19011
|
}
|
|
19012
19012
|
}, {
|
|
19013
19013
|
"kind" : "field",
|
|
@@ -19017,31 +19017,31 @@
|
|
|
19017
19017
|
}
|
|
19018
19018
|
}, {
|
|
19019
19019
|
"kind" : "field",
|
|
19020
|
-
"name" : "
|
|
19020
|
+
"name" : "bordered",
|
|
19021
19021
|
"type" : {
|
|
19022
|
-
"text" : "
|
|
19022
|
+
"text" : "boolean"
|
|
19023
19023
|
}
|
|
19024
19024
|
}, {
|
|
19025
19025
|
"kind" : "field",
|
|
19026
|
-
"name" : "
|
|
19026
|
+
"name" : "columns",
|
|
19027
19027
|
"type" : {
|
|
19028
|
-
"text" : "
|
|
19028
|
+
"text" : "string"
|
|
19029
19029
|
}
|
|
19030
19030
|
}, {
|
|
19031
19031
|
"kind" : "field",
|
|
19032
|
-
"name" : "
|
|
19032
|
+
"name" : "value",
|
|
19033
19033
|
"type" : {
|
|
19034
|
-
"text" : "
|
|
19034
|
+
"text" : "string"
|
|
19035
19035
|
}
|
|
19036
19036
|
}, {
|
|
19037
19037
|
"kind" : "field",
|
|
19038
|
-
"name" : "
|
|
19038
|
+
"name" : "compact",
|
|
19039
19039
|
"type" : {
|
|
19040
19040
|
"text" : "boolean"
|
|
19041
19041
|
}
|
|
19042
19042
|
}, {
|
|
19043
19043
|
"kind" : "field",
|
|
19044
|
-
"name" : "
|
|
19044
|
+
"name" : "fullWidth",
|
|
19045
19045
|
"type" : {
|
|
19046
19046
|
"text" : "boolean"
|
|
19047
19047
|
}
|
|
@@ -19051,6 +19051,18 @@
|
|
|
19051
19051
|
"type" : {
|
|
19052
19052
|
"text" : "number"
|
|
19053
19053
|
}
|
|
19054
|
+
}, {
|
|
19055
|
+
"kind" : "field",
|
|
19056
|
+
"name" : "valueFormat",
|
|
19057
|
+
"type" : {
|
|
19058
|
+
"text" : "string"
|
|
19059
|
+
}
|
|
19060
|
+
}, {
|
|
19061
|
+
"kind" : "field",
|
|
19062
|
+
"name" : "selectable",
|
|
19063
|
+
"type" : {
|
|
19064
|
+
"text" : "string"
|
|
19065
|
+
}
|
|
19054
19066
|
} ],
|
|
19055
19067
|
"attributes" : [ {
|
|
19056
19068
|
"name" : "columns",
|
|
@@ -19100,6 +19112,18 @@
|
|
|
19100
19112
|
"type" : {
|
|
19101
19113
|
"text" : "number"
|
|
19102
19114
|
}
|
|
19115
|
+
}, {
|
|
19116
|
+
"name" : "value",
|
|
19117
|
+
"fieldName" : "value",
|
|
19118
|
+
"type" : {
|
|
19119
|
+
"text" : "string"
|
|
19120
|
+
}
|
|
19121
|
+
}, {
|
|
19122
|
+
"name" : "value-format",
|
|
19123
|
+
"fieldName" : "valueFormat",
|
|
19124
|
+
"type" : {
|
|
19125
|
+
"text" : "string"
|
|
19126
|
+
}
|
|
19103
19127
|
} ],
|
|
19104
19128
|
"events" : [ {
|
|
19105
19129
|
"name" : "x-table-sort",
|
|
@@ -19115,13 +19139,17 @@
|
|
|
19115
19139
|
}, {
|
|
19116
19140
|
"name" : "x-table-row-select",
|
|
19117
19141
|
"type" : {
|
|
19118
|
-
"text" : "CustomEvent<{ rowIndex: number; selected: boolean; selectionMode: string }>"
|
|
19142
|
+
"text" : "CustomEvent<{ rowIndex: number; selected: boolean; selectionMode: string; value: string }>"
|
|
19119
19143
|
},
|
|
19120
19144
|
"cancelable" : true,
|
|
19145
|
+
"requests" : {
|
|
19146
|
+
"value" : "value"
|
|
19147
|
+
},
|
|
19121
19148
|
"detail" : {
|
|
19122
19149
|
"rowIndex" : "number",
|
|
19123
19150
|
"selected" : "boolean",
|
|
19124
|
-
"selectionMode" : "string"
|
|
19151
|
+
"selectionMode" : "string",
|
|
19152
|
+
"value" : "string"
|
|
19125
19153
|
}
|
|
19126
19154
|
} ],
|
|
19127
19155
|
"slots" : [ {
|
|
@@ -19323,6 +19351,9 @@
|
|
|
19323
19351
|
"text" : "CustomEvent<{ direction: string; previousDirection: string }>"
|
|
19324
19352
|
},
|
|
19325
19353
|
"cancelable" : true,
|
|
19354
|
+
"requests" : {
|
|
19355
|
+
"sort-direction" : "direction"
|
|
19356
|
+
},
|
|
19326
19357
|
"detail" : {
|
|
19327
19358
|
"direction" : "string",
|
|
19328
19359
|
"previousDirection" : "string"
|
|
@@ -19459,6 +19490,12 @@
|
|
|
19459
19490
|
"type" : {
|
|
19460
19491
|
"text" : "number"
|
|
19461
19492
|
}
|
|
19493
|
+
}, {
|
|
19494
|
+
"kind" : "field",
|
|
19495
|
+
"name" : "value",
|
|
19496
|
+
"type" : {
|
|
19497
|
+
"text" : "string"
|
|
19498
|
+
}
|
|
19462
19499
|
} ],
|
|
19463
19500
|
"attributes" : [ {
|
|
19464
19501
|
"name" : "selected",
|
|
@@ -19484,6 +19521,12 @@
|
|
|
19484
19521
|
"type" : {
|
|
19485
19522
|
"text" : "number"
|
|
19486
19523
|
}
|
|
19524
|
+
}, {
|
|
19525
|
+
"name" : "value",
|
|
19526
|
+
"fieldName" : "value",
|
|
19527
|
+
"type" : {
|
|
19528
|
+
"text" : "string"
|
|
19529
|
+
}
|
|
19487
19530
|
} ],
|
|
19488
19531
|
"events" : [ {
|
|
19489
19532
|
"name" : "x-table-row-click",
|
|
@@ -19708,6 +19751,9 @@
|
|
|
19708
19751
|
"text" : "CustomEvent<{ direction: string; previousDirection: string }>"
|
|
19709
19752
|
},
|
|
19710
19753
|
"cancelable" : true,
|
|
19754
|
+
"requests" : {
|
|
19755
|
+
"sort-direction" : "direction"
|
|
19756
|
+
},
|
|
19711
19757
|
"detail" : {
|
|
19712
19758
|
"direction" : "string",
|
|
19713
19759
|
"previousDirection" : "string"
|
|
@@ -19844,6 +19890,12 @@
|
|
|
19844
19890
|
"type" : {
|
|
19845
19891
|
"text" : "number"
|
|
19846
19892
|
}
|
|
19893
|
+
}, {
|
|
19894
|
+
"kind" : "field",
|
|
19895
|
+
"name" : "value",
|
|
19896
|
+
"type" : {
|
|
19897
|
+
"text" : "string"
|
|
19898
|
+
}
|
|
19847
19899
|
} ],
|
|
19848
19900
|
"attributes" : [ {
|
|
19849
19901
|
"name" : "selected",
|
|
@@ -19869,6 +19921,12 @@
|
|
|
19869
19921
|
"type" : {
|
|
19870
19922
|
"text" : "number"
|
|
19871
19923
|
}
|
|
19924
|
+
}, {
|
|
19925
|
+
"name" : "value",
|
|
19926
|
+
"fieldName" : "value",
|
|
19927
|
+
"type" : {
|
|
19928
|
+
"text" : "string"
|
|
19929
|
+
}
|
|
19872
19930
|
} ],
|
|
19873
19931
|
"events" : [ {
|
|
19874
19932
|
"name" : "x-table-row-click",
|
|
@@ -20974,7 +21032,7 @@
|
|
|
20974
21032
|
"type" : {
|
|
20975
21033
|
"text" : "CustomEvent<{ status: string; label: string }>"
|
|
20976
21034
|
},
|
|
20977
|
-
"cancelable" :
|
|
21035
|
+
"cancelable" : false,
|
|
20978
21036
|
"detail" : {
|
|
20979
21037
|
"status" : "string",
|
|
20980
21038
|
"label" : "string"
|
|
@@ -21167,7 +21225,7 @@
|
|
|
21167
21225
|
"type" : {
|
|
21168
21226
|
"text" : "CustomEvent<{ status: string; label: string }>"
|
|
21169
21227
|
},
|
|
21170
|
-
"cancelable" :
|
|
21228
|
+
"cancelable" : false,
|
|
21171
21229
|
"detail" : {
|
|
21172
21230
|
"status" : "string",
|
|
21173
21231
|
"label" : "string"
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
new $APP.H(null,3,5,$APP.I,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.I,[a,null,$APP.q(b)],null)},
|
|
4
|
-
0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[c,a],null),b],null)},
|
|
5
|
-
c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.
|
|
6
|
-
c],null));d=$APP.t(f)}e=$APP.
|
|
7
|
-
e=$APP.C(k,$APP.
|
|
8
|
-
a),new $APP.H(null,2,5,$APP.I,[$APP.
|
|
9
|
-
b.call(null,a)},
|
|
10
|
-
null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.
|
|
11
|
-
0,null);d=$APP.B(d,1,null);d=$APP.t($APP.
|
|
12
|
-
y=$APP.C(w,$APP.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},
|
|
16
|
-
$APP.
|
|
17
|
-
$APP.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
a
|
|
22
|
-
|
|
23
|
-
c)?
|
|
24
|
-
a)),
|
|
25
|
-
|
|
26
|
-
if(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
|
|
2
|
+
var ODa=function(a,b){return new $APP.Gd(null,function(){a:{var c=a;for(var d=b;;){d=$APP.q(d);var e;if(e=d)e=$APP.t(d),e=c.i?c.i(e):c.call(null,e);if($APP.m(e))d=$APP.ac(d);else{c=d;break a}}c=void 0}return c},null)},QDa=function(a){var b=PDa;return function e(d){return new $APP.Gd(null,function(){return $APP.Ed(d,$APP.m($APP.Vc.i?$APP.Vc.i(d):$APP.Vc.call(null,d))?$APP.Ke(e,$APP.zc([b.i?b.i(d):b.call(null,d)])):null)},null)}(a)},n$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Tc($APP.t(b))?
|
|
3
|
+
new $APP.H(null,3,5,$APP.I,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.I,[a,null,$APP.q(b)],null)},o$=function(a){return a instanceof $APP.E||$APP.Ic(a)},RDa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},SDa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},TDa=function(a){return $APP.me(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("data-x-part",$APP.ah(c))?b:null},a)},UDa=function(a,b){var c=$APP.B(b,
|
|
4
|
+
0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[c,a],null),b],null)},VDa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.rr);var e=$APP.F(d);d=$APP.C(e,$APP.Gr);e=$APP.C(e,$APP.en);var f=$APP.q(d);$APP.m(f?f:e)?(f=new $APP.J(null,1,[$APP.ik,b],null),d=$APP.q(d)?$APP.Mg.l(f,$APP.Qs,d):f,d=$APP.m(e)?$APP.Mg.l(d,$APP.en,e):d):d=null;a=$APP.di.O(a,$APP.As,$APP.Lf,$APP.He.i($APP.qe(UDa,b)),c);return $APP.m(d)?$APP.di.J(a,$APP.Ps,$APP.Bd,d):a},WDa=function(a,b,
|
|
5
|
+
c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Vc(c)?(c=p$.l?p$.l(a,b,c):p$.call(null,a,b,c),a=$APP.B(c,0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,c),b],null)},p$=function(a,b,c){var d=n$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.wk.j(e,$APP.rr);if($APP.p($APP.me(o$,f)))d=null;else{if($APP.u(f))throw $APP.Oh("A text hole must be the only child of its element.",new $APP.J(null,1,[$APP.Yt,
|
|
6
|
+
c],null));d=$APP.t(f)}e=$APP.rr.i(e);var k=$APP.Lf.l($APP.ge,$APP.Ne($APP.Wj.j(o$,$APP.jf)),g);g=$APP.Lf.l($APP.ge,$APP.Le($APP.Wj.j(o$,$APP.jf)),g);if($APP.m(d))f=null;else if(!$APP.le(SDa,f))throw $APP.Oh("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.Yt,c],null));d=new $APP.J(null,6,[$APP.Yt,c,$APP.rr,e,$APP.oq,k,$APP.Gr,g,$APP.en,d,$APP.Fu,f],null);b=$APP.F(b);c=$APP.C(b,$APP.pv);d=$APP.F(d);f=$APP.C(d,$APP.oq);f=TDa(f);k=$APP.F(d);g=$APP.C(k,$APP.rr);
|
|
7
|
+
e=$APP.C(k,$APP.Gr);k=$APP.C(k,$APP.en);e=(g=$APP.q(g))?g:(e=$APP.q(e))?e:k;$APP.D(e)?$APP.m(f)?d=new $APP.H(null,2,5,$APP.I,[d,VDa(b,f,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.gp(d,new $APP.H(null,2,5,$APP.I,[$APP.oq,$APP.Ah.i("data-x-part")],null),c),VDa($APP.di.l(b,$APP.pv,$APP.hc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);f=$APP.F(b);c=$APP.C(f,$APP.Yt);b=$APP.C(f,$APP.oq);f=$APP.C(f,$APP.Fu);d=$APP.B(d,1,null);d=$APP.wa($APP.qe(WDa,
|
|
8
|
+
a),new $APP.H(null,2,5,$APP.I,[$APP.Pe,d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.I;e=$APP.Lf.j;c=new $APP.H(null,1,5,$APP.I,[c],null);b=$APP.q(b)?$APP.Bd.j(c,b):c;return new $APP.H(null,2,5,f,[e.call($APP.Lf,b,a),d],null)},XDa=function(a,b){b=p$($APP.ah(a),new $APP.J(null,3,[$APP.pv,0,$APP.Ps,$APP.Pe,$APP.As,$APP.ge],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[$APP.oq,a,$APP.Ps,$APP.Ps.i(b),$APP.As,$APP.As.i(b)],null)},YDa=function(a,b){return b.i?b.i(a):
|
|
9
|
+
b.call(null,a)},ZDa=function(a,b){var c=$APP.F(b);b=$APP.C(c,$APP.ik);var d=$APP.C(c,$APP.Qs),e=$APP.C(c,$APP.en);c=$APP.I;d=$APP.m(d)?$APP.Mg.l($APP.ge,$APP.Qs,$APP.Ph(d,$APP.qe(YDa,a))):$APP.ge;a=$APP.m(e)?$APP.Mg.l(d,$APP.en,YDa(a,e)):d;return new $APP.H(null,2,5,c,[b,a],null)},q$=function(a,b){return $APP.Lf.l($APP.ge,$APP.He.i($APP.qe(ZDa,b)),$APP.Ps.i(a))},PDa=function(a){return $APP.Me($APP.Vc,$APP.uc(n$(a),2))},$Da=function(a){var b=n$(a);a=$APP.B(b,0,null);b=$APP.B(b,1,null);b=TDa(b);return b==
|
|
10
|
+
null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.Th($APP.ah(a))],null)},aEa=function(a){return $APP.Lf.l($APP.ge,$APP.we($Da),QDa(a))},r$=function(a){return(typeof a==="string"||a instanceof $APP.E)&&$APP.z.j("any",$APP.ah(a))},bEa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.mw);d=$APP.C(d,$APP.Hv);return(r$(c)||$APP.z.j($APP.ah(c),a))&&(r$(d)||$APP.ad($APP.Lf.l($APP.Ug,$APP.He.i($APP.ah),d),b))},cEa=function(a){a=$APP.F(a);a=$APP.C(a,$APP.mw);return r$(a)?1:0},dEa=function(a,b,c,d){var e=$APP.B(d,
|
|
11
|
+
0,null);d=$APP.B(d,1,null);d=$APP.t($APP.hd(cEa,$APP.Me($APP.re(bEa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.ik,a,$APP.Yt,b,$APP.Zca,c,$APP.dda,e,$APP.mw,$APP.ah($APP.mw.i(d))],null)},eEa=function(a){return $APP.fd($APP.He.j($APP.Wj.j($APP.Th,$APP.ah),$APP.Hg(a)))},fEa=function(a,b){var c=aEa($APP.oq.i(a)),d=$APP.hd($APP.gf,b);return $APP.Lf.j($APP.Pe,function(){return function g(f){return new $APP.Gd(null,function(){for(var k=f;;){var n=$APP.q(k);if(n){var r=n,v=$APP.t(r),w=$APP.F(v),
|
|
12
|
+
y=$APP.C(w,$APP.ik),A=$APP.C(w,$APP.Qs);if(n=$APP.q(function(G,M,P,T,S,da,oa,la,qa){return function rb(Va){return new $APP.Gd(null,function(Gb,Xb,ic,Pc,Og,ki,li,mi,td){return function(){for(var Pg=Va;;){var hf=$APP.q(Pg);if(hf){var Qg=hf,lj=$APP.t(Qg);if(hf=$APP.q(function(Ok,hs,Nf,lm,mm,Pk,nm,Qk,mj,nj,oj,Ko,pj){return function Rk(ph){return new $APP.Gd(null,function(is,om,Sk,rj,Lo,Mo,sj,lg,ye,js,Tk,ze){return function(){for(var Of=ph;;)if(Of=$APP.q(Of)){if($APP.Wc(Of)){var tj=$APP.zb(Of),No=$APP.x(tj),
|
|
13
|
+
Pf=$APP.Jd(No);a:{for(var Uk=0;;)if(Uk<No){var qh=$APP.Ec(tj,Uk);qh=dEa(lg,ze.i?ze.i(lg):ze.call(null,lg),Sk,qh);$APP.m(qh)&&Pf.add(qh);Uk+=1}else{tj=!0;break a}tj=void 0}return tj?$APP.Md(Pf.ea(),Rk($APP.Ab(Of))):$APP.Md(Pf.ea(),null)}Pf=$APP.t(Of);Pf=dEa(lg,ze.i?ze.i(lg):ze.call(null,lg),Sk,Pf);if($APP.m(Pf))return $APP.Ed(Pf,Rk($APP.ac(Of)));Of=$APP.ac(Of)}else return null}}(Ok,hs,Nf,lm,mm,Pk,nm,Qk,mj,nj,oj,Ko,pj),null)}}(Pg,Gb,lj,Qg,hf,Xb,ic,Pc,Og,ki,li,mi,td)(td)))return $APP.Je.j(hf,rb($APP.ac(Pg)));
|
|
14
|
+
Pg=$APP.ac(Pg)}else return null}}}(G,M,P,T,S,da,oa,la,qa),null)}}(k,v,w,y,A,r,n,c,d)(eEa(A))))return $APP.Je.j(n,g($APP.ac(k)));k=$APP.ac(k)}else return null}},null)}($APP.Ps.i(a))}())},gEa=function(a){var b=a.getAttribute("data-x-key");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},s$=function(a,b){var c=a[hEa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.qe(b,a));return null},iEa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.ah(a):""+$APP.N.i(a)},jEa=
|
|
15
|
+
function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);b=iEa(b);return $APP.K.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},t$=function(a,b){return $APP.Ih($APP.qe(jEa,b),a)},kEa=function(a,b){b=""+$APP.N.i(b);var c=a.firstChild;c=c==null?null:$APP.z.j(Node.TEXT_NODE,c.nodeType)&&c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.K.j(b,c.data)&&(c.data=b);return null},lEa=function(a,b,c){return b.append($APP.Vc(c)?u$.j?u$.j(a,c):u$.call(null,a,c):
|
|
16
|
+
""+$APP.N.i(c))},u$=function(a,b){var c=n$(b);$APP.B(c,0,null);var d=$APP.B(c,1,null);c=$APP.B(c,2,null);if(!$APP.ad(d,$APP.rr)&&$APP.le(RDa,$APP.Jg(d))&&$APP.le(SDa,c))c=n$(b);else throw $APP.Oh("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.J(null,1,[$APP.Yt,$APP.t(b)],null));d=$APP.B(c,0,null);b=$APP.B(c,1,null);c=$APP.B(c,2,null);d=a.createElement($APP.ah(d));s$(d,$APP.qe(t$,b));$APP.Ih($APP.re(lEa,a,d),c);return d},mEa=function(a){var b=a.getAttribute("data-x-part");
|
|
17
|
+
return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},nEa=function(a,b){var c=mEa(b);if(c==null)return a;b=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.vb(a,b,c)},v$=function(a,b){for(b=b.firstElementChild;;)if(b!=null){var c=a;a=b;$APP.m(a.hasAttribute("data-x-key"))?a=c:(c=nEa(c,a),a=v$.j?v$.j(c,a):v$.call(null,c,a));b=b.nextElementSibling}else return a},w$=function(a){return $APP.Qd(v$(nEa($APP.sb($APP.ge),a),a))},oEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.F(b);
|
|
18
|
+
var d=$APP.C(b,$APP.Qs);a=a.i?a.i(c):a.call(null,c);$APP.ad(b,$APP.en)&&kEa(a,$APP.en.i(b));return $APP.m(d)?s$(a,$APP.qe(t$,d)):null},x$=function(a,b){var c=$APP.q($APP.Lf.l($APP.Pe,$APP.Ne(a),$APP.Hg(b)));if(c!=null)throw $APP.Oh("write-parts!: no node has these part names.",new $APP.J(null,1,[$APP.lk,$APP.kf(c)],null));return $APP.Ih($APP.qe(oEa,a),b)},pEa=function(a,b){return a.getAttribute(b)},qEa=function(a,b){var c=$APP.F(a);a=$APP.C(c,$APP.Qs);var d=$APP.C(c,$APP.at);c=$APP.C(c,$APP.Tv);var e=
|
|
19
|
+
$APP.oq.i(c),f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.N.i(d),d=b.attachShadow({mode:"open"}),d.append(f,u$(document,e)));d=w$(d.lastElementChild);b=$APP.Lf.l($APP.ge,$APP.He.i($APP.mh($APP.Ah,$APP.qe(pEa,b))),a);return x$(d,q$(c,b))},rEa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.ya(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.connectedMoveCallback=function(){return null};d.attributeChangedCallback=
|
|
20
|
+
function(){return b.i?b.i(this):b.call(null,this)};return c},sEa=function(a,b){a=$APP.oe(a);a=new $APP.H(null,2,5,$APP.I,[$APP.ch(a,b),ODa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Je.j(b,$APP.Fe(1,a))},tEa=function(a){return a instanceof Element},uEa=function(a){a=$APP.Me(tEa,sEa($APP.qe($APP.ka,a.currentTarget),$APP.Ac(a.composedPath())));var b=$APP.me(mEa,sEa(gEa,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[y$,$APP.Lf.l($APP.Pe,$APP.we($APP.Wj.j($APP.t,
|
|
21
|
+
gEa)),$APP.Cd(a)),$APP.ik,c,z$,b],null)},vEa=function(a,b,c,d){return function(e){e=$APP.fp.l(a,b,e);a:for(;;){var f=$APP.$a(a),g=c.i?c.i(f):c.call(null,f);d.i?d.i(g):d.call(null,g);if(f===$APP.$a(a))break a}return e}},wEa=function(a,b){return a.getAttribute(b)},xEa=function(a){return $APP.Mc(y$.i(a))},yEa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},BEa=function(a,b){var c=$APP.F(a);a=$APP.C(c,zEa);var d=$APP.C(c,$APP.As),e=$APP.C(c,AEa);c=uEa(b);var f=$APP.F(c),g=$APP.C(f,
|
|
22
|
+
$APP.ik);c=$APP.C(f,z$);d=$APP.C(d,new $APP.H(null,2,5,$APP.I,[b.type,g],null));if(d==null)return null;g=$APP.Vc(d)?d:new $APP.H(null,2,5,$APP.I,[d,xEa],null);d=$APP.B(g,0,null);g=$APP.B(g,1,null);f=g.j?g.j(f,b):g.call(null,f,b);d=new $APP.H(null,1,5,$APP.I,[d],null);f=f!=null?$APP.Bd.j(d,f):d;d=$APP.C(e,b.type);d==null?b=a.i?a.i(f):a.call(null,f):(e=$APP.ei.j($APP.Wj.j(iEa,$APP.qe(yEa,b)),$APP.Jg(d)),a.i?a.i(f):a.call(null,f),a=$APP.K.j,f=$APP.Hg(d),c=$APP.ei.j($APP.qe(wEa,c),f),b=a.call($APP.K,
|
|
23
|
+
e,c)?b.preventDefault():null);return b},CEa=function(a,b,c){return a.addEventListener(c,$APP.qe(BEa,b))},DEa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},A$=function(a){return a!=null?$APP.Lf.l($APP.ge,$APP.He.i($APP.qe(DEa,a)),Object.keys(a)):$APP.ge},EEa=function(a){return $APP.m($APP.ma(a))?$APP.kf(a):a},FEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("on",c)?new $APP.H(null,2,5,$APP.I,[$APP.rr,$APP.Ph(A$(b),EEa)],null):$APP.Ic(b)?new $APP.H(null,
|
|
24
|
+
2,5,$APP.I,[c,a.i?a.i(b):a.call(null,b)],null):new $APP.H(null,2,5,$APP.I,[c,b],null)},GEa=function(a,b){return $APP.m($APP.ma(b))?B$.j?B$.j(a,b):B$.call(null,a,b):$APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},B$=function(a,b){b=$APP.q($APP.zc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.na($APP.t(b))?$APP.t(b):null,e=$APP.Lf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.Bd.j(c,$APP.Lf.l($APP.ge,$APP.He.i($APP.qe(FEa,a)),A$(d))):c;return e.call($APP.Lf,c,$APP.He.i($APP.qe(GEa,a)),$APP.m(d)?$APP.ac(b):
|
|
25
|
+
b)},C$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},HEa=function(a){a=A$(a);var b=$APP.ad(a,"text")?$APP.Mg.l($APP.ge,$APP.en,a.i?a.i("text"):a.call(null,"text")):$APP.ge;return(a.i?a.i("attrs"):a.call(null,"attrs"))!=null?$APP.Mg.l(b,$APP.Qs,A$(a.i?a.i("attrs"):a.call(null,"attrs"))):b},D$=function(a,b){var c=a===b;if(c)return c;if(c=a!=null&&Object.prototype===Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;
|
|
26
|
+
if(d)a:{for(d=0;;){var e=d===c.length;if(e){a=e;break a}e=a;var f=b,g=c[d],k=Object.prototype.hasOwnProperty.call(f,g);e=$APP.m(k)?Object.is(e[g],f[g]):k;if($APP.m(e))d+=1;else{a=e;break a}}a=void 0}else a=d;return a}return c}return c},JEa=function(a,b){var c=b==null?null:b[IEa];if($APP.m(c))return c;throw $APP.Oh(""+$APP.N.i(a)+": not a split template.",new $APP.J(null,1,[E$,b],null));},KEa=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.z.j("any",a.attributes))?b:$APP.ma(a.attributes);
|
|
27
|
+
if(!$APP.m(b))throw $APP.Oh("sharedHoles: a foreign write has a target and attributes.",new $APP.J(null,1,[E$,a],null));return new $APP.J(null,2,[$APP.mw,a.target,$APP.Hv,$APP.m($APP.ma(a.attributes))?$APP.kf(a.attributes):a.attributes],null)},F$=function(a){return new $APP.J(null,4,[$APP.hk,a.parent,$APP.bk,a.before,$APP.gi,a.key,$APP.ik,a.part],null)},LEa=function(a){return new $APP.J(null,3,[$APP.gi,a.key,$APP.ak,a.in,$APP.bk,a.before],null)},MEa=function(a,b,c){a[b]=c;return a},G$=function(a){return $APP.qd(MEa,
|
|
28
|
+
{},a)},NEa=function(a,b){a.push(b);return a},H$=function(a){return $APP.wa(NEa,[],a)},OEa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.gi);var c=$APP.C(b,$APP.hk),d=$APP.C(b,$APP.bk);b=$APP.C(b,$APP.ik);return{parent:c,before:d,key:a,part:b}},PEa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.gi);var c=$APP.C(b,$APP.ak);b=$APP.C(b,$APP.bk);return{key:a,"in":c,before:b}},QEa=function(a){var b=$APP.F(a);a=$APP.C(b,y$);var c=$APP.C(b,$APP.ik);b=$APP.C(b,z$);return{keyPath:$APP.jn(a),part:c,node:b}},REa=
|
|
29
|
+
function(a){return function(b,c){b=QEa(b);return a.j?a.j(b,c):a.call(null,b,c)}},SEa=function(a){var b=$APP.I,c=$APP.kf(a[0]);a=EEa(a[1]);a=$APP.Vc(a)?$APP.di.l(a,1,REa):a;return new $APP.H(null,2,5,b,[c,a],null)},TEa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},I$=function(a,b){this.store=a;this.Kc=b;this.B=425984;this.K=65536},UEa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},E$=new $APP.E(null,"given","given",716253602),z$=new $APP.E(null,
|
|
30
|
+
"node","node",581201198),y$=new $APP.E(null,"key-path","key-path",878473308),AEa=new $APP.E(null,"requested-values","requested-values",3116167),zEa=new $APP.E(null,"dispatch!","dispatch!",-1927281664);var hEa=Symbol["for"]("x-render-hold"),J$=function J$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return J$.o(arguments[0],1<c.length?new $APP.Wb(c.slice(1),0,null):null)};J$.o=function(a){return a.cloneNode(!0)};J$.M=1;J$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var VEa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.na(a))&&($APP.Ih(K$,Object.values(a)),Object.freeze(a));return a},IEa=Symbol("baremirror.split"),L$=Symbol("baremirror.value");I$.prototype.Y=function(a,b){return new I$(this.store,b)};I$.prototype.W=function(){return this.Kc};I$.prototype.Za=function(){return this.store.value};I$.prototype.nc=function(a,b,c){a=this.store;var d=this.store.value;b=b.j?b.j(d,c):b.call(null,d,c);return a.value=b};export const plan=function(a,b){a=$APP.gk($APP.Ph(A$(a),$APP.kf),$APP.Ph(A$(b),$APP.kf));a=$APP.F(a);b=$APP.C(a,$APP.ek);var c=$APP.C(a,$APP.fk);return K$(C$({remove:H$(b),place:H$($APP.He.j(PEa,c))},L$,a))};export const syncPlaces=function(a,b,c){return G$($APP.yk($APP.Ph(A$(a),F$),$APP.Ph(A$(b),$APP.kf),c))};export const setText=function(a,b){return kEa(a,b)};export const readOrigin=function(a){return QEa(uEa(a))};export const setAttrs=function(a,b){b=A$(b);return s$(a,$APP.qe(t$,b))};
|
|
31
|
+
export const readPlaces=function(a){a=$APP.vk($APP.Ph(A$(a),F$));a=$APP.F(a);var b=$APP.C(a,$APP.uk),c=$APP.C(a,$APP.qk),d=$APP.C(a,$APP.rk);return K$(C$({containers:G$($APP.Ph(b,OEa)),places:G$($APP.Ph(c,H$)),nodes:G$(d)},L$,a))};export const withOneRender=function(a,b){return s$(a,b)};
|
|
32
|
+
export const splitTemplate=function(a,b){var c=XDa(a,B$($APP.rd,b));return K$(C$({fixed:$APP.jn($APP.oq.i(c)),holes:$APP.jn($APP.Ps.i(c)),events:$APP.jn($APP.kf($APP.As.i(c))),writes:function(d){return $APP.jn(q$(c,d))}},IEa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=B$($APP.rd,a);return u$(document,a)};export const dispatcher=function(a,b,c,d){return vEa(new I$(a,$APP.ge),b,c,d)};
|
|
33
|
+
export const nodeMaker=function(a){a=B$($APP.rd,a);return $APP.qe(J$,u$(document.createElement("template").content.ownerDocument,a))};export const sharedHoles=function(a,b){return $APP.jn(fEa(JEa("sharedHoles",a),$APP.Ph(A$(b),$APP.qe($APP.ei,KEa))))};
|
|
34
|
+
export const perform=function(a,b,c){var d=a==null?null:a[L$];a=$APP.m(d)?d:new $APP.J(null,2,[$APP.uk,$APP.Ph(A$(a.containers),F$),$APP.rk,A$(a.nodes)],null);d=b==null?null:b[L$];b=$APP.m(d)?d:new $APP.J(null,2,[$APP.ek,$APP.kf(b.remove),$APP.fk,$APP.ei.j(LEa,b.place)],null);return G$($APP.xk(a,b,c))};
|
|
35
|
+
export const listen=function(a,b){var c=TEa(b.dispatch);var d=b.events;d=$APP.Lf.l($APP.ge,$APP.He.i(SEa),$APP.zc(d));b=new $APP.J(null,3,[zEa,c,$APP.As,d,AEa,$APP.Ph(A$(b.requestedValues),A$)],null);b=$APP.F(b);c=$APP.C(b,$APP.As);return $APP.Ih($APP.re(CEa,a,b),$APP.Lf.l($APP.Ug,$APP.He.i($APP.t),$APP.Hg(c)))};export const readParts=function(a){return $APP.jn(w$(a))};export const writeParts=function(a,b){return x$(A$(a),$APP.Ph(A$(b),HEa))};
|
|
36
|
+
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.Qs,$APP.kf(b.attrs),$APP.jw,B$(UEa,b.template),$APP.at,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.jw);b=$APP.C(c,$APP.Qs);c=$APP.C(c,$APP.at);d=XDa(a,d);if(!$APP.Oc($APP.As.i(d)))throw $APP.Oh("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.Yt,a],null));d=new $APP.J(null,3,[$APP.Qs,b,$APP.at,c,$APP.Tv,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,rEa(b,$APP.qe(qEa,
|
|
37
|
+
d)))};export const writeItem=function(a,b,c){b=JEa("writeItem",b);if(!($APP.Tc(b)&&$APP.ad(b,$APP.oq)&&$APP.ad(b,$APP.Ps)))throw $APP.Oh("write-item!: not a split template.",new $APP.J(null,1,[E$,b],null));var d=a[VEa];var e=$APP.B(d,0,null);d=$APP.B(d,1,null);e=(e=b===e)?D$.j?D$.j(c,d):D$.call(null,c,d):e;$APP.m(e)||(x$(w$(a),q$(b,c)),a[VEa]=new $APP.H(null,2,5,$APP.I,[b,c],null));return null};
|