@piveau/sdk-vue 1.0.0-beta.18 → 1.0.0-beta.19

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.
Files changed (36) hide show
  1. package/LICENSE +13 -0
  2. package/dist/_chunks/locale.d.mts +2 -2
  3. package/dist/_chunks/locale.mjs +7 -7
  4. package/dist/_chunks/locale.mjs.map +1 -1
  5. package/dist/index.d.mts +14 -14
  6. package/dist/index.d.mts.map +1 -1
  7. package/dist/index.mjs +119 -119
  8. package/dist/index.mjs.map +1 -1
  9. package/package.json +2 -1
  10. package/dist/THIRD-PARTY-LICENSES.md +0 -162
  11. package/dist/_chunks/libs/@babel/parser.d.mts +0 -1
  12. package/dist/_chunks/libs/@babel/parser.mjs +0 -12577
  13. package/dist/_chunks/libs/@babel/parser.mjs.map +0 -1
  14. package/dist/_chunks/libs/@vue/compiler-core.d.mts +0 -8
  15. package/dist/_chunks/libs/@vue/compiler-core.d.mts.map +0 -1
  16. package/dist/_chunks/libs/@vue/compiler-core.mjs +0 -13495
  17. package/dist/_chunks/libs/@vue/compiler-core.mjs.map +0 -1
  18. package/dist/_chunks/libs/@vue/compiler-dom.d.mts +0 -1
  19. package/dist/_chunks/libs/@vue/compiler-dom.mjs +0 -1099
  20. package/dist/_chunks/libs/@vue/compiler-dom.mjs.map +0 -1
  21. package/dist/_chunks/libs/@vue/reactivity.d.mts +0 -140
  22. package/dist/_chunks/libs/@vue/reactivity.d.mts.map +0 -1
  23. package/dist/_chunks/libs/@vue/reactivity.mjs +0 -3071
  24. package/dist/_chunks/libs/@vue/reactivity.mjs.map +0 -1
  25. package/dist/_chunks/libs/@vue/runtime-core.d.mts +0 -1194
  26. package/dist/_chunks/libs/@vue/runtime-core.d.mts.map +0 -1
  27. package/dist/_chunks/libs/@vue/runtime-core.mjs +0 -9792
  28. package/dist/_chunks/libs/@vue/runtime-core.mjs.map +0 -1
  29. package/dist/_chunks/libs/@vue/runtime-dom.d.mts +0 -20278
  30. package/dist/_chunks/libs/@vue/runtime-dom.d.mts.map +0 -1
  31. package/dist/_chunks/libs/@vue/runtime-dom.mjs +0 -2799
  32. package/dist/_chunks/libs/@vue/runtime-dom.mjs.map +0 -1
  33. package/dist/_chunks/libs/vue.d.mts +0 -1
  34. package/dist/_chunks/libs/vue.mjs +0 -121
  35. package/dist/_chunks/libs/vue.mjs.map +0 -1
  36. package/dist/_chunks/rolldown-runtime.mjs +0 -34
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) Fraunhofer FOKUS
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -1,5 +1,5 @@
1
- import { d as ToRefs, o as MaybeRefOrGetter } from "./libs/@vue/reactivity.mjs";
2
- import { c as InjectionKey } from "./libs/@vue/runtime-core.mjs";
1
+ import { InjectionKey, MaybeRefOrGetter, ToRefs } from "vue";
2
+
3
3
  //#region src/composables/locale.d.ts
4
4
  interface LocaleMessages {
5
5
  [key: string]: LocaleMessages | string;
@@ -1,4 +1,4 @@
1
- import { t as vue_exports } from "./libs/vue.mjs";
1
+ import { shallowRef, toRef, toValue } from "vue";
2
2
  import { formatDate, normalizeDate } from "@vueuse/core";
3
3
  //#region src/locale/adapters/vue-i18n.ts
4
4
  /**
@@ -31,19 +31,19 @@ function createProvideFn(data) {
31
31
  const current = i18n.locale;
32
32
  const fallback = i18n.fallbackLocale;
33
33
  const messages = i18n.messages;
34
- const dateFormatStrings = (0, vue_exports.shallowRef)({
34
+ const dateFormatStrings = shallowRef({
35
35
  ...data.dateFormatStrings.value,
36
36
  ...options.dateFormatStrings
37
37
  });
38
38
  function setLocale(locale) {
39
- current.value = (0, vue_exports.toValue)(locale);
39
+ current.value = toValue(locale);
40
40
  }
41
41
  return {
42
42
  name: "vue-i18n",
43
43
  currentLocale: current,
44
44
  fallbackLocale: fallback,
45
45
  messages,
46
- decimalSeparator: (0, vue_exports.toRef)(() => options.decimalSeparator ?? inferDecimalSeparator(i18n.n)),
46
+ decimalSeparator: toRef(() => options.decimalSeparator ?? inferDecimalSeparator(i18n.n)),
47
47
  setLocale,
48
48
  t: (key, ...params) => i18n.t(key, params),
49
49
  n: (value, options) => i18n.n(value, options),
@@ -76,20 +76,20 @@ function createVueI18nAdapter({ i18n, useI18n }) {
76
76
  const current = i18n.global.locale;
77
77
  const fallback = i18n.global.fallbackLocale;
78
78
  const messages = i18n.global.messages;
79
- const dateFormatStrings = (0, vue_exports.shallowRef)({
79
+ const dateFormatStrings = shallowRef({
80
80
  short: "YYYY-MM-DD",
81
81
  medium: "YYYY-MM-DD HH:mm",
82
82
  long: "YYYY-MM-DD HH:mm:ss"
83
83
  });
84
84
  function setLocale(locale) {
85
- current.value = (0, vue_exports.toValue)(locale);
85
+ current.value = toValue(locale);
86
86
  }
87
87
  return {
88
88
  name: "vue-i18n",
89
89
  currentLocale: current,
90
90
  fallbackLocale: fallback,
91
91
  messages,
92
- decimalSeparator: (0, vue_exports.toRef)(() => inferDecimalSeparator(i18n.global.n)),
92
+ decimalSeparator: toRef(() => inferDecimalSeparator(i18n.global.n)),
93
93
  setLocale,
94
94
  t: (key, ...params) => i18n.global.t(key, params),
95
95
  n: (value, options) => i18n.global.n(value, options),