@mintplayer/web-components 3.2.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-Ce-UT16z.mjs → datatable-wRsV3aob.mjs} +31 -15
- package/chunks/{datetime-picker-BT6lb4qw.mjs → datetime-picker-BQGY51b5.mjs} +8 -7
- package/custom-elements.json +1856 -1192
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/mp-datatable.generated.d.ts +20 -2
- package/datatable/src/index.d.ts +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/navbar/index.mjs
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { CoreController as e, LightChildren as t, booleanAttribute as n,
|
|
2
|
-
import { LitElement as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { installLightStyles as
|
|
5
|
-
import {
|
|
1
|
+
import { CoreController as e, LightChildren as t, booleanAttribute as n, markLinks as r, props as i, stringAttribute as a } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as o, html as s, nothing as c } from "lit";
|
|
3
|
+
import { ref as l } from "lit/directives/ref.js";
|
|
4
|
+
import { installLightStyles as u } from "@mintplayer/ui-core/scoped-styles";
|
|
5
|
+
import { bootstrapDropdown as d } from "@mintplayer/ui-core/bootstrap/dropdown";
|
|
6
|
+
import { bootstrapNav as f } from "@mintplayer/ui-core/bootstrap/nav";
|
|
7
|
+
import { navbarCore as p, navbarDropdownCore as m, navbarItemCore as h, navbarNavCore as g, navbarScopedStyles as _ } from "@mintplayer/ui-core/navbar";
|
|
8
|
+
import { bootstrapNavbar as v } from "@mintplayer/ui-core/bootstrap/navbar";
|
|
6
9
|
//#region libs/mintplayer-web-components/navbar/src/generated/navbar.view.generated.ts
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
${n.brand ?
|
|
10
|
-
<div data-mps="navbar" ${
|
|
11
|
-
${n.brand === void 0 ?
|
|
10
|
+
function y({ view: e, brand: t, slots: n = {} }) {
|
|
11
|
+
return s`
|
|
12
|
+
${n.brand ? s`
|
|
13
|
+
<div data-mps="navbar" ${i(t)}>
|
|
14
|
+
${n.brand === void 0 ? c : n.brand}
|
|
12
15
|
</div>
|
|
13
|
-
` :
|
|
14
|
-
<input data-mps="navbar" ${
|
|
15
|
-
<label data-mps="navbar" ${
|
|
16
|
-
${n.toggler === void 0 ?
|
|
17
|
-
<span data-mps="navbar" ${
|
|
18
|
-
<span data-mps="navbar" ${
|
|
19
|
-
<span data-mps="navbar" ${
|
|
16
|
+
` : c}
|
|
17
|
+
<input data-mps="navbar" ${i(e.toggle)}>
|
|
18
|
+
<label data-mps="navbar" ${i(e.toggler)}>
|
|
19
|
+
${n.toggler === void 0 ? s`
|
|
20
|
+
<span data-mps="navbar" ${i(e.bar)}></span>
|
|
21
|
+
<span data-mps="navbar" ${i(e.bar)}></span>
|
|
22
|
+
<span data-mps="navbar" ${i(e.bar)}></span>
|
|
20
23
|
` : n.toggler}
|
|
21
24
|
</label>
|
|
22
|
-
<div data-mps="navbar" ${
|
|
23
|
-
<div data-mps="navbar" ${
|
|
24
|
-
${n.default === void 0 ?
|
|
25
|
+
<div data-mps="navbar" ${i(e.collapse)}>
|
|
26
|
+
<div data-mps="navbar" ${i(e.inner)}>
|
|
27
|
+
${n.default === void 0 ? c : n.default}
|
|
25
28
|
</div>
|
|
26
29
|
</div>
|
|
27
30
|
`;
|
|
28
31
|
}
|
|
29
32
|
//#endregion
|
|
30
33
|
//#region libs/mintplayer-web-components/navbar/src/generated/mp-navbar.generated.ts
|
|
31
|
-
var
|
|
34
|
+
var b = class extends o {
|
|
32
35
|
static {
|
|
33
36
|
this.properties = {
|
|
34
37
|
breakpoint: {
|
|
35
38
|
type: String,
|
|
36
|
-
converter:
|
|
39
|
+
converter: a("md", [
|
|
37
40
|
"xs",
|
|
38
41
|
"sm",
|
|
39
42
|
"md",
|
|
@@ -45,7 +48,7 @@ var g = class extends a {
|
|
|
45
48
|
},
|
|
46
49
|
color: {
|
|
47
50
|
type: String,
|
|
48
|
-
converter:
|
|
51
|
+
converter: a(void 0),
|
|
49
52
|
reflect: !0
|
|
50
53
|
},
|
|
51
54
|
expanded: {
|
|
@@ -55,7 +58,7 @@ var g = class extends a {
|
|
|
55
58
|
},
|
|
56
59
|
positioning: {
|
|
57
60
|
type: String,
|
|
58
|
-
converter:
|
|
61
|
+
converter: a(void 0, ["fixed"]),
|
|
59
62
|
reflect: !0
|
|
60
63
|
},
|
|
61
64
|
labels: { attribute: !1 },
|
|
@@ -65,7 +68,7 @@ var g = class extends a {
|
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
#e = new t(this);
|
|
68
|
-
#t = new e(this,
|
|
71
|
+
#t = new e(this, p, {
|
|
69
72
|
idPrefix: "mp-navbar",
|
|
70
73
|
inputs: () => ({
|
|
71
74
|
breakpoint: this.breakpoint,
|
|
@@ -91,7 +94,7 @@ var g = class extends a {
|
|
|
91
94
|
this.#e.capture();
|
|
92
95
|
}
|
|
93
96
|
render() {
|
|
94
|
-
return
|
|
97
|
+
return y({
|
|
95
98
|
...this.#t.props(),
|
|
96
99
|
slots: {
|
|
97
100
|
...this.#e.slots,
|
|
@@ -105,29 +108,29 @@ var g = class extends a {
|
|
|
105
108
|
return this.#t.call("toggle", e);
|
|
106
109
|
}
|
|
107
110
|
};
|
|
108
|
-
typeof document < "u" && document.head &&
|
|
111
|
+
typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u(f.key, f.css, { order: f.order }), u(v.key, v.css, { order: v.order }), u("navbar", _)), customElements.get("mp-navbar") || customElements.define("mp-navbar", b);
|
|
109
112
|
//#endregion
|
|
110
113
|
//#region libs/mintplayer-web-components/navbar/src/generated/navbar-nav.view.generated.ts
|
|
111
|
-
function
|
|
112
|
-
return
|
|
113
|
-
${t.default === void 0 ?
|
|
114
|
+
function x({ bag: e, slots: t = {} }) {
|
|
115
|
+
return s`
|
|
116
|
+
${t.default === void 0 ? c : t.default}
|
|
114
117
|
`;
|
|
115
118
|
}
|
|
116
119
|
//#endregion
|
|
117
120
|
//#region libs/mintplayer-web-components/navbar/src/generated/mp-navbar-nav.generated.ts
|
|
118
|
-
var
|
|
121
|
+
var S = class extends o {
|
|
119
122
|
static {
|
|
120
123
|
this.properties = {
|
|
121
124
|
align: {
|
|
122
125
|
type: String,
|
|
123
|
-
converter:
|
|
126
|
+
converter: a("start", ["start", "end"]),
|
|
124
127
|
reflect: !0
|
|
125
128
|
},
|
|
126
129
|
defaultRenderer: { attribute: !1 }
|
|
127
130
|
};
|
|
128
131
|
}
|
|
129
132
|
#e = new t(this);
|
|
130
|
-
#t = new e(this,
|
|
133
|
+
#t = new e(this, g, {
|
|
131
134
|
idPrefix: "mp-navbar-nav",
|
|
132
135
|
inputs: () => ({ align: this.align }),
|
|
133
136
|
hostBag: (e) => ({
|
|
@@ -145,7 +148,7 @@ var v = class extends a {
|
|
|
145
148
|
this.#e.capture();
|
|
146
149
|
}
|
|
147
150
|
render() {
|
|
148
|
-
return
|
|
151
|
+
return x({
|
|
149
152
|
...this.#t.props(),
|
|
150
153
|
slots: {
|
|
151
154
|
...this.#e.slots,
|
|
@@ -154,17 +157,22 @@ var v = class extends a {
|
|
|
154
157
|
});
|
|
155
158
|
}
|
|
156
159
|
};
|
|
157
|
-
typeof document < "u" && document.head &&
|
|
160
|
+
typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u(f.key, f.css, { order: f.order }), u(v.key, v.css, { order: v.order }), u("navbar", _)), customElements.get("mp-navbar-nav") || customElements.define("mp-navbar-nav", S);
|
|
158
161
|
//#endregion
|
|
159
162
|
//#region libs/mintplayer-web-components/navbar/src/generated/navbar-item.view.generated.ts
|
|
160
|
-
function
|
|
161
|
-
return
|
|
162
|
-
${t.default === void 0 ?
|
|
163
|
+
function C({ bag: e, slots: t = {} }) {
|
|
164
|
+
return s`
|
|
165
|
+
${t.default === void 0 ? c : t.default}
|
|
163
166
|
`;
|
|
164
167
|
}
|
|
165
168
|
//#endregion
|
|
169
|
+
//#region libs/mintplayer-web-components/navbar/src/navbar-item.lit.ts
|
|
170
|
+
function w(e, t) {
|
|
171
|
+
t.parentElement?.closest("mp-navbar-dropdown") || r(e, "nav-link", "navbar");
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
166
174
|
//#region libs/mintplayer-web-components/navbar/src/generated/mp-navbar-item.generated.ts
|
|
167
|
-
var
|
|
175
|
+
var T = class extends o {
|
|
168
176
|
static {
|
|
169
177
|
this.properties = {
|
|
170
178
|
active: {
|
|
@@ -181,7 +189,7 @@ var b = class extends a {
|
|
|
181
189
|
};
|
|
182
190
|
}
|
|
183
191
|
#e = new t(this);
|
|
184
|
-
#t = new e(this,
|
|
192
|
+
#t = new e(this, h, {
|
|
185
193
|
idPrefix: "mp-navbar-item",
|
|
186
194
|
inputs: () => ({
|
|
187
195
|
active: this.active,
|
|
@@ -199,10 +207,10 @@ var b = class extends a {
|
|
|
199
207
|
return this;
|
|
200
208
|
}
|
|
201
209
|
willUpdate() {
|
|
202
|
-
this.#e.capture();
|
|
210
|
+
this.#e.capture(), w(this.#e.slots.default ?? [], this);
|
|
203
211
|
}
|
|
204
212
|
render() {
|
|
205
|
-
return
|
|
213
|
+
return C({
|
|
206
214
|
...this.#t.props(),
|
|
207
215
|
slots: {
|
|
208
216
|
...this.#e.slots,
|
|
@@ -211,31 +219,31 @@ var b = class extends a {
|
|
|
211
219
|
});
|
|
212
220
|
}
|
|
213
221
|
};
|
|
214
|
-
typeof document < "u" && document.head &&
|
|
222
|
+
typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u(f.key, f.css, { order: f.order }), u(v.key, v.css, { order: v.order }), u("navbar", _)), customElements.get("mp-navbar-item") || customElements.define("mp-navbar-item", T);
|
|
215
223
|
//#endregion
|
|
216
224
|
//#region libs/mintplayer-web-components/navbar/src/generated/navbar-dropdown.view.generated.ts
|
|
217
|
-
function
|
|
218
|
-
return
|
|
219
|
-
<details data-mps="navbar" ${
|
|
220
|
-
<summary data-mps="navbar" ${
|
|
221
|
-
${n.labelTemplate === void 0 ?
|
|
225
|
+
function E({ view: e, label: t, slots: n = {}, rootRef: r }) {
|
|
226
|
+
return s`
|
|
227
|
+
<details data-mps="navbar" ${i(e.details)} ${l(r)}>
|
|
228
|
+
<summary data-mps="navbar" ${i(e.summary)}>
|
|
229
|
+
${n.labelTemplate === void 0 ? s`
|
|
222
230
|
${t}
|
|
223
231
|
` : n.labelTemplate}
|
|
224
232
|
</summary>
|
|
225
|
-
<div data-mps="navbar" ${
|
|
226
|
-
${n.default === void 0 ?
|
|
233
|
+
<div data-mps="navbar" ${i(e.panel)}>
|
|
234
|
+
${n.default === void 0 ? c : n.default}
|
|
227
235
|
</div>
|
|
228
236
|
</details>
|
|
229
237
|
`;
|
|
230
238
|
}
|
|
231
239
|
//#endregion
|
|
232
240
|
//#region libs/mintplayer-web-components/navbar/src/generated/mp-navbar-dropdown.generated.ts
|
|
233
|
-
var
|
|
241
|
+
var D = class extends o {
|
|
234
242
|
static {
|
|
235
243
|
this.properties = {
|
|
236
244
|
label: {
|
|
237
245
|
type: String,
|
|
238
|
-
converter:
|
|
246
|
+
converter: a(void 0)
|
|
239
247
|
},
|
|
240
248
|
active: {
|
|
241
249
|
type: Boolean,
|
|
@@ -247,7 +255,7 @@ var S = class extends a {
|
|
|
247
255
|
};
|
|
248
256
|
}
|
|
249
257
|
#e = new t(this);
|
|
250
|
-
#t = new e(this,
|
|
258
|
+
#t = new e(this, m, {
|
|
251
259
|
idPrefix: "mp-navbar-dropdown",
|
|
252
260
|
inputs: () => ({
|
|
253
261
|
label: this.label,
|
|
@@ -264,7 +272,7 @@ var S = class extends a {
|
|
|
264
272
|
this.#e.capture();
|
|
265
273
|
}
|
|
266
274
|
render() {
|
|
267
|
-
return
|
|
275
|
+
return E({
|
|
268
276
|
...this.#t.props(),
|
|
269
277
|
slots: {
|
|
270
278
|
...this.#e.slots,
|
|
@@ -274,6 +282,6 @@ var S = class extends a {
|
|
|
274
282
|
});
|
|
275
283
|
}
|
|
276
284
|
};
|
|
277
|
-
typeof document < "u" && document.head &&
|
|
285
|
+
typeof document < "u" && document.head && (u(d.key, d.css, { order: d.order }), u(f.key, f.css, { order: f.order }), u(v.key, v.css, { order: v.order }), u("navbar", _)), customElements.get("mp-navbar-dropdown") || customElements.define("mp-navbar-dropdown", D);
|
|
278
286
|
//#endregion
|
|
279
|
-
export {
|
|
287
|
+
export { b as MpNavbar, D as MpNavbarDropdown, T as MpNavbarItem, S as MpNavbarNav };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function children(nodes: readonly Node[], host: HTMLElement): void;
|
package/otp-input/index.mjs
CHANGED
|
@@ -2,9 +2,10 @@ import { CoreController as e, booleanAttribute as t, props as n, stringAttribute
|
|
|
2
2
|
import { LitElement as i, html as a, nothing as o } from "lit";
|
|
3
3
|
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
4
4
|
import { repeat as c } from "lit/directives/repeat.js";
|
|
5
|
-
import {
|
|
5
|
+
import { bootstrapForms as l } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { otpInputCore as u, otpInputScopedStyles as d } from "@mintplayer/ui-core/otp-input";
|
|
6
7
|
//#region libs/mintplayer-web-components/otp-input/src/generated/otp-input.view.generated.ts
|
|
7
|
-
function
|
|
8
|
+
function f({ view: e, slots: t = {} }) {
|
|
8
9
|
return a`
|
|
9
10
|
<div data-mps="otp-input" ${n(e.container)}>
|
|
10
11
|
<input data-mps="otp-input" ${n(e.input)}>
|
|
@@ -22,7 +23,7 @@ function d({ view: e, slots: t = {} }) {
|
|
|
22
23
|
}
|
|
23
24
|
//#endregion
|
|
24
25
|
//#region libs/mintplayer-web-components/otp-input/src/generated/mp-otp-input.generated.ts
|
|
25
|
-
var
|
|
26
|
+
var p = class extends i {
|
|
26
27
|
static {
|
|
27
28
|
this.properties = {
|
|
28
29
|
groups: { attribute: !1 },
|
|
@@ -83,7 +84,7 @@ var f = class extends i {
|
|
|
83
84
|
}
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
#e = new e(this,
|
|
87
|
+
#e = new e(this, u, {
|
|
87
88
|
idPrefix: "mp-otp-input",
|
|
88
89
|
inputs: () => ({
|
|
89
90
|
groups: this.groups,
|
|
@@ -118,7 +119,7 @@ var f = class extends i {
|
|
|
118
119
|
return this;
|
|
119
120
|
}
|
|
120
121
|
render() {
|
|
121
|
-
return
|
|
122
|
+
return f({ ...this.#e.props() });
|
|
122
123
|
}
|
|
123
124
|
clear(...e) {
|
|
124
125
|
return this.#e.call("clear", e);
|
|
@@ -127,6 +128,6 @@ var f = class extends i {
|
|
|
127
128
|
return this.#e.call("focusInput", e);
|
|
128
129
|
}
|
|
129
130
|
};
|
|
130
|
-
typeof document < "u" && document.head && s("otp-input",
|
|
131
|
+
typeof document < "u" && document.head && (s(l.key, l.css, { order: l.order }), s("otp-input", d)), customElements.get("mp-otp-input") || customElements.define("mp-otp-input", p);
|
|
131
132
|
//#endregion
|
|
132
|
-
export {
|
|
133
|
+
export { p as MpOtpInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/web-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Framework-agnostic Lit web components for the @mintplayer/bootstrap design system. Consumed by @mintplayer/ng-bootstrap, @mintplayer/react-bootstrap, and @mintplayer/vue-bootstrap.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
},
|
|
26
26
|
"./custom-elements.json": "./custom-elements.json",
|
|
27
27
|
"./package.json": "./package.json",
|
|
28
|
-
"./theming/bs-theme-preboot.js": "./theming/bs-theme-preboot.js",
|
|
29
|
-
"./theming/color-mode.css": "./theming/color-mode.css",
|
|
30
28
|
"./a11y": {
|
|
31
29
|
"types": "./a11y/index.d.ts",
|
|
32
30
|
"import": "./a11y/index.mjs"
|
|
@@ -107,6 +105,10 @@
|
|
|
107
105
|
"types": "./multi-range/index.d.ts",
|
|
108
106
|
"import": "./multi-range/index.mjs"
|
|
109
107
|
},
|
|
108
|
+
"./nav": {
|
|
109
|
+
"types": "./nav/index.d.ts",
|
|
110
|
+
"import": "./nav/index.mjs"
|
|
111
|
+
},
|
|
110
112
|
"./navbar": {
|
|
111
113
|
"types": "./navbar/index.d.ts",
|
|
112
114
|
"import": "./navbar/index.mjs"
|
|
@@ -155,6 +157,10 @@
|
|
|
155
157
|
"types": "./signature-pad/index.d.ts",
|
|
156
158
|
"import": "./signature-pad/index.mjs"
|
|
157
159
|
},
|
|
160
|
+
"./spinner": {
|
|
161
|
+
"types": "./spinner/index.d.ts",
|
|
162
|
+
"import": "./spinner/index.mjs"
|
|
163
|
+
},
|
|
158
164
|
"./splitter": {
|
|
159
165
|
"types": "./splitter/index.d.ts",
|
|
160
166
|
"import": "./splitter/index.mjs"
|
|
@@ -201,7 +207,7 @@
|
|
|
201
207
|
"@lit/context": "^1.1.6"
|
|
202
208
|
},
|
|
203
209
|
"dependencies": {
|
|
204
|
-
"@mintplayer/ui-core": "^1.
|
|
210
|
+
"@mintplayer/ui-core": "^1.5.0",
|
|
205
211
|
"tslib": "^2.3.0",
|
|
206
212
|
"intl-tel-input": "^29.1.2",
|
|
207
213
|
"libphonenumber-js": "^1.13.10"
|
package/phone-input/index.mjs
CHANGED
|
@@ -3,9 +3,10 @@ import { LitElement as i, html as a, nothing as o } from "lit";
|
|
|
3
3
|
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
4
4
|
import { repeat as c } from "lit/directives/repeat.js";
|
|
5
5
|
import { unsafeHTML as l } from "lit/directives/unsafe-html.js";
|
|
6
|
-
import {
|
|
6
|
+
import { bootstrapForms as u } from "@mintplayer/ui-core/bootstrap/forms";
|
|
7
|
+
import { phoneInputCore as d, phoneInputScopedStyles as f } from "@mintplayer/ui-core/phone-input";
|
|
7
8
|
//#region libs/mintplayer-web-components/phone-input/src/generated/phone-input.view.generated.ts
|
|
8
|
-
function
|
|
9
|
+
function p({ view: e, slots: t = {} }) {
|
|
9
10
|
return a`
|
|
10
11
|
<div data-mps="phone-input" ${n(e.group)}>
|
|
11
12
|
<select data-mps="phone-input" ${n(e.select)}>
|
|
@@ -43,7 +44,7 @@ function f({ view: e, slots: t = {} }) {
|
|
|
43
44
|
}
|
|
44
45
|
//#endregion
|
|
45
46
|
//#region libs/mintplayer-web-components/phone-input/src/generated/mp-phone-input.generated.ts
|
|
46
|
-
var
|
|
47
|
+
var m = class extends i {
|
|
47
48
|
static {
|
|
48
49
|
this.properties = {
|
|
49
50
|
value: {
|
|
@@ -117,7 +118,7 @@ var p = class extends i {
|
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
|
-
#e = new e(this,
|
|
121
|
+
#e = new e(this, d, {
|
|
121
122
|
idPrefix: "mp-phone-input",
|
|
122
123
|
inputs: () => ({
|
|
123
124
|
value: this.value,
|
|
@@ -149,7 +150,7 @@ var p = class extends i {
|
|
|
149
150
|
return this;
|
|
150
151
|
}
|
|
151
152
|
render() {
|
|
152
|
-
return
|
|
153
|
+
return p({ ...this.#e.props() });
|
|
153
154
|
}
|
|
154
155
|
focusInput(...e) {
|
|
155
156
|
return this.#e.call("focusInput", e);
|
|
@@ -158,6 +159,6 @@ var p = class extends i {
|
|
|
158
159
|
return this.#e.call("whenReady", e);
|
|
159
160
|
}
|
|
160
161
|
};
|
|
161
|
-
typeof document < "u" && document.head && s("phone-input",
|
|
162
|
+
typeof document < "u" && document.head && (s(u.key, u.css, { order: u.order }), s("phone-input", f)), customElements.get("mp-phone-input") || customElements.define("mp-phone-input", m);
|
|
162
163
|
//#endregion
|
|
163
|
-
export {
|
|
164
|
+
export { m as MpPhoneInput };
|
package/query-builder/index.mjs
CHANGED
|
@@ -2,12 +2,14 @@ import { CoreController as e, LightChildren as t, booleanAttribute as n, numberA
|
|
|
2
2
|
import { LitElement as o, html as s, nothing as c } from "lit";
|
|
3
3
|
import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
|
|
4
4
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
5
|
-
import {
|
|
5
|
+
import { bootstrapForms as d } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { DEFAULT_MESSAGES as f, DEFAULT_OPERATOR_CATALOG as p, MaxDepthExceededError as m, addChild as h, addEmptyConditionTo as g, addEmptyGroupTo as _, addEmptySubqueryTo as v, changeConditionField as y, changeConditionOperator as b, cloneTree as x, collectDescendantIds as S, defaultValueFor as C, emptyCondition as w, emptyGroup as T, emptySubquery as E, findNodeById as D, mapTree as O, moveNode as k, newId as A, operatorsForType as j, queryBuilderCore as M, queryBuilderScopedStyles as N, removeNode as P, renderExpression as F, setGroupLogic as I, updateCondition as L, validateOperatorOverrides as R, valueShapeFor as z, visitTree as B } from "@mintplayer/ui-core/query-builder";
|
|
7
|
+
import { bootstrapButtonGroup as V } from "@mintplayer/ui-core/bootstrap/button-group";
|
|
6
8
|
//#region libs/mintplayer-web-components/query-builder/src/generated/query-builder-item.view.generated.ts
|
|
7
|
-
function
|
|
9
|
+
function H(e, t) {
|
|
8
10
|
return typeof e == "function" ? e(t) : e;
|
|
9
11
|
}
|
|
10
|
-
function
|
|
12
|
+
function U({ node: e, view: t, slots: n = {} }) {
|
|
11
13
|
return s`
|
|
12
14
|
<li data-mps="query-builder" ${i(e.item)}>
|
|
13
15
|
${e.kind === "group" ? s`
|
|
@@ -43,7 +45,7 @@ function V({ node: e, view: t, slots: n = {} }) {
|
|
|
43
45
|
${e.condition.hasEditor ? s`
|
|
44
46
|
<span data-mps="query-builder" ${i(e.condition.editor.wrap)}>
|
|
45
47
|
${e.condition.editor.custom ? s`
|
|
46
|
-
${n.editor === void 0 ? c :
|
|
48
|
+
${n.editor === void 0 ? c : H(n.editor, { ctx: e.condition.editor.ctx })}
|
|
47
49
|
` : e.condition.editor.isSelect ? s`
|
|
48
50
|
<select data-mps="query-builder" ${i(e.condition.editor.select)}>
|
|
49
51
|
${u(e.condition.editor.options, (e) => e.key, (e) => s`
|
|
@@ -89,7 +91,7 @@ function V({ node: e, view: t, slots: n = {} }) {
|
|
|
89
91
|
${e.children.length ? s`
|
|
90
92
|
<ul data-mps="query-builder" ${i(e.list)}>
|
|
91
93
|
${u(e.children, (e) => e.key, (e) => s`
|
|
92
|
-
${
|
|
94
|
+
${U({
|
|
93
95
|
node: e,
|
|
94
96
|
view: t,
|
|
95
97
|
slots: n
|
|
@@ -102,7 +104,7 @@ function V({ node: e, view: t, slots: n = {} }) {
|
|
|
102
104
|
}
|
|
103
105
|
//#endregion
|
|
104
106
|
//#region libs/mintplayer-web-components/query-builder/src/generated/query-builder.view.generated.ts
|
|
105
|
-
function
|
|
107
|
+
function W({ view: e, slots: t = {} }) {
|
|
106
108
|
return s`
|
|
107
109
|
${e.toolbar ? s`
|
|
108
110
|
<div data-mps="query-builder" ${i(e.toolbarBox)}>
|
|
@@ -172,7 +174,7 @@ function H({ view: e, slots: t = {} }) {
|
|
|
172
174
|
<pre data-mps="query-builder" ${i(e.previewBox)}>${e.previewText}</pre>
|
|
173
175
|
` : c}
|
|
174
176
|
<ul data-mps="query-builder" ${i(e.list)}>
|
|
175
|
-
${
|
|
177
|
+
${U({
|
|
176
178
|
node: e.tree,
|
|
177
179
|
view: e,
|
|
178
180
|
slots: t
|
|
@@ -182,7 +184,7 @@ function H({ view: e, slots: t = {} }) {
|
|
|
182
184
|
}
|
|
183
185
|
//#endregion
|
|
184
186
|
//#region libs/mintplayer-web-components/query-builder/src/generated/mp-query-builder.generated.ts
|
|
185
|
-
var
|
|
187
|
+
var G = class extends o {
|
|
186
188
|
static {
|
|
187
189
|
this.properties = {
|
|
188
190
|
query: { attribute: !1 },
|
|
@@ -228,7 +230,7 @@ var U = class extends o {
|
|
|
228
230
|
};
|
|
229
231
|
}
|
|
230
232
|
#e = new t(this);
|
|
231
|
-
#t = new e(this,
|
|
233
|
+
#t = new e(this, M, {
|
|
232
234
|
idPrefix: "mp-query-builder",
|
|
233
235
|
inputs: () => ({
|
|
234
236
|
query: this.query,
|
|
@@ -265,7 +267,7 @@ var U = class extends o {
|
|
|
265
267
|
this.#e.capture();
|
|
266
268
|
}
|
|
267
269
|
render() {
|
|
268
|
-
return
|
|
270
|
+
return W({
|
|
269
271
|
...this.#t.props(),
|
|
270
272
|
slots: {
|
|
271
273
|
...this.#e.slots,
|
|
@@ -274,6 +276,6 @@ var U = class extends o {
|
|
|
274
276
|
});
|
|
275
277
|
}
|
|
276
278
|
};
|
|
277
|
-
typeof document < "u" && document.head && l("query-builder",
|
|
279
|
+
typeof document < "u" && document.head && (l(d.key, d.css, { order: d.order }), l(V.key, V.css, { order: V.order }), l("query-builder", N)), customElements.get("mp-query-builder") || customElements.define("mp-query-builder", G);
|
|
278
280
|
//#endregion
|
|
279
|
-
export {
|
|
281
|
+
export { f as DEFAULT_MESSAGES, p as DEFAULT_OPERATOR_CATALOG, m as MaxDepthExceededError, G as MpQueryBuilder, h as addChild, g as addEmptyConditionTo, _ as addEmptyGroupTo, v as addEmptySubqueryTo, y as changeConditionField, b as changeConditionOperator, x as cloneTree, S as collectDescendantIds, C as defaultValueFor, w as emptyCondition, T as emptyGroup, E as emptySubquery, D as findNodeById, O as mapTree, k as moveNode, A as newId, j as operatorsForType, P as removeNode, F as renderExpression, I as setGroupLogic, L as updateCondition, R as validateOperatorOverrides, z as valueShapeFor, B as visitTree };
|