@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
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -2241,6 +2241,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2241
2241
|
"DtNotice": () => (/* reexport */ notice),
|
|
2242
2242
|
"DtPagination": () => (/* reexport */ pagination),
|
|
2243
2243
|
"DtPopover": () => (/* reexport */ popover),
|
|
2244
|
+
"DtPresence": () => (/* reexport */ presence),
|
|
2244
2245
|
"DtRadio": () => (/* reexport */ radio_radio),
|
|
2245
2246
|
"DtRadioGroup": () => (/* reexport */ radio_group),
|
|
2246
2247
|
"DtRecipeCallbarButton": () => (/* reexport */ callbar_button),
|
|
@@ -2289,6 +2290,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2289
2290
|
"POPOVER_INITIAL_FOCUS_STRINGS": () => (/* reexport */ POPOVER_INITIAL_FOCUS_STRINGS),
|
|
2290
2291
|
"POPOVER_PADDING_CLASSES": () => (/* reexport */ POPOVER_PADDING_CLASSES),
|
|
2291
2292
|
"POPOVER_ROLES": () => (/* reexport */ POPOVER_ROLES),
|
|
2293
|
+
"PRESENCE_STATES": () => (/* reexport */ PRESENCE_STATES),
|
|
2294
|
+
"PRESENCE_STATES_LIST": () => (/* reexport */ PRESENCE_STATES_LIST),
|
|
2292
2295
|
"ROOT_LAYOUT_SIDEBAR_POSITIONS": () => (/* reexport */ ROOT_LAYOUT_SIDEBAR_POSITIONS),
|
|
2293
2296
|
"SELECT_SIZE_MODIFIERS": () => (/* reexport */ SELECT_SIZE_MODIFIERS),
|
|
2294
2297
|
"SELECT_STATE_MODIFIERS": () => (/* reexport */ SELECT_STATE_MODIFIERS),
|
|
@@ -2335,7 +2338,7 @@ if (typeof window !== 'undefined') {
|
|
|
2335
2338
|
// Indicate to webpack that this file can be concatenated
|
|
2336
2339
|
/* harmony default export */ const setPublicPath = (null);
|
|
2337
2340
|
|
|
2338
|
-
;// 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=
|
|
2341
|
+
;// 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&
|
|
2339
2342
|
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:[
|
|
2340
2343
|
'd-avatar__presence',
|
|
2341
2344
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -2563,14 +2566,14 @@ const pascalCaseToKebabCase = string => {
|
|
|
2563
2566
|
flushPromises,
|
|
2564
2567
|
kebabCaseToPascalCase
|
|
2565
2568
|
});
|
|
2566
|
-
;// 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=
|
|
2567
|
-
var
|
|
2569
|
+
;// 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&
|
|
2570
|
+
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:{
|
|
2568
2571
|
'd-presence__inner--active': _vm.presence === 'active',
|
|
2569
2572
|
'd-presence__inner--away': _vm.presence === 'away',
|
|
2570
2573
|
'd-presence__inner--busy': _vm.presence === 'busy',
|
|
2571
2574
|
'd-presence__inner--offline': _vm.presence === 'offline',
|
|
2572
2575
|
}})])}
|
|
2573
|
-
var
|
|
2576
|
+
var presencevue_type_template_id_77957bb3_staticRenderFns = []
|
|
2574
2577
|
|
|
2575
2578
|
|
|
2576
2579
|
;// CONCATENATED MODULE: ./components/presence/presence_constants.js
|
|
@@ -2613,11 +2616,12 @@ const PRESENCE_STATES_LIST = [PRESENCE_STATES.BUSY, PRESENCE_STATES.AWAY, PRESEN
|
|
|
2613
2616
|
*/
|
|
2614
2617
|
|
|
2615
2618
|
/* harmony default export */ const presencevue_type_script_lang_js_ = ({
|
|
2616
|
-
name: '
|
|
2619
|
+
name: 'DtPresence',
|
|
2617
2620
|
props: {
|
|
2618
2621
|
/**
|
|
2619
2622
|
* Determines the color of the inner presence circle, indicating status.
|
|
2620
2623
|
* Accepts one of 4 values: 'busy', 'away', 'active', 'offline'
|
|
2624
|
+
* @values busy, away, active, offline
|
|
2621
2625
|
*/
|
|
2622
2626
|
presence: {
|
|
2623
2627
|
type: String,
|
|
@@ -2750,8 +2754,8 @@ function normalizeComponent (
|
|
|
2750
2754
|
;
|
|
2751
2755
|
var component = normalizeComponent(
|
|
2752
2756
|
presence_presencevue_type_script_lang_js_,
|
|
2753
|
-
|
|
2754
|
-
|
|
2757
|
+
presencevue_type_template_id_77957bb3_render,
|
|
2758
|
+
presencevue_type_template_id_77957bb3_staticRenderFns,
|
|
2755
2759
|
false,
|
|
2756
2760
|
null,
|
|
2757
2761
|
null,
|
|
@@ -2904,6 +2908,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
2904
2908
|
* Determines whether to show the presence indicator for
|
|
2905
2909
|
* Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
|
|
2906
2910
|
* or 'active'. By default, it's null and nothing is shown.
|
|
2911
|
+
* @values null, busy, away, offline, active
|
|
2907
2912
|
*/
|
|
2908
2913
|
presence: {
|
|
2909
2914
|
type: String,
|
|
@@ -5615,13 +5620,13 @@ var combobox_loading_listvue_type_template_id_07d9971d_render = function () {var
|
|
|
5615
5620
|
var combobox_loading_listvue_type_template_id_07d9971d_staticRenderFns = []
|
|
5616
5621
|
|
|
5617
5622
|
|
|
5618
|
-
;// 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=
|
|
5619
|
-
var
|
|
5623
|
+
;// 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&
|
|
5624
|
+
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', {
|
|
5620
5625
|
'dt-list-item--focusable': _vm.isFocusable,
|
|
5621
5626
|
'dt-list-item--highlighted': _vm.isHighlighted,
|
|
5622
5627
|
'dt-list-item--static': !_vm.isHoverable,
|
|
5623
5628
|
}],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)}
|
|
5624
|
-
var
|
|
5629
|
+
var list_itemvue_type_template_id_1de8fea6_staticRenderFns = []
|
|
5625
5630
|
|
|
5626
5631
|
|
|
5627
5632
|
;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
|
|
@@ -5638,9 +5643,9 @@ const LIST_ITEM_NAVIGATION_TYPES = {
|
|
|
5638
5643
|
LIST_ITEM_TYPES,
|
|
5639
5644
|
LIST_ITEM_NAVIGATION_TYPES
|
|
5640
5645
|
});
|
|
5641
|
-
;// 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=
|
|
5642
|
-
var
|
|
5643
|
-
var
|
|
5646
|
+
;// 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&
|
|
5647
|
+
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)}
|
|
5648
|
+
var default_list_itemvue_type_template_id_37a42626_staticRenderFns = []
|
|
5644
5649
|
|
|
5645
5650
|
|
|
5646
5651
|
;// 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/list_item/default_list_item.vue?vue&type=script&lang=js&
|
|
@@ -5689,7 +5694,7 @@ var default_list_itemvue_type_template_id_2e45cfbd_staticRenderFns = []
|
|
|
5689
5694
|
//
|
|
5690
5695
|
//
|
|
5691
5696
|
/* harmony default export */ const default_list_itemvue_type_script_lang_js_ = ({
|
|
5692
|
-
name: '
|
|
5697
|
+
name: 'DtDefaultListItem'
|
|
5693
5698
|
});
|
|
5694
5699
|
;// CONCATENATED MODULE: ./components/list_item/default_list_item.vue?vue&type=script&lang=js&
|
|
5695
5700
|
/* harmony default export */ const list_item_default_list_itemvue_type_script_lang_js_ = (default_list_itemvue_type_script_lang_js_);
|
|
@@ -5708,8 +5713,8 @@ var default_list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(737
|
|
|
5708
5713
|
|
|
5709
5714
|
var default_list_item_component = normalizeComponent(
|
|
5710
5715
|
list_item_default_list_itemvue_type_script_lang_js_,
|
|
5711
|
-
|
|
5712
|
-
|
|
5716
|
+
default_list_itemvue_type_template_id_37a42626_render,
|
|
5717
|
+
default_list_itemvue_type_template_id_37a42626_staticRenderFns,
|
|
5713
5718
|
false,
|
|
5714
5719
|
null,
|
|
5715
5720
|
null,
|
|
@@ -5771,7 +5776,7 @@ var default_list_item_component = normalizeComponent(
|
|
|
5771
5776
|
*/
|
|
5772
5777
|
|
|
5773
5778
|
/* harmony default export */ const list_itemvue_type_script_lang_js_ = ({
|
|
5774
|
-
name: '
|
|
5779
|
+
name: 'DtListItem',
|
|
5775
5780
|
components: {
|
|
5776
5781
|
DtDefaultListItem: default_list_item,
|
|
5777
5782
|
DtIcon: icon
|
|
@@ -5970,8 +5975,8 @@ var list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(285);
|
|
|
5970
5975
|
|
|
5971
5976
|
var list_item_component = normalizeComponent(
|
|
5972
5977
|
list_item_list_itemvue_type_script_lang_js_,
|
|
5973
|
-
|
|
5974
|
-
|
|
5978
|
+
list_itemvue_type_template_id_1de8fea6_render,
|
|
5979
|
+
list_itemvue_type_template_id_1de8fea6_staticRenderFns,
|
|
5975
5980
|
false,
|
|
5976
5981
|
null,
|
|
5977
5982
|
null,
|
|
@@ -8096,28 +8101,28 @@ var collapsible_component = normalizeComponent(
|
|
|
8096
8101
|
/* harmony default export */ const collapsible = (collapsible_component.exports);
|
|
8097
8102
|
;// CONCATENATED MODULE: ./components/collapsible/index.js
|
|
8098
8103
|
|
|
8099
|
-
;// 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=
|
|
8100
|
-
var
|
|
8104
|
+
;// 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&
|
|
8105
|
+
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){
|
|
8101
8106
|
var attrs = ref.attrs;
|
|
8102
8107
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
8103
8108
|
var close = ref.close;
|
|
8104
8109
|
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))}
|
|
8105
|
-
var
|
|
8110
|
+
var dropdownvue_type_template_id_359f1c8b_staticRenderFns = []
|
|
8106
8111
|
|
|
8107
8112
|
|
|
8108
|
-
;// 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=
|
|
8109
|
-
var
|
|
8113
|
+
;// 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&
|
|
8114
|
+
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":{
|
|
8110
8115
|
'aria-expanded': _vm.isOpen.toString(),
|
|
8111
8116
|
'aria-controls': _vm.id,
|
|
8112
8117
|
'aria-haspopup': _vm.role,
|
|
8113
8118
|
}})],2),_c('dt-lazy-show',_vm._g({ref:"content",class:['d-popover__dialog', { 'd-popover__dialog--modal': _vm.modal }, _vm.dialogClass],style:({
|
|
8114
|
-
'max-height': _vm.
|
|
8119
|
+
'max-height': _vm.calculatedMaxHeight,
|
|
8115
8120
|
'max-width': _vm.maxWidth,
|
|
8116
8121
|
}),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:[
|
|
8117
8122
|
'd-popover__content',
|
|
8118
8123
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
8119
8124
|
_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)}
|
|
8120
|
-
var
|
|
8125
|
+
var popovervue_type_template_id_cdba9054_staticRenderFns = []
|
|
8121
8126
|
|
|
8122
8127
|
|
|
8123
8128
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -12613,7 +12618,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
|
12613
12618
|
const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
12614
12619
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
12615
12620
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
12616
|
-
const POPOVER_APPEND_TO_VALUES = ['parent'];
|
|
12621
|
+
const POPOVER_APPEND_TO_VALUES = ['parent', 'body'];
|
|
12617
12622
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
12618
12623
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
12619
12624
|
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
@@ -13399,11 +13404,12 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13399
13404
|
|
|
13400
13405
|
/**
|
|
13401
13406
|
* Sets the element to which the popover is going to append to.
|
|
13402
|
-
*
|
|
13407
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
13408
|
+
* @values 'body', 'parent', HTMLElement,
|
|
13403
13409
|
*/
|
|
13404
13410
|
appendTo: {
|
|
13405
13411
|
type: [HTMLElement, String],
|
|
13406
|
-
default:
|
|
13412
|
+
default: 'body',
|
|
13407
13413
|
validator: appendTo => {
|
|
13408
13414
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
13409
13415
|
}
|
|
@@ -13429,6 +13435,8 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13429
13435
|
return {
|
|
13430
13436
|
POPOVER_PADDING_CLASSES: POPOVER_PADDING_CLASSES,
|
|
13431
13437
|
POPOVER_HEADER_FOOTER_PADDING_CLASSES: POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
13438
|
+
intersectionObserver: null,
|
|
13439
|
+
isOutsideViewport: false,
|
|
13432
13440
|
isOpen: false,
|
|
13433
13441
|
anchorEl: null,
|
|
13434
13442
|
popoverContentEl: null
|
|
@@ -13451,6 +13459,14 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13451
13459
|
};
|
|
13452
13460
|
},
|
|
13453
13461
|
|
|
13462
|
+
calculatedMaxHeight() {
|
|
13463
|
+
if (this.isOutsideViewport && this.modal) {
|
|
13464
|
+
return `calc(100vh - var(--space-300))`;
|
|
13465
|
+
}
|
|
13466
|
+
|
|
13467
|
+
return this.maxHeight;
|
|
13468
|
+
},
|
|
13469
|
+
|
|
13454
13470
|
labelledBy() {
|
|
13455
13471
|
// aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
|
|
13456
13472
|
// there is no aria-label and the labelledby should point to the anchor.
|
|
@@ -13538,19 +13554,30 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13538
13554
|
},
|
|
13539
13555
|
|
|
13540
13556
|
mounted() {
|
|
13541
|
-
const externalAnchorEl =
|
|
13557
|
+
const externalAnchorEl = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
|
|
13542
13558
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
13543
13559
|
this.popoverContentEl = this.$refs.content.$el;
|
|
13544
13560
|
|
|
13545
13561
|
if (this.isOpen) {
|
|
13546
13562
|
this.initTippyInstance();
|
|
13547
|
-
}
|
|
13563
|
+
} // rootMargin here must be greater than the margin of the height we are setting in calculatedMaxHeight which
|
|
13564
|
+
// currently is var(--space-300) (4px). If not the intersectionObserver will continually trigger in an infinite
|
|
13565
|
+
// loop.
|
|
13566
|
+
// threshold 1.0 makes this trigger every time the dialog "touches" the edge of the viewport.
|
|
13567
|
+
|
|
13568
|
+
|
|
13569
|
+
this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport, {
|
|
13570
|
+
rootMargin: '-8px',
|
|
13571
|
+
threshold: 1.0
|
|
13572
|
+
});
|
|
13573
|
+
this.intersectionObserver.observe(this.popoverContentEl);
|
|
13548
13574
|
},
|
|
13549
13575
|
|
|
13550
13576
|
beforeDestroy() {
|
|
13551
13577
|
var _this$tip7;
|
|
13552
13578
|
|
|
13553
13579
|
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
13580
|
+
this.intersectionObserver.disconnect();
|
|
13554
13581
|
this.removeReferences();
|
|
13555
13582
|
this.removeEventListeners();
|
|
13556
13583
|
},
|
|
@@ -13559,6 +13586,11 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13559
13586
|
* METHODS *
|
|
13560
13587
|
******************/
|
|
13561
13588
|
methods: {
|
|
13589
|
+
hasIntersectedViewport(entries) {
|
|
13590
|
+
const dialog = entries === null || entries === void 0 ? void 0 : entries[0];
|
|
13591
|
+
this.isOutsideViewport = !(dialog !== null && dialog !== void 0 && dialog.isIntersecting);
|
|
13592
|
+
},
|
|
13593
|
+
|
|
13562
13594
|
popperOptions() {
|
|
13563
13595
|
return getPopperOptions({
|
|
13564
13596
|
fallbackPlacements: this.fallbackPlacements,
|
|
@@ -13575,7 +13607,9 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13575
13607
|
|
|
13576
13608
|
calculateAnchorZindex() {
|
|
13577
13609
|
// if a modal is currently active render at modal-element z-index, otherwise at popover z-index
|
|
13578
|
-
if (
|
|
13610
|
+
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
|
|
13611
|
+
// anchor of popover is within a drawer.
|
|
13612
|
+
this.anchorEl.closest('.d-zi-drawer')) {
|
|
13579
13613
|
return 650;
|
|
13580
13614
|
} else {
|
|
13581
13615
|
return 300;
|
|
@@ -13812,13 +13846,15 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13812
13846
|
},
|
|
13813
13847
|
|
|
13814
13848
|
initTippyInstance() {
|
|
13849
|
+
var _this$anchorEl2, _this$anchorEl2$getRo;
|
|
13850
|
+
|
|
13815
13851
|
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13816
13852
|
popperOptions: this.popperOptions(),
|
|
13817
13853
|
contentElement: this.popoverContentEl,
|
|
13818
13854
|
placement: this.placement,
|
|
13819
13855
|
offset: this.offset,
|
|
13820
13856
|
sticky: this.sticky,
|
|
13821
|
-
appendTo: this.appendTo,
|
|
13857
|
+
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,
|
|
13822
13858
|
interactive: true,
|
|
13823
13859
|
trigger: 'manual',
|
|
13824
13860
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -13854,8 +13890,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(532);
|
|
|
13854
13890
|
|
|
13855
13891
|
var popover_component = normalizeComponent(
|
|
13856
13892
|
popover_popovervue_type_script_lang_js_,
|
|
13857
|
-
|
|
13858
|
-
|
|
13893
|
+
popovervue_type_template_id_cdba9054_render,
|
|
13894
|
+
popovervue_type_template_id_cdba9054_staticRenderFns,
|
|
13859
13895
|
false,
|
|
13860
13896
|
null,
|
|
13861
13897
|
null,
|
|
@@ -13926,6 +13962,8 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13926
13962
|
//
|
|
13927
13963
|
//
|
|
13928
13964
|
//
|
|
13965
|
+
//
|
|
13966
|
+
|
|
13929
13967
|
|
|
13930
13968
|
|
|
13931
13969
|
|
|
@@ -13973,6 +14011,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13973
14011
|
|
|
13974
14012
|
/**
|
|
13975
14013
|
* Vertical padding size around the list element.
|
|
14014
|
+
* @values none, small, large
|
|
13976
14015
|
*/
|
|
13977
14016
|
padding: {
|
|
13978
14017
|
type: String,
|
|
@@ -13994,6 +14033,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13994
14033
|
/**
|
|
13995
14034
|
* Width configuration for the popover content. When its value is 'anchor',
|
|
13996
14035
|
* the popover content will have the same width as the anchor.
|
|
14036
|
+
* @values null, anchor
|
|
13997
14037
|
*/
|
|
13998
14038
|
contentWidth: {
|
|
13999
14039
|
type: String,
|
|
@@ -14036,6 +14076,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14036
14076
|
* - "arrow-keys" for items that are navigated with UP/DOWN keys.
|
|
14037
14077
|
* - "tab" for items that are navigated using the TAB key.
|
|
14038
14078
|
* - "none" for static items that are not interactive.
|
|
14079
|
+
* @values arrow-keys, tab, none
|
|
14039
14080
|
*/
|
|
14040
14081
|
navigationType: {
|
|
14041
14082
|
type: String,
|
|
@@ -14046,6 +14087,12 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14046
14087
|
/**
|
|
14047
14088
|
* If the dropdown does not fit in the direction described by "placement",
|
|
14048
14089
|
* it will attempt to change it's direction to the "fallbackPlacements".
|
|
14090
|
+
*
|
|
14091
|
+
* @values top, top-start, top-end,
|
|
14092
|
+
* right, right-start, right-end,
|
|
14093
|
+
* left, left-start, left-end,
|
|
14094
|
+
* bottom, bottom-start, bottom-end,
|
|
14095
|
+
* auto, auto-start, auto-end
|
|
14049
14096
|
* */
|
|
14050
14097
|
fallbackPlacements: {
|
|
14051
14098
|
type: Array,
|
|
@@ -14084,6 +14131,19 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14084
14131
|
listClass: {
|
|
14085
14132
|
type: [String, Array, Object],
|
|
14086
14133
|
default: ''
|
|
14134
|
+
},
|
|
14135
|
+
|
|
14136
|
+
/**
|
|
14137
|
+
* Sets the element to which the popover is going to append to.
|
|
14138
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
14139
|
+
* @values 'body', 'parent', HTMLElement,
|
|
14140
|
+
*/
|
|
14141
|
+
appendTo: {
|
|
14142
|
+
type: [HTMLElement, String],
|
|
14143
|
+
default: 'body',
|
|
14144
|
+
validator: appendTo => {
|
|
14145
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
14146
|
+
}
|
|
14087
14147
|
}
|
|
14088
14148
|
},
|
|
14089
14149
|
emits: [
|
|
@@ -14320,8 +14380,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(774);
|
|
|
14320
14380
|
|
|
14321
14381
|
var dropdown_component = normalizeComponent(
|
|
14322
14382
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
14323
|
-
|
|
14324
|
-
|
|
14383
|
+
dropdownvue_type_template_id_359f1c8b_render,
|
|
14384
|
+
dropdownvue_type_template_id_359f1c8b_staticRenderFns,
|
|
14325
14385
|
false,
|
|
14326
14386
|
null,
|
|
14327
14387
|
null,
|
|
@@ -19613,15 +19673,15 @@ var toggle_component = normalizeComponent(
|
|
|
19613
19673
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
19614
19674
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
19615
19675
|
|
|
19616
|
-
;// 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=
|
|
19617
|
-
var
|
|
19676
|
+
;// 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&
|
|
19677
|
+
var tooltipvue_type_template_id_0c394aac_render = function () {
|
|
19618
19678
|
var _obj;
|
|
19619
19679
|
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:[
|
|
19620
19680
|
'd-tooltip',
|
|
19621
19681
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
19622
19682
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
19623
19683
|
_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)}
|
|
19624
|
-
var
|
|
19684
|
+
var tooltipvue_type_template_id_0c394aac_staticRenderFns = []
|
|
19625
19685
|
|
|
19626
19686
|
|
|
19627
19687
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -19697,7 +19757,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19697
19757
|
*/
|
|
19698
19758
|
|
|
19699
19759
|
/* harmony default export */ const tooltipvue_type_script_lang_js_ = ({
|
|
19700
|
-
name: '
|
|
19760
|
+
name: 'DtTooltip',
|
|
19701
19761
|
components: {
|
|
19702
19762
|
DtLazyShow: lazy_show
|
|
19703
19763
|
},
|
|
@@ -19861,9 +19921,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19861
19921
|
},
|
|
19862
19922
|
|
|
19863
19923
|
tippyProps() {
|
|
19924
|
+
var _this$anchorEl, _this$anchorEl$getRoo;
|
|
19925
|
+
|
|
19864
19926
|
return {
|
|
19865
19927
|
offset: this.offset,
|
|
19866
|
-
appendTo:
|
|
19928
|
+
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'),
|
|
19867
19929
|
interactive: false,
|
|
19868
19930
|
trigger: 'manual',
|
|
19869
19931
|
placement: this.placement,
|
|
@@ -19928,7 +19990,9 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19928
19990
|
methods: {
|
|
19929
19991
|
calculateAnchorZindex() {
|
|
19930
19992
|
// if a modal is currently active render at modal-element z-index, otherwise at tooltip z-index
|
|
19931
|
-
if (
|
|
19993
|
+
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
|
|
19994
|
+
// anchor of popover is within a drawer.
|
|
19995
|
+
this.$el.closest('.d-zi-drawer')) {
|
|
19932
19996
|
return 651;
|
|
19933
19997
|
} else {
|
|
19934
19998
|
return 400;
|
|
@@ -20024,8 +20088,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(228);
|
|
|
20024
20088
|
|
|
20025
20089
|
var tooltip_component = normalizeComponent(
|
|
20026
20090
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20027
|
-
|
|
20028
|
-
|
|
20091
|
+
tooltipvue_type_template_id_0c394aac_render,
|
|
20092
|
+
tooltipvue_type_template_id_0c394aac_staticRenderFns,
|
|
20029
20093
|
false,
|
|
20030
20094
|
null,
|
|
20031
20095
|
null,
|
|
@@ -20634,13 +20698,13 @@ var root_layout_component = normalizeComponent(
|
|
|
20634
20698
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
20635
20699
|
|
|
20636
20700
|
|
|
20637
|
-
;// 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=
|
|
20638
|
-
var
|
|
20701
|
+
;// 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&
|
|
20702
|
+
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:[
|
|
20639
20703
|
'd-stack',
|
|
20640
20704
|
_vm.defaultDirection,
|
|
20641
20705
|
_vm.stackResponsive,
|
|
20642
20706
|
_vm.stackGap ]},[_vm._t("default")],2)}
|
|
20643
|
-
var
|
|
20707
|
+
var stackvue_type_template_id_2f34414c_staticRenderFns = []
|
|
20644
20708
|
|
|
20645
20709
|
|
|
20646
20710
|
;// CONCATENATED MODULE: ./components/stack/stack_constants.js
|
|
@@ -20752,6 +20816,7 @@ function gapValidator(gap) {
|
|
|
20752
20816
|
|
|
20753
20817
|
/**
|
|
20754
20818
|
* Set this prop to have the space between each stack item
|
|
20819
|
+
* @values 0, 100, 200, 300, 400, 500, 600
|
|
20755
20820
|
*/
|
|
20756
20821
|
gap: {
|
|
20757
20822
|
type: String,
|
|
@@ -20795,8 +20860,8 @@ function gapValidator(gap) {
|
|
|
20795
20860
|
;
|
|
20796
20861
|
var stack_component = normalizeComponent(
|
|
20797
20862
|
stack_stackvue_type_script_lang_js_,
|
|
20798
|
-
|
|
20799
|
-
|
|
20863
|
+
stackvue_type_template_id_2f34414c_render,
|
|
20864
|
+
stackvue_type_template_id_2f34414c_staticRenderFns,
|
|
20800
20865
|
false,
|
|
20801
20866
|
null,
|
|
20802
20867
|
null,
|
|
@@ -20807,15 +20872,15 @@ var stack_component = normalizeComponent(
|
|
|
20807
20872
|
/* harmony default export */ const stack = (stack_component.exports);
|
|
20808
20873
|
;// CONCATENATED MODULE: ./components/stack/index.js
|
|
20809
20874
|
|
|
20810
|
-
;// 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=
|
|
20811
|
-
var
|
|
20875
|
+
;// 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&
|
|
20876
|
+
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){
|
|
20812
20877
|
var inputProps = ref.inputProps;
|
|
20813
20878
|
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){
|
|
20814
20879
|
var opened = ref.opened;
|
|
20815
20880
|
var listProps = ref.listProps;
|
|
20816
20881
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20817
20882
|
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))}
|
|
20818
|
-
var
|
|
20883
|
+
var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
|
|
20819
20884
|
|
|
20820
20885
|
|
|
20821
20886
|
;// 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&
|
|
@@ -21127,11 +21192,12 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
|
21127
21192
|
|
|
21128
21193
|
/**
|
|
21129
21194
|
* Sets the element to which the popover is going to append to.
|
|
21130
|
-
*
|
|
21195
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
21196
|
+
* @values 'body', 'parent', HTMLElement,
|
|
21131
21197
|
*/
|
|
21132
21198
|
appendTo: {
|
|
21133
21199
|
type: [HTMLElement, String],
|
|
21134
|
-
default:
|
|
21200
|
+
default: 'body',
|
|
21135
21201
|
validator: appendTo => {
|
|
21136
21202
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21137
21203
|
}
|
|
@@ -21299,8 +21365,8 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
|
21299
21365
|
;
|
|
21300
21366
|
var combobox_with_popover_component = normalizeComponent(
|
|
21301
21367
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
21302
|
-
|
|
21303
|
-
|
|
21368
|
+
combobox_with_popovervue_type_template_id_2f87445e_render,
|
|
21369
|
+
combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns,
|
|
21304
21370
|
false,
|
|
21305
21371
|
null,
|
|
21306
21372
|
null,
|
|
@@ -21311,11 +21377,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
21311
21377
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
21312
21378
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
21313
21379
|
|
|
21314
|
-
;// 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=
|
|
21315
|
-
var
|
|
21380
|
+
;// 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&
|
|
21381
|
+
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){
|
|
21316
21382
|
var onInput = ref.onInput;
|
|
21317
21383
|
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)})}
|
|
21318
|
-
var
|
|
21384
|
+
var combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns = []
|
|
21319
21385
|
|
|
21320
21386
|
|
|
21321
21387
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -21693,11 +21759,12 @@ const CHIP_TOP_POSITION = {
|
|
|
21693
21759
|
|
|
21694
21760
|
/**
|
|
21695
21761
|
* Sets the element to which the popover is going to append to.
|
|
21696
|
-
*
|
|
21762
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
21763
|
+
* @values 'body', 'parent', HTMLElement,
|
|
21697
21764
|
*/
|
|
21698
21765
|
appendTo: {
|
|
21699
21766
|
type: [HTMLElement, String],
|
|
21700
|
-
default:
|
|
21767
|
+
default: 'body',
|
|
21701
21768
|
validator: appendTo => {
|
|
21702
21769
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21703
21770
|
}
|
|
@@ -22031,8 +22098,8 @@ const CHIP_TOP_POSITION = {
|
|
|
22031
22098
|
;
|
|
22032
22099
|
var combobox_multi_select_component = normalizeComponent(
|
|
22033
22100
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
22034
|
-
|
|
22035
|
-
|
|
22101
|
+
combobox_multi_selectvue_type_template_id_4a2d233d_render,
|
|
22102
|
+
combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns,
|
|
22036
22103
|
false,
|
|
22037
22104
|
null,
|
|
22038
22105
|
null,
|
|
@@ -23248,6 +23315,7 @@ var grouped_chip_component = normalizeComponent(
|
|
|
23248
23315
|
|
|
23249
23316
|
|
|
23250
23317
|
|
|
23318
|
+
|
|
23251
23319
|
|
|
23252
23320
|
|
|
23253
23321
|
/// Recipes
|