@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.
@@ -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;
@@ -12,7 +12,7 @@ export const nCrudModalProps = {
12
12
  */
13
13
  removeText: {
14
14
  type: String,
15
- default: trsl('vue-collection.action.remove')
15
+ default: () => trsl('vue-collection.action.remove')
16
16
  },
17
17
  /**
18
18
  * The color of the remove-button.
@@ -40,7 +40,7 @@ export declare const nDialogProps: {
40
40
  */
41
41
  cancelText: {
42
42
  type: StringConstructor;
43
- default: string;
43
+ default: () => string;
44
44
  };
45
45
  /**
46
46
  * The color of the cancel-button.
@@ -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: trsl('vue-collection.action.all-right'),
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: trsl('vue-collection.action.all-right'),
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: trsl('vue-collection.action.proceed'),
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: trsl('vue-collection.action.proceed'),
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: trsl('vue-collection.action.remove'),
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.
@@ -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.
@@ -5,7 +5,7 @@ export declare const nSearchbarProps: {
5
5
  */
6
6
  readonly placeholder: {
7
7
  readonly type: StringConstructor;
8
- readonly default: string;
8
+ readonly default: () => string;
9
9
  };
10
10
  /**
11
11
  * If set to `true` the search-bar is displayed smaller.
@@ -11,7 +11,7 @@ export const nSearchbarProps = {
11
11
  */
12
12
  placeholder: {
13
13
  type: String,
14
- default: trsl('vue-collection.action.search')
14
+ default: () => trsl('vue-collection.action.search')
15
15
  },
16
16
  /**
17
17
  * If set to `true` the search-bar is displayed smaller.
@@ -4,7 +4,7 @@ export declare const nSearchbarListProps: {
4
4
  */
5
5
  readonly placeholder: {
6
6
  readonly type: StringConstructor;
7
- readonly default: string;
7
+ readonly default: () => string;
8
8
  };
9
9
  /**
10
10
  * Adds the classes directly to the input (e.g. for shadow).
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.0",
5
+ "version": "1.0.2",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "exports": {