@awes-io/ui 2.47.3 → 2.49.1
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/CHANGELOG.md +33 -0
- package/assets/css/components/button-fixed.css +3 -3
- package/components/1_atoms/AwDropdown.vue +1 -1
- package/components/2_molecules/AwButton.vue +1 -1
- package/components/2_molecules/AwIsland/AwIslandBuilder.vue +1 -1
- package/components/2_molecules/AwSelect.vue +2 -2
- package/components/2_molecules/AwSelectObject.vue +2 -2
- package/components/3_organisms/AwAddressBlock.vue +60 -20
- package/components/3_organisms/AwBirthdayPicker.vue +2 -2
- package/components/3_organisms/AwBottomBar.vue +1 -1
- package/components/3_organisms/AwCalendar/AwCalendar.vue +1 -1
- package/components/3_organisms/AwCalendar/AwCalendarView.vue +1 -1
- package/components/3_organisms/AwCalendar/_AwCalendarNav.vue +3 -3
- package/components/3_organisms/AwCalendar/_AwCalendarWeekdays.vue +1 -2
- package/components/3_organisms/AwCodeSnippet.vue +1 -1
- package/components/3_organisms/AwCropper.vue +2 -2
- package/components/3_organisms/AwDate.vue +1 -1
- package/components/3_organisms/AwDisplayDate.vue +1 -1
- package/components/3_organisms/AwDownloadLink.vue +2 -2
- package/components/3_organisms/AwFetchData.vue +1 -1
- package/components/3_organisms/AwIslandAvatar.vue +4 -4
- package/components/3_organisms/AwModal.vue +2 -2
- package/components/3_organisms/AwModelEdit.vue +6 -6
- package/components/3_organisms/AwMultiBlockBuilder.vue +9 -4
- package/components/3_organisms/AwPagination.vue +3 -3
- package/components/3_organisms/AwSearch.vue +2 -2
- package/components/3_organisms/AwTable/AwTableBuilder.vue +3 -3
- package/components/3_organisms/AwUploader.vue +4 -4
- package/components/3_organisms/AwUploaderFiles.vue +2 -2
- package/components/4_pages/AwPage.vue +3 -3
- package/components/4_pages/AwPageModal.vue +2 -2
- package/components/4_pages/_AwButtonFixed.vue +3 -3
- package/components/5_layouts/AwLayoutCenter.vue +1 -1
- package/components/5_layouts/AwLayoutError.vue +2 -2
- package/components/5_layouts/_AwLayoutLogo.vue +1 -1
- package/components/5_layouts/_AwMobileMenu.vue +8 -8
- package/components/5_layouts/_AwOfflineNotify.vue +2 -2
- package/components/5_layouts/_AwUserMenu.vue +3 -3
- package/components/_config.js +16 -1
- package/nuxt/awes.config.js +2 -0
- package/nuxt/index.js +0 -22
- package/nuxt/templates/lang.plugin.js +90 -7
- package/package.json +2 -3
- package/lang/de.js +0 -198
- package/lang/en.js +0 -222
- package/lang/ru.js +0 -203
- package/lang/uk.js +0 -199
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.49.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.49.0...@awes-io/ui@2.49.1) (2022-05-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* multiline translations updated ([3b072f8](https://github.com/awes-io/client/commit/3b072f84be4bfb4327cfa80d23531b80c73e1eda))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.49.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.48.0...@awes-io/ui@2.49.0) (2022-05-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* translation system updated ([2827c0e](https://github.com/awes-io/client/commit/2827c0e6108523aa26e3f5af10478be23cace54f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [2.48.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.47.3...@awes-io/ui@2.48.0) (2022-05-16)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **aw-address-block:** region added ([018a113](https://github.com/awes-io/client/commit/018a113f7bd397df33042e87619e5e9b7f0f08df))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
## [2.47.3](https://github.com/awes-io/client/compare/@awes-io/ui@2.47.2...@awes-io/ui@2.47.3) (2022-04-26)
|
|
7
40
|
|
|
8
41
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
&__text {
|
|
21
21
|
flex-shrink: 1;
|
|
22
22
|
max-width: 1px;
|
|
23
|
-
margin-
|
|
23
|
+
margin-left: -1px;
|
|
24
24
|
|
|
25
25
|
opacity: 0.1;
|
|
26
26
|
transition-property: max-width, margin, opacity;
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
|
|
29
29
|
&--expanded {
|
|
30
30
|
max-width: 16rem;
|
|
31
|
-
margin-
|
|
31
|
+
margin-left: 0.75em;
|
|
32
32
|
opacity: 1;
|
|
33
33
|
transition-timing-function: ease-out;
|
|
34
|
-
transition-duration:
|
|
34
|
+
transition-duration: 210ms;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
data-arrow-focus
|
|
236
236
|
>
|
|
237
237
|
<slot name="not-found" :searchPhrase="searchPhrase">
|
|
238
|
-
{{ $t('
|
|
238
|
+
{{ $t('aw.select.not_found') }}
|
|
239
239
|
</slot>
|
|
240
240
|
</AwDropdownButton>
|
|
241
241
|
</slot>
|
|
@@ -344,7 +344,7 @@ export default {
|
|
|
344
344
|
createConfirmText: {
|
|
345
345
|
type: String,
|
|
346
346
|
default() {
|
|
347
|
-
return this.$t('
|
|
347
|
+
return this.$t('aw.select.new_one')
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
350
|
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
<!-- not found -->
|
|
164
164
|
<div v-if="_showNotFound" class="aw-select__notify">
|
|
165
165
|
<slot name="not-found" :searchPhrase="searchPhrase">
|
|
166
|
-
{{ $t('
|
|
166
|
+
{{ $t('aw.select.empty') }}
|
|
167
167
|
</slot>
|
|
168
168
|
</div>
|
|
169
169
|
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
class="aw-select__notify aw-select__notify--loading"
|
|
174
174
|
>
|
|
175
175
|
<slot name="loading">
|
|
176
|
-
{{ $t('
|
|
176
|
+
{{ $t('aw.select.loading') }}
|
|
177
177
|
</slot>
|
|
178
178
|
</div>
|
|
179
179
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<AwAddress
|
|
5
5
|
ref="address"
|
|
6
6
|
:gm-language="$i18n.locale || 'en'"
|
|
7
|
-
:label="$t('
|
|
7
|
+
:label="$t('aw.address_block.address')"
|
|
8
8
|
:error="addressError"
|
|
9
9
|
:gm-key="gmKey"
|
|
10
10
|
:timezone="timezone"
|
|
@@ -24,51 +24,62 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
<AwGrid :col="{ md: 2 }">
|
|
27
|
-
<AwInfo :label="$t('
|
|
27
|
+
<AwInfo :label="$t('aw.address_block.street')">
|
|
28
28
|
<span v-if="model.address.address_1">
|
|
29
29
|
{{ model.address.address_1 }}
|
|
30
30
|
</span>
|
|
31
31
|
<AwLink
|
|
32
32
|
v-else
|
|
33
|
-
:text="$t('
|
|
33
|
+
:text="$t('aw.address_block.add')"
|
|
34
34
|
@click="openModal('address_1')"
|
|
35
35
|
/>
|
|
36
36
|
</AwInfo>
|
|
37
37
|
|
|
38
|
-
<AwInfo :label="$t('
|
|
38
|
+
<AwInfo :label="$t('aw.address_block.apt')">
|
|
39
39
|
<span v-if="model.address.apt">
|
|
40
40
|
{{ model.address.apt }}
|
|
41
41
|
</span>
|
|
42
42
|
<AwLink
|
|
43
43
|
v-else
|
|
44
|
-
:text="$t('
|
|
44
|
+
:text="$t('aw.address_block.add')"
|
|
45
45
|
@click="openModal('apt')"
|
|
46
46
|
/>
|
|
47
47
|
</AwInfo>
|
|
48
48
|
|
|
49
|
-
<AwInfo :label="$t('
|
|
49
|
+
<AwInfo :label="$t('aw.address_block.city')">
|
|
50
50
|
<span v-if="model.address.city">
|
|
51
51
|
{{ model.address.city }}
|
|
52
52
|
</span>
|
|
53
53
|
<AwLink
|
|
54
54
|
v-else
|
|
55
|
-
:text="$t('
|
|
55
|
+
:text="$t('aw.address_block.add')"
|
|
56
56
|
@click="openModal('city')"
|
|
57
57
|
/>
|
|
58
58
|
</AwInfo>
|
|
59
59
|
|
|
60
|
-
<AwInfo :label="$t('
|
|
60
|
+
<AwInfo :label="$t('aw.address_block.region')">
|
|
61
|
+
<span v-if="model.address.region">
|
|
62
|
+
{{ model.address.region }}
|
|
63
|
+
</span>
|
|
64
|
+
<AwLink
|
|
65
|
+
v-else
|
|
66
|
+
:text="$t('aw.address_block.add')"
|
|
67
|
+
@click="openModal('region')"
|
|
68
|
+
/>
|
|
69
|
+
</AwInfo>
|
|
70
|
+
|
|
71
|
+
<AwInfo :label="$t('aw.address_block.postal_code')">
|
|
61
72
|
<span v-if="model.address.postal_code">
|
|
62
73
|
{{ model.address.postal_code }}
|
|
63
74
|
</span>
|
|
64
75
|
<AwLink
|
|
65
76
|
v-else
|
|
66
|
-
:text="$t('
|
|
77
|
+
:text="$t('aw.address_block.add')"
|
|
67
78
|
@click="openModal('postal_code')"
|
|
68
79
|
/>
|
|
69
80
|
</AwInfo>
|
|
70
81
|
|
|
71
|
-
<AwInfo :label="$t('
|
|
82
|
+
<AwInfo :label="$t('aw.address_block.country')">
|
|
72
83
|
<span>
|
|
73
84
|
{{ model.address.meta.google_country_name }}
|
|
74
85
|
</span>
|
|
@@ -107,7 +118,7 @@
|
|
|
107
118
|
:key="_uid"
|
|
108
119
|
:param="false"
|
|
109
120
|
:name="modalName"
|
|
110
|
-
:title="$t('
|
|
121
|
+
:title="$t('aw.address_block.modal.title')"
|
|
111
122
|
@opened="onModalOpen"
|
|
112
123
|
@closed="onModalClose"
|
|
113
124
|
>
|
|
@@ -115,35 +126,42 @@
|
|
|
115
126
|
<AwInput
|
|
116
127
|
ref="address_1"
|
|
117
128
|
v-model="address.address_1"
|
|
118
|
-
:label="$t('
|
|
129
|
+
:label="$t('aw.address_block.street')"
|
|
119
130
|
:error="model.errors['address.address_1']"
|
|
120
131
|
/>
|
|
121
132
|
|
|
122
133
|
<AwInput
|
|
123
134
|
ref="apt"
|
|
124
135
|
v-model="address.apt"
|
|
125
|
-
:label="$t('
|
|
136
|
+
:label="$t('aw.address_block.apt')"
|
|
126
137
|
:error="model.errors['address.apt']"
|
|
127
138
|
/>
|
|
128
139
|
|
|
129
140
|
<AwInput
|
|
130
141
|
ref="city"
|
|
131
142
|
v-model="address.city"
|
|
132
|
-
:label="$t('
|
|
143
|
+
:label="$t('aw.address_block.city')"
|
|
133
144
|
:error="model.errors['address.city']"
|
|
134
145
|
/>
|
|
135
146
|
|
|
147
|
+
<AwInput
|
|
148
|
+
ref="region"
|
|
149
|
+
v-model="address.region"
|
|
150
|
+
:label="$t('aw.address_block.region')"
|
|
151
|
+
:error="model.errors['address.region']"
|
|
152
|
+
/>
|
|
153
|
+
|
|
136
154
|
<AwInput
|
|
137
155
|
ref="postal_code"
|
|
138
156
|
v-model="address.postal_code"
|
|
139
|
-
:label="$t('
|
|
157
|
+
:label="$t('aw.address_block.postal_code')"
|
|
140
158
|
:error="model.errors['address.postal_code']"
|
|
141
159
|
/>
|
|
142
160
|
|
|
143
161
|
<AwInput
|
|
144
|
-
ref="
|
|
162
|
+
ref="country"
|
|
145
163
|
:value="model.address.meta.google_country_name"
|
|
146
|
-
:label="$t('
|
|
164
|
+
:label="$t('aw.address_block.country')"
|
|
147
165
|
:error="model.errors['address.meta.google_country_name']"
|
|
148
166
|
disabled
|
|
149
167
|
/>
|
|
@@ -152,7 +170,7 @@
|
|
|
152
170
|
<template #buttons>
|
|
153
171
|
<div class="flex items-center border-t w-full p-4">
|
|
154
172
|
<AwButton
|
|
155
|
-
:text="$t('
|
|
173
|
+
:text="$t('aw.address_block.modal.save')"
|
|
156
174
|
style="margin-right: 1rem"
|
|
157
175
|
@click="saveAddress"
|
|
158
176
|
/>
|
|
@@ -163,7 +181,7 @@
|
|
|
163
181
|
@click="resetAddress"
|
|
164
182
|
>
|
|
165
183
|
<span class="text-dark-blue">
|
|
166
|
-
{{ $t('
|
|
184
|
+
{{ $t('aw.address_block.modal.cancel') }}
|
|
167
185
|
</span>
|
|
168
186
|
</AwButton>
|
|
169
187
|
</div>
|
|
@@ -181,6 +199,7 @@ const BASE = {
|
|
|
181
199
|
google_country_name: null
|
|
182
200
|
},
|
|
183
201
|
country_iso: null,
|
|
202
|
+
region: null,
|
|
184
203
|
city: null,
|
|
185
204
|
postal_code: null,
|
|
186
205
|
address_1: null,
|
|
@@ -279,7 +298,11 @@ export default {
|
|
|
279
298
|
|
|
280
299
|
address.meta.google_country_name = obj.country || 'Germany'
|
|
281
300
|
address.country_iso = obj.country_iso || 'DE'
|
|
282
|
-
address.
|
|
301
|
+
address.region = obj.administrative_area_level_1
|
|
302
|
+
address.city =
|
|
303
|
+
obj.locality ||
|
|
304
|
+
obj.postal_town ||
|
|
305
|
+
obj.administrative_area_level_2
|
|
283
306
|
address.postal_code = obj.postal_code
|
|
284
307
|
address.address_1 =
|
|
285
308
|
(obj.route ? `${obj.route} ` : '') + (obj.street_number || '')
|
|
@@ -289,6 +312,23 @@ export default {
|
|
|
289
312
|
}
|
|
290
313
|
address.timezone = obj.timezone
|
|
291
314
|
|
|
315
|
+
// additional info
|
|
316
|
+
if (obj.route) {
|
|
317
|
+
address.meta.street = obj.route
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (obj.street_number) {
|
|
321
|
+
address.meta.house = obj.street_number
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (obj.neighborhood) {
|
|
325
|
+
address.meta.neighborhood = obj.neighborhood
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (obj.administrative_area_level_2) {
|
|
329
|
+
address.meta.county = obj.administrative_area_level_2
|
|
330
|
+
}
|
|
331
|
+
|
|
292
332
|
event.data = address
|
|
293
333
|
|
|
294
334
|
this.$emit('data', event)
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
label: {
|
|
99
99
|
type: String,
|
|
100
100
|
default() {
|
|
101
|
-
return this.$t('
|
|
101
|
+
return this.$t('aw.birthday_picker.birthday')
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
|
|
@@ -166,7 +166,7 @@ export default {
|
|
|
166
166
|
key,
|
|
167
167
|
[KEY_ATTR]: key,
|
|
168
168
|
name: this._inputNames[i].name,
|
|
169
|
-
placeholder: this.$t('
|
|
169
|
+
placeholder: this.$t('aw.birthday_picker.' + key),
|
|
170
170
|
pattern: MASK_MAP[key],
|
|
171
171
|
maxlength: PLACEHOLDER_MAP[key].length,
|
|
172
172
|
inputmode: 'numeric'
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script>
|
|
38
|
-
import { AwCalendar as
|
|
38
|
+
import { AwCalendar as _config } from '@AwConfig'
|
|
39
39
|
|
|
40
40
|
export default {
|
|
41
41
|
name: 'AwCalendarNav',
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
months: {
|
|
53
53
|
type: Array,
|
|
54
54
|
default() {
|
|
55
|
-
return this.$t('
|
|
55
|
+
return this.$t('aw.calendar.months')
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
|
|
64
64
|
computed: {
|
|
65
65
|
_months() {
|
|
66
|
-
return Array.isArray(this.months) ? this.months :
|
|
66
|
+
return Array.isArray(this.months) ? this.months : _config.months
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { pathOr } from 'rambdax'
|
|
3
|
-
import { AwCalendar as lang } from '../../../lang/en'
|
|
4
3
|
import { AwCalendar as _config } from '@AwConfig'
|
|
5
4
|
import { CONFIG_VAR } from '@AwUtils/component'
|
|
6
5
|
|
|
@@ -34,7 +33,7 @@ export default {
|
|
|
34
33
|
|
|
35
34
|
const namesArray = Array.isArray(weekdayNames)
|
|
36
35
|
? weekdayNames
|
|
37
|
-
:
|
|
36
|
+
: _config.weekdaysShort
|
|
38
37
|
|
|
39
38
|
const sortedNames = namesArray
|
|
40
39
|
.slice(firstDay)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
class="aw-cropper__rotate"
|
|
13
13
|
content-class="px-2"
|
|
14
14
|
theme="icon"
|
|
15
|
-
:text="$t('
|
|
15
|
+
:text="$t('aw.cropper.rotate')"
|
|
16
16
|
color="default"
|
|
17
17
|
@click="rotate"
|
|
18
18
|
>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
<slot name="buttons" :rotate="rotate" :save="save">
|
|
34
34
|
<!-- save -->
|
|
35
|
-
<AwButton :text="$t('
|
|
35
|
+
<AwButton :text="$t('aw.cropper.save')" @click="save" />
|
|
36
36
|
</slot>
|
|
37
37
|
</div>
|
|
38
38
|
</template>
|
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
type: String,
|
|
110
110
|
/* Translatable word "Download" */
|
|
111
111
|
default() {
|
|
112
|
-
return this.$t('
|
|
112
|
+
return this.$t('aw.download_link.download')
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
/**
|
|
@@ -119,7 +119,7 @@ export default {
|
|
|
119
119
|
type: String,
|
|
120
120
|
/* Translatable word "Download" */
|
|
121
121
|
default() {
|
|
122
|
-
return this.$t('
|
|
122
|
+
return this.$t('aw.download_link.download')
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
/**
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
<AwDropdownButton
|
|
60
60
|
v-if="zoomable && src"
|
|
61
|
-
:text="$t('
|
|
61
|
+
:text="$t('aw.page_user.zoom')"
|
|
62
62
|
@click="openZoomModal"
|
|
63
63
|
/>
|
|
64
64
|
<label
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
class="aw-dropdown-button aw-dropdown-button_default"
|
|
67
67
|
>
|
|
68
68
|
<span tabindex="-1">
|
|
69
|
-
{{ $t('
|
|
69
|
+
{{ $t('aw.page_user.upload') }}
|
|
70
70
|
</span>
|
|
71
71
|
<input
|
|
72
72
|
class="sr-only"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
</label>
|
|
78
78
|
<AwDropdownButton
|
|
79
79
|
v-if="editable && src"
|
|
80
|
-
:text="$t('
|
|
80
|
+
:text="$t('aw.page_user.remove')"
|
|
81
81
|
color="error"
|
|
82
82
|
@click="removeAvatar"
|
|
83
83
|
/>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
v-if="editable"
|
|
145
145
|
ref="cropModal"
|
|
146
146
|
:param="null"
|
|
147
|
-
:title="$t('
|
|
147
|
+
:title="$t('aw.page_user.modal_title')"
|
|
148
148
|
theme="fullscreen"
|
|
149
149
|
>
|
|
150
150
|
<AwCropper :src="uploadedAvatar" @save="saveAvatar" />
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
saveText: {
|
|
74
74
|
type: String,
|
|
75
75
|
default() {
|
|
76
|
-
return this.$t('
|
|
76
|
+
return this.$t('aw.model_edit.save')
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
cancelText: {
|
|
83
83
|
type: String,
|
|
84
84
|
default() {
|
|
85
|
-
return this.$t('
|
|
85
|
+
return this.$t('aw.model_edit.cancel')
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
|
|
180
180
|
this.notify(
|
|
181
181
|
'success',
|
|
182
|
-
this.notifyText || this.$t('
|
|
182
|
+
this.notifyText || this.$t('aw.model_edit.success')
|
|
183
183
|
)
|
|
184
184
|
|
|
185
185
|
if (this.isRedirect) {
|
|
@@ -189,7 +189,7 @@ export default {
|
|
|
189
189
|
console.log(e)
|
|
190
190
|
|
|
191
191
|
const msg = pathOr(
|
|
192
|
-
this.$t('
|
|
192
|
+
this.$t('aw.model_edit.error'),
|
|
193
193
|
this.saveErrorPath,
|
|
194
194
|
e
|
|
195
195
|
)
|
|
@@ -245,7 +245,7 @@ export default {
|
|
|
245
245
|
|
|
246
246
|
ask() {
|
|
247
247
|
if (this.model.changed()) {
|
|
248
|
-
return this.$confirm(this.$t('
|
|
248
|
+
return this.$confirm(this.$t('aw.model_edit.cancel_all_changes'))
|
|
249
249
|
} else {
|
|
250
250
|
return Promise.resolve()
|
|
251
251
|
}
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
287
287
|
_onPageLeave($event) {
|
|
288
288
|
$event.preventDefault()
|
|
289
289
|
|
|
290
|
-
$event.returnValue = this.$t('
|
|
290
|
+
$event.returnValue = this.$t('aw.model_edit.cancel_all_changes')
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<h5 class="flex items-center draggable">
|
|
22
22
|
<span>
|
|
23
23
|
{{
|
|
24
|
-
$t('
|
|
24
|
+
$t('aw.multi_block_builder.title', {
|
|
25
25
|
title,
|
|
26
26
|
iteration: index + 1
|
|
27
27
|
})
|
|
@@ -30,7 +30,12 @@
|
|
|
30
30
|
<AwButton
|
|
31
31
|
icon="close"
|
|
32
32
|
theme="icon"
|
|
33
|
-
:text="
|
|
33
|
+
:text="
|
|
34
|
+
$t('aw.multi_block_builder.remove', {
|
|
35
|
+
title,
|
|
36
|
+
iteration: index + 1
|
|
37
|
+
})
|
|
38
|
+
"
|
|
34
39
|
@click="remove(model)"
|
|
35
40
|
/>
|
|
36
41
|
</h5>
|
|
@@ -50,7 +55,7 @@
|
|
|
50
55
|
<slot name="add" v-bind="{ collection, title, add }">
|
|
51
56
|
<!-- `<button>+ Add {title}</button>` -->
|
|
52
57
|
<AwLink class="text-sm font-bold uppercase" @click="add">
|
|
53
|
-
{{ $t('
|
|
58
|
+
{{ $t('aw.multi_block_builder.add', { title }) }}
|
|
54
59
|
</AwLink>
|
|
55
60
|
</slot>
|
|
56
61
|
</div>
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
<!-- `<button>Save</button>` -->
|
|
61
66
|
<div class="mt-8">
|
|
62
67
|
<AwButton :disabled="buttonDisabled" @click="collection.save()">
|
|
63
|
-
{{ $t('
|
|
68
|
+
{{ $t('aw.multi_block_builder.save') }}
|
|
64
69
|
</AwButton>
|
|
65
70
|
</div>
|
|
66
71
|
</slot>
|