@dao-style/core 1.33.0 → 1.34.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 @@
1
+ "use strict";const e={core:{actionIcon:{tooltip:{refresh:"Refresh",columnSetting:"Column Setting"}},dialog:{confirm:"OK",cancel:"Cancel"},drawer:{confirm:"OK",cancel:"Cancel"},pagination:{total:"Total {n} record | Total {n} records",page:"{v} per page"},toolbar:{searchPlaceholder:"Search",clear:"Clear Filter"},select:{noData:"No Data",search:"Search",loading:"Loading...",selectAll:"Select All"},switch:{on:"On",off:"Off"},transfer:{checkAll:"Check All",clear:"Clear",selectedText:"{n} item selected | {n} items selected"},batchBar:{removeText:"Delete",deselectText:"Deselect",selectedFormat:"{n} item selected | {n} items selected"},empty:{title:"No Data"},table:{columnSetting:{title:"Select columns",search:"Search",confirm:"Ok",cancel:"Cancel",tooltip:"The first column is always visible.",noMatch:"No match found"}}}},t=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));exports.__vite_glob_0_0=t;exports.enUS=e;
@@ -0,0 +1,66 @@
1
+ const e = {
2
+ core: {
3
+ actionIcon: {
4
+ tooltip: {
5
+ refresh: "Refresh",
6
+ columnSetting: "Column Setting"
7
+ }
8
+ },
9
+ dialog: {
10
+ confirm: "OK",
11
+ cancel: "Cancel"
12
+ },
13
+ drawer: {
14
+ confirm: "OK",
15
+ cancel: "Cancel"
16
+ },
17
+ pagination: {
18
+ total: "Total {n} record | Total {n} records",
19
+ page: "{v} per page"
20
+ },
21
+ toolbar: {
22
+ searchPlaceholder: "Search",
23
+ clear: "Clear Filter"
24
+ },
25
+ select: {
26
+ noData: "No Data",
27
+ search: "Search",
28
+ loading: "Loading...",
29
+ selectAll: "Select All"
30
+ },
31
+ switch: {
32
+ on: "On",
33
+ off: "Off"
34
+ },
35
+ transfer: {
36
+ checkAll: "Check All",
37
+ clear: "Clear",
38
+ selectedText: "{n} item selected | {n} items selected"
39
+ },
40
+ batchBar: {
41
+ removeText: "Delete",
42
+ deselectText: "Deselect",
43
+ selectedFormat: "{n} item selected | {n} items selected"
44
+ },
45
+ empty: {
46
+ title: "No Data"
47
+ },
48
+ table: {
49
+ columnSetting: {
50
+ title: "Select columns",
51
+ search: "Search",
52
+ confirm: "Ok",
53
+ cancel: "Cancel",
54
+ tooltip: "The first column is always visible.",
55
+ noMatch: "No match found"
56
+ }
57
+ }
58
+ }
59
+ }, t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
60
+ __proto__: null,
61
+ default: e
62
+ }, Symbol.toStringTag, { value: "Module" }));
63
+ export {
64
+ t as _,
65
+ e
66
+ };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,11 @@
1
1
  import type { App } from 'vue';
2
2
  import './styles/color/var.json';
3
3
  import './styles/color/alias.json';
4
- declare function locale(lang: string): any;
4
+ type LocaleMessages = Record<string, unknown>;
5
+ export declare const supportedLocales: string[];
6
+ declare function locale(lang: string): LocaleMessages;
7
+ export declare function registerLocale(lang: string, messages: LocaleMessages): void;
8
+ export declare function loadLocale(lang: string): Promise<LocaleMessages>;
5
9
  export * from './components';
6
10
  export * from './directives';
7
11
  export * from './utils';
@@ -11,5 +15,7 @@ declare const _default: {
11
15
  install?: ((app: App<any>, ...options: any[]) => any) | undefined;
12
16
  };
13
17
  locale: typeof locale;
18
+ loadLocale: typeof loadLocale;
19
+ registerLocale: typeof registerLocale;
14
20
  };
15
21
  export default _default;
