@gitlab/ui 38.4.0 → 38.6.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 +22 -0
- package/dist/components/base/datepicker/datepicker.js +2 -2
- package/dist/components/base/filtered_search/filtered_search.js +9 -6
- package/dist/components/base/search_box_by_click/search_box_by_click.js +1 -0
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/datepicker/datepicker.spec.js +14 -0
- package/src/components/base/datepicker/datepicker.stories.js +1 -1
- package/src/components/base/datepicker/datepicker.vue +2 -2
- package/src/components/base/dropdown/dropdown.stories.js +1 -1
- package/src/components/base/filtered_search/filtered_search.spec.js +19 -0
- package/src/components/base/filtered_search/filtered_search.vue +9 -6
- package/src/components/base/search_box_by_click/search_box_by_click.spec.js +8 -0
- package/src/components/base/search_box_by_click/search_box_by_click.vue +1 -0
- package/src/scss/utilities.scss +126 -104
- package/src/scss/utility-mixins/sizing.scss +6 -0
- package/src/scss/utility-mixins/text.scss +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# [38.6.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v38.5.1...v38.6.0) (2022-04-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **css:** Add md-max-w-26, md-white-space-nowrap ([bae43c3](https://gitlab.com/gitlab-org/gitlab-ui/commit/bae43c3d64612386b7fd38a8673062155bad4157))
|
|
7
|
+
|
|
8
|
+
## [38.5.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v38.5.0...v38.5.1) (2022-04-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlDatepicker:** fix prop name typo ([973a560](https://gitlab.com/gitlab-org/gitlab-ui/commit/973a56045daa15b7f0809911d34b587025214b76))
|
|
14
|
+
|
|
15
|
+
# [38.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v38.4.0...v38.5.0) (2022-04-05)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **GlFilteredSearch:** Allow to pass token dynamically ([7c85ea1](https://gitlab.com/gitlab-org/gitlab-ui/commit/7c85ea19c3ffb821fdb4f5f6409e4db816de304e))
|
|
21
|
+
* **GlFilteredSearch:** Allow to pass token dynamically ([38f67eb](https://gitlab.com/gitlab-org/gitlab-ui/commit/38f67eb3df2369f39e1323c1a5c90ab2f7b13847))
|
|
22
|
+
|
|
1
23
|
# [38.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v38.3.0...v38.4.0) (2022-04-04)
|
|
2
24
|
|
|
3
25
|
|
|
@@ -106,7 +106,7 @@ var script = {
|
|
|
106
106
|
required: false,
|
|
107
107
|
default: 0
|
|
108
108
|
},
|
|
109
|
-
|
|
109
|
+
ariaLabel: {
|
|
110
110
|
type: String,
|
|
111
111
|
required: false,
|
|
112
112
|
default: ''
|
|
@@ -265,7 +265,7 @@ var script = {
|
|
|
265
265
|
},
|
|
266
266
|
disableDayFn: this.disableDayFn,
|
|
267
267
|
firstDay: this.firstDay,
|
|
268
|
-
|
|
268
|
+
ariaLabel: this.ariaLabel,
|
|
269
269
|
toString: date => defaultDateFormatter(date),
|
|
270
270
|
onSelect: this.selected.bind(this),
|
|
271
271
|
onClose: this.closed.bind(this),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _isEqual from 'lodash/isEqual';
|
|
1
2
|
import _cloneDeep from 'lodash/cloneDeep';
|
|
2
3
|
import PortalVue from 'portal-vue';
|
|
3
4
|
import Vue from 'vue';
|
|
@@ -184,15 +185,17 @@ var script = {
|
|
|
184
185
|
|
|
185
186
|
deep: true,
|
|
186
187
|
immediate: true
|
|
187
|
-
}
|
|
188
|
-
|
|
188
|
+
},
|
|
189
|
+
value: {
|
|
190
|
+
handler(newValue, oldValue) {
|
|
191
|
+
if (newValue.length && !_isEqual(newValue, oldValue)) {
|
|
192
|
+
this.applyNewValue(_cloneDeep(newValue));
|
|
193
|
+
}
|
|
194
|
+
},
|
|
189
195
|
|
|
190
|
-
|
|
191
|
-
if (this.value.length) {
|
|
192
|
-
this.applyNewValue(_cloneDeep(this.value));
|
|
196
|
+
immediate: true
|
|
193
197
|
}
|
|
194
198
|
},
|
|
195
|
-
|
|
196
199
|
methods: {
|
|
197
200
|
applyNewValue(newValue) {
|
|
198
201
|
this.tokens = needDenormalization(newValue) ? denormalizeTokens(newValue) : newValue;
|