@awes-io/ui 2.47.2 → 2.49.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/assets/css/components/button-fixed.css +3 -3
  3. package/assets/css/components/dropdown.css +10 -2
  4. package/components/1_atoms/AwDropdown.vue +8 -1
  5. package/components/2_molecules/AwButton.vue +1 -1
  6. package/components/2_molecules/AwIsland/AwIslandBuilder.vue +1 -1
  7. package/components/2_molecules/AwSelect.vue +2 -2
  8. package/components/2_molecules/AwSelectObject.vue +2 -2
  9. package/components/3_organisms/AwAddressBlock.vue +60 -20
  10. package/components/3_organisms/AwBirthdayPicker.vue +2 -2
  11. package/components/3_organisms/AwBottomBar.vue +1 -1
  12. package/components/3_organisms/AwCalendar/AwCalendar.vue +1 -1
  13. package/components/3_organisms/AwCalendar/AwCalendarView.vue +1 -1
  14. package/components/3_organisms/AwCalendar/_AwCalendarNav.vue +3 -3
  15. package/components/3_organisms/AwCalendar/_AwCalendarWeekdays.vue +1 -2
  16. package/components/3_organisms/AwCodeSnippet.vue +1 -1
  17. package/components/3_organisms/AwCropper.vue +2 -2
  18. package/components/3_organisms/AwDate.vue +1 -1
  19. package/components/3_organisms/AwDisplayDate.vue +1 -1
  20. package/components/3_organisms/AwDownloadLink.vue +2 -2
  21. package/components/3_organisms/AwFetchData.vue +1 -1
  22. package/components/3_organisms/AwIslandAvatar.vue +4 -4
  23. package/components/3_organisms/AwModal.vue +2 -2
  24. package/components/3_organisms/AwModelEdit.vue +6 -6
  25. package/components/3_organisms/AwMultiBlockBuilder.vue +3 -3
  26. package/components/3_organisms/AwPagination.vue +2 -2
  27. package/components/3_organisms/AwSearch.vue +2 -2
  28. package/components/3_organisms/AwTable/AwTableBuilder.vue +3 -3
  29. package/components/3_organisms/AwTel.vue +2 -4
  30. package/components/3_organisms/AwUploader.vue +4 -4
  31. package/components/3_organisms/AwUploaderFiles.vue +2 -2
  32. package/components/4_pages/AwPage.vue +3 -3
  33. package/components/4_pages/AwPageModal.vue +2 -2
  34. package/components/4_pages/_AwButtonFixed.vue +3 -3
  35. package/components/5_layouts/AwLayoutCenter.vue +1 -1
  36. package/components/5_layouts/AwLayoutError.vue +2 -2
  37. package/components/5_layouts/_AwLayoutLogo.vue +1 -1
  38. package/components/5_layouts/_AwMobileMenu.vue +8 -8
  39. package/components/5_layouts/_AwOfflineNotify.vue +2 -2
  40. package/components/5_layouts/_AwUserMenu.vue +3 -3
  41. package/components/_config.js +16 -1
  42. package/nuxt/awes.config.js +2 -0
  43. package/nuxt/index.js +0 -22
  44. package/nuxt/templates/lang.plugin.js +90 -7
  45. package/package.json +2 -3
  46. package/lang/de.js +0 -198
  47. package/lang/en.js +0 -222
  48. package/lang/ru.js +0 -203
  49. 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.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.48.0...@awes-io/ui@2.49.0) (2022-05-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * translation system updated ([2827c0e](https://github.com/awes-io/client/commit/2827c0e6108523aa26e3f5af10478be23cace54f))
12
+
13
+
14
+
15
+
16
+
17
+ # [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)
18
+
19
+
20
+ ### Features
21
+
22
+ * **aw-address-block:** region added ([018a113](https://github.com/awes-io/client/commit/018a113f7bd397df33042e87619e5e9b7f0f08df))
23
+
24
+
25
+
26
+
27
+
28
+ ## [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)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * close dropdown on overlay click on mobile ([aef2d98](https://github.com/awes-io/client/commit/aef2d982e1f1824ea8a1ac43037ccc56d457767b))
34
+
35
+
36
+
37
+
38
+
6
39
  ## [2.47.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.47.1...@awes-io/ui@2.47.2) (2022-04-06)
7
40
 
8
41
 
@@ -20,7 +20,7 @@
20
20
  &__text {
21
21
  flex-shrink: 1;
22
22
  max-width: 1px;
23
- margin-right: -1px;
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-right: 0.75em;
31
+ margin-left: 0.75em;
32
32
  opacity: 1;
33
33
  transition-timing-function: ease-out;
34
- transition-duration: 240ms;
34
+ transition-duration: 210ms;
35
35
  }
36
36
  }
37
37
 
@@ -12,9 +12,7 @@
12
12
  }
13
13
 
14
14
  &--mobile {
15
- @apply bg-overlay;
16
15
  padding: theme('spacing.2', 0.5rem);
17
- backdrop-filter: blur(10px);
18
16
 
19
17
  display: flex;
20
18
  flex-direction: column;
@@ -31,6 +29,14 @@
31
29
  } */
32
30
  }
33
31
 
32
+ &__overlay {
33
+ @apply bg-overlay;
34
+ backdrop-filter: blur(10px);
35
+
36
+ position: absolute;
37
+ inset: 0;
38
+ }
39
+
34
40
  &__title {
35
41
  text-align: center;
36
42
  font-weight: bold;
@@ -54,6 +60,7 @@
54
60
  /* max-height: 60%; */
55
61
  flex-shrink: 1;
56
62
  overflow: auto;
63
+ position: relative;
57
64
  }
58
65
 
59
66
  &__close {
@@ -62,6 +69,7 @@
62
69
  padding-top: theme('spacing.1', 0.25rem);
63
70
  padding-bottom: theme('spacing.1', 0.25rem);
64
71
  flex-shrink: 0;
72
+ position: relative;
65
73
 
66
74
  &.aw-button.theme-ghost.color-surface {
67
75
  color: var(--c-on-overlay);
@@ -32,6 +32,13 @@
32
32
  </p>
33
33
  </slot>
34
34
 
35
+ <!-- overlay -->
36
+ <div
37
+ v-if="isMobile"
38
+ class="aw-dropdown__overlay"
39
+ @click="close"
40
+ ></div>
41
+
35
42
  <!-- content -->
36
43
  <div
37
44
  ref="mobileScroller"
@@ -48,7 +55,7 @@
48
55
  <slot v-if="isMobile" name="close">
49
56
  <AwButton
50
57
  theme="ghost"
51
- :text="$t('AwDropdown.close')"
58
+ :text="$t('aw.dropdown.close')"
52
59
  color="surface"
53
60
  size="lg"
54
61
  class="aw-dropdown__close"
@@ -168,7 +168,7 @@ export default {
168
168
  // loadingText() {
169
169
  // return (
170
170
  // (isType('String', this.loading) && this.loading) ||
171
- // this.$t('AwButton.loading')
171
+ // this.$t('aw.button.loading')
172
172
  // )
173
173
  // },
174
174
 
@@ -16,7 +16,7 @@ export default {
16
16
  confirmText: {
17
17
  type: String,
18
18
  default() {
19
- return this.$t('AwIslandBuilder.cancel_all_changes')
19
+ return this.$t('aw.island_builder.cancel_all_changes')
20
20
  }
21
21
  }
22
22
  },
@@ -235,7 +235,7 @@
235
235
  data-arrow-focus
236
236
  >
237
237
  <slot name="not-found" :searchPhrase="searchPhrase">
238
- {{ $t('AwSelect.notFound') }}
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('AwSelect.newOne')
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('AwSelect.empty') }}
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('AwSelect.loading') }}
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('AwAddressBlock.address')"
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('AwAddressBlock.street')">
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('AwAddressBlock.add')"
33
+ :text="$t('aw.address_block.add')"
34
34
  @click="openModal('address_1')"
35
35
  />
36
36
  </AwInfo>
37
37
 
38
- <AwInfo :label="$t('AwAddressBlock.apt')">
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('AwAddressBlock.add')"
44
+ :text="$t('aw.address_block.add')"
45
45
  @click="openModal('apt')"
46
46
  />
47
47
  </AwInfo>
48
48
 
49
- <AwInfo :label="$t('AwAddressBlock.city')">
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('AwAddressBlock.add')"
55
+ :text="$t('aw.address_block.add')"
56
56
  @click="openModal('city')"
57
57
  />
58
58
  </AwInfo>
59
59
 
60
- <AwInfo :label="$t('AwAddressBlock.postal_code')">
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('AwAddressBlock.add')"
77
+ :text="$t('aw.address_block.add')"
67
78
  @click="openModal('postal_code')"
68
79
  />
69
80
  </AwInfo>
70
81
 
71
- <AwInfo :label="$t('AwAddressBlock.country')">
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('AwAddressBlock.modal.title')"
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('AwAddressBlock.street')"
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('AwAddressBlock.apt')"
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('AwAddressBlock.city')"
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('AwAddressBlock.postal_code')"
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="postal_code"
162
+ ref="country"
145
163
  :value="model.address.meta.google_country_name"
146
- :label="$t('AwAddressBlock.country')"
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('AwAddressBlock.modal.save')"
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('AwAddressBlock.modal.cancel') }}
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.city = obj.locality
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('AwBirthdayPicker.birthday')
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('AwBirthdayPicker.' + key),
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'
@@ -12,7 +12,7 @@
12
12
 
