@mintplayer/vue-bootstrap 3.14.0 → 3.15.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.
@@ -0,0 +1,14 @@
1
+ import { defineComponent as r, openBlock as t, createElementBlock as o, normalizeProps as p, guardReactiveProps as n, renderSlot as s } from "vue";
2
+ import "@mintplayer/web-components/input-group";
3
+ const l = /* @__PURE__ */ r({
4
+ inheritAttrs: !1,
5
+ __name: "BsInputGroup",
6
+ setup(a) {
7
+ return (e, u) => (t(), o("mp-input-group", p(n(e.$attrs)), [
8
+ s(e.$slots, "default")
9
+ ], 16));
10
+ }
11
+ });
12
+ export {
13
+ l as BsInputGroup
14
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1 @@
1
+ export { default as BsInputGroup } from './BsInputGroup.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/vue-bootstrap",
3
- "version": "3.14.0",
3
+ "version": "3.15.0",
4
4
  "description": "Vue 3.5 SFC adapters around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed Vue components with v-model support for input WCs.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,36 @@
1
+ import { defineComponent as c, useModel as m, ref as p, onMounted as d, watch as f, openBlock as h, createElementBlock as g, mergeProps as C, mergeModels as v } from "vue";
2
+ import "@mintplayer/web-components/phone-input";
3
+ const _ = /* @__PURE__ */ c({
4
+ inheritAttrs: !1,
5
+ __name: "BsPhoneInput",
6
+ props: {
7
+ modelValue: {},
8
+ modelModifiers: {}
9
+ },
10
+ emits: /* @__PURE__ */ v(["phoneChange", "countryChange"], ["update:modelValue"]),
11
+ setup(a, { emit: r }) {
12
+ const o = m(a, "modelValue"), l = r, t = p(null);
13
+ function u() {
14
+ t.value && (t.value.value = o.value ?? null);
15
+ }
16
+ d(u), f(o, u);
17
+ function i(n) {
18
+ const e = n.detail;
19
+ e && (o.value = e.value, l("phoneChange", e));
20
+ }
21
+ function s(n) {
22
+ const e = n.detail;
23
+ e && l("countryChange", e.country);
24
+ }
25
+ return (n, e) => (h(), g("mp-phone-input", C({
26
+ ref_key: "el",
27
+ ref: t
28
+ }, n.$attrs, {
29
+ onValueChange: i,
30
+ onCountryChange: s
31
+ }), null, 16));
32
+ }
33
+ });
34
+ export {
35
+ _ as BsPhoneInput
36
+ };
@@ -0,0 +1,16 @@
1
+ import { PhoneChangeEventDetail } from '@mintplayer/web-components/phone-input';
2
+ type __VLS_PublicProps = {
3
+ modelValue?: string | null;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:modelValue": (value: string | null) => any;
7
+ phoneChange: (detail: PhoneChangeEventDetail) => any;
8
+ countryChange: (country: string) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
11
+ onPhoneChange?: ((detail: PhoneChangeEventDetail) => any) | undefined;
12
+ onCountryChange?: ((country: string) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
+ el: unknown;
15
+ }, any>;
16
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BsPhoneInput } from './BsPhoneInput.vue';