@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.
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
+
/***/ 794:
|
|
5
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(481);
|
|
13
|
+
/* 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__);
|
|
14
|
+
/* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(400);
|
|
15
|
+
/* 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__);
|
|
16
|
+
// Imports
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
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()));
|
|
20
|
+
// Module
|
|
21
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".d-context-menu-list{width:24rem}", ""]);
|
|
22
|
+
// Exports
|
|
23
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
4
28
|
/***/ 771:
|
|
5
29
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
6
30
|
|
|
@@ -362,6 +386,22 @@ module.exports = function (i) {
|
|
|
362
386
|
|
|
363
387
|
/***/ }),
|
|
364
388
|
|
|
389
|
+
/***/ 488:
|
|
390
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
391
|
+
|
|
392
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
393
|
+
|
|
394
|
+
// load the styles
|
|
395
|
+
var content = __webpack_require__(794);
|
|
396
|
+
if(content.__esModule) content = content.default;
|
|
397
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
398
|
+
if(content.locals) module.exports = content.locals;
|
|
399
|
+
// add the styles to the DOM
|
|
400
|
+
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
401
|
+
var update = add("7f4a00dd", content, true, {"sourceMap":false,"shadowMode":false});
|
|
402
|
+
|
|
403
|
+
/***/ }),
|
|
404
|
+
|
|
365
405
|
/***/ 245:
|
|
366
406
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
367
407
|
|
|
@@ -893,6 +933,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
893
933
|
"DtCheckboxGroup": () => (/* reexport */ checkbox_group),
|
|
894
934
|
"DtChip": () => (/* reexport */ chip),
|
|
895
935
|
"DtCombobox": () => (/* reexport */ combobox),
|
|
936
|
+
"DtContextMenu": () => (/* reexport */ context_menu),
|
|
896
937
|
"DtDropdown": () => (/* reexport */ dropdown),
|
|
897
938
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
898
939
|
"DtInput": () => (/* reexport */ input_input),
|
|
@@ -1917,7 +1958,7 @@ const INVALID_COMBINATION = [{
|
|
|
1917
1958
|
}];
|
|
1918
1959
|
|
|
1919
1960
|
function _invalidCombinationMessage(circle, kind, importance) {
|
|
1920
|
-
return "You cannot
|
|
1961
|
+
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");
|
|
1921
1962
|
}
|
|
1922
1963
|
|
|
1923
1964
|
/* harmony default export */ const button_constants = ({
|
|
@@ -3062,9 +3103,9 @@ var button_group_component = normalizeComponent(
|
|
|
3062
3103
|
;// CONCATENATED MODULE: ./components/button_group/index.js
|
|
3063
3104
|
|
|
3064
3105
|
|
|
3065
|
-
;// 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=
|
|
3066
|
-
var
|
|
3067
|
-
var
|
|
3106
|
+
;// 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&
|
|
3107
|
+
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()])}
|
|
3108
|
+
var comboboxvue_type_template_id_25daf05b_staticRenderFns = []
|
|
3068
3109
|
|
|
3069
3110
|
|
|
3070
3111
|
;// CONCATENATED MODULE: ./common/mixins/dom.js
|
|
@@ -4820,6 +4861,7 @@ var combobox_empty_list_component = normalizeComponent(
|
|
|
4820
4861
|
},
|
|
4821
4862
|
|
|
4822
4863
|
activeItemEl() {
|
|
4864
|
+
if (!this.highlightId) return '';
|
|
4823
4865
|
return this.getListElement().querySelector('#' + this.highlightId);
|
|
4824
4866
|
}
|
|
4825
4867
|
|
|
@@ -4943,8 +4985,8 @@ var combobox_empty_list_component = normalizeComponent(
|
|
|
4943
4985
|
;
|
|
4944
4986
|
var combobox_component = normalizeComponent(
|
|
4945
4987
|
combobox_comboboxvue_type_script_lang_js_,
|
|
4946
|
-
|
|
4947
|
-
|
|
4988
|
+
comboboxvue_type_template_id_25daf05b_render,
|
|
4989
|
+
comboboxvue_type_template_id_25daf05b_staticRenderFns,
|
|
4948
4990
|
false,
|
|
4949
4991
|
null,
|
|
4950
4992
|
null,
|
|
@@ -4955,17 +4997,26 @@ var combobox_component = normalizeComponent(
|
|
|
4955
4997
|
/* harmony default export */ const combobox = (combobox_component.exports);
|
|
4956
4998
|
;// CONCATENATED MODULE: ./components/combobox/index.js
|
|
4957
4999
|
|
|
4958
|
-
;// 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/
|
|
4959
|
-
var
|
|
5000
|
+
;// 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&
|
|
5001
|
+
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){
|
|
5002
|
+
var attrs = ref.attrs;
|
|
5003
|
+
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){
|
|
5004
|
+
var close = ref.close;
|
|
5005
|
+
return [_c('div',{staticClass:"d-context-menu-list"},[_vm._t("list",null,{"close":close})],2)]}}],null,true)})}
|
|
5006
|
+
var context_menuvue_type_template_id_4b3ffc6f_staticRenderFns = []
|
|
5007
|
+
|
|
5008
|
+
|
|
5009
|
+
;// 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&
|
|
5010
|
+
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){
|
|
4960
5011
|
var attrs = ref.attrs;
|
|
4961
5012
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
4962
5013
|
var close = ref.close;
|
|
4963
5014
|
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))}
|
|
4964
|
-
var
|
|
5015
|
+
var dropdownvue_type_template_id_03fdf47c_staticRenderFns = []
|
|
4965
5016
|
|
|
4966
5017
|
|
|
4967
|
-
;// 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=
|
|
4968
|
-
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/popover/popover.vue?vue&type=template&id=d3da038c&
|
|
5019
|
+
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":{
|
|
4969
5020
|
'aria-expanded': _vm.isOpen.toString(),
|
|
4970
5021
|
'aria-controls': _vm.id,
|
|
4971
5022
|
'aria-haspopup': _vm.role,
|
|
@@ -4976,7 +5027,7 @@ var popovervue_type_template_id_27ddd8bc_render = function () {var _vm=this;var
|
|
|
4976
5027
|
'd-popover__content',
|
|
4977
5028
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
4978
5029
|
_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)}
|
|
4979
|
-
var
|
|
5030
|
+
var popovervue_type_template_id_d3da038c_staticRenderFns = []
|
|
4980
5031
|
|
|
4981
5032
|
|
|
4982
5033
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -9380,6 +9431,7 @@ const getArrowDetected = fn => ({
|
|
|
9380
9431
|
|
|
9381
9432
|
const BASE_TIPPY_DIRECTIONS = ['bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'top', 'top-start', 'top-end'];
|
|
9382
9433
|
const TIPPY_STICKY_VALUES = [true, false, 'reference', 'popper'];
|
|
9434
|
+
const TIPPY_FOLLOW_CURSOR_VALUES = [true, false, 'vertical', 'horizontal', 'initial'];
|
|
9383
9435
|
const tippy_utils_createTippy = (anchorElement, options) => {
|
|
9384
9436
|
const {
|
|
9385
9437
|
contentElement
|
|
@@ -9387,7 +9439,7 @@ const tippy_utils_createTippy = (anchorElement, options) => {
|
|
|
9387
9439
|
};
|
|
9388
9440
|
delete options.contentElement;
|
|
9389
9441
|
return tippy_esm(anchorElement, { ...options,
|
|
9390
|
-
plugins: [sticky],
|
|
9442
|
+
plugins: [sticky, followCursor],
|
|
9391
9443
|
render: () => getContentWrapper(contentElement)
|
|
9392
9444
|
});
|
|
9393
9445
|
};
|
|
@@ -9473,6 +9525,7 @@ const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
|
9473
9525
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
9474
9526
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
9475
9527
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
9528
|
+
const POPOVER_FOLLOW_CURSOR_VALUES = [...TIPPY_FOLLOW_CURSOR_VALUES];
|
|
9476
9529
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
9477
9530
|
;// 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&
|
|
9478
9531
|
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)])}
|
|
@@ -10216,6 +10269,20 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
10216
10269
|
}
|
|
10217
10270
|
},
|
|
10218
10271
|
|
|
10272
|
+
/**
|
|
10273
|
+
* Determines if the popover follows the user's mouse cursor.
|
|
10274
|
+
* `true` enables it, `vertical` or `horizontal` only follows the cursor on a single axis,
|
|
10275
|
+
* `initial` will place the popover at the initial cursor position upon show, but prevent
|
|
10276
|
+
* following it.
|
|
10277
|
+
*/
|
|
10278
|
+
followCursor: {
|
|
10279
|
+
type: [Boolean, String],
|
|
10280
|
+
default: false,
|
|
10281
|
+
validator: followCursor => {
|
|
10282
|
+
return POPOVER_FOLLOW_CURSOR_VALUES.includes(followCursor);
|
|
10283
|
+
}
|
|
10284
|
+
},
|
|
10285
|
+
|
|
10219
10286
|
/**
|
|
10220
10287
|
* Determines maximum height for the popover before overflow.
|
|
10221
10288
|
* Possible units rem|px|em
|
|
@@ -10346,6 +10413,12 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
10346
10413
|
});
|
|
10347
10414
|
},
|
|
10348
10415
|
|
|
10416
|
+
followCursor(followCursor) {
|
|
10417
|
+
this.tip.setProps({
|
|
10418
|
+
followCursor
|
|
10419
|
+
});
|
|
10420
|
+
},
|
|
10421
|
+
|
|
10349
10422
|
fallbackPlacements() {
|
|
10350
10423
|
this.tip.setProps({
|
|
10351
10424
|
popperOptions: this.popperOptions()
|
|
@@ -10403,6 +10476,7 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
10403
10476
|
placement: this.placement,
|
|
10404
10477
|
offset: this.offset,
|
|
10405
10478
|
sticky: this.sticky,
|
|
10479
|
+
followCursor: this.followCursor,
|
|
10406
10480
|
appendTo: document.body,
|
|
10407
10481
|
interactive: true,
|
|
10408
10482
|
trigger: 'manual',
|
|
@@ -10632,8 +10706,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
|
|
|
10632
10706
|
|
|
10633
10707
|
var popover_component = normalizeComponent(
|
|
10634
10708
|
popover_popovervue_type_script_lang_js_,
|
|
10635
|
-
|
|
10636
|
-
|
|
10709
|
+
popovervue_type_template_id_d3da038c_render,
|
|
10710
|
+
popovervue_type_template_id_d3da038c_staticRenderFns,
|
|
10637
10711
|
false,
|
|
10638
10712
|
null,
|
|
10639
10713
|
null,
|
|
@@ -10704,6 +10778,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
10704
10778
|
//
|
|
10705
10779
|
//
|
|
10706
10780
|
//
|
|
10781
|
+
//
|
|
10707
10782
|
|
|
10708
10783
|
|
|
10709
10784
|
|
|
@@ -10819,6 +10894,17 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
10819
10894
|
}
|
|
10820
10895
|
},
|
|
10821
10896
|
|
|
10897
|
+
/**
|
|
10898
|
+
* Determines if the dropdown follows the user's mouse cursor.
|
|
10899
|
+
* `true` enables it, `vertical` or `horizontal` only follows the cursor on a single axis,
|
|
10900
|
+
* `initial` will place the dropdown at the initial cursor position upon show, but prevent
|
|
10901
|
+
* following it.
|
|
10902
|
+
*/
|
|
10903
|
+
followCursor: {
|
|
10904
|
+
type: [Boolean, String],
|
|
10905
|
+
default: false
|
|
10906
|
+
},
|
|
10907
|
+
|
|
10822
10908
|
/**
|
|
10823
10909
|
* The direction the dropdown displays relative to the anchor.
|
|
10824
10910
|
*/
|
|
@@ -10898,7 +10984,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
10898
10984
|
onMouseHighlight(e) {
|
|
10899
10985
|
const liElement = e.target.closest('li');
|
|
10900
10986
|
|
|
10901
|
-
if (liElement && this.highlightId !== liElement.id) {
|
|
10987
|
+
if (liElement && liElement.role && this.highlightId !== liElement.id) {
|
|
10902
10988
|
this.setHighlightId(liElement.id);
|
|
10903
10989
|
liElement.focus();
|
|
10904
10990
|
}
|
|
@@ -11014,8 +11100,8 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
11014
11100
|
;
|
|
11015
11101
|
var dropdown_component = normalizeComponent(
|
|
11016
11102
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
11017
|
-
|
|
11018
|
-
|
|
11103
|
+
dropdownvue_type_template_id_03fdf47c_render,
|
|
11104
|
+
dropdownvue_type_template_id_03fdf47c_staticRenderFns,
|
|
11019
11105
|
false,
|
|
11020
11106
|
null,
|
|
11021
11107
|
null,
|
|
@@ -11024,6 +11110,122 @@ var dropdown_component = normalizeComponent(
|
|
|
11024
11110
|
)
|
|
11025
11111
|
|
|
11026
11112
|
/* harmony default export */ const dropdown = (dropdown_component.exports);
|
|
11113
|
+
;// CONCATENATED MODULE: ./components/dropdown/dropdown_story_constants.js
|
|
11114
|
+
const DROPDOWN_STORY_ITEMS = [{
|
|
11115
|
+
name: 'Menu item 1',
|
|
11116
|
+
id: 1
|
|
11117
|
+
}, {
|
|
11118
|
+
name: 'Menu item 2',
|
|
11119
|
+
id: 2
|
|
11120
|
+
}, {
|
|
11121
|
+
name: 'Another menu item 1',
|
|
11122
|
+
id: 3
|
|
11123
|
+
}, {
|
|
11124
|
+
name: 'Menu item 3',
|
|
11125
|
+
id: 4
|
|
11126
|
+
}, {
|
|
11127
|
+
name: 'Another menu item 2',
|
|
11128
|
+
id: 5
|
|
11129
|
+
}];
|
|
11130
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[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&
|
|
11131
|
+
//
|
|
11132
|
+
//
|
|
11133
|
+
//
|
|
11134
|
+
//
|
|
11135
|
+
//
|
|
11136
|
+
//
|
|
11137
|
+
//
|
|
11138
|
+
//
|
|
11139
|
+
//
|
|
11140
|
+
//
|
|
11141
|
+
//
|
|
11142
|
+
//
|
|
11143
|
+
//
|
|
11144
|
+
//
|
|
11145
|
+
//
|
|
11146
|
+
//
|
|
11147
|
+
//
|
|
11148
|
+
//
|
|
11149
|
+
//
|
|
11150
|
+
//
|
|
11151
|
+
//
|
|
11152
|
+
//
|
|
11153
|
+
//
|
|
11154
|
+
//
|
|
11155
|
+
//
|
|
11156
|
+
//
|
|
11157
|
+
//
|
|
11158
|
+
//
|
|
11159
|
+
//
|
|
11160
|
+
//
|
|
11161
|
+
//
|
|
11162
|
+
|
|
11163
|
+
|
|
11164
|
+
|
|
11165
|
+
|
|
11166
|
+
/* harmony default export */ const context_menuvue_type_script_lang_js_ = ({
|
|
11167
|
+
name: 'DtContextMenu',
|
|
11168
|
+
components: {
|
|
11169
|
+
DtDropdown: dropdown,
|
|
11170
|
+
DtButton: button_button,
|
|
11171
|
+
DtListItem: list_item
|
|
11172
|
+
},
|
|
11173
|
+
props: {},
|
|
11174
|
+
|
|
11175
|
+
data() {
|
|
11176
|
+
return {
|
|
11177
|
+
isOpen: false
|
|
11178
|
+
};
|
|
11179
|
+
},
|
|
11180
|
+
|
|
11181
|
+
computed: {
|
|
11182
|
+
items() {
|
|
11183
|
+
return DROPDOWN_STORY_ITEMS;
|
|
11184
|
+
}
|
|
11185
|
+
|
|
11186
|
+
},
|
|
11187
|
+
methods: {
|
|
11188
|
+
showMenu() {
|
|
11189
|
+
this.isOpen = true;
|
|
11190
|
+
}
|
|
11191
|
+
|
|
11192
|
+
}
|
|
11193
|
+
});
|
|
11194
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu.vue?vue&type=script&lang=js&
|
|
11195
|
+
/* harmony default export */ const context_menu_context_menuvue_type_script_lang_js_ = (context_menuvue_type_script_lang_js_);
|
|
11196
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32[0].rules[0].use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-32[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-32[0].rules[0].use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32[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&
|
|
11197
|
+
var context_menuvue_type_style_index_0_lang_less_ = __webpack_require__(488);
|
|
11198
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu.vue?vue&type=style&index=0&lang=less&
|
|
11199
|
+
|
|
11200
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu.vue
|
|
11201
|
+
|
|
11202
|
+
|
|
11203
|
+
|
|
11204
|
+
;
|
|
11205
|
+
|
|
11206
|
+
|
|
11207
|
+
/* normalize component */
|
|
11208
|
+
|
|
11209
|
+
var context_menu_component = normalizeComponent(
|
|
11210
|
+
context_menu_context_menuvue_type_script_lang_js_,
|
|
11211
|
+
context_menuvue_type_template_id_4b3ffc6f_render,
|
|
11212
|
+
context_menuvue_type_template_id_4b3ffc6f_staticRenderFns,
|
|
11213
|
+
false,
|
|
11214
|
+
null,
|
|
11215
|
+
null,
|
|
11216
|
+
null
|
|
11217
|
+
|
|
11218
|
+
)
|
|
11219
|
+
|
|
11220
|
+
/* harmony default export */ const context_menu = (context_menu_component.exports);
|
|
11221
|
+
;// CONCATENATED MODULE: ./components/context_menu/context_menu_constants.js
|
|
11222
|
+
const DEFAULT_CONSTANTS = null;
|
|
11223
|
+
/* harmony default export */ const context_menu_constants = ({
|
|
11224
|
+
DEFAULT_CONSTANTS
|
|
11225
|
+
});
|
|
11226
|
+
;// CONCATENATED MODULE: ./components/context_menu/index.js
|
|
11227
|
+
|
|
11228
|
+
|
|
11027
11229
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
11028
11230
|
|
|
11029
11231
|
;// 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&
|
|
@@ -16786,8 +16988,8 @@ var root_layout_component = normalizeComponent(
|
|
|
16786
16988
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
16787
16989
|
|
|
16788
16990
|
|
|
16789
|
-
;// 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=
|
|
16790
|
-
var
|
|
16991
|
+
;// 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&
|
|
16992
|
+
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){
|
|
16791
16993
|
var inputProps = ref.inputProps;
|
|
16792
16994
|
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){
|
|
16793
16995
|
var opened = ref.opened;
|
|
@@ -16796,7 +16998,7 @@ var clearHighlightIndex = ref.clearHighlightIndex;
|
|
|
16796
16998
|
var isLoading = ref.isLoading;
|
|
16797
16999
|
var isListEmpty = ref.isListEmpty;
|
|
16798
17000
|
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))}
|
|
16799
|
-
var
|
|
17001
|
+
var combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns = []
|
|
16800
17002
|
|
|
16801
17003
|
|
|
16802
17004
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[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&
|
|
@@ -16903,6 +17105,7 @@ var combobox_with_popovervue_type_template_id_108db852_staticRenderFns = []
|
|
|
16903
17105
|
|
|
16904
17106
|
|
|
16905
17107
|
|
|
17108
|
+
|
|
16906
17109
|
/* harmony default export */ const combobox_with_popovervue_type_script_lang_js_ = ({
|
|
16907
17110
|
name: 'DtRecipeComboboxWithPopover',
|
|
16908
17111
|
components: {
|
|
@@ -17190,8 +17393,8 @@ var combobox_with_popovervue_type_template_id_108db852_staticRenderFns = []
|
|
|
17190
17393
|
;
|
|
17191
17394
|
var combobox_with_popover_component = normalizeComponent(
|
|
17192
17395
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
17193
|
-
|
|
17194
|
-
|
|
17396
|
+
combobox_with_popovervue_type_template_id_5ee1c401_render,
|
|
17397
|
+
combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns,
|
|
17195
17398
|
false,
|
|
17196
17399
|
null,
|
|
17197
17400
|
null,
|
|
@@ -17855,8 +18058,8 @@ var combobox_multi_select_component = normalizeComponent(
|
|
|
17855
18058
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|
|
17856
18059
|
|
|
17857
18060
|
|
|
17858
|
-
;// 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=
|
|
17859
|
-
var
|
|
18061
|
+
;// 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&
|
|
18062
|
+
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:[
|
|
17860
18063
|
'd-ba',
|
|
17861
18064
|
'd-bc-white',
|
|
17862
18065
|
'd-baw2',
|
|
@@ -17867,7 +18070,7 @@ var contact_infovue_type_template_id_7091b031_render = function () {var _vm=this
|
|
|
17867
18070
|
'd-w20p',
|
|
17868
18071
|
'd-h20p',
|
|
17869
18072
|
_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)})}
|
|
17870
|
-
var
|
|
18073
|
+
var contact_infovue_type_template_id_3f590359_staticRenderFns = []
|
|
17871
18074
|
|
|
17872
18075
|
|
|
17873
18076
|
;// CONCATENATED MODULE: ./recipes/list_items/contact_info/contact_info_constants.js
|
|
@@ -17962,7 +18165,6 @@ const USER_STATUS_COLOR_MODIFIERS = {
|
|
|
17962
18165
|
//
|
|
17963
18166
|
//
|
|
17964
18167
|
//
|
|
17965
|
-
//
|
|
17966
18168
|
|
|
17967
18169
|
|
|
17968
18170
|
|
|
@@ -18059,8 +18261,8 @@ const USER_STATUS_COLOR_MODIFIERS = {
|
|
|
18059
18261
|
;
|
|
18060
18262
|
var contact_info_component = normalizeComponent(
|
|
18061
18263
|
contact_info_contact_infovue_type_script_lang_js_,
|
|
18062
|
-
|
|
18063
|
-
|
|
18264
|
+
contact_infovue_type_template_id_3f590359_render,
|
|
18265
|
+
contact_infovue_type_template_id_3f590359_staticRenderFns,
|
|
18064
18266
|
false,
|
|
18065
18267
|
null,
|
|
18066
18268
|
null,
|
|
@@ -18200,6 +18402,7 @@ var top_banner_info_component = normalizeComponent(
|
|
|
18200
18402
|
|
|
18201
18403
|
|
|
18202
18404
|
|
|
18405
|
+
|
|
18203
18406
|
|
|
18204
18407
|
|
|
18205
18408
|
/// Recipes
|