13
13
  <slot name="bottom-bar-toggler">
14
14
  <AwMenuItemIcon
15
- :text="$t('AwBottomBar.menu')"
15
+ :text="$t('aw.bottom_bar.menu')"
16
16
  icon="menu"
17
17
  @click="$store.commit('awesIo/TOGGLE_MOBILE_MENU')"
18
18
  >
@@ -22,7 +22,7 @@
22
22
 
23
23
  <AwCalendarWeekdays
24
24
  :first-day="firstDay"
25
- :weekday-names="$t('AwCalendar.weekdaysShort')"
25
+ :weekday-names="$t('aw.calendar.weekdays_short')"
26
26
  />
27
27
 
28
28
  <AwCalendarDays
@@ -2,7 +2,7 @@
2
2
  <div class="aw-calendar" @click="onClick">
3
3
  <AwCalendarWeekdays
4
4
  :first-day="firstDay"
5
- :weekday-names="$t('AwCalendar.weekdaysShort')"
5
+ :weekday-names="$t('aw.calendar.weekdays_short')"
6
6
  />
7
7
 
8
8
  <AwCalendarDays
@@ -35,7 +35,7 @@
35
35
  </template>
36
36
 
37
37
  <script>
38
- import { AwCalendar as lang } from '../../../lang/en'
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('AwCalendar.months')
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 : lang.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
- : lang.weekdaysShort
36
+ : _config.weekdaysShort
38
37
 
