@gitlab/ui 125.0.0 → 126.0.1
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/dist/components/base/form/form_fields/form_fields.js +26 -9
- package/dist/components/base/form/form_select/form_select.js +1 -9
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +193 -1
- package/dist/tokens/build/js/tokens.js +193 -1
- package/package.json +3 -8
- package/src/components/base/form/form_fields/form_fields.vue +29 -9
- package/src/components/base/form/form_select/form_select.vue +1 -15
- package/src/tokens/build/css/tokens.css +192 -0
- package/src/tokens/build/css/tokens.dark.css +192 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +59 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +59 -0
- package/src/tokens/build/figma/constants.tokens.json +180 -0
- package/src/tokens/build/figma/semantic.tokens.json +209 -0
- package/src/tokens/build/js/tokens.dark.js +198 -0
- package/src/tokens/build/js/tokens.js +198 -0
- package/src/tokens/build/json/tokens.dark.json +1117 -0
- package/src/tokens/build/json/tokens.json +1117 -0
- package/src/tokens/build/scss/_tokens.dark.scss +192 -0
- package/src/tokens/build/scss/_tokens.scss +192 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +192 -0
- package/src/tokens/build/tailwind/components.cjs +253 -0
- package/src/tokens/build/tailwind/tokens.cjs +2 -0
- package/src/tokens/constant/heading.tokens.json +182 -0
- package/src/tokens/semantic/font.tokens.json +11 -0
- package/src/tokens/semantic/heading.tokens.json +178 -0
- package/src/tokens/semantic/letter_spacing.tokens.json +13 -0
- package/src/tokens/semantic/line_height.tokens.json +13 -0
- package/tailwind.defaults.js +2 -253
- package/bin/migrate_custom_utils_to_tw.bundled.mjs +0 -205443
- package/dist/tokens/css/tokens.css +0 -1156
- package/dist/tokens/css/tokens.dark.css +0 -1156
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +0 -42846
- package/dist/tokens/docs/tokens-tailwind-docs.json +0 -42846
- package/dist/tokens/figma/constants.tokens.json +0 -2756
- package/dist/tokens/figma/contextual.tokens.json +0 -5929
- package/dist/tokens/figma/deprecated.tokens.json +0 -2899
- package/dist/tokens/figma/semantic.tokens.json +0 -2479
- package/dist/tokens/js/tokens.dark.js +0 -1286
- package/dist/tokens/js/tokens.js +0 -1275
- package/dist/tokens/json/tokens.dark.json +0 -36934
- package/dist/tokens/json/tokens.json +0 -36934
- package/dist/tokens/scss/_tokens.dark.scss +0 -1153
- package/dist/tokens/scss/_tokens.scss +0 -1153
- package/dist/tokens/scss/_tokens_custom_properties.scss +0 -1154
- package/dist/tokens/tailwind/tokens.cjs +0 -558
|
@@ -144,6 +144,10 @@ var script = {
|
|
|
144
144
|
this.$emit('input', this.fieldValues);
|
|
145
145
|
(_this$formElement = this.formElement) === null || _this$formElement === void 0 ? void 0 : _this$formElement.addEventListener('submit', this.onFormSubmission);
|
|
146
146
|
},
|
|
147
|
+
created() {
|
|
148
|
+
this.batchedInputEvent = {};
|
|
149
|
+
this.isBatchedInputEventScheduled = false;
|
|
150
|
+
},
|
|
147
151
|
destroyed() {
|
|
148
152
|
var _this$formElement2;
|
|
149
153
|
(_this$formElement2 = this.formElement) === null || _this$formElement2 === void 0 ? void 0 : _this$formElement2.removeEventListener('submit', this.onFormSubmission);
|
|
@@ -192,17 +196,9 @@ var script = {
|
|
|
192
196
|
this.setFieldDirty(fieldName);
|
|
193
197
|
}
|
|
194
198
|
},
|
|
195
|
-
onFieldInput(fieldName, inputValue) {
|
|
199
|
+
async onFieldInput(fieldName, inputValue) {
|
|
196
200
|
const val = this.getMappedValue(fieldName, inputValue);
|
|
197
201
|
|
|
198
|
-
/**
|
|
199
|
-
* Emitted when any of the form values change. Used by `v-model`.
|
|
200
|
-
*/
|
|
201
|
-
this.$emit('input', {
|
|
202
|
-
...this.values,
|
|
203
|
-
[fieldName]: val
|
|
204
|
-
});
|
|
205
|
-
|
|
206
202
|
/**
|
|
207
203
|
* Emitted when a form input emits the `input` event.
|
|
208
204
|
*/
|
|
@@ -210,6 +206,27 @@ var script = {
|
|
|
210
206
|
name: fieldName,
|
|
211
207
|
value: val
|
|
212
208
|
});
|
|
209
|
+
this.batchedInputEvent = {
|
|
210
|
+
...this.batchedInputEvent,
|
|
211
|
+
[fieldName]: val
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
// Return if a batched input event has already been scheduled
|
|
215
|
+
if (this.isBatchedInputEventScheduled) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
this.isBatchedInputEventScheduled = true;
|
|
219
|
+
await this.$nextTick();
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Emitted when any of the form values change. Used by `v-model`.
|
|
223
|
+
*/
|
|
224
|
+
this.$emit('input', {
|
|
225
|
+
...this.values,
|
|
226
|
+
...this.batchedInputEvent
|
|
227
|
+
});
|
|
228
|
+
this.batchedInputEvent = {};
|
|
229
|
+
this.isBatchedInputEventScheduled = false;
|
|
213
230
|
},
|
|
214
231
|
async onFormSubmission(e) {
|
|
215
232
|
e.preventDefault();
|
|
@@ -29,14 +29,6 @@ var script = {
|
|
|
29
29
|
type: [String, Object, Array],
|
|
30
30
|
required: false,
|
|
31
31
|
default: ''
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* Number of visible options in the select dropdown. When greater than 1, displays as a scrollable list box.
|
|
35
|
-
*/
|
|
36
|
-
selectSize: {
|
|
37
|
-
type: Number,
|
|
38
|
-
required: false,
|
|
39
|
-
default: 1
|
|
40
32
|
}
|
|
41
33
|
},
|
|
42
34
|
computed: {
|
|
@@ -69,7 +61,7 @@ var script = {
|
|
|
69
61
|
const __vue_script__ = script;
|
|
70
62
|
|
|
71
63
|
/* template */
|
|
72
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"gl-form-select-wrapper",class:_vm.cssClasses},[_c('b-form-select',_vm._g(_vm._b({staticClass:"gl-form-select",class:_vm.selectClass,
|
|
64
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"gl-form-select-wrapper",class:_vm.cssClasses},[_c('b-form-select',_vm._g(_vm._b({staticClass:"gl-form-select",class:_vm.selectClass,scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$slots)),function(slot){return {key:slot,fn:function(){return [_vm._t(slot)]},proxy:true}})],null,true)},'b-form-select',_vm.$attrs,false),_vm.$listeners))],1)};
|
|
73
65
|
var __vue_staticRenderFns__ = [];
|
|
74
66
|
|
|
75
67
|
/* style */
|