@awes-io/ui 2.102.2 → 2.103.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 CHANGED
@@ -3,6 +3,24 @@
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.103.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.102.2...@awes-io/ui@2.103.0) (2024-05-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **aw-cropper:** refresh cropper after modal opened ([6621aab](https://github.com/awes-io/client/commit/6621aab2525a40c8b7e976aa06947033bedabdd8))
12
+ * fix component logic and style ([34acd24](https://github.com/awes-io/client/commit/34acd2404529a5a6fe63e342438996c8877cf080))
13
+ * fix padding bottom in page content ([c975edd](https://github.com/awes-io/client/commit/c975edd37d199ad546ab254714f115405d88e1af))
14
+
15
+
16
+ ### Features
17
+
18
+ * change padding for content modal with buttons ([b0220f6](https://github.com/awes-io/client/commit/b0220f6f4d6a86f17dfa846d5db761c9c890c9bc))
19
+
20
+
21
+
22
+
23
+
6
24
  ## [2.102.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.102.1...@awes-io/ui@2.102.2) (2024-04-26)
7
25
 
8
26
 
@@ -58,7 +58,7 @@ $modal-aside-width-large: 75vw;
58
58
  }
59
59
 
60
60
  &__content--buttons {
61
- padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem);
61
+ padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 11.5rem);
62
62
  }
63
63
 
64
64
  &__close {
@@ -18,7 +18,7 @@
18
18
 
19
19
  &__content {
20
20
  padding-top: calc(1.5rem - var(--header-padding-bottom));
21
- padding-bottom: calc(5rem + var(--page-buttons-bottom, 0px));
21
+ padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px) + var(--page-buttons-bottom, 0px));
22
22
  flex-grow: 1;
23
23
  }
24
24
 
@@ -53,7 +53,7 @@
53
53
  &__back {
54
54
  margin-right: 1rem;
55
55
  }
56
-
56
+
57
57
  &__mobile-title,
58
58
  &__top-scroll-mark {
59
59
  display: none;
@@ -354,9 +354,9 @@ export default {
354
354
  // check range
355
355
  switch (key) {
356
356
  case 'day':
357
- return numVal > 1 && numVal <= this.maxDay
357
+ return numVal >= 1 && numVal <= this.maxDay
358
358
  case 'month':
359
- return numVal > 1 && numVal <= 12
359
+ return numVal >= 1 && numVal <= 12
360
360
  case 'year':
361
361
  return true
362
362
  default:
@@ -120,6 +120,10 @@ export default {
120
120
  setTimeout(() => this.croppie.setZoom(0), 60)
121
121
  },
122
122
 
123
+ refresh() {
124
+ this.croppie.bind(this.$refs.image.src)
125
+ },
126
+
123
127
  rotate() {
124
128
  this.croppie.rotate(-90)
125
129
  },
@@ -65,9 +65,11 @@
65
65
  ref="cropModal"
66
66
  :param="null"
67
67
  :title="$t('Edit photo')"
68
+ @opened="$refs.cropper.refresh()"
68
69
  @before-close="clearUploadedFileOrBlock"
69
70
  >
70
71
  <AwCropper
72
+ ref="cropper"
71
73
  :src="file"
72
74
  :save-width="600"
73
75
  :save-height="600"
@@ -148,11 +148,13 @@
148
148
  :param="null"
149
149
  :title="$t('Upload avatar')"
150
150
  theme="fullscreen"
151
+ @opened="$refs.cropper.refresh()"
151
152
  >
152
153
  <AwCropper
154
+ ref="cropper"
153
155
  :src="uploadedAvatar"
154
- @save="saveAvatar"
155
156
  :square="squareAvatar"
157
+ @save="saveAvatar"
156
158
  />
157
159
  </AwModal>
158
160
  </template>
@@ -313,14 +313,7 @@ export default {
313
313
 
314
314
  pos = Math.min(pos, max)
315
315
 
316
- while (
317
- newValue[pos - 1] !== digit &&
318
- pos < firstDashIndex
319
- ) {
320
- pos++
321
- }
322
-
323
- while (isTyping && newValue[pos - 1] === ' ' && pos < max) {
316
+ while (newValue[pos - 1] !== digit && pos < max) {
324
317
  pos++
325
318
  }
326
319
 
@@ -52,10 +52,6 @@
52
52
  auto-width
53
53
  v-on="listeners"
54
54
  >
55
- <template #icon="{ icon }">
56
- <AwIcon :name="icon" />
57
- </template>
58
-
59
55
  <template #default="{ text }">
60
56
  <span
61
57
  v-if="text"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.102.2",
3
+ "version": "2.103.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "055debcc1ed85c41b6b535f4e298db9eefe117ff"
117
+ "gitHead": "f53b33277dcf6e194c034d7544b7c46c2cba58de"
118
118
  }