nve-designsystem 3.1.0 → 3.3.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/chunks/chunk.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +6 -6
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
package/chunks/chunk.URTPIBTY.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
var _ =
|
|
1
|
+
import { a as e, u as t } from "./lit.js";
|
|
2
|
+
import { o as n, r } from "./decorate.js";
|
|
3
|
+
import { n as i, r as a, t as o } from "./chunk.4TUIT776.js";
|
|
4
|
+
import { t as s } from "./chunk.GMYPQTFK.js";
|
|
5
|
+
import { t as c } from "./class-map.js";
|
|
6
|
+
import { t as l } from "./chunk.6CTB5ZDJ.js";
|
|
7
|
+
import { n as u, t as d } from "./chunk.K7JGTRV7.js";
|
|
8
|
+
import { n as f, o as p, r as m, t as h } from "./chunk.B4BZKR24.js";
|
|
9
|
+
import { t as g } from "./chunk.5JY5FUCG.js";
|
|
10
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FW7UWQXB.js
|
|
11
|
+
var _ = t`
|
|
12
12
|
:host {
|
|
13
13
|
--max-width: 20rem;
|
|
14
14
|
--hide-delay: 0ms;
|
|
@@ -60,88 +60,77 @@ var _ = f`
|
|
|
60
60
|
user-select: none;
|
|
61
61
|
-webkit-user-select: none;
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (this.open)
|
|
125
|
-
return this.open = !1, u(this, "sl-after-hide");
|
|
126
|
-
}
|
|
127
|
-
//
|
|
128
|
-
// NOTE: Tooltip is a bit unique in that we're using aria-live instead of aria-labelledby to trick screen readers into
|
|
129
|
-
// announcing the content. It works really well, but it violates an accessibility rule. We're also adding the
|
|
130
|
-
// aria-describedby attribute to a slot, which is required by <sl-popup> to correctly locate the first assigned
|
|
131
|
-
// element, otherwise positioning is incorrect.
|
|
132
|
-
//
|
|
133
|
-
render() {
|
|
134
|
-
return y`
|
|
63
|
+
`, v = class extends o {
|
|
64
|
+
constructor() {
|
|
65
|
+
super(), this.localize = new l(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.handleBlur = () => {
|
|
66
|
+
this.hasTrigger("focus") && this.hide();
|
|
67
|
+
}, this.handleClick = () => {
|
|
68
|
+
this.hasTrigger("click") && (this.open ? this.hide() : this.show());
|
|
69
|
+
}, this.handleFocus = () => {
|
|
70
|
+
this.hasTrigger("focus") && this.show();
|
|
71
|
+
}, this.handleDocumentKeyDown = (e) => {
|
|
72
|
+
e.key === "Escape" && (e.stopPropagation(), this.hide());
|
|
73
|
+
}, this.handleMouseOver = () => {
|
|
74
|
+
if (this.hasTrigger("hover")) {
|
|
75
|
+
let e = m(getComputedStyle(this).getPropertyValue("--show-delay"));
|
|
76
|
+
clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.show(), e);
|
|
77
|
+
}
|
|
78
|
+
}, this.handleMouseOut = () => {
|
|
79
|
+
if (this.hasTrigger("hover")) {
|
|
80
|
+
let e = m(getComputedStyle(this).getPropertyValue("--hide-delay"));
|
|
81
|
+
clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.hide(), e);
|
|
82
|
+
}
|
|
83
|
+
}, this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
var e;
|
|
87
|
+
super.disconnectedCallback(), (e = this.closeWatcher) == null || e.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
88
|
+
}
|
|
89
|
+
firstUpdated() {
|
|
90
|
+
this.body.hidden = !this.open, this.open && (this.popup.active = !0, this.popup.reposition());
|
|
91
|
+
}
|
|
92
|
+
hasTrigger(e) {
|
|
93
|
+
return this.trigger.split(" ").includes(e);
|
|
94
|
+
}
|
|
95
|
+
async handleOpenChange() {
|
|
96
|
+
var e, t;
|
|
97
|
+
if (this.open) {
|
|
98
|
+
if (this.disabled) return;
|
|
99
|
+
this.emit("sl-show"), "CloseWatcher" in window ? ((e = this.closeWatcher) == null || e.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
|
|
100
|
+
this.hide();
|
|
101
|
+
}) : document.addEventListener("keydown", this.handleDocumentKeyDown), await p(this.body), this.body.hidden = !1, this.popup.active = !0;
|
|
102
|
+
let { keyframes: t, options: n } = d(this, "tooltip.show", { dir: this.localize.dir() });
|
|
103
|
+
await f(this.popup.popup, t, n), this.popup.reposition(), this.emit("sl-after-show");
|
|
104
|
+
} else {
|
|
105
|
+
this.emit("sl-hide"), (t = this.closeWatcher) == null || t.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await p(this.body);
|
|
106
|
+
let { keyframes: e, options: n } = d(this, "tooltip.hide", { dir: this.localize.dir() });
|
|
107
|
+
await f(this.popup.popup, e, n), this.popup.active = !1, this.body.hidden = !0, this.emit("sl-after-hide");
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async handleOptionsChange() {
|
|
111
|
+
this.hasUpdated && (await this.updateComplete, this.popup.reposition());
|
|
112
|
+
}
|
|
113
|
+
handleDisabledChange() {
|
|
114
|
+
this.disabled && this.open && this.hide();
|
|
115
|
+
}
|
|
116
|
+
async show() {
|
|
117
|
+
if (!this.open) return this.open = !0, h(this, "sl-after-show");
|
|
118
|
+
}
|
|
119
|
+
async hide() {
|
|
120
|
+
if (this.open) return this.open = !1, h(this, "sl-after-hide");
|
|
121
|
+
}
|
|
122
|
+
render() {
|
|
123
|
+
return e`
|
|
135
124
|
<sl-popup
|
|
136
125
|
part="base"
|
|
137
126
|
exportparts="
|
|
138
127
|
popup:base__popup,
|
|
139
128
|
arrow:base__arrow
|
|
140
129
|
"
|
|
141
|
-
class=${
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
130
|
+
class=${c({
|
|
131
|
+
tooltip: !0,
|
|
132
|
+
"tooltip--open": this.open
|
|
133
|
+
})}
|
|
145
134
|
placement=${this.placement}
|
|
146
135
|
distance=${this.distance}
|
|
147
136
|
skidding=${this.skidding}
|
|
@@ -160,69 +149,48 @@ var _ = f`
|
|
|
160
149
|
</div>
|
|
161
150
|
</sl-popup>
|
|
162
151
|
`;
|
|
163
|
-
|
|
152
|
+
}
|
|
164
153
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
],
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
],
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
p("open", { waitUntilFirstUpdate: !0 })
|
|
202
|
-
], t.prototype, "handleOpenChange", 1);
|
|
203
|
-
o([
|
|
204
|
-
p(["content", "distance", "hoist", "placement", "skidding"])
|
|
205
|
-
], t.prototype, "handleOptionsChange", 1);
|
|
206
|
-
o([
|
|
207
|
-
p("disabled")
|
|
208
|
-
], t.prototype, "handleDisabledChange", 1);
|
|
209
|
-
m("tooltip.show", {
|
|
210
|
-
keyframes: [
|
|
211
|
-
{ opacity: 0, scale: 0.8 },
|
|
212
|
-
{ opacity: 1, scale: 1 }
|
|
213
|
-
],
|
|
214
|
-
options: { duration: 150, easing: "ease" }
|
|
215
|
-
});
|
|
216
|
-
m("tooltip.hide", {
|
|
217
|
-
keyframes: [
|
|
218
|
-
{ opacity: 1, scale: 1 },
|
|
219
|
-
{ opacity: 0, scale: 0.8 }
|
|
220
|
-
],
|
|
221
|
-
options: { duration: 150, easing: "ease" }
|
|
154
|
+
v.styles = [i, _], v.dependencies = { "sl-popup": g }, a([r("slot:not([name])")], v.prototype, "defaultSlot", 2), a([r(".tooltip__body")], v.prototype, "body", 2), a([r("sl-popup")], v.prototype, "popup", 2), a([n()], v.prototype, "content", 2), a([n()], v.prototype, "placement", 2), a([n({
|
|
155
|
+
type: Boolean,
|
|
156
|
+
reflect: !0
|
|
157
|
+
})], v.prototype, "disabled", 2), a([n({ type: Number })], v.prototype, "distance", 2), a([n({
|
|
158
|
+
type: Boolean,
|
|
159
|
+
reflect: !0
|
|
160
|
+
})], v.prototype, "open", 2), a([n({ type: Number })], v.prototype, "skidding", 2), a([n()], v.prototype, "trigger", 2), a([n({ type: Boolean })], v.prototype, "hoist", 2), a([s("open", { waitUntilFirstUpdate: !0 })], v.prototype, "handleOpenChange", 1), a([s([
|
|
161
|
+
"content",
|
|
162
|
+
"distance",
|
|
163
|
+
"hoist",
|
|
164
|
+
"placement",
|
|
165
|
+
"skidding"
|
|
166
|
+
])], v.prototype, "handleOptionsChange", 1), a([s("disabled")], v.prototype, "handleDisabledChange", 1), u("tooltip.show", {
|
|
167
|
+
keyframes: [{
|
|
168
|
+
opacity: 0,
|
|
169
|
+
scale: .8
|
|
170
|
+
}, {
|
|
171
|
+
opacity: 1,
|
|
172
|
+
scale: 1
|
|
173
|
+
}],
|
|
174
|
+
options: {
|
|
175
|
+
duration: 150,
|
|
176
|
+
easing: "ease"
|
|
177
|
+
}
|
|
178
|
+
}), u("tooltip.hide", {
|
|
179
|
+
keyframes: [{
|
|
180
|
+
opacity: 1,
|
|
181
|
+
scale: 1
|
|
182
|
+
}, {
|
|
183
|
+
opacity: 0,
|
|
184
|
+
scale: .8
|
|
185
|
+
}],
|
|
186
|
+
options: {
|
|
187
|
+
duration: 150,
|
|
188
|
+
easing: "ease"
|
|
189
|
+
}
|
|
222
190
|
});
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
};
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.URTPIBTY.js
|
|
193
|
+
var y = v;
|
|
194
|
+
v.define("sl-tooltip");
|
|
195
|
+
//#endregion
|
|
196
|
+
export { v as n, y as t };
|
package/chunks/chunk.VESXC477.js
CHANGED
|
@@ -1,75 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { o as e } from "./chunk.4TUIT776.js";
|
|
2
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.VESXC477.js
|
|
3
|
+
function* t(n = document.activeElement) {
|
|
4
|
+
n != null && (yield n, "shadowRoot" in n && n.shadowRoot && n.shadowRoot.mode !== "closed" && (yield* e(t(n.shadowRoot.activeElement))));
|
|
4
5
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
6
|
+
function n() {
|
|
7
|
+
return [...t()].pop();
|
|
7
8
|
}
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var r = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
function i(e) {
|
|
11
|
+
let t = r.get(e);
|
|
12
|
+
return t || (t = window.getComputedStyle(e, null), r.set(e, t)), t;
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
function a(e) {
|
|
15
|
+
if (typeof e.checkVisibility == "function") return e.checkVisibility({
|
|
16
|
+
checkOpacity: !1,
|
|
17
|
+
checkVisibilityCSS: !0
|
|
18
|
+
});
|
|
19
|
+
let t = i(e);
|
|
20
|
+
return t.visibility !== "hidden" && t.display !== "none";
|
|
18
21
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
function o(e) {
|
|
23
|
+
let { overflowY: t, overflowX: n } = i(e);
|
|
24
|
+
return t === "scroll" || n === "scroll" ? !0 : t !== "auto" || n !== "auto" ? !1 : e.scrollHeight > e.clientHeight && t === "auto" || e.scrollWidth > e.clientWidth && n === "auto";
|
|
22
25
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
].includes(e) ? !0 : l(t) : !1;
|
|
26
|
+
function s(e) {
|
|
27
|
+
let t = e.tagName.toLowerCase(), n = Number(e.getAttribute("tabindex"));
|
|
28
|
+
if (e.hasAttribute("tabindex") && (isNaN(n) || n <= -1) || e.hasAttribute("disabled") || e.closest("[inert]")) return !1;
|
|
29
|
+
if (t === "input" && e.getAttribute("type") === "radio") {
|
|
30
|
+
let t = e.getRootNode(), n = `input[type='radio'][name="${e.getAttribute("name")}"]`, r = t.querySelector(`${n}:checked`);
|
|
31
|
+
return r ? r === e : t.querySelector(n) === e;
|
|
32
|
+
}
|
|
33
|
+
return a(e) ? (t === "audio" || t === "video") && e.hasAttribute("controls") || e.hasAttribute("tabindex") || e.hasAttribute("contenteditable") && e.getAttribute("contenteditable") !== "false" || [
|
|
34
|
+
"button",
|
|
35
|
+
"input",
|
|
36
|
+
"select",
|
|
37
|
+
"textarea",
|
|
38
|
+
"a",
|
|
39
|
+
"audio",
|
|
40
|
+
"video",
|
|
41
|
+
"summary",
|
|
42
|
+
"iframe"
|
|
43
|
+
].includes(t) ? !0 : o(e) : !1;
|
|
42
44
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
function c(e) {
|
|
46
|
+
let t = u(e);
|
|
47
|
+
return {
|
|
48
|
+
start: t[0] ?? null,
|
|
49
|
+
end: t[t.length - 1] ?? null
|
|
50
|
+
};
|
|
47
51
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
return ((n = t.getRootNode({ composed: !0 })) == null ? void 0 : n.host) !== e;
|
|
52
|
+
function l(e, t) {
|
|
53
|
+
return e.getRootNode({ composed: !0 })?.host !== t;
|
|
51
54
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return (Number(r.getAttribute("tabindex")) || 0) - a;
|
|
68
|
-
});
|
|
55
|
+
function u(e) {
|
|
56
|
+
let t = /* @__PURE__ */ new WeakMap(), n = [];
|
|
57
|
+
function r(i) {
|
|
58
|
+
if (i instanceof Element) {
|
|
59
|
+
if (i.hasAttribute("inert") || i.closest("[inert]") || t.has(i)) return;
|
|
60
|
+
t.set(i, !0), !n.includes(i) && s(i) && n.push(i), i instanceof HTMLSlotElement && l(i, e) && i.assignedElements({ flatten: !0 }).forEach((e) => {
|
|
61
|
+
r(e);
|
|
62
|
+
}), i.shadowRoot !== null && i.shadowRoot.mode === "open" && r(i.shadowRoot);
|
|
63
|
+
}
|
|
64
|
+
for (let e of i.children) r(e);
|
|
65
|
+
}
|
|
66
|
+
return r(e), n.sort((e, t) => {
|
|
67
|
+
let n = Number(e.getAttribute("tabindex")) || 0;
|
|
68
|
+
return (Number(t.getAttribute("tabindex")) || 0) - n;
|
|
69
|
+
});
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
c as b,
|
|
73
|
-
v as c,
|
|
74
|
-
w as g
|
|
75
|
-
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { u as i, n, c as r, t };
|