@retailcrm/embed-ui-v1-components 0.4.1-alpha.19 → 0.4.1-alpha.20
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/dist/host.cjs +20 -2
- package/dist/host.d.ts +2 -0
- package/dist/host.js +20 -2
- package/package.json +1 -1
package/dist/host.cjs
CHANGED
|
@@ -1648,7 +1648,7 @@ function render$2(_ctx, _cache) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
const IconClear = { render: render$2 };
|
|
1650
1650
|
const ModalInjectKey = Symbol("$embedModal");
|
|
1651
|
-
const plugin = {
|
|
1651
|
+
const plugin$1 = {
|
|
1652
1652
|
install(app, options) {
|
|
1653
1653
|
app.provide(ModalInjectKey, vue.reactive({
|
|
1654
1654
|
container: null,
|
|
@@ -2588,7 +2588,24 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2588
2588
|
};
|
|
2589
2589
|
}
|
|
2590
2590
|
});
|
|
2591
|
+
class VueI18n {
|
|
2592
|
+
constructor(locale = void 0) {
|
|
2593
|
+
__publicField(this, "_state");
|
|
2594
|
+
this._state = vue.reactive({ locale });
|
|
2595
|
+
}
|
|
2596
|
+
get locale() {
|
|
2597
|
+
return this._state.locale;
|
|
2598
|
+
}
|
|
2599
|
+
set locale(locale) {
|
|
2600
|
+
this._state.locale = locale;
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2591
2603
|
const VueI18nInjectKey = Symbol("$embedI18n");
|
|
2604
|
+
const plugin = {
|
|
2605
|
+
install(app, options) {
|
|
2606
|
+
app.provide(VueI18nInjectKey, options instanceof VueI18n ? options : new VueI18n(options == null ? void 0 : options.locale));
|
|
2607
|
+
}
|
|
2608
|
+
};
|
|
2592
2609
|
const _hoisted_1$1 = {
|
|
2593
2610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2594
2611
|
viewBox: "0 0 24 24"
|
|
@@ -3048,7 +3065,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
3048
3065
|
};
|
|
3049
3066
|
}
|
|
3050
3067
|
});
|
|
3051
|
-
exports.
|
|
3068
|
+
exports.I18nPlugin = plugin;
|
|
3069
|
+
exports.ModalPlugin = plugin$1;
|
|
3052
3070
|
exports.UiButton = _sfc_main$c;
|
|
3053
3071
|
exports.UiError = _sfc_main$b;
|
|
3054
3072
|
exports.UiLink = _sfc_main$a;
|
package/dist/host.d.ts
CHANGED
package/dist/host.js
CHANGED
|
@@ -1646,7 +1646,7 @@ function render$2(_ctx, _cache) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
const IconClear = { render: render$2 };
|
|
1648
1648
|
const ModalInjectKey = Symbol("$embedModal");
|
|
1649
|
-
const plugin = {
|
|
1649
|
+
const plugin$1 = {
|
|
1650
1650
|
install(app, options) {
|
|
1651
1651
|
app.provide(ModalInjectKey, reactive({
|
|
1652
1652
|
container: null,
|
|
@@ -2586,7 +2586,24 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2586
2586
|
};
|
|
2587
2587
|
}
|
|
2588
2588
|
});
|
|
2589
|
+
class VueI18n {
|
|
2590
|
+
constructor(locale = void 0) {
|
|
2591
|
+
__publicField(this, "_state");
|
|
2592
|
+
this._state = reactive({ locale });
|
|
2593
|
+
}
|
|
2594
|
+
get locale() {
|
|
2595
|
+
return this._state.locale;
|
|
2596
|
+
}
|
|
2597
|
+
set locale(locale) {
|
|
2598
|
+
this._state.locale = locale;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2589
2601
|
const VueI18nInjectKey = Symbol("$embedI18n");
|
|
2602
|
+
const plugin = {
|
|
2603
|
+
install(app, options) {
|
|
2604
|
+
app.provide(VueI18nInjectKey, options instanceof VueI18n ? options : new VueI18n(options == null ? void 0 : options.locale));
|
|
2605
|
+
}
|
|
2606
|
+
};
|
|
2590
2607
|
const _hoisted_1$1 = {
|
|
2591
2608
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2592
2609
|
viewBox: "0 0 24 24"
|
|
@@ -3047,7 +3064,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3047
3064
|
}
|
|
3048
3065
|
});
|
|
3049
3066
|
export {
|
|
3050
|
-
plugin as
|
|
3067
|
+
plugin as I18nPlugin,
|
|
3068
|
+
plugin$1 as ModalPlugin,
|
|
3051
3069
|
_sfc_main$c as UiButton,
|
|
3052
3070
|
_sfc_main$b as UiError,
|
|
3053
3071
|
_sfc_main$a as UiLink,
|
package/package.json
CHANGED