@dialpad/dialtone-vue 2.57.1 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -1
- package/CHANGELOG.md +28 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +298 -59
- package/dist/dialtone-vue.umd.js +298 -59
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +4 -4
|
@@ -2248,6 +2248,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2248
2248
|
"DtSkeletonParagraph": () => (/* reexport */ skeleton_paragraph),
|
|
2249
2249
|
"DtSkeletonShape": () => (/* reexport */ skeleton_shape),
|
|
2250
2250
|
"DtSkeletonText": () => (/* reexport */ skeleton_text),
|
|
2251
|
+
"DtStack": () => (/* reexport */ stack),
|
|
2251
2252
|
"DtTab": () => (/* reexport */ tab),
|
|
2252
2253
|
"DtTabGroup": () => (/* reexport */ tab_group),
|
|
2253
2254
|
"DtTabPanel": () => (/* reexport */ tab_panel),
|
|
@@ -2324,7 +2325,7 @@ if (typeof window !== 'undefined') {
|
|
|
2324
2325
|
// Indicate to webpack that this file can be concatenated
|
|
2325
2326
|
/* harmony default export */ const setPublicPath = (null);
|
|
2326
2327
|
|
|
2327
|
-
;// 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=
|
|
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=39b70ea2&
|
|
2328
2329
|
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:[
|
|
2329
2330
|
'd-avatar__presence',
|
|
2330
2331
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -2552,14 +2553,14 @@ const pascalCaseToKebabCase = string => {
|
|
|
2552
2553
|
flushPromises,
|
|
2553
2554
|
kebabCaseToPascalCase
|
|
2554
2555
|
});
|
|
2555
|
-
;// 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=
|
|
2556
|
-
var
|
|
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=77957bb3&
|
|
2557
|
+
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:{
|
|
2557
2558
|
'd-presence__inner--active': _vm.presence === 'active',
|
|
2558
2559
|
'd-presence__inner--away': _vm.presence === 'away',
|
|
2559
2560
|
'd-presence__inner--busy': _vm.presence === 'busy',
|
|
2560
2561
|
'd-presence__inner--offline': _vm.presence === 'offline',
|
|
2561
2562
|
}})])}
|
|
2562
|
-
var
|
|
2563
|
+
var presencevue_type_template_id_77957bb3_staticRenderFns = []
|
|
2563
2564
|
|
|
2564
2565
|
|
|
2565
2566
|
;// CONCATENATED MODULE: ./components/presence/presence_constants.js
|
|
@@ -2602,11 +2603,12 @@ const PRESENCE_STATES_LIST = [PRESENCE_STATES.BUSY, PRESENCE_STATES.AWAY, PRESEN
|
|
|
2602
2603
|
*/
|
|
2603
2604
|
|
|
2604
2605
|
/* harmony default export */ const presencevue_type_script_lang_js_ = ({
|
|
2605
|
-
name: '
|
|
2606
|
+
name: 'DtPresence',
|
|
2606
2607
|
props: {
|
|
2607
2608
|
/**
|
|
2608
2609
|
* Determines the color of the inner presence circle, indicating status.
|
|
2609
2610
|
* Accepts one of 4 values: 'busy', 'away', 'active', 'offline'
|
|
2611
|
+
* @values busy, away, active, offline
|
|
2610
2612
|
*/
|
|
2611
2613
|
presence: {
|
|
2612
2614
|
type: String,
|
|
@@ -2739,8 +2741,8 @@ function normalizeComponent (
|
|
|
2739
2741
|
;
|
|
2740
2742
|
var component = normalizeComponent(
|
|
2741
2743
|
presence_presencevue_type_script_lang_js_,
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
+
presencevue_type_template_id_77957bb3_render,
|
|
2745
|
+
presencevue_type_template_id_77957bb3_staticRenderFns,
|
|
2744
2746
|
false,
|
|
2745
2747
|
null,
|
|
2746
2748
|
null,
|
|
@@ -2893,6 +2895,7 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
2893
2895
|
* Determines whether to show the presence indicator for
|
|
2894
2896
|
* Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
|
|
2895
2897
|
* or 'active'. By default, it's null and nothing is shown.
|
|
2898
|
+
* @values null, busy, away, offline, active
|
|
2896
2899
|
*/
|
|
2897
2900
|
presence: {
|
|
2898
2901
|
type: String,
|
|
@@ -5604,13 +5607,13 @@ var combobox_loading_listvue_type_template_id_07d9971d_render = function () {var
|
|
|
5604
5607
|
var combobox_loading_listvue_type_template_id_07d9971d_staticRenderFns = []
|
|
5605
5608
|
|
|
5606
5609
|
|
|
5607
|
-
;// 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=
|
|
5608
|
-
var
|
|
5610
|
+
;// 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&
|
|
5611
|
+
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', {
|
|
5609
5612
|
'dt-list-item--focusable': _vm.isFocusable,
|
|
5610
5613
|
'dt-list-item--highlighted': _vm.isHighlighted,
|
|
5611
5614
|
'dt-list-item--static': !_vm.isHoverable,
|
|
5612
5615
|
}],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)}
|
|
5613
|
-
var
|
|
5616
|
+
var list_itemvue_type_template_id_1de8fea6_staticRenderFns = []
|
|
5614
5617
|
|
|
5615
5618
|
|
|
5616
5619
|
;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
|
|
@@ -5627,9 +5630,9 @@ const LIST_ITEM_NAVIGATION_TYPES = {
|
|
|
5627
5630
|
LIST_ITEM_TYPES,
|
|
5628
5631
|
LIST_ITEM_NAVIGATION_TYPES
|
|
5629
5632
|
});
|
|
5630
|
-
;// 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=
|
|
5631
|
-
var
|
|
5632
|
-
var
|
|
5633
|
+
;// 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&
|
|
5634
|
+
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)}
|
|
5635
|
+
var default_list_itemvue_type_template_id_37a42626_staticRenderFns = []
|
|
5633
5636
|
|
|
5634
5637
|
|
|
5635
5638
|
;// 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&
|
|
@@ -5678,7 +5681,7 @@ var default_list_itemvue_type_template_id_2e45cfbd_staticRenderFns = []
|
|
|
5678
5681
|
//
|
|
5679
5682
|
//
|
|
5680
5683
|
/* harmony default export */ const default_list_itemvue_type_script_lang_js_ = ({
|
|
5681
|
-
name: '
|
|
5684
|
+
name: 'DtDefaultListItem'
|
|
5682
5685
|
});
|
|
5683
5686
|
;// CONCATENATED MODULE: ./components/list_item/default_list_item.vue?vue&type=script&lang=js&
|
|
5684
5687
|
/* harmony default export */ const list_item_default_list_itemvue_type_script_lang_js_ = (default_list_itemvue_type_script_lang_js_);
|
|
@@ -5697,8 +5700,8 @@ var default_list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(986
|
|
|
5697
5700
|
|
|
5698
5701
|
var default_list_item_component = normalizeComponent(
|
|
5699
5702
|
list_item_default_list_itemvue_type_script_lang_js_,
|
|
5700
|
-
|
|
5701
|
-
|
|
5703
|
+
default_list_itemvue_type_template_id_37a42626_render,
|
|
5704
|
+
default_list_itemvue_type_template_id_37a42626_staticRenderFns,
|
|
5702
5705
|
false,
|
|
5703
5706
|
null,
|
|
5704
5707
|
null,
|
|
@@ -5760,7 +5763,7 @@ var default_list_item_component = normalizeComponent(
|
|
|
5760
5763
|
*/
|
|
5761
5764
|
|
|
5762
5765
|
/* harmony default export */ const list_itemvue_type_script_lang_js_ = ({
|
|
5763
|
-
name: '
|
|
5766
|
+
name: 'DtListItem',
|
|
5764
5767
|
components: {
|
|
5765
5768
|
DtDefaultListItem: default_list_item,
|
|
5766
5769
|
DtIcon: icon
|
|
@@ -5959,8 +5962,8 @@ var list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(502);
|
|
|
5959
5962
|
|
|
5960
5963
|
var list_item_component = normalizeComponent(
|
|
5961
5964
|
list_item_list_itemvue_type_script_lang_js_,
|
|
5962
|
-
|
|
5963
|
-
|
|
5965
|
+
list_itemvue_type_template_id_1de8fea6_render,
|
|
5966
|
+
list_itemvue_type_template_id_1de8fea6_staticRenderFns,
|
|
5964
5967
|
false,
|
|
5965
5968
|
null,
|
|
5966
5969
|
null,
|
|
@@ -8085,28 +8088,28 @@ var collapsible_component = normalizeComponent(
|
|
|
8085
8088
|
/* harmony default export */ const collapsible = (collapsible_component.exports);
|
|
8086
8089
|
;// CONCATENATED MODULE: ./components/collapsible/index.js
|
|
8087
8090
|
|
|
8088
|
-
;// 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=
|
|
8089
|
-
var
|
|
8091
|
+
;// 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&
|
|
8092
|
+
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){
|
|
8090
8093
|
var attrs = ref.attrs;
|
|
8091
8094
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
8092
8095
|
var close = ref.close;
|
|
8093
8096
|
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))}
|
|
8094
|
-
var
|
|
8097
|
+
var dropdownvue_type_template_id_359f1c8b_staticRenderFns = []
|
|
8095
8098
|
|
|
8096
8099
|
|
|
8097
|
-
;// 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=
|
|
8098
|
-
var
|
|
8100
|
+
;// 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&
|
|
8101
|
+
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":{
|
|
8099
8102
|
'aria-expanded': _vm.isOpen.toString(),
|
|
8100
8103
|
'aria-controls': _vm.id,
|
|
8101
8104
|
'aria-haspopup': _vm.role,
|
|
8102
8105
|
}})],2),_c('dt-lazy-show',_vm._g({ref:"content",class:['d-popover__dialog', { 'd-popover__dialog--modal': _vm.modal }, _vm.dialogClass],style:({
|
|
8103
|
-
'max-height': _vm.
|
|
8106
|
+
'max-height': _vm.calculatedMaxHeight,
|
|
8104
8107
|
'max-width': _vm.maxWidth,
|
|
8105
8108
|
}),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:[
|
|
8106
8109
|
'd-popover__content',
|
|
8107
8110
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
8108
8111
|
_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)}
|
|
8109
|
-
var
|
|
8112
|
+
var popovervue_type_template_id_cdba9054_staticRenderFns = []
|
|
8110
8113
|
|
|
8111
8114
|
|
|
8112
8115
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -12602,7 +12605,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
|
12602
12605
|
const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
12603
12606
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
12604
12607
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
12605
|
-
const POPOVER_APPEND_TO_VALUES = ['parent'];
|
|
12608
|
+
const POPOVER_APPEND_TO_VALUES = ['parent', 'body'];
|
|
12606
12609
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
12607
12610
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
12608
12611
|
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
@@ -13388,11 +13391,12 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13388
13391
|
|
|
13389
13392
|
/**
|
|
13390
13393
|
* Sets the element to which the popover is going to append to.
|
|
13391
|
-
*
|
|
13394
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
13395
|
+
* @values 'body', 'parent', HTMLElement,
|
|
13392
13396
|
*/
|
|
13393
13397
|
appendTo: {
|
|
13394
13398
|
type: [HTMLElement, String],
|
|
13395
|
-
default:
|
|
13399
|
+
default: 'body',
|
|
13396
13400
|
validator: appendTo => {
|
|
13397
13401
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
13398
13402
|
}
|
|
@@ -13418,6 +13422,8 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13418
13422
|
return {
|
|
13419
13423
|
POPOVER_PADDING_CLASSES: POPOVER_PADDING_CLASSES,
|
|
13420
13424
|
POPOVER_HEADER_FOOTER_PADDING_CLASSES: POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
13425
|
+
intersectionObserver: null,
|
|
13426
|
+
isOutsideViewport: false,
|
|
13421
13427
|
isOpen: false,
|
|
13422
13428
|
anchorEl: null,
|
|
13423
13429
|
popoverContentEl: null
|
|
@@ -13440,6 +13446,14 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13440
13446
|
};
|
|
13441
13447
|
},
|
|
13442
13448
|
|
|
13449
|
+
calculatedMaxHeight() {
|
|
13450
|
+
if (this.isOutsideViewport && this.modal) {
|
|
13451
|
+
return `calc(100vh - var(--space-300))`;
|
|
13452
|
+
}
|
|
13453
|
+
|
|
13454
|
+
return this.maxHeight;
|
|
13455
|
+
},
|
|
13456
|
+
|
|
13443
13457
|
labelledBy() {
|
|
13444
13458
|
// aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
|
|
13445
13459
|
// there is no aria-label and the labelledby should point to the anchor.
|
|
@@ -13527,19 +13541,30 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13527
13541
|
},
|
|
13528
13542
|
|
|
13529
13543
|
mounted() {
|
|
13530
|
-
const externalAnchorEl =
|
|
13544
|
+
const externalAnchorEl = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
|
|
13531
13545
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
13532
13546
|
this.popoverContentEl = this.$refs.content.$el;
|
|
13533
13547
|
|
|
13534
13548
|
if (this.isOpen) {
|
|
13535
13549
|
this.initTippyInstance();
|
|
13536
|
-
}
|
|
13550
|
+
} // rootMargin here must be greater than the margin of the height we are setting in calculatedMaxHeight which
|
|
13551
|
+
// currently is var(--space-300) (4px). If not the intersectionObserver will continually trigger in an infinite
|
|
13552
|
+
// loop.
|
|
13553
|
+
// threshold 1.0 makes this trigger every time the dialog "touches" the edge of the viewport.
|
|
13554
|
+
|
|
13555
|
+
|
|
13556
|
+
this.intersectionObserver = new IntersectionObserver(this.hasIntersectedViewport, {
|
|
13557
|
+
rootMargin: '-8px',
|
|
13558
|
+
threshold: 1.0
|
|
13559
|
+
});
|
|
13560
|
+
this.intersectionObserver.observe(this.popoverContentEl);
|
|
13537
13561
|
},
|
|
13538
13562
|
|
|
13539
13563
|
beforeDestroy() {
|
|
13540
13564
|
var _this$tip7;
|
|
13541
13565
|
|
|
13542
13566
|
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
13567
|
+
this.intersectionObserver.disconnect();
|
|
13543
13568
|
this.removeReferences();
|
|
13544
13569
|
this.removeEventListeners();
|
|
13545
13570
|
},
|
|
@@ -13548,6 +13573,11 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13548
13573
|
* METHODS *
|
|
13549
13574
|
******************/
|
|
13550
13575
|
methods: {
|
|
13576
|
+
hasIntersectedViewport(entries) {
|
|
13577
|
+
const dialog = entries === null || entries === void 0 ? void 0 : entries[0];
|
|
13578
|
+
this.isOutsideViewport = !(dialog !== null && dialog !== void 0 && dialog.isIntersecting);
|
|
13579
|
+
},
|
|
13580
|
+
|
|
13551
13581
|
popperOptions() {
|
|
13552
13582
|
return getPopperOptions({
|
|
13553
13583
|
fallbackPlacements: this.fallbackPlacements,
|
|
@@ -13564,7 +13594,9 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13564
13594
|
|
|
13565
13595
|
calculateAnchorZindex() {
|
|
13566
13596
|
// if a modal is currently active render at modal-element z-index, otherwise at popover z-index
|
|
13567
|
-
if (
|
|
13597
|
+
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
|
|
13598
|
+
// anchor of popover is within a drawer.
|
|
13599
|
+
this.anchorEl.closest('.d-zi-drawer')) {
|
|
13568
13600
|
return 650;
|
|
13569
13601
|
} else {
|
|
13570
13602
|
return 300;
|
|
@@ -13801,13 +13833,15 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13801
13833
|
},
|
|
13802
13834
|
|
|
13803
13835
|
initTippyInstance() {
|
|
13836
|
+
var _this$anchorEl2, _this$anchorEl2$getRo;
|
|
13837
|
+
|
|
13804
13838
|
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13805
13839
|
popperOptions: this.popperOptions(),
|
|
13806
13840
|
contentElement: this.popoverContentEl,
|
|
13807
13841
|
placement: this.placement,
|
|
13808
13842
|
offset: this.offset,
|
|
13809
13843
|
sticky: this.sticky,
|
|
13810
|
-
appendTo: this.appendTo,
|
|
13844
|
+
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,
|
|
13811
13845
|
interactive: true,
|
|
13812
13846
|
trigger: 'manual',
|
|
13813
13847
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -13843,8 +13877,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
|
|
|
13843
13877
|
|
|
13844
13878
|
var popover_component = normalizeComponent(
|
|
13845
13879
|
popover_popovervue_type_script_lang_js_,
|
|
13846
|
-
|
|
13847
|
-
|
|
13880
|
+
popovervue_type_template_id_cdba9054_render,
|
|
13881
|
+
popovervue_type_template_id_cdba9054_staticRenderFns,
|
|
13848
13882
|
false,
|
|
13849
13883
|
null,
|
|
13850
13884
|
null,
|
|
@@ -13915,6 +13949,8 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13915
13949
|
//
|
|
13916
13950
|
//
|
|
13917
13951
|
//
|
|
13952
|
+
//
|
|
13953
|
+
|
|
13918
13954
|
|
|
13919
13955
|
|
|
13920
13956
|
|
|
@@ -13962,6 +13998,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13962
13998
|
|
|
13963
13999
|
/**
|
|
13964
14000
|
* Vertical padding size around the list element.
|
|
14001
|
+
* @values none, small, large
|
|
13965
14002
|
*/
|
|
13966
14003
|
padding: {
|
|
13967
14004
|
type: String,
|
|
@@ -13983,6 +14020,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
13983
14020
|
/**
|
|
13984
14021
|
* Width configuration for the popover content. When its value is 'anchor',
|
|
13985
14022
|
* the popover content will have the same width as the anchor.
|
|
14023
|
+
* @values null, anchor
|
|
13986
14024
|
*/
|
|
13987
14025
|
contentWidth: {
|
|
13988
14026
|
type: String,
|
|
@@ -14025,6 +14063,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14025
14063
|
* - "arrow-keys" for items that are navigated with UP/DOWN keys.
|
|
14026
14064
|
* - "tab" for items that are navigated using the TAB key.
|
|
14027
14065
|
* - "none" for static items that are not interactive.
|
|
14066
|
+
* @values arrow-keys, tab, none
|
|
14028
14067
|
*/
|
|
14029
14068
|
navigationType: {
|
|
14030
14069
|
type: String,
|
|
@@ -14035,6 +14074,12 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14035
14074
|
/**
|
|
14036
14075
|
* If the dropdown does not fit in the direction described by "placement",
|
|
14037
14076
|
* it will attempt to change it's direction to the "fallbackPlacements".
|
|
14077
|
+
*
|
|
14078
|
+
* @values top, top-start, top-end,
|
|
14079
|
+
* right, right-start, right-end,
|
|
14080
|
+
* left, left-start, left-end,
|
|
14081
|
+
* bottom, bottom-start, bottom-end,
|
|
14082
|
+
* auto, auto-start, auto-end
|
|
14038
14083
|
* */
|
|
14039
14084
|
fallbackPlacements: {
|
|
14040
14085
|
type: Array,
|
|
@@ -14073,6 +14118,19 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14073
14118
|
listClass: {
|
|
14074
14119
|
type: [String, Array, Object],
|
|
14075
14120
|
default: ''
|
|
14121
|
+
},
|
|
14122
|
+
|
|
14123
|
+
/**
|
|
14124
|
+
* Sets the element to which the popover is going to append to.
|
|
14125
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
14126
|
+
* @values 'body', 'parent', HTMLElement,
|
|
14127
|
+
*/
|
|
14128
|
+
appendTo: {
|
|
14129
|
+
type: [HTMLElement, String],
|
|
14130
|
+
default: 'body',
|
|
14131
|
+
validator: appendTo => {
|
|
14132
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
14133
|
+
}
|
|
14076
14134
|
}
|
|
14077
14135
|
},
|
|
14078
14136
|
emits: [
|
|
@@ -14309,8 +14367,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(782);
|
|
|
14309
14367
|
|
|
14310
14368
|
var dropdown_component = normalizeComponent(
|
|
14311
14369
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
14312
|
-
|
|
14313
|
-
|
|
14370
|
+
dropdownvue_type_template_id_359f1c8b_render,
|
|
14371
|
+
dropdownvue_type_template_id_359f1c8b_staticRenderFns,
|
|
14314
14372
|
false,
|
|
14315
14373
|
null,
|
|
14316
14374
|
null,
|
|
@@ -19602,15 +19660,15 @@ var toggle_component = normalizeComponent(
|
|
|
19602
19660
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
19603
19661
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
19604
19662
|
|
|
19605
|
-
;// 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=
|
|
19606
|
-
var
|
|
19663
|
+
;// 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&
|
|
19664
|
+
var tooltipvue_type_template_id_0c394aac_render = function () {
|
|
19607
19665
|
var _obj;
|
|
19608
19666
|
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:[
|
|
19609
19667
|
'd-tooltip',
|
|
19610
19668
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
19611
19669
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
19612
19670
|
_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)}
|
|
19613
|
-
var
|
|
19671
|
+
var tooltipvue_type_template_id_0c394aac_staticRenderFns = []
|
|
19614
19672
|
|
|
19615
19673
|
|
|
19616
19674
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -19686,7 +19744,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19686
19744
|
*/
|
|
19687
19745
|
|
|
19688
19746
|
/* harmony default export */ const tooltipvue_type_script_lang_js_ = ({
|
|
19689
|
-
name: '
|
|
19747
|
+
name: 'DtTooltip',
|
|
19690
19748
|
components: {
|
|
19691
19749
|
DtLazyShow: lazy_show
|
|
19692
19750
|
},
|
|
@@ -19850,9 +19908,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19850
19908
|
},
|
|
19851
19909
|
|
|
19852
19910
|
tippyProps() {
|
|
19911
|
+
var _this$anchorEl, _this$anchorEl$getRoo;
|
|
19912
|
+
|
|
19853
19913
|
return {
|
|
19854
19914
|
offset: this.offset,
|
|
19855
|
-
appendTo:
|
|
19915
|
+
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'),
|
|
19856
19916
|
interactive: false,
|
|
19857
19917
|
trigger: 'manual',
|
|
19858
19918
|
placement: this.placement,
|
|
@@ -19917,7 +19977,9 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
19917
19977
|
methods: {
|
|
19918
19978
|
calculateAnchorZindex() {
|
|
19919
19979
|
// if a modal is currently active render at modal-element z-index, otherwise at tooltip z-index
|
|
19920
|
-
if (
|
|
19980
|
+
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
|
|
19981
|
+
// anchor of popover is within a drawer.
|
|
19982
|
+
this.$el.closest('.d-zi-drawer')) {
|
|
19921
19983
|
return 651;
|
|
19922
19984
|
} else {
|
|
19923
19985
|
return 400;
|
|
@@ -20013,8 +20075,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(213);
|
|
|
20013
20075
|
|
|
20014
20076
|
var tooltip_component = normalizeComponent(
|
|
20015
20077
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20016
|
-
|
|
20017
|
-
|
|
20078
|
+
tooltipvue_type_template_id_0c394aac_render,
|
|
20079
|
+
tooltipvue_type_template_id_0c394aac_staticRenderFns,
|
|
20018
20080
|
false,
|
|
20019
20081
|
null,
|
|
20020
20082
|
null,
|
|
@@ -20623,15 +20685,189 @@ var root_layout_component = normalizeComponent(
|
|
|
20623
20685
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
20624
20686
|
|
|
20625
20687
|
|
|
20626
|
-
;// 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!./
|
|
20627
|
-
var
|
|
20688
|
+
;// 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&
|
|
20689
|
+
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:[
|
|
20690
|
+
'd-stack',
|
|
20691
|
+
_vm.defaultDirection,
|
|
20692
|
+
_vm.stackResponsive,
|
|
20693
|
+
_vm.stackGap ]},[_vm._t("default")],2)}
|
|
20694
|
+
var stackvue_type_template_id_2f34414c_staticRenderFns = []
|
|
20695
|
+
|
|
20696
|
+
|
|
20697
|
+
;// CONCATENATED MODULE: ./components/stack/stack_constants.js
|
|
20698
|
+
const DT_STACK_DIRECTION = {
|
|
20699
|
+
default: 'column',
|
|
20700
|
+
column: 'column',
|
|
20701
|
+
row: 'row',
|
|
20702
|
+
'row-reverse': 'row-reverse',
|
|
20703
|
+
'column-reverse': 'column-reverse'
|
|
20704
|
+
};
|
|
20705
|
+
const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];
|
|
20706
|
+
const DT_STACK_GAP = ['0', '100', '200', '300', '400', '500', '600'];
|
|
20707
|
+
;// CONCATENATED MODULE: ./components/stack/utils.js
|
|
20708
|
+
|
|
20709
|
+
|
|
20710
|
+
function _isDefaultDirection(direction) {
|
|
20711
|
+
return direction === DT_STACK_DIRECTION["default"];
|
|
20712
|
+
}
|
|
20713
|
+
|
|
20714
|
+
function _getValidDirection(direction) {
|
|
20715
|
+
if (directionPropType(direction) === 'string') {
|
|
20716
|
+
return !_isDefaultDirection(direction) ? DT_STACK_DIRECTION[direction] : null;
|
|
20717
|
+
} else if (directionPropType(direction) === 'object') {
|
|
20718
|
+
const {
|
|
20719
|
+
default: defaultStyle
|
|
20720
|
+
} = direction;
|
|
20721
|
+
return !_isDefaultDirection(defaultStyle) ? DT_STACK_DIRECTION[defaultStyle] : null;
|
|
20722
|
+
} else {
|
|
20723
|
+
return null;
|
|
20724
|
+
}
|
|
20725
|
+
}
|
|
20726
|
+
|
|
20727
|
+
function directionPropType(value) {
|
|
20728
|
+
return typeof value;
|
|
20729
|
+
}
|
|
20730
|
+
function getDefaultDirectionClass(direction) {
|
|
20731
|
+
return _getValidDirection(direction) ? `d-stack--${DT_STACK_DIRECTION[_getValidDirection(direction)]}` : null;
|
|
20732
|
+
}
|
|
20733
|
+
function getResponsiveClasses(direction) {
|
|
20734
|
+
if (directionPropType(direction) === 'object') {
|
|
20735
|
+
return [...DT_STACK_RESPONSIVE_BREAKPOINTS.map(breakpoint => {
|
|
20736
|
+
return direction[breakpoint] ? `d-stack--${breakpoint}--${direction[breakpoint]}` : null;
|
|
20737
|
+
})];
|
|
20738
|
+
} else {
|
|
20739
|
+
return null;
|
|
20740
|
+
}
|
|
20741
|
+
}
|
|
20742
|
+
function getGapClass(gap) {
|
|
20743
|
+
return DT_STACK_GAP.includes(gap) ? `d-stack--gap-${gap}` : null;
|
|
20744
|
+
}
|
|
20745
|
+
;// CONCATENATED MODULE: ./components/stack/validators.js
|
|
20746
|
+
|
|
20747
|
+
|
|
20748
|
+
function directionValidator(direction) {
|
|
20749
|
+
if (directionPropType(direction) === 'string') {
|
|
20750
|
+
return Object.keys(DT_STACK_DIRECTION).includes(direction);
|
|
20751
|
+
} else if (directionPropType(direction) === 'object') {
|
|
20752
|
+
const {
|
|
20753
|
+
default: defaultStyle
|
|
20754
|
+
} = direction;
|
|
20755
|
+
return Object.keys(DT_STACK_DIRECTION).includes(defaultStyle);
|
|
20756
|
+
} else {
|
|
20757
|
+
return null;
|
|
20758
|
+
}
|
|
20759
|
+
}
|
|
20760
|
+
function gapValidator(gap) {
|
|
20761
|
+
return DT_STACK_GAP.includes(gap);
|
|
20762
|
+
}
|
|
20763
|
+
;// 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/stack/stack.vue?vue&type=script&lang=js&
|
|
20764
|
+
//
|
|
20765
|
+
//
|
|
20766
|
+
//
|
|
20767
|
+
//
|
|
20768
|
+
//
|
|
20769
|
+
//
|
|
20770
|
+
//
|
|
20771
|
+
//
|
|
20772
|
+
//
|
|
20773
|
+
//
|
|
20774
|
+
//
|
|
20775
|
+
//
|
|
20776
|
+
//
|
|
20777
|
+
//
|
|
20778
|
+
//
|
|
20779
|
+
|
|
20780
|
+
|
|
20781
|
+
|
|
20782
|
+
/* harmony default export */ const stackvue_type_script_lang_js_ = ({
|
|
20783
|
+
name: 'DtStack',
|
|
20784
|
+
props: {
|
|
20785
|
+
/**
|
|
20786
|
+
* Set this prop to the direction to stack the items.
|
|
20787
|
+
* You can override the default direction with 'default' key.
|
|
20788
|
+
* All the undefined breakpoints will have 'default' value
|
|
20789
|
+
*/
|
|
20790
|
+
direction: {
|
|
20791
|
+
type: [String, Object],
|
|
20792
|
+
default: 'column',
|
|
20793
|
+
validator: direction => directionValidator(direction)
|
|
20794
|
+
},
|
|
20795
|
+
|
|
20796
|
+
/**
|
|
20797
|
+
* Set this prop to render stack as a specific HTML element.
|
|
20798
|
+
*/
|
|
20799
|
+
as: {
|
|
20800
|
+
type: String,
|
|
20801
|
+
default: 'div'
|
|
20802
|
+
},
|
|
20803
|
+
|
|
20804
|
+
/**
|
|
20805
|
+
* Set this prop to have the space between each stack item
|
|
20806
|
+
* @values 0, 100, 200, 300, 400, 500, 600
|
|
20807
|
+
*/
|
|
20808
|
+
gap: {
|
|
20809
|
+
type: String,
|
|
20810
|
+
default: '0',
|
|
20811
|
+
validator: gap => gapValidator(gap)
|
|
20812
|
+
}
|
|
20813
|
+
},
|
|
20814
|
+
|
|
20815
|
+
data() {
|
|
20816
|
+
return {
|
|
20817
|
+
DT_STACK_DIRECTION: DT_STACK_DIRECTION,
|
|
20818
|
+
DT_STACK_GAP: DT_STACK_GAP,
|
|
20819
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: DT_STACK_RESPONSIVE_BREAKPOINTS
|
|
20820
|
+
};
|
|
20821
|
+
},
|
|
20822
|
+
|
|
20823
|
+
computed: {
|
|
20824
|
+
stackGap() {
|
|
20825
|
+
return getGapClass(this.gap);
|
|
20826
|
+
},
|
|
20827
|
+
|
|
20828
|
+
defaultDirection() {
|
|
20829
|
+
return getDefaultDirectionClass(this.direction);
|
|
20830
|
+
},
|
|
20831
|
+
|
|
20832
|
+
stackResponsive() {
|
|
20833
|
+
return getResponsiveClasses(this.direction);
|
|
20834
|
+
}
|
|
20835
|
+
|
|
20836
|
+
}
|
|
20837
|
+
});
|
|
20838
|
+
;// CONCATENATED MODULE: ./components/stack/stack.vue?vue&type=script&lang=js&
|
|
20839
|
+
/* harmony default export */ const stack_stackvue_type_script_lang_js_ = (stackvue_type_script_lang_js_);
|
|
20840
|
+
;// CONCATENATED MODULE: ./components/stack/stack.vue
|
|
20841
|
+
|
|
20842
|
+
|
|
20843
|
+
|
|
20844
|
+
|
|
20845
|
+
|
|
20846
|
+
/* normalize component */
|
|
20847
|
+
;
|
|
20848
|
+
var stack_component = normalizeComponent(
|
|
20849
|
+
stack_stackvue_type_script_lang_js_,
|
|
20850
|
+
stackvue_type_template_id_2f34414c_render,
|
|
20851
|
+
stackvue_type_template_id_2f34414c_staticRenderFns,
|
|
20852
|
+
false,
|
|
20853
|
+
null,
|
|
20854
|
+
null,
|
|
20855
|
+
null
|
|
20856
|
+
|
|
20857
|
+
)
|
|
20858
|
+
|
|
20859
|
+
/* harmony default export */ const stack = (stack_component.exports);
|
|
20860
|
+
;// CONCATENATED MODULE: ./components/stack/index.js
|
|
20861
|
+
|
|
20862
|
+
;// 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&
|
|
20863
|
+
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){
|
|
20628
20864
|
var inputProps = ref.inputProps;
|
|
20629
20865
|
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){
|
|
20630
20866
|
var opened = ref.opened;
|
|
20631
20867
|
var listProps = ref.listProps;
|
|
20632
20868
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20633
20869
|
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))}
|
|
20634
|
-
var
|
|
20870
|
+
var combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns = []
|
|
20635
20871
|
|
|
20636
20872
|
|
|
20637
20873
|
;// 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&
|
|
@@ -20943,11 +21179,12 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
|
20943
21179
|
|
|
20944
21180
|
/**
|
|
20945
21181
|
* Sets the element to which the popover is going to append to.
|
|
20946
|
-
*
|
|
21182
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
21183
|
+
* @values 'body', 'parent', HTMLElement,
|
|
20947
21184
|
*/
|
|
20948
21185
|
appendTo: {
|
|
20949
21186
|
type: [HTMLElement, String],
|
|
20950
|
-
default:
|
|
21187
|
+
default: 'body',
|
|
20951
21188
|
validator: appendTo => {
|
|
20952
21189
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
20953
21190
|
}
|
|
@@ -21115,8 +21352,8 @@ var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
|
21115
21352
|
;
|
|
21116
21353
|
var combobox_with_popover_component = normalizeComponent(
|
|
21117
21354
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
21118
|
-
|
|
21119
|
-
|
|
21355
|
+
combobox_with_popovervue_type_template_id_2f87445e_render,
|
|
21356
|
+
combobox_with_popovervue_type_template_id_2f87445e_staticRenderFns,
|
|
21120
21357
|
false,
|
|
21121
21358
|
null,
|
|
21122
21359
|
null,
|
|
@@ -21127,11 +21364,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
21127
21364
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
21128
21365
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
21129
21366
|
|
|
21130
|
-
;// 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=
|
|
21131
|
-
var
|
|
21367
|
+
;// 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&
|
|
21368
|
+
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){
|
|
21132
21369
|
var onInput = ref.onInput;
|
|
21133
21370
|
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)})}
|
|
21134
|
-
var
|
|
21371
|
+
var combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns = []
|
|
21135
21372
|
|
|
21136
21373
|
|
|
21137
21374
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -21509,11 +21746,12 @@ const CHIP_TOP_POSITION = {
|
|
|
21509
21746
|
|
|
21510
21747
|
/**
|
|
21511
21748
|
* Sets the element to which the popover is going to append to.
|
|
21512
|
-
*
|
|
21749
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
21750
|
+
* @values 'body', 'parent', HTMLElement,
|
|
21513
21751
|
*/
|
|
21514
21752
|
appendTo: {
|
|
21515
21753
|
type: [HTMLElement, String],
|
|
21516
|
-
default:
|
|
21754
|
+
default: 'body',
|
|
21517
21755
|
validator: appendTo => {
|
|
21518
21756
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21519
21757
|
}
|
|
@@ -21847,8 +22085,8 @@ const CHIP_TOP_POSITION = {
|
|
|
21847
22085
|
;
|
|
21848
22086
|
var combobox_multi_select_component = normalizeComponent(
|
|
21849
22087
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
21850
|
-
|
|
21851
|
-
|
|
22088
|
+
combobox_multi_selectvue_type_template_id_4a2d233d_render,
|
|
22089
|
+
combobox_multi_selectvue_type_template_id_4a2d233d_staticRenderFns,
|
|
21852
22090
|
false,
|
|
21853
22091
|
null,
|
|
21854
22092
|
null,
|
|
@@ -23063,6 +23301,7 @@ var grouped_chip_component = normalizeComponent(
|
|
|
23063
23301
|
|
|
23064
23302
|
|
|
23065
23303
|
|
|
23304
|
+
|
|
23066
23305
|
|
|
23067
23306
|
|
|
23068
23307
|
/// Recipes
|