@tnlmedia/inkmagine-gui 1.0.2 → 2.0.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.
- package/README.md +18 -0
- package/README.zh-tw.md +349 -1
- package/dist/chunks/InkCheckbox.Bo9P4Fnq.js +5 -0
- package/dist/chunks/InkCheckbox.Bo9P4Fnq.js.map +1 -0
- package/dist/chunks/InkDatetime.DuIlN9qX.js +5 -0
- package/dist/chunks/InkDatetime.DuIlN9qX.js.map +1 -0
- package/dist/chunks/InkDatetimerng.Un2rLzLU.js +5 -0
- package/dist/chunks/InkDatetimerng.Un2rLzLU.js.map +1 -0
- package/dist/chunks/InkHashtag.C2MlkO78.js +5 -0
- package/dist/chunks/InkHashtag.C2MlkO78.js.map +1 -0
- package/dist/chunks/InkRadio.Dlej2ra5.js +5 -0
- package/dist/chunks/InkRadio.Dlej2ra5.js.map +1 -0
- package/dist/chunks/InkSelect.DWiVv_fE.js +5 -0
- package/dist/chunks/InkSelect.DWiVv_fE.js.map +1 -0
- package/dist/chunks/InkSwitch.Bmrcv2_W.js +5 -0
- package/dist/chunks/InkSwitch.Bmrcv2_W.js.map +1 -0
- package/dist/chunks/InkText.2z3CBfGZ.js +5 -0
- package/dist/chunks/InkText.2z3CBfGZ.js.map +1 -0
- package/dist/chunks/InkTextarea.bSKGpfeu.js +5 -0
- package/dist/chunks/InkTextarea.bSKGpfeu.js.map +1 -0
- package/dist/chunks/InkUrl.y40jqTAY.js +5 -0
- package/dist/chunks/InkUrl.y40jqTAY.js.map +1 -0
- package/dist/chunks/en.CHdwefRA.js +183 -0
- package/dist/chunks/en.CHdwefRA.js.map +1 -0
- package/dist/chunks/ja.AHwqhlss.js +146 -0
- package/dist/chunks/ja.AHwqhlss.js.map +1 -0
- package/dist/chunks/zh-tw.0zg_GCuJ.js +182 -0
- package/dist/chunks/zh-tw.0zg_GCuJ.js.map +1 -0
- package/dist/inkmagine-gui.es.js +4433 -704
- package/dist/inkmagine-gui.es.js.map +1 -1
- package/dist/inkmagine-gui.umd.js +2 -5
- package/dist/inkmagine-gui.umd.js.map +1 -1
- package/dist/style/index.css +1 -1
- package/dist/types/components/InkBadge.vue.d.ts +27 -0
- package/dist/types/components/InkNavbar.vue.d.ts +11 -0
- package/dist/types/components/ink-sidebar/InkSidebar.vue.d.ts +57 -0
- package/dist/types/components/ink-sidebar/InkSidebarMenu.vue.d.ts +26 -0
- package/dist/types/components/ink-sidebar/InkSidebarSimpleHide.vue.d.ts +22 -0
- package/dist/types/components/ink-tooltip/Ink-tooltip.d.ts +3 -0
- package/dist/types/components/ink-tooltip/InkVTooltip.vue.d.ts +18 -0
- package/dist/types/components/input/InkCheckbox.vue.d.ts +72 -0
- package/dist/types/components/input/InkDatetime.vue.d.ts +543 -0
- package/dist/types/components/input/InkDatetimerng.vue.d.ts +1015 -0
- package/dist/types/components/input/InkElConfigProvider.vue.d.ts +17 -0
- package/dist/types/components/input/InkErrorMessage.vue.d.ts +14 -0
- package/dist/types/components/input/InkField.vue.d.ts +10 -0
- package/dist/types/components/input/InkFieldMessage.vue.d.ts +14 -0
- package/dist/types/components/input/InkHashtag.vue.d.ts +72 -0
- package/dist/types/components/input/InkRadio.vue.d.ts +72 -0
- package/dist/types/components/input/InkSelect.vue.d.ts +72 -0
- package/dist/types/components/input/InkSwitch.vue.d.ts +61 -0
- package/dist/types/components/input/InkText.vue.d.ts +70 -0
- package/dist/types/components/input/InkTextarea.vue.d.ts +70 -0
- package/dist/types/components/input/InkUrl.vue.d.ts +70 -0
- package/dist/types/components/input/InkWordCount.vue.d.ts +6 -0
- package/dist/types/components/input/InputFrame.vue.d.ts +29 -0
- package/dist/types/components/input/InputInner.vue.d.ts +17 -0
- package/dist/types/components/input/InputWrapper.vue.d.ts +17 -0
- package/dist/types/components/input/field-data-interface.d.ts +144 -0
- package/dist/types/components/input/input-default-value.d.ts +75 -0
- package/dist/types/helper/dayjs.d.ts +10 -0
- package/dist/types/helper/handle-sidebar-toggler-click.d.ts +1 -0
- package/dist/types/helper/i18n.d.ts +288 -0
- package/dist/types/helper/set-font.d.ts +1 -0
- package/dist/types/helper/useAttrs.d.ts +3 -0
- package/dist/types/helper/useDefineRule.d.ts +2 -0
- package/dist/types/index.d.ts +22 -2
- package/dist/types/lang/en-us.json.d.ts +52 -0
- package/dist/types/lang/ja-jp.json.d.ts +52 -0
- package/dist/types/lang/zh-tw.json.d.ts +53 -0
- package/package.json +23 -7
- package/dist/types/helper/attrs.d.ts +0 -3
@@ -0,0 +1,144 @@
|
|
1
|
+
type Base = {
|
2
|
+
id: string;
|
3
|
+
type: string;
|
4
|
+
name?: string;
|
5
|
+
require?: boolean | number[];
|
6
|
+
slug?: string;
|
7
|
+
description?: string;
|
8
|
+
position?: 'left' | 'center' | 'right';
|
9
|
+
tip?: string;
|
10
|
+
} & Min & Max & Default & Ai;
|
11
|
+
type Default = {
|
12
|
+
default?: string[] | number[] | boolean[] | object[] | [];
|
13
|
+
};
|
14
|
+
type Min = {
|
15
|
+
min?: number;
|
16
|
+
};
|
17
|
+
type Max = {
|
18
|
+
max?: number;
|
19
|
+
};
|
20
|
+
type Ai = {
|
21
|
+
ai?: string[];
|
22
|
+
};
|
23
|
+
type Placeholder = {
|
24
|
+
placeholder?: string;
|
25
|
+
};
|
26
|
+
export type NumberLimit = [number | false, number | false];
|
27
|
+
export type FileLimit = [number, string[]];
|
28
|
+
export type TextLimit = [number, number];
|
29
|
+
export type DatetimerngLimit = [number, number];
|
30
|
+
type Limit = {
|
31
|
+
limit?: false | NumberLimit | TextLimit | FileLimit | DatetimerngLimit;
|
32
|
+
};
|
33
|
+
type Step = {
|
34
|
+
step?: number;
|
35
|
+
};
|
36
|
+
type Prefix = {
|
37
|
+
prefix?: string;
|
38
|
+
};
|
39
|
+
type Suffix = {
|
40
|
+
suffix?: string;
|
41
|
+
};
|
42
|
+
type Ratio = {
|
43
|
+
ratio?: boolean | number[];
|
44
|
+
};
|
45
|
+
type Viewport = {
|
46
|
+
viewport?: boolean | number[];
|
47
|
+
};
|
48
|
+
type Fluid = {
|
49
|
+
fluid?: 'rectangle' | 'circle';
|
50
|
+
};
|
51
|
+
type Hierarchy = {
|
52
|
+
hierarchy?: boolean;
|
53
|
+
};
|
54
|
+
type Choosable = {
|
55
|
+
choosable?: number[];
|
56
|
+
};
|
57
|
+
type Total = {
|
58
|
+
total?: number;
|
59
|
+
};
|
60
|
+
type OptionsObject = {
|
61
|
+
options?: UnKnownOptions[];
|
62
|
+
};
|
63
|
+
export type UnKnownOptions = {
|
64
|
+
[key: string | number]: unknown;
|
65
|
+
};
|
66
|
+
export type SelectReduceReturn = string | number | undefined | null;
|
67
|
+
export type SelectInputBind = {
|
68
|
+
options?: SelectOptions[];
|
69
|
+
label?: string;
|
70
|
+
hasNextPage?: boolean;
|
71
|
+
activeStyle?: boolean;
|
72
|
+
openFn?: () => void;
|
73
|
+
closeFn?: () => void;
|
74
|
+
infiniteFn?: () => void;
|
75
|
+
reduce?: (option: UnKnownOptions) => SelectReduceReturn;
|
76
|
+
};
|
77
|
+
export type SelectOptions = {
|
78
|
+
disabled?: boolean;
|
79
|
+
depth?: number;
|
80
|
+
} & UnKnownOptions;
|
81
|
+
export type HashtagInputBind = {
|
82
|
+
noDrop: boolean;
|
83
|
+
loading: boolean;
|
84
|
+
options?: HashtagOptions[];
|
85
|
+
activeStyle?: boolean;
|
86
|
+
};
|
87
|
+
type HashtagOptions = UnKnownOptions;
|
88
|
+
export type CheckBoxInputBind = {
|
89
|
+
options?: CheckBoxOptions[];
|
90
|
+
label?: string;
|
91
|
+
valueKey?: string;
|
92
|
+
hasNextPage?: boolean;
|
93
|
+
infiniteFn?: () => void;
|
94
|
+
};
|
95
|
+
export type CheckBoxOptions = {
|
96
|
+
disabled?: boolean;
|
97
|
+
depth?: number;
|
98
|
+
} & UnKnownOptions;
|
99
|
+
export type RadioInputBind = {
|
100
|
+
options?: RadioOptions[];
|
101
|
+
label?: string;
|
102
|
+
valueKey?: string;
|
103
|
+
hasNextPage?: boolean;
|
104
|
+
infiniteFn?: () => void;
|
105
|
+
};
|
106
|
+
export type RadioOptions = {
|
107
|
+
disabled?: boolean;
|
108
|
+
} & UnKnownOptions;
|
109
|
+
type DatePickerType = 'year' | 'month' | 'date' | 'datetime' | 'week';
|
110
|
+
export declare const RestrictTypeMode: {
|
111
|
+
readonly PAST: "past";
|
112
|
+
readonly FUTURE: "future";
|
113
|
+
readonly UNLIMITED: "unlimited";
|
114
|
+
};
|
115
|
+
export type DatetimePickerInputBind = {
|
116
|
+
timezone: string;
|
117
|
+
isClearable?: boolean;
|
118
|
+
format?: string;
|
119
|
+
type?: DatePickerType;
|
120
|
+
restrict: {
|
121
|
+
restrictType?: (typeof RestrictTypeMode)[keyof typeof RestrictTypeMode];
|
122
|
+
shiftSecond?: number;
|
123
|
+
};
|
124
|
+
} & UnKnownOptions;
|
125
|
+
export type DatetimerngInputBind = {
|
126
|
+
timezone: string;
|
127
|
+
isClearable?: boolean;
|
128
|
+
activeStyle?: boolean;
|
129
|
+
format?: string;
|
130
|
+
type?: DatePickerType;
|
131
|
+
} & UnKnownOptions;
|
132
|
+
export type ModelValueSharp = Default;
|
133
|
+
export type TextSharp = Base & Placeholder & Prefix & Suffix & Limit;
|
134
|
+
export type TextareaSharp = Base & Placeholder & Limit;
|
135
|
+
export type UrlSharp = Base & Placeholder;
|
136
|
+
export type SelectSharp = Base & OptionsObject & Total & Choosable & Hierarchy & Placeholder;
|
137
|
+
export type HashtagSharp = Base & Placeholder & Limit;
|
138
|
+
export type CheckBoxSharp = Base & OptionsObject & Total & Choosable & Hierarchy;
|
139
|
+
export type RadioSharp = Base & OptionsObject & Total;
|
140
|
+
export type SwitchSharp = Base;
|
141
|
+
export type DatetimeSharp = Base & Placeholder;
|
142
|
+
export type DatetimerngSharp = Base & Limit;
|
143
|
+
export type FieldDataSharp = Base & TextSharp & Step & Ratio & Viewport & Fluid & Hierarchy & Choosable & OptionsObject & Total;
|
144
|
+
export {};
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { CheckBoxInputBind, SelectInputBind, DatetimePickerInputBind, DatetimerngInputBind } from './field-data-interface';
|
3
|
+
export declare const singleFieldTypes: string[];
|
4
|
+
export declare const defaultInputProps: {
|
5
|
+
valueIndex: {
|
6
|
+
type: NumberConstructor;
|
7
|
+
default: number;
|
8
|
+
};
|
9
|
+
required: {
|
10
|
+
type: BooleanConstructor;
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
disabled: {
|
14
|
+
type: BooleanConstructor;
|
15
|
+
default: boolean;
|
16
|
+
};
|
17
|
+
inputTotal: {
|
18
|
+
type: NumberConstructor;
|
19
|
+
default: number;
|
20
|
+
};
|
21
|
+
inputOn: {
|
22
|
+
type: ObjectConstructor;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
export declare const fieldDefaultValue: (type: string) => {
|
26
|
+
id: string;
|
27
|
+
type: string;
|
28
|
+
max: number;
|
29
|
+
limit: boolean;
|
30
|
+
};
|
31
|
+
export declare const useMergeFieldProps: <T extends Record<string, unknown>>(type: string, field: Ref<T>) => {
|
32
|
+
mergeField: import('vue').ComputedRef<{
|
33
|
+
id: string;
|
34
|
+
type: string;
|
35
|
+
max: number;
|
36
|
+
limit: boolean;
|
37
|
+
} & T>;
|
38
|
+
minLength: import('vue').ComputedRef<number | undefined>;
|
39
|
+
maxLength: import('vue').ComputedRef<number | undefined>;
|
40
|
+
checkFieldMax: import('vue').ComputedRef<number>;
|
41
|
+
};
|
42
|
+
export declare const useMergeSelectInputBind: (inputBind: Ref<Record<string, unknown>>) => {
|
43
|
+
mergeInputBind: import('vue').ComputedRef<SelectInputBind>;
|
44
|
+
clearInputBind: import('vue').ComputedRef<SelectInputBind>;
|
45
|
+
};
|
46
|
+
export declare const useMergeHashtagInputBind: (inputBind: Ref<Record<string, unknown>>) => {
|
47
|
+
mergeInputBind: import('vue').ComputedRef<{
|
48
|
+
noDrop: unknown;
|
49
|
+
loading: unknown;
|
50
|
+
searchable: boolean;
|
51
|
+
activeStyle: boolean;
|
52
|
+
options: never[];
|
53
|
+
label: string;
|
54
|
+
filterable: boolean;
|
55
|
+
clearable: boolean;
|
56
|
+
autoscroll: boolean;
|
57
|
+
}>;
|
58
|
+
clearInputBind: import('vue').ComputedRef<Record<string, unknown>>;
|
59
|
+
};
|
60
|
+
export declare const useMergeCheckBoxInputBind: (inputBind: Ref<Record<string, unknown>>) => {
|
61
|
+
mergeInputBind: import('vue').ComputedRef<CheckBoxInputBind>;
|
62
|
+
clearInputBind: import('vue').ComputedRef<Record<string, unknown>>;
|
63
|
+
};
|
64
|
+
export declare const useMergeDatetimePickerInputBind: (inputBind: Ref<Record<string, unknown>>) => {
|
65
|
+
panelInputModeNone: () => void;
|
66
|
+
panelTimezone: (timezone: DatetimePickerInputBind["timezone"]) => void;
|
67
|
+
mergeInputBind: import('vue').ComputedRef<DatetimePickerInputBind>;
|
68
|
+
clearInputBind: import('vue').ComputedRef<Record<string, unknown>>;
|
69
|
+
};
|
70
|
+
export declare const useMergeDatetimerngInputBind: (inputBind: Ref<Record<string, unknown>>) => {
|
71
|
+
panelInputModeNone: () => void;
|
72
|
+
panelTimezone: (timezone: DatetimePickerInputBind["timezone"]) => void;
|
73
|
+
mergeInputBind: import('vue').ComputedRef<DatetimerngInputBind>;
|
74
|
+
clearInputBind: import('vue').ComputedRef<Record<string, unknown>>;
|
75
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { default as dayjs, OpUnitType } from 'dayjs';
|
2
|
+
export default dayjs;
|
3
|
+
export declare const formatUnixTime: (tz: string, time: number, format?: string) => string;
|
4
|
+
export declare const formatValueOfTime: (tz: string, time: number | string | Date, format?: string) => string;
|
5
|
+
export declare const formatTimeToUnix: (time?: Date | string) => number;
|
6
|
+
export declare const formatTimeToValueOf: (time?: Date) => number;
|
7
|
+
export declare const utcTimezone: (timezone: string) => string;
|
8
|
+
export declare const convertUnixToEndOf: (time: number, unit?: OpUnitType) => number;
|
9
|
+
export declare const convertUnixToStartOf: (time: number, unit?: OpUnitType) => number;
|
10
|
+
export declare const convertValueOfToStartOf: (time: number, unit?: OpUnitType) => number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const handleSidebarTogglerClick: () => void;
|
@@ -0,0 +1,288 @@
|
|
1
|
+
export declare const inkI18n: import('vue-i18n').I18n<{
|
2
|
+
'zh-tw': {
|
3
|
+
logout: string;
|
4
|
+
requiredHint: string;
|
5
|
+
add: string;
|
6
|
+
loading: string;
|
7
|
+
required: string;
|
8
|
+
isSlug: string;
|
9
|
+
isMoreThenTextLimit: string;
|
10
|
+
isLessThenTextLimit: string;
|
11
|
+
isMoreThenNumberLimit: string;
|
12
|
+
isLessThenNumberLimit: string;
|
13
|
+
isMoreThenMax: string;
|
14
|
+
isLessThenMin: string;
|
15
|
+
isMoreThenDatetimeRestrict: string;
|
16
|
+
isLessThenDatetimeRestrict: string;
|
17
|
+
startTimeMustEarlierThanEndTime: string;
|
18
|
+
isUrl: string;
|
19
|
+
isEmail: string;
|
20
|
+
isJson: string;
|
21
|
+
words: string;
|
22
|
+
select: string;
|
23
|
+
noResultsFound: string;
|
24
|
+
startDate: string;
|
25
|
+
endDate: string;
|
26
|
+
navbar: {
|
27
|
+
apps: {
|
28
|
+
service: string;
|
29
|
+
dashboard: {
|
30
|
+
description: string;
|
31
|
+
label: string;
|
32
|
+
};
|
33
|
+
cabinet: {
|
34
|
+
description: string;
|
35
|
+
label: string;
|
36
|
+
};
|
37
|
+
member: {
|
38
|
+
description: string;
|
39
|
+
label: string;
|
40
|
+
};
|
41
|
+
team: {
|
42
|
+
description: string;
|
43
|
+
label: string;
|
44
|
+
};
|
45
|
+
};
|
46
|
+
profile: string;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
'en-us': {
|
50
|
+
logout: string;
|
51
|
+
requiredHint: string;
|
52
|
+
add: string;
|
53
|
+
loading: string;
|
54
|
+
required: string;
|
55
|
+
isSlug: string;
|
56
|
+
isMoreThenTextLimit: string;
|
57
|
+
isLessThenTextLimit: string;
|
58
|
+
isMoreThenNumberLimit: string;
|
59
|
+
isLessThenNumberLimit: string;
|
60
|
+
isMoreThenMax: string;
|
61
|
+
isLessThenMin: string;
|
62
|
+
isMoreThenDatetimeRestrict: string;
|
63
|
+
isLessThenDatetimeRestrict: string;
|
64
|
+
startTimeMustEarlierThanEndTime: string;
|
65
|
+
isUrl: string;
|
66
|
+
isEmail: string;
|
67
|
+
isJson: string;
|
68
|
+
words: string;
|
69
|
+
select: string;
|
70
|
+
noResultsFound: string;
|
71
|
+
startDate: string;
|
72
|
+
endDate: string;
|
73
|
+
navbar: {
|
74
|
+
apps: {
|
75
|
+
service: string;
|
76
|
+
dashboard: {
|
77
|
+
description: string;
|
78
|
+
label: string;
|
79
|
+
};
|
80
|
+
cabinet: {
|
81
|
+
description: string;
|
82
|
+
label: string;
|
83
|
+
};
|
84
|
+
member: {
|
85
|
+
description: string;
|
86
|
+
label: string;
|
87
|
+
};
|
88
|
+
team: {
|
89
|
+
description: string;
|
90
|
+
label: string;
|
91
|
+
};
|
92
|
+
};
|
93
|
+
profile: string;
|
94
|
+
};
|
95
|
+
};
|
96
|
+
'ja-jp': {
|
97
|
+
logout: string;
|
98
|
+
requiredHint: string;
|
99
|
+
add: string;
|
100
|
+
loading: string;
|
101
|
+
required: string;
|
102
|
+
isSlug: string;
|
103
|
+
isMoreThenTextLimit: string;
|
104
|
+
isLessThenTextLimit: string;
|
105
|
+
isMoreThenNumberLimit: string;
|
106
|
+
isLessThenNumberLimit: string;
|
107
|
+
isMoreThenMax: string;
|
108
|
+
isLessThenMin: string;
|
109
|
+
isUrl: string;
|
110
|
+
isMoreThenDatetimeRestrict: string;
|
111
|
+
isLessThenDatetimeRestrict: string;
|
112
|
+
startTimeMustEarlierThanEndTime: string;
|
113
|
+
isEmail: string;
|
114
|
+
isJson: string;
|
115
|
+
words: string;
|
116
|
+
select: string;
|
117
|
+
noResultsFound: string;
|
118
|
+
startDate: string;
|
119
|
+
endDate: string;
|
120
|
+
navbar: {
|
121
|
+
apps: {
|
122
|
+
service: string;
|
123
|
+
dashboard: {
|
124
|
+
description: string;
|
125
|
+
label: string;
|
126
|
+
};
|
127
|
+
cabinet: {
|
128
|
+
description: string;
|
129
|
+
label: string;
|
130
|
+
};
|
131
|
+
member: {
|
132
|
+
description: string;
|
133
|
+
label: string;
|
134
|
+
};
|
135
|
+
team: {
|
136
|
+
description: string;
|
137
|
+
label: string;
|
138
|
+
};
|
139
|
+
};
|
140
|
+
profile: string;
|
141
|
+
};
|
142
|
+
};
|
143
|
+
}, {}, {}, string, false>;
|
144
|
+
export declare const t: import('vue-i18n').ComposerTranslation<{
|
145
|
+
'zh-tw': {
|
146
|
+
logout: string;
|
147
|
+
requiredHint: string;
|
148
|
+
add: string;
|
149
|
+
loading: string;
|
150
|
+
required: string;
|
151
|
+
isSlug: string;
|
152
|
+
isMoreThenTextLimit: string;
|
153
|
+
isLessThenTextLimit: string;
|
154
|
+
isMoreThenNumberLimit: string;
|
155
|
+
isLessThenNumberLimit: string;
|
156
|
+
isMoreThenMax: string;
|
157
|
+
isLessThenMin: string;
|
158
|
+
isMoreThenDatetimeRestrict: string;
|
159
|
+
isLessThenDatetimeRestrict: string;
|
160
|
+
startTimeMustEarlierThanEndTime: string;
|
161
|
+
isUrl: string;
|
162
|
+
isEmail: string;
|
163
|
+
isJson: string;
|
164
|
+
words: string;
|
165
|
+
select: string;
|
166
|
+
noResultsFound: string;
|
167
|
+
startDate: string;
|
168
|
+
endDate: string;
|
169
|
+
navbar: {
|
170
|
+
apps: {
|
171
|
+
service: string;
|
172
|
+
dashboard: {
|
173
|
+
description: string;
|
174
|
+
label: string;
|
175
|
+
};
|
176
|
+
cabinet: {
|
177
|
+
description: string;
|
178
|
+
label: string;
|
179
|
+
};
|
180
|
+
member: {
|
181
|
+
description: string;
|
182
|
+
label: string;
|
183
|
+
};
|
184
|
+
team: {
|
185
|
+
description: string;
|
186
|
+
label: string;
|
187
|
+
};
|
188
|
+
};
|
189
|
+
profile: string;
|
190
|
+
};
|
191
|
+
};
|
192
|
+
'en-us': {
|
193
|
+
logout: string;
|
194
|
+
requiredHint: string;
|
195
|
+
add: string;
|
196
|
+
loading: string;
|
197
|
+
required: string;
|
198
|
+
isSlug: string;
|
199
|
+
isMoreThenTextLimit: string;
|
200
|
+
isLessThenTextLimit: string;
|
201
|
+
isMoreThenNumberLimit: string;
|
202
|
+
isLessThenNumberLimit: string;
|
203
|
+
isMoreThenMax: string;
|
204
|
+
isLessThenMin: string;
|
205
|
+
isMoreThenDatetimeRestrict: string;
|
206
|
+
isLessThenDatetimeRestrict: string;
|
207
|
+
startTimeMustEarlierThanEndTime: string;
|
208
|
+
isUrl: string;
|
209
|
+
isEmail: string;
|
210
|
+
isJson: string;
|
211
|
+
words: string;
|
212
|
+
select: string;
|
213
|
+
noResultsFound: string;
|
214
|
+
startDate: string;
|
215
|
+
endDate: string;
|
216
|
+
navbar: {
|
217
|
+
apps: {
|
218
|
+
service: string;
|
219
|
+
dashboard: {
|
220
|
+
description: string;
|
221
|
+
label: string;
|
222
|
+
};
|
223
|
+
cabinet: {
|
224
|
+
description: string;
|
225
|
+
label: string;
|
226
|
+
};
|
227
|
+
member: {
|
228
|
+
description: string;
|
229
|
+
label: string;
|
230
|
+
};
|
231
|
+
team: {
|
232
|
+
description: string;
|
233
|
+
label: string;
|
234
|
+
};
|
235
|
+
};
|
236
|
+
profile: string;
|
237
|
+
};
|
238
|
+
};
|
239
|
+
'ja-jp': {
|
240
|
+
logout: string;
|
241
|
+
requiredHint: string;
|
242
|
+
add: string;
|
243
|
+
loading: string;
|
244
|
+
required: string;
|
245
|
+
isSlug: string;
|
246
|
+
isMoreThenTextLimit: string;
|
247
|
+
isLessThenTextLimit: string;
|
248
|
+
isMoreThenNumberLimit: string;
|
249
|
+
isLessThenNumberLimit: string;
|
250
|
+
isMoreThenMax: string;
|
251
|
+
isLessThenMin: string;
|
252
|
+
isUrl: string;
|
253
|
+
isMoreThenDatetimeRestrict: string;
|
254
|
+
isLessThenDatetimeRestrict: string;
|
255
|
+
startTimeMustEarlierThanEndTime: string;
|
256
|
+
isEmail: string;
|
257
|
+
isJson: string;
|
258
|
+
words: string;
|
259
|
+
select: string;
|
260
|
+
noResultsFound: string;
|
261
|
+
startDate: string;
|
262
|
+
endDate: string;
|
263
|
+
navbar: {
|
264
|
+
apps: {
|
265
|
+
service: string;
|
266
|
+
dashboard: {
|
267
|
+
description: string;
|
268
|
+
label: string;
|
269
|
+
};
|
270
|
+
cabinet: {
|
271
|
+
description: string;
|
272
|
+
label: string;
|
273
|
+
};
|
274
|
+
member: {
|
275
|
+
description: string;
|
276
|
+
label: string;
|
277
|
+
};
|
278
|
+
team: {
|
279
|
+
description: string;
|
280
|
+
label: string;
|
281
|
+
};
|
282
|
+
};
|
283
|
+
profile: string;
|
284
|
+
};
|
285
|
+
};
|
286
|
+
}, "en-us" | "zh-tw" | "ja-jp", import('@intlify/core-base').RemoveIndexSignature<{
|
287
|
+
[x: string]: import('vue-i18n').LocaleMessageValue<import('vue-i18n').VueMessageType>;
|
288
|
+
}>, never, "select" | "loading" | "add" | "logout" | "requiredHint" | "required" | "isSlug" | "isMoreThenTextLimit" | "isLessThenTextLimit" | "isMoreThenNumberLimit" | "isLessThenNumberLimit" | "isMoreThenMax" | "isLessThenMin" | "isMoreThenDatetimeRestrict" | "isLessThenDatetimeRestrict" | "startTimeMustEarlierThanEndTime" | "isUrl" | "isEmail" | "isJson" | "words" | "noResultsFound" | "startDate" | "endDate" | "navbar.profile" | "navbar.apps.service" | "navbar.apps.dashboard.label" | "navbar.apps.dashboard.description" | "navbar.apps.cabinet.label" | "navbar.apps.cabinet.description" | "navbar.apps.member.label" | "navbar.apps.member.description" | "navbar.apps.team.label" | "navbar.apps.team.description", "select" | "loading" | "add" | "logout" | "requiredHint" | "required" | "isSlug" | "isMoreThenTextLimit" | "isLessThenTextLimit" | "isMoreThenNumberLimit" | "isLessThenNumberLimit" | "isMoreThenMax" | "isLessThenMin" | "isMoreThenDatetimeRestrict" | "isLessThenDatetimeRestrict" | "startTimeMustEarlierThanEndTime" | "isUrl" | "isEmail" | "isJson" | "words" | "noResultsFound" | "startDate" | "endDate" | "navbar.profile" | "navbar.apps.service" | "navbar.apps.dashboard.label" | "navbar.apps.dashboard.description" | "navbar.apps.cabinet.label" | "navbar.apps.cabinet.description" | "navbar.apps.member.label" | "navbar.apps.member.description" | "navbar.apps.team.label" | "navbar.apps.team.description">;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const InkSetFont: (userLanguage?: string) => void;
|
package/dist/types/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { App } from 'vue';
|
2
2
|
import { default as InkButton } from './components/InkButton.vue';
|
3
|
+
import { default as InkBadge } from './components/InkBadge.vue';
|
3
4
|
import { default as InkSpinner } from './components/InkSpinner.vue';
|
4
5
|
import { default as InkMenu } from './components/ink-menu/InkMenu.vue';
|
5
6
|
import { default as InkMenuButton } from './components/ink-menu/InkMenuButton.vue';
|
@@ -9,8 +10,27 @@ import { default as InkMenuItemsWrapper } from './components/ink-menu/InkMenuIte
|
|
9
10
|
import { default as InkDisclosure } from './components/ink-disclosure/InkDisclosure.vue';
|
10
11
|
import { default as InkDisclosureButton } from './components/ink-disclosure/InkDisclosureButton.vue';
|
11
12
|
import { default as InkDisclosurePanel } from './components/ink-disclosure/InkDisclosurePanel.vue';
|
12
|
-
|
13
|
+
import { default as InkNavbar } from './components/InkNavbar.vue';
|
14
|
+
import { default as InkSidebar } from './components/ink-sidebar/InkSidebar.vue';
|
15
|
+
import { default as InkSidebarSimpleHide } from './components/ink-sidebar/InkSidebarSimpleHide.vue';
|
16
|
+
import { InkVTooltip, vInkTooltip } from './components/ink-tooltip/Ink-tooltip';
|
17
|
+
import { default as InkField } from './components/input/InkField.vue';
|
18
|
+
import { default as InkText } from './components/input/InkText.vue';
|
19
|
+
import { default as InkUrl } from './components/input/InkUrl.vue';
|
20
|
+
import { default as InkTextarea } from './components/input/InkTextarea.vue';
|
21
|
+
import { default as InkSelect } from './components/input/InkSelect.vue';
|
22
|
+
import { default as InkHashtag } from './components/input/InkHashtag.vue';
|
23
|
+
import { default as InkCheckbox } from './components/input/InkCheckbox.vue';
|
24
|
+
import { default as InkRadio } from './components/input/InkRadio.vue';
|
25
|
+
import { default as InkSwitch } from './components/input/InkSwitch.vue';
|
26
|
+
import { default as InkElConfigProvider } from './components/input/InkElConfigProvider.vue';
|
27
|
+
import { default as InkDatetime } from './components/input/InkDatetime.vue';
|
28
|
+
import { default as InkDatetimerng } from './components/input/InkDatetimerng.vue';
|
29
|
+
import { InkSetFont } from './helper/set-font';
|
30
|
+
export { InkSetFont, InkButton, InkBadge, InkSpinner, InkMenu, InkMenuButton, InkMenuItems, InkMenuItem, InkMenuItemsWrapper, InkDisclosure, InkDisclosureButton, InkDisclosurePanel, InkNavbar, InkSidebar, InkSidebarSimpleHide, InkVTooltip, vInkTooltip, InkField, InkText, InkUrl, InkTextarea, InkSelect, InkHashtag, InkCheckbox, InkRadio, InkSwitch, InkElConfigProvider, InkDatetime, InkDate, InkDatetimerng, InkDaterng };
|
13
31
|
declare const _default: {
|
14
|
-
install: (app: App
|
32
|
+
install: (app: App, options: {
|
33
|
+
lang?: "zh-tw" | "en-us" | "ja-jp";
|
34
|
+
}) => void;
|
15
35
|
};
|
16
36
|
export default _default;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"logout": "Logout",
|
3
|
+
"requiredHint": "(Required)",
|
4
|
+
"add": "Add",
|
5
|
+
"loading":"Loading...",
|
6
|
+
|
7
|
+
"required":"Required",
|
8
|
+
"isSlug":"Can only be composed of lowercase English letters, numbers, connecting lines (-) and underscores (_) and dot(.)",
|
9
|
+
"isMoreThenTextLimit": "Exceeds the maximum number of characters, please shorten it to {length} characters or less",
|
10
|
+
"isLessThenTextLimit": "Text must be at least {length} characters",
|
11
|
+
"isMoreThenNumberLimit": "Number must be less than or equal to {length}",
|
12
|
+
"isLessThenNumberLimit": "Number must be greater than or equal to {length}",
|
13
|
+
"isMoreThenMax": "You can only select {length} item",
|
14
|
+
"isLessThenMin": "You can only select {length} item",
|
15
|
+
"isMoreThenDatetimeRestrict": "Time must be greater than {datetime}",
|
16
|
+
"isLessThenDatetimeRestrict": "Time must less than or equal to {datetime}",
|
17
|
+
"startTimeMustEarlierThanEndTime":"The \"Start Time\" must be earlier than the \"End Time\"",
|
18
|
+
"isUrl": "Please enter a valid URL",
|
19
|
+
"isEmail": "Please match the email format",
|
20
|
+
"isJson": "Please match the JSON format",
|
21
|
+
"words": "Words",
|
22
|
+
|
23
|
+
"select":"Select",
|
24
|
+
"noResultsFound":"No results found",
|
25
|
+
"startDate":"Start Date",
|
26
|
+
"endDate":"End Date",
|
27
|
+
|
28
|
+
"navbar": {
|
29
|
+
"apps": {
|
30
|
+
"service":"Service",
|
31
|
+
"dashboard":{
|
32
|
+
"description": "Overview Inkmagine Features and Services",
|
33
|
+
"label": "Service Index"
|
34
|
+
},
|
35
|
+
"cabinet": {
|
36
|
+
"description": "Edit articles, setting authors and categories",
|
37
|
+
"label": "Cabinet"
|
38
|
+
},
|
39
|
+
"member": {
|
40
|
+
"description": "Manage your account",
|
41
|
+
"label": "Member"
|
42
|
+
},
|
43
|
+
"team": {
|
44
|
+
"description": "Set up your team. You can define roles and invite team members.",
|
45
|
+
"label": "Team"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"profile": "Profile"
|
49
|
+
}
|
50
|
+
};
|
51
|
+
|
52
|
+
export default _default;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"logout": "ログアウト",
|
3
|
+
"requiredHint": "(必須)",
|
4
|
+
"add":"追加",
|
5
|
+
"loading":"Loading...",
|
6
|
+
|
7
|
+
"required":"必須項目",
|
8
|
+
"isSlug":"小文字の英字、数字、ダッシュ(-)、アンダースコア(_)、ドット(.)で構成してください",
|
9
|
+
"isMoreThenTextLimit": "最大文字数を超えています。{length} 文字以下に短縮してください。",
|
10
|
+
"isLessThenTextLimit": "{length}文字以上にしてください",
|
11
|
+
"isMoreThenNumberLimit": "数字は{length}以下で入力してください",
|
12
|
+
"isLessThenNumberLimit": "数字は{length}以上で入力してください",
|
13
|
+
"isMoreThenMax": "{length}個までしか選択できません",
|
14
|
+
"isLessThenMin": "{length}個までしか選択できません",
|
15
|
+
"isUrl": "有効なURLを入力してください",
|
16
|
+
"isMoreThenDatetimeRestrict": "時間は {datetime} より大きい必要があります",
|
17
|
+
"isLessThenDatetimeRestrict": "時間は {datetime} 以下である必要があります",
|
18
|
+
"startTimeMustEarlierThanEndTime":"「開始時間」は「終了時間」よりも早くなければなりません",
|
19
|
+
"isEmail": "正しいemailの形式で入力してください",
|
20
|
+
"isJson": "JSON 形式に合わせてください",
|
21
|
+
"words": "文字",
|
22
|
+
|
23
|
+
"select":"選ぶ",
|
24
|
+
"noResultsFound":"該当する結果がありません",
|
25
|
+
"startDate":"開始日",
|
26
|
+
"endDate":"終了日",
|
27
|
+
|
28
|
+
"navbar": {
|
29
|
+
"apps": {
|
30
|
+
"service":"サービス",
|
31
|
+
"dashboard":{
|
32
|
+
"description": "Inkmagine の機能とサービスの概要",
|
33
|
+
"label": "サービスインデックス"
|
34
|
+
},
|
35
|
+
"cabinet": {
|
36
|
+
"description": "記事の編集、投稿者とカテゴリーの設定",
|
37
|
+
"label": "記事管理"
|
38
|
+
},
|
39
|
+
"member": {
|
40
|
+
"description": "個人アカウント情報の管理",
|
41
|
+
"label": "アカウント管理"
|
42
|
+
},
|
43
|
+
"team": {
|
44
|
+
"description": "ブランド作成、メンバー追加、使用者権限の設定",
|
45
|
+
"label": "ブランド管理"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"profile": "プロフィール"
|
49
|
+
}
|
50
|
+
};
|
51
|
+
|
52
|
+
export default _default;
|