@dialpad/dialtone-vue 2.20.0 → 2.21.0-alpha.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/dialtone-vue.umd.js
CHANGED
|
@@ -11,6 +11,30 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
+
/***/ 751:
|
|
15
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21
|
+
/* harmony export */ });
|
|
22
|
+
/* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(481);
|
|
23
|
+
/* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
24
|
+
/* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(400);
|
|
25
|
+
/* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
26
|
+
// Imports
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
30
|
+
// Module
|
|
31
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".d-context-menu-list{width:24rem}", ""]);
|
|
32
|
+
// Exports
|
|
33
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
14
38
|
/***/ 793:
|
|
15
39
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
16
40
|
|
|
@@ -372,6 +396,22 @@ module.exports = function (i) {
|
|
|
372
396
|
|
|
373
397
|
/***/ }),
|
|
374
398
|
|
|
399
|
+
/***/ 437:
|
|
400
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
401
|
+
|
|
402
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
403
|
+
|
|
404
|
+
// load the styles
|
|
405
|
+
var content = __webpack_require__(751);
|
|
406
|
+
if(content.__esModule) content = content.default;
|
|
407
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
408
|
+
if(content.locals) module.exports = content.locals;
|
|
409
|
+
// add the styles to the DOM
|
|
410
|
+
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
411
|
+
var update = add("20c77f36", content, true, {"sourceMap":false,"shadowMode":false});
|
|
412
|
+
|
|
413
|
+
/***/ }),
|
|
414
|
+
|
|
375
415
|
/***/ 742:
|
|
376
416
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
377
417
|
|
|
@@ -911,6 +951,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
911
951
|
"DtCheckboxGroup": () => (/* reexport */ checkbox_group),
|
|
912
952
|
"DtChip": () => (/* reexport */ chip),
|
|
913
953
|
"DtCombobox": () => (/* reexport */ combobox),
|
|
954
|
+
"DtContextMenu": () => (/* reexport */ context_menu),
|
|
914
955
|
"DtDropdown": () => (/* reexport */ dropdown),
|
|
915
956
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
916
957
|
"DtInput": () => (/* reexport */ input_input),
|
|
@@ -1935,7 +1976,7 @@ const INVALID_COMBINATION = [{
|
|
|
1935
1976
|
}];
|
|
1936
1977
|
|
|
1937
1978
|
function _invalidCombinationMessage(circle, kind, importance) {
|
|
1938
|
-
return "You cannot
|
|
1979
|
+
return "You cannot have a ".concat(circle ? 'circle ' : '', "button with kind: ").concat(kind, " and importance: ").concat(importance, " as it does not exist in our design system. See https://dialpad.design/components/button for a list of available button styles");
|
|
1939
1980
|
}
|
|
1940
1981
|
|
|
1941
1982
|
/* harmony default export */ const button_constants = ({
|
|
@@ -3080,9 +3121,9 @@ var button_group_component = normalizeComponent(
|
|
|
3080
3121
|
;// CONCATENATED MODULE: ./components/button_group/index.js
|
|
3081
3122
|
|
|
3082
3123
|
|
|
3083
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/combobox/combobox.vue?vue&type=template&id=
|
|
3084
|
-
var
|
|
3085
|
-
var
|
|
3124
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/combobox/combobox.vue?vue&type=template&id=25daf05b&
|
|
3125
|
+
var comboboxvue_type_template_id_25daf05b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.isLoading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.isListEmpty && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',_vm.listProps,false)):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex,"isLoading":_vm.isLoading,"isListEmpty":_vm.isListEmpty})],2):_vm._e()])}
|
|
3126
|
+
var comboboxvue_type_template_id_25daf05b_staticRenderFns = []
|
|
3086
3127
|
|
|
3087
3128
|
|
|
3088
3129
|
;// CONCATENATED MODULE: ./common/mixins/dom.js
|
|
@@ -4838,6 +4879,7 @@ var combobox_empty_list_component = normalizeComponent(
|
|
|
4838
4879
|
},
|
|
4839
4880
|
|
|
4840
4881
|
activeItemEl() {
|
|
4882
|
+
if (!this.highlightId) return '';
|
|
4841
4883
|
return this.getListElement().querySelector('#' + this.highlightId);
|
|
4842
4884
|
}
|
|
4843
4885
|
|
|
@@ -4961,8 +5003,8 @@ var combobox_empty_list_component = normalizeComponent(
|
|
|
4961
5003
|
;
|
|
4962
5004
|
var combobox_component = normalizeComponent(
|
|
4963
5005
|
combobox_comboboxvue_type_script_lang_js_,
|
|
4964
|
-
|
|
4965
|
-
|
|
5006
|
+
comboboxvue_type_template_id_25daf05b_render,
|
|
5007
|
+
comboboxvue_type_template_id_25daf05b_staticRenderFns,
|
|
4966
5008
|
false,
|
|
4967
5009
|
null,
|
|
4968
5010
|
null,
|
|
@@ -4973,17 +5015,26 @@ var combobox_component = normalizeComponent(
|
|
|
4973
5015
|
/* harmony default export */ const combobox = (combobox_component.exports);
|
|
4974
5016
|
;// CONCATENATED MODULE: ./components/combobox/index.js
|
|
4975
5017
|
|
|
4976
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/
|
|
4977
|
-
var
|
|
5018
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/context_menu/context_menu.vue?vue&type=template&id=4b3ffc6f&
|
|
5019
|
+
var context_menuvue_type_template_id_4b3ffc6f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-dropdown',{attrs:{"open":_vm.isOpen,"placement":"bottom-start","navigation-type":"arrow-keys","follow-cursor":"initial"},on:{"update:open":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
|
|
5020
|
+
var attrs = ref.attrs;
|
|
5021
|
+
return [_c('div',{on:{"contextmenu":function($event){$event.preventDefault();return _vm.showMenu.apply(null, arguments)}}},[_vm._t("anchor",null,null,attrs)],2)]}},{key:"list",fn:function(ref){
|
|
5022
|
+
var close = ref.close;
|
|
5023
|
+
return [_c('div',{staticClass:"d-context-menu-list"},[_vm._t("list",null,{"close":close})],2)]}}],null,true)})}
|
|
5024
|
+
var context_menuvue_type_template_id_4b3ffc6f_staticRenderFns = []
|
|
5025
|
+
|
|
5026
|
+
|
|
5027
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown.vue?vue&type=template&id=03fdf47c&
|
|
5028
|
+
var dropdownvue_type_template_id_03fdf47c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-popover',_vm._g({ref:"popover",attrs:{"content-width":_vm.contentWidth,"open":_vm.open,"placement":_vm.placement,"initial-focus-element":_vm.openedWithKeyboard ? 'first' : 'dialog',"fallback-placements":_vm.fallbackPlacements,"padding":"none","role":"menu","modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":true,"follow-cursor":_vm.followCursor},on:{"opened":_vm.updateInitialHighlightIndex,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onEnterKey.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }return _vm.onSpaceKey.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKeyPress')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKeyPress')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKeyPress')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKeyPress')},function($event){return _vm.onKeyValidation($event, 'onKeyPress')}]},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
|
|
4978
5029
|
var attrs = ref.attrs;
|
|
4979
5030
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
4980
5031
|
var close = ref.close;
|
|
4981
5032
|
return [_c('ul',{ref:"listWrapper",class:['d-ps-relative', 'd-px0', _vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],attrs:{"id":_vm.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[_vm._t("list",null,{"close":close})],2)]}}],null,true)},_vm.$listeners))}
|
|
4982
|
-
var
|
|
5033
|
+
var dropdownvue_type_template_id_03fdf47c_staticRenderFns = []
|
|
4983
5034
|
|
|
4984
5035
|
|
|
4985
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=
|
|
4986
|
-
var
|
|
5036
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=d3da038c&
|
|
5037
|
+
var popovervue_type_template_id_d3da038c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.modal && _vm.isOpen)?_c('portal',[_c('div',{staticClass:"d-modal--transparent",attrs:{"aria-hidden":_vm.modal && _vm.isOpen ? 'false' : 'true'},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}})]):_vm._e(),_c(_vm.elementType,_vm._g({ref:"popover",tag:"component",class:['d-popover', { 'd-popover__anchor--modal-opened': _vm.modal && _vm.isOpen }],attrs:{"data-qa":"dt-popover-container"}},_vm.$listeners),[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy,"data-qa":"dt-popover-anchor"},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)}],"wheel":function (e) { return (_vm.isOpen && _vm.modal) && e.preventDefault(); },"!keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closePopover.apply(null, arguments)}}},[_vm._t("anchor",null,{"attrs":{
|
|
4987
5038
|
'aria-expanded': _vm.isOpen.toString(),
|
|
4988
5039
|
'aria-controls': _vm.id,
|
|
4989
5040
|
'aria-haspopup': _vm.role,
|
|
@@ -4994,7 +5045,7 @@ var popovervue_type_template_id_27ddd8bc_render = function () {var _vm=this;var
|
|
|
4994
5045
|
'd-popover__content',
|
|
4995
5046
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
4996
5047
|
_vm.contentClass ],attrs:{"data-qa":"dt-popover-content"}},[_vm._t("content",null,{"close":_vm.closePopover})],2),(_vm.$slots.footerContent)?_c('popover-header-footer',{ref:"popover__footer",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"type":"footer","content-class":_vm.footerClass},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("footerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e()],1)],1)],1)}
|
|
4997
|
-
var
|
|
5048
|
+
var popovervue_type_template_id_d3da038c_staticRenderFns = []
|
|
4998
5049
|
|
|
4999
5050
|
|
|
5000
5051
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -9398,6 +9449,7 @@ const getArrowDetected = fn => ({
|
|
|
9398
9449
|
|
|
9399
9450
|
const BASE_TIPPY_DIRECTIONS = ['bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'top', 'top-start', 'top-end'];
|
|
9400
9451
|
const TIPPY_STICKY_VALUES = [true, false, 'reference', 'popper'];
|
|
9452
|
+
const TIPPY_FOLLOW_CURSOR_VALUES = [true, false, 'vertical', 'horizontal', 'initial'];
|
|
9401
9453
|
const tippy_utils_createTippy = (anchorElement, options) => {
|
|
9402
9454
|
const {
|
|
9403
9455
|
contentElement
|
|
@@ -9405,7 +9457,7 @@ const tippy_utils_createTippy = (anchorElement, options) => {
|
|
|
9405
9457
|
};
|
|
9406
9458
|
delete options.contentElement;
|
|
9407
9459
|
return tippy_esm(anchorElement, { ...options,
|
|
9408
|
-
plugins: [sticky],
|
|
9460
|
+
plugins: [sticky, followCursor],
|
|
9409
9461
|
render: () => getContentWrapper(contentElement)
|
|
9410
9462
|
});
|
|
9411
9463
|
};
|
|
@@ -9491,6 +9543,7 @@ const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
|
9491
9543
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
9492
9544
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
9493
9545
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
9546
|
+
const POPOVER_FOLLOW_CURSOR_VALUES = [...TIPPY_FOLLOW_CURSOR_VALUES];
|
|
9494
9547
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
9495
9548
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/lazy_show/lazy_show.vue?vue&type=template&id=9ffa4e8c&
|
|
9496
9549
|
var lazy_showvue_type_template_id_9ffa4e8c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"name":_vm.transition,"appear":_vm.appear}},_vm.$listeners),[_c('div',_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}]},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)])}
|
|
@@ -10234,6 +10287,20 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
10234
10287
|
}
|
|
10235
10288
|
},
|
|
10236
10289
|
|
|
10290
|
+
/**
|
|
10291
|
+
* Determines if the popover follows the user's mouse cursor.
|
|
10292
|
+
* `true` enables it, `vertical` or `horizontal` only follows the cursor on a single axis,
|
|
10293
|
+
* `initial` will place the popover at the initial cursor position upon show, but prevent
|
|
10294
|
+
* following it.
|
|
10295
|
+
*/
|
|
10296
|
+
followCursor: {
|
|
10297
|
+
type: [Boolean, String],
|
|
10298
|
+
default: false,
|
|
10299
|
+
validator: followCursor => {
|
|
10300
|
+
return POPOVER_FOLLOW_CURSOR_VALUES.includes(followCursor);
|
|
10301
|
+
}
|
|
10302
|
+
},
|
|
10303
|
+
|
|
10237
10304
|
/**
|
|
10238
10305
|
* Determines maximum height for the popover before overflow.
|
|
10239
10306
|
* Possible units rem|px|em
|
|
@@ -10364,6 +10431,12 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
10364
10431
|
});
|
|
10365
10432
|
},
|
|
10366
10433
|
|
|
10434
|
+
followCursor(followCursor) {
|
|
10435
|
+
this.tip.setProps({
|
|
10436
|
+
followCursor
|
|
10437
|
+
});
|
|
10438
|
+
},
|
|
10439
|
+
|
|
10367
10440
|
fallbackPlacements() {
|
|
10368
10441
|
this.tip.setProps({
|
|
10369
10442
|
popperOptions: this.popperOptions()
|
|
@@ -10421,6 +10494,7 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
10421
10494
|
placement: this.placement,
|
|
10422
10495
|
offset: this.offset,
|
|
10423
10496
|
sticky: this.sticky,
|
|
10497
|
+
followCursor: this.followCursor,
|
|
10424
10498
|
appendTo: document.body,
|
|
10425
10499
|
interactive: true,
|
|
10426
10500
|
trigger: 'manual',
|
|
@@ -10650,8 +10724,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(532);
|
|
|
10650
10724
|
|
|
10651
10725
|
var popover_component = normalizeComponent(
|
|
10652
10726
|
popover_popovervue_type_script_lang_js_,
|
|
10653
|
-
|
|
10654
|
-
|
|
10727
|
+
popovervue_type_template_id_d3da038c_render,
|
|
10728
|
+
popovervue_type_template_id_d3da038c_staticRenderFns,
|
|
10655
10729
|
false,
|
|
10656
10730
|
null,
|
|
10657
10731
|
null,
|
|
@@ -10722,6 +10796,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
10722
10796
|
//
|
|
10723
10797
|
//
|
|
10724
10798
|
//
|
|
10799
|
+
//
|
|
10725
10800
|
|
|
10726
10801
|
|
|
10727
10802
|
|
|
@@ -10837,6 +10912,17 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
10837
10912
|
}
|
|
10838
10913
|
},
|
|
10839
10914
|
|
|
10915
|
+
/**
|
|
10916
|
+
* Determines if the dropdown follows the user's mouse cursor.
|
|
10917
|
+
* `true` enables it, `vertical` or `horizontal` only follows the cursor on a single axis,
|
|
10918
|
+
* `initial` will place the dropdown at the initial cursor position upon show, but prevent
|
|
10919
|
+
* following it.
|
|
10920
|
+
*/
|
|
10921
|
+
followCursor: {
|
|
10922
|
+
type: [Boolean, String],
|
|
10923
|
+
default: false
|
|
10924
|
+
},
|
|
10925
|
+
|
|
10840
10926
|
/**
|
|
10841
10927
|
* The direction the dropdown displays relative to the anchor.
|
|
10842
10928
|
*/
|
|
@@ -10916,7 +11002,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
10916
11002
|
onMouseHighlight(e) {
|
|
10917
11003
|
const liElement = e.target.closest('li');
|
|
10918
11004
|
|
|
10919
|
-
if (liElement && this.highlightId !== liElement.id) {
|
|
11005
|
+
if (liElement && liElement.role && this.highlightId !== liElement.id) {
|
|
10920
11006
|
this.setHighlightId(liElement.id);
|
|
10921
11007
|
liElement.focus();
|
|
10922
11008
|
}
|
|
@@ -11032,8 +11118,8 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
11032
11118
|
;
|
|
11033
11119
|
var dropdown_component = normalizeComponent(
|
|
11034
11120
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
11035
|
-
|
|
11036
|
-
|
|
11121
|
+
dropdownvue_type_template_id_03fdf47c_render,
|
|
11122
|
+
dropdownvue_type_template_id_03fdf47c_staticRenderFns,
|
|
11037
11123
|
false,
|
|
11038
11124
|
null,
|
|
11039
11125
|
null,
|
|
@@ -11042,6 +11128,122 @@ var dropdown_component = normalizeComponent(
|
|
|
11042
11128
|
)
|
|
11043
11129
|
|
|
11044
11130
|
/* harmony default export */ const dropdown = (dropdown_component.exports);
|
|
11131
|
+
;// CONCATENATED MODULE: ./components/dropdown/dropdown_story_constants.js
|
|
11132
|
+
const DROPDOWN_STORY_ITEMS = [{
|
|
11133
|
+
name: 'Menu item 1',
|
|
11134
|
+
id: 1
|
|
11135
|
+
}, {
|
|
11136
|
+
name: 'Menu item 2',
|
|
11137
|
+
id: 2
|
|
11138
|
+
}, {
|
|
11139
|
+
name: 'Another menu item 1',
|
|
11140
|
+
id: 3
|
|
11141
|
+
}, {
|
|
11142
|
+
name: 'Menu item 3',
|
|
11143
|
+
id: 4
|
|
11144
|
+
}, {
|
|
11145
|
+
name: 'Another menu item 2',
|
|
11146
|
+
id: 5
|
|
11147
|
+
}];
|
|
11148
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/context_menu/context_menu.vue?vue&type=script&lang=js&
|
|
11149
|
+
//
|
|
11150
|
+
//
|
|
11151
|
+
//
|
|
11152
|
+
//
|
|
11153
|
+
//
|
|
11154
|
+
//
|
|
11155
|
+
//
|
|
11156
|
+
//
|
|
11157
|
+
//
|
|
11158
|
+
//
|
|
11159
|
+
//
|
|
11160
|
+
//
|
|
11161
|
+
//
|
|
11162
|
+
//
|
|
11163
|
+
//
|
|
11164
|
+
//
|
|
11165
|
+
//
|
|
11166
|
+
//
|
|
11167
|
+
//
|
|
11168
|
+
//
|
|
11169
|
+
//
|
|
11170
|
+
//
|
|
11171
|
+
//
|
|
11172
|
+
//
|
|
11173
|
+
//
|
|
11174
|
+
//
|
|
11175
|
+
//
|
|
11176
|
+
//
|
|
11177
|
+
//
|
|
11178
|
+
//
|
|
11179
|
+
//
|
|
11180
|
+
|
|
11181
|
+
|
|
11182
|
+
|
|
11183
|
+
|
|
11184
|
+
/* harmony default export */ const context_menuvue_type_script_lang_js_ = ({
|
|
11185
|
+
name: 'DtContextMenu',
|
|
11186
|
+
components: {
|
|
11187
|
+
DtDropdown: dropdown,
|
|
11188
|
+
DtButton: button_button,
|
|
11189
|
+
DtListItem: list_item
|
|
11190
|
+
},
|
|
11191
|
+
props: {},
|
|
11192
|
+
|
|
11193
|
+
data() {
|
|
11194
|
+
return {
|
|
11195
|
+
isOpen: false
|
|
11196
|
+
};
|
|
11197
|
+
},
|
|
11198
|
+
|
|
11199
|
+
computed: {
|
|
11200
|
+
items() {
|
|
11201
|
+
return DROPDOWN_STORY_ITEMS;
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11204
|
+
},
|
|
11205
|
+
methods: {
|
|
11206
|
+
showMenu() {
|
|
11207
|
+
this.isOpen = true;
|
|
11208
|
+
}
|
|
11209
|
+
|
|
11210
|
+
}
|
|
11211
|
+
});
|
|
11212
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu.vue?vue&type=script&lang=js&
|
|
11213
|
+
/* harmony default export */ const context_menu_context_menuvue_type_script_lang_js_ = (context_menuvue_type_script_lang_js_);
|
|
11214
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-72[0].rules[0].use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-72[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-72[0].rules[0].use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-72[0].rules[0].use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-72[0].rules[0].use[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/context_menu/context_menu.vue?vue&type=style&index=0&lang=less&
|
|
11215
|
+
var context_menuvue_type_style_index_0_lang_less_ = __webpack_require__(437);
|
|
11216
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu.vue?vue&type=style&index=0&lang=less&
|
|
11217
|
+
|
|
11218
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu.vue
|
|
11219
|
+
|
|
11220
|
+
|
|
11221
|
+
|
|
11222
|
+
;
|
|
11223
|
+
|
|
11224
|
+
|
|
11225
|
+
/* normalize component */
|
|
11226
|
+
|
|
11227
|
+
var context_menu_component = normalizeComponent(
|
|
11228
|
+
context_menu_context_menuvue_type_script_lang_js_,
|
|
11229
|
+
context_menuvue_type_template_id_4b3ffc6f_render,
|
|
11230
|
+
context_menuvue_type_template_id_4b3ffc6f_staticRenderFns,
|
|
11231
|
+
false,
|
|
11232
|
+
null,
|
|
11233
|
+
null,
|
|
11234
|
+
null
|
|
11235
|
+
|
|
11236
|
+
)
|
|
11237
|
+
|
|
11238
|
+
/* harmony default export */ const context_menu = (context_menu_component.exports);
|
|
11239
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu_constants.js
|
|
11240
|
+
const DEFAULT_CONSTANTS = null;
|
|
11241
|
+
/* harmony default export */ const context_menu_constants = ({
|
|
11242
|
+
DEFAULT_CONSTANTS
|
|
11243
|
+
});
|
|
11244
|
+
;// CONCATENATED MODULE: ./components/context_menu/index.js
|
|
11245
|
+
|
|
11246
|
+
|
|
11045
11247
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
11046
11248
|
|
|
11047
11249
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=fc19976e&
|
|
@@ -16804,8 +17006,8 @@ var root_layout_component = normalizeComponent(
|
|
|
16804
17006
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
16805
17007
|
|
|
16806
17008
|
|
|
16807
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
16808
|
-
var
|
|
17009
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=5ee1c401&
|
|
17010
|
+
var combobox_with_popovervue_type_template_id_5ee1c401_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-aria-label":_vm.listAriaLabel,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
16809
17011
|
var inputProps = ref.inputProps;
|
|
16810
17012
|
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"focusout":_vm.onFocusOut,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }return _vm.openOnArrowKeyPress($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }return _vm.openOnArrowKeyPress($event)}]}},[_vm._t("input",null,{"inputProps":inputProps,"onInput":_vm.handleDisplayList})],2)]}},{key:"list",fn:function(ref){
|
|
16811
17013
|
var opened = ref.opened;
|
|
@@ -16814,7 +17016,7 @@ var clearHighlightIndex = ref.clearHighlightIndex;
|
|
|
16814
17016
|
var isLoading = ref.isLoading;
|
|
16815
17017
|
var isListEmpty = ref.isListEmpty;
|
|
16816
17018
|
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header",on:{"focusout":_vm.onFocusOut}},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(isLoading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(isListEmpty)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
|
|
16817
|
-
var
|
|
17019
|
+
var combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns = []
|
|
16818
17020
|
|
|
16819
17021
|
|
|
16820
17022
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
|
|
@@ -16921,6 +17123,7 @@ var combobox_with_popovervue_type_template_id_108db852_staticRenderFns = []
|
|
|
16921
17123
|
|
|
16922
17124
|
|
|
16923
17125
|
|
|
17126
|
+
|
|
16924
17127
|
/* harmony default export */ const combobox_with_popovervue_type_script_lang_js_ = ({
|
|
16925
17128
|
name: 'DtRecipeComboboxWithPopover',
|
|
16926
17129
|
components: {
|
|
@@ -17208,8 +17411,8 @@ var combobox_with_popovervue_type_template_id_108db852_staticRenderFns = []
|
|
|
17208
17411
|
;
|
|
17209
17412
|
var combobox_with_popover_component = normalizeComponent(
|
|
17210
17413
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
17211
|
-
|
|
17212
|
-
|
|
17414
|
+
combobox_with_popovervue_type_template_id_5ee1c401_render,
|
|
17415
|
+
combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns,
|
|
17213
17416
|
false,
|
|
17214
17417
|
null,
|
|
17215
17418
|
null,
|
|
@@ -17873,8 +18076,8 @@ var combobox_multi_select_component = normalizeComponent(
|
|
|
17873
18076
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|
|
17874
18077
|
|
|
17875
18078
|
|
|
17876
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/list_items/contact_info/contact_info.vue?vue&type=template&id=
|
|
17877
|
-
var
|
|
18079
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/list_items/contact_info/contact_info.vue?vue&type=template&id=3f590359&
|
|
18080
|
+
var contact_infovue_type_template_id_3f590359_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-list-item',{attrs:{"id":_vm.id,"role":_vm.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:_vm._u([{key:"left",fn:function(){return [_c('div',{staticClass:"d-ps-relative",attrs:{"data-qa":"contact-info-left"}},[(_vm.avatarSrc)?_c('dt-avatar',{attrs:{"size":"lg","avatar-class":"d-bar2"}},[_c('img',{attrs:{"data-qa":"dt-contact-avatar","src":_vm.avatarSrc,"alt":_vm.avatarInitials}})]):(_vm.avatarInitials)?_c('dt-avatar',{attrs:{"kind":"initials","size":"lg","color":_vm.avatarColor}},[_vm._v(" "+_vm._s(_vm.avatarInitials)+" ")]):_vm._e(),(_vm.showUserStatus)?_c('div',{class:[
|
|
17878
18081
|
'd-ba',
|
|
17879
18082
|
'd-bc-white',
|
|
17880
18083
|
'd-baw2',
|
|
@@ -17885,7 +18088,7 @@ var contact_infovue_type_template_id_7091b031_render = function () {var _vm=this
|
|
|
17885
18088
|
'd-w20p',
|
|
17886
18089
|
'd-h20p',
|
|
17887
18090
|
_vm.USER_STATUS_COLOR_MODIFIERS[_vm.userStatusColor] ],attrs:{"data-qa":"contact-info-user-status"}},[_vm._v(" ")]):_vm._e()],1)]},proxy:true},{key:"default",fn:function(){return [_c('div',{attrs:{"data-qa":"contact-info-header"}},[_vm._t("header")],2)]},proxy:true},{key:"subtitle",fn:function(){return [_c('div',{attrs:{"data-qa":"contact-info-subtitle"}},[_vm._t("subtitle")],2)]},proxy:true},{key:"bottom",fn:function(){return [_c('div',{attrs:{"data-qa":"contact-info-bottom"}},[_vm._t("bottom")],2)]},proxy:true},{key:"right",fn:function(){return [_c('div',{attrs:{"data-qa":"contact-info-right"}},[_vm._t("right")],2)]},proxy:true}],null,true)})}
|
|
17888
|
-
var
|
|
18091
|
+
var contact_infovue_type_template_id_3f590359_staticRenderFns = []
|
|
17889
18092
|
|
|
17890
18093
|
|
|
17891
18094
|
;// CONCATENATED MODULE: ./recipes/list_items/contact_info/contact_info_constants.js
|
|
@@ -17980,7 +18183,6 @@ const USER_STATUS_COLOR_MODIFIERS = {
|
|
|
17980
18183
|
//
|
|
17981
18184
|
//
|
|
17982
18185
|
//
|
|
17983
|
-
//
|
|
17984
18186
|
|
|
17985
18187
|
|
|
17986
18188
|
|
|
@@ -18077,8 +18279,8 @@ const USER_STATUS_COLOR_MODIFIERS = {
|
|
|
18077
18279
|
;
|
|
18078
18280
|
var contact_info_component = normalizeComponent(
|
|
18079
18281
|
contact_info_contact_infovue_type_script_lang_js_,
|
|
18080
|
-
|
|
18081
|
-
|
|
18282
|
+
contact_infovue_type_template_id_3f590359_render,
|
|
18283
|
+
contact_infovue_type_template_id_3f590359_staticRenderFns,
|
|
18082
18284
|
false,
|
|
18083
18285
|
null,
|
|
18084
18286
|
null,
|
|
@@ -18218,6 +18420,7 @@ var top_banner_info_component = normalizeComponent(
|
|
|
18218
18420
|
|
|
18219
18421
|
|
|
18220
18422
|
|
|
18423
|
+
|
|
18221
18424
|
|
|
18222
18425
|
|
|
18223
18426
|
/// Recipes
|