@vanelsas/baredom 4.12.0 → 4.14.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/CHANGELOG.md +45 -0
- package/README.md +13 -7
- package/custom-elements.json +213 -0
- package/dist/all.js +2 -0
- package/dist/baredom.d.ts +1 -0
- package/dist/baremirror-alpha.js +41 -40
- package/dist/base.js +625 -628
- package/dist/foreign-writes.js +4 -0
- package/dist/integrity.json +115 -114
- 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 +17 -17
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +40 -40
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -34
- package/dist/x-chart.js +47 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +31 -31
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +35 -35
- package/dist/x-command-palette.js +30 -30
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +44 -44
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +36 -36
- 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 +14 -14
- package/dist/x-file-upload.js +24 -24
- 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 +18 -18
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +26 -26
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +35 -35
- package/dist/x-liquid-dock.js +34 -34
- package/dist/x-liquid-fill.js +41 -41
- package/dist/x-liquid-glass.js +41 -41
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +25 -25
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +44 -44
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +25 -25
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +16 -16
- package/dist/x-organic-progress.js +36 -36
- package/dist/x-organic-shape.js +12 -12
- 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 +27 -27
- 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 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +25 -25
- 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 +32 -32
- package/dist/x-scroll-timeline.js +49 -49
- package/dist/x-scroll.js +36 -36
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +16 -16
- 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 +19 -19
- package/dist/x-spacer.js +3 -3
- 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 +13 -13
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +8 -8
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +20 -20
- 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-toc.d.ts +45 -0
- package/dist/x-toc.js +36 -0
- package/dist/x-tooltip.js +15 -15
- package/dist/x-trace-history.js +119 -118
- package/dist/x-typography.js +9 -9
- package/dist/x-welcome-tour.js +62 -62
- package/package.json +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.14.0] - 2026-10-23
|
|
6
|
+
|
|
7
|
+
BareDOM 4.14 adds `x-toc`, a table of contents that follows the reader. All five adapters are
|
|
8
|
+
released with it: `-react` 3.4.0, `-angular` 3.4.0, `-vue` 0.10.0, `-svelte` 0.10.0 and
|
|
9
|
+
`-solid` 0.10.0. They add `XToc`, and each now needs `@vanelsas/baredom` 4.14.0 or later.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`x-toc`, a table of contents.** It lists the headings of a container that `for` names, marks
|
|
14
|
+
the heading the reader is at while they scroll, and scrolls to a heading on click. A heading
|
|
15
|
+
without an id gets one from its text. With `sticky` it stays in view while the page scrolls.
|
|
16
|
+
It finds the nearest scrolling ancestor of the container, and a container that appears or is
|
|
17
|
+
replaced later. See [`docs/x-toc.md`](docs/x-toc.md) and the
|
|
18
|
+
[demo](https://avanelsas.github.io/baredom/demo/x-toc.html).
|
|
19
|
+
- **`XToc` in the five adapters.**
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **The adapters need `@vanelsas/baredom` 4.14.0 or later.** Their index exports `XToc`, which
|
|
24
|
+
imports `@vanelsas/baredom/x-toc`.
|
|
25
|
+
|
|
26
|
+
## [4.13.0] - 2026-10-22
|
|
27
|
+
|
|
28
|
+
BareDOM 4.13 is the public alpha of BareMirror. BareMirror gets a README and a first look in
|
|
29
|
+
JavaScript and in ClojureScript, and its small updates cost less. The adapters are not released
|
|
30
|
+
with it.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **A README for BareMirror.** `baremirror/README.md` says what BareMirror is, how to install it
|
|
35
|
+
and what alpha means. The README of BareDOM links to it.
|
|
36
|
+
- **A first look at BareMirror.** A list of tasks in plain HTML, in JavaScript in
|
|
37
|
+
`bare-html/first-look.html` and in ClojureScript in `bare-html/first-look-cljs.html`. CI
|
|
38
|
+
renders both, and the demo site publishes them.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- **The guide to BareMirror uses the names of JavaScript.** `docs/baremirror.md` says
|
|
43
|
+
`writeItem`, `writeParts` and `nodeMaker` in the text that both languages share. The
|
|
44
|
+
ClojureScript names are in its ClojureScript section and in the table of functions.
|
|
45
|
+
- **Small updates in BareMirror are cheaper.** The `nodes` of a reading from `readPlaces` are
|
|
46
|
+
made when they are first read, so a render that plans and performs never makes them.
|
|
47
|
+
`writeItem` compares the item before it checks the split template, so an item it has written
|
|
48
|
+
already costs less than half what it did.
|
|
49
|
+
|
|
5
50
|
## [4.12.0] - 2026-10-21
|
|
6
51
|
|
|
7
52
|
BareDOM 4.12 can be imported on a server, so a page that uses its components renders with a
|
package/README.md
CHANGED
|
@@ -16,10 +16,16 @@
|
|
|
16
16
|
[](https://www.typescriptlang.org/)
|
|
17
17
|
[](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements)
|
|
18
18
|
|
|
19
|
+
Use BareDOM and BareMirror from JavaScript, TypeScript or ClojureScript. They ship as plain ES
|
|
20
|
+
modules with type declarations, so JavaScript never needs ClojureScript. In ClojureScript you
|
|
21
|
+
require their namespaces directly.
|
|
22
|
+
|
|
19
23
|
---
|
|
20
24
|
|
|
21
25
|
**Part of a set.** [BareDOM](https://github.com/avanelsas/baredom) is a comprehensive web component
|
|
22
|
-
library. [
|
|
26
|
+
library. [BareMirror](https://github.com/avanelsas/baredom/blob/main/baremirror/README.md) ships
|
|
27
|
+
inside it as an alpha, and brings a page to the state your application holds in the browser.
|
|
28
|
+
[BareBuild](https://github.com/avanelsas/barebuild) is a small runtime that drives web
|
|
23
29
|
components from server state alone. [BareReplay](https://github.com/avanelsas/barereplay) is a
|
|
24
30
|
powerful time-travel replay debugger for BareBuild-based apps.
|
|
25
31
|
[BareProbe](https://github.com/avanelsas/bareprobe) reads the same log from a REPL.
|
|
@@ -38,8 +44,6 @@ DOM = f(attributes, properties)
|
|
|
38
44
|
|
|
39
45
|
Components are **stateless**. Every visual state is derived directly from attributes and properties at render time. There are no hidden reactive systems, no internal signals, no component lifecycles to manage. Set an attribute, the DOM updates. Remove it, the DOM updates back.
|
|
40
46
|
|
|
41
|
-
BareDOM is authored in ClojureScript and compiled to optimised, minified ES modules using Google Closure's advanced compilation pass.
|
|
42
|
-
|
|
43
47
|
BareDOM has been created using Claude Code. The CLAUDE.md file is added to the repository for your convenience.
|
|
44
48
|
|
|
45
49
|
All components can be explored in the [live demo](https://avanelsas.github.io/baredom/).
|
|
@@ -113,13 +117,13 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
|
|
|
113
117
|
|
|
114
118
|
## Components
|
|
115
119
|
|
|
116
|
-
**
|
|
120
|
+
**107 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
|
|
117
121
|
|
|
118
122
|
| Category | Count | Examples |
|
|
119
123
|
|----------|------:|----------|
|
|
120
124
|
| **Form** | 23 | Button · Checkbox · Slider · Combobox · OTP Input · Color Picker |
|
|
121
125
|
| **Feedback** | 11 | Alert · Toast · Spinner · Progress · Skeleton · Notification Center |
|
|
122
|
-
| **Navigation** |
|
|
126
|
+
| **Navigation** | 9 | Navbar · Sidebar · Breadcrumbs · Tabs · Pagination · Menu · Table of Contents |
|
|
123
127
|
| **Layout** | 12 | Card · Grid · Bento Grid · Split Pane · Drag Panel · Drop Zone |
|
|
124
128
|
| **Data** | 11 | Avatar · Table · Chart · Timeline · Calendar · Stat |
|
|
125
129
|
| **Overlay** | 10 | Modal · Drawer · Popover · Tooltip · Floating Panel · Command Palette |
|
|
@@ -156,7 +160,7 @@ Register your own preset, override individual tokens via CSS, or nest themes for
|
|
|
156
160
|
|
|
157
161
|
## BareMirror (alpha)
|
|
158
162
|
|
|
159
|
-
A small set of functions for an application on top of the components: they place keyed nodes, write values into the parts of a template and turn events into messages, with no comparing of old and new in your code. It ships inside this package as an alpha, for JavaScript and ClojureScript.
|
|
163
|
+
A small set of functions for an application on top of the components: they place keyed nodes, write values into the parts of a template and turn events into messages, with no comparing of old and new in your code. It ships inside this package as an alpha, for JavaScript and ClojureScript. Start with the [BareMirror README](https://github.com/avanelsas/baredom/blob/main/baremirror/README.md), and see [`docs/baremirror.md`](./docs/baremirror.md) for the guide. The [demo](https://avanelsas.github.io/baredom/bare-html/mirror.html) renders one task list three ways, side by side.
|
|
160
164
|
|
|
161
165
|
---
|
|
162
166
|
|
|
@@ -177,7 +181,9 @@ Try the [live editor](https://avanelsas.github.io/bareforge/) or see the [reposi
|
|
|
177
181
|
|
|
178
182
|
## Bundle Size
|
|
179
183
|
|
|
180
|
-
BareDOM
|
|
184
|
+
BareDOM is written in ClojureScript and compiled to ES modules with the advanced compilation of
|
|
185
|
+
Google Closure. The runtime in `base.js` is the core library of ClojureScript. Sizes below are
|
|
186
|
+
gzipped:
|
|
181
187
|
|
|
182
188
|
| Module | Gzipped |
|
|
183
189
|
|--------|---------|
|
package/custom-elements.json
CHANGED
|
@@ -21718,6 +21718,219 @@
|
|
|
21718
21718
|
"name" : "XToaster"
|
|
21719
21719
|
}
|
|
21720
21720
|
} ]
|
|
21721
|
+
}, {
|
|
21722
|
+
"kind" : "javascript-module",
|
|
21723
|
+
"path" : "dist/x-toc.js",
|
|
21724
|
+
"declarations" : [ {
|
|
21725
|
+
"kind" : "class",
|
|
21726
|
+
"name" : "XToc",
|
|
21727
|
+
"tagName" : "x-toc",
|
|
21728
|
+
"superclass" : {
|
|
21729
|
+
"name" : "HTMLElement"
|
|
21730
|
+
},
|
|
21731
|
+
"members" : [ {
|
|
21732
|
+
"kind" : "field",
|
|
21733
|
+
"name" : "for",
|
|
21734
|
+
"type" : {
|
|
21735
|
+
"text" : "string"
|
|
21736
|
+
}
|
|
21737
|
+
}, {
|
|
21738
|
+
"kind" : "field",
|
|
21739
|
+
"name" : "selector",
|
|
21740
|
+
"type" : {
|
|
21741
|
+
"text" : "string"
|
|
21742
|
+
}
|
|
21743
|
+
}, {
|
|
21744
|
+
"kind" : "field",
|
|
21745
|
+
"name" : "label",
|
|
21746
|
+
"type" : {
|
|
21747
|
+
"text" : "string"
|
|
21748
|
+
}
|
|
21749
|
+
}, {
|
|
21750
|
+
"kind" : "field",
|
|
21751
|
+
"name" : "offset",
|
|
21752
|
+
"type" : {
|
|
21753
|
+
"text" : "string"
|
|
21754
|
+
}
|
|
21755
|
+
}, {
|
|
21756
|
+
"kind" : "field",
|
|
21757
|
+
"name" : "sticky",
|
|
21758
|
+
"type" : {
|
|
21759
|
+
"text" : "boolean"
|
|
21760
|
+
}
|
|
21761
|
+
}, {
|
|
21762
|
+
"kind" : "field",
|
|
21763
|
+
"name" : "updateHash",
|
|
21764
|
+
"type" : {
|
|
21765
|
+
"text" : "boolean"
|
|
21766
|
+
}
|
|
21767
|
+
}, {
|
|
21768
|
+
"kind" : "field",
|
|
21769
|
+
"name" : "activeId",
|
|
21770
|
+
"type" : {
|
|
21771
|
+
"text" : "string"
|
|
21772
|
+
},
|
|
21773
|
+
"readonly" : true
|
|
21774
|
+
} ],
|
|
21775
|
+
"attributes" : [ {
|
|
21776
|
+
"name" : "for",
|
|
21777
|
+
"fieldName" : "for",
|
|
21778
|
+
"type" : {
|
|
21779
|
+
"text" : "string"
|
|
21780
|
+
}
|
|
21781
|
+
}, {
|
|
21782
|
+
"name" : "selector",
|
|
21783
|
+
"fieldName" : "selector",
|
|
21784
|
+
"type" : {
|
|
21785
|
+
"text" : "string"
|
|
21786
|
+
}
|
|
21787
|
+
}, {
|
|
21788
|
+
"name" : "label",
|
|
21789
|
+
"fieldName" : "label",
|
|
21790
|
+
"type" : {
|
|
21791
|
+
"text" : "string"
|
|
21792
|
+
}
|
|
21793
|
+
}, {
|
|
21794
|
+
"name" : "offset",
|
|
21795
|
+
"fieldName" : "offset",
|
|
21796
|
+
"type" : {
|
|
21797
|
+
"text" : "string"
|
|
21798
|
+
}
|
|
21799
|
+
}, {
|
|
21800
|
+
"name" : "sticky",
|
|
21801
|
+
"fieldName" : "sticky",
|
|
21802
|
+
"type" : {
|
|
21803
|
+
"text" : "boolean"
|
|
21804
|
+
}
|
|
21805
|
+
}, {
|
|
21806
|
+
"name" : "update-hash",
|
|
21807
|
+
"fieldName" : "updateHash",
|
|
21808
|
+
"type" : {
|
|
21809
|
+
"text" : "boolean"
|
|
21810
|
+
}
|
|
21811
|
+
} ],
|
|
21812
|
+
"events" : [ {
|
|
21813
|
+
"name" : "x-toc-change",
|
|
21814
|
+
"type" : {
|
|
21815
|
+
"text" : "CustomEvent<{ id: string; text: string; level: number; index: number; previousId: string }>"
|
|
21816
|
+
},
|
|
21817
|
+
"cancelable" : false,
|
|
21818
|
+
"detail" : {
|
|
21819
|
+
"id" : "string",
|
|
21820
|
+
"text" : "string",
|
|
21821
|
+
"level" : "number",
|
|
21822
|
+
"index" : "number",
|
|
21823
|
+
"previousId" : "string"
|
|
21824
|
+
}
|
|
21825
|
+
}, {
|
|
21826
|
+
"name" : "x-toc-navigate",
|
|
21827
|
+
"type" : {
|
|
21828
|
+
"text" : "CustomEvent<{ id: string; text: string; level: number; index: number }>"
|
|
21829
|
+
},
|
|
21830
|
+
"cancelable" : true,
|
|
21831
|
+
"detail" : {
|
|
21832
|
+
"id" : "string",
|
|
21833
|
+
"text" : "string",
|
|
21834
|
+
"level" : "number",
|
|
21835
|
+
"index" : "number"
|
|
21836
|
+
}
|
|
21837
|
+
} ],
|
|
21838
|
+
"slots" : [ {
|
|
21839
|
+
"name" : ""
|
|
21840
|
+
} ],
|
|
21841
|
+
"cssProperties" : [ {
|
|
21842
|
+
"name" : "--x-toc-active-color",
|
|
21843
|
+
"default" : "var(--x-color-primary,#2563eb)"
|
|
21844
|
+
}, {
|
|
21845
|
+
"name" : "--x-toc-color",
|
|
21846
|
+
"default" : "var(--x-color-text,#1f2937)"
|
|
21847
|
+
}, {
|
|
21848
|
+
"name" : "--x-toc-font-family",
|
|
21849
|
+
"default" : "var(--x-font-family,inherit)"
|
|
21850
|
+
}, {
|
|
21851
|
+
"name" : "--x-toc-font-size",
|
|
21852
|
+
"default" : "var(--x-font-size-sm,0.875rem)"
|
|
21853
|
+
}, {
|
|
21854
|
+
"name" : "--x-toc-gap",
|
|
21855
|
+
"default" : "var(--x-space-sm,0.5rem)"
|
|
21856
|
+
}, {
|
|
21857
|
+
"name" : "--x-toc-hover-color",
|
|
21858
|
+
"default" : "var(--x-color-primary-hover,#1d4ed8)"
|
|
21859
|
+
}, {
|
|
21860
|
+
"name" : "--x-toc-indent",
|
|
21861
|
+
"default" : "0.75rem"
|
|
21862
|
+
}, {
|
|
21863
|
+
"name" : "--x-toc-indicator-color",
|
|
21864
|
+
"default" : "var(--x-toc-active-color)"
|
|
21865
|
+
}, {
|
|
21866
|
+
"name" : "--x-toc-indicator-radius",
|
|
21867
|
+
"default" : "var(--x-radius-full,9999px)"
|
|
21868
|
+
}, {
|
|
21869
|
+
"name" : "--x-toc-indicator-width",
|
|
21870
|
+
"default" : "3px"
|
|
21871
|
+
}, {
|
|
21872
|
+
"name" : "--x-toc-label-color",
|
|
21873
|
+
"default" : "var(--x-color-text-muted,#6b7280)"
|
|
21874
|
+
}, {
|
|
21875
|
+
"name" : "--x-toc-label-font-family",
|
|
21876
|
+
"default" : "var(--x-font-family-mono,ui-monospace,monospace)"
|
|
21877
|
+
}, {
|
|
21878
|
+
"name" : "--x-toc-label-font-size",
|
|
21879
|
+
"default" : "var(--x-font-size-xs,0.75rem)"
|
|
21880
|
+
}, {
|
|
21881
|
+
"name" : "--x-toc-label-letter-spacing",
|
|
21882
|
+
"default" : "0.12em"
|
|
21883
|
+
}, {
|
|
21884
|
+
"name" : "--x-toc-label-transform",
|
|
21885
|
+
"default" : "uppercase"
|
|
21886
|
+
}, {
|
|
21887
|
+
"name" : "--x-toc-rail-color",
|
|
21888
|
+
"default" : "var(--x-color-border,#e5e7eb)"
|
|
21889
|
+
}, {
|
|
21890
|
+
"name" : "--x-toc-rail-width",
|
|
21891
|
+
"default" : "var(--x-border-width,1px)"
|
|
21892
|
+
}, {
|
|
21893
|
+
"name" : "--x-toc-sticky-top",
|
|
21894
|
+
"default" : "1rem"
|
|
21895
|
+
}, {
|
|
21896
|
+
"name" : "--x-toc-transition-duration",
|
|
21897
|
+
"default" : "var(--x-transition-duration,200ms)"
|
|
21898
|
+
} ],
|
|
21899
|
+
"cssParts" : [ {
|
|
21900
|
+
"name" : "body"
|
|
21901
|
+
}, {
|
|
21902
|
+
"name" : "indicator"
|
|
21903
|
+
}, {
|
|
21904
|
+
"name" : "item"
|
|
21905
|
+
}, {
|
|
21906
|
+
"name" : "label"
|
|
21907
|
+
}, {
|
|
21908
|
+
"name" : "link"
|
|
21909
|
+
}, {
|
|
21910
|
+
"name" : "list"
|
|
21911
|
+
}, {
|
|
21912
|
+
"name" : "nav"
|
|
21913
|
+
}, {
|
|
21914
|
+
"name" : "part"
|
|
21915
|
+
} ],
|
|
21916
|
+
"foreignWrites" : [ {
|
|
21917
|
+
"target" : "any",
|
|
21918
|
+
"attributes" : [ "id", "tabindex" ]
|
|
21919
|
+
} ]
|
|
21920
|
+
} ],
|
|
21921
|
+
"exports" : [ {
|
|
21922
|
+
"kind" : "js",
|
|
21923
|
+
"name" : "init",
|
|
21924
|
+
"declaration" : {
|
|
21925
|
+
"name" : "init"
|
|
21926
|
+
}
|
|
21927
|
+
}, {
|
|
21928
|
+
"kind" : "custom-element-definition",
|
|
21929
|
+
"name" : "x-toc",
|
|
21930
|
+
"declaration" : {
|
|
21931
|
+
"name" : "XToc"
|
|
21932
|
+
}
|
|
21933
|
+
} ]
|
|
21721
21934
|
}, {
|
|
21722
21935
|
"kind" : "javascript-module",
|
|
21723
21936
|
"path" : "dist/x-tooltip.js",
|
package/dist/all.js
CHANGED
|
@@ -105,6 +105,7 @@ import { init as xTimeline } from './x-timeline.js';
|
|
|
105
105
|
import { init as xTimelineItem } from './x-timeline-item.js';
|
|
106
106
|
import { init as xToast } from './x-toast.js';
|
|
107
107
|
import { init as xToaster } from './x-toaster.js';
|
|
108
|
+
import { init as xToc } from './x-toc.js';
|
|
108
109
|
import { init as xTooltip } from './x-tooltip.js';
|
|
109
110
|
import { init as xTraceHistory } from './x-trace-history.js';
|
|
110
111
|
import { init as xTypography } from './x-typography.js';
|
|
@@ -215,6 +216,7 @@ export function init() {
|
|
|
215
216
|
xTimelineItem();
|
|
216
217
|
xToast();
|
|
217
218
|
xToaster();
|
|
219
|
+
xToc();
|
|
218
220
|
xTooltip();
|
|
219
221
|
xTraceHistory();
|
|
220
222
|
xTypography();
|
package/dist/baredom.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export { XTimelineItem } from "./x-timeline-item";
|
|
|
108
108
|
export { XTimelineItem } from "./x-timeline-item";
|
|
109
109
|
export { XToast } from "./x-toast";
|
|
110
110
|
export { XToaster } from "./x-toaster";
|
|
111
|
+
export { XToc } from "./x-toc";
|
|
111
112
|
export { XTooltip } from "./x-tooltip";
|
|
112
113
|
export { XTypography } from "./x-typography";
|
|
113
114
|
export { XWelcomeTour } from "./x-welcome-tour";
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
2
|
+
var lFa=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)},nFa=function(a){var b=mFa;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)},oFa=function(){return function(a){var b=$APP.se($APP.Qg);return function(){function c(g,
|
|
3
3
|
k){if($APP.ad($APP.$a(b),k))return g;b.Gb(null,$APP.Bd.j(b.Ma(null),k));return a.j?a.j(g,k):a.call(null,g,k)}function d(g){return a.i?a.i(g):a.call(null,g)}function e(){return a.D?a.D():a.call(null)}var f=null;f=function(g,k){switch(arguments.length){case 0:return e.call(this);case 1:return d.call(this,g);case 2:return c.call(this,g,k)}throw Error("Invalid arity: "+arguments.length);};f.D=e;f.i=d;f.j=c;return f}()}},j$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Tc($APP.t(b))?
|
|
4
|
-
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)},k$=function(a,b){return $APP.me(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.
|
|
5
|
-
a=$APP.B(b,1,null);b=$APP.B(b,2,null);return $APP.p($APP.me($APP.
|
|
6
|
-
c=$APP.C(d,$APP.vr);var e=$APP.
|
|
7
|
-
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)},m$=function(a,b,c){var d=j$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.
|
|
8
|
-
new $APP.J(null,1,[$APP.
|
|
9
|
-
d,$APP.
|
|
10
|
-
b=$APP.C(k,$APP.sq);k=$APP.C(k,$APP.
|
|
11
|
-
$APP.
|
|
12
|
-
b)),$APP.
|
|
13
|
-
a))&&(p$(d)||$APP.ad($APP.Lf.l($APP.
|
|
14
|
-
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.
|
|
15
|
-
function(
|
|
16
|
-
|
|
17
|
-
a));return null},
|
|
18
|
-
c.data)&&(c.data=b);return null},
|
|
19
|
-
"http://www.w3.org/2000/svg"}f=b;f=f!=null?a.createElementNS(f,e):a.createElement(e);q$(f,$APP.
|
|
20
|
-
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=
|
|
21
|
-
Object.keys(b).length&&$APP.le($APP.
|
|
22
|
-
a.i(c):a.call(null,c);$APP.ad(b,$APP.
|
|
23
|
-
f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.
|
|
24
|
-
function(){return b.i?b.i(this):b.call(null,this)};return c},
|
|
25
|
-
|
|
26
|
-
$APP.
|
|
27
|
-
e,c)?b.preventDefault():null);return b},
|
|
28
|
-
$APP.B(b,2,null);return a.removeEventListener(c,d,b)},
|
|
29
|
-
2,5,$APP.I,[$APP.hq,$APP.Qh(B$(b),$APP.
|
|
30
|
-
a)),$APP.m(d)?$APP.ac(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},
|
|
31
|
-
Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;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}
|
|
32
|
-
1,[F$,b],null));},
|
|
33
|
-
function(a){return new $APP.J(null,3,[$APP.hi,a.key,$APP.
|
|
34
|
-
"in":c,before:b}},
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
|
|
4
|
+
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)},k$=function(a,b){return $APP.me(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.z.j(b,$APP.ah(d))?c:null},a)},l$=function(a){return a instanceof $APP.E||$APP.Ic(a)},pFa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},qFa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},rFa=function(a){var b=j$(a);$APP.B(b,0,null);
|
|
5
|
+
a=$APP.B(b,1,null);b=$APP.B(b,2,null);return $APP.p($APP.me($APP.pe($APP.ad,a),new $APP.H(null,2,5,$APP.I,[$APP.vr,$APP.hq],null)))&&$APP.le(pFa,$APP.Jg(a))&&$APP.le(qFa,b)},sFa=function(a){var b=$APP.F(a),c=$APP.C(b,$APP.Kr);a=$APP.C(b,$APP.en);b=$APP.C(b,$APP.hq);a=(c=$APP.q(c))?c:$APP.m(a)?a:$APP.q(b);return $APP.D(a)},tFa=function(a,b){var c=$APP.B(b,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)},uFa=function(a,b,c){var d=$APP.F(c);
|
|
6
|
+
c=$APP.C(d,$APP.vr);var e=$APP.F(d),f=$APP.C(e,$APP.Kr),g=$APP.C(e,$APP.en);d=$APP.C(e,$APP.hq);sFa(e)?(e=new $APP.J(null,1,[$APP.ik,b],null),f=$APP.q(f)?$APP.Mg.l(e,$APP.Ws,f):e,g=$APP.m(g)?$APP.Mg.l(f,$APP.en,g):f,d=$APP.q(d)?$APP.Mg.l(g,$APP.hq,d):g):d=null;a=$APP.ei.P(a,$APP.ps,$APP.Lf,$APP.He.i($APP.pe(tFa,b)),c);return $APP.m(d)?$APP.ei.K(a,$APP.Vs,$APP.Bd,d):a},vFa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Vc(c)?(c=m$.l?m$.l(a,b,c):m$.call(null,a,b,c),a=$APP.B(c,
|
|
7
|
+
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)},m$=function(a,b,c){var d=j$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.wk.o(e,$APP.vr,$APP.zc([$APP.hq]));if($APP.p($APP.me(l$,f)))d=null;else{if($APP.u(f))throw $APP.Ph("A text hole must be the only child of its element.",new $APP.J(null,1,[$APP.du,c],null));d=$APP.t(f)}var k=$APP.vr.i(e);e=$APP.hq.i(e);if(!$APP.le(l$,$APP.Jg(e)))throw $APP.Ph("A value in :props is a hole.",
|
|
8
|
+
new $APP.J(null,1,[$APP.du,c],null));var n=$APP.Lf.l($APP.ge,$APP.Ne($APP.dk.j(l$,$APP.hf)),g);g=$APP.Lf.l($APP.ge,$APP.Le($APP.dk.j(l$,$APP.hf)),g);if($APP.m(k$(g,"xmlns")))throw $APP.Ph("xmlns is a fixed value, never a hole.",new $APP.J(null,1,[$APP.du,c],null));if($APP.m(d))f=null;else if(!$APP.le(qFa,f))throw $APP.Ph("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.du,c],null));d=new $APP.J(null,7,[$APP.du,c,$APP.vr,k,$APP.hq,e,$APP.sq,n,$APP.Kr,g,$APP.en,
|
|
9
|
+
d,$APP.Ku,f],null);b=$APP.F(b);c=$APP.C(b,$APP.uv);d=$APP.F(d);k=$APP.C(d,$APP.sq);k=k$(k,"data-x-part");f=$APP.F(d);g=$APP.C(f,$APP.vr);$APP.D($APP.q(g)||sFa(f))?$APP.m(k)?d=new $APP.H(null,2,5,$APP.I,[d,uFa(b,k,d)],null):(c=""+$APP.M.i(a)+"."+$APP.M.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.To(d,new $APP.H(null,2,5,$APP.I,[$APP.sq,$APP.wh.i("data-x-part")],null),c),uFa($APP.ei.l(b,$APP.uv,$APP.gc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);k=$APP.F(b);c=$APP.C(k,$APP.du);
|
|
10
|
+
b=$APP.C(k,$APP.sq);k=$APP.C(k,$APP.Ku);d=$APP.B(d,1,null);d=$APP.wa($APP.pe(vFa,a),new $APP.H(null,2,5,$APP.I,[$APP.Pe,d],null),k);a=$APP.B(d,0,null);d=$APP.B(d,1,null);k=$APP.I;f=$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,k,[f.call($APP.Lf,b,a),d],null)},wFa=function(a,b){b=m$($APP.ah(a),new $APP.J(null,3,[$APP.uv,0,$APP.Vs,$APP.Pe,$APP.ps,$APP.ge],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[$APP.sq,a,$APP.Vs,
|
|
11
|
+
$APP.Vs.i(b),$APP.ps,$APP.ps.i(b)],null)},n$=function(a,b){return b.i?b.i(a):b.call(null,a)},xFa=function(a,b){var c=$APP.F(b);b=$APP.C(c,$APP.ik);var d=$APP.C(c,$APP.Ws),e=$APP.C(c,$APP.en),f=$APP.C(c,$APP.hq);c=$APP.I;d=$APP.m(d)?$APP.Mg.l($APP.ge,$APP.Ws,$APP.Qh(d,$APP.pe(n$,a))):$APP.ge;e=$APP.m(e)?$APP.Mg.l(d,$APP.en,n$(a,e)):d;a=$APP.m(f)?$APP.Mg.l(e,$APP.hq,$APP.Qh(f,$APP.pe(n$,a))):e;return new $APP.H(null,2,5,c,[b,a],null)},o$=function(a,b){return $APP.Lf.l($APP.ge,$APP.He.i($APP.pe(xFa,
|
|
12
|
+
b)),$APP.Vs.i(a))},mFa=function(a){return $APP.Me($APP.Vc,$APP.uc(j$(a),2))},yFa=function(a){var b=j$(a);a=$APP.B(b,0,null);b=$APP.B(b,1,null);b=k$(b,"data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.Uh($APP.ah(a))],null)},zFa=function(a){return $APP.Lf.l($APP.ge,$APP.ve(yFa),nFa(a))},p$=function(a){return(typeof a==="string"||a instanceof $APP.E)&&$APP.z.j("any",$APP.ah(a))},AFa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.rw);d=$APP.C(d,$APP.Mv);return(p$(c)||$APP.z.j($APP.ah(c),
|
|
13
|
+
a))&&(p$(d)||$APP.ad($APP.Lf.l($APP.Qg,$APP.He.i($APP.ah),d),b))},BFa=function(a){a=$APP.F(a);a=$APP.C(a,$APP.rw);return p$(a)?1:0},CFa=function(a,b,c,d){var e=$APP.B(d,0,null);d=$APP.B(d,1,null);d=$APP.t($APP.hd(BFa,$APP.Me($APP.qe(AFa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.ik,a,$APP.du,b,$APP.ada,c,$APP.fda,e,$APP.rw,$APP.ah($APP.rw.i(d))],null)},DFa=function(a){return $APP.fd($APP.He.j($APP.dk.j($APP.Uh,$APP.ah),$APP.Hg(a)))},EFa=function(a,b){var c=zFa($APP.sq.i(a)),d=$APP.hd($APP.gf,
|
|
14
|
+
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),y=$APP.C(w,$APP.ik),A=$APP.C(w,$APP.Ws);if(n=$APP.q(function(G,N,P,T,S,ea,oa,la,qa){return function sb(Xa){return new $APP.Gd(null,function(Ib,Yb,mc,Sc,Sg,zi,Ai,Bi,vd){return function(){for(var Tg=Xa;;){var jf=$APP.q(Tg);if(jf){var Ug=jf,tj=$APP.t(Ug);if(jf=$APP.q(function(Wk,ss,Mf,xm,ym,Xk,zm,Yk,uj,vj,wj,Uo,xj){return function Zk(xh){return new $APP.Gd(null,
|
|
15
|
+
function(ts,Am,$k,zj,Vo,Wo,Aj,mg,Ae,us,al,Be){return function(){for(var Nf=xh;;)if(Nf=$APP.q(Nf)){if($APP.Wc(Nf)){var Bj=$APP.zb(Nf),Xo=$APP.x(Bj),Of=$APP.Jd(Xo);a:{for(var bl=0;;)if(bl<Xo){var yh=$APP.Ec(Bj,bl);yh=CFa(mg,Be.i?Be.i(mg):Be.call(null,mg),$k,yh);$APP.m(yh)&&Of.add(yh);bl+=1}else{Bj=!0;break a}Bj=void 0}return Bj?$APP.Md(Of.fa(),Zk($APP.Ab(Nf))):$APP.Md(Of.fa(),null)}Of=$APP.t(Nf);Of=CFa(mg,Be.i?Be.i(mg):Be.call(null,mg),$k,Of);if($APP.m(Of))return $APP.Ed(Of,Zk($APP.ac(Nf)));Nf=$APP.ac(Nf)}else return null}}(Wk,
|
|
16
|
+
ss,Mf,xm,ym,Xk,zm,Yk,uj,vj,wj,Uo,xj),null)}}(Tg,Ib,tj,Ug,jf,Yb,mc,Sc,Sg,zi,Ai,Bi,vd)(vd)))return $APP.Je.j(jf,sb($APP.ac(Tg)));Tg=$APP.ac(Tg)}else return null}}}(G,N,P,T,S,ea,oa,la,qa),null)}}(k,v,w,y,A,r,n,c,d)(DFa(A))))return $APP.Je.j(n,g($APP.ac(k)));k=$APP.ac(k)}else return null}},null)}($APP.Vs.i(a))}())},FFa=function(a){var b=a.getAttribute("data-x-key");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},q$=function(a,b){var c=a[GFa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.pe(b,
|
|
17
|
+
a));return null},HFa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.ah(a):""+$APP.M.i(a)},IFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);b=HFa(b);return $APP.K.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},r$=function(a,b){return $APP.Jh($APP.pe(IFa,b),a)},JFa=function(a,b){b=""+$APP.M.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,
|
|
18
|
+
c.data)&&(c.data=b);return null},KFa=function(a,b,c,d){return c.append($APP.Vc(d)?s$.l?s$.l(a,b,d):s$.call(null,a,b,d):""+$APP.M.i(d))},t$=function(a){var b=$APP.t($APP.Oe(rFa,nFa(a)));if(b==null)return a;throw $APP.Ph("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.J(null,1,[$APP.du,$APP.t(b)],null));},s$=function(a,b,c){var d=j$(c),e=$APP.B(d,0,null);c=$APP.B(d,1,null);d=$APP.B(d,2,null);e=$APP.ah(e);var f=k$(c,"xmlns");if($APP.m(f))b=f;else switch(e){case "svg":b=
|
|
19
|
+
"http://www.w3.org/2000/svg"}f=b;f=f!=null?a.createElementNS(f,e):a.createElement(e);q$(f,$APP.pe(r$,c));a:switch(e){case "foreignObject":c=null;break a;default:c=b}$APP.Jh($APP.re(KFa,a,c,f),d);return f},LFa=function(a){var b=t$(a);return $APP.pe(u$,new $APP.Hh(function(){return s$(document.createElement("template").content.ownerDocument,null,b)}))},MFa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},NFa=function(a,b){var c=MFa(b);if(c==
|
|
20
|
+
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=NFa(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$(NFa($APP.rb($APP.ge),a),a))},OFa=function(a,b,c){var d=Object.hasOwn(b,c);return $APP.m(d)?(a=a[c],b=b[c],x$.j?x$.j(a,b):x$.call(null,a,b)):d},PFa=function(a,b){var c=Object.keys(a);return c.length===
|
|
21
|
+
Object.keys(b).length&&$APP.le($APP.qe(OFa,a,b),c)},x$=function(a,b){if(a===b)a=!0;else{var c=$APP.ma(a);c=$APP.m(c)?$APP.ma(b):c;a=$APP.m(c)?PFa(a,b):$APP.na(a)&&$APP.na(b)?PFa(a,b):$APP.z.j(a,b)}return a},RFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);var d=a[QFa];if($APP.ad(d,c)&&x$(b,$APP.C(d,c)))return null;a[c]=b;return a[QFa]=$APP.Mg.l(d,c,b)},SFa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.F(b);var d=$APP.C(b,$APP.Ws),e=$APP.C(b,$APP.hq);a=a.i?
|
|
22
|
+
a.i(c):a.call(null,c);$APP.ad(b,$APP.en)&&JFa(a,$APP.en.i(b));$APP.m(d)&&q$(a,$APP.pe(r$,d));return $APP.Jh($APP.pe(RFa,a),e)},y$=function(a,b){var c=$APP.q($APP.Lf.l($APP.Pe,$APP.Ne(a),$APP.Hg(b)));if(c!=null)throw $APP.Ph("write-parts!: no node has these part names.",new $APP.J(null,1,[$APP.lk,$APP.kf(c)],null));return $APP.Jh($APP.pe(SFa,a),b)},TFa=function(a,b){return a.getAttribute(b)},UFa=function(a,b){var c=$APP.F(a);a=$APP.C(c,$APP.Ws);var d=$APP.C(c,$APP.gt);c=$APP.C(c,$APP.Yv);var e=$APP.sq.i(c),
|
|
23
|
+
f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.M.i(d),d=b.attachShadow({mode:"open"}),d.append(f,s$(document,null,t$(e))));d=w$(d.lastElementChild);b=$APP.Lf.l($APP.ge,$APP.He.i($APP.mh($APP.wh,$APP.pe(TFa,b))),a);return y$(d,o$(c,b))},VFa=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=
|
|
24
|
+
function(){return b.i?b.i(this):b.call(null,this)};return c},WFa=function(a,b){a=$APP.oe(a);a=new $APP.H(null,2,5,$APP.I,[$APP.ch(a,b),lFa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Je.j(b,$APP.Fe(1,a))},XFa=function(a){return a instanceof Element},YFa=function(a){a=$APP.Me(XFa,WFa($APP.pe($APP.ka,a.currentTarget),$APP.Ac(a.composedPath())));var b=$APP.me(MFa,WFa(FFa,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[z$,$APP.Lf.l($APP.Pe,$APP.ve($APP.dk.j($APP.t,
|
|
25
|
+
FFa)),$APP.Cd(a)),$APP.ik,c,A$,b],null)},ZFa=function(a,b,c,d){return function(e){e=$APP.So.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}},$Fa=function(a,b){return a.getAttribute(b)},aGa=function(a){return $APP.Mc(z$.i(a))},bGa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},eGa=function(a,b){var c=$APP.F(a);a=$APP.C(c,cGa);var d=$APP.C(c,$APP.ps),e=$APP.C(c,dGa);c=YFa(b);var f=$APP.F(c),g=$APP.C(f,
|
|
26
|
+
$APP.ik);c=$APP.C(f,A$);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,aGa],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.fi.j($APP.dk.j(HFa,$APP.pe(bGa,b)),$APP.Jg(d)),a.i?a.i(f):a.call(null,f),a=$APP.K.j,f=$APP.Hg(d),c=$APP.fi.j($APP.pe($Fa,c),f),b=a.call($APP.K,
|
|
27
|
+
e,c)?b.preventDefault():null);return b},fGa=function(a,b){return $APP.m(b.bubbles)?null:eGa(a,b)},gGa=function(a,b){return $APP.m(b.bubbles)?eGa(a,b):null},hGa=function(a,b){return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,[b,$APP.pe(fGa,a),!0],null),new $APP.H(null,3,5,$APP.I,[b,$APP.pe(gGa,a),!1],null)],null)},iGa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=$APP.B(b,2,null);return a.addEventListener(c,d,b)},jGa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=
|
|
28
|
+
$APP.B(b,2,null);return a.removeEventListener(c,d,b)},kGa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},B$=function(a){return a!=null?$APP.Lf.l($APP.ge,$APP.He.i($APP.pe(kGa,a)),Object.keys(a)):$APP.ge},lGa=function(a){return $APP.m($APP.ma(a))?$APP.kf(a):a},mGa=function(a,b){return $APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},nGa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);switch(c){case "on":return new $APP.H(null,2,5,$APP.I,[$APP.vr,$APP.Qh(B$(b),lGa)],null);case "props":return new $APP.H(null,
|
|
29
|
+
2,5,$APP.I,[$APP.hq,$APP.Qh(B$(b),$APP.pe(mGa,a))],null);default:return new $APP.H(null,2,5,$APP.I,[c,mGa(a,b)],null)}},oGa=function(a,b){return $APP.m($APP.ma(b))?C$.j?C$.j(a,b):C$.call(null,a,b):$APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},C$=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.pe(nGa,a)),B$(d))):c;return e.call($APP.Lf,c,$APP.He.i($APP.pe(oGa,
|
|
30
|
+
a)),$APP.m(d)?$APP.ac(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},pGa=function(a){a=B$(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;b=(a.i?a.i("attrs"):a.call(null,"attrs"))!=null?$APP.Mg.l(b,$APP.Ws,B$(a.i?a.i("attrs"):a.call(null,"attrs"))):b;return(a.i?a.i("props"):a.call(null,"props"))!=null?$APP.Mg.l(b,$APP.hq,B$(a.i?a.i("props"):a.call(null,"props"))):b},E$=function(a,b){var c=a===b;if(c)return c;if(c=a!=null&&Object.prototype===
|
|
31
|
+
Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;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},rGa=function(a,b){var c=b==null?null:b[qGa];if($APP.m(c))return c;throw $APP.Ph(""+$APP.M.i(a)+": not a split template.",new $APP.J(null,
|
|
32
|
+
1,[F$,b],null));},sGa=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);if(!$APP.m(b))throw $APP.Ph("sharedHoles: a foreign write has a target and attributes.",new $APP.J(null,1,[F$,a],null));return new $APP.J(null,2,[$APP.rw,a.target,$APP.Mv,$APP.m($APP.ma(a.attributes))?$APP.kf(a.attributes):a.attributes],null)},G$=function(a){return new $APP.J(null,4,[$APP.hk,a.parent,$APP.ak,a.before,$APP.hi,a.key,$APP.ik,a.part],null)},tGa=
|
|
33
|
+
function(a){return new $APP.J(null,3,[$APP.hi,a.key,$APP.Zj,a.in,$APP.ak,a.before],null)},uGa=function(a,b,c){a[b]=c;return a},H$=function(a){return $APP.qd(uGa,{},a)},vGa=function(a,b){a.push(b);return a},I$=function(a){return $APP.wa(vGa,[],a)},wGa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.hk),d=$APP.C(b,$APP.ak);b=$APP.C(b,$APP.ik);return{parent:c,before:d,key:a,part:b}},xGa=function(a,b){var c=new $APP.Hh(function(){return Object.freeze(H$(b))});return Object.defineProperty(a,
|
|
34
|
+
"nodes",{get:function(){return $APP.$a(c)},enumerable:!0})},yGa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.Zj);b=$APP.C(b,$APP.ak);return{key:a,"in":c,before:b}},zGa=function(a){var b=$APP.F(a);a=$APP.C(b,z$);var c=$APP.C(b,$APP.ik);b=$APP.C(b,A$);return{keyPath:$APP.jn(a),part:c,node:b}},AGa=function(a){return function(b,c){b=zGa(b);return a.j?a.j(b,c):a.call(null,b,c)}},BGa=function(a){var b=$APP.I,c=$APP.kf(a[0]);a=lGa(a[1]);a=$APP.Vc(a)?$APP.ei.l(a,1,AGa):a;return new $APP.H(null,
|
|
35
|
+
2,5,b,[c,a],null)},CGa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},J$=function(a,b){this.store=a;this.Lc=b;this.A=425984;this.J=65536},DGa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},F$=new $APP.E(null,"given","given",716253602),A$=new $APP.E(null,"node","node",581201198),z$=new $APP.E(null,"key-path","key-path",878473308),dGa=new $APP.E(null,"requested-values","requested-values",3116167),cGa=new $APP.E(null,"dispatch!","dispatch!",
|
|
36
|
+
-1927281664);var GFa=Symbol["for"]("x-render-hold"),u$=function u$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return u$.o(arguments[0],1<c.length?new $APP.Wb(c.slice(1),0,null):null)};u$.o=function(a){return $APP.$a(a).cloneNode(!0)};u$.M=1;u$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var QFa=Symbol("baremirror.written-props"),EGa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.na(a))&&($APP.Jh(K$,Object.values(a)),Object.freeze(a));return a},qGa=Symbol("baremirror.split"),L$=Symbol("baremirror.value");J$.prototype.X=function(a,b){return new J$(this.store,b)};J$.prototype.U=function(){return this.Lc};J$.prototype.Ma=function(){return this.store.value};J$.prototype.oc=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.Qh(B$(a),$APP.kf),$APP.Qh(B$(b),$APP.kf));a=$APP.F(a);b=$APP.C(a,$APP.ek);var c=$APP.C(a,$APP.fk);return K$(D$({remove:I$(b),place:I$($APP.He.j(yGa,c))},L$,a))};export const syncPlaces=function(a,b,c){return H$($APP.yk($APP.Qh(B$(a),G$),$APP.Qh(B$(b),$APP.kf),c))};export const setText=function(a,b){return JFa(a,b)};export const readOrigin=function(a){return zGa(YFa(a))};export const setAttrs=function(a,b){b=B$(b);return q$(a,$APP.pe(r$,b))};
|
|
37
|
+
export const readPlaces=function(a){a=$APP.vk($APP.Qh(B$(a),G$));a=$APP.F(a);var b=$APP.C(a,$APP.uk),c=$APP.C(a,$APP.qk),d=$APP.C(a,$APP.rk);return Object.freeze(D$(xGa({containers:K$(H$($APP.Qh(b,wGa))),places:K$(H$($APP.Qh(c,I$)))},d),L$,a))};export const withOneRender=function(a,b){return q$(a,b)};
|
|
38
|
+
export const splitTemplate=function(a,b){var c=wFa(a,C$($APP.rd,b));return K$(D$({fixed:$APP.jn($APP.sq.i(c)),holes:$APP.jn($APP.Vs.i(c)),events:$APP.jn($APP.kf($APP.ps.i(c))),writes:function(d){return $APP.jn(o$(c,d))}},qGa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=C$($APP.rd,a);return s$(document,null,t$(a))};export const dispatcher=function(a,b,c,d){return ZFa(new J$(a,$APP.ge),b,c,d)};
|
|
39
|
+
export const nodeMaker=function(a){return LFa(C$($APP.rd,a))};export const sharedHoles=function(a,b){return $APP.jn(EFa(rGa("sharedHoles",a),$APP.Qh(B$(b),$APP.pe($APP.fi,sGa))))};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.Qh(B$(a.containers),G$),$APP.rk,B$(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.fi.j(tGa,b.place)],null);return H$($APP.xk(a,b,c))};
|
|
40
|
+
export const listen=function(a,b){var c=CGa(b.dispatch);var d=b.events;d=$APP.Lf.l($APP.ge,$APP.He.i(BGa),$APP.zc(d));b=new $APP.J(null,3,[cGa,c,$APP.ps,d,dGa,$APP.Qh(B$(b.requestedValues),B$)],null);b=$APP.F(b);c=$APP.C(b,$APP.ps);b=$APP.Lf.l($APP.Pe,$APP.dk.l($APP.He.i($APP.t),oFa(),$APP.dk.j($APP.He.i($APP.pe(hGa,b)),$APP.Ih)),$APP.Hg(c));$APP.Jh($APP.pe(iGa,a),b);return $APP.qe($APP.Jh,$APP.pe(jGa,a),b)};export const readParts=function(a){return $APP.jn(w$(a))};
|
|
41
|
+
export const writeParts=function(a,b){return y$(B$(a),$APP.Qh(B$(b),pGa))};
|
|
42
|
+
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.Ws,$APP.kf(b.attrs),$APP.ow,C$(DGa,b.template),$APP.gt,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.ow);b=$APP.C(c,$APP.Ws);c=$APP.C(c,$APP.gt);d=wFa(a,d);if(!$APP.Oc($APP.ps.i(d)))throw $APP.Ph("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.du,a],null));d=new $APP.J(null,3,[$APP.Ws,b,$APP.gt,c,$APP.Yv,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
|
|
43
|
+
VFa(b,$APP.pe(UFa,d))):null};export const writeItem=function(a,b,c){b=rGa("writeItem",b);var d=a[EGa];var e=$APP.B(d,0,null);d=$APP.B(d,1,null);e=(e=b===e)?E$.j?E$.j(c,d):E$.call(null,c,d):e;if(!$APP.m(e)){if(!($APP.Tc(b)&&$APP.ad(b,$APP.sq)&&$APP.ad(b,$APP.Vs)))throw $APP.Ph("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));y$(w$(a),o$(b,c));a[EGa]=new $APP.H(null,2,5,$APP.I,[b,c],null)}return null};
|