39
38
  const sortedNames = namesArray
40
39
  .slice(firstDay)
@@ -52,7 +52,7 @@ export default {
52
52
  click: () => copyFn(props.code)
53
53
  }
54
54
  },
55
- [parent.$t('AwCodeSnippet.copy')]
55
+ [parent.$t('aw.code_snippet.copy')]
56
56
  ),
57
57
  h(
58
58
  'pre',
@@ -12,7 +12,7 @@
12
12
  class="aw-cropper__rotate"
13
13
  content-class="px-2"
14
14
  theme="icon"
15
- :text="$t('AwCropper.rotate')"
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('AwCropper.save')" @click="save" />
35
+ <AwButton :text="$t('aw.cropper.save')" @click="save" />
36
36
  </slot>
37
37
  </div>
38
38
  </template>
@@ -52,7 +52,7 @@
52
52
  />
53
53
  <AwCalendarWeekdays
54
54
  :first-day="firstDay"
55
- :weekday-names="$t('AwCalendar.weekdaysShort')"
55
+ :weekday-names="$t('aw.calendar.weekdays_short')"
56
56
  />
57
57
  <AwCalendarDays
58
58
  :first-day="firstDay"
@@ -60,7 +60,7 @@ export default {
60
60
  }
61
61
 
62
62
  return age
63
- ? `${str} (${age} ${this.$t('AwBirthdayDate.years')})`
63
+ ? `${str} (${age} ${this.$t('aw.birthday_date.years')})`
64
64
  : str
65
65
  }
66
66
  }
@@ -109,7 +109,7 @@ export default {
109
109
  type: String,
110
110
  /* Translatable word "Download" */
111
111
  default() {
112
- return this.$t('AwDownloadLink.download')
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('AwDownloadLink.download')
122
+ return this.$t('aw.download_link.download')
123
123
  }
124
124
  },
125
125
  /**
@@ -18,7 +18,7 @@
18
18
  slot="left"
19
19
  class="h-5 w-5"
20
20
  />
21
- {{ $t('AwTableBuilder.loading') }}
21
+ {{ $t('aw.table_builder.loading') }}
22
22
  </AwChip>
23
23
  </slot>
24
24
  </div>
@@ -58,7 +58,7 @@
58
58
 
59
59
  <AwDropdownButton
60
60
  v-if="zoomable && src"
61
- :text="$t('AwPageUser.zoom')"
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('AwPageUser.upload') }}
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('AwPageUser.remove')"
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('AwPageUser.modalTitle')"
147
+ :title="$t('aw.page_user.modal_title')"
148
148
  theme="fullscreen"
149
149
  >
150
150
  <AwCropper :src="uploadedAvatar" @save="saveAvatar" />
@@ -29,8 +29,8 @@
29
29
 
30
30
  <AwButton
31
31
  :class="elClasses.close"
32
- :title="$t('AwModal.close')"
33
- :aria-label="$t('AwModal.close')"
32
+ :title="$t('aw.modal.close')"
33
+ :aria-label="$t('aw.modal.close')"
34
34
  @click.prevent="close()"
35
35
  theme="ghost"
36
36
  color="default"
@@ -73,7 +73,7 @@ export default {
73
73
  saveText: {
74
74
  type: String,
75
75
  default() {
76
- return this.$t('AwModelEdit.save')
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('AwModelEdit.cancel')
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('AwModelEdit.success')
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('AwModelEdit.error'),
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('AwModelEdit.cancel_all_changes'))
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('AwModelEdit.cancel_all_changes')
290
+ $event.returnValue = this.$t('aw.model_edit.cancel_all_changes')
291
291
  }
292
292
  }
293
293
  }