@dialpad/dialtone-vue 2.58.0 → 2.59.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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +21 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +132 -64
- package/dist/dialtone-vue.umd.js +132 -64
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +4 -4
|
@@ -2231,6 +2231,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2231
2231
|
"DtNotice": () => (/* reexport */ notice),
|
|
2232
2232
|
"DtPagination": () => (/* reexport */ pagination),
|
|
2233
2233
|
"DtPopover": () => (/* reexport */ popover),
|
|
2234
|
+
"DtPresence": () => (/* reexport */ presence),
|
|
2234
2235
|
"DtRadio": () => (/* reexport */ radio_radio),
|
|
2235
2236
|
"DtRadioGroup": () => (/* reexport */ radio_group),
|
|
2236
2237
|
"DtRecipeCallbarButton": () => (/* reexport */ callbar_button),
|
|
@@ -2279,6 +2280,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2279
2280
|
"POPOVER_INITIAL_FOCUS_STRINGS": () => (/* reexport */ POPOVER_INITIAL_FOCUS_STRINGS),
|
|
2280
2281
|
"POPOVER_PADDING_CLASSES": () => (/* reexport */ POPOVER_PADDING_CLASSES),
|
|
2281
2282
|
"POPOVER_ROLES": () => (/* reexport */ POPOVER_ROLES),
|
|
2283
|
+
"PRESENCE_STATES": () => (/* reexport */ PRESENCE_STATES),
|
|
2284
|
+
"PRESENCE_STATES_LIST": () => (/* reexport */ PRESENCE_STATES_LIST),
|
|
2282
2285
|
"ROOT_LAYOUT_SIDEBAR_POSITIONS": () => (/* reexport */ ROOT_LAYOUT_SIDEBAR_POSITIONS),
|
|
2283
2286
|
"SELECT_SIZE_MODIFIERS": () => (/* reexport */ SELECT_SIZE_MODIFIERS),
|
|
2284
2287
|
"SELECT_STATE_MODIFIERS": () => (/* reexport */ SELECT_STATE_MODIFIERS),
|
|
@@ -2325,7 +2328,7 @@ if (typeof window !== 'undefined') {
|
|
|
2325
2328
|
// Indicate to webpack that this file can be concatenated
|
|
2326
2329
|
/* harmony default export */ const setPublicPath = (null);
|
|
2327
2330
|
|
|
2328
|
-
;// 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/avatar/avatar.vue?vue&type=template&id=
|
|
2331
|
+
;// 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/avatar/avatar.vue?vue&type=template&id=39b70ea2&
|
|
2329
2332
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.avatarClasses,style:(_vm.initialKindStyle),attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_c('div',{ref:"canvas",staticClass:"d-avatar__canvas"},[(_vm.showDefaultSlot)?_vm._t("default"):(_vm.showInitials)?_c('span',{class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({class:[
|
|
2330
2333
|
'd-avatar__presence',
|
|
2331
2334
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -2553,14 +2556,14 @@ const pascalCaseToKebabCase = string => {
|
|
|
2553
2556
|
flushPromises,
|
|
2554
2557
|
kebabCaseToPascalCase
|
|
2555
2558
|
});
|
|
2556
|
-
;// 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/presence/presence.vue?vue&type=template&id=
|
|
2557
|
-
var
|
|
2559
|
+
;// 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/presence/presence.vue?vue&type=template&id=77957bb3&
|
|
2560
|
+
var presencevue_type_template_id_77957bb3_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-presence",attrs:{"data-qa":"dt-presence","role":"status","aria-live":_vm.$attrs.ariaLive || 'off'}},[(_vm.srText)?_c('span',{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[_vm._v(_vm._s(_vm.srText)+" ")]):_vm._e(),_c('div',{staticClass:"d-presence__inner",class:{
|
|
2558
2561
|
'd-presence__inner--active': _vm.presence === 'active',
|
|
2559
2562
|
'd-presence__inner--away': _vm.presence === 'away',
|
|
2560
2563
|
'd-presence__inner--busy': _vm.presence === 'busy',
|
|
2561
2564
|
'd-presence__inner--offline': _vm.presence === 'offline',
|
|
2562
2565
|
}})])}
|
|
2563
|
-
var
|
|
2566
|
+
var presencevue_type_template_id_77957bb3_staticRenderFns = []
|
|
2564
2567
|
|
|
2565
2568
|
|
|
2566
2569
|
;// CONCATENATED MODULE: ./components/presence/presence_constants.js
|
|
@@ -2603,11 +2606,12 @@ const PRESENCE_STATES_LIST = [PRESENCE_STATES.BUSY, PRESENCE_STATES.AWAY, PRESEN
|
|
|
2603
2606
|
*/
|
|
2604
2607
|
|
|
2605
2608
|
/* harmony default export */ const presencevue_type_script_lang_js_ = ({
|
|
2606
|
-
name: '
|
|
2609
|
+
name: 'DtPresence',
|
|
2607
2610
|
props: {
|
|
2608
2611
|
/**
|
|
2609
2612
|
* Determines the color of the inner presence circle, indicating status.
|
|
2610
2613
|
* Accepts one of 4 values: 'busy', 'away', 'active', 'offline'
|
|
2614
|
+
* @values busy, away, active, offline
|
|
2611
2615
|
*/
|
|
2612
2616
|
presence: {
|
|
2613
2617
|
type: String,
|
|
@@ -2740,8 +2744,8 @@ function normalizeComponent (
|
|
|
2740
2744
|
;
|
|
2741
2745
|
var component = normalizeComponent(
|
|
2742
2746
|
presence_presencevue_type_script_lang_js_,
|
|
2743
|
-
|
|
2744
|
-
|
|
2747
|
+
presencevue_type_template_id_77957bb3_render,
|
|
2748
|
+
presencevue_type_template_id_77957bb3_staticRenderFns,
|
|
2745
2749
|
false,
|
|
2746
2750
|
null,
|
|
2747
2751
|
null,
|
|
@@ -2894,6 +2898,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
2894
2898
|
* Determines whether to show the presence indicator for
|
|
2895
2899
|
* Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
|
|
2896
2900
|
* or 'active'. By default, it's null and nothing is shown.
|
|
2901
|
+
* @values null, busy, away, offline, active
|
|
2897
2902
|
*/
|
|
2898
2903
|
presence: {
|
|
2899
2904
|
type: String,
|
|
@@ -5605,13 +5610,13 @@ var combobox_loading_listvue_type_template_id_07d9971d_render = function () {var
|
|
|
5605
5610
|
var combobox_loading_listvue_type_template_id_07d9971d_staticRenderFns = []
|
|
5606
5611
|
|
|
5607
5612
|
|
|
5608
|
-
;// 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/list_item/list_item.vue?vue&type=template&id=
|
|
5609
|
-
var
|
|
5613
|
+
;// 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/list_item/list_item.vue?vue&type=template&id=1de8fea6&
|
|
5614
|
+
var list_itemvue_type_template_id_1de8fea6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,_vm._g({tag:"component",class:['dt-list-item d-ls-none', {
|
|
5610
5615
|
'dt-list-item--focusable': _vm.isFocusable,
|
|
5611
5616
|
'dt-list-item--highlighted': _vm.isHighlighted,
|
|
5612
5617
|
'dt-list-item--static': !_vm.isHoverable,
|
|
5613
5618
|
}],attrs:{"id":_vm.id,"tabindex":_vm.isFocusable ? 0 : -1,"role":_vm.role,"aria-selected":_vm.isHighlighted}},_vm.listItemListeners),[(_vm.listItemType)?_c(_vm.listItemType,{tag:"component",scopedSlots:_vm._u([_vm._l((_vm.$slots),function(_,slotName){return {key:slotName,fn:function(){return [_vm._t(slotName)]},proxy:true}}),(_vm.selected)?{key:"selected",fn:function(){return [_c('dt-icon',{staticClass:"d-ml8",attrs:{"name":"check","size":"400"}})]},proxy:true}:null],null,true)}):_vm._t("default")],2)}
|
|
5614
|
-
var
|
|
5619
|
+
var list_itemvue_type_template_id_1de8fea6_staticRenderFns = []
|
|
5615
5620
|
|
|
5616
5621
|
|
|
5617
5622
|
;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
|
|
@@ -5628,9 +5633,9 @@ const LIST_ITEM_NAVIGATION_TYPES = {
|
|
|
5628
5633
|
LIST_ITEM_TYPES,
|
|
5629
5634
|
LIST_ITEM_NAVIGATION_TYPES
|
|
5630
5635
|
});
|
|
5631
|
-
;// 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/list_item/default_list_item.vue?vue&type=template&id=
|
|
5632
|
-
var
|
|
5633
|
-
var
|
|
5636
|
+
;// 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/list_item/default_list_item.vue?vue&type=template&id=37a42626&
|
|
5637
|
+
var default_list_itemvue_type_template_id_37a42626_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[(_vm.$slots.left)?_c('section',{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[_vm._t("left")],2):_vm._e(),_c('section',{staticClass:"d-fl-grow1 d-of-hidden"},[(_vm.$slots.default)?_c('div',[_vm._t("default")],2):_vm._e(),(_vm.$slots.subtitle)?_c('div',{class:['d-fs-100 d-fc-black-600', { 'd-mtn2': _vm.$slots.default }],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[_vm._t("subtitle")],2):_vm._e(),(_vm.$slots.bottom)?_c('div',{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[_vm._t("bottom")],2):_vm._e()]),(_vm.$slots.right)?_c('section',{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[_vm._t("right")],2):_vm._e(),_vm._t("selected")],2)}
|
|
5638
|
+
var default_list_itemvue_type_template_id_37a42626_staticRenderFns = []
|
|
5634
5639
|
|
|
5635
5640
|
|
|
5636
5641
|
;// 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/list_item/default_list_item.vue?vue&type=script&lang=js&
|
|
@@ -5679,7 +5684,7 @@ var default_list_itemvue_type_template_id_2e45cfbd_staticRenderFns = []
|
|
|
5679
5684
|
//
|
|
5680
5685
|
//
|
|
5681
5686
|
/* harmony default export */ const default_list_itemvue_type_script_lang_js_ = ({
|
|
5682
|
-
name: '
|
|
5687
|
+
name: 'DtDefaultListItem'
|
|
5683
5688
|
});
|
|
5684
5689
|
;// CONCATENATED MODULE: ./components/list_item/default_list_item.vue?vue&type=script&lang=js&
|
|
5685
5690
|
/* harmony default export */ const list_item_default_list_itemvue_type_script_lang_js_ = (default_list_itemvue_type_script_lang_js_);
|
|
@@ -5698,8 +5703,8 @@ var default_list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(986
|
|
|
5698
5703
|
|
|
5699
5704
|
var default_list_item_component = normalizeComponent(
|
|
5700
5705
|
list_item_default_list_itemvue_type_script_lang_js_,
|
|
5701
|
-
|
|
5702
|
-
|
|
5706
|
+
default_list_itemvue_type_template_id_37a42626_render,
|
|
5707
|
+
default_list_itemvue_type_template_id_37a42626_staticRenderFns,
|
|
5703
5708
|
false,
|
|
5704
5709
|
null,
|
|
5705
5710
|
null,
|
|
@@ -5761,7 +5766,7 @@ var default_list_item_component = normalizeComponent(
|
|
|
5761
5766
|
*/
|
|
5762
5767
|
|
|
5763
5768
|
/* harmony default export */ const list_itemvue_type_script_lang_js_ = ({
|
|
5764
|
-
name: '
|
|
5769
|
+
name: 'DtListItem',
|
|
5765
5770
|
components: {
|
|
5766
5771
|
DtDefaultListItem: default_list_item,
|
|
5767
5772
|
DtIcon: icon
|
|
@@ -5960,8 +5965,8 @@ var list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(502);
|
|
|
5960
5965
|
|
|
5961
5966
|
var list_item_component = normalizeComponent(
|
|
5962
5967
|
list_item_list_itemvue_type_script_lang_js_,
|
|
5963
|
-
|
|
5964
|
-
|
|
5968
|
+
list_itemvue_type_template_id_1de8fea6_render,
|
|
5969
|
+
list_itemvue_type_template_id_1de8fea6_staticRenderFns,
|
|
5965
5970
|
false,
|
|
5966
5971
|
null,
|
|
5967
5972
|
null,
|
|
@@ -8086,28 +8091,28 @@ var collapsible_component = normalizeComponent(
|
|
|
8086
8091
|
/* harmony default export */ const collapsible = (collapsible_component.exports);
|
|
8087
8092
|
;// CONCATENATED MODULE: ./components/collapsible/index.js
|
|
8088
8093
|
|
|
8089
|
-
;// 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=
|
|
8090
|
-
var
|
|
8094
|
+
;// 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=359f1c8b&
|
|
8095
|
+
var dropdownvue_type_template_id_359f1c8b_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","append-to":_vm.appendTo,"modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":_vm.shouldOpenWithArrowKeys,"open-on-context":_vm.openOnContext},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
|
|
8091
8096
|
var attrs = ref.attrs;
|
|
8092
8097
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
8093
8098
|
var close = ref.close;
|
|
8094
8099
|
return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,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}),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"tabindex":_vm.isArrowKeyNav ? -1 : 0},on:{"close":close}}):_vm._e()],2)]}}],null,true)},_vm.dropdownListeners))}
|
|
8095
|
-
var
|
|
8100
|
+
var dropdownvue_type_template_id_359f1c8b_staticRenderFns = []
|
|
8096
8101
|
|
|
8097
8102
|
|
|
8098
|
-
;// 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=
|
|
8099
|
-
var
|
|
8103
|
+
;// 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=cdba9054&
|
|
8104
|
+
var popovervue_type_template_id_cdba9054_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--opened': _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","tabindex":_vm.openOnContext ? 0 : undefined},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"contextmenu":_vm.onContext,"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)}],"!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":{
|
|
8100
8105
|
'aria-expanded': _vm.isOpen.toString(),
|
|
8101
8106
|
'aria-controls': _vm.id,
|
|
8102
8107
|
'aria-haspopup': _vm.role,
|
|
8103
8108
|
}})],2),_c('dt-lazy-show',_vm._g({ref:"content",class:['d-popover__dialog', { 'd-popover__dialog--modal': _vm.modal }, _vm.dialogClass],style:({
|
|
8104
|
-
'max-height': _vm.
|
|
8109
|
+
'max-height': _vm.calculatedMaxHeight,
|
|
8105
8110
|
'max-width': _vm.maxWidth,
|
|
8106
8111
|
}),attrs:{"id":_vm.id,"role":_vm.role,"data-qa":"dt-popover","aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":("" + (!_vm.modal)),"transition":_vm.transition,"show":_vm.isOpen,"tabindex":_vm.contentTabindex,"appear":""}},_vm.popoverListeners),[(_vm.$slots.headerContent || _vm.showCloseButton)?_c('popover-header-footer',{ref:"popover__header",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"content-class":_vm.headerClass,"type":"header","show-close-button":_vm.showCloseButton,"close-button-props":_vm.closeButtonProps},on:{"close":_vm.closePopover},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("headerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),_c('div',{ref:"popover__content",class:[
|
|
8107
8112
|
'd-popover__content',
|
|
8108
8113
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
8109
8114
|
_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(),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel},on:{"close":_vm.closePopover}}):_vm._e()],1)],1)],1)}
|
|
8110
|
-
var
|
|
8115
|
+
var popovervue_type_template_id_cdba9054_staticRenderFns = []
|
|
8111
8116
|
|
|
8112
8117
|
|
|
8113
8118
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -12603,7 +12608,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
|
12603
12608
|
const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
12604
12609
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
12605
12610
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
12606
|
-
const POPOVER_APPEND_TO_VALUES = ['parent'];
|
|
12611
|
+
const POPOVER_APPEND_TO_VALUES = ['parent', 'body'];
|
|
12607
12612
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
12608
12613
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
12609
12614
|
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
@@ -13389,11 +13394,12 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13389
13394
|
|
|
13390
13395
|
/**
|
|
13391
13396
|
* Sets the element to which the popover is going to append to.
|
|
13392
|
-
*
|
|
13397
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
13398
|
+
* @values 'body', 'parent', HTMLElement,
|
|
13393
13399
|
*/
|
|
13394
13400
|
appendTo: {
|
|
13395
13401
|
type: [HTMLElement, String],
|
|
13396
|
-
default:
|
|
13402
|
+
default: 'body',
|
|
13397
13403
|
validator: appendTo => {
|
|
13398
13404
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
13399
13405
|
}
|
|
@@ -13419,6 +13425,8 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13419
13425
|
return {
|
|
13420
13426
|
POPOVER_PADDING_CLASSES: POPOVER_PADDING_CLASSES,
|
|
13421
13427
|
POPOVER_HEADER_FOOTER_PADDING_CLASSES: POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
13428
|
+
intersectionObserver: null,
|
|
13429
|
+
isOutsideViewport: false,
|
|
13422
13430
|
isOpen: false,
|
|
13423
13431
|
anchorEl: null,
|
|
13424
13432
|
popoverContentEl: null
|
|
@@ -13441,6 +13449,14 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13441
13449
|
};
|
|
13442
13450
|
},
|
|
13443
13451
|
|
|
13452
|
+
calculatedMaxHeight() {
|
|
13453
|
+
if (this.isOutsideViewport && this.modal) {
|
|
13454
|
+
return `calc(100vh - var(--space-300))`;
|
|
13455
|
+
}
|
|
13456
|
+
|
|
13457
|
+
return this.maxHeight;
|
|
13458
|
+
},
|
|
13459
|
+
|
|
13444
13460
|
labelledBy() {
|
|
13445
13461
|
// aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
|
|
13446
13462
|
// there is no aria-label and the labelledby should point to the anchor.
|
|
@@ -13528,19 +13544,30 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13528
13544
|
},
|
|
13529
13545
|
|
|
13530
13546
|
mounted() {
|
|
13531
|
-
const externalAnchorEl =
|
|
13547
|
+
const externalAnchorEl = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
|
|
13532
13548
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
13533
13549
|
this.popoverContentEl = this.$refs.content.$el;
|
|
13534
13550
|
|
|
13535
13551
|
if (this.isOpen) {
|
|
13536
13552
|
this.initTippyInstance();
|
|
13537
|
-
}
|
|
13553
|
+
} // rootMargin here must be greater than the margin of the height we are setting in calculatedMaxHeight which
|
|
13554
|
+
// currently is var(--space-300) (4px). If not the intersectionObserver will continually trigger in an infinite
|
|
13555
|
+
// loop.
|
|
13556
|
+
// threshold 1.0 makes this trigger every time the dialog "touches" the edge of the viewport.
|
|
13557
|
+
|
|
13558
|
+
|
|
13559
|
+
this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport, {
|
|
13560
|
+
rootMargin: '-8px',
|
|
13561
|
+
threshold: 1.0
|
|
13562
|
+
});
|
|
13563
|
+
this.intersectionObserver.observe(this.popoverContentEl);
|
|
13538
13564
|
},
|
|
13539
13565
|
|
|
13540
13566
|
beforeDestroy() {
|
|
13541
13567
|
var _this$tip7;
|
|
13542
13568
|
|
|
13543
13569
|
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
13570
|
+
this.intersectionObserver.disconnect();
|
|
13544
13571
|
this.removeReferences();
|
|
13545
13572
|
this.removeEventListeners();
|
|
13546
13573
|
},
|
|
@@ -13549,6 +13576,11 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13549
13576
|
* METHODS *
|
|
13550
13577
|
******************/
|
|
13551
13578
|
methods: {
|
|
13579
|
+
hasIntersectedViewport(entries) {
|
|
13580
|
+
const dialog = entries === null || entries === void 0 ? void 0 : entries[0];
|
|
13581
|
+
this.isOutsideViewport = !(dialog !== null && dialog !== void 0 && dialog.isIntersecting);
|
|
13582
|
+
},
|
|
13583
|
+
|
|
13552
13584
|
popperOptions() {
|
|
13553
13585
|
return getPopperOptions({
|
|
13554
13586
|
fallbackPlacements: this.fallbackPlacements,
|
|
@@ -13565,7 +13597,9 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13565
13597
|
|
|
13566
13598
|
calculateAnchorZindex() {
|
|
13567
13599
|
// if a modal is currently active render at modal-element z-index, otherwise at popover z-index
|
|
13568
|
-
if (
|
|
13600
|
+
if (this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 650 when
|
|
13601
|
+
// anchor of popover is within a drawer.
|
|
13602
|
+
this.anchorEl.closest('.d-zi-drawer')) {
|
|
13569
13603
|
return 650;
|
|
13570
13604
|
} else {
|
|
13571
13605
|
return 300;
|
|
@@ -13802,13 +13836,15 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13802
13836
|
},
|
|
13803
13837
|
|
|
13804
13838
|
initTippyInstance() {
|
|
13839
|
+
var _this$anchorEl2, _this$anchorEl2$getRo;
|
|
13840
|
+
|
|
13805
13841
|
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13806
13842
|
popperOptions: this.popperOptions(),
|
|
13807
13843
|
contentElement: this.popoverContentEl,
|
|
13808
13844
|
placement: this.placement,
|
|
13809
13845
|
offset: this.offset,
|
|
13810
13846
|
sticky: this.sticky,
|
|
13811
|
-
appendTo: this.appendTo,
|
|
13847
|
+
appendTo: this.appendTo === 'body' ? (_this$anchorEl2 = this.anchorEl) === null || _this$anchorEl2 === void 0 ? void 0 : (_this$anchorEl2$getRo = _this$anchorEl2.getRootNode()) === null || _this$anchorEl2$getRo === void 0 ? void 0 : _this$anchorEl2$getRo.querySelector('body') : this.appendTo,
|
|
13812
13848
|
interactive: true,
|
|
13813
13849
|
trigger: 'manual',
|
|
13814
13850
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -13844,8 +13880,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
|
|
|
13844
13880
|
|
|
13845
13881
|
var popover_component = normalizeComponent(
|
|
13846
13882
|
popover_popovervue_type_script_lang_js_,
|
|
13847
|
-
|
|
13848
|
-
|
|
13883
|
+
popovervue_type_template_id_cdba9054_render,
|
|
13884
|
+
popovervue_type_template_id_cdba9054_staticRenderFns,
|
|
13849
13885
|
false,
|
|
13850
13886
|
null,
|
|
13851
13887
|
null,
|
|
@@ -13916,6 +13952,8 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13916
13952
|
//
|
|
13917
13953
|
//
|
|
13918
13954
|
//
|
|
13955
|
+
//
|
|
13956
|
+
|
|
13919
13957
|
|
|
13920
13958
|
|
|
13921
13959
|
|
|
@@ -13963,6 +14001,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13963
14001
|
|
|
13964
14002
|
/**
|
|
13965
14003
|
* Vertical padding size around the list element.
|
|
14004
|
+
* @values none, small, large
|
|
13966
14005
|
*/
|
|
13967
14006
|
padding: {
|
|
13968
14007
|
type: String,
|
|
@@ -13984,6 +14023,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13984
14023
|
/**
|
|
13985
14024
|
* Width configuration for the popover content. When its value is 'anchor',
|
|
13986
14025
|
* the popover content will have the same width as the anchor.
|
|
14026
|
+
* @values null, anchor
|
|
13987
14027
|
*/
|
|
13988
14028
|
contentWidth: {
|
|
13989
14029
|
type: String,
|
|
@@ -14026,6 +14066,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14026
14066
|
* - "arrow-keys" for items that are navigated with UP/DOWN keys.
|
|
14027
14067
|
* - "tab" for items that are navigated using the TAB key.
|
|
14028
14068
|
* - "none" for static items that are not interactive.
|
|
14069
|
+
* @values arrow-keys, tab, none
|
|
14029
14070
|
*/
|
|
14030
14071
|
navigationType: {
|
|
14031
14072
|
type: String,
|
|
@@ -14036,6 +14077,12 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14036
14077
|
/**
|
|
14037
14078
|
* If the dropdown does not fit in the direction described by "placement",
|
|
14038
14079
|
* it will attempt to change it's direction to the "fallbackPlacements".
|
|
14080
|
+
*
|
|
14081
|
+
* @values top, top-start, top-end,
|
|
14082
|
+
* right, right-start, right-end,
|
|
14083
|
+
* left, left-start, left-end,
|
|
14084
|
+
* bottom, bottom-start, bottom-end,
|
|
14085
|
+
* auto, auto-start, auto-end
|
|
14039
14086
|
* */
|
|
14040
14087
|
fallbackPlacements: {
|
|
14041
14088
|
type: Array,
|
|
@@ -14074,6 +14121,19 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14074
14121
|
listClass: {
|
|
14075
14122
|
type: [String, Array, Object],
|
|
14076
14123
|
default: ''
|
|
14124
|
+
},
|
|
14125
|
+
|
|
14126
|
+
/**
|
|
14127
|
+
* Sets the element to which the popover is going to append to.
|
|
14128
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
14129
|
+
* @values 'body', 'parent', HTMLElement,
|
|
14130
|
+
*/
|
|
14131
|
+
appendTo: {
|
|
14132
|
+
type: [HTMLElement, String],
|
|
14133
|
+
default: 'body',
|
|
14134
|
+
validator: appendTo => {
|
|
14135
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
14136
|
+
}
|
|
14077
14137
|
}
|
|
14078
14138
|
},
|
|
14079
14139
|
emits: [
|
|
@@ -14310,8 +14370,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(782);
|
|
|
14310
14370
|
|
|
14311
14371
|
var dropdown_component = normalizeComponent(
|
|
14312
14372
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
14313
|
-
|
|
14314
|
-
|
|
14373
|
+
dropdownvue_type_template_id_359f1c8b_render,
|
|
14374
|
+
dropdownvue_type_template_id_359f1c8b_staticRenderFns,
|
|
14315
14375
|
false,
|
|
14316
14376
|
null,
|
|
14317
14377
|
null,
|
|
@@ -19603,15 +19663,15 @@ var toggle_component = normalizeComponent(
|
|
|
19603
19663
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
19604
19664
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
19605
19665
|
|
|
19606
|
-
;// 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/tooltip/tooltip.vue?vue&type=template&id=
|
|
19607
|
-
var
|
|
19666
|
+
;// 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/tooltip/tooltip.vue?vue&type=template&id=0c394aac&
|
|
19667
|
+
var tooltipvue_type_template_id_0c394aac_render = function () {
|
|
19608
19668
|
var _obj;
|
|
19609
19669
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tooltip-container"}},[_c('a',{ref:"anchor",attrs:{"role":"presentation","data-qa":"dt-tooltip-anchor"},on:{"focusin":_vm.onEnterAnchor,"focusout":_vm.onLeaveAnchor,"mouseenter":_vm.onEnterAnchor,"mouseleave":_vm.onLeaveAnchor,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.onLeaveAnchor.apply(null, arguments)}}},[_vm._t("anchor")],2),_c('dt-lazy-show',_vm._g({ref:"content",class:[
|
|
19610
19670
|
'd-tooltip',
|
|
19611
19671
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
19612
19672
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
19613
19673
|
_vm.contentClass ],attrs:{"id":_vm.id,"show":_vm.isShown && (!!_vm.message.trim() || !!_vm.$slots.default),"role":"tooltip","aria-hidden":"false","data-qa":"dt-tooltip","appear":"","transition":_vm.transition}},_vm.tooltipListeners),[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],1)}
|
|
19614
|
-
var
|
|
19674
|
+
var tooltipvue_type_template_id_0c394aac_staticRenderFns = []
|
|
19615
19675
|
|
|
19616
19676
|
|
|
19617
19677
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -19687,7 +19747,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19687
19747
|
*/
|
|
19688
19748
|
|
|
19689
19749
|
/* harmony default export */ const tooltipvue_type_script_lang_js_ = ({
|
|
19690
|
-
name: '
|
|
19750
|
+
name: 'DtTooltip',
|
|
19691
19751
|
components: {
|
|
19692
19752
|
DtLazyShow: lazy_show
|
|
19693
19753
|
},
|
|
@@ -19851,9 +19911,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19851
19911
|
},
|
|
19852
19912
|
|
|
19853
19913
|
tippyProps() {
|
|
19914
|
+
var _this$anchorEl, _this$anchorEl$getRoo;
|
|
19915
|
+
|
|
19854
19916
|
return {
|
|
19855
19917
|
offset: this.offset,
|
|
19856
|
-
appendTo:
|
|
19918
|
+
appendTo: (_this$anchorEl = this.anchorEl) === null || _this$anchorEl === void 0 ? void 0 : (_this$anchorEl$getRoo = _this$anchorEl.getRootNode()) === null || _this$anchorEl$getRoo === void 0 ? void 0 : _this$anchorEl$getRoo.querySelector('body'),
|
|
19857
19919
|
interactive: false,
|
|
19858
19920
|
trigger: 'manual',
|
|
19859
19921
|
placement: this.placement,
|
|
@@ -19918,7 +19980,9 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19918
19980
|
methods: {
|
|
19919
19981
|
calculateAnchorZindex() {
|
|
19920
19982
|
// if a modal is currently active render at modal-element z-index, otherwise at tooltip z-index
|
|
19921
|
-
if (
|
|
19983
|
+
if (this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 651 when
|
|
19984
|
+
// anchor of popover is within a drawer.
|
|
19985
|
+
this.$el.closest('.d-zi-drawer')) {
|
|
19922
19986
|
return 651;
|
|
19923
19987
|
} else {
|
|
19924
19988
|
return 400;
|
|
@@ -20014,8 +20078,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(213);
|
|
|
20014
20078
|
|
|
20015
20079
|
var tooltip_component = normalizeComponent(
|
|
20016
20080
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20017
|
-
|
|
20018
|
-
|
|
20081
|
+
tooltipvue_type_template_id_0c394aac_render,
|
|
20082
|
+
tooltipvue_type_template_id_0c394aac_staticRenderFns,
|
|
20019
20083
|
false,
|
|
20020
20084
|
null,
|
|
20021
20085
|
null,
|
|
@@ -20624,13 +20688,13 @@ var root_layout_component = normalizeComponent(
|
|
|
20624
20688
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
20625
20689
|
|
|
20626
20690
|
|
|
20627
|
-
;// 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/stack/stack.vue?vue&type=template&id=
|
|
20628
|
-
var
|
|
20691
|
+
;// 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/stack/stack.vue?vue&type=template&id=2f34414c&
|
|
20692
|
+
var stackvue_type_template_id_2f34414c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.as,{tag:"component",class:[
|
|
20629
20693
|
'd-stack',
|
|
20630
20694
|
_vm.defaultDirection,
|
|
20631
20695
|
_vm.stackResponsive,
|
|
20632
20696
|
_vm.stackGap ]},[_vm._t("default")],2)}
|
|
20633
|
-
var
|
|
20697
|
+
var stackvue_type_template_id_2f34414c_staticRenderFns = []
|
|
20634
20698
|
|
|
20635
20699
|
|
|
20636
20700
|
;// CONCATENATED MODULE: ./components/stack/stack_constants.js
|
|
@@ -20742,6 +20806,7 @@ function gapValidator(gap) {
|
|
|
20742
20806
|
|
|
20743
20807
|
/**
|
|
20744
20808
|
* Set this prop to have the space between each stack item
|
|
20809
|
+
* @values 0, 100, 200, 300, 400, 500, 600
|
|
20745
20810
|
*/
|
|
20746
20811
|
gap: {
|
|
20747
20812
|
type: String,
|
|
@@ -20785,8 +20850,8 @@ function gapValidator(gap) {
|
|
|
20785
20850
|
;
|
|
20786
20851
|
var stack_component = normalizeComponent(
|
|
20787
20852
|
stack_stackvue_type_script_lang_js_,
|
|
20788
|
-
|
|
20789
|
-
|
|
20853
|
+
stackvue_type_template_id_2f34414c_render,
|
|
20854
|
+
stackvue_type_template_id_2f34414c_staticRenderFns,
|
|
20790
20855
|
false,
|
|
20791
20856
|
null,
|
|
20792
20857
|
null,
|
|
@@ -20797,15 +20862,15 @@ var stack_component = normalizeComponent(
|
|
|
20797
20862
|
/* harmony default export */ const stack = (stack_component.exports);
|
|
20798
20863
|
;// CONCATENATED MODULE: ./components/stack/index.js
|
|
20799
20864
|
|
|
20800
|
-
;// 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=
|
|
20801
|
-
var
|
|
20865
|
+
;// 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=2f87445e&
|
|
20866
|
+
var combobox_with_popovervue_type_template_id_2f87445e_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,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
20802
20867
|
var inputProps = ref.inputProps;
|
|
20803
20868
|
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"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){
|
|
20804
20869
|
var opened = ref.opened;
|
|
20805
20870
|
var listProps = ref.listProps;
|
|
20806
20871
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20807
20872
|
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":false,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"append-to":_vm.appendTo,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},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"},[_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":clearHighlightIndex}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_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"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
|
|
20808
|
-
var
|
|
20873
|
+
var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
|
|
20809
20874
|
|
|
20810
20875
|
|
|
20811
20876
|
;// 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&
|
|
@@ -21117,11 +21182,12 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
|
21117
21182
|
|
|
21118
21183
|
/**
|
|
21119
21184
|
* Sets the element to which the popover is going to append to.
|
|
21120
|
-
*
|
|
21185
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
21186
|
+
* @values 'body', 'parent', HTMLElement,
|
|
21121
21187
|
*/
|
|
21122
21188
|
appendTo: {
|
|
21123
21189
|
type: [HTMLElement, String],
|
|
21124
|
-
default:
|
|
21190
|
+
default: 'body',
|
|
21125
21191
|
validator: appendTo => {
|
|
21126
21192
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21127
21193
|
}
|
|
@@ -21289,8 +21355,8 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
|
21289
21355
|
;
|
|
21290
21356
|
var combobox_with_popover_component = normalizeComponent(
|
|
21291
21357
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
21292
|
-
|
|
21293
|
-
|
|
21358
|
+
combobox_with_popovervue_type_template_id_2f87445e_render,
|
|
21359
|
+
combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns,
|
|
21294
21360
|
false,
|
|
21295
21361
|
null,
|
|
21296
21362
|
null,
|
|
@@ -21301,11 +21367,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
21301
21367
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
21302
21368
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
21303
21369
|
|
|
21304
|
-
;// 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_multi_select/combobox_multi_select.vue?vue&type=template&id=
|
|
21305
|
-
var
|
|
21370
|
+
;// 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_multi_select/combobox_multi_select.vue?vue&type=template&id=4a2d233d&
|
|
21371
|
+
var combobox_multi_selectvue_type_template_id_4a2d233d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"label":_vm.label,"show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor","append-to":_vm.appendTo},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
21306
21372
|
var onInput = ref.onInput;
|
|
21307
21373
|
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,class:['d-mt4', 'd-mx2', 'd-zi-base1'],attrs:{"label-class":['d-chip__label'],"close-button-props":{ ariaLabel: 'close' },"size":_vm.CHIP_SIZES[_vm.size]},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.onChipRemove(item)},"close":function($event){return _vm.onChipRemove(item)}}},_vm.chipListeners),[_vm._v(" "+_vm._s(item)+" ")])}),1),_c('dt-input',_vm._g({ref:"input",staticClass:"d-fl-grow1",attrs:{"aria-label":_vm.label,"label":_vm.labelVisible ? _vm.label : '',"description":_vm.description,"placeholder":_vm.inputPlaceHolder,"show-messages":_vm.showInputMessages,"messages":_vm.inputMessages,"size":_vm.size},on:{"input":onInput},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}},_vm.inputListeners)),_c('dt-validation-messages',{attrs:{"validation-messages":_vm.maxSelectedMessage,"show-messages":_vm.showValidationMessages}})],1)]}},{key:"header",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"list",fn:function(){return [_c('div',{ref:"list",on:{"mousedown":function($event){$event.preventDefault();}}},[(!_vm.loading)?_vm._t("list"):_c('div',{staticClass:"d-ta-center d-py16"},[_vm._v(" "+_vm._s(_vm.loadingMessage)+" ")])],2)]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})}
|
|
21308
|
-
var
|
|
21374
|
+
var combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns = []
|
|
21309
21375
|
|
|
21310
21376
|
|
|
21311
21377
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -21683,11 +21749,12 @@ const CHIP_TOP_POSITION = {
|
|
|
21683
21749
|
|
|
21684
21750
|
/**
|
|
21685
21751
|
* Sets the element to which the popover is going to append to.
|
|
21686
|
-
*
|
|
21752
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
21753
|
+
* @values 'body', 'parent', HTMLElement,
|
|
21687
21754
|
*/
|
|
21688
21755
|
appendTo: {
|
|
21689
21756
|
type: [HTMLElement, String],
|
|
21690
|
-
default:
|
|
21757
|
+
default: 'body',
|
|
21691
21758
|
validator: appendTo => {
|
|
21692
21759
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21693
21760
|
}
|
|
@@ -22021,8 +22088,8 @@ const CHIP_TOP_POSITION = {
|
|
|
22021
22088
|
;
|
|
22022
22089
|
var combobox_multi_select_component = normalizeComponent(
|
|
22023
22090
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
22024
|
-
|
|
22025
|
-
|
|
22091
|
+
combobox_multi_selectvue_type_template_id_4a2d233d_render,
|
|
22092
|
+
combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns,
|
|
22026
22093
|
false,
|
|
22027
22094
|
null,
|
|
22028
22095
|
null,
|
|
@@ -23238,6 +23305,7 @@ var grouped_chip_component = normalizeComponent(
|
|
|
23238
23305
|
|
|
23239
23306
|
|
|
23240
23307
|
|
|
23308
|
+
|
|
23241
23309
|
|
|
23242
23310
|
|
|
23243
23311
|
/// Recipes
|