@vanelsas/baredom 4.5.0 → 4.7.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 +77 -0
- package/custom-elements.json +60 -4
- package/dist/all.d.ts +4 -0
- package/dist/all.js +222 -0
- package/dist/baredom.d.ts +1 -0
- package/dist/baremirror-alpha.js +27 -28
- package/dist/base.js +696 -673
- package/dist/integrity.json +113 -112
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +13 -14
- 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 -16
- 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 -35
- 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 +31 -31
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +47 -47
- 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 +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +25 -25
- package/dist/x-date-picker.js +45 -45
- 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 +26 -26
- package/dist/x-floating-panel.js +23 -23
- package/dist/x-form-field.js +18 -18
- 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 +16 -16
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +39 -39
- package/dist/x-liquid-glass.js +32 -32
- 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 +41 -41
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +29 -29
- 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 +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +18 -16
- package/dist/x-particle-button.js +55 -54
- 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 +14 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +23 -23
- 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 -32
- package/dist/x-scroll-timeline.js +50 -46
- 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 -13
- 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 +4 -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 -9
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +14 -14
- package/dist/x-tabs.js +12 -11
- 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 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +14 -13
- package/dist/x-trace-history.d.ts +5 -0
- package/dist/x-trace-history.js +116 -116
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +64 -62
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.7.0] - 2026-10-17
|
|
6
|
+
|
|
7
|
+
BareDOM 4.7 lets a child's own attribute win over its group's, and keeps every skeleton in phase
|
|
8
|
+
on its own. The adapters are not released again.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **An avatar's own `size` wins over the `size` of its `x-avatar-group`,** and an avatar is
|
|
13
|
+
disabled when it or the group is. The group no longer writes `size` and `disabled` on its
|
|
14
|
+
avatars. It writes `data-group-size` and `data-group-disabled`, which are not public API.
|
|
15
|
+
- **A skeleton's own `animation` wins over the `animation` of its `x-skeleton-group`.** The
|
|
16
|
+
group no longer writes `animation` on its skeletons. It writes `data-group-animation`, which
|
|
17
|
+
is not public API.
|
|
18
|
+
- **`x-tabs` takes its first selection from a tab marked `selected`** when it has no `value`.
|
|
19
|
+
Before, the mark was removed and the first enabled tab was selected. An enabled tab with no
|
|
20
|
+
`value` is skipped.
|
|
21
|
+
- **Every `x-skeleton` on a page pulses in phase,** also outside a group. A skeleton aligns its
|
|
22
|
+
animation to a clock of the page when it connects and when its animation changes.
|
|
23
|
+
- **`--x-skeleton-delay` is no longer a custom property of `x-skeleton`.** It was not
|
|
24
|
+
documented, and a value set on the host no longer takes effect.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **A skeleton that is removed and inserted again stays in phase,** and so do the skeletons of a
|
|
29
|
+
group that is moved.
|
|
30
|
+
- **The `x-carousel` doc states that `current` keeps its value** when there are fewer slides.
|
|
31
|
+
The last slide is shown.
|
|
32
|
+
|
|
33
|
+
## [4.6.0] - 2026-10-17
|
|
34
|
+
|
|
35
|
+
BareDOM 4.6 keeps the state of a moved component, lets one BareMirror sync bring a whole tree,
|
|
36
|
+
and makes a parent do only what a change of its children requires. The adapters are not
|
|
37
|
+
released again.
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- **`@vanelsas/baredom/all`** registers every component with one `init()`.
|
|
42
|
+
- **A moved component keeps its state.** Every component has `connectedMoveCallback`. A move
|
|
43
|
+
with `moveBefore` calls neither `connected-fn` nor `disconnected-fn`, and calls the optional
|
|
44
|
+
`:moved-fn`. Seven components give one: `x-i18n` shows the text of its new provider, `x-radio`
|
|
45
|
+
syncs the tab order of its new group, `x-liquid-fill` finds its scroll target again, and
|
|
46
|
+
`x-table-row`, `x-table-cell`, `x-timeline-item` and `x-welcome-tour-step` still reach their
|
|
47
|
+
parent.
|
|
48
|
+
- **One `sync!` brings a whole tree.** A container can name its parent by a key and a part, or
|
|
49
|
+
name a part alone for the node of every key. A node that moves to another branch keeps its
|
|
50
|
+
node and its focus. `bare-html/tree.html` shows it. See [`docs/baremirror.md`](docs/baremirror.md).
|
|
51
|
+
- **`foreignWrites` in `custom-elements.json`** names the attributes a component writes on
|
|
52
|
+
nodes it does not own, such as its children. Fourteen components state it, and each doc has a
|
|
53
|
+
section "Writes on other nodes".
|
|
54
|
+
|
|
55
|
+
### Changed
|
|
56
|
+
|
|
57
|
+
- **`perform!` places nodes before it removes others,** and places a container after the
|
|
58
|
+
containers that hold it. It refuses a key placed inside its own node.
|
|
59
|
+
- **`x-table` and `x-timeline` follow their children through `slotchange`.** The stripes and the
|
|
60
|
+
`data-*` attributes of timeline items are written in the microtask after a change, not during
|
|
61
|
+
it. This is before paint. The rows, cells and items still send their events.
|
|
62
|
+
- **`x-tabs` no longer writes `tabindex` on its tabs.** Each `x-tab` sets its own.
|
|
63
|
+
- **`docs/PRERENDER.md` and `docs/baremirror.md` state Firefox 157 and Safari 26.5.** Safari
|
|
64
|
+
has no `moveBefore`, so a moved row loses its focus there.
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- **A choice in `x-select` survives a new or changed option.** It was reset to the marked option.
|
|
69
|
+
- **The `x-carousel` autoplay keeps running** when a slide is added or removed.
|
|
70
|
+
- **`x-scroll-story` and `x-scroll-timeline` no longer fire enter again on a resize,** and an
|
|
71
|
+
entry that only moved fires no change event.
|
|
72
|
+
- **`x-welcome-tour` keeps the text typed in the open step** when its steps change.
|
|
73
|
+
- **A striped `x-table` restripes after a row is removed.** The rows below it kept their old
|
|
74
|
+
stripes.
|
|
75
|
+
- **Fifty items appended to an `x-timeline` cost 50 writes, not 1275,** and a nested timeline
|
|
76
|
+
keeps its own items.
|
|
77
|
+
- **Four components work again after a remove and an insert:** `x-chart` and
|
|
78
|
+
`x-particle-button` follow a resize again, `x-kinetic-typography` draws its animation again,
|
|
79
|
+
and `x-i18n-provider` fetches again when a disconnect cut its fetch short. A removed open
|
|
80
|
+
`x-combobox` no longer leaks its document click listener.
|
|
81
|
+
|
|
5
82
|
## [4.5.0] - 2026-10-14
|
|
6
83
|
|
|
7
84
|
BareDOM 4.5 makes the prerender script open several pages at once. No component changes, and
|
package/custom-elements.json
CHANGED
|
@@ -537,6 +537,10 @@
|
|
|
537
537
|
"name" : "overflow"
|
|
538
538
|
}, {
|
|
539
539
|
"name" : "part"
|
|
540
|
+
} ],
|
|
541
|
+
"foreignWrites" : [ {
|
|
542
|
+
"target" : "any",
|
|
543
|
+
"attributes" : [ "data-group-disabled", "data-group-size" ]
|
|
540
544
|
} ]
|
|
541
545
|
} ],
|
|
542
546
|
"exports" : [ {
|
|
@@ -2408,6 +2412,10 @@
|
|
|
2408
2412
|
"name" : "track"
|
|
2409
2413
|
}, {
|
|
2410
2414
|
"name" : "viewport"
|
|
2415
|
+
} ],
|
|
2416
|
+
"foreignWrites" : [ {
|
|
2417
|
+
"target" : "any",
|
|
2418
|
+
"attributes" : [ "data-active" ]
|
|
2411
2419
|
} ]
|
|
2412
2420
|
} ],
|
|
2413
2421
|
"exports" : [ {
|
|
@@ -6792,6 +6800,10 @@
|
|
|
6792
6800
|
"name" : "part"
|
|
6793
6801
|
}, {
|
|
6794
6802
|
"name" : "zone"
|
|
6803
|
+
} ],
|
|
6804
|
+
"foreignWrites" : [ {
|
|
6805
|
+
"target" : "x-drag-panel",
|
|
6806
|
+
"attributes" : [ "pending" ]
|
|
6795
6807
|
} ]
|
|
6796
6808
|
} ],
|
|
6797
6809
|
"exports" : [ {
|
|
@@ -7920,6 +7932,10 @@
|
|
|
7920
7932
|
"name" : "part"
|
|
7921
7933
|
}, {
|
|
7922
7934
|
"name" : "root"
|
|
7935
|
+
} ],
|
|
7936
|
+
"foreignWrites" : [ {
|
|
7937
|
+
"target" : "any",
|
|
7938
|
+
"attributes" : [ "error" ]
|
|
7923
7939
|
} ]
|
|
7924
7940
|
} ],
|
|
7925
7941
|
"exports" : [ {
|
|
@@ -8697,7 +8713,11 @@
|
|
|
8697
8713
|
"name" : ""
|
|
8698
8714
|
} ],
|
|
8699
8715
|
"cssProperties" : [ ],
|
|
8700
|
-
"cssParts" : [ ]
|
|
8716
|
+
"cssParts" : [ ],
|
|
8717
|
+
"foreignWrites" : [ {
|
|
8718
|
+
"target" : "any",
|
|
8719
|
+
"attributes" : "any"
|
|
8720
|
+
} ]
|
|
8701
8721
|
} ],
|
|
8702
8722
|
"exports" : [ {
|
|
8703
8723
|
"kind" : "js",
|
|
@@ -14028,6 +14048,10 @@
|
|
|
14028
14048
|
} ],
|
|
14029
14049
|
"cssParts" : [ {
|
|
14030
14050
|
"name" : "track"
|
|
14051
|
+
} ],
|
|
14052
|
+
"foreignWrites" : [ {
|
|
14053
|
+
"target" : "any",
|
|
14054
|
+
"attributes" : [ "tabindex" ]
|
|
14031
14055
|
} ]
|
|
14032
14056
|
} ],
|
|
14033
14057
|
"exports" : [ {
|
|
@@ -14253,6 +14277,10 @@
|
|
|
14253
14277
|
"name" : "control"
|
|
14254
14278
|
}, {
|
|
14255
14279
|
"name" : "dot"
|
|
14280
|
+
} ],
|
|
14281
|
+
"foreignWrites" : [ {
|
|
14282
|
+
"target" : "x-radio",
|
|
14283
|
+
"attributes" : [ "checked" ]
|
|
14256
14284
|
} ]
|
|
14257
14285
|
} ],
|
|
14258
14286
|
"exports" : [ {
|
|
@@ -15841,6 +15869,10 @@
|
|
|
15841
15869
|
"name" : "media"
|
|
15842
15870
|
}, {
|
|
15843
15871
|
"name" : "steps"
|
|
15872
|
+
} ],
|
|
15873
|
+
"foreignWrites" : [ {
|
|
15874
|
+
"target" : "any",
|
|
15875
|
+
"attributes" : [ "data-active" ]
|
|
15844
15876
|
} ]
|
|
15845
15877
|
} ],
|
|
15846
15878
|
"exports" : [ {
|
|
@@ -16170,6 +16202,10 @@
|
|
|
16170
16202
|
"name" : "track-path"
|
|
16171
16203
|
}, {
|
|
16172
16204
|
"name" : "track-svg"
|
|
16205
|
+
} ],
|
|
16206
|
+
"foreignWrites" : [ {
|
|
16207
|
+
"target" : "any",
|
|
16208
|
+
"attributes" : [ "data-active", "data-index", "data-side" ]
|
|
16173
16209
|
} ]
|
|
16174
16210
|
} ],
|
|
16175
16211
|
"exports" : [ {
|
|
@@ -16935,9 +16971,6 @@
|
|
|
16935
16971
|
}, {
|
|
16936
16972
|
"name" : "--x-skeleton-color",
|
|
16937
16973
|
"default" : "var(--x-color-border,rgba(0,0,0,0.08))"
|
|
16938
|
-
}, {
|
|
16939
|
-
"name" : "--x-skeleton-delay",
|
|
16940
|
-
"default" : "0s"
|
|
16941
16974
|
}, {
|
|
16942
16975
|
"name" : "--x-skeleton-duration",
|
|
16943
16976
|
"default" : "1.5s"
|
|
@@ -17024,6 +17057,10 @@
|
|
|
17024
17057
|
"name" : "container"
|
|
17025
17058
|
}, {
|
|
17026
17059
|
"name" : "preset-container"
|
|
17060
|
+
} ],
|
|
17061
|
+
"foreignWrites" : [ {
|
|
17062
|
+
"target" : "x-skeleton",
|
|
17063
|
+
"attributes" : [ "data-group-animation" ]
|
|
17027
17064
|
} ]
|
|
17028
17065
|
} ],
|
|
17029
17066
|
"exports" : [ {
|
|
@@ -19095,6 +19132,10 @@
|
|
|
19095
19132
|
} ],
|
|
19096
19133
|
"cssParts" : [ {
|
|
19097
19134
|
"name" : "caption"
|
|
19135
|
+
} ],
|
|
19136
|
+
"foreignWrites" : [ {
|
|
19137
|
+
"target" : "x-table-row",
|
|
19138
|
+
"attributes" : [ "data-stripe", "selected" ]
|
|
19098
19139
|
} ]
|
|
19099
19140
|
} ],
|
|
19100
19141
|
"exports" : [ {
|
|
@@ -19984,6 +20025,13 @@
|
|
|
19984
20025
|
} ],
|
|
19985
20026
|
"cssParts" : [ {
|
|
19986
20027
|
"name" : "base"
|
|
20028
|
+
} ],
|
|
20029
|
+
"foreignWrites" : [ {
|
|
20030
|
+
"target" : "x-tab",
|
|
20031
|
+
"attributes" : [ "selected" ]
|
|
20032
|
+
}, {
|
|
20033
|
+
"target" : "any",
|
|
20034
|
+
"attributes" : [ "hidden" ]
|
|
19987
20035
|
} ]
|
|
19988
20036
|
} ],
|
|
19989
20037
|
"exports" : [ {
|
|
@@ -20762,6 +20810,10 @@
|
|
|
20762
20810
|
} ],
|
|
20763
20811
|
"cssParts" : [ {
|
|
20764
20812
|
"name" : "label"
|
|
20813
|
+
} ],
|
|
20814
|
+
"foreignWrites" : [ {
|
|
20815
|
+
"target" : "x-timeline-item",
|
|
20816
|
+
"attributes" : [ "data-index", "data-last", "data-position", "data-striped" ]
|
|
20765
20817
|
} ]
|
|
20766
20818
|
} ],
|
|
20767
20819
|
"exports" : [ {
|
|
@@ -21740,6 +21792,10 @@
|
|
|
21740
21792
|
"name" : "text"
|
|
21741
21793
|
}, {
|
|
21742
21794
|
"name" : "trigger"
|
|
21795
|
+
} ],
|
|
21796
|
+
"foreignWrites" : [ {
|
|
21797
|
+
"target" : "any",
|
|
21798
|
+
"attributes" : [ "aria-describedby" ]
|
|
21743
21799
|
} ]
|
|
21744
21800
|
} ],
|
|
21745
21801
|
"exports" : [ {
|
package/dist/all.d.ts
ADDED
package/dist/all.js
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// all.js: generated by generate_all.bb, do not edit.
|
|
2
|
+
// init() registers every component.
|
|
3
|
+
|
|
4
|
+
import { init as xAlert } from './x-alert.js';
|
|
5
|
+
import { init as xAvatar } from './x-avatar.js';
|
|
6
|
+
import { init as xAvatarGroup } from './x-avatar-group.js';
|
|
7
|
+
import { init as xBadge } from './x-badge.js';
|
|
8
|
+
import { init as xBentoGrid } from './x-bento-grid.js';
|
|
9
|
+
import { init as xBentoItem } from './x-bento-item.js';
|
|
10
|
+
import { init as xBreadcrumbs } from './x-breadcrumbs.js';
|
|
11
|
+
import { init as xButton } from './x-button.js';
|
|
12
|
+
import { init as xCalendar } from './x-calendar.js';
|
|
13
|
+
import { init as xCancelDialogue } from './x-cancel-dialogue.js';
|
|
14
|
+
import { init as xCard } from './x-card.js';
|
|
15
|
+
import { init as xCarousel } from './x-carousel.js';
|
|
16
|
+
import { init as xChart } from './x-chart.js';
|
|
17
|
+
import { init as xCheckbox } from './x-checkbox.js';
|
|
18
|
+
import { init as xChip } from './x-chip.js';
|
|
19
|
+
import { init as xCode } from './x-code.js';
|
|
20
|
+
import { init as xCollapse } from './x-collapse.js';
|
|
21
|
+
import { init as xColorPicker } from './x-color-picker.js';
|
|
22
|
+
import { init as xCombobox } from './x-combobox.js';
|
|
23
|
+
import { init as xCommandPalette } from './x-command-palette.js';
|
|
24
|
+
import { init as xConfetti } from './x-confetti.js';
|
|
25
|
+
import { init as xContainer } from './x-container.js';
|
|
26
|
+
import { init as xContextMenu } from './x-context-menu.js';
|
|
27
|
+
import { init as xCopy } from './x-copy.js';
|
|
28
|
+
import { init as xCurrencyField } from './x-currency-field.js';
|
|
29
|
+
import { init as xDatePicker } from './x-date-picker.js';
|
|
30
|
+
import { init as xDivider } from './x-divider.js';
|
|
31
|
+
import { init as xDragPanel } from './x-drag-panel.js';
|
|
32
|
+
import { init as xDrawer } from './x-drawer.js';
|
|
33
|
+
import { init as xDropZone } from './x-drop-zone.js';
|
|
34
|
+
import { init as xDropdown } from './x-dropdown.js';
|
|
35
|
+
import { init as xFieldset } from './x-fieldset.js';
|
|
36
|
+
import { init as xFileDownload } from './x-file-download.js';
|
|
37
|
+
import { init as xFileUpload } from './x-file-upload.js';
|
|
38
|
+
import { init as xFloatingPanel } from './x-floating-panel.js';
|
|
39
|
+
import { init as xForm } from './x-form.js';
|
|
40
|
+
import { init as xFormField } from './x-form-field.js';
|
|
41
|
+
import { init as xGaussianBlur } from './x-gaussian-blur.js';
|
|
42
|
+
import { init as xGrid } from './x-grid.js';
|
|
43
|
+
import { init as xI18n } from './x-i18n.js';
|
|
44
|
+
import { init as xI18nProvider } from './x-i18n-provider.js';
|
|
45
|
+
import { init as xIcon } from './x-icon.js';
|
|
46
|
+
import { init as xImage } from './x-image.js';
|
|
47
|
+
import { init as xKbd } from './x-kbd.js';
|
|
48
|
+
import { init as xKineticCanvas } from './x-kinetic-canvas.js';
|
|
49
|
+
import { init as xKineticFont } from './x-kinetic-font.js';
|
|
50
|
+
import { init as xKineticTypography } from './x-kinetic-typography.js';
|
|
51
|
+
import { init as xLiquidDock } from './x-liquid-dock.js';
|
|
52
|
+
import { init as xLiquidFill } from './x-liquid-fill.js';
|
|
53
|
+
import { init as xLiquidGlass } from './x-liquid-glass.js';
|
|
54
|
+
import { init as xMenu } from './x-menu.js';
|
|
55
|
+
import { init as xMenuItem } from './x-menu-item.js';
|
|
56
|
+
import { init as xMetaballCursor } from './x-metaball-cursor.js';
|
|
57
|
+
import { init as xModal } from './x-modal.js';
|
|
58
|
+
import { init as xMorphStack } from './x-morph-stack.js';
|
|
59
|
+
import { init as xMultiCombobox } from './x-multi-combobox.js';
|
|
60
|
+
import { init as xNavbar } from './x-navbar.js';
|
|
61
|
+
import { init as xNeuralGlow } from './x-neural-glow.js';
|
|
62
|
+
import { init as xNotificationCenter } from './x-notification-center.js';
|
|
63
|
+
import { init as xOrganicDivider } from './x-organic-divider.js';
|
|
64
|
+
import { init as xOrganicProgress } from './x-organic-progress.js';
|
|
65
|
+
import { init as xOrganicShape } from './x-organic-shape.js';
|
|
66
|
+
import { init as xOtpInput } from './x-otp-input.js';
|
|
67
|
+
import { init as xPagination } from './x-pagination.js';
|
|
68
|
+
import { init as xParticleButton } from './x-particle-button.js';
|
|
69
|
+
import { init as xPopover } from './x-popover.js';
|
|
70
|
+
import { init as xProgress } from './x-progress.js';
|
|
71
|
+
import { init as xProgressCircle } from './x-progress-circle.js';
|
|
72
|
+
import { init as xProximityList } from './x-proximity-list.js';
|
|
73
|
+
import { init as xRadio } from './x-radio.js';
|
|
74
|
+
import { init as xRating } from './x-rating.js';
|
|
75
|
+
import { init as xRangeSlider } from './x-range-slider.js';
|
|
76
|
+
import { init as xRippleEffect } from './x-ripple-effect.js';
|
|
77
|
+
import { init as xScroll } from './x-scroll.js';
|
|
78
|
+
import { init as xScrollParallax } from './x-scroll-parallax.js';
|
|
79
|
+
import { init as xScrollStack } from './x-scroll-stack.js';
|
|
80
|
+
import { init as xScrollStory } from './x-scroll-story.js';
|
|
81
|
+
import { init as xScrollTimeline } from './x-scroll-timeline.js';
|
|
82
|
+
import { init as xSearchField } from './x-search-field.js';
|
|
83
|
+
import { init as xSelect } from './x-select.js';
|
|
84
|
+
import { init as xSidebar } from './x-sidebar.js';
|
|
85
|
+
import { init as xSkeleton } from './x-skeleton.js';
|
|
86
|
+
import { init as xSkeletonGroup } from './x-skeleton-group.js';
|
|
87
|
+
import { init as xSlider } from './x-slider.js';
|
|
88
|
+
import { init as xSoftBody } from './x-soft-body.js';
|
|
89
|
+
import { init as xSpacer } from './x-spacer.js';
|
|
90
|
+
import { init as xSpinner } from './x-spinner.js';
|
|
91
|
+
import { init as xSplash } from './x-splash.js';
|
|
92
|
+
import { init as xSplitPane } from './x-split-pane.js';
|
|
93
|
+
import { init as xSpotlightCard } from './x-spotlight-card.js';
|
|
94
|
+
import { init as xStat } from './x-stat.js';
|
|
95
|
+
import { init as xStepper } from './x-stepper.js';
|
|
96
|
+
import { init as xSwitch } from './x-switch.js';
|
|
97
|
+
import { init as xTab } from './x-tab.js';
|
|
98
|
+
import { init as xTable } from './x-table.js';
|
|
99
|
+
import { init as xTableCell } from './x-table-cell.js';
|
|
100
|
+
import { init as xTableRow } from './x-table-row.js';
|
|
101
|
+
import { init as xTabs } from './x-tabs.js';
|
|
102
|
+
import { init as xTextArea } from './x-text-area.js';
|
|
103
|
+
import { init as xTheme } from './x-theme.js';
|
|
104
|
+
import { init as xTimeline } from './x-timeline.js';
|
|
105
|
+
import { init as xTimelineItem } from './x-timeline-item.js';
|
|
106
|
+
import { init as xToast } from './x-toast.js';
|
|
107
|
+
import { init as xToaster } from './x-toaster.js';
|
|
108
|
+
import { init as xTooltip } from './x-tooltip.js';
|
|
109
|
+
import { init as xTraceHistory } from './x-trace-history.js';
|
|
110
|
+
import { init as xTypography } from './x-typography.js';
|
|
111
|
+
import { init as xWelcomeTour } from './x-welcome-tour.js';
|
|
112
|
+
|
|
113
|
+
export function init() {
|
|
114
|
+
xAlert();
|
|
115
|
+
xAvatar();
|
|
116
|
+
xAvatarGroup();
|
|
117
|
+
xBadge();
|
|
118
|
+
xBentoGrid();
|
|
119
|
+
xBentoItem();
|
|
120
|
+
xBreadcrumbs();
|
|
121
|
+
xButton();
|
|
122
|
+
xCalendar();
|
|
123
|
+
xCancelDialogue();
|
|
124
|
+
xCard();
|
|
125
|
+
xCarousel();
|
|
126
|
+
xChart();
|
|
127
|
+
xCheckbox();
|
|
128
|
+
xChip();
|
|
129
|
+
xCode();
|
|
130
|
+
xCollapse();
|
|
131
|
+
xColorPicker();
|
|
132
|
+
xCombobox();
|
|
133
|
+
xCommandPalette();
|
|
134
|
+
xConfetti();
|
|
135
|
+
xContainer();
|
|
136
|
+
xContextMenu();
|
|
137
|
+
xCopy();
|
|
138
|
+
xCurrencyField();
|
|
139
|
+
xDatePicker();
|
|
140
|
+
xDivider();
|
|
141
|
+
xDragPanel();
|
|
142
|
+
xDrawer();
|
|
143
|
+
xDropZone();
|
|
144
|
+
xDropdown();
|
|
145
|
+
xFieldset();
|
|
146
|
+
xFileDownload();
|
|
147
|
+
xFileUpload();
|
|
148
|
+
xFloatingPanel();
|
|
149
|
+
xForm();
|
|
150
|
+
xFormField();
|
|
151
|
+
xGaussianBlur();
|
|
152
|
+
xGrid();
|
|
153
|
+
xI18n();
|
|
154
|
+
xI18nProvider();
|
|
155
|
+
xIcon();
|
|
156
|
+
xImage();
|
|
157
|
+
xKbd();
|
|
158
|
+
xKineticCanvas();
|
|
159
|
+
xKineticFont();
|
|
160
|
+
xKineticTypography();
|
|
161
|
+
xLiquidDock();
|
|
162
|
+
xLiquidFill();
|
|
163
|
+
xLiquidGlass();
|
|
164
|
+
xMenu();
|
|
165
|
+
xMenuItem();
|
|
166
|
+
xMetaballCursor();
|
|
167
|
+
xModal();
|
|
168
|
+
xMorphStack();
|
|
169
|
+
xMultiCombobox();
|
|
170
|
+
xNavbar();
|
|
171
|
+
xNeuralGlow();
|
|
172
|
+
xNotificationCenter();
|
|
173
|
+
xOrganicDivider();
|
|
174
|
+
xOrganicProgress();
|
|
175
|
+
xOrganicShape();
|
|
176
|
+
xOtpInput();
|
|
177
|
+
xPagination();
|
|
178
|
+
xParticleButton();
|
|
179
|
+
xPopover();
|
|
180
|
+
xProgress();
|
|
181
|
+
xProgressCircle();
|
|
182
|
+
xProximityList();
|
|
183
|
+
xRadio();
|
|
184
|
+
xRating();
|
|
185
|
+
xRangeSlider();
|
|
186
|
+
xRippleEffect();
|
|
187
|
+
xScroll();
|
|
188
|
+
xScrollParallax();
|
|
189
|
+
xScrollStack();
|
|
190
|
+
xScrollStory();
|
|
191
|
+
xScrollTimeline();
|
|
192
|
+
xSearchField();
|
|
193
|
+
xSelect();
|
|
194
|
+
xSidebar();
|
|
195
|
+
xSkeleton();
|
|
196
|
+
xSkeletonGroup();
|
|
197
|
+
xSlider();
|
|
198
|
+
xSoftBody();
|
|
199
|
+
xSpacer();
|
|
200
|
+
xSpinner();
|
|
201
|
+
xSplash();
|
|
202
|
+
xSplitPane();
|
|
203
|
+
xSpotlightCard();
|
|
204
|
+
xStat();
|
|
205
|
+
xStepper();
|
|
206
|
+
xSwitch();
|
|
207
|
+
xTab();
|
|
208
|
+
xTable();
|
|
209
|
+
xTableCell();
|
|
210
|
+
xTableRow();
|
|
211
|
+
xTabs();
|
|
212
|
+
xTextArea();
|
|
213
|
+
xTheme();
|
|
214
|
+
xTimeline();
|
|
215
|
+
xTimelineItem();
|
|
216
|
+
xToast();
|
|
217
|
+
xToaster();
|
|
218
|
+
xTooltip();
|
|
219
|
+
xTraceHistory();
|
|
220
|
+
xTypography();
|
|
221
|
+
xWelcomeTour();
|
|
222
|
+
}
|
package/dist/baredom.d.ts
CHANGED
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
|
|
7
|
-
$APP.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
b
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const writeItem=function(a,b,c){var d=b==null?null:b[g$];if(d==null)throw r9("writeItem: not a split template.",new $APP.K(null,1,[c$,b],null));if(!($APP.bd(d)&&$APP.jd(d,C9)&&$APP.jd(d,z9)))throw r9("write-item!: not a split template.",new $APP.K(null,1,[c$,d],null));var e=a[e$];b=$APP.B(e,0,null);e=$APP.B(e,1,null);b=(b=d===b)?X9.j?X9.j(c,e):X9.call(null,c,e):b;$APP.m(b)||(M9(L9(a),F9(d,c)),a[e$]=new $APP.H(null,2,5,$APP.J,[d,c],null));return null};
|
|
2
|
+
var hDa=function(a,b){return new $APP.Ed(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)},a$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Tc($APP.t(b))?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)},b$=function(a){return a instanceof $APP.F||$APP.Jc(a)},iDa=function(a){return typeof a==="string"||
|
|
3
|
+
typeof a==="number"||a===!0||a===!1||a==null},c$=function(a){return $APP.Wc(a)||typeof a==="string"||typeof a==="number"},jDa=function(a){return $APP.ke(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("data-x-part",$APP.Rg(c))?b:null},a)},kDa=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)},d$=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,$APP.Uq);var e=$APP.G(d);d=$APP.C(e,$APP.ir);e=$APP.C(e,
|
|
4
|
+
$APP.Fm);var f=$APP.q(d);$APP.m(f?f:e)?(f=new $APP.K(null,1,[$APP.Nj,b],null),d=$APP.q(d)?$APP.Eg.l(f,$APP.vs,d):f,d=$APP.m(e)?$APP.Eg.l(d,$APP.Fm,e):d):d=null;a=$APP.Rh.O(a,$APP.Mr,$APP.Hf,$APP.De.i($APP.oe(kDa,b)),c);return $APP.m(d)?$APP.Rh.J(a,$APP.us,$APP.zd,d):a},lDa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Wc(c)?(c=e$.l?e$.l(a,b,c):e$.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.zd.j(d,a),c],null)):new $APP.H(null,2,5,
|
|
5
|
+
$APP.I,[$APP.zd.j(d,c),b],null)},e$=function(a,b,c){var d=a$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.bk.j(e,$APP.Uq);if($APP.p($APP.ke(b$,f)))d=null;else{if($APP.u(f))throw $APP.Ch("A text hole must be the only child of its element.",new $APP.K(null,1,[$APP.Dt,c],null));d=$APP.t(f)}e=$APP.Uq.i(e);var k=$APP.Hf.l($APP.fe,$APP.Ke($APP.Aj.j(b$,$APP.ef)),g);g=$APP.Hf.l($APP.fe,$APP.Ie($APP.Aj.j(b$,$APP.ef)),g);if($APP.m(d))f=null;else if(!$APP.je(c$,f))throw $APP.Ch("A child of a template is a template, text, a number or one hole.",
|
|
6
|
+
new $APP.K(null,1,[$APP.Dt,c],null));d=new $APP.K(null,6,[$APP.Dt,c,$APP.Uq,e,$APP.Rp,k,$APP.ir,g,$APP.Fm,d,$APP.ku,f],null);b=$APP.G(b);c=$APP.C(b,$APP.Vu);d=$APP.G(d);f=$APP.C(d,$APP.Rp);f=jDa(f);k=$APP.G(d);g=$APP.C(k,$APP.Uq);e=$APP.C(k,$APP.ir);k=$APP.C(k,$APP.Fm);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,d$(b,f,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.Jo(d,new $APP.H(null,2,5,$APP.I,[$APP.Rp,$APP.oh.i("data-x-part")],
|
|
7
|
+
null),c),d$($APP.Rh.l(b,$APP.Vu,$APP.ic),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);f=$APP.G(b);c=$APP.C(f,$APP.Dt);b=$APP.C(f,$APP.Rp);f=$APP.C(f,$APP.ku);d=$APP.B(d,1,null);d=$APP.xa($APP.oe(lDa,a),new $APP.H(null,2,5,$APP.I,[$APP.Me,d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.I;e=$APP.Hf.j;c=new $APP.H(null,1,5,$APP.I,[c],null);b=$APP.q(b)?$APP.zd.j(c,b):c;return new $APP.H(null,2,5,f,[e.call($APP.Hf,b,a),d],null)},f$=function(a,b){b=e$($APP.Rg(a),new $APP.K(null,
|
|
8
|
+
3,[$APP.Vu,0,$APP.us,$APP.Me,$APP.Mr,$APP.fe],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[$APP.Rp,a,$APP.us,$APP.us.i(b),$APP.Mr,$APP.Mr.i(b)],null)},g$=function(a,b){return b.i?b.i(a):b.call(null,a)},mDa=function(a,b){var c=$APP.G(b);b=$APP.C(c,$APP.Nj);var d=$APP.C(c,$APP.vs),e=$APP.C(c,$APP.Fm);c=$APP.I;d=$APP.m(d)?$APP.Eg.l($APP.fe,$APP.vs,$APP.Dh(d,$APP.oe(g$,a))):$APP.fe;a=$APP.m(e)?$APP.Eg.l(d,$APP.Fm,g$(a,e)):d;return new $APP.H(null,2,5,c,[b,a],null)},h$=function(a,
|
|
9
|
+
b){return $APP.Hf.l($APP.fe,$APP.De.i($APP.oe(mDa,b)),$APP.us.i(a))},i$=function(a,b){var c=a[nDa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.oe(b,a));return null},oDa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.Rg(c);b=b===!0?"":b===!1||b==null?null:b instanceof $APP.F?$APP.Rg(b):""+$APP.N.i(b);return $APP.M.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},j$=function(a,b){return $APP.wh($APP.oe(oDa,b),a)},k$=function(a,b){b=""+$APP.N.i(b);var c=
|
|
10
|
+
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.M.j(b,c.data)&&(c.data=b);return null},pDa=function(a,b,c){return b.append($APP.Wc(c)?l$.j?l$.j(a,c):l$.call(null,a,c):""+$APP.N.i(c))},l$=function(a,b){var c=a$(b);$APP.B(c,0,null);var d=$APP.B(c,1,null);c=$APP.B(c,2,null);if(!$APP.bd(d,$APP.Uq)&&$APP.je(iDa,$APP.Bg(d))&&$APP.je(c$,c))c=a$(b);else throw $APP.Ch("A node is made from a fixed template. split takes holes and :on out of one.",
|
|
11
|
+
new $APP.K(null,1,[$APP.Dt,$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.Rg(d));i$(d,$APP.oe(j$,b));$APP.wh($APP.pe(pDa,a,d),c);return d},m$=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},n$=function(a){return $APP.Hf.l($APP.fe,$APP.ue(m$),$APP.Cd(a,$APP.Ac(a.querySelectorAll(qDa))))},rDa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.G(b);var d=$APP.C(b,$APP.vs);a=a.i?
|
|
12
|
+
a.i(c):a.call(null,c);$APP.bd(b,$APP.Fm)&&k$(a,$APP.Fm.i(b));return $APP.m(d)?i$(a,$APP.oe(j$,d)):null},o$=function(a,b){var c=$APP.q($APP.Hf.l($APP.Me,$APP.Ke(a),$APP.zg(b)));if(c!=null)throw $APP.Ch("write-parts!: no node has these part names.",new $APP.K(null,1,[$APP.Qj,$APP.ff(c)],null));return $APP.wh($APP.oe(rDa,a),b)},sDa=function(a,b){return a.getAttribute(b)},tDa=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.vs);var d=$APP.C(c,$APP.Gs);c=$APP.C(c,$APP.wv);var e=$APP.Rp.i(c),f=b.shadowRoot;
|
|
13
|
+
$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.N.i(d),d=b.attachShadow({mode:"open"}),d.append(f,l$(document,e)));d=n$(d.lastElementChild);b=$APP.Hf.l($APP.fe,$APP.De.i($APP.ch($APP.oh,$APP.oe(sDa,b))),a);return o$(d,h$(c,b))},uDa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.za(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},
|
|
14
|
+
p$=function(a,b){a=$APP.me(a);a=new $APP.H(null,2,5,$APP.I,[$APP.Tg(a,b),hDa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Fe.j(b,$APP.Be(1,a))},vDa=function(a){return a instanceof Element},s$=function(a){a=$APP.Je(vDa,p$($APP.oe($APP.la,a.currentTarget),$APP.Bc(a.composedPath())));var b=$APP.ke(m$,p$($APP.Lj,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[q$,$APP.Hf.l($APP.Me,$APP.ue($APP.Aj.j($APP.t,$APP.Lj)),$APP.Ad(a)),$APP.Nj,c,r$,b],null)},wDa=function(a,
|
|
15
|
+
b,c,d){return function(e){e=$APP.Io.l(a,b,e);a:for(;;){var f=$APP.ab(a),g=c.i?c.i(f):c.call(null,f);d.i?d.i(g):d.call(null,g);if(f===$APP.ab(a))break a}return e}},t$=function(a,b){return a.getAttribute(b)},xDa=function(a){return $APP.Nc(q$.i(a))},yDa=function(a,b){var c=$APP.G(a);a=$APP.C(c,u$);var d=$APP.C(c,$APP.Mr),e=$APP.C(c,$APP.Ks);c=s$(b);var f=$APP.G(c),g=$APP.C(f,$APP.Nj);c=$APP.C(f,r$);d=$APP.C(d,new $APP.H(null,2,5,$APP.I,[b.type,g],null));if(d==null)return null;g=$APP.Wc(d)?d:new $APP.H(null,
|
|
16
|
+
2,5,$APP.I,[d,xDa],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.zd.j(d,f):d;e=$APP.C(e,b.type);e==null?b=a.i?a.i(f):a.call(null,f):(d=$APP.Sh.j($APP.oe(t$,c),e),a.i?a.i(f):a.call(null,f),b=$APP.z.j(d,$APP.Sh.j($APP.oe(t$,c),e))?b.preventDefault():null);return b},zDa=function(a,b,c){return a.addEventListener(c,$APP.oe(yDa,b))},ADa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},v$=function(a){return a!=
|
|
17
|
+
null?$APP.Hf.l($APP.fe,$APP.De.i($APP.oe(ADa,a)),$APP.fa(a)):$APP.fe},w$=function(a){return $APP.m($APP.ma(a))?$APP.ff(a):a},BDa=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.Uq,$APP.Dh(v$(b),w$)],null):$APP.Jc(b)?new $APP.H(null,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)},CDa=function(a,b){return $APP.m($APP.ma(b))?x$.j?x$.j(a,b):x$.call(null,a,b):$APP.Jc(b)?a.i?a.i(b):a.call(null,b):b},
|
|
18
|
+
x$=function(a,b){b=$APP.q($APP.Ac(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.pa($APP.t(b))?$APP.t(b):null,e=$APP.Hf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.zd.j(c,$APP.Hf.l($APP.fe,$APP.De.i($APP.oe(BDa,a)),v$(d))):c;return e.call($APP.Hf,c,$APP.De.i($APP.oe(CDa,a)),$APP.m(d)?$APP.ac(b):b)},y$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},DDa=function(a){var b=$APP.m("text"in a)?$APP.Eg.l($APP.fe,$APP.Fm,a.text):$APP.fe;return a.attrs!=null?$APP.Eg.l(b,$APP.vs,v$(a.attrs)):
|
|
19
|
+
b},z$=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;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},A$=function(a){return new $APP.K(null,4,[$APP.Mj,
|
|
20
|
+
a.parent,$APP.Fj,a.before,$APP.Uh,a.key,$APP.Nj,a.part],null)},EDa=function(a){return new $APP.K(null,3,[$APP.Uh,a.key,$APP.Ej,a.in,$APP.Fj,a.before],null)},FDa=function(a,b,c){a[b]=c;return a},B$=function(a){return $APP.pd(FDa,{},a)},GDa=function(a,b){a.push(b);return a},C$=function(a){return $APP.xa(GDa,[],a)},HDa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Uh);var c=$APP.C(b,$APP.Mj),d=$APP.C(b,$APP.Fj);b=$APP.C(b,$APP.Nj);return{parent:c,before:d,key:a,part:b}},IDa=function(a){var b=$APP.G(a);
|
|
21
|
+
a=$APP.C(b,$APP.Uh);var c=$APP.C(b,$APP.Ej);b=$APP.C(b,$APP.Fj);return{key:a,"in":c,before:b}},D$=function(a){var b=$APP.G(a);a=$APP.C(b,q$);var c=$APP.C(b,$APP.Nj);b=$APP.C(b,r$);return{keyPath:$APP.Jm(a),part:c,node:b}},JDa=function(a){return function(b,c){b=D$(b);return a.j?a.j(b,c):a.call(null,b,c)}},KDa=function(a){var b=$APP.I,c=$APP.ff(a[0]);a=w$(a[1]);a=$APP.Wc(a)?$APP.Rh.l(a,1,JDa):a;return new $APP.H(null,2,5,b,[c,a],null)},LDa=function(a){return function(b){b=$APP.Jm(b);return a.i?a.i(b):
|
|
22
|
+
a.call(null,b)}},E$=function(a,b){this.store=a;this.Kc=b;this.B=425984;this.K=65536},MDa=function(a){return function(b){b=$APP.Jm(b);return a.i?a.i(b):a.call(null,b)}},F$=new $APP.F(null,"given","given",716253602),r$=new $APP.F(null,"node","node",581201198),q$=new $APP.F(null,"key-path","key-path",878473308),u$=new $APP.F(null,"dispatch!","dispatch!",-1927281664);var nDa=Symbol["for"]("x-render-hold"),G$=function G$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return G$.o(arguments[0],1<c.length?new $APP.Xb(c.slice(1),0,null):null)};G$.o=function(a){return a.cloneNode(!0)};G$.M=1;G$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var qDa="["+$APP.N.i("data-x-part")+"]:not(:scope ["+$APP.N.i("data-x-key")+"], :scope ["+$APP.N.i("data-x-key")+"] *)",H$=Symbol("baremirror.last-written");var I$=function I$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.pa(a))&&($APP.wh(I$,Object.values(a)),Object.freeze(a));return a},J$=Symbol("baremirror.split"),K$=Symbol("baremirror.value");E$.prototype.Y=function(a,b){return new E$(this.store,b)};E$.prototype.W=function(){return this.Kc};E$.prototype.tb=function(){return this.store.value};E$.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.Kj($APP.Dh(v$(a),$APP.ff),$APP.Dh(v$(b),$APP.ff));a=$APP.G(a);b=$APP.C(a,$APP.Ij);var c=$APP.C(a,$APP.Jj);return I$(y$({remove:C$(b),place:C$($APP.De.j(IDa,c))},K$,a))};export const syncPlaces=function(a,b,c){return B$($APP.dk($APP.Dh(v$(a),A$),$APP.Dh(v$(b),$APP.ff),c))};export const setText=function(a,b){return k$(a,b)};export const readOrigin=function(a){return D$(s$(a))};export const setAttrs=function(a,b){b=v$(b);return i$(a,$APP.oe(j$,b))};
|
|
23
|
+
export const readPlaces=function(a){a=$APP.ak($APP.Dh(v$(a),A$));a=$APP.G(a);var b=$APP.C(a,$APP.Xj),c=$APP.C(a,$APP.Yj),d=$APP.C(a,$APP.Zj);return I$(y$({containers:B$($APP.Dh(b,HDa)),places:B$($APP.Dh(c,C$)),nodes:B$(d)},K$,a))};export const withOneRender=function(a,b){return i$(a,b)};
|
|
24
|
+
export const splitTemplate=function(a,b){var c=f$(a,x$($APP.qd,b));return I$(y$({fixed:$APP.Jm($APP.Rp.i(c)),holes:$APP.Jm($APP.us.i(c)),events:$APP.Jm($APP.ff($APP.Mr.i(c))),writes:function(d){return $APP.Jm(h$(c,d))}},J$,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=x$($APP.qd,a);return l$(document,a)};export const dispatcher=function(a,b,c,d){return wDa(new E$(a,$APP.fe),b,c,d)};
|
|
25
|
+
export const nodeMaker=function(a){a=x$($APP.qd,a);return $APP.oe(G$,l$(document.createElement("template").content.ownerDocument,a))};export const perform=function(a,b,c){var d=a==null?null:a[K$];a=$APP.m(d)?d:new $APP.K(null,2,[$APP.Xj,$APP.Dh(v$(a.containers),A$),$APP.Zj,v$(a.nodes)],null);d=b==null?null:b[K$];b=$APP.m(d)?d:new $APP.K(null,2,[$APP.Ij,$APP.ff(b.remove),$APP.Jj,$APP.Sh.j(EDa,b.place)],null);return B$($APP.ck(a,b,c))};
|
|
26
|
+
export const listen=function(a,b){var c=LDa(b.dispatch);var d=b.events;d=$APP.Hf.l($APP.fe,$APP.De.i(KDa),$APP.Ac(d));b=new $APP.K(null,3,[u$,c,$APP.Mr,d,$APP.Ks,$APP.Dh(v$(b.requests),$APP.ff)],null);b=$APP.G(b);c=$APP.C(b,$APP.Mr);return $APP.wh($APP.pe(zDa,a,b),$APP.Hf.l($APP.Kg,$APP.De.i($APP.t),$APP.zg(c)))};export const readParts=function(a){return $APP.Jm(n$(a))};export const writeParts=function(a,b){return o$(v$(a),$APP.Dh(v$(b),DDa))};
|
|
27
|
+
export const defineElement=function(a,b){b=new $APP.K(null,3,[$APP.vs,$APP.ff(b.attrs),$APP.Mv,x$(MDa,b.template),$APP.Gs,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.Mv);b=$APP.C(c,$APP.vs);c=$APP.C(c,$APP.Gs);d=f$(a,d);if(!$APP.Pc($APP.Mr.i(d)))throw $APP.Ch("define-element!: the template of an element takes no :on entry.",new $APP.K(null,1,[$APP.Dt,a],null));d=new $APP.K(null,3,[$APP.vs,b,$APP.Gs,c,$APP.wv,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,uDa(b,$APP.oe(tDa,
|
|
28
|
+
d)))};export const writeItem=function(a,b,c){var d=b==null?null:b[J$];if(d==null)throw $APP.Ch("writeItem: not a split template.",new $APP.K(null,1,[F$,b],null));if(!($APP.Tc(d)&&$APP.bd(d,$APP.Rp)&&$APP.bd(d,$APP.us)))throw $APP.Ch("write-item!: not a split template.",new $APP.K(null,1,[F$,d],null));var e=a[H$];b=$APP.B(e,0,null);e=$APP.B(e,1,null);b=(b=d===b)?z$.j?z$.j(c,e):z$.call(null,c,e):b;$APP.m(b)||(o$(n$(a),h$(d,c)),a[H$]=new $APP.H(null,2,5,$APP.I,[d,c],null));return null};
|