@dialpad/dialtone-vue 2.15.0 → 2.16.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.
|
@@ -17101,11 +17101,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
17101
17101
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
17102
17102
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
17103
17103
|
|
|
17104
|
-
;// 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=
|
|
17105
|
-
var
|
|
17104
|
+
;// 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=907d2f60&
|
|
17105
|
+
var combobox_multi_selectvue_type_template_id_907d2f60_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:{"list-aria-label":"listAriaLabel","show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
17106
17106
|
var onInput = ref.onInput;
|
|
17107
17107
|
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_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,staticClass:"d-mt4 d-mx2 d-zi-base1",attrs:{"close-button-props":{ ariaLabel: 'close' },"size":_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 d-mb4",attrs:{"label":_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"},[(!_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)})}
|
|
17108
|
-
var
|
|
17108
|
+
var combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns = []
|
|
17109
17109
|
|
|
17110
17110
|
|
|
17111
17111
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -17482,10 +17482,19 @@ const MULTI_SELECT_SIZES = {
|
|
|
17482
17482
|
return { ...this.$listeners,
|
|
17483
17483
|
input: event => {
|
|
17484
17484
|
this.$emit('input', event);
|
|
17485
|
+
|
|
17486
|
+
if (this.hasSuggestionList) {
|
|
17487
|
+
this.showComboboxList();
|
|
17488
|
+
}
|
|
17485
17489
|
},
|
|
17486
17490
|
keyup: event => {
|
|
17487
17491
|
this.onInputKeyup(event);
|
|
17488
17492
|
this.$emit('keyup', event);
|
|
17493
|
+
},
|
|
17494
|
+
click: event => {
|
|
17495
|
+
if (this.hasSuggestionList) {
|
|
17496
|
+
this.showComboboxList();
|
|
17497
|
+
}
|
|
17489
17498
|
}
|
|
17490
17499
|
};
|
|
17491
17500
|
}
|
|
@@ -17545,6 +17554,22 @@ const MULTI_SELECT_SIZES = {
|
|
|
17545
17554
|
this.$emit('select', i);
|
|
17546
17555
|
},
|
|
17547
17556
|
|
|
17557
|
+
showComboboxList() {
|
|
17558
|
+
if (this.showList != null) {
|
|
17559
|
+
return;
|
|
17560
|
+
}
|
|
17561
|
+
|
|
17562
|
+
this.$refs.comboboxWithPopover.showComboboxList();
|
|
17563
|
+
},
|
|
17564
|
+
|
|
17565
|
+
closeComboboxList() {
|
|
17566
|
+
if (this.showList != null) {
|
|
17567
|
+
return;
|
|
17568
|
+
}
|
|
17569
|
+
|
|
17570
|
+
this.$refs.comboboxWithPopover.closeComboboxList();
|
|
17571
|
+
},
|
|
17572
|
+
|
|
17548
17573
|
getChipButtons() {
|
|
17549
17574
|
return this.$refs.chips && this.$refs.chips.map(chip => chip.$el.querySelector('button'));
|
|
17550
17575
|
},
|
|
@@ -17606,13 +17631,13 @@ const MULTI_SELECT_SIZES = {
|
|
|
17606
17631
|
moveFromInputToChip() {
|
|
17607
17632
|
this.getLastChipButton().focus();
|
|
17608
17633
|
this.$refs.input.blur();
|
|
17609
|
-
this
|
|
17634
|
+
this.closeComboboxList();
|
|
17610
17635
|
},
|
|
17611
17636
|
|
|
17612
17637
|
moveFromChipToInput() {
|
|
17613
17638
|
this.getLastChipButton().blur();
|
|
17614
17639
|
this.$refs.input.focus();
|
|
17615
|
-
this
|
|
17640
|
+
this.showComboboxList();
|
|
17616
17641
|
},
|
|
17617
17642
|
|
|
17618
17643
|
navigateBetweenChips(target, toLeft) {
|
|
@@ -17625,7 +17650,7 @@ const MULTI_SELECT_SIZES = {
|
|
|
17625
17650
|
|
|
17626
17651
|
this.getChipButtons()[from].blur();
|
|
17627
17652
|
this.getChipButtons()[to].focus();
|
|
17628
|
-
this
|
|
17653
|
+
this.closeComboboxList();
|
|
17629
17654
|
},
|
|
17630
17655
|
|
|
17631
17656
|
setChipsTopPosition() {
|
|
@@ -17717,8 +17742,8 @@ const MULTI_SELECT_SIZES = {
|
|
|
17717
17742
|
;
|
|
17718
17743
|
var combobox_multi_select_component = normalizeComponent(
|
|
17719
17744
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
17720
|
-
|
|
17721
|
-
|
|
17745
|
+
combobox_multi_selectvue_type_template_id_907d2f60_render,
|
|
17746
|
+
combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns,
|
|
17722
17747
|
false,
|
|
17723
17748
|
null,
|
|
17724
17749
|
null,
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -17119,11 +17119,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
17119
17119
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
17120
17120
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
17121
17121
|
|
|
17122
|
-
;// 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=
|
|
17123
|
-
var
|
|
17122
|
+
;// 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=907d2f60&
|
|
17123
|
+
var combobox_multi_selectvue_type_template_id_907d2f60_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:{"list-aria-label":"listAriaLabel","show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
17124
17124
|
var onInput = ref.onInput;
|
|
17125
17125
|
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_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,staticClass:"d-mt4 d-mx2 d-zi-base1",attrs:{"close-button-props":{ ariaLabel: 'close' },"size":_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 d-mb4",attrs:{"label":_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"},[(!_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)})}
|
|
17126
|
-
var
|
|
17126
|
+
var combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns = []
|
|
17127
17127
|
|
|
17128
17128
|
|
|
17129
17129
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -17500,10 +17500,19 @@ const MULTI_SELECT_SIZES = {
|
|
|
17500
17500
|
return { ...this.$listeners,
|
|
17501
17501
|
input: event => {
|
|
17502
17502
|
this.$emit('input', event);
|
|
17503
|
+
|
|
17504
|
+
if (this.hasSuggestionList) {
|
|
17505
|
+
this.showComboboxList();
|
|
17506
|
+
}
|
|
17503
17507
|
},
|
|
17504
17508
|
keyup: event => {
|
|
17505
17509
|
this.onInputKeyup(event);
|
|
17506
17510
|
this.$emit('keyup', event);
|
|
17511
|
+
},
|
|
17512
|
+
click: event => {
|
|
17513
|
+
if (this.hasSuggestionList) {
|
|
17514
|
+
this.showComboboxList();
|
|
17515
|
+
}
|
|
17507
17516
|
}
|
|
17508
17517
|
};
|
|
17509
17518
|
}
|
|
@@ -17563,6 +17572,22 @@ const MULTI_SELECT_SIZES = {
|
|
|
17563
17572
|
this.$emit('select', i);
|
|
17564
17573
|
},
|
|
17565
17574
|
|
|
17575
|
+
showComboboxList() {
|
|
17576
|
+
if (this.showList != null) {
|
|
17577
|
+
return;
|
|
17578
|
+
}
|
|
17579
|
+
|
|
17580
|
+
this.$refs.comboboxWithPopover.showComboboxList();
|
|
17581
|
+
},
|
|
17582
|
+
|
|
17583
|
+
closeComboboxList() {
|
|
17584
|
+
if (this.showList != null) {
|
|
17585
|
+
return;
|
|
17586
|
+
}
|
|
17587
|
+
|
|
17588
|
+
this.$refs.comboboxWithPopover.closeComboboxList();
|
|
17589
|
+
},
|
|
17590
|
+
|
|
17566
17591
|
getChipButtons() {
|
|
17567
17592
|
return this.$refs.chips && this.$refs.chips.map(chip => chip.$el.querySelector('button'));
|
|
17568
17593
|
},
|
|
@@ -17624,13 +17649,13 @@ const MULTI_SELECT_SIZES = {
|
|
|
17624
17649
|
moveFromInputToChip() {
|
|
17625
17650
|
this.getLastChipButton().focus();
|
|
17626
17651
|
this.$refs.input.blur();
|
|
17627
|
-
this
|
|
17652
|
+
this.closeComboboxList();
|
|
17628
17653
|
},
|
|
17629
17654
|
|
|
17630
17655
|
moveFromChipToInput() {
|
|
17631
17656
|
this.getLastChipButton().blur();
|
|
17632
17657
|
this.$refs.input.focus();
|
|
17633
|
-
this
|
|
17658
|
+
this.showComboboxList();
|
|
17634
17659
|
},
|
|
17635
17660
|
|
|
17636
17661
|
navigateBetweenChips(target, toLeft) {
|
|
@@ -17643,7 +17668,7 @@ const MULTI_SELECT_SIZES = {
|
|
|
17643
17668
|
|
|
17644
17669
|
this.getChipButtons()[from].blur();
|
|
17645
17670
|
this.getChipButtons()[to].focus();
|
|
17646
|
-
this
|
|
17671
|
+
this.closeComboboxList();
|
|
17647
17672
|
},
|
|
17648
17673
|
|
|
17649
17674
|
setChipsTopPosition() {
|
|
@@ -17735,8 +17760,8 @@ const MULTI_SELECT_SIZES = {
|
|
|
17735
17760
|
;
|
|
17736
17761
|
var combobox_multi_select_component = normalizeComponent(
|
|
17737
17762
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
17738
|
-
|
|
17739
|
-
|
|
17763
|
+
combobox_multi_selectvue_type_template_id_907d2f60_render,
|
|
17764
|
+
combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns,
|
|
17740
17765
|
false,
|
|
17741
17766
|
null,
|
|
17742
17767
|
null,
|