@gitlab/ui 137.2.2 → 137.2.3
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/README.md
CHANGED
|
@@ -132,7 +132,7 @@ To publish new versions of GitLab UI, see [publishing packages](../../doc/publis
|
|
|
132
132
|
|
|
133
133
|
## Contributing guide
|
|
134
134
|
|
|
135
|
-
Please review the [design system contribution process](https://design.gitlab.com/
|
|
135
|
+
Please review the [design system contribution process](https://design.gitlab.com/contribute/contributing)
|
|
136
136
|
for an overview of how to contribute to Pajamas.
|
|
137
137
|
|
|
138
138
|
For GitLab UI–specific details, refer to [Contributing to GitLab UI](CONTRIBUTING.md) for
|
|
@@ -304,21 +304,25 @@ var script = {
|
|
|
304
304
|
},
|
|
305
305
|
watch: {
|
|
306
306
|
value(val) {
|
|
307
|
-
if (!areDatesEqual(val, this.calendar.getDate())) {
|
|
307
|
+
if (this.calendar && !areDatesEqual(val, this.calendar.getDate())) {
|
|
308
308
|
this.calendar.setDate(val, true);
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
minDate(minDate) {
|
|
312
|
-
|
|
312
|
+
var _this$calendar;
|
|
313
|
+
(_this$calendar = this.calendar) === null || _this$calendar === void 0 ? void 0 : _this$calendar.setMinDate(minDate);
|
|
313
314
|
},
|
|
314
315
|
maxDate(maxDate) {
|
|
315
|
-
|
|
316
|
+
var _this$calendar2;
|
|
317
|
+
(_this$calendar2 = this.calendar) === null || _this$calendar2 === void 0 ? void 0 : _this$calendar2.setMaxDate(maxDate);
|
|
316
318
|
},
|
|
317
319
|
startRange(startRange) {
|
|
318
|
-
|
|
320
|
+
var _this$calendar3;
|
|
321
|
+
(_this$calendar3 = this.calendar) === null || _this$calendar3 === void 0 ? void 0 : _this$calendar3.setStartRange(startRange);
|
|
319
322
|
},
|
|
320
323
|
endRange(endRange) {
|
|
321
|
-
|
|
324
|
+
var _this$calendar4;
|
|
325
|
+
(_this$calendar4 = this.calendar) === null || _this$calendar4 === void 0 ? void 0 : _this$calendar4.setEndRange(endRange);
|
|
322
326
|
}
|
|
323
327
|
},
|
|
324
328
|
mounted() {
|
|
@@ -380,7 +384,9 @@ var script = {
|
|
|
380
384
|
}
|
|
381
385
|
},
|
|
382
386
|
beforeDestroy() {
|
|
383
|
-
|
|
387
|
+
var _this$calendar5;
|
|
388
|
+
// Vue 3 can unmount a component before `mounted` ran, so `calendar` may not exist yet.
|
|
389
|
+
(_this$calendar5 = this.calendar) === null || _this$calendar5 === void 0 ? void 0 : _this$calendar5.destroy();
|
|
384
390
|
},
|
|
385
391
|
methods: {
|
|
386
392
|
// is used to open datepicker programmatically
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "137.2.
|
|
3
|
+
"version": "137.2.3",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@storybook/vue-webpack5": "^7.6.24",
|
|
127
127
|
"@storybook/vue3": "^7.6.24",
|
|
128
128
|
"@storybook/vue3-webpack5": "^7.6.24",
|
|
129
|
-
"@types/jest-image-snapshot": "^6.4.
|
|
129
|
+
"@types/jest-image-snapshot": "^6.4.2",
|
|
130
130
|
"@vue/compat": "3.5.32",
|
|
131
131
|
"@vue/compiler-sfc": "3.5.32",
|
|
132
132
|
"@vue/server-renderer": "3.5.32",
|
|
@@ -137,11 +137,11 @@
|
|
|
137
137
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
138
138
|
"acorn": "^8.18.0",
|
|
139
139
|
"acorn-walk": "^8.3.5",
|
|
140
|
-
"autoprefixer": "10.
|
|
140
|
+
"autoprefixer": "10.6.0",
|
|
141
141
|
"axe-playwright": "^2.2.2",
|
|
142
142
|
"babel-loader": "^9.2.1",
|
|
143
143
|
"cypress": "15.21.1",
|
|
144
|
-
"cypress-real-events": "^1.15.
|
|
144
|
+
"cypress-real-events": "^1.15.1",
|
|
145
145
|
"dompurify": "^3.1.2",
|
|
146
146
|
"emoji-regex": "^10.6.0",
|
|
147
147
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"rollup-plugin-string": "^3.0.0",
|
|
170
170
|
"rollup-plugin-svg": "^2.0.0",
|
|
171
171
|
"rollup-plugin-vue": "^5.1.9",
|
|
172
|
-
"sass": "^1.104.
|
|
172
|
+
"sass": "^1.104.1",
|
|
173
173
|
"sass-loader": "^10.5.2",
|
|
174
174
|
"sass-true": "^9",
|
|
175
175
|
"start-server-and-test": "^2.1.5",
|
|
@@ -313,21 +313,21 @@ export default {
|
|
|
313
313
|
},
|
|
314
314
|
watch: {
|
|
315
315
|
value(val) {
|
|
316
|
-
if (!areDatesEqual(val, this.calendar.getDate())) {
|
|
316
|
+
if (this.calendar && !areDatesEqual(val, this.calendar.getDate())) {
|
|
317
317
|
this.calendar.setDate(val, true);
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
320
|
minDate(minDate) {
|
|
321
|
-
this.calendar
|
|
321
|
+
this.calendar?.setMinDate(minDate);
|
|
322
322
|
},
|
|
323
323
|
maxDate(maxDate) {
|
|
324
|
-
this.calendar
|
|
324
|
+
this.calendar?.setMaxDate(maxDate);
|
|
325
325
|
},
|
|
326
326
|
startRange(startRange) {
|
|
327
|
-
this.calendar
|
|
327
|
+
this.calendar?.setStartRange(startRange);
|
|
328
328
|
},
|
|
329
329
|
endRange(endRange) {
|
|
330
|
-
this.calendar
|
|
330
|
+
this.calendar?.setEndRange(endRange);
|
|
331
331
|
},
|
|
332
332
|
},
|
|
333
333
|
mounted() {
|
|
@@ -396,7 +396,8 @@ export default {
|
|
|
396
396
|
}
|
|
397
397
|
},
|
|
398
398
|
beforeDestroy() {
|
|
399
|
-
|
|
399
|
+
// Vue 3 can unmount a component before `mounted` ran, so `calendar` may not exist yet.
|
|
400
|
+
this.calendar?.destroy();
|
|
400
401
|
},
|
|
401
402
|
methods: {
|
|
402
403
|
// is used to open datepicker programmatically
|