@sbb-esta/lyne-elements 3.0.1 → 3.1.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/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +4 -4
- package/button/accent-button/accent-button.component.d.ts +2 -1
- package/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/button/accent-button-link/accent-button-link.component.d.ts +2 -1
- package/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
- package/button/accent-button-static/accent-button-static.component.d.ts +2 -1
- package/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
- package/button/button/button.component.d.ts +2 -1
- package/button/button/button.component.d.ts.map +1 -1
- package/button/button-link/button-link.component.d.ts +2 -1
- package/button/button-link/button-link.component.d.ts.map +1 -1
- package/button/button-static/button-static.component.d.ts +2 -1
- package/button/button-static/button-static.component.d.ts.map +1 -1
- package/button/common/button-common.d.ts +1 -0
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common/button-common.js +52 -28
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.d.ts +1 -0
- package/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/button/mini-button/mini-button.component.js +20 -14
- package/button/secondary-button/secondary-button.component.d.ts +2 -1
- package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
- package/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
- package/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
- package/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
- package/button/transparent-button/transparent-button.component.d.ts +2 -1
- package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
- package/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
- package/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
- package/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
- package/button.js +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.js +4 -4
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/core/a11y/live-announcer.d.ts.map +1 -1
- package/core/a11y/live-announcer.js +10 -8
- package/core/base-elements/link-base-element.d.ts +1 -0
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements/link-base-element.js +18 -17
- package/core/config/config.d.ts +5 -0
- package/core/config/config.d.ts.map +1 -1
- package/core/mixins/selection-panel-mixin.d.ts +23 -0
- package/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/core/mixins/selection-panel-mixin.js +87 -0
- package/core/mixins.d.ts +1 -0
- package/core/mixins.d.ts.map +1 -1
- package/core/mixins.js +12 -10
- package/core/styles/core.scss +42 -7
- package/core.css +22 -1
- package/custom-elements.json +3603 -913
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +2 -2
- package/development/button/accent-button/accent-button.component.d.ts +2 -1
- package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.d.ts +2 -1
- package/development/button/accent-button-link/accent-button-link.component.d.ts.map +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.d.ts +2 -1
- package/development/button/accent-button-static/accent-button-static.component.d.ts.map +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.d.ts +2 -1
- package/development/button/button/button.component.d.ts.map +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.d.ts +2 -1
- package/development/button/button-link/button-link.component.d.ts.map +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.d.ts +2 -1
- package/development/button/button-static/button-static.component.d.ts.map +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.d.ts +1 -0
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common/button-common.js +42 -5
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.d.ts +1 -0
- package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/development/button/mini-button/mini-button.component.js +41 -2
- package/development/button/secondary-button/secondary-button.component.d.ts +2 -1
- package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts +2 -1
- package/development/button/secondary-button-link/secondary-button-link.component.d.ts.map +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts +2 -1
- package/development/button/secondary-button-static/secondary-button-static.component.d.ts.map +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.d.ts +2 -1
- package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts +2 -1
- package/development/button/transparent-button-link/transparent-button-link.component.d.ts.map +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts +2 -1
- package/development/button/transparent-button-static/transparent-button-static.component.d.ts.map +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/button.js +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.js +2 -2
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -0
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +1 -1
- package/development/core/a11y/live-announcer.d.ts.map +1 -1
- package/development/core/a11y/live-announcer.js +10 -6
- package/development/core/base-elements/link-base-element.d.ts +1 -0
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements/link-base-element.js +3 -1
- package/development/core/config/config.d.ts +5 -0
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/mixins/selection-panel-mixin.d.ts +23 -0
- package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -0
- package/development/core/mixins/selection-panel-mixin.js +120 -0
- package/development/core/mixins.d.ts +1 -0
- package/development/core/mixins.d.ts.map +1 -1
- package/development/core/mixins.js +7 -5
- package/development/dialog/dialog/dialog.component.d.ts +4 -2
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +61 -11
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +10 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +53 -0
- package/development/dialog/dialog-close-button.d.ts +5 -0
- package/development/dialog/dialog-close-button.d.ts.map +1 -0
- package/development/dialog/dialog-close-button.js +5 -0
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.d.ts +1 -0
- package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +6 -2
- package/development/dialog.d.ts +1 -0
- package/development/dialog.d.ts.map +1 -1
- package/development/dialog.js +3 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -2
- package/development/form-field/form-field/form-field.component.d.ts +23 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +39 -12
- package/development/form-field/form-field.js +2 -1
- package/development/form-field.js +2 -1
- package/development/header/header-environment/header-environment.component.d.ts +23 -0
- package/development/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/development/header/header-environment/header-environment.component.js +111 -0
- package/development/header/header-environment.d.ts +5 -0
- package/development/header/header-environment.d.ts.map +1 -0
- package/development/header/header-environment.js +5 -0
- package/development/menu/menu/menu.component.d.ts +1 -0
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +2 -2
- package/development/menu/menu-button/menu-button.component.d.ts +1 -0
- package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/development/menu/menu-button/menu-button.component.js +2 -3
- package/development/menu/menu-link/menu-link.component.d.ts +1 -0
- package/development/menu/menu-link/menu-link.component.d.ts.map +1 -1
- package/development/menu/menu-link/menu-link.component.js +5 -1
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +8 -6
- package/development/option/option-hint/option-hint.component.d.ts +18 -0
- package/development/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/development/option/option-hint/option-hint.component.js +74 -0
- package/development/option/option-hint.d.ts +5 -0
- package/development/option/option-hint.d.ts.map +1 -0
- package/development/option/option-hint.js +5 -0
- package/development/option.d.ts +1 -0
- package/development/option.d.ts.map +1 -1
- package/development/option.js +4 -2
- package/development/overlay/overlay-base-element.d.ts +1 -0
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +3 -3
- package/development/popover/popover/popover.component.d.ts +18 -4
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +35 -30
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +7 -7
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +2 -2
- package/development/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/development/selection-action-panel/selection-action-panel.component.js +105 -0
- package/development/selection-action-panel.d.ts +5 -0
- package/development/selection-action-panel.d.ts.map +1 -0
- package/development/selection-action-panel.js +5 -0
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +26 -106
- package/development/{transparent-button-Ddb_s0a0.js → transparent-button-Dun6bh2G.js} +89 -8
- package/dialog/dialog/dialog.component.d.ts +4 -2
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +63 -56
- package/dialog/dialog-actions/dialog-actions.component.d.ts +1 -0
- package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/dialog/dialog-actions/dialog-actions.component.js +13 -9
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts +22 -0
- package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -0
- package/dialog/dialog-close-button/dialog-close-button.component.js +31 -0
- package/dialog/dialog-close-button.d.ts +5 -0
- package/dialog/dialog-close-button.d.ts.map +1 -0
- package/dialog/dialog-close-button.js +4 -0
- package/dialog/dialog-content/dialog-content.component.js +6 -6
- package/dialog/dialog-title/dialog-title.component.d.ts +1 -0
- package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/dialog/dialog-title/dialog-title.component.js +11 -8
- package/dialog.d.ts +1 -0
- package/dialog.d.ts.map +1 -1
- package/dialog.js +6 -4
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +7 -7
- package/form-field/form-field/form-field.component.d.ts +23 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +52 -41
- package/form-field/form-field.js +3 -2
- package/form-field.js +5 -4
- package/header/header-environment/header-environment.component.d.ts +23 -0
- package/header/header-environment/header-environment.component.d.ts.map +1 -0
- package/header/header-environment/header-environment.component.js +37 -0
- package/header/header-environment.d.ts +5 -0
- package/header/header-environment.d.ts.map +1 -0
- package/header/header-environment.js +4 -0
- package/index.d.ts +8 -0
- package/index.js +8 -0
- package/menu/menu/menu.component.d.ts +1 -0
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +1 -1
- package/menu/menu-button/menu-button.component.d.ts +1 -0
- package/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/menu/menu-button/menu-button.component.js +8 -8
- package/menu/menu-link/menu-link.component.d.ts +1 -0
- package/menu/menu-link/menu-link.component.d.ts.map +1 -1
- package/menu/menu-link/menu-link.component.js +9 -6
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup/optgroup-base-element.js +19 -17
- package/option/option-hint/option-hint.component.d.ts +18 -0
- package/option/option-hint/option-hint.component.d.ts.map +1 -0
- package/option/option-hint/option-hint.component.js +27 -0
- package/option/option-hint.d.ts +5 -0
- package/option/option-hint.d.ts.map +1 -0
- package/option/option-hint.js +4 -0
- package/option.d.ts +1 -0
- package/option.d.ts.map +1 -1
- package/option.js +5 -3
- package/overlay/overlay-base-element.d.ts +1 -0
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay-base-element.js +21 -21
- package/package.json +23 -3
- package/popover/popover/popover.component.d.ts +18 -4
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +104 -95
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -3
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/radio-button/radio-button-panel/radio-button-panel.component.js +9 -9
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +1 -1
- package/selection-action-panel/selection-action-panel.component.d.ts +22 -0
- package/selection-action-panel/selection-action-panel.component.d.ts.map +1 -0
- package/selection-action-panel/selection-action-panel.component.js +34 -0
- package/selection-action-panel.d.ts +5 -0
- package/selection-action-panel.d.ts.map +1 -0
- package/selection-action-panel.js +4 -0
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts +4 -24
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +45 -102
- package/standard-theme.css +22 -1
- package/transparent-button-rf30m88X.js +9 -0
- package/transparent-button-BlbvexCb.js +0 -9
|
@@ -4,24 +4,24 @@ var G = (i) => {
|
|
|
4
4
|
var k = (i, a, s) => a.has(i) || G("Cannot " + s);
|
|
5
5
|
var c = (i, a, s) => (k(i, a, "read from private field"), s ? s.call(i) : a.get(i)), h = (i, a, s) => a.has(i) ? G("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, s), g = (i, a, s, n) => (k(i, a, "write to private field"), n ? n.call(i, s) : a.set(i, s), s);
|
|
6
6
|
import { __esDecorate as v, __runInitializers as l } from "tslib";
|
|
7
|
-
import { MutationController as
|
|
8
|
-
import { css as
|
|
9
|
-
import { property as
|
|
10
|
-
import { forceType as
|
|
11
|
-
import { isSafari as
|
|
12
|
-
import { SbbDisabledMixin as
|
|
7
|
+
import { MutationController as w } from "@lit-labs/observers/mutation-controller.js";
|
|
8
|
+
import { css as C, LitElement as L, nothing as O, html as z } from "lit";
|
|
9
|
+
import { property as S, state as T } from "lit/decorators.js";
|
|
10
|
+
import { forceType as D } from "../../core/decorators.js";
|
|
11
|
+
import { isSafari as I } from "../../core/dom.js";
|
|
12
|
+
import { SbbDisabledMixin as M, SbbElementInternalsMixin as U, SbbHydrationMixin as $ } from "../../core/mixins.js";
|
|
13
13
|
import "../../divider.js";
|
|
14
|
-
const q =
|
|
15
|
-
let
|
|
14
|
+
const q = C`*,:before,:after{box-sizing:border-box}:host{--sbb-optgroup-divider-display: block;--sbb-optgroup-label-padding-end: var(--sbb-spacing-fixed-2x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-optgroup-label-font-size: var(--sbb-typo-scale-0-75x);--sbb-optgroup-label-color: var(--sbb-color-metal);display:block}:host(:first-child){--sbb-optgroup-divider-display: none}:host([data-variant=select]){--sbb-optgroup-label-font-size: inherit}:host([data-negative]){--sbb-optgroup-label-color: var(--sbb-color-smoke)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block-end:var(--sbb-optgroup-label-padding-end)}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display);padding-block:var(--sbb-options-panel-divider-margin-block)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}`, u = I;
|
|
15
|
+
let V = (() => {
|
|
16
16
|
var b, p, d, r;
|
|
17
|
-
let i =
|
|
17
|
+
let i = M(U($(L))), a, s = [], n = [], _, f = [], m = [], x, y = [], A = [];
|
|
18
18
|
return r = class extends i {
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
21
|
h(this, b, l(this, s, ""));
|
|
22
22
|
h(this, p, (l(this, n), l(this, f, !1)));
|
|
23
23
|
h(this, d, (l(this, m), l(this, y, !1)));
|
|
24
|
-
l(this, A), this.addController(new
|
|
24
|
+
l(this, A), this.addController(new w(this, {
|
|
25
25
|
config: {
|
|
26
26
|
attributes: !0,
|
|
27
27
|
attributeFilter: ["data-negative"]
|
|
@@ -86,20 +86,22 @@ let Q = (() => {
|
|
|
86
86
|
this.negative = this.hasAttribute("data-negative");
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return
|
|
89
|
+
return z`
|
|
90
90
|
<div class="sbb-optgroup__divider">
|
|
91
91
|
<sbb-divider ?negative=${this.negative}></sbb-divider>
|
|
92
92
|
</div>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
${this.label ? z`
|
|
94
|
+
<div class="sbb-optgroup__label" aria-hidden="true">
|
|
95
|
+
<div class="sbb-optgroup__icon-space"></div>
|
|
96
|
+
<span>${this.label}</span>
|
|
97
|
+
</div>
|
|
98
|
+
` : O}
|
|
97
99
|
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
98
100
|
`;
|
|
99
101
|
}
|
|
100
102
|
}, b = new WeakMap(), p = new WeakMap(), d = new WeakMap(), (() => {
|
|
101
103
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
102
|
-
a = [
|
|
104
|
+
a = [D(), S()], _ = [T()], x = [T()], v(r, null, a, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, o) => {
|
|
103
105
|
e.label = o;
|
|
104
106
|
} }, metadata: t }, s, n), v(r, null, _, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (e) => "negative" in e, get: (e) => e.negative, set: (e, o) => {
|
|
105
107
|
e.negative = o;
|
|
@@ -109,5 +111,5 @@ let Q = (() => {
|
|
|
109
111
|
})(), r.role = u ? null : "group", r.styles = q, r;
|
|
110
112
|
})();
|
|
111
113
|
export {
|
|
112
|
-
|
|
114
|
+
V as SbbOptgroupBaseElement
|
|
113
115
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSResultGroup, TemplateResult, LitElement } from 'lit';
|
|
2
|
+
declare const SbbOptionHintElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbNegativeMixinType> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Display a textual hint inside a `sbb-autocomplete` or a `sbb-select`.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Use the unnamed slot to display the hint message.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SbbOptionHintElement extends SbbOptionHintElement_base {
|
|
9
|
+
static styles: CSSResultGroup;
|
|
10
|
+
protected render(): TemplateResult;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'sbb-option-hint': SbbOptionHintElement;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=option-hint.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-hint.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option-hint/option-hint.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAOvC;;;;GAIG;AACH,qBAEM,oBAAqB,SAAQ,yBAA4B;IAC7D,OAAuB,MAAM,EAAE,cAAc,CAAS;cAEnC,MAAM,IAAI,cAAc;CAU5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __esDecorate as b, __runInitializers as l } from "tslib";
|
|
2
|
+
import { css as r, LitElement as p, html as c } from "lit";
|
|
3
|
+
import { customElement as d } from "lit/decorators.js";
|
|
4
|
+
import { SbbNegativeMixin as m } from "../../core/mixins.js";
|
|
5
|
+
const v = r`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-option-hint-color: var(--sbb-color-metal);--sbb-option-hint-column-gap: var(--sbb-spacing-responsive-xxxs);--sbb-option-hint-padding-block-end: var(--sbb-spacing-fixed-2x);--sbb-option-hint-padding-inline: var(--sbb-spacing-responsive-xxxs)}:host([negative]){--sbb-option-hint-color: var(--sbb-color-smoke)}.sbb-option-hint__wrapper{display:flex;column-gap:var(--sbb-option-hint-column-gap);padding-inline:var(--sbb-option-hint-padding-inline);padding-block-end:var(--sbb-option-hint-padding-block-end)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}.sbb-option-hint{--sbb-text-font-size: var(--sbb-font-size-text-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);color:var(--sbb-option-hint-color);-webkit-text-fill-color:var(--sbb-option-hint-color)}`;
|
|
6
|
+
let x = (() => {
|
|
7
|
+
var i;
|
|
8
|
+
let a = [d("sbb-option-hint")], e, n = [], t, s = m(p);
|
|
9
|
+
return i = class extends s {
|
|
10
|
+
render() {
|
|
11
|
+
return c`
|
|
12
|
+
<div class="sbb-option-hint__wrapper">
|
|
13
|
+
<div class="sbb-optgroup__icon-space"></div>
|
|
14
|
+
<span class="sbb-option-hint">
|
|
15
|
+
<slot></slot>
|
|
16
|
+
</span>
|
|
17
|
+
</div>
|
|
18
|
+
`;
|
|
19
|
+
}
|
|
20
|
+
}, t = i, (() => {
|
|
21
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
|
|
22
|
+
b(null, e = { value: t }, a, { kind: "class", name: t.name, metadata: o }, null, n), t = e.value, o && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
23
|
+
})(), i.styles = v, l(t, n), t;
|
|
24
|
+
})();
|
|
25
|
+
export {
|
|
26
|
+
x as SbbOptionHintElement
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-hint.d.ts","sourceRoot":"","sources":["../../../src/elements/option/option-hint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,wCAAwC,CAAC"}
|
package/option.d.ts
CHANGED
package/option.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../src/elements/option.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../src/elements/option.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
package/option.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { SbbOptGroupElement as
|
|
1
|
+
import { SbbOptGroupElement as o } from "./option/optgroup/optgroup.component.js";
|
|
2
2
|
import { SbbOptgroupBaseElement as r } from "./option/optgroup/optgroup-base-element.js";
|
|
3
3
|
import { SbbOptionElement as m } from "./option/option/option.component.js";
|
|
4
4
|
import { SbbOptionBaseElement as f } from "./option/option/option-base-element.js";
|
|
5
|
+
import { SbbOptionHintElement as x } from "./option/option-hint/option-hint.component.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
o as SbbOptGroupElement,
|
|
7
8
|
r as SbbOptgroupBaseElement,
|
|
8
9
|
f as SbbOptionBaseElement,
|
|
9
|
-
m as SbbOptionElement
|
|
10
|
+
m as SbbOptionElement,
|
|
11
|
+
x as SbbOptionHintElement
|
|
10
12
|
};
|
|
@@ -35,6 +35,7 @@ export declare abstract class SbbOverlayBaseElement extends SbbOverlayBaseElemen
|
|
|
35
35
|
private _triggerElement;
|
|
36
36
|
private _triggerAbortController;
|
|
37
37
|
protected abstract closeAttribute: string;
|
|
38
|
+
protected closeTag?: string;
|
|
38
39
|
protected abstract handleOpening(): void;
|
|
39
40
|
protected abstract handleClosing(): void;
|
|
40
41
|
protected abstract isZeroAnimationDuration(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/overlay/overlay-base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA6B,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AASzE,eAAO,MAAM,WAAW,EAAE,qBAAqB,EAAO,CAAC;;AAEvD,8BAAsB,qBAAsB,SAAQ,0BAAyC;IAC3F;;;;OAIG;IACH,SAEgB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnD,kHAAkH;IAClH,SAEgB,kBAAkB,EAAE,MAAM,CAAM;IAEhD;;;;OAIG;IACH,SAEgB,oBAAoB,EAAE,OAAO,CAAS;IAGtD,SAAS,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC;IAC3C,SAAS,CAAC,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAC5C,SAAS,CAAC,qBAAqB,EAAG,eAAe,CAAC;IAClD,SAAS,CAAC,mBAAmB,yBAAoC;IACjE,SAAS,CAAC,aAAa,mBAA0B;IACjD,SAAS,CA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AI;IACxC,SAAS,CAAC,QAAQ,CAAC,uBAAuB,IAAI,OAAO;IAErD,2BAA2B;IACpB,IAAI,IAAI,IAAI;IA2BnB,4BAA4B;IACrB,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,GAAG;IA0BrC,iBAAiB,IAAI,IAAI;IASzC,OAAO,CAAC,iBAAiB;cAoBN,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ9D,oBAAoB,IAAI,IAAI;IAS5B,aAAa,CAC3B,IAAI,CAAC,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;IAQP,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAiBzC,SAAS,CAAC,kCAAkC,IAAI,IAAI;IAKpD,SAAS,CAAC,2BAA2B,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IA0BzD,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAI1C,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAarD,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;cAQzC,wBAAwB,CAAC,MAAM,CAAC,EAAE,2BAA2B,GAAG,OAAO;cAOvE,kBAAkB,CAAC,MAAM,CAAC,EAAE,2BAA2B,GAAG,OAAO;CAIrF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var A = (i) => {
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
|
-
var k = (i,
|
|
5
|
-
var
|
|
4
|
+
var k = (i, s, r) => s.has(i) || A("Cannot " + r);
|
|
5
|
+
var p = (i, s, r) => (k(i, s, "read from private field"), r ? r.call(i) : s.get(i)), b = (i, s, r) => s.has(i) ? A("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, r), l = (i, s, r, u) => (k(i, s, "write to private field"), u ? u.call(i, r) : s.set(i, r), r);
|
|
6
6
|
import { __runInitializers as g, __esDecorate as f } from "tslib";
|
|
7
7
|
import { isServer as O } from "lit";
|
|
8
8
|
import { property as v } from "lit/decorators.js";
|
|
@@ -13,18 +13,18 @@ import { idReference as I, forceType as w } from "../core/decorators.js";
|
|
|
13
13
|
import { SbbScrollHandler as U } from "../core/dom.js";
|
|
14
14
|
import { i18nDialog as D } from "../core/i18n.js";
|
|
15
15
|
import { SbbNegativeMixin as H } from "../core/mixins.js";
|
|
16
|
-
import { removeAriaOverlayTriggerAttributes as
|
|
17
|
-
const
|
|
16
|
+
import { removeAriaOverlayTriggerAttributes as N, setAriaOverlayTriggerAttributes as $ } from "../core/overlay.js";
|
|
17
|
+
const m = [];
|
|
18
18
|
let Y = (() => {
|
|
19
19
|
var n, c, h, a;
|
|
20
|
-
let i = H(S),
|
|
20
|
+
let i = H(S), s, r = [], u = [], _, C = [], y = [], E, L = [], R = [];
|
|
21
21
|
return a = class extends i {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
l(this, n, g(this,
|
|
24
|
+
b(this, n);
|
|
25
|
+
b(this, c);
|
|
26
|
+
b(this, h);
|
|
27
|
+
l(this, n, g(this, r, null)), l(this, c, (g(this, u), g(this, C, ""))), l(this, h, (g(this, y), g(this, L, !1))), this.lastFocusedElement = g(this, R), this.focusTrapController = new F(this), this.scrollHandler = new U(), this.language = new T(this), this.inertController = new x(this), this.escapableOverlayController = new z(this), this._ariaLiveRefToggle = !1, this._triggerElement = null;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* The element that will trigger the menu overlay.
|
|
@@ -32,14 +32,14 @@ let Y = (() => {
|
|
|
32
32
|
* For attribute usage, provide an id reference.
|
|
33
33
|
*/
|
|
34
34
|
get trigger() {
|
|
35
|
-
return
|
|
35
|
+
return p(this, n);
|
|
36
36
|
}
|
|
37
37
|
set trigger(e) {
|
|
38
38
|
l(this, n, e);
|
|
39
39
|
}
|
|
40
40
|
/** This will be forwarded as aria-label to the relevant nested element to describe the purpose of the overlay. */
|
|
41
41
|
get accessibilityLabel() {
|
|
42
|
-
return
|
|
42
|
+
return p(this, c);
|
|
43
43
|
}
|
|
44
44
|
set accessibilityLabel(e) {
|
|
45
45
|
l(this, c, e);
|
|
@@ -50,14 +50,14 @@ let Y = (() => {
|
|
|
50
50
|
* you provide your own equivalent, if you decide to turn it off.
|
|
51
51
|
*/
|
|
52
52
|
get skipFocusRestoration() {
|
|
53
|
-
return
|
|
53
|
+
return p(this, h);
|
|
54
54
|
}
|
|
55
55
|
set skipFocusRestoration(e) {
|
|
56
56
|
l(this, h, e);
|
|
57
57
|
}
|
|
58
58
|
/** Opens the component. */
|
|
59
59
|
open() {
|
|
60
|
-
this.state === "closed" && (this.lastFocusedElement = document.activeElement, this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._triggerElement?.setAttribute("aria-expanded", "true"),
|
|
60
|
+
this.state === "closed" && (this.lastFocusedElement = document.activeElement, this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._triggerElement?.setAttribute("aria-expanded", "true"), m.push(this), this.scrollHandler.disableScroll(), this.isZeroAnimationDuration() && this.handleOpening()));
|
|
61
61
|
}
|
|
62
62
|
/** Closes the component. */
|
|
63
63
|
close(e, t) {
|
|
@@ -75,7 +75,7 @@ let Y = (() => {
|
|
|
75
75
|
}
|
|
76
76
|
// Check if the trigger is valid and attach click event listeners.
|
|
77
77
|
_configureTrigger() {
|
|
78
|
-
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(),
|
|
78
|
+
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(), N(this._triggerElement), this._triggerElement = this.trigger, this._triggerElement && ($(this._triggerElement, "dialog", this.id, this.state), this._triggerAbortController = new AbortController(), this._triggerElement.addEventListener("click", () => this.open(), {
|
|
79
79
|
signal: this._triggerAbortController.signal
|
|
80
80
|
})));
|
|
81
81
|
}
|
|
@@ -98,15 +98,15 @@ let Y = (() => {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
removeInstanceFromGlobalCollection() {
|
|
101
|
-
|
|
101
|
+
m.splice(m.indexOf(this), 1);
|
|
102
102
|
}
|
|
103
103
|
// Close the component on click of any element that has the `closeAttribute` attribute.
|
|
104
104
|
closeOnSbbOverlayCloseClick(e) {
|
|
105
|
-
const t = e.composedPath().filter((
|
|
106
|
-
if (!t)
|
|
105
|
+
const t = e.composedPath().filter((d) => d instanceof window.HTMLElement).find((d) => (d.hasAttribute(this.closeAttribute) || d.localName === this.closeTag) && !d.hasAttribute("disabled"));
|
|
106
|
+
if (!t || t.closest(this.localName) !== this && !this.shadowRoot?.contains(t))
|
|
107
107
|
return;
|
|
108
108
|
const o = t.getAttribute("type") === "submit" ? t.form ?? null : null;
|
|
109
|
-
|
|
109
|
+
m[m.length - 1].close(o, t);
|
|
110
110
|
}
|
|
111
111
|
removeAriaLiveRefContent() {
|
|
112
112
|
this._ariaLiveRef.textContent = "";
|
|
@@ -128,9 +128,9 @@ let Y = (() => {
|
|
|
128
128
|
}
|
|
129
129
|
}, n = new WeakMap(), c = new WeakMap(), h = new WeakMap(), (() => {
|
|
130
130
|
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
131
|
-
|
|
131
|
+
s = [I(), v()], _ = [w(), v({ attribute: "accessibility-label" })], E = [w(), v({ type: Boolean })], f(a, null, s, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (t) => "trigger" in t, get: (t) => t.trigger, set: (t, o) => {
|
|
132
132
|
t.trigger = o;
|
|
133
|
-
} }, metadata: e },
|
|
133
|
+
} }, metadata: e }, r, u), f(a, null, _, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, o) => {
|
|
134
134
|
t.accessibilityLabel = o;
|
|
135
135
|
} }, metadata: e }, C, y), f(a, null, E, { kind: "accessor", name: "skipFocusRestoration", static: !1, private: !1, access: { has: (t) => "skipFocusRestoration" in t, get: (t) => t.skipFocusRestoration, set: (t, o) => {
|
|
136
136
|
t.skipFocusRestoration = o;
|
|
@@ -139,5 +139,5 @@ let Y = (() => {
|
|
|
139
139
|
})();
|
|
140
140
|
export {
|
|
141
141
|
Y as SbbOverlayBaseElement,
|
|
142
|
-
|
|
142
|
+
m as overlayRefs
|
|
143
143
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"customElements": "custom-elements.json",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lit-labs/observers": "^2.0.
|
|
15
|
-
"lit": "^3.3.
|
|
14
|
+
"@lit-labs/observers": "^2.0.6",
|
|
15
|
+
"lit": "^3.3.1",
|
|
16
16
|
"tslib": "^2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
@@ -467,6 +467,11 @@
|
|
|
467
467
|
"development": "./development/dialog/dialog-actions.js",
|
|
468
468
|
"default": "./dialog/dialog-actions.js"
|
|
469
469
|
},
|
|
470
|
+
"./dialog/dialog-close-button.js": {
|
|
471
|
+
"types": "./development/dialog/dialog-close-button.d.ts",
|
|
472
|
+
"development": "./development/dialog/dialog-close-button.js",
|
|
473
|
+
"default": "./dialog/dialog-close-button.js"
|
|
474
|
+
},
|
|
470
475
|
"./dialog/dialog-content.js": {
|
|
471
476
|
"types": "./development/dialog/dialog-content.d.ts",
|
|
472
477
|
"development": "./development/dialog/dialog-content.js",
|
|
@@ -587,6 +592,11 @@
|
|
|
587
592
|
"development": "./development/header/header-button.js",
|
|
588
593
|
"default": "./header/header-button.js"
|
|
589
594
|
},
|
|
595
|
+
"./header/header-environment.js": {
|
|
596
|
+
"types": "./development/header/header-environment.d.ts",
|
|
597
|
+
"development": "./development/header/header-environment.js",
|
|
598
|
+
"default": "./header/header-environment.js"
|
|
599
|
+
},
|
|
590
600
|
"./header/header-link.js": {
|
|
591
601
|
"types": "./development/header/header-link.d.ts",
|
|
592
602
|
"development": "./development/header/header-link.js",
|
|
@@ -782,6 +792,11 @@
|
|
|
782
792
|
"development": "./development/option/option.js",
|
|
783
793
|
"default": "./option/option.js"
|
|
784
794
|
},
|
|
795
|
+
"./option/option-hint.js": {
|
|
796
|
+
"types": "./development/option/option-hint.d.ts",
|
|
797
|
+
"development": "./development/option/option-hint.js",
|
|
798
|
+
"default": "./option/option-hint.js"
|
|
799
|
+
},
|
|
785
800
|
"./overlay.js": {
|
|
786
801
|
"types": "./development/overlay.d.ts",
|
|
787
802
|
"development": "./development/overlay.js",
|
|
@@ -857,6 +872,11 @@
|
|
|
857
872
|
"development": "./development/select.js",
|
|
858
873
|
"default": "./select.js"
|
|
859
874
|
},
|
|
875
|
+
"./selection-action-panel.js": {
|
|
876
|
+
"types": "./development/selection-action-panel.d.ts",
|
|
877
|
+
"development": "./development/selection-action-panel.js",
|
|
878
|
+
"default": "./selection-action-panel.js"
|
|
879
|
+
},
|
|
860
880
|
"./selection-expansion-panel.js": {
|
|
861
881
|
"types": "./development/selection-expansion-panel.d.ts",
|
|
862
882
|
"development": "./development/selection-expansion-panel.js",
|
|
@@ -64,10 +64,24 @@ export declare class SbbPopoverElement extends SbbPopoverBaseElement {
|
|
|
64
64
|
accessor hideCloseButton: boolean;
|
|
65
65
|
/** Whether the popover should be triggered on hover. */
|
|
66
66
|
accessor hoverTrigger: boolean;
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Open the popover after a given delay in milliseconds.
|
|
69
|
+
* Global configuration is used as default, if not set.
|
|
70
|
+
*
|
|
71
|
+
* @default 0
|
|
72
|
+
*/
|
|
73
|
+
set openDelay(value: number);
|
|
74
|
+
get openDelay(): number;
|
|
75
|
+
private _openDelay?;
|
|
76
|
+
/**
|
|
77
|
+
* Close the popover after a given delay in milliseconds.
|
|
78
|
+
* Global configuration is used as default, if not set.
|
|
79
|
+
*
|
|
80
|
+
* @default 0
|
|
81
|
+
*/
|
|
82
|
+
set closeDelay(value: number);
|
|
83
|
+
get closeDelay(): number;
|
|
84
|
+
private _closeDelay?;
|
|
71
85
|
/** This will be forwarded as aria-label to the close button element. */
|
|
72
86
|
accessor accessibilityCloseLabel: string;
|
|
73
87
|
private _hoverTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/popover/popover/popover.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAW/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/popover/popover/popover.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAW/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAsBtE,OAAO,kCAAkC,CAAC;;AAU1C,8BAAsB,qBAAsB,SAAQ,0BAA0C;IAC5F,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,SAEgB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAGnD,OAAO,CAAC,mBAAmB,CAAC,CAAc;IAC1C,OAAO,CAAC,eAAe,CAAkB;IACzC,O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