@mintplayer/vue-bootstrap 3.31.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-87kABKmn.mjs → BsDatatable.generated-Dy-c1OTA.mjs} +16 -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 +1 -1
- 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/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 };
|
package/radio/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { t as e } from "../chunks/radio-group-key-CnFhXLW0.mjs";
|
|
2
|
-
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, mergeModels as c, mergeProps as l, normalizeClass as u,
|
|
3
|
-
import {
|
|
2
|
+
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, renderSlot as f, toDisplayString as p, useAttrs as m, useId as h, useModel as g } from "vue";
|
|
3
|
+
import { installBootstrap as _ } from "@mintplayer/ui-core/bootstrap";
|
|
4
|
+
import { bootstrapForms as v } from "@mintplayer/ui-core/bootstrap/forms";
|
|
5
|
+
import { connectRadio as y, radioClasses as b } from "@mintplayer/ui-core/radio";
|
|
4
6
|
//#region libs/mintplayer-vue-bootstrap/radio/src/BsRadio.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
7
|
+
var x = ["checked"], S = ["for"], C = ["checked"], w = /* @__PURE__ */ o({
|
|
6
8
|
inheritAttrs: !1,
|
|
7
9
|
__name: "BsRadio",
|
|
8
10
|
props: /*@__PURE__*/ c({
|
|
@@ -32,51 +34,62 @@ var b = ["checked"], x = ["for"], S = ["checked"], C = /* @__PURE__ */ o({
|
|
|
32
34
|
}),
|
|
33
35
|
emits: ["update:modelValue"],
|
|
34
36
|
setup(o) {
|
|
35
|
-
|
|
37
|
+
_(v);
|
|
38
|
+
let c = o, w = g(o, "modelValue"), T = s(e, null), E = `bs-radio-${h()}`, D = n(() => T ? T.value.value !== null && T.value.value === c.value : w.value), O = n(() => ({
|
|
36
39
|
type: c.type,
|
|
37
|
-
checked:
|
|
38
|
-
disabled: c.disabled || !!
|
|
39
|
-
required: c.required || !!
|
|
40
|
+
checked: D.value,
|
|
41
|
+
disabled: c.disabled || !!T?.disabled.value,
|
|
42
|
+
required: c.required || !!T?.required.value,
|
|
40
43
|
invalid: c.invalid,
|
|
41
|
-
name:
|
|
44
|
+
name: T?.name.value ?? c.name,
|
|
42
45
|
value: c.value,
|
|
43
46
|
errorText: c.errorText
|
|
44
|
-
})),
|
|
45
|
-
function
|
|
46
|
-
let { "aria-describedby": e, ...t } =
|
|
47
|
+
})), k = n(() => b(c.type, c.color, c.invalid)), A = m();
|
|
48
|
+
function j() {
|
|
49
|
+
let { "aria-describedby": e, ...t } = A;
|
|
47
50
|
return {
|
|
48
|
-
...
|
|
51
|
+
...y(O.value, E, e ?? null).input,
|
|
49
52
|
...t
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
|
-
let
|
|
53
|
-
function
|
|
54
|
-
return String(
|
|
55
|
+
let M = n(() => y(O.value, E));
|
|
56
|
+
function N() {
|
|
57
|
+
return String(A.id ?? M.value.input.id);
|
|
55
58
|
}
|
|
56
|
-
function
|
|
59
|
+
function P(e) {
|
|
57
60
|
let t = e.target.checked;
|
|
58
|
-
|
|
61
|
+
T && c.value !== null ? T.select(c.value) : w.value = t;
|
|
59
62
|
}
|
|
60
|
-
return (e, n) => (
|
|
63
|
+
return (e, n) => (d(), i(t, null, [k.value.root === null ? (d(), i(t, { key: 0 }, [a("input", l({
|
|
64
|
+
"data-mps": "radio",
|
|
61
65
|
type: "radio",
|
|
62
|
-
class:
|
|
63
|
-
},
|
|
64
|
-
checked:
|
|
65
|
-
onChange:
|
|
66
|
-
}), null, 16,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
class: k.value.input
|
|
67
|
+
}, j(), {
|
|
68
|
+
checked: D.value,
|
|
69
|
+
onChange: P
|
|
70
|
+
}), null, 16, x), a("label", {
|
|
71
|
+
"data-mps": "radio",
|
|
72
|
+
class: u(k.value.label),
|
|
73
|
+
for: N()
|
|
74
|
+
}, [f(e.$slots, "default")], 10, S)], 64)) : (d(), i("label", {
|
|
70
75
|
key: 1,
|
|
71
|
-
|
|
76
|
+
"data-mps": "radio",
|
|
77
|
+
class: u(k.value.root)
|
|
72
78
|
}, [a("input", l({
|
|
79
|
+
"data-mps": "radio",
|
|
73
80
|
type: "radio",
|
|
74
|
-
class:
|
|
75
|
-
},
|
|
76
|
-
checked:
|
|
77
|
-
onChange:
|
|
78
|
-
}), null, 16,
|
|
81
|
+
class: k.value.input
|
|
82
|
+
}, j(), {
|
|
83
|
+
checked: D.value,
|
|
84
|
+
onChange: P
|
|
85
|
+
}), null, 16, C), a("span", {
|
|
86
|
+
"data-mps": "radio",
|
|
87
|
+
class: u(k.value.label)
|
|
88
|
+
}, [f(e.$slots, "default")], 2)], 2)), M.value.feedback ? (d(), i("div", l({
|
|
89
|
+
key: 2,
|
|
90
|
+
"data-mps": "radio"
|
|
91
|
+
}, M.value.feedback.attrs), p(M.value.feedback.text), 17)) : r("", !0)], 64));
|
|
79
92
|
}
|
|
80
93
|
});
|
|
81
94
|
//#endregion
|
|
82
|
-
export {
|
|
95
|
+
export { w as BsRadio, e as radioGroupKey };
|
|
@@ -34,8 +34,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
34
34
|
name: string | null;
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
value: string | null;
|
|
37
|
-
type: RadioType;
|
|
38
37
|
invalid: boolean;
|
|
38
|
+
type: RadioType;
|
|
39
39
|
color: ToggleButtonColor;
|
|
40
40
|
required: boolean;
|
|
41
41
|
errorText: string | null;
|
|
@@ -82,8 +82,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
82
82
|
label: string | undefined;
|
|
83
83
|
disabled: boolean | undefined;
|
|
84
84
|
size: import('@mintplayer/ui-core/ribbon').RibbonItemSize | undefined;
|
|
85
|
-
checked: boolean | undefined;
|
|
86
85
|
tooltip: string | undefined;
|
|
86
|
+
checked: boolean | undefined;
|
|
87
87
|
keyTip: string | null | undefined;
|
|
88
88
|
icon: string | undefined;
|
|
89
89
|
itemId: string | undefined;
|
|
@@ -82,8 +82,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
82
82
|
label: string | undefined;
|
|
83
83
|
disabled: boolean | undefined;
|
|
84
84
|
size: import('@mintplayer/ui-core/ribbon').RibbonItemSize | undefined;
|
|
85
|
-
color: string | undefined;
|
|
86
85
|
tooltip: string | undefined;
|
|
86
|
+
color: string | undefined;
|
|
87
87
|
keyTip: string | null | undefined;
|
|
88
88
|
icon: string | undefined;
|
|
89
89
|
itemId: string | undefined;
|