@gitlab/ui 134.1.3 → 134.2.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.
|
@@ -100,6 +100,22 @@ var script = {
|
|
|
100
100
|
*/
|
|
101
101
|
this.updateValueAsDate();
|
|
102
102
|
this.$emit('change', $event);
|
|
103
|
+
},
|
|
104
|
+
onKeydown($event) {
|
|
105
|
+
/**
|
|
106
|
+
* Emitted when a key is pressed inside the date input.
|
|
107
|
+
*
|
|
108
|
+
* @event keydown
|
|
109
|
+
*/
|
|
110
|
+
this.$emit('keydown', $event);
|
|
111
|
+
},
|
|
112
|
+
onBlur($event) {
|
|
113
|
+
/**
|
|
114
|
+
* Emitted when the date input loses focus.
|
|
115
|
+
*
|
|
116
|
+
* @event blur
|
|
117
|
+
*/
|
|
118
|
+
this.$emit('blur', $event);
|
|
103
119
|
}
|
|
104
120
|
}
|
|
105
121
|
};
|
|
@@ -108,7 +124,7 @@ var script = {
|
|
|
108
124
|
const __vue_script__ = script;
|
|
109
125
|
|
|
110
126
|
/* template */
|
|
111
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-form-date"},[_c('gl-form-input',_vm._b({ref:"input",attrs:{"id":_vm.inputId,"aria-describedby":_vm.ariaDescribedBy,"min":_vm.min,"max":_vm.max,"pattern":"\\d{4}-\\d{2}-\\d{2}","placeholder":"yyyy-mm-dd","state":_vm.state,"type":"date"},on:{"change":_vm.onChange},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v;},expression:"currentValue"}},'gl-form-input',_vm.$attrs,false)),_vm._v(" "),(_vm.outputValue)?_c('output',{ref:"output",staticClass:"gl-sr-only",attrs:{"id":_vm.outputId,"for":_vm.inputId}},[_vm._v("\n "+_vm._s(_vm.outputValue)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.isInvalid)?_c('div',{ref:"invalidFeedback",staticClass:"invalid-feedback",attrs:{"id":_vm.invalidFeedbackId}},[(_vm.isLessThanMin)?[_vm._v("\n "+_vm._s(_vm.minInvalidFeedback)+"\n ")]:_vm._e(),_vm._v(" "),(_vm.isGreaterThanMax)?[_vm._v("\n "+_vm._s(_vm.maxInvalidFeedback)+"\n ")]:_vm._e()],2):_vm._e()],1)};
|
|
127
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-form-date"},[_c('gl-form-input',_vm._b({ref:"input",attrs:{"id":_vm.inputId,"aria-describedby":_vm.ariaDescribedBy,"min":_vm.min,"max":_vm.max,"pattern":"\\d{4}-\\d{2}-\\d{2}","placeholder":"yyyy-mm-dd","state":_vm.state,"type":"date"},on:{"change":_vm.onChange,"keydown":_vm.onKeydown,"blur":_vm.onBlur},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v;},expression:"currentValue"}},'gl-form-input',_vm.$attrs,false)),_vm._v(" "),(_vm.outputValue)?_c('output',{ref:"output",staticClass:"gl-sr-only",attrs:{"id":_vm.outputId,"for":_vm.inputId}},[_vm._v("\n "+_vm._s(_vm.outputValue)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.isInvalid)?_c('div',{ref:"invalidFeedback",staticClass:"invalid-feedback",attrs:{"id":_vm.invalidFeedbackId}},[(_vm.isLessThanMin)?[_vm._v("\n "+_vm._s(_vm.minInvalidFeedback)+"\n ")]:_vm._e(),_vm._v(" "),(_vm.isGreaterThanMax)?[_vm._v("\n "+_vm._s(_vm.maxInvalidFeedback)+"\n ")]:_vm._e()],2):_vm._e()],1)};
|
|
112
128
|
var __vue_staticRenderFns__ = [];
|
|
113
129
|
|
|
114
130
|
/* style */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "134.
|
|
3
|
+
"version": "134.2.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"chokidar": "^4.0.3",
|
|
93
93
|
"sane": "^5.0.1",
|
|
94
94
|
"jackspeak": "2.3.6",
|
|
95
|
-
"postcss": "8.5.
|
|
95
|
+
"postcss": "8.5.15",
|
|
96
96
|
"json5": "2.2.3",
|
|
97
97
|
"rollup-plugin-vue/@vue/component-compiler/postcss-modules-sync/generic-names/loader-utils": "3.3.1"
|
|
98
98
|
},
|
|
@@ -146,17 +146,18 @@
|
|
|
146
146
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
147
147
|
"glob": "11.1.0",
|
|
148
148
|
"identity-obj-proxy": "^3.0.0",
|
|
149
|
-
"jest": "30.
|
|
150
|
-
"jest-circus": "30.
|
|
151
|
-
"jest-environment-jsdom": "30.
|
|
149
|
+
"jest": "30.4.2",
|
|
150
|
+
"jest-circus": "30.4.2",
|
|
151
|
+
"jest-environment-jsdom": "30.4.1",
|
|
152
|
+
"jest-environment-node": "30.4.1",
|
|
152
153
|
"jest-image-snapshot": "^6.5.2",
|
|
153
|
-
"merge-cobertura": "^1.0.
|
|
154
|
+
"merge-cobertura": "^1.0.9",
|
|
154
155
|
"mockdate": "^3.0.5",
|
|
155
156
|
"module-alias": "^2.3.4",
|
|
156
157
|
"pikaday": "^1.8.0",
|
|
157
158
|
"playwright": "^1.60.0",
|
|
158
159
|
"playwright-core": "^1.60.0",
|
|
159
|
-
"postcss": "8.5.
|
|
160
|
+
"postcss": "8.5.15",
|
|
160
161
|
"postcss-loader": "8.2.1",
|
|
161
162
|
"postcss-scss": "4.0.9",
|
|
162
163
|
"react": "18.3.1",
|
|
@@ -167,13 +168,13 @@
|
|
|
167
168
|
"rollup-plugin-string": "^3.0.0",
|
|
168
169
|
"rollup-plugin-svg": "^2.0.0",
|
|
169
170
|
"rollup-plugin-vue": "^5.1.9",
|
|
170
|
-
"sass": "^1.
|
|
171
|
+
"sass": "^1.100.0",
|
|
171
172
|
"sass-loader": "^10.5.2",
|
|
172
173
|
"sass-true": "^9",
|
|
173
174
|
"start-server-and-test": "^2.1.5",
|
|
174
175
|
"storybook": "^7.6.24",
|
|
175
176
|
"storybook-dark-mode": "4.0.2",
|
|
176
|
-
"style-dictionary": "^5.4.
|
|
177
|
+
"style-dictionary": "^5.4.1",
|
|
177
178
|
"style-loader": "^4",
|
|
178
179
|
"tailwindcss": "3.4.19",
|
|
179
180
|
"vue": "2.7.16",
|
|
@@ -101,6 +101,22 @@ export default {
|
|
|
101
101
|
this.updateValueAsDate();
|
|
102
102
|
this.$emit('change', $event);
|
|
103
103
|
},
|
|
104
|
+
onKeydown($event) {
|
|
105
|
+
/**
|
|
106
|
+
* Emitted when a key is pressed inside the date input.
|
|
107
|
+
*
|
|
108
|
+
* @event keydown
|
|
109
|
+
*/
|
|
110
|
+
this.$emit('keydown', $event);
|
|
111
|
+
},
|
|
112
|
+
onBlur($event) {
|
|
113
|
+
/**
|
|
114
|
+
* Emitted when the date input loses focus.
|
|
115
|
+
*
|
|
116
|
+
* @event blur
|
|
117
|
+
*/
|
|
118
|
+
this.$emit('blur', $event);
|
|
119
|
+
},
|
|
104
120
|
},
|
|
105
121
|
};
|
|
106
122
|
</script>
|
|
@@ -119,6 +135,8 @@ export default {
|
|
|
119
135
|
:state="state"
|
|
120
136
|
type="date"
|
|
121
137
|
@change="onChange"
|
|
138
|
+
@keydown="onKeydown"
|
|
139
|
+
@blur="onBlur"
|
|
122
140
|
/>
|
|
123
141
|
<output v-if="outputValue" :id="outputId" ref="output" :for="inputId" class="gl-sr-only">
|
|
124
142
|
{{ outputValue }}
|