@dialpad/dialtone-vue 2.57.0 → 2.58.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 +22 -0
- package/dist/dialtone-vue.common.js +214 -80
- package/dist/dialtone-vue.umd.js +214 -80
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# [2.58.0](https://github.com/dialpad/dialtone-vue/compare/v2.57.1...v2.58.0) (2023-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **Stack:** new stack component ([#758](https://github.com/dialpad/dialtone-vue/issues/758)) ([7e8e78a](https://github.com/dialpad/dialtone-vue/commit/7e8e78ae5e884ce0d1bb79a61ee5417f04ec4086))
|
|
7
|
+
|
|
8
|
+
# [2.58.0](https://github.com/dialpad/dialtone-vue/compare/v2.57.1...v2.58.0) (2023-02-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **Stack:** new stack component ([#758](https://github.com/dialpad/dialtone-vue/issues/758)) ([7e8e78a](https://github.com/dialpad/dialtone-vue/commit/7e8e78ae5e884ce0d1bb79a61ee5417f04ec4086))
|
|
14
|
+
|
|
15
|
+
## [2.57.1](https://github.com/dialpad/dialtone-vue/compare/v2.57.0...v2.57.1) (2023-02-15)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add appendTo prop on all popover based components ([#764](https://github.com/dialpad/dialtone-vue/issues/764)) ([e11a915](https://github.com/dialpad/dialtone-vue/commit/e11a915666a9dff363ca7a489cffbb0464198ed2))
|
|
21
|
+
* **Dropdown:** remove deprecated DropdownList ([#765](https://github.com/dialpad/dialtone-vue/issues/765)) ([72edcf1](https://github.com/dialpad/dialtone-vue/commit/72edcf1edb84656ae88d37c5dfaa996cb240e6c6))
|
|
22
|
+
|
|
1
23
|
# [2.57.0](https://github.com/dialpad/dialtone-vue/compare/v2.56.1...v2.57.0) (2023-02-14)
|
|
2
24
|
|
|
3
25
|
|
|
@@ -2213,7 +2213,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2213
2213
|
"DtCollapsible": () => (/* reexport */ collapsible),
|
|
2214
2214
|
"DtCombobox": () => (/* reexport */ combobox),
|
|
2215
2215
|
"DtDropdown": () => (/* reexport */ dropdown),
|
|
2216
|
-
"DtDropdownList": () => (/* reexport */ dropdown_list),
|
|
2217
2216
|
"DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
|
|
2218
2217
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
2219
2218
|
"DtIcon": () => (/* reexport */ icon),
|
|
@@ -2249,6 +2248,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2249
2248
|
"DtSkeletonParagraph": () => (/* reexport */ skeleton_paragraph),
|
|
2250
2249
|
"DtSkeletonShape": () => (/* reexport */ skeleton_shape),
|
|
2251
2250
|
"DtSkeletonText": () => (/* reexport */ skeleton_text),
|
|
2251
|
+
"DtStack": () => (/* reexport */ stack),
|
|
2252
2252
|
"DtTab": () => (/* reexport */ tab),
|
|
2253
2253
|
"DtTabGroup": () => (/* reexport */ tab_group),
|
|
2254
2254
|
"DtTabPanel": () => (/* reexport */ tab_panel),
|
|
@@ -14320,73 +14320,6 @@ var dropdown_component = normalizeComponent(
|
|
|
14320
14320
|
)
|
|
14321
14321
|
|
|
14322
14322
|
/* harmony default export */ const dropdown = (dropdown_component.exports);
|
|
14323
|
-
;// 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_list.vue?vue&type=template&id=c83c6b9a&
|
|
14324
|
-
var dropdown_listvue_type_template_id_c83c6b9a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',[(_vm.heading)?_c('div',{staticClass:"dt-dropdown-list--header d-fs12 d-fc-black-400 d-fw-bold d-lh4 d-py4 d-px12 d-d-flex d-ai-center"},[_c('span',[_vm._v(_vm._s(_vm.heading))])]):_vm._e(),_c('ul',{class:['d-ps-relative', 'd-stack2', 'd-px0', _vm.listClass],attrs:{"data-qa":"dt-dropdown-list-wrapper"}},[_vm._t("default")],2)])}
|
|
14325
|
-
var dropdown_listvue_type_template_id_c83c6b9a_staticRenderFns = []
|
|
14326
|
-
|
|
14327
|
-
|
|
14328
|
-
;// 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/dropdown/dropdown_list.vue?vue&type=script&lang=js&
|
|
14329
|
-
//
|
|
14330
|
-
//
|
|
14331
|
-
//
|
|
14332
|
-
//
|
|
14333
|
-
//
|
|
14334
|
-
//
|
|
14335
|
-
//
|
|
14336
|
-
//
|
|
14337
|
-
//
|
|
14338
|
-
//
|
|
14339
|
-
//
|
|
14340
|
-
//
|
|
14341
|
-
//
|
|
14342
|
-
//
|
|
14343
|
-
//
|
|
14344
|
-
//
|
|
14345
|
-
//
|
|
14346
|
-
//
|
|
14347
|
-
//
|
|
14348
|
-
/* harmony default export */ const dropdown_listvue_type_script_lang_js_ = ({
|
|
14349
|
-
name: 'DtDropdownList',
|
|
14350
|
-
props: {
|
|
14351
|
-
/**
|
|
14352
|
-
* List's heading.
|
|
14353
|
-
*/
|
|
14354
|
-
heading: {
|
|
14355
|
-
type: String,
|
|
14356
|
-
default: ''
|
|
14357
|
-
},
|
|
14358
|
-
|
|
14359
|
-
/**
|
|
14360
|
-
* Additional class for the wrapper list element.
|
|
14361
|
-
*/
|
|
14362
|
-
listClass: {
|
|
14363
|
-
type: [String, Array, Object],
|
|
14364
|
-
default: ''
|
|
14365
|
-
}
|
|
14366
|
-
}
|
|
14367
|
-
});
|
|
14368
|
-
;// CONCATENATED MODULE: ./components/dropdown/dropdown_list.vue?vue&type=script&lang=js&
|
|
14369
|
-
/* harmony default export */ const dropdown_dropdown_listvue_type_script_lang_js_ = (dropdown_listvue_type_script_lang_js_);
|
|
14370
|
-
;// CONCATENATED MODULE: ./components/dropdown/dropdown_list.vue
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
/* normalize component */
|
|
14377
|
-
;
|
|
14378
|
-
var dropdown_list_component = normalizeComponent(
|
|
14379
|
-
dropdown_dropdown_listvue_type_script_lang_js_,
|
|
14380
|
-
dropdown_listvue_type_template_id_c83c6b9a_render,
|
|
14381
|
-
dropdown_listvue_type_template_id_c83c6b9a_staticRenderFns,
|
|
14382
|
-
false,
|
|
14383
|
-
null,
|
|
14384
|
-
null,
|
|
14385
|
-
null
|
|
14386
|
-
|
|
14387
|
-
)
|
|
14388
|
-
|
|
14389
|
-
/* harmony default export */ const dropdown_list = (dropdown_list_component.exports);
|
|
14390
14323
|
;// 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_separator.vue?vue&type=template&id=7efcdecb&
|
|
14391
14324
|
var dropdown_separatorvue_type_template_id_7efcdecb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"dt-list-separator d-bgc-black-300 d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})}
|
|
14392
14325
|
var dropdown_separatorvue_type_template_id_7efcdecb_staticRenderFns = []
|
|
@@ -14433,7 +14366,6 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14433
14366
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14434
14367
|
|
|
14435
14368
|
|
|
14436
|
-
|
|
14437
14369
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=5be97b31&
|
|
14438
14370
|
var inputvue_type_template_id_5be97b31_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",function(){return [(_vm.labelVisible && _vm.label)?_c('div',{ref:"label",class:[
|
|
14439
14371
|
'base-input__label-text',
|
|
@@ -20692,15 +20624,188 @@ var root_layout_component = normalizeComponent(
|
|
|
20692
20624
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
20693
20625
|
|
|
20694
20626
|
|
|
20695
|
-
;// 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!./
|
|
20696
|
-
var
|
|
20627
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/stack/stack.vue?vue&type=template&id=ec7d952a&
|
|
20628
|
+
var stackvue_type_template_id_ec7d952a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.as,{tag:"component",class:[
|
|
20629
|
+
'd-stack',
|
|
20630
|
+
_vm.defaultDirection,
|
|
20631
|
+
_vm.stackResponsive,
|
|
20632
|
+
_vm.stackGap ]},[_vm._t("default")],2)}
|
|
20633
|
+
var stackvue_type_template_id_ec7d952a_staticRenderFns = []
|
|
20634
|
+
|
|
20635
|
+
|
|
20636
|
+
;// CONCATENATED MODULE: ./components/stack/stack_constants.js
|
|
20637
|
+
const DT_STACK_DIRECTION = {
|
|
20638
|
+
default: 'column',
|
|
20639
|
+
column: 'column',
|
|
20640
|
+
row: 'row',
|
|
20641
|
+
'row-reverse': 'row-reverse',
|
|
20642
|
+
'column-reverse': 'column-reverse'
|
|
20643
|
+
};
|
|
20644
|
+
const DT_STACK_RESPONSIVE_BREAKPOINTS = ['sm', 'md', 'lg', 'xl'];
|
|
20645
|
+
const DT_STACK_GAP = ['0', '100', '200', '300', '400', '500', '600'];
|
|
20646
|
+
;// CONCATENATED MODULE: ./components/stack/utils.js
|
|
20647
|
+
|
|
20648
|
+
|
|
20649
|
+
function _isDefaultDirection(direction) {
|
|
20650
|
+
return direction === DT_STACK_DIRECTION["default"];
|
|
20651
|
+
}
|
|
20652
|
+
|
|
20653
|
+
function _getValidDirection(direction) {
|
|
20654
|
+
if (directionPropType(direction) === 'string') {
|
|
20655
|
+
return !_isDefaultDirection(direction) ? DT_STACK_DIRECTION[direction] : null;
|
|
20656
|
+
} else if (directionPropType(direction) === 'object') {
|
|
20657
|
+
const {
|
|
20658
|
+
default: defaultStyle
|
|
20659
|
+
} = direction;
|
|
20660
|
+
return !_isDefaultDirection(defaultStyle) ? DT_STACK_DIRECTION[defaultStyle] : null;
|
|
20661
|
+
} else {
|
|
20662
|
+
return null;
|
|
20663
|
+
}
|
|
20664
|
+
}
|
|
20665
|
+
|
|
20666
|
+
function directionPropType(value) {
|
|
20667
|
+
return typeof value;
|
|
20668
|
+
}
|
|
20669
|
+
function getDefaultDirectionClass(direction) {
|
|
20670
|
+
return _getValidDirection(direction) ? `d-stack--${DT_STACK_DIRECTION[_getValidDirection(direction)]}` : null;
|
|
20671
|
+
}
|
|
20672
|
+
function getResponsiveClasses(direction) {
|
|
20673
|
+
if (directionPropType(direction) === 'object') {
|
|
20674
|
+
return [...DT_STACK_RESPONSIVE_BREAKPOINTS.map(breakpoint => {
|
|
20675
|
+
return direction[breakpoint] ? `d-stack--${breakpoint}--${direction[breakpoint]}` : null;
|
|
20676
|
+
})];
|
|
20677
|
+
} else {
|
|
20678
|
+
return null;
|
|
20679
|
+
}
|
|
20680
|
+
}
|
|
20681
|
+
function getGapClass(gap) {
|
|
20682
|
+
return DT_STACK_GAP.includes(gap) ? `d-stack--gap-${gap}` : null;
|
|
20683
|
+
}
|
|
20684
|
+
;// CONCATENATED MODULE: ./components/stack/validators.js
|
|
20685
|
+
|
|
20686
|
+
|
|
20687
|
+
function directionValidator(direction) {
|
|
20688
|
+
if (directionPropType(direction) === 'string') {
|
|
20689
|
+
return Object.keys(DT_STACK_DIRECTION).includes(direction);
|
|
20690
|
+
} else if (directionPropType(direction) === 'object') {
|
|
20691
|
+
const {
|
|
20692
|
+
default: defaultStyle
|
|
20693
|
+
} = direction;
|
|
20694
|
+
return Object.keys(DT_STACK_DIRECTION).includes(defaultStyle);
|
|
20695
|
+
} else {
|
|
20696
|
+
return null;
|
|
20697
|
+
}
|
|
20698
|
+
}
|
|
20699
|
+
function gapValidator(gap) {
|
|
20700
|
+
return DT_STACK_GAP.includes(gap);
|
|
20701
|
+
}
|
|
20702
|
+
;// 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&
|
|
20703
|
+
//
|
|
20704
|
+
//
|
|
20705
|
+
//
|
|
20706
|
+
//
|
|
20707
|
+
//
|
|
20708
|
+
//
|
|
20709
|
+
//
|
|
20710
|
+
//
|
|
20711
|
+
//
|
|
20712
|
+
//
|
|
20713
|
+
//
|
|
20714
|
+
//
|
|
20715
|
+
//
|
|
20716
|
+
//
|
|
20717
|
+
//
|
|
20718
|
+
|
|
20719
|
+
|
|
20720
|
+
|
|
20721
|
+
/* harmony default export */ const stackvue_type_script_lang_js_ = ({
|
|
20722
|
+
name: 'DtStack',
|
|
20723
|
+
props: {
|
|
20724
|
+
/**
|
|
20725
|
+
* Set this prop to the direction to stack the items.
|
|
20726
|
+
* You can override the default direction with 'default' key.
|
|
20727
|
+
* All the undefined breakpoints will have 'default' value
|
|
20728
|
+
*/
|
|
20729
|
+
direction: {
|
|
20730
|
+
type: [String, Object],
|
|
20731
|
+
default: 'column',
|
|
20732
|
+
validator: direction => directionValidator(direction)
|
|
20733
|
+
},
|
|
20734
|
+
|
|
20735
|
+
/**
|
|
20736
|
+
* Set this prop to render stack as a specific HTML element.
|
|
20737
|
+
*/
|
|
20738
|
+
as: {
|
|
20739
|
+
type: String,
|
|
20740
|
+
default: 'div'
|
|
20741
|
+
},
|
|
20742
|
+
|
|
20743
|
+
/**
|
|
20744
|
+
* Set this prop to have the space between each stack item
|
|
20745
|
+
*/
|
|
20746
|
+
gap: {
|
|
20747
|
+
type: String,
|
|
20748
|
+
default: '0',
|
|
20749
|
+
validator: gap => gapValidator(gap)
|
|
20750
|
+
}
|
|
20751
|
+
},
|
|
20752
|
+
|
|
20753
|
+
data() {
|
|
20754
|
+
return {
|
|
20755
|
+
DT_STACK_DIRECTION: DT_STACK_DIRECTION,
|
|
20756
|
+
DT_STACK_GAP: DT_STACK_GAP,
|
|
20757
|
+
DT_STACK_RESPONSIVE_BREAKPOINTS: DT_STACK_RESPONSIVE_BREAKPOINTS
|
|
20758
|
+
};
|
|
20759
|
+
},
|
|
20760
|
+
|
|
20761
|
+
computed: {
|
|
20762
|
+
stackGap() {
|
|
20763
|
+
return getGapClass(this.gap);
|
|
20764
|
+
},
|
|
20765
|
+
|
|
20766
|
+
defaultDirection() {
|
|
20767
|
+
return getDefaultDirectionClass(this.direction);
|
|
20768
|
+
},
|
|
20769
|
+
|
|
20770
|
+
stackResponsive() {
|
|
20771
|
+
return getResponsiveClasses(this.direction);
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
}
|
|
20775
|
+
});
|
|
20776
|
+
;// CONCATENATED MODULE: ./components/stack/stack.vue?vue&type=script&lang=js&
|
|
20777
|
+
/* harmony default export */ const stack_stackvue_type_script_lang_js_ = (stackvue_type_script_lang_js_);
|
|
20778
|
+
;// CONCATENATED MODULE: ./components/stack/stack.vue
|
|
20779
|
+
|
|
20780
|
+
|
|
20781
|
+
|
|
20782
|
+
|
|
20783
|
+
|
|
20784
|
+
/* normalize component */
|
|
20785
|
+
;
|
|
20786
|
+
var stack_component = normalizeComponent(
|
|
20787
|
+
stack_stackvue_type_script_lang_js_,
|
|
20788
|
+
stackvue_type_template_id_ec7d952a_render,
|
|
20789
|
+
stackvue_type_template_id_ec7d952a_staticRenderFns,
|
|
20790
|
+
false,
|
|
20791
|
+
null,
|
|
20792
|
+
null,
|
|
20793
|
+
null
|
|
20794
|
+
|
|
20795
|
+
)
|
|
20796
|
+
|
|
20797
|
+
/* harmony default export */ const stack = (stack_component.exports);
|
|
20798
|
+
;// CONCATENATED MODULE: ./components/stack/index.js
|
|
20799
|
+
|
|
20800
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=8075a3ae&
|
|
20801
|
+
var combobox_with_popovervue_type_template_id_8075a3ae_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){
|
|
20697
20802
|
var inputProps = ref.inputProps;
|
|
20698
20803
|
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){
|
|
20699
20804
|
var opened = ref.opened;
|
|
20700
20805
|
var listProps = ref.listProps;
|
|
20701
20806
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20702
|
-
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,"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))}
|
|
20703
|
-
var
|
|
20807
|
+
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":false,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"append-to":_vm.appendTo,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":clearHighlightIndex}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
|
|
20808
|
+
var combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns = []
|
|
20704
20809
|
|
|
20705
20810
|
|
|
20706
20811
|
;// 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&
|
|
@@ -20809,6 +20914,8 @@ var combobox_with_popovervue_type_template_id_7027b3a3_staticRenderFns = []
|
|
|
20809
20914
|
//
|
|
20810
20915
|
//
|
|
20811
20916
|
//
|
|
20917
|
+
//
|
|
20918
|
+
|
|
20812
20919
|
|
|
20813
20920
|
|
|
20814
20921
|
|
|
@@ -21006,6 +21113,18 @@ var combobox_with_popovervue_type_template_id_7027b3a3_staticRenderFns = []
|
|
|
21006
21113
|
emptyStateMessage: {
|
|
21007
21114
|
type: String,
|
|
21008
21115
|
default: ''
|
|
21116
|
+
},
|
|
21117
|
+
|
|
21118
|
+
/**
|
|
21119
|
+
* Sets the element to which the popover is going to append to.
|
|
21120
|
+
* @values 'parent', HTMLElement,
|
|
21121
|
+
*/
|
|
21122
|
+
appendTo: {
|
|
21123
|
+
type: [HTMLElement, String],
|
|
21124
|
+
default: () => document.body,
|
|
21125
|
+
validator: appendTo => {
|
|
21126
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21127
|
+
}
|
|
21009
21128
|
}
|
|
21010
21129
|
},
|
|
21011
21130
|
emits: [
|
|
@@ -21170,8 +21289,8 @@ var combobox_with_popovervue_type_template_id_7027b3a3_staticRenderFns = []
|
|
|
21170
21289
|
;
|
|
21171
21290
|
var combobox_with_popover_component = normalizeComponent(
|
|
21172
21291
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
21173
|
-
|
|
21174
|
-
|
|
21292
|
+
combobox_with_popovervue_type_template_id_8075a3ae_render,
|
|
21293
|
+
combobox_with_popovervue_type_template_id_8075a3ae_staticRenderFns,
|
|
21175
21294
|
false,
|
|
21176
21295
|
null,
|
|
21177
21296
|
null,
|
|
@@ -21182,11 +21301,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
21182
21301
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
21183
21302
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
21184
21303
|
|
|
21185
|
-
;// 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=
|
|
21186
|
-
var
|
|
21304
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=a62f00d6&
|
|
21305
|
+
var combobox_multi_selectvue_type_template_id_a62f00d6_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){
|
|
21187
21306
|
var onInput = ref.onInput;
|
|
21188
21307
|
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)})}
|
|
21189
|
-
var
|
|
21308
|
+
var combobox_multi_selectvue_type_template_id_a62f00d6_staticRenderFns = []
|
|
21190
21309
|
|
|
21191
21310
|
|
|
21192
21311
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -21402,6 +21521,8 @@ const CHIP_TOP_POSITION = {
|
|
|
21402
21521
|
//
|
|
21403
21522
|
//
|
|
21404
21523
|
//
|
|
21524
|
+
//
|
|
21525
|
+
|
|
21405
21526
|
|
|
21406
21527
|
|
|
21407
21528
|
|
|
@@ -21558,6 +21679,18 @@ const CHIP_TOP_POSITION = {
|
|
|
21558
21679
|
type: String,
|
|
21559
21680
|
default: null,
|
|
21560
21681
|
validator: t => Object.values(MULTI_SELECT_SIZES).includes(t)
|
|
21682
|
+
},
|
|
21683
|
+
|
|
21684
|
+
/**
|
|
21685
|
+
* Sets the element to which the popover is going to append to.
|
|
21686
|
+
* @values 'parent', HTMLElement,
|
|
21687
|
+
*/
|
|
21688
|
+
appendTo: {
|
|
21689
|
+
type: [HTMLElement, String],
|
|
21690
|
+
default: () => document.body,
|
|
21691
|
+
validator: appendTo => {
|
|
21692
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
21693
|
+
}
|
|
21561
21694
|
}
|
|
21562
21695
|
},
|
|
21563
21696
|
emits: [
|
|
@@ -21888,8 +22021,8 @@ const CHIP_TOP_POSITION = {
|
|
|
21888
22021
|
;
|
|
21889
22022
|
var combobox_multi_select_component = normalizeComponent(
|
|
21890
22023
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
21891
|
-
|
|
21892
|
-
|
|
22024
|
+
combobox_multi_selectvue_type_template_id_a62f00d6_render,
|
|
22025
|
+
combobox_multi_selectvue_type_template_id_a62f00d6_staticRenderFns,
|
|
21893
22026
|
false,
|
|
21894
22027
|
null,
|
|
21895
22028
|
null,
|
|
@@ -23104,6 +23237,7 @@ var grouped_chip_component = normalizeComponent(
|
|
|
23104
23237
|
|
|
23105
23238
|
|
|
23106
23239
|
|
|
23240
|
+
|
|
23107
23241
|
|
|
23108
23242
|
|
|
23109
23243
|
/// Recipes
|