@dialpad/dialtone-vue 2.21.0 → 2.22.2

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.
@@ -1,6 +1,30 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
+ /***/ 651:
5
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
6
+
7
+ "use strict";
8
+ __webpack_require__.r(__webpack_exports__);
9
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
11
+ /* harmony export */ });
12
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(481);
13
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
14
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(400);
15
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
16
+ // Imports
17
+
18
+
19
+ var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
20
+ // Module
21
+ ___CSS_LOADER_EXPORT___.push([module.id, ".enter-active,.leave-active{overflow:hidden;transition:height .3s linear}", ""]);
22
+ // Exports
23
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
24
+
25
+
26
+ /***/ }),
27
+
4
28
  /***/ 771:
5
29
  /***/ ((module, __webpack_exports__, __webpack_require__) => {
6
30
 
@@ -362,6 +386,22 @@ module.exports = function (i) {
362
386
 
363
387
  /***/ }),
364
388
 
389
+ /***/ 627:
390
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
391
+
392
+ // style-loader: Adds some css to the DOM by adding a <style> tag
393
+
394
+ // load the styles
395
+ var content = __webpack_require__(651);
396
+ if(content.__esModule) content = content.default;
397
+ if(typeof content === 'string') content = [[module.id, content, '']];
398
+ if(content.locals) module.exports = content.locals;
399
+ // add the styles to the DOM
400
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
401
+ var update = add("056a7866", content, true, {"sourceMap":false,"shadowMode":false});
402
+
403
+ /***/ }),
404
+
365
405
  /***/ 245:
366
406
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
367
407
 