@@ -0,0 +1 @@
1
+ "use strict";const e={core:{actionIcon:{tooltip:{refresh:"更新",columnSetting:"列設定"}},dialog:{confirm:"確定",cancel:"キャンセル"},drawer:{confirm:"確定",cancel:"キャンセル"},pagination:{total:"合計 {n} 件",page:"{v}件/ページ"},toolbar:{searchPlaceholder:"検索",clear:"条件をクリア"},select:{noData:"データがありません",search:"検索",loading:"読み込み中...",selectAll:"すべて選択"},switch:{on:"有効",off:"無効"},transfer:{checkAll:"すべて選択",clear:"クリア",selectedText:"{n} 件選択済み"},batchBar:{removeText:"削除",deselectText:"選択解除",selectedFormat:"{n} 件選択中"},empty:{title:"データがありません"},table:{columnSetting:{title:"列設定",search:"検索",confirm:"確定",cancel:"キャンセル",tooltip:"テーブルの最初の列は常に表示されます",noMatch:"一致する項目がありません"}}}},t=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));exports.__vite_glob_0_2=t;exports.ja=e;
@@ -0,0 +1,66 @@
1
+ const e = {
2
+ core: {
3
+ actionIcon: {
4
+ tooltip: {
5
+ refresh: "更新",
6
+ columnSetting: "列設定"
7
+ }
8
+ },
9
+ dialog: {
10
+ confirm: "確定",
11
+ cancel: "キャンセル"
12
+ },
13
+ drawer: {
14
+ confirm: "確定",
15
+ cancel: "キャンセル"
16
+ },
17
+ pagination: {
18
+ total: "合計 {n} 件",
19
+ page: "{v}件/ページ"
20
+ },
21
+ toolbar: {
22
+ searchPlaceholder: "検索",
23
+ clear: "条件をクリア"
24
+ },
25
+ select: {
26
+ noData: "データがありません",
27
+ search: "検索",
28
+ loading: "読み込み中...",
29
+ selectAll: "すべて選択"
30
+ },
31
+ switch: {
32
+ on: "有効",
33
+ off: "無効"
34
+ },
35
+ transfer: {
36
+ checkAll: "すべて選択",
37
+ clear: "クリア",
38
+ selectedText: "{n} 件選択済み"
39
+ },
40
+ batchBar: {
41
+ removeText: "削除",
42
+ deselectText: "選択解除",
43
+ selectedFormat: "{n} 件選択中"
44
+ },
45
+ empty: {
46
+ title: "データがありません"
47
+ },
48
+ table: {
49
+ columnSetting: {
50
+ title: "列設定",
51
+ search: "検索",
52
+ confirm: "確定",
53
+ cancel: "キャンセル",
54
+ tooltip: "テーブルの最初の列は常に表示されます",
55
+ noMatch: "一致する項目がありません"
56
+ }
57
+ }
58
+ }
59
+ }, t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
60
+ __proto__: null,
61
+ default: e
62
+ }, Symbol.toStringTag, { value: "Module" }));
63
+ export {
64
+ t as _,
65
+ e as j
66
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("../en-US-2ae22d11.js");module.exports=e.enUS;
@@ -0,0 +1,4 @@
1
+ import { e as f } from "../en-US-67a6caf7.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,2 +1,3 @@
1
1
  export * as enUS from './en-US';
2
+ export * as ja from './ja';
2
3
  export * as zhCN from './zh-CN';
@@ -0,0 +1,60 @@
1
+ declare const _default: {
2
+ core: {
3
+ actionIcon: {
4
+ tooltip: {
5
+ refresh: string;
6
+ columnSetting: string;
7
+ };
8
+ };
9
+ dialog: {
10
+ confirm: string;
11
+ cancel: string;
12
+ };
13
+ drawer: {
14
+ confirm: string;
15
+ cancel: string;
16
+ };
17
+ pagination: {
18
+ total: string;
19
+ page: string;
20
+ };
21
+ toolbar: {
22
+ searchPlaceholder: string;
23
+ clear: string;
24
+ };
25
+ select: {
26
+ noData: string;
27
+ search: string;
28
+ loading: string;
29
+ selectAll: string;
30
+ };
31
+ switch: {
32
+ on: string;
33
+ off: string;
34
+ };
35
+ transfer: {
36
+ checkAll: string;
37
+ clear: string;
38
+ selectedText: string;
39
+ };
40
+ batchBar: {
41
+ removeText: string;
42
+ deselectText: string;
43
+ selectedFormat: string;
44
+ };
45
+ empty: {
46
+ title: string;
47
+ };
48
+ table: {
49
+ columnSetting: {
50
+ title: string;
51
+ search: string;
52
+ confirm: string;
53
+ cancel: string;
54
+ tooltip: string;
55
+ noMatch: string;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";const s=require("../ja-59c35214.js");module.exports=s.ja;
@@ -0,0 +1,4 @@
1
+ import { j as f } from "../ja-d4fa8bad.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("../zh-CN-c7989393.js");module.exports=s.zhCN;
@@ -0,0 +1,4 @@
1
+ import { z as f } from "../zh-CN-6d755ac8.mjs";
2
+ export {
3
+ f as default
4
+ };