@vanelsas/baredom 4.18.0 → 4.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -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 +789 -773
- 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 +35 -35
- 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 +17 -20
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +48 -48
- 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 +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 +25 -25
- package/dist/x-kinetic-font.js +24 -24
- package/dist/x-kinetic-typography.js +35 -35
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +39 -39
- package/dist/x-liquid-glass.js +37 -37
- 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 +35 -37
- package/dist/x-multi-combobox.js +40 -43
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +33 -33
- 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 +51 -51
- package/dist/x-popover.js +25 -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 +29 -29
- package/dist/x-rating.js +24 -24
- 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 +34 -34
- package/dist/x-scroll-timeline.js +50 -50
- package/dist/x-scroll.js +37 -37
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +18 -18
- 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 +21 -21
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +22 -22
- 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 +118 -118
- 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 +64 -63
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,45 @@ All notable changes to BareDOM will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [4.19.1] - 2026-11-16
|
|
8
|
+
|
|
9
|
+
BareDOM 4.19.1 keeps the panels of `x-popover` and `x-context-menu` off their anchor. The adapters
|
|
10
|
+
are not released with it.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **`x-popover` flips above or below on vertical fit only.** Near the bottom-right of the viewport
|
|
15
|
+
neither placement fitted horizontally, so the panel stayed below and was clamped up over its
|
|
16
|
+
anchor. It then covered the trigger, and a hover popover opened and closed again and again. The
|
|
17
|
+
flip now depends on vertical fit, and the existing clamp keeps the panel inside the viewport
|
|
18
|
+
sideways.
|
|
19
|
+
- **`x-context-menu` no longer covers its pointer or anchor near the viewport edge.** The flip now
|
|
20
|
+
depends on fit along the axis it moves, not on both.
|
|
21
|
+
- **`x-popover` and `x-context-menu` no longer cover their anchor when the panel fits neither
|
|
22
|
+
above nor below.** The panel goes to the side with more room and gets a smaller max-height, so
|
|
23
|
+
its content scrolls.
|
|
24
|
+
- **`x-popover` no longer shows scrollbars caused by its arrow.** The body scrolls instead of the
|
|
25
|
+
panel, so the arrow stays outside the scroll area and the header stays in view.
|
|
26
|
+
- **A portal `x-popover` keeps its `--x-popover-panel-max-height`.** The height set while
|
|
27
|
+
positioning the panel replaced it.
|
|
28
|
+
|
|
29
|
+
## [4.19.0] - 2026-11-11
|
|
30
|
+
|
|
31
|
+
BareDOM 4.19 adds `x-tree`, a tree of hierarchical data. All five adapters follow it in a release
|
|
32
|
+
of their own: `-react` 3.7.0, `-angular` 3.7.0, `-vue` 0.13.0, `-svelte` 0.13.0 and `-solid`
|
|
33
|
+
0.13.0. They add `XTree`, type array props as arrays, and each needs `@vanelsas/baredom` 4.19.0 or
|
|
34
|
+
later.
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- **`x-tree` shows hierarchical data as a tree.** It takes its items, its open branches and its
|
|
39
|
+
selection as JSON arrays in `items`, `expanded` and `selected`, each with a property that reads
|
|
40
|
+
and writes an array. It selects in four modes, `none`, `single`, `leaf` and `multiple`, and in
|
|
41
|
+
`multiple` a check cascades through its branch. A branch can load its children when it opens,
|
|
42
|
+
indent guides are optional, and it follows the WAI-ARIA tree keyboard pattern.
|
|
43
|
+
- **`du/define-json-prop!`** installs a property that keeps a JS value as JSON in an attribute.
|
|
44
|
+
`x-tree` and `x-chart` use it.
|
|
45
|
+
|
|
7
46
|
## [4.18.0] - 2026-11-04
|
|
8
47
|
|
|
9
48
|
BareDOM 4.18 brings three changes to `x-date-picker`: a short date format, an SVG calendar icon,
|
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.Nu,$APP.jf(b.attrs),$APP.Yx,C$(jJa,b.template),$APP.Xu,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.Yx);b=$APP.C(c,$APP.Nu);c=$APP.C(c,$APP.Xu);d=cIa(a,d);if(!$APP.Oc($APP.wu.i(d)))throw $APP.Ph("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.Rv,a],null));d=new $APP.J(null,3,[$APP.Nu,b,$APP.Xu,c,$APP.Hx,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
|
|
43
|
-
BIa(b,$APP.pe(AIa,d))):null};export const writeItem=function(a,b,c){b=YIa("writeItem",b);var d=a[kJa];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.ns)&&$APP.ad(b,$APP.Mu)))throw $APP.Ph("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));y$(w$(a),o$(b,c));a[kJa]=new $APP.H(null,2,5,$APP.I,[b,c],null)}return null};
|
|
2
|
+
var VJa=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)},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.A(c,0,null);c=$APP.A(c,1,null);return $APP.z.j(b,
|
|
3
|
+
$APP.$g(d))?c:null},a)},l$=function(a){return a instanceof $APP.E||$APP.Jc(a)},WJa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},XJa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},YJa=function(a){var b=j$(a);$APP.A(b,0,null);a=$APP.A(b,1,null);b=$APP.A(b,2,null);return $APP.p($APP.le($APP.oe($APP.bd,a),new $APP.H(null,2,5,$APP.I,[$APP.iu,$APP.Js],null)))&&$APP.ke(WJa,$APP.Lg(a))&&$APP.ke(XJa,b)},ZJa=function(a){var b=$APP.F(a),c=$APP.C(b,
|
|
4
|
+
$APP.yu);a=$APP.C(b,$APP.Fn);b=$APP.C(b,$APP.Js);a=(c=$APP.q(c))?c:$APP.m(a)?a:$APP.q(b);return $APP.D(a)},$Ja=function(a,b){var c=$APP.A(b,0,null);b=$APP.A(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)},aKa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.iu);var e=$APP.F(d),f=$APP.C(e,$APP.yu),g=$APP.C(e,$APP.Fn);d=$APP.C(e,$APP.Js);ZJa(e)?(e=new $APP.J(null,1,[$APP.uk,b],null),f=$APP.q(f)?$APP.Og.l(e,$APP.uv,f):e,g=$APP.m(g)?$APP.Og.l(f,$APP.Fn,g):
|
|
5
|
+
f,d=$APP.q(d)?$APP.Og.l(g,$APP.Js,d):g):d=null;a=$APP.qi.N(a,$APP.dv,$APP.Nf,$APP.Fe.i($APP.oe($Ja,b)),c);return $APP.m(d)?$APP.qi.H(a,$APP.tv,$APP.zd,d):a},bKa=function(a,b,c){var d=$APP.A(b,0,null);b=$APP.A(b,1,null);return $APP.Vc(c)?(c=m$.l?m$.l(a,b,c):m$.call(null,a,b,c),a=$APP.A(c,0,null),c=$APP.A(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.A(d,0,null);var e=$APP.A(d,1,null),f=$APP.A(d,
|
|
6
|
+
2,null),g=$APP.Ik.o(e,$APP.iu,$APP.Ac([$APP.Js]));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.Bw,c],null));d=$APP.t(f)}var k=$APP.iu.i(e);e=$APP.Js.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.Bw,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.Bw,c],null));if($APP.m(d))f=null;else if(!$APP.ke(XJa,f))throw $APP.Yh("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.Bw,c],null));d=new $APP.J(null,7,[$APP.Bw,c,$APP.iu,k,$APP.Js,e,$APP.Ss,n,$APP.yu,g,$APP.Fn,d,$APP.fx,f],null);b=$APP.F(b);c=$APP.C(b,$APP.Nx);d=$APP.F(d);k=$APP.C(d,$APP.Ss);k=k$(k,"data-x-part");f=$APP.F(d);g=$APP.C(f,$APP.iu);$APP.D($APP.q(g)||ZJa(f))?$APP.m(k)?d=new $APP.H(null,2,5,$APP.I,[d,aKa(b,k,d)],null):
|
|
8
|
+
(c=""+$APP.M.i(a)+"."+$APP.M.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.Kr(d,new $APP.H(null,2,5,$APP.I,[$APP.Ss,$APP.Ah.i("data-x-part")],null),c),aKa($APP.qi.l(b,$APP.Nx,$APP.hc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.A(d,0,null);k=$APP.F(b);c=$APP.C(k,$APP.Bw);b=$APP.C(k,$APP.Ss);k=$APP.C(k,$APP.fx);d=$APP.A(d,1,null);d=$APP.xa.l($APP.oe(bKa,a),new $APP.H(null,2,5,$APP.I,[$APP.Re,d],null),k);a=$APP.A(d,0,null);d=$APP.A(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)},cKa=function(a,b){b=m$($APP.$g(a),new $APP.J(null,3,[$APP.Nx,0,$APP.tv,$APP.Re,$APP.dv,$APP.fe],null),b);a=$APP.A(b,0,null);b=$APP.A(b,1,null);return new $APP.J(null,3,[$APP.Ss,a,$APP.tv,$APP.tv.i(b),$APP.dv,$APP.dv.i(b)],null)},n$=function(a,b){return b.i?b.i(a):b.call(null,a)},dKa=function(a,b){var c=$APP.F(b);b=$APP.C(c,$APP.uk);var d=$APP.C(c,$APP.uv),e=$APP.C(c,$APP.Fn),f=$APP.C(c,$APP.Js);c=$APP.I;
|
|
10
|
+
d=$APP.m(d)?$APP.Og.l($APP.fe,$APP.uv,$APP.Zh(d,$APP.oe(n$,a))):$APP.fe;e=$APP.m(e)?$APP.Og.l(d,$APP.Fn,n$(a,e)):d;a=$APP.m(f)?$APP.Og.l(e,$APP.Js,$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(dKa,b)),$APP.tv.i(a))},eKa=function(a){return $APP.Ne($APP.Vc,$APP.vc(j$(a),2))},fKa=function(a){var b=j$(a);a=$APP.A(b,0,null);b=$APP.A(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)},gKa=function(a){return $APP.Nf.l($APP.fe,$APP.ve(fKa),$APP.Qe($APP.Vc,eKa,a))},p$=function(a){return(typeof a==="string"||a instanceof $APP.E)&&$APP.z.j("any",$APP.$g(a))},hKa=function(a,b,c){var d=$APP.F(c);c=$APP.C(d,$APP.Iy);d=$APP.C(d,$APP.cy);return(p$(c)||$APP.z.j($APP.$g(c),a))&&(p$(d)||$APP.bd($APP.Nf.l($APP.Sg,$APP.Fe.i($APP.$g),d),b))},iKa=function(a){a=$APP.F(a);a=$APP.C(a,$APP.Iy);return p$(a)?1:0},jKa=function(a,b,c,d){var e=$APP.A(d,0,null);d=$APP.A(d,1,null);d=$APP.t($APP.id(iKa,
|
|
12
|
+
$APP.Ne($APP.pe(hKa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.uk,a,$APP.Bw,b,$APP.Vda,c,$APP.dea,e,$APP.Iy,$APP.$g($APP.Iy.i(d))],null)},kKa=function(a){return $APP.gd($APP.Fe.j($APP.li.j($APP.ci,$APP.$g),$APP.Jg(a)))},lKa=function(a,b){var c=gKa($APP.Ss.i(a)),d=$APP.id($APP.jf,b);return $APP.Nf.j($APP.Re,function(){return function g(f){return new $APP.Ed(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),B=$APP.C(w,$APP.uv);if(n=$APP.q(function(G,
|
|
13
|
+
N,Q,T,S,da,na,ma,sa){return function wb(Ya){return new $APP.Ed(null,function(Jb,bc,qc,Yc,bh,Qi,Ri,Si,Fd){return function(){for(var ch=Ya;;){var wf=$APP.q(ch);if(wf){var dh=wf,Nj=$APP.t(dh);if(wf=$APP.q(function(Al,xt,ag,qn,rn,Bl,sn,Cl,Oj,Pj,Qj,Tp,Rj){return function Dl(Nh){return new $APP.Ed(null,function(yt,tn,El,Tj,Up,Vp,Uj,Bg,Ke,zt,Fl,Le){return function(){for(var bg=Nh;;)if(bg=$APP.q(bg)){if($APP.Wc(bg)){var Vj=$APP.Ab(bg),Wp=$APP.x(Vj),cg=$APP.Id(Wp);a:{for(var Gl=0;;)if(Gl<Wp){var Oh=$APP.Fc(Vj,
|
|
14
|
+
Gl);Oh=jKa(Bg,Le.i?Le.i(Bg):Le.call(null,Bg),El,Oh);$APP.m(Oh)&&cg.add(Oh);Gl+=1}else{Vj=!0;break a}Vj=void 0}return Vj?$APP.Ld(cg.fa(),Dl($APP.Bb(bg))):$APP.Ld(cg.fa(),null)}cg=$APP.t(bg);cg=jKa(Bg,Le.i?Le.i(Bg):Le.call(null,Bg),El,cg);if($APP.m(cg))return $APP.Cd(cg,Dl($APP.ac(bg)));bg=$APP.ac(bg)}else return null}}(Al,xt,ag,qn,rn,Bl,sn,Cl,Oj,Pj,Qj,Tp,Rj),null)}}(ch,Jb,Nj,dh,wf,bc,qc,Yc,bh,Qi,Ri,Si,Fd)(Fd)))return $APP.Ie.j(wf,wb($APP.ac(ch)));ch=$APP.ac(ch)}else return null}}}(G,N,Q,T,S,da,na,
|
|
15
|
+
ma,sa),null)}}(k,v,w,y,B,r,n,c,d)(kKa(B))))return $APP.Ie.j(n,g($APP.ac(k)));k=$APP.ac(k)}else return null}},null)}($APP.tv.i(a))}())},mKa=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[nKa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.oe(b,a));return null},oKa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.$g(a):""+$APP.M.i(a)},pKa=function(a,b){var c=$APP.A(b,0,null);b=$APP.A(b,1,
|
|
16
|
+
null);c=$APP.$g(c);b=oKa(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(pKa,b),a)},qKa=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,c.data)&&(c.data=b);return null},rKa=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(YJa,
|
|
17
|
+
$APP.Qe($APP.Vc,eKa,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.Bw,$APP.t(b)],null));},s$=function(a,b,c){var d=j$(c),e=$APP.A(d,0,null);c=$APP.A(d,1,null);d=$APP.A(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(rKa,a,c,f),d);return f},sKa=function(a){var b=t$(a);return $APP.oe(u$,new $APP.Hh(function(){return s$(document.createElement("template").content.ownerDocument,null,b)}))},tKa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},uKa=function(a,b){var c=tKa(b);if(c==null)return a;b=$APP.A(c,0,null);c=$APP.A(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=uKa(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$(uKa($APP.sb($APP.fe),a),a))},vKa=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},wKa=function(a,b){var c=Object.keys(a);return c.length===Object.keys(b).length&&$APP.ke($APP.pe(vKa,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)?wKa(a,b):$APP.pa(a)&&$APP.pa(b)?wKa(a,
|
|
20
|
+
b):$APP.z.j(a,b)}return a},yKa=function(a,b){var c=$APP.A(b,0,null);b=$APP.A(b,1,null);c=$APP.$g(c);var d=a[xKa];if($APP.bd(d,c)&&x$(b,$APP.C(d,c)))return null;a[c]=b;return a[xKa]=$APP.Og.l(d,c,b)},zKa=function(a,b){var c=$APP.A(b,0,null);b=$APP.A(b,1,null);b=$APP.F(b);var d=$APP.C(b,$APP.uv),e=$APP.C(b,$APP.Js);a=a.i?a.i(c):a.call(null,c);$APP.bd(b,$APP.Fn)&&qKa(a,$APP.Fn.i(b));$APP.m(d)&&q$(a,$APP.oe(r$,d));return $APP.Jh($APP.oe(yKa,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(zKa,a),b)},AKa=function(a,b){return a.getAttribute(b)},BKa=function(a,b){var c=$APP.F(a);a=$APP.C(c,$APP.uv);var d=$APP.C(c,$APP.Fv);c=$APP.C(c,$APP.oy);var e=$APP.Ss.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(AKa,b))),a);return y$(d,o$(c,b))},CKa=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},DKa=function(a,b){a=$APP.ne(a);a=new $APP.H(null,2,5,$APP.I,[$APP.fh(a,b),VJa(a,b)],null);b=$APP.A(a,0,null);
|
|
23
|
+
a=$APP.A(a,1,null);return $APP.Ie.j(b,$APP.De(1,a))},EKa=function(a){return a instanceof Element},FKa=function(a){a=$APP.Ne(EKa,DKa($APP.oe($APP.ka,a.currentTarget),$APP.Bc(a.composedPath())));var b=$APP.le(tKa,DKa(mKa,a)),c=$APP.A(b,0,null);b=$APP.A(b,1,null);return new $APP.J(null,3,[z$,$APP.Nf.l($APP.Re,$APP.ve($APP.li.j($APP.t,mKa)),$APP.Ad(a)),$APP.uk,c,A$,b],null)},GKa=function(a,b,c,d){return function(e){e=$APP.Ir.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}},HKa=function(a,b){return a.getAttribute(b)},IKa=function(a){return $APP.Nc(z$.i(a))},JKa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},MKa=function(a,b){var c=$APP.F(a);a=$APP.C(c,KKa);var d=$APP.C(c,$APP.dv),e=$APP.C(c,LKa);c=FKa(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,IKa],null);d=$APP.A(g,0,
|
|
25
|
+
null);g=$APP.A(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(oKa,$APP.oe(JKa,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(HKa,c),f),b=a.call($APP.K,e,c)?b.preventDefault():null);return b},NKa=function(a,b){return $APP.m(b.bubbles)?null:MKa(a,b)},OKa=function(a,b){return $APP.m(b.bubbles)?MKa(a,b):null},PKa=function(a,b){return new $APP.H(null,
|
|
26
|
+
2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,[b,$APP.oe(NKa,a),!0],null),new $APP.H(null,3,5,$APP.I,[b,$APP.oe(OKa,a),!1],null)],null)},QKa=function(a,b){var c=$APP.A(b,0,null),d=$APP.A(b,1,null);b=$APP.A(b,2,null);return a.addEventListener(c,d,b)},RKa=function(a,b){var c=$APP.A(b,0,null),d=$APP.A(b,1,null);b=$APP.A(b,2,null);return a.removeEventListener(c,d,b)},SKa=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(SKa,a)),
|
|
27
|
+
Object.keys(a)):$APP.fe},TKa=function(a){return $APP.m($APP.la(a))?$APP.lf(a):a},UKa=function(a,b){return $APP.Jc(b)?a.i?a.i(b):a.call(null,b):b},VKa=function(a,b){var c=$APP.A(b,0,null);b=$APP.A(b,1,null);switch(c){case "on":return new $APP.H(null,2,5,$APP.I,[$APP.iu,$APP.Zh(B$(b),TKa)],null);case "props":return new $APP.H(null,2,5,$APP.I,[$APP.Js,$APP.Zh(B$(b),$APP.oe(UKa,a))],null);default:return new $APP.H(null,2,5,$APP.I,[c,UKa(a,b)],null)}},WKa=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(VKa,a)),B$(d))):c;return e.call($APP.Nf,c,$APP.Fe.i($APP.oe(WKa,a)),$APP.m(d)?$APP.ac(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},XKa=function(a){a=B$(a);var b=$APP.bd(a,"text")?$APP.Og.l($APP.fe,
|
|
29
|
+
$APP.Fn,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.uv,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.Js,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},ZKa=function(a,b){var c=b==null?null:b[YKa];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));},$Ka=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.z.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.Iy,a.target,$APP.cy,$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)},aLa=function(a){return new $APP.J(null,3,[$APP.ti,a.key,$APP.mk,a.in,$APP.nk,a.before],null)},bLa=function(a,b,c){a[b]=c;return a},H$=function(a){return $APP.pd(bLa,
|
|
32
|
+
{},a)},cLa=function(a,b){a.push(b);return a},I$=function(a){return $APP.xa.l(cLa,[],a)},dLa=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}},eLa=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})},fLa=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}},gLa=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.uo(a),part:c,node:b}},hLa=function(a){return function(b,c){b=gLa(b);return a.j?a.j(b,c):a.call(null,b,c)}},iLa=function(a){var b=$APP.I,c=$APP.lf(a[0]);a=TKa(a[1]);a=$APP.Vc(a)?$APP.qi.l(a,1,hLa):a;return new $APP.H(null,2,5,b,[c,a],null)},jLa=function(a){return function(b){b=$APP.uo(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},kLa=function(a){return function(b){b=$APP.uo(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),LKa=new $APP.E(null,"requested-values","requested-values",3116167),KKa=new $APP.E(null,"dispatch!","dispatch!",-1927281664);var nKa=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 xKa=Symbol("baremirror.written-props"),lLa=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},YKa=Symbol("baremirror.split"),L$=Symbol("baremirror.value");J$.prototype.Y=function(a,b){return new J$(this.store,b)};J$.prototype.V=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(fLa,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 qKa(a,b)};export const readOrigin=function(a){return gLa(FKa(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$(eLa({containers:K$(H$($APP.Zh(b,dLa))),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=cKa(a,C$($APP.qd,b));return K$(D$({fixed:$APP.uo($APP.Ss.i(c)),holes:$APP.uo($APP.tv.i(c)),events:$APP.uo($APP.lf($APP.dv.i(c))),writes:function(d){return $APP.uo(o$(c,d))}},YKa,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 GKa(new J$(a,$APP.fe),b,c,d)};
|
|
37
|
+
export const nodeMaker=function(a){return sKa(C$($APP.qd,a))};export const sharedHoles=function(a,b){return $APP.uo(lKa(ZKa("sharedHoles",a),$APP.Zh(B$(b),$APP.oe($APP.ri,$Ka))))};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(aLa,b.place)],null);return H$($APP.Jk(a,b,c))};
|
|
38
|
+
export const listen=function(a,b){var c=jLa(b.dispatch);var d=b.events;d=$APP.Nf.l($APP.fe,$APP.Fe.i(iLa),$APP.Ac(d));b=new $APP.J(null,3,[KKa,c,$APP.dv,d,LKa,$APP.Zh(B$(b.requestedValues),B$)],null);b=$APP.F(b);c=$APP.C(b,$APP.dv);b=$APP.Nf.l($APP.Re,$APP.li.l($APP.Fe.i($APP.t),$APP.Yg(),$APP.li.j($APP.Fe.i($APP.oe(PKa,b)),$APP.Ih)),$APP.Jg(c));$APP.Jh($APP.oe(QKa,a),b);return $APP.pe($APP.Jh,$APP.oe(RKa,a),b)};export const readParts=function(a){return $APP.uo(w$(a))};
|
|
39
|
+
export const writeParts=function(a,b){return y$(B$(a),$APP.Zh(B$(b),XKa))};
|
|
40
|
+
export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.uv,$APP.lf(b.attrs),$APP.Fy,C$(kLa,b.template),$APP.Fv,b.css],null);var c=$APP.F(b),d=$APP.C(c,$APP.Fy);b=$APP.C(c,$APP.uv);c=$APP.C(c,$APP.Fv);d=cKa(a,d);if(!$APP.Pc($APP.dv.i(d)))throw $APP.Yh("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.Bw,a],null));d=new $APP.J(null,3,[$APP.uv,b,$APP.Fv,c,$APP.oy,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
|
|
41
|
+
CKa(b,$APP.oe(BKa,d))):null};export const writeItem=function(a,b,c){b=ZKa("writeItem",b);var d=a[lLa];var e=$APP.A(d,0,null);d=$APP.A(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.Ss)&&$APP.bd(b,$APP.tv)))throw $APP.Yh("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));y$(w$(a),o$(b,c));a[lLa]=new $APP.H(null,2,5,$APP.I,[b,c],null)}return null};
|