@naptics/vue-collection 1.0.0 → 1.0.2
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/lib/components/NCrudModal.d.ts +3 -3
- package/lib/components/NCrudModal.js +1 -1
- package/lib/components/NDialog.d.ts +1 -1
- package/lib/components/NDialog.js +16 -6
- package/lib/components/NFormModal.d.ts +2 -2
- package/lib/components/NModal.d.ts +2 -2
- package/lib/components/NModal.js +2 -2
- package/lib/components/NSearchbar.d.ts +1 -1
- package/lib/components/NSearchbar.js +1 -1
- package/lib/components/NSearchbarList.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare const nCrudModalProps: {
|
|
|
6
6
|
*/
|
|
7
7
|
readonly removeText: {
|
|
8
8
|
readonly type: StringConstructor;
|
|
9
|
-
readonly default: string;
|
|
9
|
+
readonly default: () => string;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* The color of the remove-button.
|
|
@@ -80,7 +80,7 @@ export declare const nCrudModalProps: {
|
|
|
80
80
|
readonly title: StringConstructor;
|
|
81
81
|
readonly okText: {
|
|
82
82
|
readonly type: StringConstructor;
|
|
83
|
-
readonly default: string;
|
|
83
|
+
readonly default: () => string;
|
|
84
84
|
};
|
|
85
85
|
readonly okColor: {
|
|
86
86
|
readonly type: StringConstructor;
|
|
@@ -93,7 +93,7 @@ export declare const nCrudModalProps: {
|
|
|
93
93
|
readonly hideOk: BooleanConstructor;
|
|
94
94
|
readonly cancelText: {
|
|
95
95
|
readonly type: StringConstructor;
|
|
96
|
-
readonly default: string;
|
|
96
|
+
readonly default: () => string;
|
|
97
97
|
};
|
|
98
98
|
readonly cancelColor: {
|
|
99
99
|
readonly type: StringConstructor;
|
|
@@ -47,7 +47,7 @@ export const nDialogProps = {
|
|
|
47
47
|
*/
|
|
48
48
|
cancelText: {
|
|
49
49
|
type: String,
|
|
50
|
-
default: trsl('vue-collection.action.cancel')
|
|
50
|
+
default: () => trsl('vue-collection.action.cancel')
|
|
51
51
|
},
|
|
52
52
|
/**
|
|
53
53
|
* The color of the cancel-button.
|
|
@@ -130,31 +130,41 @@ const VARIANT_DEFAULTS = {
|
|
|
130
130
|
success: {
|
|
131
131
|
icon: CheckIcon,
|
|
132
132
|
iconColor: 'green',
|
|
133
|
-
okText
|
|
133
|
+
get okText() {
|
|
134
|
+
return trsl('vue-collection.action.all-right');
|
|
135
|
+
},
|
|
134
136
|
okColor: 'green'
|
|
135
137
|
},
|
|
136
138
|
info: {
|
|
137
139
|
icon: LightBulbIcon,
|
|
138
140
|
iconColor: 'blue',
|
|
139
|
-
okText
|
|
141
|
+
get okText() {
|
|
142
|
+
return trsl('vue-collection.action.all-right');
|
|
143
|
+
},
|
|
140
144
|
okColor: 'blue'
|
|
141
145
|
},
|
|
142
146
|
warning: {
|
|
143
147
|
icon: ExclamationTriangleIcon,
|
|
144
148
|
iconColor: 'yellow',
|
|
145
|
-
okText
|
|
149
|
+
get okText() {
|
|
150
|
+
return trsl('vue-collection.action.proceed');
|
|
151
|
+
},
|
|
146
152
|
okColor: 'yellow'
|
|
147
153
|
},
|
|
148
154
|
danger: {
|
|
149
155
|
icon: ExclamationTriangleIcon,
|
|
150
156
|
iconColor: 'red',
|
|
151
|
-
okText
|
|
157
|
+
get okText() {
|
|
158
|
+
return trsl('vue-collection.action.proceed');
|
|
159
|
+
},
|
|
152
160
|
okColor: 'red'
|
|
153
161
|
},
|
|
154
162
|
remove: {
|
|
155
163
|
icon: TrashIcon,
|
|
156
164
|
iconColor: 'red',
|
|
157
|
-
okText
|
|
165
|
+
get okText() {
|
|
166
|
+
return trsl('vue-collection.action.remove');
|
|
167
|
+
},
|
|
158
168
|
okColor: 'red'
|
|
159
169
|
}
|
|
160
170
|
};
|
|
@@ -36,7 +36,7 @@ export declare const nFormModalProps: {
|
|
|
36
36
|
readonly title: StringConstructor;
|
|
37
37
|
readonly okText: {
|
|
38
38
|
readonly type: StringConstructor;
|
|
39
|
-
readonly default: string;
|
|
39
|
+
readonly default: () => string;
|
|
40
40
|
};
|
|
41
41
|
readonly okColor: {
|
|
42
42
|
readonly type: StringConstructor;
|
|
@@ -50,7 +50,7 @@ export declare const nFormModalProps: {
|
|
|
50
50
|
readonly okDisabled: BooleanConstructor;
|
|
51
51
|
readonly cancelText: {
|
|
52
52
|
readonly type: StringConstructor;
|
|
53
|
-
readonly default: string;
|
|
53
|
+
readonly default: () => string;
|
|
54
54
|
};
|
|
55
55
|
readonly cancelColor: {
|
|
56
56
|
readonly type: StringConstructor;
|
|
@@ -43,7 +43,7 @@ export declare const nModalProps: {
|
|
|
43
43
|
*/
|
|
44
44
|
readonly okText: {
|
|
45
45
|
readonly type: StringConstructor;
|
|
46
|
-
readonly default: string;
|
|
46
|
+
readonly default: () => string;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* The color of the ok-button.
|
|
@@ -72,7 +72,7 @@ export declare const nModalProps: {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly cancelText: {
|
|
74
74
|
readonly type: StringConstructor;
|
|
75
|
-
readonly default: string;
|
|
75
|
+
readonly default: () => string;
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
78
|
* The color of the cancel-button.
|
package/lib/components/NModal.js
CHANGED
|
@@ -50,7 +50,7 @@ export const nModalProps = {
|
|
|
50
50
|
*/
|
|
51
51
|
okText: {
|
|
52
52
|
type: String,
|
|
53
|
-
default: trsl('vue-collection.action.save')
|
|
53
|
+
default: () => trsl('vue-collection.action.save')
|
|
54
54
|
},
|
|
55
55
|
/**
|
|
56
56
|
* The color of the ok-button.
|
|
@@ -79,7 +79,7 @@ export const nModalProps = {
|
|
|
79
79
|
*/
|
|
80
80
|
cancelText: {
|
|
81
81
|
type: String,
|
|
82
|
-
default: trsl('vue-collection.action.cancel')
|
|
82
|
+
default: () => trsl('vue-collection.action.cancel')
|
|
83
83
|
},
|
|
84
84
|
/**
|
|
85
85
|
* The color of the cancel-button.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@naptics/vue-collection",
|
|
3
3
|
"author": "Timo Siegenthaler and Jonas Schoch",
|
|
4
4
|
"description": "Vue Collection is a collection of styled and fully functional Vue components which can easily be integrated into our projects.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"exports": {
|