@dialpad/dialtone-vue 3.4.0 → 3.5.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/component-documentation.json +1 -0
- package/dist/dialtone-vue.common.js +142 -107
- package/dist/dialtone-vue.umd.js +142 -107
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +7 -4
|
@@ -193,7 +193,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".skeleton-placeholder{display:flex;str
|
|
|
193
193
|
|
|
194
194
|
/***/ }),
|
|
195
195
|
|
|
196
|
-
/***/
|
|
196
|
+
/***/ 71:
|
|
197
197
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
198
198
|
|
|
199
199
|
"use strict";
|
|
@@ -521,19 +521,19 @@ var update = add("6f5d0b60", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
521
521
|
|
|
522
522
|
/***/ }),
|
|
523
523
|
|
|
524
|
-
/***/
|
|
524
|
+
/***/ 126:
|
|
525
525
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
526
526
|
|
|
527
527
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
528
528
|
|
|
529
529
|
// load the styles
|
|
530
|
-
var content = __webpack_require__(
|
|
530
|
+
var content = __webpack_require__(71);
|
|
531
531
|
if(content.__esModule) content = content.default;
|
|
532
532
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
533
533
|
if(content.locals) module.exports = content.locals;
|
|
534
534
|
// add the styles to the DOM
|
|
535
535
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
536
|
-
var update = add("
|
|
536
|
+
var update = add("762f0436", content, true, {"sourceMap":false,"shadowMode":false});
|
|
537
537
|
|
|
538
538
|
/***/ }),
|
|
539
539
|
|
|
@@ -3095,6 +3095,7 @@ function comboboxvue_type_template_id_4901dce5_render(_ctx, _cache, $props, $set
|
|
|
3095
3095
|
* the root element of the component.
|
|
3096
3096
|
*/
|
|
3097
3097
|
|
|
3098
|
+
const ERROR_INVALID_LIST_ELEMENT = 'listElementKey is required or the referenced ' + 'element doesn\'t exist. Received listElement: ';
|
|
3098
3099
|
/* harmony default export */ const keyboard_list_navigation = (function () {
|
|
3099
3100
|
let {
|
|
3100
3101
|
// Role of the list items in the component. This is used to identify the list items
|
|
@@ -3118,7 +3119,7 @@ function comboboxvue_type_template_id_4901dce5_render(_ctx, _cache, $props, $set
|
|
|
3118
3119
|
endOfListMethod = null,
|
|
3119
3120
|
// Scroll the active element into view when highlighted by a keyboard event.
|
|
3120
3121
|
scrollToOnHighlight = true,
|
|
3121
|
-
// Focus the active element on keyboard navigation
|
|
3122
|
+
// Focus the active element on keyboard navigation.
|
|
3122
3123
|
focusOnKeyboardNavigation = false
|
|
3123
3124
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3124
3125
|
return {
|
|
@@ -3152,14 +3153,25 @@ function comboboxvue_type_template_id_4901dce5_render(_ctx, _cache, $props, $set
|
|
|
3152
3153
|
// Gets the length of all the items in the list, uses the listItemRole param to determine
|
|
3153
3154
|
// whether an element is a list item.
|
|
3154
3155
|
_itemsLength() {
|
|
3156
|
+
const listItems = this._getListItemNodes();
|
|
3157
|
+
|
|
3158
|
+
if (listItems === null) {
|
|
3159
|
+
return 0;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
return listItems.length;
|
|
3163
|
+
},
|
|
3164
|
+
|
|
3165
|
+
// Gets all the list item nodes within the list element
|
|
3166
|
+
_getListItemNodes() {
|
|
3155
3167
|
const listElement = this._getListElement();
|
|
3156
3168
|
|
|
3157
3169
|
if (!listElement) {
|
|
3158
|
-
console.error(
|
|
3159
|
-
return
|
|
3170
|
+
console.error(ERROR_INVALID_LIST_ELEMENT, listElement);
|
|
3171
|
+
return null;
|
|
3160
3172
|
}
|
|
3161
3173
|
|
|
3162
|
-
return listElement.querySelectorAll("[role=\"".concat(listItemRole, "\"]"))
|
|
3174
|
+
return Array.from(listElement.querySelectorAll("[role=\"".concat(listItemRole, "\"]")));
|
|
3163
3175
|
},
|
|
3164
3176
|
|
|
3165
3177
|
onUpKey() {
|
|
@@ -3204,6 +3216,35 @@ function comboboxvue_type_template_id_4901dce5_render(_ctx, _cache, $props, $set
|
|
|
3204
3216
|
this.focusActiveItemIfNeeded();
|
|
3205
3217
|
},
|
|
3206
3218
|
|
|
3219
|
+
onNavigationKey(key) {
|
|
3220
|
+
const listItems = this._getListItemNodes();
|
|
3221
|
+
|
|
3222
|
+
const matchingItems = listItems.filter(item => {
|
|
3223
|
+
const content = item.textContent.trim().toLowerCase();
|
|
3224
|
+
return content.startsWith(key.toLowerCase());
|
|
3225
|
+
});
|
|
3226
|
+
|
|
3227
|
+
if (matchingItems.length <= 0) {
|
|
3228
|
+
return;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
const highlightedMatchingItemIndex = matchingItems.findIndex(item => {
|
|
3232
|
+
return this[indexKey] === listItems.indexOf(item);
|
|
3233
|
+
});
|
|
3234
|
+
const nextHighlightedItemIndex = listItems.indexOf(highlightedMatchingItemIndex < matchingItems.length - 1 ? matchingItems[highlightedMatchingItemIndex + 1] : matchingItems[0]);
|
|
3235
|
+
this.setHighlightIndex(nextHighlightedItemIndex);
|
|
3236
|
+
this.scrollActiveItemIntoViewIfNeeded();
|
|
3237
|
+
this.focusActiveItemIfNeeded();
|
|
3238
|
+
},
|
|
3239
|
+
|
|
3240
|
+
isValidLetter(key) {
|
|
3241
|
+
if (key.length > 1) {
|
|
3242
|
+
return false;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
return key >= 'a' && key <= 'z' || key >= 'A' && key <= 'Z';
|
|
3246
|
+
},
|
|
3247
|
+
|
|
3207
3248
|
jumpToBeginning() {
|
|
3208
3249
|
this.setHighlightIndex(0);
|
|
3209
3250
|
},
|
|
@@ -3240,8 +3281,7 @@ function comboboxvue_type_template_id_4901dce5_render(_ctx, _cache, $props, $set
|
|
|
3240
3281
|
}
|
|
3241
3282
|
|
|
3242
3283
|
const listItems = Array.from(listElement.querySelectorAll("[role=\"".concat(listItemRole, "\"]")));
|
|
3243
|
-
|
|
3244
|
-
return index;
|
|
3284
|
+
return listItems.indexOf(listElement.querySelector("#".concat(id)));
|
|
3245
3285
|
},
|
|
3246
3286
|
|
|
3247
3287
|
_getItemId(index) {
|
|
@@ -3504,10 +3544,10 @@ const combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(comboboxv
|
|
|
3504
3544
|
/* harmony default export */ const combobox = (combobox_exports_);
|
|
3505
3545
|
;// CONCATENATED MODULE: ./components/combobox/index.js
|
|
3506
3546
|
|
|
3507
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/dropdown/dropdown.vue?vue&type=template&id=
|
|
3547
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/dropdown/dropdown.vue?vue&type=template&id=e86dedbc
|
|
3508
3548
|
|
|
3509
|
-
const
|
|
3510
|
-
function
|
|
3549
|
+
const dropdownvue_type_template_id_e86dedbc_hoisted_1 = ["id"];
|
|
3550
|
+
function dropdownvue_type_template_id_e86dedbc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3511
3551
|
const _component_dt_popover = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-popover");
|
|
3512
3552
|
|
|
3513
3553
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_popover, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
@@ -3525,7 +3565,7 @@ function dropdownvue_type_template_id_071e4ebc_render(_ctx, _cache, $props, $set
|
|
|
3525
3565
|
"max-width": $props.maxWidth,
|
|
3526
3566
|
"open-with-arrow-keys": true,
|
|
3527
3567
|
onOpened: $options.updateInitialHighlightIndex,
|
|
3528
|
-
onKeydown: [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($options.onEnterKey, ["enter"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($options.onSpaceKey, ["space"]), _cache[2] || (_cache[2] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onUpKeyPress'), ["stop", "prevent"]), ["up"])), _cache[3] || (_cache[3] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onDownKeyPress'), ["stop", "prevent"]), ["down"])), _cache[4] || (_cache[4] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onHomeKeyPress'), ["stop", "prevent"]), ["home"])), _cache[5] || (_cache[5] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onEndKeyPress'), ["stop", "prevent"]), ["end"]))]
|
|
3568
|
+
onKeydown: [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($options.onEnterKey, ["enter"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($options.onSpaceKey, ["space"]), _cache[2] || (_cache[2] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onUpKeyPress'), ["stop", "prevent"]), ["up"])), _cache[3] || (_cache[3] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onDownKeyPress'), ["stop", "prevent"]), ["down"])), _cache[4] || (_cache[4] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onHomeKeyPress'), ["stop", "prevent"]), ["home"])), _cache[5] || (_cache[5] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)($event => $options.onKeyValidation($event, 'onEndKeyPress'), ["stop", "prevent"]), ["end"])), _cache[6] || (_cache[6] = $event => $options.onKeyValidation($event, 'onKeyPress'))]
|
|
3529
3569
|
}), {
|
|
3530
3570
|
anchor: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref => {
|
|
3531
3571
|
let {
|
|
@@ -3552,12 +3592,12 @@ function dropdownvue_type_template_id_071e4ebc_render(_ctx, _cache, $props, $set
|
|
|
3552
3592
|
})
|
|
3553
3593
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
3554
3594
|
close: close
|
|
3555
|
-
})], 42,
|
|
3595
|
+
})], 42, dropdownvue_type_template_id_e86dedbc_hoisted_1)];
|
|
3556
3596
|
}),
|
|
3557
3597
|
_: 3
|
|
3558
3598
|
}, 16, ["content-width", "open", "placement", "fallback-placements", "modal", "max-height", "max-width", "onOpened", "onKeydown"]);
|
|
3559
3599
|
}
|
|
3560
|
-
;// CONCATENATED MODULE: ./components/dropdown/dropdown.vue?vue&type=template&id=
|
|
3600
|
+
;// CONCATENATED MODULE: ./components/dropdown/dropdown.vue?vue&type=template&id=e86dedbc
|
|
3561
3601
|
|
|
3562
3602
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=template&id=0656612f
|
|
3563
3603
|
|
|
@@ -9002,7 +9042,6 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
9002
9042
|
components: {
|
|
9003
9043
|
DtPopover: popover
|
|
9004
9044
|
},
|
|
9005
|
-
inheritAttrs: false,
|
|
9006
9045
|
mixins: [keyboard_list_navigation({
|
|
9007
9046
|
indexKey: 'highlightIndex',
|
|
9008
9047
|
idKey: 'highlightId',
|
|
@@ -9014,6 +9053,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
9014
9053
|
activeItemKey: 'activeItemEl',
|
|
9015
9054
|
focusOnKeyboardNavigation: true
|
|
9016
9055
|
})],
|
|
9056
|
+
inheritAttrs: false,
|
|
9017
9057
|
props: {
|
|
9018
9058
|
/**
|
|
9019
9059
|
* Controls whether the dropdown is shown. Leaving this null will have the dropdown trigger on click by default.
|
|
@@ -9162,6 +9202,10 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
9162
9202
|
|
|
9163
9203
|
activeItemEl() {
|
|
9164
9204
|
return this.getListElement().querySelector('#' + this.highlightId);
|
|
9205
|
+
},
|
|
9206
|
+
|
|
9207
|
+
isArrowKeyNav() {
|
|
9208
|
+
return this.navigationType === this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS;
|
|
9165
9209
|
}
|
|
9166
9210
|
|
|
9167
9211
|
},
|
|
@@ -9221,7 +9265,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
9221
9265
|
return;
|
|
9222
9266
|
}
|
|
9223
9267
|
|
|
9224
|
-
if (this.
|
|
9268
|
+
if (this.isArrowKeyNav) {
|
|
9225
9269
|
return this.onUpKey();
|
|
9226
9270
|
}
|
|
9227
9271
|
},
|
|
@@ -9232,29 +9276,35 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
9232
9276
|
return;
|
|
9233
9277
|
}
|
|
9234
9278
|
|
|
9235
|
-
if (this.
|
|
9279
|
+
if (this.isArrowKeyNav) {
|
|
9236
9280
|
return this.onDownKey();
|
|
9237
9281
|
}
|
|
9238
9282
|
},
|
|
9239
9283
|
|
|
9240
9284
|
onHomeKeyPress() {
|
|
9241
|
-
if (!this.isOpen) {
|
|
9285
|
+
if (!this.isOpen || !this.isArrowKeyNav) {
|
|
9242
9286
|
return;
|
|
9243
9287
|
}
|
|
9244
9288
|
|
|
9245
|
-
|
|
9246
|
-
return this.onHomeKey();
|
|
9247
|
-
}
|
|
9289
|
+
return this.onHomeKey();
|
|
9248
9290
|
},
|
|
9249
9291
|
|
|
9250
9292
|
onEndKeyPress() {
|
|
9251
|
-
if (!this.isOpen) {
|
|
9293
|
+
if (!this.isOpen || !this.isArrowKeyNav) {
|
|
9252
9294
|
return;
|
|
9253
9295
|
}
|
|
9254
9296
|
|
|
9255
|
-
|
|
9256
|
-
|
|
9297
|
+
return this.onEndKey();
|
|
9298
|
+
},
|
|
9299
|
+
|
|
9300
|
+
onKeyPress(e) {
|
|
9301
|
+
if (!this.isOpen || !this.isArrowKeyNav || !this.isValidLetter(e.key)) {
|
|
9302
|
+
return;
|
|
9257
9303
|
}
|
|
9304
|
+
|
|
9305
|
+
e.stopPropagation();
|
|
9306
|
+
e.preventDefault();
|
|
9307
|
+
return this.onNavigationKey(e.key);
|
|
9258
9308
|
},
|
|
9259
9309
|
|
|
9260
9310
|
onKeyValidation(e, eventHandler) {
|
|
@@ -9275,7 +9325,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
9275
9325
|
|
|
9276
9326
|
|
|
9277
9327
|
;
|
|
9278
|
-
const dropdown_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(dropdownvue_type_script_lang_js, [['render',
|
|
9328
|
+
const dropdown_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(dropdownvue_type_script_lang_js, [['render',dropdownvue_type_template_id_e86dedbc_render]])
|
|
9279
9329
|
|
|
9280
9330
|
/* harmony default export */ const dropdown = (dropdown_exports_);
|
|
9281
9331
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
@@ -9440,7 +9490,7 @@ async function codeToEmojiData(code) {
|
|
|
9440
9490
|
// @returns {string[]}
|
|
9441
9491
|
|
|
9442
9492
|
function findShortCodes(textContent) {
|
|
9443
|
-
const shortCodes = textContent.match(
|
|
9493
|
+
const shortCodes = textContent.match(/:\w+:/g);
|
|
9444
9494
|
const filtered = shortCodes ? shortCodes.filter(code => shortcodeToEmojiData(code)) : [];
|
|
9445
9495
|
return new Set(filtered);
|
|
9446
9496
|
} // Finds every emoji in slot text
|
|
@@ -13341,79 +13391,64 @@ const checkbox_group_exports_ = checkbox_groupvue_type_script_lang_js;
|
|
|
13341
13391
|
/* harmony default export */ const checkbox_group = (checkbox_group_exports_);
|
|
13342
13392
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
13343
13393
|
|
|
13344
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/chip/chip.vue?vue&type=template&id=
|
|
13394
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/chip/chip.vue?vue&type=template&id=8a56dabe
|
|
13345
13395
|
|
|
13346
|
-
const
|
|
13347
|
-
|
|
13396
|
+
const chipvue_type_template_id_8a56dabe_hoisted_1 = {
|
|
13397
|
+
class: "d-chip"
|
|
13398
|
+
};
|
|
13399
|
+
const chipvue_type_template_id_8a56dabe_hoisted_2 = {
|
|
13348
13400
|
key: 0,
|
|
13349
13401
|
"data-qa": "dt-chip-icon",
|
|
13350
13402
|
class: "d-chip__icon"
|
|
13351
13403
|
};
|
|
13352
|
-
const
|
|
13404
|
+
const chipvue_type_template_id_8a56dabe_hoisted_3 = {
|
|
13353
13405
|
key: 1,
|
|
13354
13406
|
"data-qa": "dt-chip-avatar"
|
|
13355
13407
|
};
|
|
13356
|
-
const
|
|
13357
|
-
|
|
13358
|
-
key: 3,
|
|
13359
|
-
class: "d-chip-btn-holder"
|
|
13360
|
-
};
|
|
13361
|
-
const chipvue_type_template_id_4d7bb584_hoisted_6 = {
|
|
13362
|
-
ref: "closeBtnContainer",
|
|
13363
|
-
class: "d-chip-btn-container"
|
|
13364
|
-
};
|
|
13365
|
-
function chipvue_type_template_id_4d7bb584_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13408
|
+
const chipvue_type_template_id_8a56dabe_hoisted_4 = ["id"];
|
|
13409
|
+
function chipvue_type_template_id_8a56dabe_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13366
13410
|
const _component_icon_close = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("icon-close");
|
|
13367
13411
|
|
|
13368
13412
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
13369
13413
|
|
|
13370
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
13414
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_8a56dabe_hoisted_1, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.interactive ? 'button' : 'span'), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
13371
13415
|
id: $props.id,
|
|
13372
|
-
|
|
13416
|
+
type: $props.interactive && 'button',
|
|
13417
|
+
class: $options.chipClasses(),
|
|
13373
13418
|
"data-qa": "dt-chip",
|
|
13374
|
-
tabindex: $options.tabIndex,
|
|
13375
13419
|
"aria-labelledby": $props.ariaLabel ? undefined : "".concat($props.id, "-content"),
|
|
13376
|
-
"aria-label": $props.ariaLabel
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
return $options.onClick && $options.onClick(...arguments);
|
|
13387
|
-
}, ["enter"])),
|
|
13388
|
-
onKeyup: [_cache[6] || (_cache[6] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)(function () {
|
|
13389
|
-
return $options.onClick && $options.onClick(...arguments);
|
|
13390
|
-
}, ["enter"])), _cache[7] || (_cache[7] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)(function () {
|
|
13391
|
-
return $options.onClose && $options.onClose(...arguments);
|
|
13392
|
-
}, ["delete"]))]
|
|
13393
|
-
}, [_ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_4d7bb584_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon")])) : _ctx.$slots.avatar ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_4d7bb584_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "avatar")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), _ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
13394
|
-
key: 2,
|
|
13395
|
-
id: "".concat($props.id, "-content"),
|
|
13396
|
-
"data-qa": "dt-chip-label",
|
|
13397
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-truncate', $props.contentClass])
|
|
13398
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10, chipvue_type_template_id_4d7bb584_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !$props.hideClose ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_4d7bb584_hoisted_5)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", chipvue_type_template_id_4d7bb584_hoisted_6, [!$props.hideClose ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
13420
|
+
"aria-label": $props.ariaLabel
|
|
13421
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.chipListeners)), {
|
|
13422
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [_ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_8a56dabe_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon")])) : _ctx.$slots.avatar ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_8a56dabe_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "avatar")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), _ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
13423
|
+
key: 2,
|
|
13424
|
+
id: "".concat($props.id, "-content"),
|
|
13425
|
+
"data-qa": "dt-chip-label",
|
|
13426
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-truncate', 'd-chip__text', $props.contentClass])
|
|
13427
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10, chipvue_type_template_id_8a56dabe_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
13428
|
+
_: 3
|
|
13429
|
+
}, 16, ["id", "type", "class", "aria-labelledby", "aria-label"])), !$props.hideClose ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
13399
13430
|
key: 0
|
|
13400
13431
|
}, $props.closeButtonProps, {
|
|
13432
|
+
class: $options.chipCloseButtonClasses(),
|
|
13401
13433
|
"data-qa": "dt-chip-close",
|
|
13402
|
-
circle: "",
|
|
13403
|
-
importance: "clear",
|
|
13404
13434
|
"aria-label": $props.closeButtonProps.ariaLabel,
|
|
13405
13435
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('close'))
|
|
13406
13436
|
}), {
|
|
13407
|
-
|
|
13437
|
+
icon: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_icon_close)]),
|
|
13408
13438
|
_: 1
|
|
13409
|
-
}, 16, ["aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]
|
|
13439
|
+
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
13410
13440
|
}
|
|
13411
|
-
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=
|
|
13441
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=8a56dabe
|
|
13412
13442
|
|
|
13413
13443
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
13414
13444
|
const CHIP_SIZE_MODIFIERS = {
|
|
13415
|
-
xs: 'd-
|
|
13416
|
-
sm: 'd-
|
|
13445
|
+
xs: 'd-chip__label--xs',
|
|
13446
|
+
sm: 'd-chip__label--sm',
|
|
13447
|
+
md: ''
|
|
13448
|
+
};
|
|
13449
|
+
const CHIP_CLOSE_BUTTON_SIZE_MODIFIERS = {
|
|
13450
|
+
xs: 'd-chip__close--xs',
|
|
13451
|
+
sm: 'd-chip__close--sm',
|
|
13417
13452
|
md: ''
|
|
13418
13453
|
};
|
|
13419
13454
|
/* harmony default export */ const chip_constants = ({
|
|
@@ -13497,7 +13532,7 @@ const CHIP_SIZE_MODIFIERS = {
|
|
|
13497
13532
|
default: ''
|
|
13498
13533
|
}
|
|
13499
13534
|
},
|
|
13500
|
-
emits: ['click', 'close'],
|
|
13535
|
+
emits: ['click', 'close', 'keyup'],
|
|
13501
13536
|
|
|
13502
13537
|
data() {
|
|
13503
13538
|
return {
|
|
@@ -13506,37 +13541,37 @@ const CHIP_SIZE_MODIFIERS = {
|
|
|
13506
13541
|
},
|
|
13507
13542
|
|
|
13508
13543
|
computed: {
|
|
13509
|
-
|
|
13510
|
-
return
|
|
13544
|
+
chipListeners() {
|
|
13545
|
+
return {
|
|
13546
|
+
click: event => {
|
|
13547
|
+
if (this.interactive) this.$emit('click', event);
|
|
13548
|
+
},
|
|
13549
|
+
keyup: event => {
|
|
13550
|
+
var _event$code;
|
|
13551
|
+
|
|
13552
|
+
if (((_event$code = event.code) === null || _event$code === void 0 ? void 0 : _event$code.toLowerCase()) === 'delete') {
|
|
13553
|
+
this.onClose();
|
|
13554
|
+
} else {
|
|
13555
|
+
this.$emit('keyup', event);
|
|
13556
|
+
}
|
|
13557
|
+
}
|
|
13558
|
+
};
|
|
13511
13559
|
}
|
|
13512
13560
|
|
|
13513
13561
|
},
|
|
13514
13562
|
methods: {
|
|
13515
13563
|
chipClasses() {
|
|
13516
|
-
return ['d-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13564
|
+
return ['d-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
13565
|
+
},
|
|
13566
|
+
|
|
13567
|
+
chipCloseButtonClasses() {
|
|
13568
|
+
return ['d-chip__close', CHIP_CLOSE_BUTTON_SIZE_MODIFIERS[this.size]];
|
|
13520
13569
|
},
|
|
13521
13570
|
|
|
13522
13571
|
onClose() {
|
|
13523
13572
|
if (!this.hideClose) {
|
|
13524
13573
|
this.$emit('close');
|
|
13525
13574
|
}
|
|
13526
|
-
},
|
|
13527
|
-
|
|
13528
|
-
onClick(event) {
|
|
13529
|
-
// Clicking on the button should not update value of isActive.
|
|
13530
|
-
if (!this.interactive || this.$refs.closeBtnContainer.contains(event.target)) {
|
|
13531
|
-
return;
|
|
13532
|
-
}
|
|
13533
|
-
|
|
13534
|
-
if (event.type === 'mousedown' || event.type === 'keydown') {
|
|
13535
|
-
this.isActive = true;
|
|
13536
|
-
} else {
|
|
13537
|
-
this.isActive = false;
|
|
13538
|
-
this.$emit('click');
|
|
13539
|
-
}
|
|
13540
13575
|
}
|
|
13541
13576
|
|
|
13542
13577
|
}
|
|
@@ -13549,7 +13584,7 @@ const CHIP_SIZE_MODIFIERS = {
|
|
|
13549
13584
|
|
|
13550
13585
|
|
|
13551
13586
|
;
|
|
13552
|
-
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',
|
|
13587
|
+
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',chipvue_type_template_id_8a56dabe_render]])
|
|
13553
13588
|
|
|
13554
13589
|
/* harmony default export */ const chip = (chip_exports_);
|
|
13555
13590
|
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
@@ -14257,15 +14292,15 @@ const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_t
|
|
|
14257
14292
|
/* harmony default export */ const toggle = (toggle_exports_);
|
|
14258
14293
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
14259
14294
|
|
|
14260
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/tooltip/tooltip.vue?vue&type=template&id=
|
|
14295
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/tooltip/tooltip.vue?vue&type=template&id=044c8b20
|
|
14261
14296
|
|
|
14262
|
-
const
|
|
14297
|
+
const tooltipvue_type_template_id_044c8b20_hoisted_1 = {
|
|
14263
14298
|
"data-qa": "dt-tooltip-container"
|
|
14264
14299
|
};
|
|
14265
|
-
function
|
|
14300
|
+
function tooltipvue_type_template_id_044c8b20_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14266
14301
|
const _component_dt_lazy_show = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-lazy-show");
|
|
14267
14302
|
|
|
14268
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
14303
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", tooltipvue_type_template_id_044c8b20_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
14269
14304
|
ref: "anchor",
|
|
14270
14305
|
"data-qa": "dt-tooltip-anchor",
|
|
14271
14306
|
onFocusin: _cache[0] || (_cache[0] = function () {
|
|
@@ -14302,7 +14337,7 @@ function tooltipvue_type_template_id_600c8e6a_render(_ctx, _cache, $props, $setu
|
|
|
14302
14337
|
_: 3
|
|
14303
14338
|
}, 8, ["id", "show", "transition", "class", "onAfterLeave", "onAfterEnter"])]);
|
|
14304
14339
|
}
|
|
14305
|
-
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=
|
|
14340
|
+
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=044c8b20
|
|
14306
14341
|
|
|
14307
14342
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
14308
14343
|
/*
|
|
@@ -14366,7 +14401,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
14366
14401
|
*/
|
|
14367
14402
|
offset: {
|
|
14368
14403
|
type: Array,
|
|
14369
|
-
default: () => [0,
|
|
14404
|
+
default: () => [0, -4]
|
|
14370
14405
|
},
|
|
14371
14406
|
|
|
14372
14407
|
/**
|
|
@@ -14578,9 +14613,9 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
14578
14613
|
});
|
|
14579
14614
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=script&lang=js
|
|
14580
14615
|
|
|
14581
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/tooltip/tooltip.vue?vue&type=style&index=0&id=
|
|
14582
|
-
var
|
|
14583
|
-
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=style&index=0&id=
|
|
14616
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/tooltip/tooltip.vue?vue&type=style&index=0&id=044c8b20&lang=less
|
|
14617
|
+
var tooltipvue_type_style_index_0_id_044c8b20_lang_less = __webpack_require__(126);
|
|
14618
|
+
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=style&index=0&id=044c8b20&lang=less
|
|
14584
14619
|
|
|
14585
14620
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue
|
|
14586
14621
|
|
|
@@ -14590,7 +14625,7 @@ var tooltipvue_type_style_index_0_id_600c8e6a_lang_less = __webpack_require__(96
|
|
|
14590
14625
|
;
|
|
14591
14626
|
|
|
14592
14627
|
|
|
14593
|
-
const tooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tooltipvue_type_script_lang_js, [['render',
|
|
14628
|
+
const tooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tooltipvue_type_script_lang_js, [['render',tooltipvue_type_template_id_044c8b20_render]])
|
|
14594
14629
|
|
|
14595
14630
|
/* harmony default export */ const tooltip = (tooltip_exports_);
|
|
14596
14631
|
;// CONCATENATED MODULE: ./components/tooltip/index.js
|