@vanelsas/baredom 4.17.0 → 4.19.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 +44 -0
- package/README.md +2 -2
- package/custom-elements.json +252 -0
- package/dist/all.js +2 -0
- package/dist/baredom.d.ts +1 -0
- package/dist/baremirror-alpha.js +40 -42
- package/dist/base.js +784 -776
- package/dist/integrity.json +118 -117
- 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 +1 -1
- 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 +41 -41
- 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 -47
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +30 -30
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +34 -34
- package/dist/x-command-palette.js +31 -31
- package/dist/x-comment.js +1 -1
- package/dist/x-comments.js +23 -23
- 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 +23 -23
- package/dist/x-date-picker.js +50 -47
- package/dist/x-divider.js +7 -7
- 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 +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +22 -22
- package/dist/x-form-field.js +1 -1
- 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 +24 -24
- package/dist/x-kinetic-font.js +24 -24
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +29 -29
- package/dist/x-liquid-fill.js +37 -37
- package/dist/x-liquid-glass.js +30 -30
- 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 +13 -13
- package/dist/x-morph-stack.js +35 -37
- package/dist/x-multi-combobox.js +40 -43
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +26 -26
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +32 -32
- 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 +47 -47
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +29 -29
- package/dist/x-rating.js +23 -23
- package/dist/x-ripple-effect.js +9 -9
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +33 -33
- package/dist/x-scroll-timeline.js +49 -49
- package/dist/x-scroll.js +35 -35
- 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 +17 -17
- 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 +12 -12
- 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 +7 -7
- 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 +1 -1
- package/dist/x-theme.js +28 -28
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +6 -6
- package/dist/x-toc.js +31 -34
- package/dist/x-tooltip.js +14 -14
- package/dist/x-trace-history.js +117 -117
- package/dist/x-tree.d.ts +47 -0
- package/dist/x-tree.js +44 -0
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +63 -63
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [4.19.0] - 2026-11-11
|
|
8
|
+
|
|
9
|
+
BareDOM 4.19 adds `x-tree`, a tree of hierarchical data. All five adapters follow it in a release
|
|
10
|
+
of their own: `-react` 3.7.0, `-angular` 3.7.0, `-vue` 0.13.0, `-svelte` 0.13.0 and `-solid`
|
|
11
|
+
0.13.0. They add `XTree`, type array props as arrays, and each needs `@vanelsas/baredom` 4.19.0 or
|
|
12
|
+
later.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **`x-tree` shows hierarchical data as a tree.** It takes its items, its open branches and its
|
|
17
|
+
selection as JSON arrays in `items`, `expanded` and `selected`, each with a property that reads
|
|
18
|
+
and writes an array. It selects in four modes, `none`, `single`, `leaf` and `multiple`, and in
|
|
19
|
+
`multiple` a check cascades through its branch. A branch can load its children when it opens,
|
|
20
|
+
indent guides are optional, and it follows the WAI-ARIA tree keyboard pattern.
|
|
21
|
+
- **`du/define-json-prop!`** installs a property that keeps a JS value as JSON in an attribute.
|
|
22
|
+
`x-tree` and `x-chart` use it.
|
|
23
|
+
|
|
24
|
+
## [4.18.0] - 2026-11-04
|
|
25
|
+
|
|
26
|
+
BareDOM 4.18 brings three changes to `x-date-picker`: a short date format, an SVG calendar icon,
|
|
27
|
+
and today taken from the local date, also in `x-calendar`. The adapters are not released with it.
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- **`x-date-picker` takes `format="short"`,** which shows each date with the short month of the
|
|
32
|
+
locale, for example `27 Jul 2026` for `en-GB`.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- **The `x-date-picker` trigger button shows an SVG calendar icon** in place of the 📅 emoji.
|
|
37
|
+
The emoji rendered as a colour picture on each platform (on macOS a page that shows "JUL 17")
|
|
38
|
+
and ignored the theme colours. The icon is drawn in `currentColor`, scales with
|
|
39
|
+
`--x-font-size-sm`, and is `aria-hidden`. The button label stays "Open calendar".
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **`x-date-picker` and `x-calendar` take today from the local date of the user,** not from the
|
|
44
|
+
UTC date. Before, late in the evening in a time zone behind UTC, today was tomorrow: the
|
|
45
|
+
calendar opened on the wrong day, and on the last day of a month on the next month. Early in
|
|
46
|
+
the morning in a time zone ahead of UTC, today was yesterday. This changes the default month,
|
|
47
|
+
the focused day and the `x-calendar` today marker. Stored ISO dates do not change.
|
|
48
|
+
|
|
5
49
|
## [4.17.0] - 2026-10-28
|
|
6
50
|
|
|
7
51
|
BareDOM 4.17 adds `x-comments` and `x-comment`, a comment thread with one form. All five adapters
|
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
|
|
|
117
117
|
|
|
118
118
|
## Components
|
|
119
119
|
|
|
120
|
-
**
|
|
120
|
+
**110 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
|
|
121
121
|
|
|
122
122
|
| Category | Count | Examples |
|
|
123
123
|
|----------|------:|----------|
|
|
@@ -125,7 +125,7 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
|
|
|
125
125
|
| **Feedback** | 11 | Alert · Toast · Spinner · Progress · Skeleton · Notification Center |
|
|
126
126
|
| **Navigation** | 9 | Navbar · Sidebar · Breadcrumbs · Tabs · Pagination · Menu · Table of Contents |
|
|
127
127
|
| **Layout** | 12 | Card · Grid · Bento Grid · Split Pane · Drag Panel · Drop Zone |
|
|
128
|
-
| **Data** |
|
|
128
|
+
| **Data** | 14 | Avatar · Table · Tree · Chart · Timeline · Calendar · Stat |
|
|
129
129
|
| **Overlay** | 10 | Modal · Drawer · Popover · Tooltip · Floating Panel · Command Palette |
|
|
130
130
|
| **Display** | 6 | Icon · Image · Typography · Code · Kbd · Spotlight Card |
|
|
131
131
|
| **Animation** | 6 | Kinetic Canvas · Kinetic Typography · Morph Stack · Soft Body · Splash |
|
package/custom-elements.json
CHANGED
|
@@ -22612,6 +22612,258 @@
|
|
|
22612
22612
|
"name" : "XTooltip"
|
|
22613
22613
|
}
|
|
22614
22614
|
} ]
|
|
22615
|
+
}, {
|
|
22616
|
+
"kind" : "javascript-module",
|
|
22617
|
+
"path" : "dist/x-tree.js",
|
|
22618
|
+
"declarations" : [ {
|
|
22619
|
+
"kind" : "class",
|
|
22620
|
+
"name" : "XTree",
|
|
22621
|
+
"tagName" : "x-tree",
|
|
22622
|
+
"superclass" : {
|
|
22623
|
+
"name" : "HTMLElement"
|
|
22624
|
+
},
|
|
22625
|
+
"members" : [ {
|
|
22626
|
+
"kind" : "field",
|
|
22627
|
+
"name" : "items",
|
|
22628
|
+
"type" : {
|
|
22629
|
+
"text" : "any"
|
|
22630
|
+
}
|
|
22631
|
+
}, {
|
|
22632
|
+
"kind" : "field",
|
|
22633
|
+
"name" : "expanded",
|
|
22634
|
+
"type" : {
|
|
22635
|
+
"text" : "any"
|
|
22636
|
+
}
|
|
22637
|
+
}, {
|
|
22638
|
+
"kind" : "field",
|
|
22639
|
+
"name" : "selected",
|
|
22640
|
+
"type" : {
|
|
22641
|
+
"text" : "any"
|
|
22642
|
+
}
|
|
22643
|
+
}, {
|
|
22644
|
+
"kind" : "field",
|
|
22645
|
+
"name" : "selection",
|
|
22646
|
+
"type" : {
|
|
22647
|
+
"text" : "string"
|
|
22648
|
+
}
|
|
22649
|
+
}, {
|
|
22650
|
+
"kind" : "field",
|
|
22651
|
+
"name" : "label",
|
|
22652
|
+
"type" : {
|
|
22653
|
+
"text" : "string"
|
|
22654
|
+
}
|
|
22655
|
+
}, {
|
|
22656
|
+
"kind" : "field",
|
|
22657
|
+
"name" : "loadingText",
|
|
22658
|
+
"type" : {
|
|
22659
|
+
"text" : "string"
|
|
22660
|
+
}
|
|
22661
|
+
}, {
|
|
22662
|
+
"kind" : "field",
|
|
22663
|
+
"name" : "guides",
|
|
22664
|
+
"type" : {
|
|
22665
|
+
"text" : "boolean"
|
|
22666
|
+
}
|
|
22667
|
+
} ],
|
|
22668
|
+
"attributes" : [ {
|
|
22669
|
+
"name" : "items",
|
|
22670
|
+
"fieldName" : "items",
|
|
22671
|
+
"type" : {
|
|
22672
|
+
"text" : "any"
|
|
22673
|
+
}
|
|
22674
|
+
}, {
|
|
22675
|
+
"name" : "expanded",
|
|
22676
|
+
"fieldName" : "expanded",
|
|
22677
|
+
"type" : {
|
|
22678
|
+
"text" : "any"
|
|
22679
|
+
}
|
|
22680
|
+
}, {
|
|
22681
|
+
"name" : "selected",
|
|
22682
|
+
"fieldName" : "selected",
|
|
22683
|
+
"type" : {
|
|
22684
|
+
"text" : "any"
|
|
22685
|
+
}
|
|
22686
|
+
}, {
|
|
22687
|
+
"name" : "selection",
|
|
22688
|
+
"fieldName" : "selection",
|
|
22689
|
+
"type" : {
|
|
22690
|
+
"text" : "string"
|
|
22691
|
+
}
|
|
22692
|
+
}, {
|
|
22693
|
+
"name" : "label",
|
|
22694
|
+
"fieldName" : "label",
|
|
22695
|
+
"type" : {
|
|
22696
|
+
"text" : "string"
|
|
22697
|
+
}
|
|
22698
|
+
}, {
|
|
22699
|
+
"name" : "loading-text",
|
|
22700
|
+
"fieldName" : "loadingText",
|
|
22701
|
+
"type" : {
|
|
22702
|
+
"text" : "string"
|
|
22703
|
+
}
|
|
22704
|
+
}, {
|
|
22705
|
+
"name" : "guides",
|
|
22706
|
+
"fieldName" : "guides",
|
|
22707
|
+
"type" : {
|
|
22708
|
+
"text" : "boolean"
|
|
22709
|
+
}
|
|
22710
|
+
} ],
|
|
22711
|
+
"events" : [ {
|
|
22712
|
+
"name" : "x-tree-toggle",
|
|
22713
|
+
"type" : {
|
|
22714
|
+
"text" : "CustomEvent<{ id: string; nextExpanded: string; source: string }>"
|
|
22715
|
+
},
|
|
22716
|
+
"cancelable" : true,
|
|
22717
|
+
"requests" : {
|
|
22718
|
+
"expanded" : "nextExpanded"
|
|
22719
|
+
},
|
|
22720
|
+
"detail" : {
|
|
22721
|
+
"id" : "string",
|
|
22722
|
+
"nextExpanded" : "string",
|
|
22723
|
+
"source" : "string"
|
|
22724
|
+
}
|
|
22725
|
+
}, {
|
|
22726
|
+
"name" : "x-tree-select",
|
|
22727
|
+
"type" : {
|
|
22728
|
+
"text" : "CustomEvent<{ id: string; changed: any; nextSelected: string; source: string }>"
|
|
22729
|
+
},
|
|
22730
|
+
"cancelable" : true,
|
|
22731
|
+
"requests" : {
|
|
22732
|
+
"selected" : "nextSelected"
|
|
22733
|
+
},
|
|
22734
|
+
"detail" : {
|
|
22735
|
+
"id" : "string",
|
|
22736
|
+
"changed" : "any",
|
|
22737
|
+
"nextSelected" : "string",
|
|
22738
|
+
"source" : "string"
|
|
22739
|
+
}
|
|
22740
|
+
}, {
|
|
22741
|
+
"name" : "x-tree-change",
|
|
22742
|
+
"type" : {
|
|
22743
|
+
"text" : "CustomEvent<{ attribute: string }>"
|
|
22744
|
+
},
|
|
22745
|
+
"cancelable" : false,
|
|
22746
|
+
"detail" : {
|
|
22747
|
+
"attribute" : "string"
|
|
22748
|
+
}
|
|
22749
|
+
}, {
|
|
22750
|
+
"name" : "x-tree-lazy-load",
|
|
22751
|
+
"type" : {
|
|
22752
|
+
"text" : "CustomEvent<{ id: string }>"
|
|
22753
|
+
},
|
|
22754
|
+
"cancelable" : false,
|
|
22755
|
+
"detail" : {
|
|
22756
|
+
"id" : "string"
|
|
22757
|
+
}
|
|
22758
|
+
} ],
|
|
22759
|
+
"slots" : [ {
|
|
22760
|
+
"name" : ""
|
|
22761
|
+
} ],
|
|
22762
|
+
"cssProperties" : [ {
|
|
22763
|
+
"name" : "--x-tree-checkbox-color",
|
|
22764
|
+
"default" : "var(--x-color-primary,#2563eb)"
|
|
22765
|
+
}, {
|
|
22766
|
+
"name" : "--x-tree-checkbox-size",
|
|
22767
|
+
"default" : "1rem"
|
|
22768
|
+
}, {
|
|
22769
|
+
"name" : "--x-tree-chevron-color",
|
|
22770
|
+
"default" : "var(--x-color-text-muted,#6b7280)"
|
|
22771
|
+
}, {
|
|
22772
|
+
"name" : "--x-tree-chevron-size",
|
|
22773
|
+
"default" : "1rem"
|
|
22774
|
+
}, {
|
|
22775
|
+
"name" : "--x-tree-color",
|
|
22776
|
+
"default" : "var(--x-color-text,#1f2937)"
|
|
22777
|
+
}, {
|
|
22778
|
+
"name" : "--x-tree-disabled-opacity",
|
|
22779
|
+
"default" : "0.5"
|
|
22780
|
+
}, {
|
|
22781
|
+
"name" : "--x-tree-focus-ring",
|
|
22782
|
+
"default" : "var(--x-color-focus-ring,#2563eb)"
|
|
22783
|
+
}, {
|
|
22784
|
+
"name" : "--x-tree-font-family",
|
|
22785
|
+
"default" : "var(--x-font-family,inherit)"
|
|
22786
|
+
}, {
|
|
22787
|
+
"name" : "--x-tree-font-size",
|
|
22788
|
+
"default" : "var(--x-font-size-sm,0.875rem)"
|
|
22789
|
+
}, {
|
|
22790
|
+
"name" : "--x-tree-gap",
|
|
22791
|
+
"default" : "0.375rem"
|
|
22792
|
+
}, {
|
|
22793
|
+
"name" : "--x-tree-guide-active-color",
|
|
22794
|
+
"default" : "var(--x-tree-guide-color)"
|
|
22795
|
+
}, {
|
|
22796
|
+
"name" : "--x-tree-guide-color",
|
|
22797
|
+
"default" : "var(--x-color-border,#e5e7eb)"
|
|
22798
|
+
}, {
|
|
22799
|
+
"name" : "--x-tree-guide-style",
|
|
22800
|
+
"default" : "solid"
|
|
22801
|
+
}, {
|
|
22802
|
+
"name" : "--x-tree-guide-width",
|
|
22803
|
+
"default" : "var(--x-border-width,1px)"
|
|
22804
|
+
}, {
|
|
22805
|
+
"name" : "--x-tree-hover-bg",
|
|
22806
|
+
"default" : "color-mix(in srgb,var(--x-color-text,#000) 6%,transparent)"
|
|
22807
|
+
}, {
|
|
22808
|
+
"name" : "--x-tree-indent",
|
|
22809
|
+
"default" : "1.25rem"
|
|
22810
|
+
}, {
|
|
22811
|
+
"name" : "--x-tree-meta-color",
|
|
22812
|
+
"default" : "var(--x-color-text-muted,#6b7280)"
|
|
22813
|
+
}, {
|
|
22814
|
+
"name" : "--x-tree-row-height",
|
|
22815
|
+
"default" : "2rem"
|
|
22816
|
+
}, {
|
|
22817
|
+
"name" : "--x-tree-row-padding",
|
|
22818
|
+
"default" : "0 var(--x-space-sm,0.5rem)"
|
|
22819
|
+
}, {
|
|
22820
|
+
"name" : "--x-tree-row-radius",
|
|
22821
|
+
"default" : "var(--x-radius-sm,4px)"
|
|
22822
|
+
}, {
|
|
22823
|
+
"name" : "--x-tree-selected-bg",
|
|
22824
|
+
"default" : "color-mix(in srgb,var(--x-color-primary,#2563eb) 12%,transparent)"
|
|
22825
|
+
}, {
|
|
22826
|
+
"name" : "--x-tree-selected-color",
|
|
22827
|
+
"default" : "var(--x-tree-color)"
|
|
22828
|
+
}, {
|
|
22829
|
+
"name" : "--x-tree-transition-duration",
|
|
22830
|
+
"default" : "var(--x-transition-duration,150ms)"
|
|
22831
|
+
} ],
|
|
22832
|
+
"cssParts" : [ {
|
|
22833
|
+
"name" : "checkbox"
|
|
22834
|
+
}, {
|
|
22835
|
+
"name" : "chevron"
|
|
22836
|
+
}, {
|
|
22837
|
+
"name" : "group"
|
|
22838
|
+
}, {
|
|
22839
|
+
"name" : "item"
|
|
22840
|
+
}, {
|
|
22841
|
+
"name" : "label"
|
|
22842
|
+
}, {
|
|
22843
|
+
"name" : "loading"
|
|
22844
|
+
}, {
|
|
22845
|
+
"name" : "meta"
|
|
22846
|
+
}, {
|
|
22847
|
+
"name" : "part"
|
|
22848
|
+
}, {
|
|
22849
|
+
"name" : "row"
|
|
22850
|
+
}, {
|
|
22851
|
+
"name" : "tree"
|
|
22852
|
+
} ]
|
|
22853
|
+
} ],
|
|
22854
|
+
"exports" : [ {
|
|
22855
|
+
"kind" : "js",
|
|
22856
|
+
"name" : "init",
|
|
22857
|
+
"declaration" : {
|
|
22858
|
+
"name" : "init"
|
|
22859
|
+
}
|
|
22860
|
+
}, {
|
|
22861
|
+
"kind" : "custom-element-definition",
|
|
22862
|
+
"name" : "x-tree",
|
|
22863
|
+
"declaration" : {
|
|
22864
|
+
"name" : "XTree"
|
|
22865
|
+
}
|
|
22866
|
+
} ]
|
|
22615
22867
|
}, {
|
|
22616
22868
|
"kind" : "javascript-module",
|
|
22617
22869
|
"path" : "dist/x-typography.js",
|
package/dist/all.js
CHANGED
|
@@ -109,6 +109,7 @@ import { init as xToast } from './x-toast.js';
|
|
|
109
109
|
import { init as xToaster } from './x-toaster.js';
|
|
110
110
|
import { init as xToc } from './x-toc.js';
|
|
111
111
|
import { init as xTooltip } from './x-tooltip.js';
|
|
112
|
+
import { init as xTree } from './x-tree.js';
|
|
112
113
|
import { init as xTraceHistory } from './x-trace-history.js';
|
|
113
114
|
import { init as xTypography } from './x-typography.js';
|
|
114
115
|
import { init as xWelcomeTour } from './x-welcome-tour.js';
|
|
@@ -222,6 +223,7 @@ export function init() {
|
|
|
222
223
|
xToaster();
|
|
223
224
|
xToc();
|
|
224
225
|
xTooltip();
|
|
226
|
+
xTree();
|
|
225
227
|
xTraceHistory();
|
|
226
228
|
xTypography();
|
|
227
229
|
xWelcomeTour();
|
package/dist/baredom.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export { XToast } from "./x-toast";
|
|
|
112
112
|
export { XToaster } from "./x-toaster";
|
|
113
113
|
export { XToc } from "./x-toc";
|
|
114
114
|
export { XTooltip } from "./x-tooltip";
|
|
115
|
+
export { XTree } from "./x-tree";
|
|
115
116
|
export { XTypography } from "./x-typography";
|
|
116
117
|
export { XWelcomeTour } from "./x-welcome-tour";
|
|
117
118
|
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
new $APP.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
$APP.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
a));
|
|
18
|
-
c.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
function(a){
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.Mu,$APP.jf(b.attrs),$APP.Xx,C$(eJa,b.template),$APP.Wu,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.Xx);b=$APP.C(c,$APP.Mu);c=$APP.C(c,$APP.Wu);d=YHa(a,d);if(!$APP.Oc($APP.vu.i(d)))throw $APP.Ph("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.Qv,a],null));d=new $APP.J(null,3,[$APP.Mu,b,$APP.Wu,c,$APP.Gx,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
|
|
43
|
-
wIa(b,$APP.pe(vIa,d))):null};export const writeItem=function(a,b,c){b=TIa("writeItem",b);var d=a[fJa];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.Sc(b)&&$APP.ad(b,$APP.ms)&&$APP.ad(b,$APP.Lu)))throw $APP.Ph("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));y$(w$(a),o$(b,c));a[fJa]=new $APP.H(null,2,5,$APP.I,[b,c],null)}return null};
|
|
2
|
+
var OJa=function(a,b){return new $APP.Fd(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.bc(d);else{c=d;break a}}c=void 0}return c},null)},j$=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)},k$=function(a,b){return $APP.le(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.A.j(b,
|
|
3
|
+
$APP.$g(d))?c:null},a)},l$=function(a){return a instanceof $APP.E||$APP.Jc(a)},PJa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},QJa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},RJa=function(a){var b=j$(a);$APP.B(b,0,null);a=$APP.B(b,1,null);b=$APP.B(b,2,null);return $APP.p($APP.le($APP.oe($APP.bd,a),new $APP.H(null,2,5,$APP.I,[$APP.St,$APP.rs],null)))&&$APP.ke(PJa,$APP.Lg(a))&&$APP.ke(QJa,b)},SJa=function(a){var b=$APP.F(a),c=$APP.C(b,
|
|
4
|
+
$APP.hu);a=$APP.C(b,$APP.bn);b=$APP.C(b,$APP.rs);a=(c=$APP.q(c))?c:$APP.m(a)?a:$APP.q(b);return $APP.D(a)},TJa=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)},UJa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.St);var e=$APP.F(d),f=$APP.C(e,$APP.hu),g=$APP.C(e,$APP.bn);d=$APP.C(e,$APP.rs);SJa(e)?(e=new $APP.J(null,1,[$APP.uk,b],null),f=$APP.q(f)?$APP.Og.l(e,$APP.dv,f):e,g=$APP.m(g)?$APP.Og.l(f,$APP.bn,g):
|
|
5
|
+
f,d=$APP.q(d)?$APP.Og.l(g,$APP.rs,d):g):d=null;a=$APP.qi.N(a,$APP.Nu,$APP.Nf,$APP.Fe.i($APP.oe(TJa,b)),c);return $APP.m(d)?$APP.qi.H(a,$APP.cv,$APP.zd,d):a},VJa=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,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,$APP.I,[$APP.zd.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,
|
|
6
|
+
2,null),g=$APP.Ik.o(e,$APP.St,$APP.Ac([$APP.rs]));if($APP.p($APP.le(l$,f)))d=null;else{if($APP.u(f))throw $APP.Yh("A text hole must be the only child of its element.",new $APP.J(null,1,[$APP.mw,c],null));d=$APP.t(f)}var k=$APP.St.i(e);e=$APP.rs.i(e);if(!$APP.ke(l$,$APP.Lg(e)))throw $APP.Yh("A value in :props is a hole.",new $APP.J(null,1,[$APP.mw,c],null));var n=$APP.Nf.l($APP.fe,$APP.Oe($APP.li.j(l$,$APP.kf)),g);g=$APP.Nf.l($APP.fe,$APP.Me($APP.li.j(l$,$APP.kf)),g);if($APP.m(k$(g,"xmlns")))throw $APP.Yh("xmlns is a fixed value, never a hole.",
|
|
7
|
+
new $APP.J(null,1,[$APP.mw,c],null));if($APP.m(d))f=null;else if(!$APP.ke(QJa,f))throw $APP.Yh("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.mw,c],null));d=new $APP.J(null,7,[$APP.mw,c,$APP.St,k,$APP.rs,e,$APP.Bs,n,$APP.hu,g,$APP.bn,d,$APP.Tw,f],null);b=$APP.F(b);c=$APP.C(b,$APP.Cx);d=$APP.F(d);k=$APP.C(d,$APP.Bs);k=k$(k,"data-x-part");f=$APP.F(d);g=$APP.C(f,$APP.St);$APP.D($APP.q(g)||SJa(f))?$APP.m(k)?d=new $APP.H(null,2,5,$APP.I,[d,UJa(b,k,d)],null):
|
|
8
|
+
(c=""+$APP.M.i(a)+"."+$APP.M.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.sr(d,new $APP.H(null,2,5,$APP.I,[$APP.Bs,$APP.Ah.i("data-x-part")],null),c),UJa($APP.qi.l(b,$APP.Cx,$APP.hc),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.mw);b=$APP.C(k,$APP.Bs);k=$APP.C(k,$APP.Tw);d=$APP.B(d,1,null);d=$APP.xa.l($APP.oe(VJa,a),new $APP.H(null,2,5,$APP.I,[$APP.Re,d],null),k);a=$APP.B(d,0,null);d=$APP.B(d,1,null);k=$APP.I;f=$APP.Nf.j;c=new $APP.H(null,1,5,$APP.I,
|
|
9
|
+
[c],null);b=$APP.q(b)?$APP.zd.j(c,b):c;return new $APP.H(null,2,5,k,[f.call($APP.Nf,b,a),d],null)},WJa=function(a,b){b=m$($APP.$g(a),new $APP.J(null,3,[$APP.Cx,0,$APP.cv,$APP.Re,$APP.Nu,$APP.fe],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[$APP.Bs,a,$APP.cv,$APP.cv.i(b),$APP.Nu,$APP.Nu.i(b)],null)},n$=function(a,b){return b.i?b.i(a):b.call(null,a)},XJa=function(a,b){var c=$APP.F(b);b=$APP.C(c,$APP.uk);var d=$APP.C(c,$APP.dv),e=$APP.C(c,$APP.bn),f=$APP.C(c,$APP.rs);c=$APP.I;
|
|
10
|
+
d=$APP.m(d)?$APP.Og.l($APP.fe,$APP.dv,$APP.Zh(d,$APP.oe(n$,a))):$APP.fe;e=$APP.m(e)?$APP.Og.l(d,$APP.bn,n$(a,e)):d;a=$APP.m(f)?$APP.Og.l(e,$APP.rs,$APP.Zh(f,$APP.oe(n$,a))):e;return new $APP.H(null,2,5,c,[b,a],null)},o$=function(a,b){return $APP.Nf.l($APP.fe,$APP.Fe.i($APP.oe(XJa,b)),$APP.cv.i(a))},YJa=function(a){return $APP.Ne($APP.Vc,$APP.vc(j$(a),2))},ZJa=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.ci($APP.$g(a))],
|
|
11
|
+
null)},$Ja=function(a){return $APP.Nf.l($APP.fe,$APP.ve(ZJa),$APP.Qe($APP.Vc,YJa,a))},p$=function(a){return(typeof a==="string"||a instanceof $APP.E)&&$APP.A.j("any",$APP.$g(a))},aKa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.yy);d=$APP.C(d,$APP.Tx);return(p$(c)||$APP.A.j($APP.$g(c),a))&&(p$(d)||$APP.bd($APP.Nf.l($APP.Sg,$APP.Fe.i($APP.$g),d),b))},bKa=function(a){a=$APP.F(a);a=$APP.C(a,$APP.yy);return p$(a)?1:0},cKa=function(a,b,c,d){var e=$APP.B(d,0,null);d=$APP.B(d,1,null);d=$APP.t($APP.id(bKa,
|
|
12
|
+
$APP.Ne($APP.pe(aKa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.uk,a,$APP.mw,b,$APP.Tda,c,$APP.bea,e,$APP.yy,$APP.$g($APP.yy.i(d))],null)},dKa=function(a){return $APP.gd($APP.Fe.j($APP.li.j($APP.ci,$APP.$g),$APP.Jg(a)))},eKa=function(a,b){var c=$Ja($APP.Bs.i(a)),d=$APP.id($APP.jf,b);return $APP.Nf.j($APP.Re,function(){return function g(f){return new $APP.Fd(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.uk),z=$APP.C(w,$APP.dv);if(n=$APP.q(function(G,
|
|
13
|
+
N,P,T,S,da,na,ma,sa){return function wb(Ya){return new $APP.Fd(null,function(Jb,ac,qc,Yc,ah,Ri,Si,Ti,Cd){return function(){for(var bh=Ya;;){var vf=$APP.q(bh);if(vf){var ch=vf,Nj=$APP.t(ch);if(vf=$APP.q(function(Al,tt,$f,nn,on,Bl,pn,Cl,Oj,Pj,Qj,Qp,Rj){return function Dl(Nh){return new $APP.Fd(null,function(ut,qn,El,Tj,Rp,Sp,Uj,yg,Ke,vt,Fl,Le){return function(){for(var ag=Nh;;)if(ag=$APP.q(ag)){if($APP.Wc(ag)){var Vj=$APP.Ab(ag),Tp=$APP.x(Vj),bg=$APP.Id(Tp);a:{for(var Gl=0;;)if(Gl<Tp){var Oh=$APP.Fc(Vj,
|
|
14
|
+
Gl);Oh=cKa(yg,Le.i?Le.i(yg):Le.call(null,yg),El,Oh);$APP.m(Oh)&&bg.add(Oh);Gl+=1}else{Vj=!0;break a}Vj=void 0}return Vj?$APP.Ld(bg.fa(),Dl($APP.Bb(ag))):$APP.Ld(bg.fa(),null)}bg=$APP.t(ag);bg=cKa(yg,Le.i?Le.i(yg):Le.call(null,yg),El,bg);if($APP.m(bg))return $APP.Dd(bg,Dl($APP.bc(ag)));ag=$APP.bc(ag)}else return null}}(Al,tt,$f,nn,on,Bl,pn,Cl,Oj,Pj,Qj,Qp,Rj),null)}}(bh,Jb,Nj,ch,vf,ac,qc,Yc,ah,Ri,Si,Ti,Cd)(Cd)))return $APP.Ie.j(vf,wb($APP.bc(bh)));bh=$APP.bc(bh)}else return null}}}(G,N,P,T,S,da,na,
|
|
15
|
+
ma,sa),null)}}(k,v,w,y,z,r,n,c,d)(dKa(z))))return $APP.Ie.j(n,g($APP.bc(k)));k=$APP.bc(k)}else return null}},null)}($APP.cv.i(a))}())},fKa=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[gKa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.oe(b,a));return null},hKa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.$g(a):""+$APP.M.i(a)},iKa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,
|
|
16
|
+
null);c=$APP.$g(c);b=hKa(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.oe(iKa,b),a)},jKa=function(a,b){b=""+$APP.M.i(b);var c=a.firstChild;c=c==null?null:$APP.A.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},kKa=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.Pe(RJa,
|
|
17
|
+
$APP.Qe($APP.Vc,YJa,a)));if(b==null)return a;throw $APP.Yh("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.J(null,1,[$APP.mw,$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.$g(e);var f=k$(c,"xmlns");if($APP.m(f))b=f;else switch(e){case "svg":b="http://www.w3.org/2000/svg"}f=b;f=f!=null?a.createElementNS(f,e):a.createElement(e);q$(f,$APP.oe(r$,c));a:switch(e){case "foreignObject":c=null;break a;
|
|
18
|
+
default:c=b}$APP.Jh($APP.qe(kKa,a,c,f),d);return f},lKa=function(a){var b=t$(a);return $APP.oe(u$,new $APP.Hh(function(){return s$(document.createElement("template").content.ownerDocument,null,b)}))},mKa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},nKa=function(a,b){var c=mKa(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"))?
|
|
19
|
+
a=c:(c=nKa(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.Pd(v$(nKa($APP.sb($APP.fe),a),a))},oKa=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},pKa=function(a,b){var c=Object.keys(a);return c.length===Object.keys(b).length&&$APP.ke($APP.pe(oKa,a,b),c)},x$=function(a,b){if(a===b)a=!0;else{var c=$APP.la(a);c=$APP.m(c)?$APP.la(b):c;a=$APP.m(c)?pKa(a,b):$APP.pa(a)&&$APP.pa(b)?pKa(a,
|
|
20
|
+
b):$APP.A.j(a,b)}return a},rKa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.$g(c);var d=a[qKa];if($APP.bd(d,c)&&x$(b,$APP.C(d,c)))return null;a[c]=b;return a[qKa]=$APP.Og.l(d,c,b)},sKa=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.dv),e=$APP.C(b,$APP.rs);a=a.i?a.i(c):a.call(null,c);$APP.bd(b,$APP.bn)&&jKa(a,$APP.bn.i(b));$APP.m(d)&&q$(a,$APP.oe(r$,d));return $APP.Jh($APP.oe(rKa,a),e)},y$=function(a,b){var c=$APP.q($APP.Nf.l($APP.Re,$APP.Oe(a),
|
|
21
|
+
$APP.Jg(b)));if(c!=null)throw $APP.Yh("write-parts!: no node has these part names.",new $APP.J(null,1,[$APP.xk,$APP.lf(c)],null));return $APP.Jh($APP.oe(sKa,a),b)},tKa=function(a,b){return a.getAttribute(b)},uKa=function(a,b){var c=$APP.F(a);a=$APP.C(c,$APP.dv);var d=$APP.C(c,$APP.ov);c=$APP.C(c,$APP.ey);var e=$APP.Bs.i(c),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);
|
|
22
|
+
b=$APP.Nf.l($APP.fe,$APP.Fe.i($APP.ph($APP.Ah,$APP.oe(tKa,b))),a);return y$(d,o$(c,b))},vKa=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=function(){return b.i?b.i(this):b.call(null,this)};return c},wKa=function(a,b){a=$APP.ne(a);a=new $APP.H(null,2,5,$APP.I,[$APP.fh(a,b),OJa(a,b)],null);b=$APP.B(a,0,null);
|
|
23
|
+
a=$APP.B(a,1,null);return $APP.Ie.j(b,$APP.De(1,a))},xKa=function(a){return a instanceof Element},yKa=function(a){a=$APP.Ne(xKa,wKa($APP.oe($APP.ka,a.currentTarget),$APP.Bc(a.composedPath())));var b=$APP.le(mKa,wKa(fKa,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[z$,$APP.Nf.l($APP.Re,$APP.ve($APP.li.j($APP.t,fKa)),$APP.Ad(a)),$APP.uk,c,A$,b],null)},zKa=function(a,b,c,d){return function(e){e=$APP.qr.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,
|
|
24
|
+
g);if(f===$APP.ab(a))break a}return e}},AKa=function(a,b){return a.getAttribute(b)},BKa=function(a){return $APP.Nc(z$.i(a))},CKa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},FKa=function(a,b){var c=$APP.F(a);a=$APP.C(c,DKa);var d=$APP.C(c,$APP.Nu),e=$APP.C(c,EKa);c=yKa(b);var f=$APP.F(c),g=$APP.C(f,$APP.uk);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,BKa],null);d=$APP.B(g,0,
|
|
25
|
+
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;d=$APP.C(e,b.type);d==null?b=a.i?a.i(f):a.call(null,f):(e=$APP.ri.j($APP.li.j(hKa,$APP.oe(CKa,b)),$APP.Lg(d)),a.i?a.i(f):a.call(null,f),a=$APP.K.j,f=$APP.Jg(d),c=$APP.ri.j($APP.oe(AKa,c),f),b=a.call($APP.K,e,c)?b.preventDefault():null);return b},GKa=function(a,b){return $APP.m(b.bubbles)?null:FKa(a,b)},HKa=function(a,b){return $APP.m(b.bubbles)?FKa(a,b):null},IKa=function(a,b){return new $APP.H(null,
|
|
26
|
+
2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,[b,$APP.oe(GKa,a),!0],null),new $APP.H(null,3,5,$APP.I,[b,$APP.oe(HKa,a),!1],null)],null)},JKa=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)},KKa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=$APP.B(b,2,null);return a.removeEventListener(c,d,b)},LKa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},B$=function(a){return a!=null?$APP.Nf.l($APP.fe,$APP.Fe.i($APP.oe(LKa,a)),
|
|
27
|
+
Object.keys(a)):$APP.fe},MKa=function(a){return $APP.m($APP.la(a))?$APP.lf(a):a},NKa=function(a,b){return $APP.Jc(b)?a.i?a.i(b):a.call(null,b):b},OKa=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.St,$APP.Zh(B$(b),MKa)],null);case "props":return new $APP.H(null,2,5,$APP.I,[$APP.rs,$APP.Zh(B$(b),$APP.oe(NKa,a))],null);default:return new $APP.H(null,2,5,$APP.I,[c,NKa(a,b)],null)}},PKa=function(a,b){return $APP.m($APP.la(b))?C$.j?C$.j(a,
|
|
28
|
+
b):C$.call(null,a,b):$APP.Jc(b)?a.i?a.i(b):a.call(null,b):b},C$=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.Nf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.zd.j(c,$APP.Nf.l($APP.fe,$APP.Fe.i($APP.oe(OKa,a)),B$(d))):c;return e.call($APP.Nf,c,$APP.Fe.i($APP.oe(PKa,a)),$APP.m(d)?$APP.bc(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},QKa=function(a){a=B$(a);var b=$APP.bd(a,"text")?$APP.Og.l($APP.fe,
|
|
29
|
+
$APP.bn,a.i?a.i("text"):a.call(null,"text")):$APP.fe;b=(a.i?a.i("attrs"):a.call(null,"attrs"))!=null?$APP.Og.l(b,$APP.dv,B$(a.i?a.i("attrs"):a.call(null,"attrs"))):b;return(a.i?a.i("props"):a.call(null,"props"))!=null?$APP.Og.l(b,$APP.rs,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===Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;
|
|
30
|
+
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},SKa=function(a,b){var c=b==null?null:b[RKa];if($APP.m(c))return c;throw $APP.Yh(""+$APP.M.i(a)+": not a split template.",new $APP.J(null,1,[F$,b],null));},TKa=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.A.j("any",a.attributes))?b:$APP.la(a.attributes);
|
|
31
|
+
if(!$APP.m(b))throw $APP.Yh("sharedHoles: a foreign write has a target and attributes.",new $APP.J(null,1,[F$,a],null));return new $APP.J(null,2,[$APP.yy,a.target,$APP.Tx,$APP.m($APP.la(a.attributes))?$APP.lf(a.attributes):a.attributes],null)},G$=function(a){return new $APP.J(null,4,[$APP.tk,a.parent,$APP.nk,a.before,$APP.ti,a.key,$APP.uk,a.part],null)},UKa=function(a){return new $APP.J(null,3,[$APP.ti,a.key,$APP.mk,a.in,$APP.nk,a.before],null)},VKa=function(a,b,c){a[b]=c;return a},H$=function(a){return $APP.pd(VKa,
|
|
32
|
+
{},a)},WKa=function(a,b){a.push(b);return a},I$=function(a){return $APP.xa.l(WKa,[],a)},XKa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.ti);var c=$APP.C(b,$APP.tk),d=$APP.C(b,$APP.nk);b=$APP.C(b,$APP.uk);return{parent:c,before:d,key:a,part:b}},YKa=function(a,b){var c=new $APP.Hh(function(){return Object.freeze(H$(b))});return Object.defineProperty(a,"nodes",{get:function(){return $APP.ab(c)},enumerable:!0})},ZKa=function(a){var b=$APP.F(a);a=$APP.C(b,$APP.ti);var c=$APP.C(b,$APP.mk);b=$APP.C(b,$APP.nk);
|
|
33
|
+
return{key:a,"in":c,before:b}},$Ka=function(a){var b=$APP.F(a);a=$APP.C(b,z$);var c=$APP.C(b,$APP.uk);b=$APP.C(b,A$);return{keyPath:$APP.Yn(a),part:c,node:b}},aLa=function(a){return function(b,c){b=$Ka(b);return a.j?a.j(b,c):a.call(null,b,c)}},bLa=function(a){var b=$APP.I,c=$APP.lf(a[0]);a=MKa(a[1]);a=$APP.Vc(a)?$APP.qi.l(a,1,aLa):a;return new $APP.H(null,2,5,b,[c,a],null)},cLa=function(a){return function(b){b=$APP.Yn(b);return a.i?a.i(b):a.call(null,b)}},J$=function(a,b){this.store=a;this.Lc=b;this.A=
|
|
34
|
+
425984;this.K=65536},dLa=function(a){return function(b){b=$APP.Yn(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),EKa=new $APP.E(null,"requested-values","requested-values",3116167),DKa=new $APP.E(null,"dispatch!","dispatch!",-1927281664);var gKa=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.Xb(c.slice(1),0,null):null)};u$.o=function(a){return $APP.ab(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 qKa=Symbol("baremirror.written-props"),eLa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.la(a);$APP.m($APP.m(c)?c:$APP.pa(a))&&($APP.Jh(K$,Object.values(a)),Object.freeze(a));return a},RKa=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.sk($APP.Zh(B$(a),$APP.lf),$APP.Zh(B$(b),$APP.lf));a=$APP.F(a);b=$APP.C(a,$APP.qk);var c=$APP.C(a,$APP.rk);return K$(D$({remove:I$(b),place:I$($APP.Fe.j(ZKa,c))},L$,a))};export const syncPlaces=function(a,b,c){return H$($APP.Kk($APP.Zh(B$(a),G$),$APP.Zh(B$(b),$APP.lf),c))};export const setText=function(a,b){return jKa(a,b)};export const readOrigin=function(a){return $Ka(yKa(a))};export const setAttrs=function(a,b){b=B$(b);return q$(a,$APP.oe(r$,b))};
|
|
35
|
+
export const readPlaces=function(a){a=$APP.Hk($APP.Zh(B$(a),G$));a=$APP.F(a);var b=$APP.C(a,$APP.Gk),c=$APP.C(a,$APP.Ck),d=$APP.C(a,$APP.Dk);return Object.freeze(D$(YKa({containers:K$(H$($APP.Zh(b,XKa))),places:K$(H$($APP.Zh(c,I$)))},d),L$,a))};export const withOneRender=function(a,b){return q$(a,b)};
|
|
36
|
+
export const splitTemplate=function(a,b){var c=WJa(a,C$($APP.qd,b));return K$(D$({fixed:$APP.Yn($APP.Bs.i(c)),holes:$APP.Yn($APP.cv.i(c)),events:$APP.Yn($APP.lf($APP.Nu.i(c))),writes:function(d){return $APP.Yn(o$(c,d))}},RKa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=C$($APP.qd,a);return s$(document,null,t$(a))};export const dispatcher=function(a,b,c,d){return zKa(new J$(a,$APP.fe),b,c,d)};
|
|
37
|
+
export const nodeMaker=function(a){return lKa(C$($APP.qd,a))};export const sharedHoles=function(a,b){return $APP.Yn(eKa(SKa("sharedHoles",a),$APP.Zh(B$(b),$APP.oe($APP.ri,TKa))))};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.Gk,$APP.Zh(B$(a.containers),G$),$APP.Dk,B$(a.nodes)],null);d=b==null?null:b[L$];b=$APP.m(d)?d:new $APP.J(null,2,[$APP.qk,$APP.lf(b.remove),$APP.rk,$APP.ri.j(UKa,b.place)],null);return H$($APP.Jk(a,b,c))};
|
|
38
|
+
export const listen=function(a,b){var c=cLa(b.dispatch);var d=b.events;d=$APP.Nf.l($APP.fe,$APP.Fe.i(bLa),$APP.Ac(d));b=new $APP.J(null,3,[DKa,c,$APP.Nu,d,EKa,$APP.Zh(B$(b.requestedValues),B$)],null);b=$APP.F(b);c=$APP.C(b,$APP.Nu);b=$APP.Nf.l($APP.Re,$APP.li.l($APP.Fe.i($APP.t),$APP.Yg(),$APP.li.j($APP.Fe.i($APP.oe(IKa,b)),$APP.Ih)),$APP.Jg(c));$APP.Jh($APP.oe(JKa,a),b);return $APP.pe($APP.Jh,$APP.oe(KKa,a),b)};export const readParts=function(a){return $APP.Yn(w$(a))};
|
|
39
|
+
export const writeParts=function(a,b){return y$(B$(a),$APP.Zh(B$(b),QKa))};
|
|
40
|
+
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.dv,$APP.lf(b.attrs),$APP.vy,C$(dLa,b.template),$APP.ov,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.vy);b=$APP.C(c,$APP.dv);c=$APP.C(c,$APP.ov);d=WJa(a,d);if(!$APP.Pc($APP.Nu.i(d)))throw $APP.Yh("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.mw,a],null));d=new $APP.J(null,3,[$APP.dv,b,$APP.ov,c,$APP.ey,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
|
|
41
|
+
vKa(b,$APP.oe(uKa,d))):null};export const writeItem=function(a,b,c){b=SKa("writeItem",b);var d=a[eLa];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.bd(b,$APP.Bs)&&$APP.bd(b,$APP.cv)))throw $APP.Yh("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));y$(w$(a),o$(b,c));a[eLa]=new $APP.H(null,2,5,$APP.I,[b,c],null)}return null};
|