nuxt-hs-ui 2.0.27 → 2.0.29
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
import dayjs from "dayjs/esm/index";
|
|
11
11
|
import flatpickr from "flatpickr";
|
|
12
12
|
import monthSelectPlugin from "flatpickr/dist/plugins/monthSelect";
|
|
13
|
-
import { Japanese as ja } from "flatpickr/dist/l10n/ja";
|
|
14
|
-
import { english as en } from "flatpickr/dist/l10n/default";
|
|
13
|
+
import { Japanese as ja } from "flatpickr/dist/l10n/ja.js";
|
|
14
|
+
import { english as en } from "flatpickr/dist/l10n/default.js";
|
|
15
15
|
// [ vueuse ]
|
|
16
16
|
import { useMounted } from "@vueuse/core";
|
|
17
17
|
// [ NUXT ]
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
onMounted,
|
|
25
25
|
nextTick,
|
|
26
26
|
onUnmounted,
|
|
27
|
+
// useHead,
|
|
27
28
|
} from "#imports";
|
|
28
29
|
// [ utils ]
|
|
29
30
|
import type { ClassType } from "../../utils/class-style";
|
|
@@ -36,6 +37,16 @@ import { useHsMultiLang } from "../../composables/use-hs-multi-lang";
|
|
|
36
37
|
// [ Components ]
|
|
37
38
|
import InputFrame from "./input-frame.vue";
|
|
38
39
|
|
|
40
|
+
// useHead({
|
|
41
|
+
// script: [
|
|
42
|
+
// //
|
|
43
|
+
|
|
44
|
+
// { src: `https://npmcdn.com/flatpickr/dist/flatpickr.min.js` },
|
|
45
|
+
// { src: `https://npmcdn.com/flatpickr/dist/l10n/ja.js` },
|
|
46
|
+
// { src: `https://npmcdn.com/flatpickr/dist/l10n/default.js` },
|
|
47
|
+
// ],
|
|
48
|
+
// });
|
|
49
|
+
|
|
39
50
|
// ----------------------------------------------------------------------------
|
|
40
51
|
// [ nac-stroe ]
|
|
41
52
|
DayjsInit();
|
|
@@ -388,12 +399,10 @@ const generateFlatPickerOption = () => {
|
|
|
388
399
|
if (inputElement.value != null) {
|
|
389
400
|
dayjs.locale(multiLang.state.lang);
|
|
390
401
|
switch (multiLang.state.lang) {
|
|
402
|
+
case "jp":
|
|
391
403
|
case "ja":
|
|
392
404
|
state.option.locale = ja;
|
|
393
405
|
break;
|
|
394
|
-
case "en":
|
|
395
|
-
state.option.locale = en;
|
|
396
|
-
break;
|
|
397
406
|
default:
|
|
398
407
|
state.option.locale = en;
|
|
399
408
|
break;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
|
|
2
2
|
export default _default;
|