@@ -892,6 +932,7 @@ __webpack_require__.d(__webpack_exports__, {
892
932
  "DtCheckbox": () => (/* reexport */ checkbox_checkbox),
893
933
  "DtCheckboxGroup": () => (/* reexport */ checkbox_group),
894
934
  "DtChip": () => (/* reexport */ chip),
935
+ "DtCollapsible": () => (/* reexport */ collapsible),
895
936
  "DtCombobox": () => (/* reexport */ combobox),
896
937
  "DtDropdown": () => (/* reexport */ dropdown),
897
938
  "DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
@@ -3062,9 +3103,9 @@ var button_group_component = normalizeComponent(
3062
3103
  ;// CONCATENATED MODULE: ./components/button_group/index.js
3063
3104
 
3064
3105
 
3065
- ;// 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/combobox/combobox.vue?vue&type=template&id=25daf05b&
3066
- var comboboxvue_type_template_id_25daf05b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.isLoading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.isListEmpty && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',_vm.listProps,false)):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex,"isLoading":_vm.isLoading,"isListEmpty":_vm.isListEmpty})],2):_vm._e()])}
3067
- var comboboxvue_type_template_id_25daf05b_staticRenderFns = []
3106
+ ;// 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/combobox/combobox.vue?vue&type=template&id=f9b55a7e&
3107
+ var comboboxvue_type_template_id_f9b55a7e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.loading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.emptyList && _vm.emptyStateMessage && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',_vm.listProps,false)):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex})],2):_vm._e()])}
3108
+ var comboboxvue_type_template_id_f9b55a7e_staticRenderFns = []
3068
3109
 
3069
3110
 
3070
3111
  ;// CONCATENATED MODULE: ./common/mixins/dom.js
@@ -4649,8 +4690,6 @@ var combobox_empty_list_component = normalizeComponent(
4649
4690
  //
4650
4691
  //
4651
4692
  //
4652
- //
4653
- //
4654
4693
 
4655
4694
 
4656
4695
 
@@ -4732,6 +4771,14 @@ var combobox_empty_list_component = normalizeComponent(
4732
4771
  default: false
4733
4772
  },
4734
4773
 
4774
+ /**
4775
+ * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.
4776
+ */
4777
+ emptyList: {
4778
+ type: Boolean,
4779
+ default: false
4780
+ },
4781
+
4735
4782
  /**
4736
4783
  * Message to show when the list is empty
4737
4784
  */
@@ -4774,9 +4821,7 @@ var combobox_empty_list_component = normalizeComponent(
4774
4821
  // If the list is rendered at the root, rather than as a child
4775
4822
  // of this component, this is the ref to that dom element. Set
4776
4823
  // by the onOpen method.
4777
- outsideRenderedListRef: null,
4778
- isListEmpty: undefined,
4779
- isLoading: undefined
4824
+ outsideRenderedListRef: null
4780
4825
  };
4781
4826
  },
4782
4827
 
@@ -4792,149 +4837,750 @@ var combobox_empty_list_component = normalizeComponent(
4792
4837
  };
4793
4838
  },
4794
4839
 
4795
- listProps() {
4796
- return {
4797
- role: 'listbox',
4798
- id: this.listId,
4799
- // The list has to be positioned relatively so that the auto-scroll can
4800
- // calculate the correct offset for the list items.
4801
- class: 'd-ps-relative',
4802
- 'aria-label': this.listAriaLabel
4803
- };
4840
+ listProps() {
4841
+ return {
4842
+ role: 'listbox',
4843
+ id: this.listId,
4844
+ // The list has to be positioned relatively so that the auto-scroll can
4845
+ // calculate the correct offset for the list items.
4846
+ class: 'd-ps-relative',
4847
+ 'aria-label': this.listAriaLabel
4848
+ };
4849
+ },
4850
+
4851
+ beginningOfListMethod() {
4852
+ return this.onBeginningOfList || this.jumpToEnd;
4853
+ },
4854
+
4855
+ endOfListMethod() {
4856
+ return this.onEndOfList || this.jumpToBeginning;
4857
+ },
4858
+
4859
+ activeItemId() {
4860
+ if (!this.showList || this.highlightIndex < 0 || this.loading) {
4861
+ return;
4862
+ }
4863
+
4864
+ return this.highlightId;
4865
+ },
4866
+
4867
+ activeItemEl() {
4868
+ if (!this.highlightId) return '';
4869
+ return this.getListElement().querySelector('#' + this.highlightId);
4870
+ }
4871
+
4872
+ },
4873
+ watch: {
4874
+ showList(showList) {
4875
+ // When the list's visibility changes reset the highlight index.
4876
+ if (!this.listRenderedOutside) {
4877
+ this.setInitialHighlightIndex();
4878
+ this.$emit('opened', showList);
4879
+ }
4880
+
4881
+ if (!showList && this.outsideRenderedListRef) {
4882
+ this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);
4883
+ this.outsideRenderedListRef = null;
4884
+ }
4885
+ },
4886
+
4887
+ loading(loading) {
4888
+ this.$nextTick(() => {
4889
+ this.setInitialHighlightIndex();
4890
+ });
4891
+ },
4892
+
4893
+ $props: {
4894
+ deep: true,
4895
+ immediate: true,
4896
+
4897
+ handler() {
4898
+ this.validateEmptyListProps();
4899
+ }
4900
+
4901
+ }
4902
+ },
4903
+
4904
+ created() {
4905
+ this.validateEmptyListProps();
4906
+ },
4907
+
4908
+ methods: {
4909
+ onMouseHighlight(e) {
4910
+ if (this.loading) return;
4911
+ const liElement = e.target.closest('li');
4912
+
4913
+ if (liElement && this.highlightId !== liElement.id) {
4914
+ this.setHighlightId(liElement.id);
4915
+ }
4916
+ },
4917
+
4918
+ getListElement() {
4919
+ var _this$outsideRendered, _this$$refs$listWrapp;
4920
+
4921
+ return (_this$outsideRendered = this.outsideRenderedListRef) !== null && _this$outsideRendered !== void 0 ? _this$outsideRendered : (_this$$refs$listWrapp = this.$refs.listWrapper) === null || _this$$refs$listWrapp === void 0 ? void 0 : _this$$refs$listWrapp.querySelector("#".concat(this.listId));
4922
+ },
4923
+
4924
+ clearHighlightIndex() {
4925
+ if (this.showList) {
4926
+ this.setHighlightIndex(-1);
4927
+ }
4928
+ },
4929
+
4930
+ afterHighlight() {
4931
+ if (this.loading) return;
4932
+ this.$emit('highlight', this.highlightIndex);
4933
+ },
4934
+
4935
+ onEnterKey() {
4936
+ if (this.loading || this.emptyList) return;
4937
+
4938
+ if (this.highlightIndex >= 0) {
4939
+ this.$emit('select', this.highlightIndex);
4940
+ }
4941
+ },
4942
+
4943
+ onEscapeKey() {
4944
+ this.$emit('escape');
4945
+ },
4946
+
4947
+ onOpen(open, contentRef) {
4948
+ var _this$outsideRendered2;
4949
+
4950
+ this.outsideRenderedListRef = contentRef;
4951
+ (_this$outsideRendered2 = this.outsideRenderedListRef) === null || _this$outsideRendered2 === void 0 ? void 0 : _this$outsideRendered2.addEventListener('mousemove', this.onMouseHighlight);
4952
+ this.$emit('opened', open);
4953
+
4954
+ if (open) {
4955
+ this.setInitialHighlightIndex();
4956
+ }
4957
+ },
4958
+
4959
+ onKeyValidation(e, eventHandler) {
4960
+ if (!this.showList || !this.getListElement()) return;
4961
+ this[eventHandler](e);
4962
+ },
4963
+
4964
+ setInitialHighlightIndex() {
4965
+ if (!this.showList) return;
4966
+ this.$nextTick(() => {
4967
+ // When the list's is shown, reset the highlight index.
4968
+ // If the list is loading, set to -1
4969
+ this.setHighlightIndex(this.loading ? -1 : 0);
4970
+ });
4971
+ },
4972
+
4973
+ validateEmptyListProps() {
4974
+ if (this.emptyList && !this.emptyStateMessage || !this.emptyList && this.emptyStateMessage) {
4975
+ console.error("Invalid props: you must pass both props emptyList and emptyStateMessage to show the\n empty message.");
4976
+ }
4977
+ }
4978
+
4979
+ }
4980
+ });
4981
+ ;// CONCATENATED MODULE: ./components/combobox/combobox.vue?vue&type=script&lang=js&
4982
+ /* harmony default export */ const combobox_comboboxvue_type_script_lang_js_ = (comboboxvue_type_script_lang_js_);
4983
+ ;// CONCATENATED MODULE: ./components/combobox/combobox.vue
4984
+
4985
+
4986
+
4987
+
4988
+
4989
+ /* normalize component */
4990
+ ;
4991
+ var combobox_component = normalizeComponent(
4992
+ combobox_comboboxvue_type_script_lang_js_,
4993
+ comboboxvue_type_template_id_f9b55a7e_render,
4994
+ comboboxvue_type_template_id_f9b55a7e_staticRenderFns,
4995
+ false,
4996
+ null,
4997
+ null,
4998
+ null
4999
+
5000
+ )
5001
+
5002
+ /* harmony default export */ const combobox = (combobox_component.exports);
5003
+ ;// CONCATENATED MODULE: ./components/combobox/index.js
5004
+
5005
+ ;// 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/collapsible/collapsible.vue?vue&type=template&id=81ed658c&
5006
+ var collapsiblevue_type_template_id_81ed658c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,_vm._g({ref:"collapsible",tag:"component"},_vm.$listeners),[_c('div',{ref:"anchor",class:[
5007
+ 'd-dt-collapsibe__anchor',
5008
+ _vm.anchorClass ],attrs:{"id":!_vm.ariaLabelledBy && _vm.labelledBy},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.defaultToggleOpen.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }return _vm.defaultToggleOpen.apply(null, arguments)}]}},[_vm._t("anchor",function(){return [_c('dt-button',{style:({
5009
+ 'width': _vm.maxWidth,
5010
+ }),attrs:{"importance":"clear","kind":"muted","aria-controls":_vm.id,"aria-expanded":("" + _vm.isOpen)}},[(_vm.isOpen)?_c('icon-arrow-accordion-open',{staticClass:"d-svg--size18 d-mr8 d-fl-shrink0"}):_c('icon-arrow-accordion-closed',{staticClass:"d-svg--size18 d-mr8 d-fl-shrink0"}),_c('span',{staticClass:"d-mr-auto d-truncate",attrs:{"title":_vm.anchorText}},[_vm._v(" "+_vm._s(_vm.anchorText)+" ")])],1)]},{"attrs":{
5011
+ 'aria-controls': _vm.id,
5012
+ 'aria-expanded': _vm.isOpen.toString(),
5013
+ 'role': 'button',
5014
+ }})],2),_c('dt-collapsible-lazy-show',_vm._g({ref:"contentWrapper",class:[
5015
+ 'd-dt-collapsible__content',
5016
+ _vm.contentClass ],style:({
5017
+ 'max-height': _vm.maxHeight,
5018
+ 'max-width': _vm.maxWidth,
5019
+ }),attrs:{"id":_vm.id,"aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"show":_vm.isOpen,"element-type":_vm.contentElementType,"tabindex":"-1","appear":""},on:{"after-leave":_vm.onLeaveTransitionComplete,"after-enter":_vm.onEnterTransitionComplete}},_vm.$listeners),[_vm._t("content")],2)],1)}
5020
+ var collapsiblevue_type_template_id_81ed658c_staticRenderFns = []
5021
+
5022
+
5023
+ ;// 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/collapsible/collapsible_lazy_show.vue?vue&type=template&id=22ec4864&
5024
+ var collapsible_lazy_showvue_type_template_id_22ec4864_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"appear":_vm.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active"},on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"leave":_vm.leave,"after-leave":_vm.afterLeave}},_vm.$listeners),[_c(_vm.elementType,_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],tag:"component"},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)],1)}
5025
+ var collapsible_lazy_showvue_type_template_id_22ec4864_staticRenderFns = []
5026
+
5027
+
5028
+ ;// 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/collapsible/collapsible_lazy_show.vue?vue&type=script&lang=js&
5029
+ //
5030
+ //
5031
+ //
5032
+ //
5033
+ //
5034
+ //
5035
+ //
5036
+ //
5037
+ //
5038
+ //
5039
+ //
5040
+ //
5041
+ //
5042
+ //
5043
+ //
5044
+ //
5045
+ //
5046
+ //
5047
+ //
5048
+ //
5049
+ //
5050
+ //
5051
+ //
5052
+ //
5053
+ /* harmony default export */ const collapsible_lazy_showvue_type_script_lang_js_ = ({
5054
+ name: 'DtCollapsibleLazyShow',
5055
+
5056
+ /******************
5057
+ * PROPS *
5058
+ ******************/
5059
+ props: {
5060
+ /**
5061
+ * Whether the child slot is shown.
5062
+ */
5063
+ show: Boolean,
5064
+ appear: {
5065
+ type: Boolean,
5066
+ default: false
5067
+ },
5068
+ elementType: {
5069
+ type: String,
5070
+ default: 'div'
5071
+ }
5072
+ },
5073
+
5074
+ /******************
5075
+ * DATA *
5076
+ ******************/
5077
+ data() {
5078
+ return {
5079
+ initialized: !!this.show
5080
+ };
5081
+ },
5082
+
5083
+ /******************
5084
+ * WATCH *
5085
+ ******************/
5086
+ watch: {
5087
+ show: function (newValue) {
5088
+ if (!newValue || this.initialized) return;
5089
+ this.initialized = true;
5090
+ }
5091
+ },
5092
+ methods: {
5093
+ /**
5094
+ * @param {HTMLElement} element
5095
+ */
5096
+ beforeEnter(element) {
5097
+ requestAnimationFrame(() => {
5098
+ if (!element.style.height) {
5099
+ element.style.height = '0px';
5100
+ }
5101
+
5102
+ element.style.display = null;
5103
+ });
5104
+ },
5105
+
5106
+ /**
5107
+ * @param {HTMLElement} element
5108
+ */
5109
+ enter(element) {
5110
+ requestAnimationFrame(() => {
5111
+ requestAnimationFrame(() => {
5112
+ element.style.height = "".concat(element.scrollHeight, "px");
5113
+ });
5114
+ });
5115
+ },
5116
+
5117
+ /**
5118
+ * @param {HTMLElement} element
5119
+ */
5120
+ afterEnter(element) {
5121
+ element.style.height = null;
5122
+ },
5123
+
5124
+ /**
5125
+ * @param {HTMLElement} element
5126
+ */
5127
+ beforeLeave(element) {
5128
+ requestAnimationFrame(() => {
5129
+ if (!element.style.height) {
5130
+ element.style.height = "".concat(element.offsetHeight, "px");
5131
+ }
5132
+ });
5133
+ },
5134
+
5135
+ /**
5136
+ * @param {HTMLElement} element
5137
+ */
5138
+ leave(element) {
5139
+ requestAnimationFrame(() => {
5140
+ requestAnimationFrame(() => {
5141
+ element.style.height = '0px';
5142
+ });
5143
+ });
5144
+ },
5145
+
5146
+ /**
5147
+ * @param {HTMLElement} element
5148
+ */
5149
+ afterLeave(element) {
5150
+ element.style.height = null;
5151
+ }
5152
+
5153
+ }
5154
+ });
5155
+ ;// CONCATENATED MODULE: ./components/collapsible/collapsible_lazy_show.vue?vue&type=script&lang=js&
5156
+ /* harmony default export */ const collapsible_collapsible_lazy_showvue_type_script_lang_js_ = (collapsible_lazy_showvue_type_script_lang_js_);
5157
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12[0].rules[0].use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/collapsible/collapsible_lazy_show.vue?vue&type=style&index=0&lang=css&
5158
+ var collapsible_lazy_showvue_type_style_index_0_lang_css_ = __webpack_require__(627);
5159
+ ;// CONCATENATED MODULE: ./components/collapsible/collapsible_lazy_show.vue?vue&type=style&index=0&lang=css&
5160
+
5161
+ ;// CONCATENATED MODULE: ./components/collapsible/collapsible_lazy_show.vue
5162
+
5163
+
5164
+
5165
+ ;
5166
+
5167
+
5168
+ /* normalize component */
5169
+
5170
+ var collapsible_lazy_show_component = normalizeComponent(
5171
+ collapsible_collapsible_lazy_showvue_type_script_lang_js_,
5172
+ collapsible_lazy_showvue_type_template_id_22ec4864_render,
5173
+ collapsible_lazy_showvue_type_template_id_22ec4864_staticRenderFns,
5174
+ false,
5175
+ null,
5176
+ null,
5177
+ null
5178
+
5179
+ )
5180
+
5181
+ /* harmony default export */ const collapsible_lazy_show = (collapsible_lazy_show_component.exports);
5182
+ ;// 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/lazy_show/lazy_show.vue?vue&type=template&id=9ffa4e8c&
5183
+ var lazy_showvue_type_template_id_9ffa4e8c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"name":_vm.transition,"appear":_vm.appear}},_vm.$listeners),[_c('div',_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}]},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)])}
5184
+ var lazy_showvue_type_template_id_9ffa4e8c_staticRenderFns = []
5185
+
5186
+
5187
+ ;// 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/lazy_show/lazy_show.vue?vue&type=script&lang=js&
5188
+ //
5189
+ //
5190
+ //
5191
+ //
5192
+ //
5193
+ //
5194
+ //
5195
+ //
5196
+ //
5197
+ //
5198
+ //
5199
+ //
5200
+ //
5201
+ //
5202
+ //
5203
+ //
5204
+ /* harmony default export */ const lazy_showvue_type_script_lang_js_ = ({
5205
+ name: 'DtLazyShow',
5206
+
5207
+ /******************
5208
+ * PROPS *
5209
+ ******************/
5210
+ props: {
5211
+ /**
5212
+ * Whether the child slot is shown.
5213
+ */
5214
+ show: Boolean,
5215
+
5216
+ /**
5217
+ * A valid Vue enter/leave CSS transition name.
5218
+ */
5219
+ transition: {
5220
+ type: String,
5221
+ default: null
5222
+ },
5223
+ appear: {
5224
+ type: Boolean,
5225
+ default: false
5226
+ }
5227
+ },
5228
+
5229
+ /******************
5230
+ * DATA *
5231
+ ******************/
5232
+ data() {
5233
+ return {
5234
+ initialized: !!this.show
5235
+ };
5236
+ },
5237
+
5238
+ /******************
5239
+ * WATCH *
5240
+ ******************/
5241
+ watch: {
5242
+ show: function (newValue) {
5243
+ if (!newValue || this.initialized) return;
5244
+ this.initialized = true;
5245
+ }
5246
+ }
5247
+ });
5248
+ ;// CONCATENATED MODULE: ./components/lazy_show/lazy_show.vue?vue&type=script&lang=js&
5249
+ /* harmony default export */ const lazy_show_lazy_showvue_type_script_lang_js_ = (lazy_showvue_type_script_lang_js_);
5250
+ ;// CONCATENATED MODULE: ./components/lazy_show/lazy_show.vue
5251
+
5252
+
5253
+
5254
+
5255
+
5256
+ /* normalize component */
5257
+ ;
5258
+ var lazy_show_component = normalizeComponent(
5259
+ lazy_show_lazy_showvue_type_script_lang_js_,
5260
+ lazy_showvue_type_template_id_9ffa4e8c_render,
5261
+ lazy_showvue_type_template_id_9ffa4e8c_staticRenderFns,
5262
+ false,
5263
+ null,
5264
+ null,
5265
+ null
5266
+
5267
+ )
5268
+
5269
+ /* harmony default export */ const lazy_show = (lazy_show_component.exports);
5270
+ ;// CONCATENATED MODULE: ./components/lazy_show/index.js
5271
+
5272
+ ;// 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!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconArrowAccordionOpen.vue?vue&type=template&id=5f13df90&
5273
+ var IconArrowAccordionOpenvue_type_template_id_5f13df90_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__arrowAccordionOpen",attrs:{"aria-hidden":"true","aria-label":"Arrow Accordion Open","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M8.738 8a1 1 0 00-.865 1.502l3.262 5.614a1 1 0 001.73 0l3.262-5.614A1 1 0 0015.262 8H8.738z"}})])}
5274
+ var IconArrowAccordionOpenvue_type_template_id_5f13df90_staticRenderFns = []
5275
+
5276
+
5277
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconArrowAccordionOpen.vue
5278
+
5279
+ var IconArrowAccordionOpen_script = {}
5280
+
5281
+
5282
+ /* normalize component */
5283
+ ;
5284
+ var IconArrowAccordionOpen_component = normalizeComponent(
5285
+ IconArrowAccordionOpen_script,
5286
+ IconArrowAccordionOpenvue_type_template_id_5f13df90_render,
5287
+ IconArrowAccordionOpenvue_type_template_id_5f13df90_staticRenderFns,
5288
+ false,
5289
+ null,
5290
+ null,
5291
+ null
5292
+
5293
+ )
5294
+
5295
+ /* harmony default export */ const IconArrowAccordionOpen = (IconArrowAccordionOpen_component.exports);
5296
+ ;// 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!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconArrowAccordionClosed.vue?vue&type=template&id=8c8269ea&
5297
+ var IconArrowAccordionClosedvue_type_template_id_8c8269ea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__arrowAccordionClosed",attrs:{"aria-hidden":"true","aria-label":"Arrow Accordion Closed","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M8 15.262a1 1 0 001.502.865l5.614-3.262a1 1 0 000-1.73L9.502 7.873A1 1 0 008 8.738v6.524z"}})])}
5298
+ var IconArrowAccordionClosedvue_type_template_id_8c8269ea_staticRenderFns = []
5299
+
5300
+
5301
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconArrowAccordionClosed.vue
5302
+
5303
+ var IconArrowAccordionClosed_script = {}
5304
+
5305
+
5306
+ /* normalize component */
5307
+ ;
5308
+ var IconArrowAccordionClosed_component = normalizeComponent(
5309
+ IconArrowAccordionClosed_script,
5310
+ IconArrowAccordionClosedvue_type_template_id_8c8269ea_render,
5311
+ IconArrowAccordionClosedvue_type_template_id_8c8269ea_staticRenderFns,
5312
+ false,
5313
+ null,
5314
+ null,
5315
+ null
5316
+
5317
+ )
5318
+
5319
+ /* harmony default export */ const IconArrowAccordionClosed = (IconArrowAccordionClosed_component.exports);
5320
+ ;// 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/collapsible/collapsible.vue?vue&type=script&lang=js&
5321
+ //
5322
+ //
5323
+ //
5324
+ //
5325
+ //
5326
+ //
5327
+ //
5328
+ //
5329
+ //
5330
+ //
5331
+ //
5332
+ //
5333
+ //
5334
+ //
5335
+ //
5336
+ //
5337
+ //
5338
+ //
5339
+ //
5340
+ //
5341
+ //
5342
+ //
5343
+ //
5344
+ //
5345
+ //
5346
+ //
5347
+ //
5348
+ //
5349
+ //
5350
+ //
5351
+ //
5352
+ //
5353
+ //
5354
+ //
5355
+ //
5356
+ //
5357
+ //
5358
+ //
5359
+ //
5360
+ //
5361
+ //
5362
+ //
5363
+ //
5364
+ //
5365
+ //
5366
+ //
5367
+ //
5368
+ //
5369
+ //
5370
+ //
5371
+ //
5372
+ //
5373
+ //
5374
+ //
5375
+ //
5376
+ //
5377
+ //
5378
+ //
5379
+ //
5380
+ //
5381
+ //
5382
+ //
5383
+ //
5384
+ //
5385
+ //
5386
+ //
5387
+ //
5388
+ //
5389
+ //
5390
+ //
5391
+ //
5392
+ //
5393
+ //
5394
+ //
5395
+ //
5396
+ //
5397
+ //
5398
+ //
5399
+ //
5400
+ //
5401
+ //
5402
+ //
5403
+ //
5404
+
5405
+
5406
+
5407
+
5408
+
5409
+
5410
+ /* harmony default export */ const collapsiblevue_type_script_lang_js_ = ({
5411
+ name: 'DtCollapsible',
5412
+ components: {
5413
+ DtButton: button_button,
5414
+ DtCollapsibleLazyShow: collapsible_lazy_show,
5415
+ DtLazyShow: lazy_show,
5416
+ IconArrowAccordionOpen: IconArrowAccordionOpen,
5417
+ IconArrowAccordionClosed: IconArrowAccordionClosed
5418
+ },
5419
+ props: {
5420
+ /**
5421
+ * Text that is displayed on the anchor if nothing is passed in the slot.
5422
+ * Ignored if the anchor slot is used.
5423
+ */
5424
+ anchorText: {
5425
+ type: String,
5426
+ default: null
5427
+ },
5428
+
5429
+ /**
5430
+ * Controls whether the collapsible is shown. Leaving this null will have the collapsible start
5431
+ * expanded and trigger on click by default. If you set this value, the default trigger
5432
+ * behavior will be disabled and you can control it as you need.
5433
+ * Supports .sync modifier
5434
+ */
5435
+ open: {
5436
+ type: Boolean,
5437
+ default: null
5438
+ },
5439
+
5440
+ /**
5441
+ * The id of the content wrapper.
5442
+ */
5443
+ id: {
5444
+ type: String,
5445
+
5446
+ default() {
5447
+ return getUniqueString();
5448
+ }
5449
+
5450
+ },
5451
+
5452
+ /**
5453
+ * Element type (tag name) of the root element of the component.
5454
+ */
5455
+ elementType: {
5456
+ type: String,
5457
+ default: 'div'
5458
+ },
5459
+
5460
+ /**
5461
+ * Element type (tag name) of the content wrapper element.
5462
+ */
5463
+ contentElementType: {
5464
+ type: String,
5465
+ default: 'div'
5466
+ },
5467
+
5468
+ /**
5469
+ * Additional class name for the anchor wrapper element.
5470
+ */
5471
+ anchorClass: {
5472
+ type: [String, Array, Object],
5473
+ default: null
4804
5474
  },
4805
5475
 
4806
- beginningOfListMethod() {
4807
- return this.onBeginningOfList || this.jumpToEnd;
5476
+ /**
5477
+ * Additional class name for the content wrapper element.
5478
+ */
5479
+ contentClass: {
5480
+ type: [String, Array, Object],
5481
+ default: null
4808
5482
  },
4809
5483
 
4810
- endOfListMethod() {
4811
- return this.onEndOfList || this.jumpToBeginning;
5484
+ /**
5485
+ * The maximum width of the anchor and collapsible element.
5486
+ * Possible units rem|px|%|em
5487
+ */
5488
+ maxWidth: {
5489
+ type: String,
5490
+ default: null
4812
5491
  },
4813
5492
 
4814
- activeItemId() {
4815
- if (!this.showList || this.highlightIndex < 0 || this.loading) {
4816
- return;
4817
- }
5493
+ /**
5494
+ * The maximum height of the collapsible element.
5495
+ * Possible units rem|px|%|em
5496
+ */
5497
+ maxHeight: {
5498
+ type: String,
5499
+ default: null
5500
+ },
4818
5501
 
4819
- return this.highlightId;
5502
+ /**
5503
+ * Label on the collapsible content. Should provide this or ariaLabelledBy but not both.
5504
+ */
5505
+ ariaLabel: {
5506
+ type: String,
5507
+ default: null
4820
5508
  },
4821
5509
 
4822
- activeItemEl() {
4823
- if (!this.highlightId) return '';
4824
- return this.getListElement().querySelector('#' + this.highlightId);
5510
+ /**
5511
+ * Id of the element that labels the collapsible content. Defaults to the anchor element.
5512
+ * Should provide this or ariaLabel but not both.
5513
+ */
5514
+ ariaLabelledBy: {
5515
+ type: String,
5516
+ default: null
4825
5517
  }
5518
+ },
5519
+ emits: ['update:open', 'opened'],
4826
5520
 
5521
+ data() {
5522
+ return {
5523
+ isOpen: true
5524
+ };
4827
5525
  },
4828
- watch: {
4829
- showList(showList) {
4830
- // When the list's visibility changes reset the highlight index.
4831
- if (!this.listRenderedOutside) {
4832
- this.setInitialHighlightIndex();
4833
- this.$emit('opened', showList);
4834
- }
4835
5526
 
4836
- if (!showList && this.outsideRenderedListRef) {
4837
- this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);
4838
- this.outsideRenderedListRef = null;
4839
- this.isListEmpty = undefined;
4840
- }
5527
+ computed: {
5528
+ labelledBy() {
5529
+ // aria-labelledby should be set only if aria-labelledby is passed as a prop, or if
5530
+ // there is no aria-label and the labelledby should point to the anchor
5531
+ return this.ariaLabelledby || !this.ariaLabel && getUniqueString('DtCollapsible__anchor');
4841
5532
  },
4842
5533
 
4843
- loading(isLoading) {
4844
- this.isListEmpty = undefined;
4845
- this.isLoading = isLoading;
4846
- this.$nextTick(() => {
4847
- this.isListEmpty = this.checkItemsLength();
4848
- this.setInitialHighlightIndex();
4849
- });
5534
+ contentStyle() {
5535
+ return {
5536
+ 'max-height': this.maxHeight,
5537
+ 'max-width': this.maxWidth
5538
+ };
4850
5539
  }
4851
5540
 
4852
5541
  },
4853
-
4854
- async mounted() {
4855
- this.isLoading = this.loading;
4856
- await this.$nextTick();
4857
- this.isListEmpty = this.checkItemsLength();
5542
+ watch: {
5543
+ open: {
5544
+ handler: function (open) {
5545
+ if (open !== null) {
5546
+ this.isOpen = open;
5547
+ }
5548
+ },
5549
+ immediate: true
5550
+ }
4858
5551
  },
4859
-
4860
5552
  methods: {
4861
- onMouseHighlight(e) {
4862
- if (this.loading) return;
4863
- const liElement = e.target.closest('li');
4864
-
4865
- if (liElement && this.highlightId !== liElement.id) {
4866
- this.setHighlightId(liElement.id);
4867
- }
4868
- },
4869
-
4870
- getListElement() {
4871
- var _this$outsideRendered, _this$$refs$listWrapp;
4872
-
4873
- return (_this$outsideRendered = this.outsideRenderedListRef) !== null && _this$outsideRendered !== void 0 ? _this$outsideRendered : (_this$$refs$listWrapp = this.$refs.listWrapper) === null || _this$$refs$listWrapp === void 0 ? void 0 : _this$$refs$listWrapp.querySelector("#".concat(this.listId));
4874
- },
5553
+ onLeaveTransitionComplete() {
5554
+ this.$emit('opened', false);
4875
5555
 
4876
- clearHighlightIndex() {
4877
- if (this.showList) {
4878
- this.setHighlightIndex(-1);
5556
+ if (this.open !== null) {
5557
+ this.$emit('update:open', false);
4879
5558
  }
4880
5559
  },
4881
5560
 
4882
- afterHighlight() {
4883
- if (this.loading) return;
4884
- this.$emit('highlight', this.highlightIndex);
4885
- },
4886
-
4887
- onEnterKey() {
4888
- if (this.loading || this.isListEmpty) return;
5561
+ onEnterTransitionComplete() {
5562
+ this.$emit('opened', true, this.$refs.content);
4889
5563
 
4890
- if (this.highlightIndex >= 0) {
4891
- this.$emit('select', this.highlightIndex);
5564
+ if (this.open !== null) {
5565
+ this.$emit('update:open', true);
4892
5566
  }
4893
5567
  },
4894
5568
 
4895
- onEscapeKey() {
4896
- this.$emit('escape');
4897
- },
4898
-
4899
- onOpen(open, contentRef) {
4900
- var _this$outsideRendered2;
4901
-
4902
- this.outsideRenderedListRef = contentRef;
4903
- (_this$outsideRendered2 = this.outsideRenderedListRef) === null || _this$outsideRendered2 === void 0 ? void 0 : _this$outsideRendered2.addEventListener('mousemove', this.onMouseHighlight);
4904
- this.$emit('opened', open);
4905
-
4906
- if (open) {
4907
- this.isListEmpty = this.checkItemsLength();
4908
- this.setInitialHighlightIndex();
5569
+ defaultToggleOpen() {
5570
+ if (this.open === null) {
5571
+ this.toggleOpen();
4909
5572
  }
4910
5573
  },
4911
5574
 
4912
- onKeyValidation(e, eventHandler) {
4913
- if (!this.showList || !this.getListElement()) return;
4914
- this[eventHandler](e);
4915
- },
4916
-
4917
- setInitialHighlightIndex() {
4918
- if (!this.showList) return;
4919
- this.$nextTick(() => {
4920
- // When the list's is shown, reset the highlight index.
4921
- // If the list is loading, set to -1
4922
- this.setHighlightIndex(this.loading ? -1 : 0);
4923
- });
4924
- },
4925
-
4926
- checkItemsLength() {
4927
- if (!this.showList) return undefined;
4928
- const list = this.getListElement();
4929
- const options = list === null || list === void 0 ? void 0 : list.querySelectorAll("[role=\"option\"]");
4930
- return (options === null || options === void 0 ? void 0 : options.length) === 0;
5575
+ toggleOpen() {
5576
+ this.isOpen = !this.isOpen;
4931
5577
  }
4932
5578
 
4933
5579
  }
4934
5580
  });
4935
- ;// CONCATENATED MODULE: ./components/combobox/combobox.vue?vue&type=script&lang=js&
4936
- /* harmony default export */ const combobox_comboboxvue_type_script_lang_js_ = (comboboxvue_type_script_lang_js_);
4937
- ;// CONCATENATED MODULE: ./components/combobox/combobox.vue
5581
+ ;// CONCATENATED MODULE: ./components/collapsible/collapsible.vue?vue&type=script&lang=js&
5582
+ /* harmony default export */ const collapsible_collapsiblevue_type_script_lang_js_ = (collapsiblevue_type_script_lang_js_);
5583
+ ;// CONCATENATED MODULE: ./components/collapsible/collapsible.vue
4938
5584
 
4939
5585
 
4940
5586
 
@@ -4942,10 +5588,10 @@ var combobox_empty_list_component = normalizeComponent(
4942
5588
 
4943
5589
  /* normalize component */
4944
5590
  ;
4945
- var combobox_component = normalizeComponent(
4946
- combobox_comboboxvue_type_script_lang_js_,
4947
- comboboxvue_type_template_id_25daf05b_render,
4948
- comboboxvue_type_template_id_25daf05b_staticRenderFns,
5591
+ var collapsible_component = normalizeComponent(
5592
+ collapsible_collapsiblevue_type_script_lang_js_,
5593
+ collapsiblevue_type_template_id_81ed658c_render,
5594
+ collapsiblevue_type_template_id_81ed658c_staticRenderFns,
4949
5595
  false,
4950
5596
  null,
4951
5597
  null,
@@ -4953,8 +5599,8 @@ var combobox_component = normalizeComponent(
4953
5599
 
4954
5600
  )
4955
5601
 
4956
- /* harmony default export */ const combobox = (combobox_component.exports);
4957
- ;// CONCATENATED MODULE: ./components/combobox/index.js
5602
+ /* harmony default export */ const collapsible = (collapsible_component.exports);
5603
+ ;// CONCATENATED MODULE: ./components/collapsible/index.js
4958
5604
 
4959
5605
  ;// 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=230c0da9&
4960
5606
  var dropdownvue_type_template_id_230c0da9_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","modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":true},on:{"opened":_vm.updateInitialHighlightIndex,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onEnterKey.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }return _vm.onSpaceKey.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKeyPress')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKeyPress')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKeyPress')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKeyPress')},function($event){return _vm.onKeyValidation($event, 'onKeyPress')}]},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
@@ -9475,94 +10121,6 @@ const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
9475
10121
  const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
9476
10122
  const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
9477
10123
  const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
9478
- ;// 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/lazy_show/lazy_show.vue?vue&type=template&id=9ffa4e8c&
9479
- var lazy_showvue_type_template_id_9ffa4e8c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"name":_vm.transition,"appear":_vm.appear}},_vm.$listeners),[_c('div',_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}]},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)])}
9480
- var lazy_showvue_type_template_id_9ffa4e8c_staticRenderFns = []
9481
-
9482
-
9483
- ;// 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/lazy_show/lazy_show.vue?vue&type=script&lang=js&
9484
- //
9485
- //
9486
- //
9487
- //
9488
- //
9489
- //
9490
- //
9491
- //
9492
- //
9493
- //
9494
- //
9495
- //
9496
- //
9497
- //
9498
- //
9499
- //
9500
- /* harmony default export */ const lazy_showvue_type_script_lang_js_ = ({
9501
- name: 'DtLazyShow',
9502
-
9503
- /******************
9504
- * PROPS *
9505
- ******************/
9506
- props: {
9507
- /**
9508
- * Whether the child slot is shown.
9509
- */
9510
- show: Boolean,
9511
-
9512
- /**
9513
- * A valid Vue enter/leave CSS transition name.
9514
- */
9515
- transition: {
9516
- type: String,
9517
- default: null
9518
- },
9519
- appear: {
9520
- type: Boolean,
9521
- default: false
9522
- }
9523
- },
9524
-
9525
- /******************
9526
- * DATA *
9527
- ******************/
9528
- data() {
9529
- return {
9530
- initialized: !!this.show
9531
- };
9532
- },
9533
-
9534
- /******************
9535
- * WATCH *
9536
- ******************/
9537
- watch: {
9538
- show: function (newValue) {
9539
- if (!newValue || this.initialized) return;
9540
- this.initialized = true;
9541
- }
9542
- }
9543
- });
9544
- ;// CONCATENATED MODULE: ./components/lazy_show/lazy_show.vue?vue&type=script&lang=js&
9545
- /* harmony default export */ const lazy_show_lazy_showvue_type_script_lang_js_ = (lazy_showvue_type_script_lang_js_);
9546
- ;// CONCATENATED MODULE: ./components/lazy_show/lazy_show.vue
9547
-
9548
-
9549
-
9550
-
9551
-
9552
- /* normalize component */
9553
- ;
9554
- var lazy_show_component = normalizeComponent(
9555
- lazy_show_lazy_showvue_type_script_lang_js_,
9556
- lazy_showvue_type_template_id_9ffa4e8c_render,
9557
- lazy_showvue_type_template_id_9ffa4e8c_staticRenderFns,
9558
- false,
9559
- null,
9560
- null,
9561
- null
9562
-
9563
- )
9564
-
9565
- /* harmony default export */ const lazy_show = (lazy_show_component.exports);
9566
10124
  ;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
9567
10125
  let urlAlphabet =
9568
10126
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
@@ -12814,8 +13372,6 @@ var modal_component = normalizeComponent(
12814
13372
  ;// CONCATENATED MODULE: ./components/modal/index.js
12815
13373
 
12816
13374
 
12817
- ;// CONCATENATED MODULE: ./components/lazy_show/index.js
12818
-
12819
13375
  ;// 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_section/list_section.vue?vue&type=template&id=8857acea&
12820
13376
  var list_sectionvue_type_template_id_8857acea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['dt-list-section', 'd-fs14', 'd-lh6', 'd-py6', 'd-bc-black-200',
12821
13377
  { 'd-bb': _vm.separator }],attrs:{"id":_vm.id,"role":"group","aria-labelledby":(_vm.id + "-list-section-header"),"tabindex":"-1"}},[(_vm.header)?_c('h3',{staticClass:"d-pl12 d-mt6",attrs:{"id":(_vm.id + "-list-section-header")}},[_vm._v(" "+_vm._s(_vm.header)+" ")]):_vm._e(),(!_vm.isCollapsible || _vm.showAll)?_c('ol',{attrs:{"id":(_vm.id + "-list-section-content")}},[_vm._t("default")],2):_c('ol',{attrs:{"id":(_vm.id + "-list-section-content")}},[_c('vnodes',{attrs:{"vnodes":_vm.displayedItems}})],1),_c('div',{staticClass:"d-d-flex"},[(_vm.isCollapsible)?_c('dt-button',{staticClass:"d-ml12 d-py6",attrs:{"id":(_vm.id + "-list-section-show-more-less"),"link":""},on:{"click":_vm.showMoreLessClicked}},[_vm._v(" "+_vm._s(_vm.showMoreLessText)+" ")]):_vm._e(),_vm._t("footer")],2)])}
@@ -16787,17 +17343,15 @@ var root_layout_component = normalizeComponent(
16787
17343
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
16788
17344
 
16789
17345
 
16790
- ;// 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=5ee1c401&
16791
- var combobox_with_popovervue_type_template_id_5ee1c401_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,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-aria-label":_vm.listAriaLabel,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
17346
+ ;// 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=58cb1065&
17347
+ var combobox_with_popovervue_type_template_id_58cb1065_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,"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-aria-label":_vm.listAriaLabel,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
16792
17348
  var inputProps = ref.inputProps;
16793
17349
  return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"focusout":_vm.onFocusOut,"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){
16794
17350
  var opened = ref.opened;
16795
17351
  var listProps = ref.listProps;
16796
17352
  var clearHighlightIndex = ref.clearHighlightIndex;
16797
- var isLoading = ref.isLoading;
16798
- var isListEmpty = ref.isListEmpty;
16799
- return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false},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",on:{"focusout":_vm.onFocusOut}},[_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":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(isLoading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(isListEmpty)?_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",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
16800
- var combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns = []
17353
+ return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false},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",on:{"focusout":_vm.onFocusOut}},[_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":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(_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",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
17354
+ var combobox_with_popovervue_type_template_id_58cb1065_staticRenderFns = []
16801
17355
 
16802
17356
 
16803
17357
  ;// 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&
@@ -16899,6 +17453,8 @@ var combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns = []
16899
17453
  //
16900
17454
  //
16901
17455
  //
17456
+ //
17457
+ //
16902
17458
 
16903
17459
 
16904
17460
 
@@ -17052,6 +17608,14 @@ var combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns = []
17052
17608
  default: false
17053
17609
  },
17054
17610
 
17611
+ /**
17612
+ * Sets the list to an empty state, and displays the message from prop `emptyStateMessage`.
17613
+ */
17614
+ emptyList: {
17615
+ type: Boolean,
17616
+ default: false
17617
+ },
17618
+
17055
17619
  /**
17056
17620
  * Message to show when the list is empty
17057
17621
  */
@@ -17192,8 +17756,8 @@ var combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns = []
17192
17756
  ;
17193
17757
  var combobox_with_popover_component = normalizeComponent(
17194
17758
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
17195
- combobox_with_popovervue_type_template_id_5ee1c401_render,
17196
- combobox_with_popovervue_type_template_id_5ee1c401_staticRenderFns,
17759
+ combobox_with_popovervue_type_template_id_58cb1065_render,
17760
+ combobox_with_popovervue_type_template_id_58cb1065_staticRenderFns,
17197
17761
  false,
17198
17762
  null,
17199
17763
  null,
@@ -18201,6 +18765,7 @@ var top_banner_info_component = normalizeComponent(
18201
18765
 
18202
18766
 
18203
18767
 
18768
+
18204
18769
 
18205
18770
 
18206
18771
  /// Recipes