@awes-io/ui 2.59.1 → 2.60.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,28 @@
|
|
|
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.60.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.59.2...@awes-io/ui@2.60.0) (2022-12-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **aw-calendar:** allow to select single day range ([c787bf7](https://github.com/awes-io/client/commit/c787bf79d81f5c1738a069e46cb650a9002a0de8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.59.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.59.1...@awes-io/ui@2.59.2) (2022-11-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **aw-select-object:** mobile overflow fixed ([2a76f28](https://github.com/awes-io/client/commit/2a76f2870368fd10675aadba30104e9fae84ecd7))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [2.59.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.59.0...@awes-io/ui@2.59.1) (2022-10-20)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.aw-date {
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
|
-
&__dropdown {
|
|
4
|
+
&__dropdown .aw-dropdown__content--desktop {
|
|
5
5
|
max-height: unset;
|
|
6
6
|
max-width: 100%;
|
|
7
7
|
display: flex;
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
&__calendar {
|
|
12
12
|
max-width: theme('maxWidth.xs');
|
|
13
|
+
|
|
14
|
+
& + & {
|
|
15
|
+
@apply border-l;
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
&__range:before,
|
|
@@ -35,6 +39,10 @@
|
|
|
35
39
|
left: 50%;
|
|
36
40
|
}
|
|
37
41
|
|
|
42
|
+
&__range-start&__range-end:before {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
& i {
|
|
39
47
|
@apply not-italic;
|
|
40
48
|
}
|
|
@@ -62,6 +62,15 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
&__fake-input {
|
|
66
|
+
--icon-width: 2.5rem;
|
|
67
|
+
--icon-count: 0;
|
|
68
|
+
display: block;
|
|
69
|
+
height: calc(1em * theme('lineHeight.normal', 1.5));
|
|
70
|
+
min-width: 0;
|
|
71
|
+
max-width: calc(100% - calc(var(--icon-count) * var(--icon-width)));
|
|
72
|
+
}
|
|
73
|
+
|
|
65
74
|
/**
|
|
66
75
|
* Textarea styles
|
|
67
76
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="element"
|
|
4
|
-
class="flex aw-text-field is-text"
|
|
4
|
+
class="flex max-w-full aw-text-field is-text"
|
|
5
5
|
:class="{
|
|
6
6
|
'is-filled': value === 0 || !!value,
|
|
7
7
|
'has-label': !!label,
|
|
@@ -29,11 +29,12 @@
|
|
|
29
29
|
tabindex="0"
|
|
30
30
|
:class="paddingClass"
|
|
31
31
|
>
|
|
32
|
-
<span
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
<span
|
|
33
|
+
class="aw-text-field__fake-input truncate"
|
|
34
|
+
:class="{ 'opacity-50': !inputValue }"
|
|
35
|
+
:style="{ '--icon-count': iconCount }"
|
|
36
|
+
>
|
|
37
|
+
{{ inputValue || placeholder }}
|
|
37
38
|
</span>
|
|
38
39
|
</span>
|
|
39
40
|
<span
|
|
@@ -126,6 +127,10 @@ export default {
|
|
|
126
127
|
computed: {
|
|
127
128
|
paddingClass() {
|
|
128
129
|
return this.size === 'md' ? 'p-3' : 'p-2'
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
iconCount() {
|
|
133
|
+
return 0 + this.clearable + this.caret
|
|
129
134
|
}
|
|
130
135
|
}
|
|
131
136
|
}
|
package/mixins/calendar.js
CHANGED
|
@@ -341,12 +341,12 @@ export default {
|
|
|
341
341
|
// set first value in range
|
|
342
342
|
this.$emit('input', null)
|
|
343
343
|
this.tempValue = dayjs
|
|
344
|
-
this.hoverValue =
|
|
344
|
+
this.hoverValue = dayjs.clone()
|
|
345
345
|
this._toggleHoverListener(true)
|
|
346
346
|
return
|
|
347
347
|
} else {
|
|
348
348
|
// break if same day
|
|
349
|
-
if (dayjs.isSame(this.tempValue, 'day')) return
|
|
349
|
+
// if (dayjs.isSame(this.tempValue, 'day')) return
|
|
350
350
|
|
|
351
351
|
// emit event and close dropdown
|
|
352
352
|
const start = this._fromDayjs(this._startDayjs)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.60.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"cookies": "^0.8.0",
|
|
62
62
|
"core-js": "^2.6.5",
|
|
63
63
|
"croppie": "^2.6.5",
|
|
64
|
-
"dayjs": "^1.
|
|
64
|
+
"dayjs": "^1.11.6",
|
|
65
65
|
"hammerjs": "^2.0.8",
|
|
66
66
|
"insane": "^2.6.2",
|
|
67
67
|
"js-cookie": "^2.2.1",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"vue-template-compiler": "^2.6.10",
|
|
123
123
|
"webfonts-generator": "^0.4.0"
|
|
124
124
|
},
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "114c5a47467339824b67b1788302bb1e4d2eec37"
|
|
126
126
|
}
|