@mintplayer/web-components 3.3.0 → 3.4.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/README.md +10 -11
- package/accordion/index.mjs +14 -12
- package/card/index.mjs +7 -5
- package/card/src/mp-card.element.d.ts +7 -2
- package/carousel/index.mjs +10 -9
- package/checkbox/index.mjs +1 -1
- package/chunks/{datatable-DabWV3-q.mjs → datatable-wRsV3aob.mjs} +14 -12
- package/chunks/{datetime-picker-BT6lb4qw.mjs → datetime-picker-BQGY51b5.mjs} +8 -7
- package/custom-elements.json +4326 -3690
- package/datatable/index.mjs +1 -1
- package/datepicker/index.mjs +8 -7
- package/datetime-picker/index.mjs +1 -1
- package/dropdown-menu/index.mjs +14 -8
- package/file-manager/index.mjs +7 -6
- package/input-group/index.mjs +12 -10
- package/machine/index.mjs +8 -1
- package/machine/src/index.d.ts +1 -0
- package/machine/src/mark-links.d.ts +6 -0
- package/nav/index.d.ts +1 -0
- package/nav/index.mjs +126 -0
- package/nav/src/generated/index.d.ts +2 -0
- package/nav/src/generated/mp-nav-item.generated.d.ts +20 -0
- package/nav/src/generated/mp-nav.generated.d.ts +63 -0
- package/nav/src/generated/nav-item.view.generated.d.ts +10 -0
- package/nav/src/generated/nav.view.generated.d.ts +10 -0
- package/nav/src/index.d.ts +1 -0
- package/nav/src/nav-item.lit.d.ts +1 -0
- package/navbar/index.mjs +64 -56
- package/navbar/src/navbar-item.lit.d.ts +1 -0
- package/otp-input/index.mjs +8 -7
- package/package.json +10 -4
- package/phone-input/index.mjs +8 -7
- package/query-builder/index.mjs +14 -12
- package/scheduler/index.mjs +27 -26
- package/select/index.mjs +11 -10
- package/signature-pad/index.mjs +8 -7
- package/spinner/index.d.ts +1 -0
- package/spinner/index.mjs +63 -0
- package/spinner/src/generated/index.d.ts +1 -0
- package/spinner/src/generated/mp-spinner.generated.d.ts +51 -0
- package/spinner/src/generated/spinner.view.generated.d.ts +9 -0
- package/spinner/src/index.d.ts +1 -0
- package/timepicker/index.mjs +13 -12
- package/typeahead/index.mjs +21 -18
- package/theming/bs-theme-preboot.js +0 -1
- package/theming/color-mode.css +0 -37
package/datatable/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DEFAULT_DATATABLE_LABELS, a as MpDatatable, n as cellText, r as computeNextSort, i as sortRows } from "../chunks/datatable-
|
|
1
|
+
export { t as DEFAULT_DATATABLE_LABELS, a as MpDatatable, n as cellText, r as computeNextSort, i as sortRows } from "../chunks/datatable-wRsV3aob.mjs";
|
package/datepicker/index.mjs
CHANGED
|
@@ -2,9 +2,10 @@ import { CoreController as e, booleanAttribute as t, numberAttribute as n, props
|
|
|
2
2
|
import { LitElement as a, html as o, nothing as s } from "lit";
|
|
3
3
|
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
4
4
|
import { repeat as l } from "lit/directives/repeat.js";
|
|
5
|
-
import {
|
|
5
|
+
import { bootstrapForms as u } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { datepickerCore as d, datepickerScopedStyles as f } from "@mintplayer/ui-core/datepicker";
|
|
6
7
|
//#region libs/mintplayer-web-components/datepicker/src/generated/datepicker.view.generated.ts
|
|
7
|
-
function
|
|
8
|
+
function p({ view: e, slots: t = {} }) {
|
|
8
9
|
return o`
|
|
9
10
|
<div data-mps="datepicker" ${r(e.group)}>
|
|
10
11
|
<input data-mps="datepicker" ${r(e.input)}>
|
|
@@ -55,7 +56,7 @@ function f({ view: e, slots: t = {} }) {
|
|
|
55
56
|
}
|
|
56
57
|
//#endregion
|
|
57
58
|
//#region libs/mintplayer-web-components/datepicker/src/generated/mp-datepicker.generated.ts
|
|
58
|
-
var
|
|
59
|
+
var m = class extends a {
|
|
59
60
|
static {
|
|
60
61
|
this.properties = {
|
|
61
62
|
selectedDate: { attribute: !1 },
|
|
@@ -108,7 +109,7 @@ var p = class extends a {
|
|
|
108
109
|
calendarLabels: { attribute: !1 }
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
|
-
#e = new e(this,
|
|
112
|
+
#e = new e(this, d, {
|
|
112
113
|
idPrefix: "mp-datepicker",
|
|
113
114
|
inputs: () => ({
|
|
114
115
|
selectedDate: this.selectedDate,
|
|
@@ -141,7 +142,7 @@ var p = class extends a {
|
|
|
141
142
|
return this;
|
|
142
143
|
}
|
|
143
144
|
render() {
|
|
144
|
-
return
|
|
145
|
+
return p({ ...this.#e.props() });
|
|
145
146
|
}
|
|
146
147
|
open(...e) {
|
|
147
148
|
return this.#e.call("open", e);
|
|
@@ -150,6 +151,6 @@ var p = class extends a {
|
|
|
150
151
|
return this.#e.call("close", e);
|
|
151
152
|
}
|
|
152
153
|
};
|
|
153
|
-
typeof document < "u" && document.head && c("datepicker",
|
|
154
|
+
typeof document < "u" && document.head && (c(u.key, u.css, { order: u.order }), c("datepicker", f)), customElements.get("mp-datepicker") || customElements.define("mp-datepicker", m);
|
|
154
155
|
//#endregion
|
|
155
|
-
export {
|
|
156
|
+
export { m as MpDatepicker };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MpDatetimePicker } from "../chunks/datetime-picker-
|
|
1
|
+
export { t as MpDatetimePicker } from "../chunks/datetime-picker-BQGY51b5.mjs";
|
package/dropdown-menu/index.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { installLightStyles as e } from "../light-dom/index.mjs";
|
|
2
2
|
import { EMPTY_HOST_PROPS as t, applyHostProps as n } from "../machine/index.mjs";
|
|
3
3
|
import { ReactiveElement as r } from "lit";
|
|
4
|
-
import {
|
|
4
|
+
import { installBootstrap as i } from "@mintplayer/ui-core/bootstrap";
|
|
5
|
+
import { bootstrapDropdown as a } from "@mintplayer/ui-core/bootstrap/dropdown";
|
|
6
|
+
import { DROPDOWN_MENU_SCOPE as o, attachDropdownMenu as s, connectDropdownMenu as c, dropdownMenuScopedStyles as l } from "@mintplayer/ui-core/dropdown-menu";
|
|
5
7
|
//#region libs/mintplayer-web-components/dropdown-menu/src/components/mp-dropdown-menu.ts
|
|
6
|
-
var
|
|
8
|
+
var u = /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), d = ".dropdown-item, .dropdown-divider, .dropdown-header", f = class extends r {
|
|
7
9
|
static {
|
|
8
10
|
this.properties = { maxHeight: {
|
|
9
11
|
type: Number,
|
|
@@ -19,24 +21,28 @@ var c = /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), l = class ex
|
|
|
19
21
|
return this;
|
|
20
22
|
}
|
|
21
23
|
connectedCallback() {
|
|
22
|
-
super.connectedCallback(), this.#t =
|
|
24
|
+
super.connectedCallback(), this.#r(), this.#n.observe(this, { childList: !0 }), this.#t = s(this, { onSelect: (e) => this.dispatchEvent(new CustomEvent("select", {
|
|
23
25
|
detail: e,
|
|
24
26
|
bubbles: !0,
|
|
25
27
|
composed: !0
|
|
26
28
|
})) });
|
|
27
29
|
}
|
|
28
30
|
disconnectedCallback() {
|
|
29
|
-
super.disconnectedCallback(), this.#t?.(), this.#t = null;
|
|
31
|
+
super.disconnectedCallback(), this.#n.disconnect(), this.#t?.(), this.#t = null;
|
|
32
|
+
}
|
|
33
|
+
#n = new MutationObserver(() => this.#r());
|
|
34
|
+
#r() {
|
|
35
|
+
[...this.children].filter((e) => e.matches(d) && e.getAttribute("data-mps") !== o).forEach((e) => e.setAttribute("data-mps", o));
|
|
30
36
|
}
|
|
31
37
|
update(e) {
|
|
32
38
|
super.update(e);
|
|
33
|
-
let t = Object.fromEntries(Object.entries(
|
|
39
|
+
let t = Object.fromEntries(Object.entries(c({ hydrated: !0 })).filter(([e]) => !u.has(e)));
|
|
34
40
|
this.#e = n(this, this.#e, {
|
|
35
41
|
...t,
|
|
36
|
-
"data-mps":
|
|
42
|
+
"data-mps": o
|
|
37
43
|
}), this.maxHeight ? this.style.setProperty("--mp-dropdown-max-height", `${this.maxHeight}px`) : this.style.removeProperty("--mp-dropdown-max-height");
|
|
38
44
|
}
|
|
39
45
|
};
|
|
40
|
-
typeof document < "u" && document.head &&
|
|
46
|
+
typeof document < "u" && document.head && (i(a), e(o, l)), customElements.get("mp-dropdown-menu") || customElements.define("mp-dropdown-menu", f);
|
|
41
47
|
//#endregion
|
|
42
|
-
export {
|
|
48
|
+
export { f as MpDropdownMenu };
|
package/file-manager/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreController as e, booleanAttribute as t, props as n, stringAttribute as r } from "../machine/index.mjs";
|
|
2
|
-
import "../chunks/datatable-
|
|
2
|
+
import "../chunks/datatable-wRsV3aob.mjs";
|
|
3
3
|
import "../chunks/splitter-EuJmtwjW.mjs";
|
|
4
4
|
import "../chunks/treeview-BFyPrpxn.mjs";
|
|
5
5
|
import { LitElement as i, html as a, nothing as o } from "lit";
|
|
@@ -8,8 +8,9 @@ import { repeat as c } from "lit/directives/repeat.js";
|
|
|
8
8
|
import { styleMap as l } from "lit/directives/style-map.js";
|
|
9
9
|
import { unsafeHTML as u } from "lit/directives/unsafe-html.js";
|
|
10
10
|
import { DEFAULT_FILE_MANAGER_MESSAGES as d, fileManagerCore as f, fileManagerScopedStyles as p, mergeMessages as m } from "@mintplayer/ui-core/file-manager";
|
|
11
|
+
import { bootstrapBreadcrumb as h } from "@mintplayer/ui-core/bootstrap/breadcrumb";
|
|
11
12
|
//#region libs/mintplayer-web-components/file-manager/src/generated/file-manager.view.generated.ts
|
|
12
|
-
function
|
|
13
|
+
function g({ view: e, slots: t = {} }) {
|
|
13
14
|
return a`
|
|
14
15
|
<div data-mps="file-manager" ${n(e.live)}>${e.announcement}</div>
|
|
15
16
|
<div data-mps="file-manager" ${n(e.alert)}>${e.alertText}</div>
|
|
@@ -97,7 +98,7 @@ function h({ view: e, slots: t = {} }) {
|
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
99
100
|
//#region libs/mintplayer-web-components/file-manager/src/generated/mp-file-manager.generated.ts
|
|
100
|
-
var
|
|
101
|
+
var _ = class extends i {
|
|
101
102
|
static {
|
|
102
103
|
this.properties = {
|
|
103
104
|
nodes: { attribute: !1 },
|
|
@@ -185,7 +186,7 @@ var g = class extends i {
|
|
|
185
186
|
return this;
|
|
186
187
|
}
|
|
187
188
|
render() {
|
|
188
|
-
return
|
|
189
|
+
return g({ ...this.#e.props() });
|
|
189
190
|
}
|
|
190
191
|
markPending(...e) {
|
|
191
192
|
return this.#e.call("markPending", e);
|
|
@@ -203,6 +204,6 @@ var g = class extends i {
|
|
|
203
204
|
return this.#e.call("clearUpload", e);
|
|
204
205
|
}
|
|
205
206
|
};
|
|
206
|
-
typeof document < "u" && document.head && s("file-manager", p), customElements.get("mp-file-manager") || customElements.define("mp-file-manager",
|
|
207
|
+
typeof document < "u" && document.head && (s(h.key, h.css, { order: h.order }), s("file-manager", p)), customElements.get("mp-file-manager") || customElements.define("mp-file-manager", _);
|
|
207
208
|
//#endregion
|
|
208
|
-
export { d as DEFAULT_FILE_MANAGER_MESSAGES,
|
|
209
|
+
export { d as DEFAULT_FILE_MANAGER_MESSAGES, _ as MpFileManager, m as mergeMessages };
|
package/input-group/index.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { installLightStyles as e } from "../light-dom/index.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { installBootstrap as t } from "@mintplayer/ui-core/bootstrap";
|
|
3
|
+
import { bootstrapForms as n } from "@mintplayer/ui-core/bootstrap/forms";
|
|
4
|
+
import { INPUT_GROUP_SCOPE as r, inputGroupClasses as i, inputGroupRole as a, inputGroupScopedStyles as o } from "@mintplayer/ui-core/input-group";
|
|
3
5
|
//#region libs/mintplayer-web-components/input-group/src/mp-input-group.ts
|
|
4
|
-
var
|
|
6
|
+
var s = typeof HTMLElement > "u" ? class {} : HTMLElement, c = class extends s {
|
|
5
7
|
static get observedAttributes() {
|
|
6
8
|
return [
|
|
7
9
|
"size",
|
|
@@ -25,15 +27,15 @@ var a = typeof HTMLElement > "u" ? class {} : HTMLElement, o = class extends a {
|
|
|
25
27
|
this.isConnected && this.#n();
|
|
26
28
|
}
|
|
27
29
|
#n() {
|
|
28
|
-
this.setAttribute("data-mps",
|
|
29
|
-
let e =
|
|
30
|
+
this.setAttribute("data-mps", r);
|
|
31
|
+
let e = i(this.size);
|
|
30
32
|
this.classList.remove(...this.#t.filter((t) => !e.includes(t))), this.classList.add(...e), this.#t = e;
|
|
31
|
-
let
|
|
32
|
-
if (
|
|
33
|
-
let
|
|
34
|
-
|
|
33
|
+
let t = this.getAttribute("role");
|
|
34
|
+
if (t !== null && t !== this.#e) return;
|
|
35
|
+
let n = a(this.hasAttribute("aria-label") || this.hasAttribute("aria-labelledby"));
|
|
36
|
+
n ? this.setAttribute("role", n) : this.removeAttribute("role"), this.#e = n;
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
|
-
typeof customElements < "u" && !customElements.get("mp-input-group") && (e(
|
|
39
|
+
typeof customElements < "u" && !customElements.get("mp-input-group") && (t(n), e(r, o), customElements.define("mp-input-group", c));
|
|
38
40
|
//#endregion
|
|
39
|
-
export {
|
|
41
|
+
export { c as MpInputGroup };
|
package/machine/index.mjs
CHANGED
|
@@ -254,4 +254,11 @@ var A = class {
|
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
//#endregion
|
|
257
|
-
|
|
257
|
+
//#region libs/mintplayer-web-components/machine/src/mark-links.ts
|
|
258
|
+
function j(e, t, n) {
|
|
259
|
+
e.filter((e) => e instanceof Element).forEach((e) => {
|
|
260
|
+
e.classList.add(t), e.setAttribute("data-mps", n);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
export { A as ContentQuery, E as CoreController, d as EMPTY_HOST_PROPS, h as LightChildren, c as MachineController, p as applyHostProps, _ as booleanAttribute, j as markLinks, k as notifyContentChange, y as numberAttribute, m as ownedByTemplate, u as props, v as stringAttribute, g as takeLightChildren, D as teleport };
|
package/machine/src/index.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A component's consumer links (its captured child elements), marked with a
|
|
3
|
+
* Bootstrap class and the component's scope, so the scoped Bootstrap part
|
|
4
|
+
* (`.nav-link:where([data-mps])`) styles them. Idempotent: an element calls it on every update.
|
|
5
|
+
*/
|
|
6
|
+
export declare function markLinks(nodes: readonly Node[], className: string, scope: string): void;
|
package/nav/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
package/nav/index.mjs
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { CoreController as e, LightChildren as t, booleanAttribute as n, markLinks as r, stringAttribute as i } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as a, html as o, nothing as s } from "lit";
|
|
3
|
+
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { NAV_LINK_CLASS as l, navCore as u, navItemCore as d, navScopedStyles as f } from "@mintplayer/ui-core/nav";
|
|
5
|
+
import { bootstrapNav as p } from "@mintplayer/ui-core/bootstrap/nav";
|
|
6
|
+
//#region libs/mintplayer-web-components/nav/src/generated/nav.view.generated.ts
|
|
7
|
+
function m({ root: e, slots: t = {} }) {
|
|
8
|
+
return o`
|
|
9
|
+
${t.default === void 0 ? s : t.default}
|
|
10
|
+
`;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region libs/mintplayer-web-components/nav/src/generated/mp-nav.generated.ts
|
|
14
|
+
var h = class extends a {
|
|
15
|
+
static {
|
|
16
|
+
this.properties = {
|
|
17
|
+
variant: {
|
|
18
|
+
type: String,
|
|
19
|
+
converter: i(null, [
|
|
20
|
+
"tabs",
|
|
21
|
+
"pills",
|
|
22
|
+
"underline"
|
|
23
|
+
]),
|
|
24
|
+
reflect: !0
|
|
25
|
+
},
|
|
26
|
+
fill: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
converter: n(!1),
|
|
29
|
+
reflect: !0
|
|
30
|
+
},
|
|
31
|
+
justified: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
converter: n(!1),
|
|
34
|
+
reflect: !0
|
|
35
|
+
},
|
|
36
|
+
cardHeader: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
converter: n(!1),
|
|
39
|
+
attribute: "card-header",
|
|
40
|
+
reflect: !0
|
|
41
|
+
},
|
|
42
|
+
defaultRenderer: { attribute: !1 }
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
#e = new t(this);
|
|
46
|
+
#t = new e(this, u, {
|
|
47
|
+
idPrefix: "mp-nav",
|
|
48
|
+
inputs: () => ({
|
|
49
|
+
variant: this.variant,
|
|
50
|
+
fill: this.fill,
|
|
51
|
+
justified: this.justified,
|
|
52
|
+
cardHeader: this.cardHeader
|
|
53
|
+
}),
|
|
54
|
+
hostBag: (e) => ({
|
|
55
|
+
...e.root,
|
|
56
|
+
"data-mps": "nav",
|
|
57
|
+
role: "list"
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
constructor() {
|
|
61
|
+
super(), this.variant = null, this.fill = !1, this.justified = !1, this.cardHeader = !1;
|
|
62
|
+
}
|
|
63
|
+
createRenderRoot() {
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
willUpdate() {
|
|
67
|
+
this.#e.capture();
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
return m({
|
|
71
|
+
...this.#t.props(),
|
|
72
|
+
slots: {
|
|
73
|
+
...this.#e.slots,
|
|
74
|
+
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
typeof document < "u" && document.head && (c(p.key, p.css, { order: p.order }), c("nav", f)), customElements.get("mp-nav") || customElements.define("mp-nav", h);
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region libs/mintplayer-web-components/nav/src/generated/nav-item.view.generated.ts
|
|
82
|
+
function g({ root: e, slots: t = {} }) {
|
|
83
|
+
return o`
|
|
84
|
+
${t.default === void 0 ? s : t.default}
|
|
85
|
+
`;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region libs/mintplayer-web-components/nav/src/nav-item.lit.ts
|
|
89
|
+
function _(e, t) {
|
|
90
|
+
r(e, l, "nav");
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region libs/mintplayer-web-components/nav/src/generated/mp-nav-item.generated.ts
|
|
94
|
+
var v = class extends a {
|
|
95
|
+
static {
|
|
96
|
+
this.properties = { defaultRenderer: { attribute: !1 } };
|
|
97
|
+
}
|
|
98
|
+
#e = new t(this);
|
|
99
|
+
#t = new e(this, d, {
|
|
100
|
+
idPrefix: "mp-nav-item",
|
|
101
|
+
inputs: () => ({}),
|
|
102
|
+
hostBag: (e) => ({
|
|
103
|
+
...e.root,
|
|
104
|
+
"data-mps": "nav",
|
|
105
|
+
role: "listitem"
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
createRenderRoot() {
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
willUpdate() {
|
|
112
|
+
this.#e.capture(), _(this.#e.slots.default ?? [], this);
|
|
113
|
+
}
|
|
114
|
+
render() {
|
|
115
|
+
return g({
|
|
116
|
+
...this.#t.props(),
|
|
117
|
+
slots: {
|
|
118
|
+
...this.#e.slots,
|
|
119
|
+
...this.defaultRenderer ? { default: this.defaultRenderer() } : {}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
typeof document < "u" && document.head && (c(p.key, p.css, { order: p.order }), c("nav", f)), customElements.get("mp-nav-item") || customElements.define("mp-nav-item", v);
|
|
125
|
+
//#endregion
|
|
126
|
+
export { h as MpNav, v as MpNavItem };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/** One nav entry around a consumer link, which becomes its `.nav-link`; `class="active"` marks the current one. */
|
|
3
|
+
export declare class MpNavItem extends LitElement {
|
|
4
|
+
#private;
|
|
5
|
+
static properties: {
|
|
6
|
+
defaultRenderer: {
|
|
7
|
+
attribute: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/** Renders the default slot; wins over slot="default" children. */
|
|
11
|
+
defaultRenderer: (() => unknown) | null | undefined;
|
|
12
|
+
protected createRenderRoot(): HTMLElement;
|
|
13
|
+
protected willUpdate(): void;
|
|
14
|
+
render(): import('lit-html').TemplateResult;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'mp-nav-item': MpNavItem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { NavInputs } from '@mintplayer/ui-core/nav';
|
|
3
|
+
/**
|
|
4
|
+
* Bootstrap's nav: a list of `bs-nav-item`s, plain or as tabs, pills or underline (#452).
|
|
5
|
+
*
|
|
6
|
+
* It ships the nav part, so a page that renders one needs no install of its own.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MpNav extends LitElement {
|
|
9
|
+
#private;
|
|
10
|
+
static properties: {
|
|
11
|
+
variant: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
converter: {
|
|
14
|
+
fromAttribute: (value: string | null) => string | null;
|
|
15
|
+
toAttribute: (value: unknown) => string | null;
|
|
16
|
+
};
|
|
17
|
+
reflect: boolean;
|
|
18
|
+
};
|
|
19
|
+
fill: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
converter: {
|
|
22
|
+
fromAttribute: (value: string | null) => boolean;
|
|
23
|
+
toAttribute: (value: unknown) => string | null;
|
|
24
|
+
};
|
|
25
|
+
reflect: boolean;
|
|
26
|
+
};
|
|
27
|
+
justified: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
converter: {
|
|
30
|
+
fromAttribute: (value: string | null) => boolean;
|
|
31
|
+
toAttribute: (value: unknown) => string | null;
|
|
32
|
+
};
|
|
33
|
+
reflect: boolean;
|
|
34
|
+
};
|
|
35
|
+
cardHeader: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
converter: {
|
|
38
|
+
fromAttribute: (value: string | null) => boolean;
|
|
39
|
+
toAttribute: (value: unknown) => string | null;
|
|
40
|
+
};
|
|
41
|
+
attribute: string;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
44
|
+
defaultRenderer: {
|
|
45
|
+
attribute: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
variant: NavInputs['variant'];
|
|
49
|
+
fill: NavInputs['fill'];
|
|
50
|
+
justified: NavInputs['justified'];
|
|
51
|
+
cardHeader: NavInputs['cardHeader'];
|
|
52
|
+
/** Renders the default slot; wins over slot="default" children. */
|
|
53
|
+
defaultRenderer: (() => unknown) | null | undefined;
|
|
54
|
+
constructor();
|
|
55
|
+
protected createRenderRoot(): HTMLElement;
|
|
56
|
+
protected willUpdate(): void;
|
|
57
|
+
render(): import('lit-html').TemplateResult;
|
|
58
|
+
}
|
|
59
|
+
declare global {
|
|
60
|
+
interface HTMLElementTagNameMap {
|
|
61
|
+
'mp-nav': MpNav;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { NavProps } from '@mintplayer/ui-core/nav';
|
|
3
|
+
export type NavItemTemplateProps = {
|
|
4
|
+
root: NavProps['root'];
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {
|
|
7
|
+
default?: unknown;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function navItemTemplate({ root, slots }: NavItemTemplateProps): TemplateResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { NavProps } from '@mintplayer/ui-core/nav';
|
|
3
|
+
export type NavTemplateProps = {
|
|
4
|
+
root: NavProps['root'];
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {
|
|
7
|
+
default?: unknown;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function navTemplate({ root, slots }: NavTemplateProps): TemplateResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function children(nodes: readonly Node[], _host: HTMLElement): void;
|