@awes-io/ui 2.48.0 → 2.50.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/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 +21 -21
- package/components/3_organisms/AwBirthdayPicker.vue +2 -2
- package/components/3_organisms/AwBottomBar.vue +1 -1
- package/components/3_organisms/AwCalendar/AwCalendar.vue +6 -2
- package/components/3_organisms/AwCalendar/AwCalendarView.vue +12 -3
- package/components/3_organisms/AwCalendar/_AwCalendarDay.vue +18 -2
- package/components/3_organisms/AwCalendar/_AwCalendarDays.vue +11 -6
- 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/mixins/calendar.js +6 -0
- 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 -199
- package/lang/en.js +0 -223
- package/lang/ru.js +0 -204
- package/lang/uk.js +0 -200
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.50.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.49.1...@awes-io/ui@2.50.0) (2022-06-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* calendar day slots added ([b9b0897](https://github.com/awes-io/client/commit/b9b0897806fe2f86aa51bc1b472482fab017ce91))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* multiline translations updated ([3b072f8](https://github.com/awes-io/client/commit/3b072f84be4bfb4327cfa80d23531b80c73e1eda))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [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)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* translation system updated ([2827c0e](https://github.com/awes-io/client/commit/2827c0e6108523aa26e3f5af10478be23cace54f))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
# [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)
|
|
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,62 +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
61
|
<span v-if="model.address.region">
|
|
62
62
|
{{ model.address.region }}
|
|
63
63
|
</span>
|
|
64
64
|
<AwLink
|
|
65
65
|
v-else
|
|
66
|
-
:text="$t('
|
|
66
|
+
:text="$t('aw.address_block.add')"
|
|
67
67
|
@click="openModal('region')"
|
|
68
68
|
/>
|
|
69
69
|
</AwInfo>
|
|
70
70
|
|
|
71
|
-
<AwInfo :label="$t('
|
|
71
|
+
<AwInfo :label="$t('aw.address_block.postal_code')">
|
|
72
72
|
<span v-if="model.address.postal_code">
|
|
73
73
|
{{ model.address.postal_code }}
|
|
74
74
|
</span>
|
|
75
75
|
<AwLink
|
|
76
76
|
v-else
|
|
77
|
-
:text="$t('
|
|
77
|
+
:text="$t('aw.address_block.add')"
|
|
78
78
|
@click="openModal('postal_code')"
|
|
79
79
|
/>
|
|
80
80
|
</AwInfo>
|
|
81
81
|
|
|
82
|
-
<AwInfo :label="$t('
|
|
82
|
+
<AwInfo :label="$t('aw.address_block.country')">
|
|
83
83
|
<span>
|
|
84
84
|
{{ model.address.meta.google_country_name }}
|
|
85
85
|
</span>
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
:key="_uid"
|
|
119
119
|
:param="false"
|
|
120
120
|
:name="modalName"
|
|
121
|
-
:title="$t('
|
|
121
|
+
:title="$t('aw.address_block.modal.title')"
|
|
122
122
|
@opened="onModalOpen"
|
|
123
123
|
@closed="onModalClose"
|
|
124
124
|
>
|
|
@@ -126,42 +126,42 @@
|
|
|
126
126
|
<AwInput
|
|
127
127
|
ref="address_1"
|
|
128
128
|
v-model="address.address_1"
|
|
129
|
-
:label="$t('
|
|
129
|
+
:label="$t('aw.address_block.street')"
|
|
130
130
|
:error="model.errors['address.address_1']"
|
|
131
131
|
/>
|
|
132
132
|
|
|
133
133
|
<AwInput
|
|
134
134
|
ref="apt"
|
|
135
135
|
v-model="address.apt"
|
|
136
|
-
:label="$t('
|
|
136
|
+
:label="$t('aw.address_block.apt')"
|
|
137
137
|
:error="model.errors['address.apt']"
|
|
138
138
|
/>
|
|
139
139
|
|
|
140
140
|
<AwInput
|
|
141
141
|
ref="city"
|
|
142
142
|
v-model="address.city"
|
|
143
|
-
:label="$t('
|
|
143
|
+
:label="$t('aw.address_block.city')"
|
|
144
144
|
:error="model.errors['address.city']"
|
|
145
145
|
/>
|
|
146
146
|
|
|
147
147
|
<AwInput
|
|
148
148
|
ref="region"
|
|
149
149
|
v-model="address.region"
|
|
150
|
-
:label="$t('
|
|
150
|
+
:label="$t('aw.address_block.region')"
|
|
151
151
|
:error="model.errors['address.region']"
|
|
152
152
|
/>
|
|
153
153
|
|
|
154
154
|
<AwInput
|
|
155
155
|
ref="postal_code"
|
|
156
156
|
v-model="address.postal_code"
|
|
157
|
-
:label="$t('
|
|
157
|
+
:label="$t('aw.address_block.postal_code')"
|
|
158
158
|
:error="model.errors['address.postal_code']"
|
|
159
159
|
/>
|
|
160
160
|
|
|
161
161
|
<AwInput
|
|
162
162
|
ref="country"
|
|
163
163
|
:value="model.address.meta.google_country_name"
|
|
164
|
-
:label="$t('
|
|
164
|
+
:label="$t('aw.address_block.country')"
|
|
165
165
|
:error="model.errors['address.meta.google_country_name']"
|
|
166
166
|
disabled
|
|
167
167
|
/>
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
<template #buttons>
|
|
171
171
|
<div class="flex items-center border-t w-full p-4">
|
|
172
172
|
<AwButton
|
|
173
|
-
:text="$t('
|
|
173
|
+
:text="$t('aw.address_block.modal.save')"
|
|
174
174
|
style="margin-right: 1rem"
|
|
175
175
|
@click="saveAddress"
|
|
176
176
|
/>
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
@click="resetAddress"
|
|
182
182
|
>
|
|
183
183
|
<span class="text-dark-blue">
|
|
184
|
-
{{ $t('
|
|
184
|
+
{{ $t('aw.address_block.modal.cancel') }}
|
|
185
185
|
</span>
|
|
186
186
|
</AwButton>
|
|
187
187
|
</div>
|
|
@@ -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'
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
<AwCalendarWeekdays
|
|
24
24
|
:first-day="firstDay"
|
|
25
|
-
:weekday-names="$t('
|
|
25
|
+
:weekday-names="$t('aw.calendar.weekdays_short')"
|
|
26
26
|
/>
|
|
27
27
|
|
|
28
28
|
<AwCalendarDays
|
|
@@ -32,7 +32,11 @@
|
|
|
32
32
|
:day-class="_getDayClass"
|
|
33
33
|
:day-disabled="_isDisabled"
|
|
34
34
|
:show-today="showToday"
|
|
35
|
-
|
|
35
|
+
>
|
|
36
|
+
<template v-for="name in _proxiedDaySlots" #[name]="slotData">
|
|
37
|
+
<slot :name="name" v-bind="slotData"></slot>
|
|
38
|
+
</template>
|
|
39
|
+
</AwCalendarDays>
|
|
36
40
|
|
|
37
41
|
<slot name="footer" />
|
|
38
42
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="aw-calendar" @click="onClick">
|
|
3
3
|
<AwCalendarWeekdays
|
|
4
4
|
:first-day="firstDay"
|
|
5
|
-
:weekday-names="$t('
|
|
5
|
+
:weekday-names="$t('aw.calendar.weekdays_short')"
|
|
6
6
|
/>
|
|
7
7
|
|
|
8
8
|
<AwCalendarDays
|
|
@@ -11,7 +11,14 @@
|
|
|
11
11
|
:year="year"
|
|
12
12
|
:day-class="dayClass"
|
|
13
13
|
:day-disabled="dayDisabled"
|
|
14
|
-
|
|
14
|
+
>
|
|
15
|
+
<template
|
|
16
|
+
v-for="name in $options.PROXIED_DAY_SLOTS"
|
|
17
|
+
#[name]="slotData"
|
|
18
|
+
>
|
|
19
|
+
<slot :name="name" v-bind="slotData"></slot>
|
|
20
|
+
</template>
|
|
21
|
+
</AwCalendarDays>
|
|
15
22
|
</div>
|
|
16
23
|
</template>
|
|
17
24
|
|
|
@@ -21,7 +28,7 @@ import { AwCalendar as _config } from '@AwConfig'
|
|
|
21
28
|
import { CONFIG_VAR } from '@AwUtils/component'
|
|
22
29
|
import AwCalendarWeekdays from '@AwOrganisms/AwCalendar/_AwCalendarWeekdays.vue'
|
|
23
30
|
import AwCalendarDays from '@AwOrganisms/AwCalendar/_AwCalendarDays.vue'
|
|
24
|
-
import { getDateFromEvent } from '@AwMixins/calendar'
|
|
31
|
+
import { PROXIED_DAY_SLOTS, getDateFromEvent } from '@AwMixins/calendar'
|
|
25
32
|
|
|
26
33
|
export default {
|
|
27
34
|
name: '',
|
|
@@ -31,6 +38,8 @@ export default {
|
|
|
31
38
|
AwCalendarDays
|
|
32
39
|
},
|
|
33
40
|
|
|
41
|
+
PROXIED_DAY_SLOTS,
|
|
42
|
+
|
|
34
43
|
props: {
|
|
35
44
|
...AwCalendarDays.props,
|
|
36
45
|
|
|
@@ -7,7 +7,14 @@
|
|
|
7
7
|
tabindex="-1"
|
|
8
8
|
class="aw-calendar__day"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
10
|
+
<slot name="day" v-bind="props">
|
|
11
|
+
<slot v-if="props.isOutside" v-bind="props" name="day-outside">
|
|
12
|
+
<span> {{ props.day }} </span>
|
|
13
|
+
</slot>
|
|
14
|
+
<slot v-else v-bind="props" name="day-inside">
|
|
15
|
+
<span> {{ props.day }} </span>
|
|
16
|
+
</slot>
|
|
17
|
+
</slot>
|
|
11
18
|
</button>
|
|
12
19
|
</template>
|
|
13
20
|
|
|
@@ -24,7 +31,16 @@ export default {
|
|
|
24
31
|
timestamp: {
|
|
25
32
|
type: Number,
|
|
26
33
|
required: true
|
|
27
|
-
}
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
month: {
|
|
37
|
+
type: Number,
|
|
38
|
+
required: true
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
isOutside: Boolean,
|
|
42
|
+
|
|
43
|
+
isToday: Boolean
|
|
28
44
|
}
|
|
29
45
|
}
|
|
30
46
|
</script>
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
|
|
81
|
-
render(h, { props, parent }) {
|
|
81
|
+
render(h, { props, parent, scopedSlots }) {
|
|
82
82
|
const {
|
|
83
83
|
year,
|
|
84
84
|
month,
|
|
@@ -101,24 +101,29 @@ export default {
|
|
|
101
101
|
|
|
102
102
|
return dates.map((date) => {
|
|
103
103
|
const timestamp = date.setHours(0, 0, 0, 0)
|
|
104
|
+
const isOutside = date.getMonth() !== month
|
|
105
|
+
const isToday = showToday && timestamp === today
|
|
104
106
|
|
|
105
107
|
return h(AwCalendarDay, {
|
|
106
108
|
key: timestamp,
|
|
107
109
|
props: {
|
|
108
110
|
timestamp,
|
|
109
|
-
day: date.getDate()
|
|
111
|
+
day: date.getDate(),
|
|
112
|
+
month,
|
|
113
|
+
isOutside,
|
|
114
|
+
isToday
|
|
110
115
|
},
|
|
111
116
|
class: [
|
|
112
117
|
{
|
|
113
|
-
'aw-calendar__day_outside':
|
|
114
|
-
'aw-calendar__day_today':
|
|
115
|
-
showToday && timestamp === today
|
|
118
|
+
'aw-calendar__day_outside': isOutside,
|
|
119
|
+
'aw-calendar__day_today': isToday
|
|
116
120
|
},
|
|
117
121
|
dayClass(date)
|
|
118
122
|
],
|
|
119
123
|
attrs: {
|
|
120
124
|
disabled: dayDisabled(date)
|
|
121
|
-
}
|
|
125
|
+
},
|
|
126
|
+
scopedSlots
|
|
122
127
|
})
|
|
123
128
|
})
|
|
124
129
|
}
|
|
@@ -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" />
|