@mintplayer/vue-bootstrap 3.30.0 → 3.32.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 +12 -11
- package/accordion/index.mjs +26 -24
- package/card/index.mjs +65 -29
- package/carousel/index.mjs +15 -14
- package/checkbox/index.mjs +1 -1
- package/checkbox/src/BsCheckbox.vue.d.ts +1 -1
- package/chunks/BsCheckbox-D7eBD_nx.mjs +109 -0
- package/chunks/{BsDatatable.generated-uNBvWmhM.mjs → BsDatatable.generated-Dy-c1OTA.mjs} +17 -14
- package/chunks/{BsDatetimePicker.generated-DB9itVGP.mjs → BsDatetimePicker.generated-C7_hr0cg.mjs} +11 -10
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/BsDatatable.generated.vue.d.ts +5 -3
- package/datepicker/index.mjs +11 -10
- package/datepicker/src/generated/BsDatepicker.generated.vue.d.ts +1 -1
- package/datetime-picker/index.mjs +1 -1
- package/datetime-picker/src/generated/BsDatetimePicker.generated.vue.d.ts +1 -1
- package/dropdown-menu/index.mjs +25 -18
- package/file-manager/index.mjs +10 -9
- package/input-group/index.mjs +12 -10
- package/machine/index.mjs +55 -44
- package/machine/src/index.d.ts +1 -0
- package/machine/src/mark-links.d.ts +10 -0
- package/nav/index.mjs +92 -0
- package/nav/src/generated/BsNav.generated.vue.d.ts +162 -0
- package/nav/src/generated/BsNavItem.generated.vue.d.ts +122 -0
- package/nav/src/generated/index.d.ts +2 -0
- package/nav/src/generated/nav-item.view.generated.vue.d.ts +27 -0
- package/nav/src/generated/nav.view.generated.vue.d.ts +27 -0
- package/nav/src/index.d.ts +1 -0
- package/nav/src/nav-item.vue.d.ts +2 -0
- package/navbar/index.mjs +81 -72
- package/navbar/src/navbar-item.vue.d.ts +2 -0
- package/otp-input/index.mjs +10 -9
- package/otp-input/src/generated/BsOtpInput.generated.vue.d.ts +1 -1
- package/package.json +10 -2
- package/pagination/index.mjs +27 -20
- package/phone-input/index.mjs +12 -11
- package/query-builder/index.mjs +12 -10
- package/radio/index.mjs +46 -33
- package/radio/src/BsRadio.vue.d.ts +1 -1
- package/ribbon/src/generated/BsRibbonCheckBox.generated.vue.d.ts +1 -1
- package/ribbon/src/generated/BsRibbonColorPicker.generated.vue.d.ts +1 -1
- package/scheduler/index.mjs +35 -34
- package/select/index.mjs +10 -9
- package/signature-pad/index.mjs +15 -14
- package/spinner/index.mjs +63 -0
- package/spinner/src/generated/BsSpinner.generated.vue.d.ts +60 -0
- package/spinner/src/generated/index.d.ts +1 -0
- package/spinner/src/generated/spinner.view.generated.vue.d.ts +9 -0
- package/spinner/src/index.d.ts +1 -0
- package/tab-control/index.mjs +29 -27
- package/timepicker/index.mjs +17 -16
- package/timepicker/src/generated/BsTimepicker.generated.vue.d.ts +1 -1
- package/toggle-button/index.mjs +1 -1
- package/tree-select/src/generated/BsTreeSelect.generated.vue.d.ts +1 -1
- package/typeahead/index.mjs +62 -59
- package/typeahead/src/BsTypeahead.vue.d.ts +1 -1
- package/chunks/BsCheckbox-C8H1KT2D.mjs +0 -96
package/navbar/index.mjs
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createBlock as
|
|
3
|
-
import { installLightStyles as
|
|
4
|
-
import {
|
|
1
|
+
import { markLinks as e, useCore as t, vueCoreContextKey as n } from "../machine/index.mjs";
|
|
2
|
+
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, mergeProps as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, useTemplateRef as _, withCtx as v } from "vue";
|
|
3
|
+
import { installLightStyles as y } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { bootstrapDropdown as b } from "@mintplayer/ui-core/bootstrap/dropdown";
|
|
5
|
+
import { bootstrapNav as x } from "@mintplayer/ui-core/bootstrap/nav";
|
|
6
|
+
import { NAVBAR_NESTING as S, navbarCore as C, navbarDropdownCore as w, navbarItemCore as T, navbarNavCore as E, navbarScopedStyles as D } from "@mintplayer/ui-core/navbar";
|
|
7
|
+
import { bootstrapNavbar as O } from "@mintplayer/ui-core/bootstrap/navbar";
|
|
5
8
|
//#endregion
|
|
6
9
|
//#region libs/mintplayer-vue-bootstrap/navbar/src/generated/navbar.view.generated.vue
|
|
7
|
-
var
|
|
10
|
+
var k = /* @__PURE__ */ u({
|
|
8
11
|
__name: "navbar.view.generated",
|
|
9
12
|
props: {
|
|
10
13
|
view: {},
|
|
11
14
|
brand: {}
|
|
12
15
|
},
|
|
13
16
|
setup(e) {
|
|
14
|
-
return (t,
|
|
17
|
+
return (t, n) => (p(), a("nav", f({
|
|
15
18
|
"data-mps": "navbar",
|
|
16
19
|
ref: "root"
|
|
17
20
|
}, e.view.root), [
|
|
18
|
-
t.$slots.brand ? (
|
|
21
|
+
t.$slots.brand ? (p(), a("div", f({
|
|
19
22
|
key: 0,
|
|
20
23
|
"data-mps": "navbar"
|
|
21
|
-
}, e.brand), [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
}, e.brand), [m(t.$slots, "brand")], 16)) : i("", !0),
|
|
25
|
+
o("input", f({ "data-mps": "navbar" }, e.view.toggle), null, 16),
|
|
26
|
+
o("label", f({ "data-mps": "navbar" }, e.view.toggler), [m(t.$slots, "toggler", {}, () => [
|
|
27
|
+
o("span", f({ "data-mps": "navbar" }, e.view.bar), null, 16),
|
|
28
|
+
o("span", f({ "data-mps": "navbar" }, e.view.bar), null, 16),
|
|
29
|
+
o("span", f({ "data-mps": "navbar" }, e.view.bar), null, 16)
|
|
27
30
|
])], 16),
|
|
28
|
-
|
|
31
|
+
o("div", f({ "data-mps": "navbar" }, e.view.collapse), [o("div", f({ "data-mps": "navbar" }, e.view.inner), [m(t.$slots, "default")], 16)], 16)
|
|
29
32
|
], 16));
|
|
30
33
|
}
|
|
31
|
-
}),
|
|
34
|
+
}), A = /* @__PURE__ */ u({
|
|
32
35
|
name: "BsNavbar",
|
|
33
36
|
__name: "BsNavbar.generated",
|
|
34
37
|
props: {
|
|
@@ -54,79 +57,82 @@ var x = /* @__PURE__ */ s({
|
|
|
54
57
|
}
|
|
55
58
|
},
|
|
56
59
|
emits: ["expandedchange", "update:expanded"],
|
|
57
|
-
setup(
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
let
|
|
61
|
-
breakpoint:
|
|
62
|
-
color:
|
|
63
|
-
expanded:
|
|
64
|
-
positioning:
|
|
65
|
-
labels:
|
|
60
|
+
setup(e, { expose: n, emit: i }) {
|
|
61
|
+
let a = e, o = i;
|
|
62
|
+
y(b.key, b.css, { order: b.order }), y(x.key, x.css, { order: x.order }), y(O.key, O.css, { order: O.order }), y("navbar", D);
|
|
63
|
+
let c = _("template"), l = t(C, () => ({
|
|
64
|
+
breakpoint: a.breakpoint,
|
|
65
|
+
color: a.color,
|
|
66
|
+
expanded: a.expanded,
|
|
67
|
+
positioning: a.positioning,
|
|
68
|
+
labels: a.labels
|
|
66
69
|
}), {
|
|
67
70
|
idPrefix: "bs-navbar",
|
|
68
|
-
root: () =>
|
|
69
|
-
emit: (e, t) =>
|
|
71
|
+
root: () => c.value?.$el,
|
|
72
|
+
emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
|
|
70
73
|
models: ["expanded"]
|
|
71
|
-
}),
|
|
72
|
-
return
|
|
74
|
+
}), u = l.props;
|
|
75
|
+
return n({ toggle: (...e) => l.call("toggle", e) }), (e, t) => (p(), r(k, f({
|
|
73
76
|
ref_key: "template",
|
|
74
|
-
ref:
|
|
75
|
-
},
|
|
76
|
-
default:
|
|
77
|
+
ref: c
|
|
78
|
+
}, g(u)), s({
|
|
79
|
+
default: v(() => [m(e.$slots, "default")]),
|
|
77
80
|
_: 2
|
|
78
81
|
}, [e.$slots.brand ? {
|
|
79
82
|
name: "brand",
|
|
80
|
-
fn:
|
|
83
|
+
fn: v(() => [m(e.$slots, "brand")]),
|
|
81
84
|
key: "0"
|
|
82
85
|
} : void 0, e.$slots.toggler ? {
|
|
83
86
|
name: "toggler",
|
|
84
|
-
fn:
|
|
87
|
+
fn: v(() => [m(e.$slots, "toggler")]),
|
|
85
88
|
key: "1"
|
|
86
89
|
} : void 0]), 1040));
|
|
87
90
|
}
|
|
88
|
-
}),
|
|
91
|
+
}), j = /* @__PURE__ */ u({
|
|
89
92
|
__name: "navbar-nav.view.generated",
|
|
90
93
|
props: { bag: {} },
|
|
91
94
|
setup(e) {
|
|
92
|
-
return (t, n) => (
|
|
95
|
+
return (t, n) => (p(), a("div", f({
|
|
93
96
|
"data-mps": "navbar",
|
|
94
97
|
ref: "root"
|
|
95
|
-
}, e.bag), [
|
|
98
|
+
}, e.bag), [m(t.$slots, "default")], 16));
|
|
96
99
|
}
|
|
97
|
-
}),
|
|
100
|
+
}), M = /* @__PURE__ */ u({
|
|
98
101
|
name: "BsNavbarNav",
|
|
99
102
|
__name: "BsNavbarNav.generated",
|
|
100
103
|
props: { align: {
|
|
101
104
|
type: String,
|
|
102
105
|
default: "start"
|
|
103
106
|
} },
|
|
104
|
-
setup(
|
|
105
|
-
let
|
|
106
|
-
|
|
107
|
-
let i =
|
|
107
|
+
setup(e) {
|
|
108
|
+
let n = e;
|
|
109
|
+
y(b.key, b.css, { order: b.order }), y(x.key, x.css, { order: x.order }), y(O.key, O.css, { order: O.order }), y("navbar", D);
|
|
110
|
+
let i = _("template"), a = t(E, () => ({ align: n.align }), {
|
|
108
111
|
idPrefix: "bs-navbar-nav",
|
|
109
112
|
root: () => i.value?.$el,
|
|
110
113
|
emit: () => void 0
|
|
111
114
|
}).props;
|
|
112
|
-
return (e,
|
|
115
|
+
return (e, t) => (p(), r(j, f({
|
|
113
116
|
ref_key: "template",
|
|
114
117
|
ref: i
|
|
115
|
-
},
|
|
116
|
-
default:
|
|
118
|
+
}, g(a)), {
|
|
119
|
+
default: v(() => [m(e.$slots, "default")]),
|
|
117
120
|
_: 3
|
|
118
121
|
}, 16));
|
|
119
122
|
}
|
|
120
|
-
}),
|
|
123
|
+
}), N = /* @__PURE__ */ u({
|
|
121
124
|
__name: "navbar-item.view.generated",
|
|
122
125
|
props: { bag: {} },
|
|
123
126
|
setup(e) {
|
|
124
|
-
return (t, n) => (
|
|
127
|
+
return (t, n) => (p(), a("div", f({
|
|
125
128
|
"data-mps": "navbar",
|
|
126
129
|
ref: "root"
|
|
127
|
-
}, e.bag), [
|
|
130
|
+
}, e.bag), [m(t.$slots, "default")], 16));
|
|
128
131
|
}
|
|
129
|
-
}),
|
|
132
|
+
}), P = (t, { slots: r }) => {
|
|
133
|
+
let i = (d(n(S), null)?.value.depth ?? -1) >= 0, a = r.default?.();
|
|
134
|
+
return i ? a : e(a, "nav-link", "navbar");
|
|
135
|
+
}, F = /* @__PURE__ */ u({
|
|
130
136
|
name: "BsNavbarItem",
|
|
131
137
|
__name: "BsNavbarItem.generated",
|
|
132
138
|
props: {
|
|
@@ -139,38 +145,41 @@ var x = /* @__PURE__ */ s({
|
|
|
139
145
|
default: !1
|
|
140
146
|
}
|
|
141
147
|
},
|
|
142
|
-
setup(
|
|
143
|
-
let
|
|
144
|
-
|
|
145
|
-
let i =
|
|
146
|
-
active:
|
|
147
|
-
disabled:
|
|
148
|
+
setup(e) {
|
|
149
|
+
let n = e;
|
|
150
|
+
y(b.key, b.css, { order: b.order }), y(x.key, x.css, { order: x.order }), y(O.key, O.css, { order: O.order }), y("navbar", D);
|
|
151
|
+
let i = _("template"), a = t(T, () => ({
|
|
152
|
+
active: n.active,
|
|
153
|
+
disabled: n.disabled
|
|
148
154
|
}), {
|
|
149
155
|
idPrefix: "bs-navbar-item",
|
|
150
156
|
root: () => i.value?.$el,
|
|
151
157
|
emit: () => void 0
|
|
152
158
|
}).props;
|
|
153
|
-
return (e,
|
|
159
|
+
return (e, t) => (p(), r(N, f({
|
|
154
160
|
ref_key: "template",
|
|
155
161
|
ref: i
|
|
156
|
-
},
|
|
157
|
-
default:
|
|
162
|
+
}, g(a)), {
|
|
163
|
+
default: v(() => [l(g(P), null, {
|
|
164
|
+
default: v(() => [m(e.$slots, "default")]),
|
|
165
|
+
_: 3
|
|
166
|
+
})]),
|
|
158
167
|
_: 3
|
|
159
168
|
}, 16));
|
|
160
169
|
}
|
|
161
|
-
}),
|
|
170
|
+
}), I = /* @__PURE__ */ u({
|
|
162
171
|
__name: "navbar-dropdown.view.generated",
|
|
163
172
|
props: {
|
|
164
173
|
view: {},
|
|
165
174
|
label: {}
|
|
166
175
|
},
|
|
167
176
|
setup(e) {
|
|
168
|
-
return (t, n) => (
|
|
177
|
+
return (t, n) => (p(), a("details", f({
|
|
169
178
|
"data-mps": "navbar",
|
|
170
179
|
ref: "root"
|
|
171
|
-
}, e.view.details), [
|
|
180
|
+
}, e.view.details), [o("summary", f({ "data-mps": "navbar" }, e.view.summary), [m(t.$slots, "labelTemplate", {}, () => [c(h(e.label), 1)])], 16), o("div", f({ "data-mps": "navbar" }, e.view.panel), [m(t.$slots, "default")], 16)], 16));
|
|
172
181
|
}
|
|
173
|
-
}),
|
|
182
|
+
}), L = /* @__PURE__ */ u({
|
|
174
183
|
name: "BsNavbarDropdown",
|
|
175
184
|
__name: "BsNavbarDropdown.generated",
|
|
176
185
|
props: {
|
|
@@ -183,29 +192,29 @@ var x = /* @__PURE__ */ s({
|
|
|
183
192
|
default: !1
|
|
184
193
|
}
|
|
185
194
|
},
|
|
186
|
-
setup(
|
|
187
|
-
let
|
|
188
|
-
|
|
189
|
-
let i =
|
|
190
|
-
label:
|
|
191
|
-
active:
|
|
195
|
+
setup(e) {
|
|
196
|
+
let n = e;
|
|
197
|
+
y(b.key, b.css, { order: b.order }), y(x.key, x.css, { order: x.order }), y(O.key, O.css, { order: O.order }), y("navbar", D);
|
|
198
|
+
let i = _("template"), a = t(w, () => ({
|
|
199
|
+
label: n.label,
|
|
200
|
+
active: n.active
|
|
192
201
|
}), {
|
|
193
202
|
idPrefix: "bs-navbar-dropdown",
|
|
194
203
|
root: () => i.value?.$el,
|
|
195
204
|
emit: () => void 0
|
|
196
205
|
}).props;
|
|
197
|
-
return (e,
|
|
206
|
+
return (e, t) => (p(), r(I, f({
|
|
198
207
|
ref_key: "template",
|
|
199
208
|
ref: i
|
|
200
|
-
},
|
|
201
|
-
default:
|
|
209
|
+
}, g(a)), s({
|
|
210
|
+
default: v(() => [m(e.$slots, "default")]),
|
|
202
211
|
_: 2
|
|
203
212
|
}, [e.$slots.labelTemplate ? {
|
|
204
213
|
name: "labelTemplate",
|
|
205
|
-
fn:
|
|
214
|
+
fn: v(() => [m(e.$slots, "labelTemplate")]),
|
|
206
215
|
key: "0"
|
|
207
216
|
} : void 0]), 1040));
|
|
208
217
|
}
|
|
209
218
|
});
|
|
210
219
|
//#endregion
|
|
211
|
-
export {
|
|
220
|
+
export { A as BsNavbar, L as BsNavbarDropdown, F as BsNavbarItem, M as BsNavbarNav };
|
package/otp-input/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useCore as e } from "../machine/index.mjs";
|
|
2
2
|
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, useTemplateRef as f } from "vue";
|
|
3
3
|
import { installLightStyles as p } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
-
import {
|
|
4
|
+
import { bootstrapForms as m } from "@mintplayer/ui-core/bootstrap/forms";
|
|
5
|
+
import { otpInputCore as h, otpInputScopedStyles as g } from "@mintplayer/ui-core/otp-input";
|
|
5
6
|
//#endregion
|
|
6
7
|
//#region libs/mintplayer-vue-bootstrap/otp-input/src/generated/otp-input.view.generated.vue
|
|
7
|
-
var
|
|
8
|
+
var _ = /* @__PURE__ */ o({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "otp-input.view.generated",
|
|
10
11
|
props: { view: {} },
|
|
@@ -28,7 +29,7 @@ var g = /* @__PURE__ */ o({
|
|
|
28
29
|
"data-mps": "otp-input"
|
|
29
30
|
}, e.view.feedback.attrs), u(e.view.feedback.text), 17)) : r("", !0)], 16));
|
|
30
31
|
}
|
|
31
|
-
}),
|
|
32
|
+
}), v = /* @__PURE__ */ o({
|
|
32
33
|
name: "BsOtpInput",
|
|
33
34
|
__name: "BsOtpInput.generated",
|
|
34
35
|
props: {
|
|
@@ -91,8 +92,8 @@ var g = /* @__PURE__ */ o({
|
|
|
91
92
|
],
|
|
92
93
|
setup(t, { expose: r, emit: i }) {
|
|
93
94
|
let a = t, o = i;
|
|
94
|
-
p("otp-input",
|
|
95
|
-
let l = f("template"), u = e(
|
|
95
|
+
p(m.key, m.css, { order: m.order }), p("otp-input", g);
|
|
96
|
+
let l = f("template"), u = e(h, () => ({
|
|
96
97
|
groups: a.groups,
|
|
97
98
|
type: a.type,
|
|
98
99
|
letterCase: a.letterCase,
|
|
@@ -109,15 +110,15 @@ var g = /* @__PURE__ */ o({
|
|
|
109
110
|
root: () => l.value?.$el,
|
|
110
111
|
emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
|
|
111
112
|
models: ["value"]
|
|
112
|
-
}),
|
|
113
|
+
}), v = u.props;
|
|
113
114
|
return r({
|
|
114
115
|
clear: (...e) => u.call("clear", e),
|
|
115
116
|
focusInput: (...e) => u.call("focusInput", e)
|
|
116
|
-
}), (e, t) => (c(), n(
|
|
117
|
+
}), (e, t) => (c(), n(_, s({
|
|
117
118
|
ref_key: "template",
|
|
118
119
|
ref: l
|
|
119
|
-
}, d(
|
|
120
|
+
}, d(v)), null, 16));
|
|
120
121
|
}
|
|
121
122
|
});
|
|
122
123
|
//#endregion
|
|
123
|
-
export {
|
|
124
|
+
export { v as BsOtpInput };
|
|
@@ -108,8 +108,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
108
108
|
disabled: boolean;
|
|
109
109
|
value: string;
|
|
110
110
|
size: import('@mintplayer/ui-core/otp-input').OtpInputSize;
|
|
111
|
-
type: import('@mintplayer/ui-core/otp-input').OtpInputType;
|
|
112
111
|
invalid: boolean;
|
|
112
|
+
type: import('@mintplayer/ui-core/otp-input').OtpInputType;
|
|
113
113
|
inputLabel: string | null | undefined;
|
|
114
114
|
required: boolean;
|
|
115
115
|
errorText: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/vue-bootstrap",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.0",
|
|
4
4
|
"description": "Vue 3.5 Bootstrap components. Each sub-entry renders its own template over a framework-neutral core from @mintplayer/ui-core, with v-model on every two-way input, so it server-renders real HTML and defines no custom elements.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -98,6 +98,10 @@
|
|
|
98
98
|
"types": "./multi-range/src/index.d.ts",
|
|
99
99
|
"import": "./multi-range/index.mjs"
|
|
100
100
|
},
|
|
101
|
+
"./nav": {
|
|
102
|
+
"types": "./nav/src/index.d.ts",
|
|
103
|
+
"import": "./nav/index.mjs"
|
|
104
|
+
},
|
|
101
105
|
"./navbar": {
|
|
102
106
|
"types": "./navbar/src/index.d.ts",
|
|
103
107
|
"import": "./navbar/index.mjs"
|
|
@@ -146,6 +150,10 @@
|
|
|
146
150
|
"types": "./signature-pad/src/index.d.ts",
|
|
147
151
|
"import": "./signature-pad/index.mjs"
|
|
148
152
|
},
|
|
153
|
+
"./spinner": {
|
|
154
|
+
"types": "./spinner/src/index.d.ts",
|
|
155
|
+
"import": "./spinner/index.mjs"
|
|
156
|
+
},
|
|
149
157
|
"./splitter": {
|
|
150
158
|
"types": "./splitter/src/index.d.ts",
|
|
151
159
|
"import": "./splitter/index.mjs"
|
|
@@ -188,7 +196,7 @@
|
|
|
188
196
|
}
|
|
189
197
|
},
|
|
190
198
|
"peerDependencies": {
|
|
191
|
-
"@mintplayer/ui-core": "^1.
|
|
199
|
+
"@mintplayer/ui-core": "^1.5.0",
|
|
192
200
|
"vue": "^3.5.0"
|
|
193
201
|
},
|
|
194
202
|
"dependencies": {
|
package/pagination/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i,
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, mergeModels as a, mergeProps as o, normalizeClass as s, openBlock as c, renderList as l, toDisplayString as u, useModel as d } from "vue";
|
|
2
|
+
import { installBootstrap as f } from "@mintplayer/ui-core/bootstrap";
|
|
3
|
+
import { bootstrapPagination as p } from "@mintplayer/ui-core/bootstrap/pagination";
|
|
2
4
|
import { connectPagination as m, isPlainClick as h } from "@mintplayer/ui-core/pagination";
|
|
3
5
|
//#region libs/mintplayer-vue-bootstrap/pagination/src/BsPagination.vue?vue&type=script&setup=true&lang.ts
|
|
4
6
|
var g = ["href", "onClick"], _ = ["onClick"], v = /* @__PURE__ */ i({
|
|
5
7
|
inheritAttrs: !1,
|
|
6
8
|
__name: "BsPagination",
|
|
7
|
-
props: /*@__PURE__*/
|
|
9
|
+
props: /*@__PURE__*/ a({
|
|
8
10
|
pageNumbers: { default: () => [] },
|
|
9
11
|
numberOfBoxes: { default: 0 },
|
|
10
12
|
showArrows: {
|
|
@@ -23,14 +25,15 @@ var g = ["href", "onClick"], _ = ["onClick"], v = /* @__PURE__ */ i({
|
|
|
23
25
|
}),
|
|
24
26
|
emits: ["update:modelValue"],
|
|
25
27
|
setup(i) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
f(p);
|
|
29
|
+
let a = i, v = d(i, "modelValue"), y = t(() => m({
|
|
30
|
+
pageNumbers: a.pageNumbers,
|
|
28
31
|
selectedPageNumber: typeof v.value == "number" ? v.value : 1,
|
|
29
|
-
numberOfBoxes:
|
|
30
|
-
showArrows:
|
|
31
|
-
size:
|
|
32
|
-
labels:
|
|
33
|
-
hrefFor:
|
|
32
|
+
numberOfBoxes: a.numberOfBoxes,
|
|
33
|
+
showArrows: a.showArrows,
|
|
34
|
+
size: a.size,
|
|
35
|
+
labels: a.labels,
|
|
36
|
+
hrefFor: a.hrefFor
|
|
34
37
|
}));
|
|
35
38
|
function b(e) {
|
|
36
39
|
e !== null && (v.value = e);
|
|
@@ -38,25 +41,29 @@ var g = ["href", "onClick"], _ = ["onClick"], v = /* @__PURE__ */ i({
|
|
|
38
41
|
function x(e, t) {
|
|
39
42
|
h(e) && (e.preventDefault(), b(t));
|
|
40
43
|
}
|
|
41
|
-
return (t, i) => (
|
|
44
|
+
return (t, i) => (c(), n("nav", o({ "data-mps": "pagination" }, {
|
|
42
45
|
...y.value.nav,
|
|
43
46
|
...t.$attrs
|
|
44
|
-
})
|
|
47
|
+
}), [r("ul", {
|
|
48
|
+
"data-mps": "pagination",
|
|
49
|
+
class: s(y.value.listClass)
|
|
50
|
+
}, [(c(!0), n(e, null, l(y.value.entries, (e) => (c(), n("li", {
|
|
51
|
+
"data-mps": "pagination",
|
|
45
52
|
key: e.key,
|
|
46
|
-
class:
|
|
47
|
-
}, [e.kind === "gap" ? (
|
|
53
|
+
class: s(e.itemClass)
|
|
54
|
+
}, [e.kind === "gap" ? (c(), n("span", o({
|
|
48
55
|
key: 0,
|
|
49
|
-
|
|
50
|
-
}, e.attrs),
|
|
56
|
+
"data-mps": "pagination"
|
|
57
|
+
}, { ref_for: !0 }, e.attrs), u(e.text), 17)) : y.value.tag === "a" ? (c(), n("a", o({
|
|
51
58
|
key: 1,
|
|
52
|
-
|
|
53
|
-
}, e.attrs, {
|
|
59
|
+
"data-mps": "pagination"
|
|
60
|
+
}, { ref_for: !0 }, e.attrs, {
|
|
54
61
|
href: e.href ?? void 0,
|
|
55
62
|
onClick: (t) => x(t, e.target)
|
|
56
|
-
}),
|
|
63
|
+
}), u(e.text), 17, g)) : (c(), n("button", o({
|
|
57
64
|
key: 2,
|
|
58
|
-
|
|
59
|
-
}, e.attrs, { onClick: (t) => b(e.target) }),
|
|
65
|
+
"data-mps": "pagination"
|
|
66
|
+
}, { ref_for: !0 }, e.attrs, { onClick: (t) => b(e.target) }), u(e.text), 17, _))], 2))), 128))], 2)], 16));
|
|
60
67
|
}
|
|
61
68
|
});
|
|
62
69
|
//#endregion
|
package/phone-input/index.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { useCore as e } from "../machine/index.mjs";
|
|
2
2
|
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderList as u, toDisplayString as d, unref as f, useTemplateRef as p } from "vue";
|
|
3
3
|
import { installLightStyles as m } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
-
import {
|
|
4
|
+
import { bootstrapForms as h } from "@mintplayer/ui-core/bootstrap/forms";
|
|
5
|
+
import { phoneInputCore as g, phoneInputScopedStyles as _ } from "@mintplayer/ui-core/phone-input";
|
|
5
6
|
//#region libs/mintplayer-vue-bootstrap/phone-input/src/generated/phone-input.view.generated.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var v = {
|
|
7
8
|
key: 0,
|
|
8
9
|
"data-mps": "phone-input",
|
|
9
10
|
type: "button"
|
|
10
|
-
},
|
|
11
|
+
}, y = ["innerHTML"], b = ["innerHTML"], x = /* @__PURE__ */ s({
|
|
11
12
|
inheritAttrs: !1,
|
|
12
13
|
__name: "phone-input.view.generated",
|
|
13
14
|
props: { view: {} },
|
|
@@ -19,16 +20,16 @@ var _ = {
|
|
|
19
20
|
ref: "root"
|
|
20
21
|
}, e.view.root), [
|
|
21
22
|
a("div", c({ "data-mps": "phone-input" }, e.view.group), [
|
|
22
|
-
a("select", c({ "data-mps": "phone-input" }, e.view.select), [e.view.rich ? (l(), i("button",
|
|
23
|
+
a("select", c({ "data-mps": "phone-input" }, e.view.select), [e.view.rich ? (l(), i("button", v, [...s[0] ||= [a("selectedcontent", null, null, -1)]])) : r("", !0), (l(!0), i(t, null, u(e.view.options, (n) => (l(), i("option", c({
|
|
23
24
|
"data-mps": "phone-input",
|
|
24
25
|
key: n.key
|
|
25
26
|
}, { ref_for: !0 }, n.bag), [e.view.rich ? (l(), i(t, { key: 0 }, [
|
|
26
|
-
a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.flagBox, { innerHTML: n.flag }), null, 16,
|
|
27
|
+
a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.flagBox, { innerHTML: n.flag }), null, 16, y),
|
|
27
28
|
a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.richLabel), d(n.name), 17),
|
|
28
29
|
a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.listOnly), d(n.dial), 17),
|
|
29
30
|
a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.closedOnly), d(n.iso), 17)
|
|
30
31
|
], 64)) : (l(), i(t, { key: 1 }, [o(d(n.label), 1)], 64))], 16))), 128))], 16),
|
|
31
|
-
a("span", c({ "data-mps": "phone-input" }, e.view.addon), [a("span", c({ "data-mps": "phone-input" }, e.view.flag, { innerHTML: e.view.flagHtml }), null, 16,
|
|
32
|
+
a("span", c({ "data-mps": "phone-input" }, e.view.addon), [a("span", c({ "data-mps": "phone-input" }, e.view.flag, { innerHTML: e.view.flagHtml }), null, 16, b), a("span", c({ "data-mps": "phone-input" }, e.view.dial), d(e.view.dialText), 17)], 16),
|
|
32
33
|
a("input", c({ "data-mps": "phone-input" }, {
|
|
33
34
|
...e.view.input,
|
|
34
35
|
...n.$attrs,
|
|
@@ -47,7 +48,7 @@ var _ = {
|
|
|
47
48
|
}, e.view.feedback.attrs), d(e.view.feedback.text), 17)) : r("", !0)
|
|
48
49
|
], 16));
|
|
49
50
|
}
|
|
50
|
-
}),
|
|
51
|
+
}), S = /* @__PURE__ */ s({
|
|
51
52
|
name: "BsPhoneInput",
|
|
52
53
|
__name: "BsPhoneInput.generated",
|
|
53
54
|
props: {
|
|
@@ -121,8 +122,8 @@ var _ = {
|
|
|
121
122
|
],
|
|
122
123
|
setup(t, { expose: r, emit: i }) {
|
|
123
124
|
let a = t, o = i;
|
|
124
|
-
m("phone-input",
|
|
125
|
-
let s = p("template"), u = e(
|
|
125
|
+
m(h.key, h.css, { order: h.order }), m("phone-input", _);
|
|
126
|
+
let s = p("template"), u = e(g, () => ({
|
|
126
127
|
value: a.value,
|
|
127
128
|
country: a.country,
|
|
128
129
|
defaultCountry: a.defaultCountry,
|
|
@@ -147,11 +148,11 @@ var _ = {
|
|
|
147
148
|
return r({
|
|
148
149
|
focusInput: (...e) => u.call("focusInput", e),
|
|
149
150
|
whenReady: (...e) => u.call("whenReady", e)
|
|
150
|
-
}), (e, t) => (l(), n(
|
|
151
|
+
}), (e, t) => (l(), n(x, c({
|
|
151
152
|
ref_key: "template",
|
|
152
153
|
ref: s
|
|
153
154
|
}, f(d)), null, 16));
|
|
154
155
|
}
|
|
155
156
|
});
|
|
156
157
|
//#endregion
|
|
157
|
-
export {
|
|
158
|
+
export { S as BsPhoneInput };
|
package/query-builder/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { useCore as e } from "../machine/index.mjs";
|
|
2
2
|
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, openBlock as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useTemplateRef as v, withCtx as y } from "vue";
|
|
3
3
|
import { installLightStyles as b } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
-
import {
|
|
4
|
+
import { bootstrapForms as x } from "@mintplayer/ui-core/bootstrap/forms";
|
|
5
|
+
import { DEFAULT_MESSAGES as S, DEFAULT_OPERATOR_CATALOG as C, MaxDepthExceededError as w, addChild as T, addEmptyConditionTo as E, addEmptyGroupTo as D, addEmptySubqueryTo as O, changeConditionField as k, changeConditionOperator as A, cloneTree as j, collectDescendantIds as M, defaultValueFor as N, emptyCondition as P, emptyGroup as F, emptySubquery as I, findNodeById as L, mapTree as R, moveNode as z, newId as B, operatorsForType as V, queryBuilderCore as H, queryBuilderScopedStyles as U, removeNode as W, renderExpression as G, setGroupLogic as K, updateCondition as q, validateOperatorOverrides as J, valueShapeFor as Y, visitTree as X } from "@mintplayer/ui-core/query-builder";
|
|
6
|
+
import { bootstrapButtonGroup as Z } from "@mintplayer/ui-core/bootstrap/button-group";
|
|
5
7
|
//#endregion
|
|
6
8
|
//#region libs/mintplayer-vue-bootstrap/query-builder/src/generated/query-builder-item.view.generated.vue
|
|
7
|
-
var
|
|
9
|
+
var Q = /* @__PURE__ */ l({
|
|
8
10
|
__name: "query-builder-item.view.generated",
|
|
9
11
|
props: {
|
|
10
12
|
node: {},
|
|
@@ -78,7 +80,7 @@ var X = /* @__PURE__ */ l({
|
|
|
78
80
|
}, e.node.note), g(e.node.text), 17)), e.node.children.length ? (p(), i("ul", d({
|
|
79
81
|
key: 4,
|
|
80
82
|
"data-mps": "query-builder"
|
|
81
|
-
}, e.node.list), [(p(!0), i(t, null, m(e.node.children, (t) => (p(), n(
|
|
83
|
+
}, e.node.list), [(p(!0), i(t, null, m(e.node.children, (t) => (p(), n(Q, {
|
|
82
84
|
key: t.key,
|
|
83
85
|
node: t,
|
|
84
86
|
view: e.view
|
|
@@ -88,7 +90,7 @@ var X = /* @__PURE__ */ l({
|
|
|
88
90
|
key: "0"
|
|
89
91
|
} : void 0]), 1032, ["node", "view"]))), 128))], 16)) : r("", !0)], 16));
|
|
90
92
|
}
|
|
91
|
-
}),
|
|
93
|
+
}), $ = /* @__PURE__ */ l({
|
|
92
94
|
__name: "query-builder.view.generated",
|
|
93
95
|
props: { view: {} },
|
|
94
96
|
setup(e) {
|
|
@@ -147,7 +149,7 @@ var X = /* @__PURE__ */ l({
|
|
|
147
149
|
key: 2,
|
|
148
150
|
"data-mps": "query-builder"
|
|
149
151
|
}, e.view.previewBox), g(e.view.previewText), 17)) : r("", !0),
|
|
150
|
-
a("ul", d({ "data-mps": "query-builder" }, e.view.list), [c(
|
|
152
|
+
a("ul", d({ "data-mps": "query-builder" }, e.view.list), [c(Q, {
|
|
151
153
|
node: e.view.tree,
|
|
152
154
|
view: e.view
|
|
153
155
|
}, o({ _: 2 }, [n.$slots.editor ? {
|
|
@@ -157,7 +159,7 @@ var X = /* @__PURE__ */ l({
|
|
|
157
159
|
} : void 0]), 1032, ["node", "view"])], 16)
|
|
158
160
|
], 16));
|
|
159
161
|
}
|
|
160
|
-
}),
|
|
162
|
+
}), ee = /* @__PURE__ */ l({
|
|
161
163
|
name: "BsQueryBuilder",
|
|
162
164
|
__name: "BsQueryBuilder.generated",
|
|
163
165
|
props: {
|
|
@@ -225,8 +227,8 @@ var X = /* @__PURE__ */ l({
|
|
|
225
227
|
],
|
|
226
228
|
setup(t, { emit: r }) {
|
|
227
229
|
let i = t, a = r;
|
|
228
|
-
b("query-builder",
|
|
229
|
-
let s = v("template"), c = e(
|
|
230
|
+
b(x.key, x.css, { order: x.order }), b(Z.key, Z.css, { order: Z.order }), b("query-builder", U);
|
|
231
|
+
let s = v("template"), c = e(H, () => ({
|
|
230
232
|
query: i.query,
|
|
231
233
|
schema: i.schema,
|
|
232
234
|
rootEntity: i.rootEntity,
|
|
@@ -250,7 +252,7 @@ var X = /* @__PURE__ */ l({
|
|
|
250
252
|
"sortBy"
|
|
251
253
|
]
|
|
252
254
|
}).props;
|
|
253
|
-
return (e, t) => (p(), n(
|
|
255
|
+
return (e, t) => (p(), n($, d({
|
|
254
256
|
ref_key: "template",
|
|
255
257
|
ref: s
|
|
256
258
|
}, _(c)), o({ _: 2 }, [e.$slots.editor ? {
|
|
@@ -261,4 +263,4 @@ var X = /* @__PURE__ */ l({
|
|
|
261
263
|
}
|
|
262
264
|
});
|
|
263
265
|
//#endregion
|
|
264
|
-
export {
|
|
266
|
+
export { ee as BsQueryBuilder, S as DEFAULT_MESSAGES, C as DEFAULT_OPERATOR_CATALOG, w as MaxDepthExceededError, T as addChild, E as addEmptyConditionTo, D as addEmptyGroupTo, O as addEmptySubqueryTo, k as changeConditionField, A as changeConditionOperator, j as cloneTree, M as collectDescendantIds, N as defaultValueFor, P as emptyCondition, F as emptyGroup, I as emptySubquery, L as findNodeById, R as mapTree, z as moveNode, B as newId, V as operatorsForType, W as removeNode, G as renderExpression, K as setGroupLogic, q as updateCondition, J as validateOperatorOverrides, Y as valueShapeFor, X as visitTree };
|