@gitlab/ui 114.1.2 → 114.3.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/dist/components/base/filtered_search/filtered_search.js +9 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +5 -1
- package/dist/tokens/build/js/tokens.js +5 -1
- package/dist/tokens/css/tokens.css +4 -0
- package/dist/tokens/css/tokens.dark.css +4 -0
- package/dist/tokens/figma/semantic.tokens.json +46 -0
- package/dist/tokens/js/tokens.dark.js +4 -0
- package/dist/tokens/js/tokens.js +4 -0
- package/dist/tokens/json/tokens.dark.json +106 -0
- package/dist/tokens/json/tokens.json +106 -0
- package/dist/tokens/scss/_tokens.dark.scss +4 -0
- package/dist/tokens/scss/_tokens.scss +4 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +4 -0
- package/package.json +1 -1
- package/src/components/base/breadcrumb/breadcrumb.md +17 -0
- package/src/components/base/filtered_search/filtered_search.vue +10 -1
- package/src/components/base/table/table.scss +22 -23
- package/src/tokens/build/css/tokens.css +4 -0
- package/src/tokens/build/css/tokens.dark.css +4 -0
- package/src/tokens/build/figma/semantic.tokens.json +46 -0
- package/src/tokens/build/js/tokens.dark.js +4 -0
- package/src/tokens/build/js/tokens.js +4 -0
- package/src/tokens/build/json/tokens.dark.json +106 -0
- package/src/tokens/build/json/tokens.json +106 -0
- package/src/tokens/build/scss/_tokens.dark.scss +4 -0
- package/src/tokens/build/scss/_tokens.scss +4 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -0
- package/src/tokens/semantic/highlight.tokens.json +48 -0
|
@@ -307,7 +307,11 @@ var script = {
|
|
|
307
307
|
if (this.tokens.length === 1) {
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
|
-
this.tokens.splice(idx, 1);
|
|
310
|
+
const [destroyedToken] = this.tokens.splice(idx, 1);
|
|
311
|
+
/**
|
|
312
|
+
* Emitted when a token is destroyed, with the token as the payload.
|
|
313
|
+
*/
|
|
314
|
+
this.$emit('token-destroy', destroyedToken);
|
|
311
315
|
|
|
312
316
|
// First, attempt to honor the user's activation intent behind the
|
|
313
317
|
// destruction of the token, if any. Otherwise, try to maintain the
|
|
@@ -348,6 +352,10 @@ var script = {
|
|
|
348
352
|
this.activeTokenIdx = idx + newStrings.length;
|
|
349
353
|
},
|
|
350
354
|
completeToken() {
|
|
355
|
+
/**
|
|
356
|
+
* Emitted when a token is completed, with the token as the payload.
|
|
357
|
+
*/
|
|
358
|
+
this.$emit('token-complete', this.activeToken);
|
|
351
359
|
if (this.activeTokenIdx === this.lastTokenIdx - 1) {
|
|
352
360
|
this.activeTokenIdx = this.lastTokenIdx;
|
|
353
361
|
} else {
|