@skf-design-system/ui-components 1.0.0-beta.7 → 1.0.1-beta.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/dist/components/alert/alert.component.d.ts +2 -2
- package/dist/components/alert/alert.component.js +34 -34
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +29 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +25 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +1 -0
- package/dist/components/button/button.component.d.ts +6 -4
- package/dist/components/button/button.component.js +87 -70
- package/dist/components/button/button.styles.js +64 -45
- package/dist/components/checkbox/checkbox.component.d.ts +3 -1
- package/dist/components/checkbox/checkbox.component.js +71 -58
- package/dist/components/date-picker/datepicker.calendar.component.d.ts +72 -0
- package/dist/components/date-picker/datepicker.calendar.component.js +382 -0
- package/dist/components/date-picker/datepicker.calendar.styles.d.ts +1 -0
- package/dist/components/date-picker/datepicker.calendar.styles.js +192 -0
- package/dist/components/date-picker/datepicker.component.d.ts +74 -0
- package/dist/components/date-picker/datepicker.component.js +241 -0
- package/dist/components/date-picker/datepicker.d.ts +10 -0
- package/dist/components/date-picker/datepicker.helpers.d.ts +40 -0
- package/dist/components/date-picker/datepicker.helpers.js +69 -0
- package/dist/components/date-picker/datepicker.js +8 -0
- package/dist/components/date-picker/datepicker.styles.d.ts +1 -0
- package/dist/components/date-picker/datepicker.styles.js +99 -0
- package/dist/components/date-picker-input/datepicker-input.component.d.ts +107 -0
- package/dist/components/date-picker-input/datepicker-input.component.js +397 -0
- package/dist/components/date-picker-input/datepicker-input.d.ts +8 -0
- package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +4 -0
- package/dist/components/date-picker-input/datepicker-input.helpers.js +29 -0
- package/dist/components/date-picker-input/datepicker-input.js +6 -0
- package/dist/components/date-picker-input/datepicker-input.styles.d.ts +1 -0
- package/dist/components/date-picker-input/datepicker-input.styles.js +22 -0
- package/dist/components/dialog/dialog.component.d.ts +0 -1
- package/dist/components/dialog/dialog.component.js +2 -4
- package/dist/components/icon/icon.component.d.ts +1 -4
- package/dist/components/icon/icon.component.js +28 -19
- package/dist/components/icon/icon.styles.js +53 -47
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/input/input.component.js +87 -80
- package/dist/components/link/link.component.d.ts +1 -0
- package/dist/components/link/link.component.js +21 -21
- package/dist/components/menu/menu.component.d.ts +24 -0
- package/dist/components/menu/menu.component.js +18 -0
- package/dist/components/menu/menu.d.ts +8 -0
- package/dist/components/menu/menu.js +6 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.js +11 -0
- package/dist/components/menu-item/menu-item.component.d.ts +25 -0
- package/dist/components/menu-item/menu-item.component.js +13 -0
- package/dist/components/menu-item/menu-item.d.ts +8 -0
- package/dist/components/menu-item/menu-item.js +6 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
- package/dist/components/menu-item/menu-item.styles.js +19 -0
- package/dist/components/popover/popover.component.d.ts +29 -0
- package/dist/components/popover/popover.component.js +37 -0
- package/dist/components/popover/popover.d.ts +8 -0
- package/dist/components/popover/popover.js +6 -0
- package/dist/components/popover/popover.styles.d.ts +1 -0
- package/dist/components/popover/popover.styles.js +12 -0
- package/dist/components/select/select.component.d.ts +8 -10
- package/dist/components/select/select.component.js +115 -118
- package/dist/components/select/select.controllers.d.ts +0 -25
- package/dist/components/select/select.controllers.js +35 -95
- package/dist/components/stepper/stepper.component.d.ts +38 -0
- package/dist/components/stepper/stepper.component.js +91 -0
- package/dist/components/stepper/stepper.d.ts +8 -0
- package/dist/components/stepper/stepper.helpers.d.ts +16 -0
- package/dist/components/stepper/stepper.helpers.js +18 -0
- package/dist/components/stepper/stepper.js +6 -0
- package/dist/components/stepper/stepper.styles.d.ts +1 -0
- package/dist/components/stepper/stepper.styles.js +15 -0
- package/dist/components/stepper-item/stepper-item.component.d.ts +47 -0
- package/dist/components/stepper-item/stepper-item.component.js +113 -0
- package/dist/components/stepper-item/stepper-item.d.ts +8 -0
- package/dist/components/stepper-item/stepper-item.js +6 -0
- package/dist/components/stepper-item/stepper-item.styles.d.ts +1 -0
- package/dist/components/stepper-item/stepper-item.styles.js +98 -0
- package/dist/components/toast/toast.component.d.ts +7 -4
- package/dist/components/toast/toast.component.js +24 -20
- package/dist/components/toast/toast.singleton.d.ts +2 -7
- package/dist/components/toast/toast.singleton.js +25 -25
- package/dist/components/toast-item/toast-item.component.js +15 -15
- package/dist/components/toast-item/toast-item.styles.js +13 -11
- package/dist/components/tooltip/tooltip.component.d.ts +24 -0
- package/dist/components/tooltip/tooltip.component.js +18 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +6 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
- package/dist/components/tooltip/tooltip.styles.js +12 -0
- package/dist/custom-elements.json +3278 -1321
- package/dist/index.d.ts +8 -0
- package/dist/index.js +78 -54
- package/dist/internal/base-classes/popover/popover.base.d.ts +29 -0
- package/dist/internal/base-classes/popover/popover.base.js +116 -0
- package/dist/internal/base-classes/popover/popover.styles.d.ts +1 -0
- package/dist/internal/base-classes/popover/popover.styles.js +29 -0
- package/dist/internal/controllers/popover.controller.d.ts +17 -0
- package/dist/internal/controllers/popover.controller.js +44 -0
- package/dist/internal/helpers/dateFormatter.d.ts +2 -0
- package/dist/internal/helpers/hintSeverity.d.ts +1 -1
- package/dist/internal/helpers/utilityTypes.d.ts +22 -0
- package/dist/react/index.d.ts +11 -2
- package/dist/react/index.js +11 -2
- package/dist/react/skf-breadcrumb/index.d.ts +9 -0
- package/dist/react/skf-breadcrumb/index.js +17 -0
- package/dist/react/skf-breadcrumb-item/index.d.ts +3 -0
- package/dist/react/skf-breadcrumb-item/index.js +13 -0
- package/dist/react/skf-datepicker/index.d.ts +12 -0
- package/dist/react/skf-datepicker/index.js +18 -0
- package/dist/react/skf-menu/index.d.ts +12 -0
- package/dist/react/skf-menu/index.js +18 -0
- package/dist/react/skf-menu-item/index.d.ts +27 -0
- package/dist/react/skf-menu-item/index.js +23 -0
- package/dist/react/skf-popover/index.d.ts +12 -0
- package/dist/react/skf-popover/index.js +18 -0
- package/dist/react/skf-stepper/index.d.ts +9 -0
- package/dist/react/skf-stepper/index.js +17 -0
- package/dist/react/skf-stepper-item/index.d.ts +9 -0
- package/dist/react/skf-stepper-item/index.js +17 -0
- package/dist/react/skf-tooltip/index.d.ts +12 -0
- package/dist/react/skf-tooltip/index.js +18 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +628 -155
- package/dist/types/vue/index.d.ts +369 -74
- package/dist/vscode.html-custom-data.json +761 -391
- package/dist/web-types.json +936 -293
- package/package.json +34 -33
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { SkfAlert } from '../alert/alert.component.js';
|
1
2
|
import { SkfElement } from '../../internal/components/skf-element';
|
2
3
|
import { type CSSResultGroup } from 'lit';
|
3
4
|
/**
|
@@ -18,11 +19,13 @@ import { type CSSResultGroup } from 'lit';
|
|
18
19
|
export declare class SkfToast extends SkfElement {
|
19
20
|
static styles: CSSResultGroup;
|
20
21
|
private _singleton?;
|
21
|
-
/** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
|
22
|
-
closeable: boolean;
|
23
22
|
debug: boolean;
|
24
|
-
/**
|
25
|
-
|
23
|
+
/** If defined, displays leading icon */
|
24
|
+
icon?: SkfAlert['icon'];
|
25
|
+
/** If true, renders with an close button and sets aria-role to `status` */
|
26
|
+
persistent: SkfAlert['persistent'];
|
27
|
+
/** If defined, gives the supplied appearance */
|
28
|
+
severity: SkfAlert['severity'];
|
26
29
|
/** Time in seconds before the toast disappears. */
|
27
30
|
timer: number;
|
28
31
|
/** offsets where toasts emerge vertically */
|
@@ -1,26 +1,27 @@
|
|
1
|
-
import { Singleton as
|
1
|
+
import { Singleton as l } from "./toast.singleton.js";
|
2
2
|
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
3
3
|
import { html as f } from "lit";
|
4
4
|
import { property as s, queryAssignedNodes as y } from "lit/decorators.js";
|
5
5
|
import { styles as a } from "./toast.styles.js";
|
6
|
-
var u = Object.defineProperty,
|
7
|
-
for (var
|
8
|
-
(m =
|
9
|
-
return
|
6
|
+
var u = Object.defineProperty, e = (n, o, h, g) => {
|
7
|
+
for (var i = void 0, r = n.length - 1, m; r >= 0; r--)
|
8
|
+
(m = n[r]) && (i = m(o, h, i) || i);
|
9
|
+
return i && u(o, h, i), i;
|
10
10
|
};
|
11
11
|
const p = class p extends d {
|
12
12
|
constructor() {
|
13
|
-
super(), this.
|
13
|
+
super(), this.debug = !1, this.persistent = !1, this.severity = "info", this.timer = 5, this._singleton = void 0;
|
14
14
|
}
|
15
15
|
firstUpdated() {
|
16
|
-
this._singleton = new
|
17
|
-
|
18
|
-
|
19
|
-
closeable: this.closeable,
|
16
|
+
this._singleton = new l(this.getRootNode()), this._singleton.addData({
|
17
|
+
debug: this.debug,
|
18
|
+
icon: this.icon,
|
20
19
|
originEl: this,
|
20
|
+
persistent: this.persistent,
|
21
21
|
severity: this.severity,
|
22
|
-
|
23
|
-
|
22
|
+
text: this._slottedText.map((o) => o.textContent).join(),
|
23
|
+
timer: this.timer = this.timer && this.timer < 5 ? 5 : this.timer,
|
24
|
+
topOffset: this.topOffset
|
24
25
|
});
|
25
26
|
}
|
26
27
|
render() {
|
@@ -29,22 +30,25 @@ const p = class p extends d {
|
|
29
30
|
};
|
30
31
|
p.styles = [a];
|
31
32
|
let t = p;
|
32
|
-
|
33
|
-
s({ type: Boolean })
|
34
|
-
], t.prototype, "closeable");
|
35
|
-
o([
|
33
|
+
e([
|
36
34
|
s({ type: Boolean })
|
37
35
|
], t.prototype, "debug");
|
38
|
-
|
36
|
+
e([
|
37
|
+
s()
|
38
|
+
], t.prototype, "icon");
|
39
|
+
e([
|
40
|
+
s({ type: Boolean })
|
41
|
+
], t.prototype, "persistent");
|
42
|
+
e([
|
39
43
|
s()
|
40
44
|
], t.prototype, "severity");
|
41
|
-
|
45
|
+
e([
|
42
46
|
s({ type: Number })
|
43
47
|
], t.prototype, "timer");
|
44
|
-
|
48
|
+
e([
|
45
49
|
s({ type: Number })
|
46
50
|
], t.prototype, "topOffset");
|
47
|
-
|
51
|
+
e([
|
48
52
|
y()
|
49
53
|
], t.prototype, "_slottedText");
|
50
54
|
export {
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import '../toast-item/toast-item.js';
|
2
2
|
import '../toast-wrapper/toast-wrapper.js';
|
3
3
|
import type { SkfToast } from '../toast/toast.component.js';
|
4
|
-
interface ToastData {
|
5
|
-
text: string;
|
6
|
-
timer: number;
|
7
|
-
closeable: boolean;
|
8
|
-
topOffset?: number;
|
4
|
+
interface ToastData extends Pick<SkfToast, 'debug' | 'icon' | 'persistent' | 'severity' | 'timer' | 'topOffset'> {
|
9
5
|
originEl: SkfToast;
|
10
|
-
|
11
|
-
debug: boolean;
|
6
|
+
text: string;
|
12
7
|
}
|
13
8
|
export declare class Singleton {
|
14
9
|
private static instance?;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import "../toast-item/toast-item.js";
|
2
2
|
import "../toast-wrapper/toast-wrapper.js";
|
3
|
-
class
|
4
|
-
constructor(
|
5
|
-
if (this.data = [], this.root =
|
3
|
+
class r {
|
4
|
+
constructor(e) {
|
5
|
+
if (this.data = [], this.root = e, this.usePopover = !0, this.root.nodeType !== Node.DOCUMENT_NODE)
|
6
6
|
throw new Error("Root node must be a document node");
|
7
|
-
return
|
7
|
+
return r.instance || (r.instance = this), r.instance;
|
8
8
|
}
|
9
9
|
hasToasts() {
|
10
10
|
return this.data.length > 0;
|
@@ -15,39 +15,39 @@ class a {
|
|
15
15
|
getData() {
|
16
16
|
return this.data;
|
17
17
|
}
|
18
|
-
setData(
|
19
|
-
this.data =
|
18
|
+
setData(e) {
|
19
|
+
this.data = e;
|
20
20
|
}
|
21
|
-
addData(
|
22
|
-
this.data = [...this.data,
|
21
|
+
addData(e) {
|
22
|
+
this.data = [...this.data, e], this.udpateUI();
|
23
23
|
}
|
24
24
|
udpateUI() {
|
25
|
-
const
|
26
|
-
this.usePopover &&
|
25
|
+
const e = c(this.root, this.usePopover);
|
26
|
+
this.usePopover && e.showPopover(), u();
|
27
27
|
function u() {
|
28
|
-
const n = new
|
28
|
+
const n = new r(document);
|
29
29
|
for (; n.hasToasts(); ) {
|
30
|
-
const
|
31
|
-
if (!
|
32
|
-
|
30
|
+
const t = n.popToast();
|
31
|
+
if (!t) return;
|
32
|
+
t.debug && (e.debug = !0);
|
33
33
|
const o = document.createElement("skf-toast-item");
|
34
|
-
o.timer =
|
35
|
-
const
|
36
|
-
|
34
|
+
o.className = "toast-item", o.timer = t.timer, o.severity = t.severity, o.icon = t.icon, t.persistent && o.setAttribute("persistent", "true"), o.originEl = t.originEl, o.innerText = String(t.text);
|
35
|
+
const a = document.createElement("div");
|
36
|
+
a.classList.add("toast-item-wrapper"), a.appendChild(o), e.prepend(a);
|
37
37
|
}
|
38
38
|
}
|
39
|
-
function c(n,
|
39
|
+
function c(n, t) {
|
40
40
|
var p;
|
41
|
-
const
|
42
|
-
let
|
43
|
-
if (!
|
44
|
-
if (
|
45
|
-
|
41
|
+
const a = ((p = new r(document).getData()[0]) == null ? void 0 : p.topOffset) ?? null, i = n.querySelector("body");
|
42
|
+
let s = i == null ? void 0 : i.querySelector("skf-toast-wrapper");
|
43
|
+
if (!s) {
|
44
|
+
if (s = document.createElement("skf-toast-wrapper"), !s) throw new Error("Could not create toast wrapper element");
|
45
|
+
t && s.setAttribute("popover", "auto"), a && s.setAttribute("top-offset", a.toString()), document.body.appendChild(s);
|
46
46
|
}
|
47
|
-
return
|
47
|
+
return s;
|
48
48
|
}
|
49
49
|
}
|
50
50
|
}
|
51
51
|
export {
|
52
|
-
|
52
|
+
r as Singleton
|
53
53
|
};
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { SkfAlert as
|
2
|
-
import { MOTION_DURATIONS as
|
3
|
-
import { property as
|
4
|
-
import
|
5
|
-
var d = Object.defineProperty, f = (a, t, e,
|
1
|
+
import { SkfAlert as h } from "../alert/alert.component.js";
|
2
|
+
import { MOTION_DURATIONS as m } from "@skf-design-system/ui-assets";
|
3
|
+
import { property as p } from "lit/decorators.js";
|
4
|
+
import u from "./toast-item.styles.js";
|
5
|
+
var d = Object.defineProperty, f = (a, t, e, l) => {
|
6
6
|
for (var i = void 0, r = a.length - 1, o; r >= 0; r--)
|
7
7
|
(o = a[r]) && (i = o(t, e, i) || i);
|
8
8
|
return i && d(t, e, i), i;
|
9
9
|
};
|
10
|
-
const n = class n extends
|
10
|
+
const n = class n extends h {
|
11
11
|
constructor() {
|
12
12
|
super(), this.timer = 0, this._handleMouseEnter = () => {
|
13
|
-
this._closeableInitialState || (this.
|
13
|
+
this._closeableInitialState || (this.persistent = !0, this._timeleft = this.timer * 1e3 - (Date.now() - this._timeoutStarted), this._currentTimeoutId && clearTimeout(this._currentTimeoutId));
|
14
14
|
}, this._handleMouseLeave = () => {
|
15
|
-
this._closeableInitialState || (this.
|
15
|
+
this._closeableInitialState || (this.persistent = this._closeableInitialState, this._currentTimeoutId = setTimeout(this._removeToast, this._timeleft));
|
16
16
|
}, this._removeToast = () => {
|
17
17
|
const e = this.parentAnimationDiv.animate(
|
18
18
|
[
|
@@ -20,17 +20,17 @@ const n = class n extends l {
|
|
20
20
|
{ gridTemplateRows: "0fr", opacity: 0 }
|
21
21
|
],
|
22
22
|
{
|
23
|
-
duration:
|
23
|
+
duration: m.normal,
|
24
24
|
fill: "forwards"
|
25
25
|
}
|
26
26
|
);
|
27
27
|
e.onfinish = () => {
|
28
28
|
this.originEl && this.originEl.remove(), this.parentAnimationDiv.remove();
|
29
29
|
};
|
30
|
-
}, this.originEl = null, this._parentAnimationDiv = this.parentElement, this._currentTimeoutId = null, this._timeleft = 0, this._timeoutStarted = 0, this._closeableInitialState = !!this.
|
30
|
+
}, this.originEl = null, this._parentAnimationDiv = this.parentElement, this._currentTimeoutId = null, this._timeleft = 0, this._timeoutStarted = 0, this._closeableInitialState = !!this.persistent;
|
31
31
|
}
|
32
32
|
firstUpdated() {
|
33
|
-
this.addEventListener("skf-alert-close", this._removeToast), this.
|
33
|
+
this.addEventListener("skf-alert-close", this._removeToast), this.persistent || (this.addEventListener("mouseenter", this._handleMouseEnter), this.addEventListener("mouseout", this._handleMouseLeave)), this._animateIn();
|
34
34
|
}
|
35
35
|
_animateIn() {
|
36
36
|
const t = this.parentAnimationDiv;
|
@@ -41,12 +41,12 @@ const n = class n extends l {
|
|
41
41
|
{ gridTemplateRows: "1fr", opacity: 1 }
|
42
42
|
],
|
43
43
|
{
|
44
|
-
duration:
|
44
|
+
duration: m.slow,
|
45
45
|
fill: "forwards"
|
46
46
|
}
|
47
47
|
);
|
48
48
|
e.onfinish = () => {
|
49
|
-
this.timer > 0 && !this.
|
49
|
+
this.timer > 0 && !this.persistent && (this._timeoutStarted = Date.now(), this._currentTimeoutId = setTimeout(this._removeToast, this.timer * 1e3));
|
50
50
|
};
|
51
51
|
}
|
52
52
|
get parentAnimationDiv() {
|
@@ -55,10 +55,10 @@ const n = class n extends l {
|
|
55
55
|
return t;
|
56
56
|
}
|
57
57
|
};
|
58
|
-
n.styles = [
|
58
|
+
n.styles = [h.styles, u];
|
59
59
|
let s = n;
|
60
60
|
f([
|
61
|
-
|
61
|
+
p({ type: Number, reflect: !0 })
|
62
62
|
], s.prototype, "timer");
|
63
63
|
export {
|
64
64
|
s as SkfToastItem
|
@@ -1,16 +1,18 @@
|
|
1
|
-
import { css as
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { css as o } from "lit";
|
2
|
+
const a = o`
|
3
|
+
@layer components {
|
4
|
+
:host {
|
5
|
+
overflow: hidden; /* Enable mask transition */
|
6
|
+
padding-block-end: 3px; /* Make room for box-shadow */
|
7
|
+
}
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
.toast-item {
|
10
|
+
background-color: var(--skf-bg-color-neutral-1);
|
11
|
+
border-inline-start: var(--skf-size-8) solid
|
12
|
+
var(--_skf-alert-border-color, var(--skf-border-color-primary));
|
13
|
+
}
|
12
14
|
}
|
13
15
|
`;
|
14
16
|
export {
|
15
|
-
|
17
|
+
a as default
|
16
18
|
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { SkfPopoverBase } from '../../internal/base-classes/popover/popover.base.js';
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
3
|
+
/**
|
4
|
+
* The `<skf-tooltip>` is a component that displays a list of actions or options.
|
5
|
+
*
|
6
|
+
* @documentation See [zeroheight](https://zeroheight.com/****) for design principles
|
7
|
+
*
|
8
|
+
* @property {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} [placement='bottom-start'] - The placement of the dropdown
|
9
|
+
* @property {boolean} [isOpen=false] - Whether the dropdown is open
|
10
|
+
* @property {string} [anchor] - The id of the element the dropdown will be anchored to
|
11
|
+
*
|
12
|
+
* @event open - Fired when the dropdown is opened
|
13
|
+
* @event close - Fired when the dropdown is closed
|
14
|
+
*
|
15
|
+
* @slot - The tooltip popover content
|
16
|
+
*
|
17
|
+
* @tagname skf-tooltip
|
18
|
+
*/
|
19
|
+
export declare class SkfTooltip extends SkfPopoverBase {
|
20
|
+
static styles: CSSResultGroup;
|
21
|
+
constructor();
|
22
|
+
addEventListeners($element: HTMLElement | Element): void;
|
23
|
+
removeEventListeners($element: HTMLElement | Element): void;
|
24
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { styles as o } from "./tooltip.styles.js";
|
2
|
+
import { SkfPopoverBase as s } from "../../internal/base-classes/popover/popover.base.js";
|
3
|
+
const t = class t extends s {
|
4
|
+
constructor() {
|
5
|
+
super(), this.arrow = !0, this.offset = 8, this.placement = "top", s.classMap = { tooltip: !0 };
|
6
|
+
}
|
7
|
+
addEventListeners(e) {
|
8
|
+
e.addEventListener("blur", this.close), e.addEventListener("focus", this.open), e.addEventListener("mouseenter", this.open), e.addEventListener("mouseleave", this.close);
|
9
|
+
}
|
10
|
+
removeEventListeners(e) {
|
11
|
+
e.addEventListener("blur", this.close), e.addEventListener("focus", this.open), e.removeEventListener("mouseenter", this.open), e.removeEventListener("mouseleave", this.close);
|
12
|
+
}
|
13
|
+
};
|
14
|
+
t.styles = [s.styles, o];
|
15
|
+
let r = t;
|
16
|
+
export {
|
17
|
+
r as SkfTooltip
|
18
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|