@dialpad/dialtone-vue 3.42.1 → 3.42.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.
@@ -17891,21 +17891,22 @@ const keyboard_shortcut_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(
17891
17891
  ;// CONCATENATED MODULE: ./components/keyboard_shortcut/index.js
17892
17892
 
17893
17893
 
17894
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout.vue?vue&type=template&id=1f5c28de
17894
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout.vue?vue&type=template&id=3670772e
17895
17895
 
17896
- const root_layoutvue_type_template_id_1f5c28de_hoisted_1 = {
17896
+ const root_layoutvue_type_template_id_3670772e_hoisted_1 = {
17897
17897
  class: "root-layout d-root-layout"
17898
17898
  };
17899
- function root_layoutvue_type_template_id_1f5c28de_render(_ctx, _cache, $props, $setup, $data, $options) {
17899
+ function root_layoutvue_type_template_id_3670772e_render(_ctx, _cache, $props, $setup, $data, $options) {
17900
17900
  const _component_dt_root_layout_body = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-root-layout-body");
17901
17901
 
17902
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", root_layoutvue_type_template_id_1f5c28de_hoisted_1, [$data.hasSlotContent(_ctx.$slots.header) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("header", {
17902
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", root_layoutvue_type_template_id_3670772e_hoisted_1, [$data.hasSlotContent(_ctx.$slots.header) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("header", {
17903
17903
  key: 0,
17904
17904
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['root-layout__header', $props.headerClass, {
17905
17905
  'root-layout__header--sticky': $props.headerSticky
17906
17906
  }]),
17907
17907
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)({
17908
- 'height': $props.headerHeight
17908
+ 'height': $props.headerHeight,
17909
+ 'min-height': $props.headerHeight
17909
17910
  }),
17910
17911
  "data-qa": "root-layout-header"
17911
17912
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_root_layout_body, {
@@ -17914,7 +17915,10 @@ function root_layoutvue_type_template_id_1f5c28de_render(_ctx, _cache, $props, $
17914
17915
  "content-wrap-width-percent": $props.contentWrapWidthPercent,
17915
17916
  "sidebar-class": $props.sidebarClass,
17916
17917
  "sidebar-width": $props.sidebarWidth,
17917
- "sidebar-position": $props.sidebarPosition
17918
+ "sidebar-position": $props.sidebarPosition,
17919
+ "header-height": $props.headerHeight,
17920
+ "footer-height": $props.footerHeight,
17921
+ fixed: $props.fixed
17918
17922
  }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createSlots)({
17919
17923
  _: 2
17920
17924
  }, [$data.hasSlotContent(_ctx.$slots.sidebar) ? {
@@ -17925,25 +17929,28 @@ function root_layoutvue_type_template_id_1f5c28de_render(_ctx, _cache, $props, $
17925
17929
  name: "content",
17926
17930
  fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")]),
17927
17931
  key: "1"
17928
- } : undefined]), 1032, ["body-class", "content-class", "content-wrap-width-percent", "sidebar-class", "sidebar-width", "sidebar-position"]), $data.hasSlotContent(_ctx.$slots.footer) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("footer", {
17932
+ } : undefined]), 1032, ["body-class", "content-class", "content-wrap-width-percent", "sidebar-class", "sidebar-width", "sidebar-position", "header-height", "footer-height", "fixed"]), $data.hasSlotContent(_ctx.$slots.footer) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("footer", {
17929
17933
  key: 1,
17930
17934
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['root-layout__footer', $props.footerClass]),
17931
17935
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)({
17932
- 'height': $props.footerHeight
17936
+ 'height': $props.footerHeight,
17937
+ 'min-height': $props.footerHeight
17933
17938
  }),
17934
17939
  "data-qa": "root-layout-footer"
17935
17940
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
17936
17941
  }
17937
- ;// CONCATENATED MODULE: ./components/root_layout/root_layout.vue?vue&type=template&id=1f5c28de
17942
+ ;// CONCATENATED MODULE: ./components/root_layout/root_layout.vue?vue&type=template&id=3670772e
17938
17943
 
17939
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout_body.vue?vue&type=template&id=5f53db5a
17944
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout_body.vue?vue&type=template&id=e95be78c
17940
17945
 
17941
- function root_layout_bodyvue_type_template_id_5f53db5a_render(_ctx, _cache, $props, $setup, $data, $options) {
17946
+ function root_layout_bodyvue_type_template_id_e95be78c_render(_ctx, _cache, $props, $setup, $data, $options) {
17942
17947
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
17948
+ ref: "root-layout-body",
17943
17949
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['root-layout__body', 'd-fl-grow1', $options.bodyClasses]),
17944
17950
  "data-qa": "root-layout-body"
17945
17951
  }, [$data.hasSlotContent(_ctx.$slots.sidebar) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("aside", {
17946
17952
  key: 0,
17953
+ ref: "root-layout-sidebar",
17947
17954
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['root-layout__sidebar', $props.sidebarClass]),
17948
17955
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)({
17949
17956
  'flex-basis': $props.sidebarWidth
@@ -17951,14 +17958,16 @@ function root_layout_bodyvue_type_template_id_5f53db5a_render(_ctx, _cache, $pro
17951
17958
  "data-qa": "root-layout-sidebar"
17952
17959
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "sidebar")], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $data.hasSlotContent(_ctx.$slots.content) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("main", {
17953
17960
  key: 1,
17961
+ ref: "root-layout-content",
17954
17962
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['root-layout__content', $props.contentClass]),
17955
17963
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)({
17956
- 'min-inline-size': $props.contentWrapWidthPercent
17964
+ 'min-inline-size': $props.contentWrapWidthPercent,
17965
+ 'height': $options.mainHeight
17957
17966
  }),
17958
17967
  "data-qa": "root-layout-content"
17959
17968
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "content")], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
17960
17969
  }
17961
- ;// CONCATENATED MODULE: ./components/root_layout/root_layout_body.vue?vue&type=template&id=5f53db5a
17970
+ ;// CONCATENATED MODULE: ./components/root_layout/root_layout_body.vue?vue&type=template&id=e95be78c
17962
17971
 
17963
17972
  ;// CONCATENATED MODULE: ./components/root_layout/root_layout_constants.js
17964
17973
  const ROOT_LAYOUT_SIDEBAR_POSITIONS = {
@@ -18025,12 +18034,27 @@ const ROOT_LAYOUT_SIDEBAR_POSITIONS = {
18025
18034
  contentWrapWidthPercent: {
18026
18035
  type: String,
18027
18036
  default: undefined
18037
+ },
18038
+ headerHeight: {
18039
+ type: String,
18040
+ default: undefined
18041
+ },
18042
+ footerHeight: {
18043
+ type: String,
18044
+ default: undefined
18045
+ },
18046
+ fixed: {
18047
+ type: Boolean,
18048
+ default: undefined
18028
18049
  }
18029
18050
  },
18030
18051
 
18031
18052
  data() {
18032
18053
  return {
18033
- hasSlotContent: hasSlotContent
18054
+ hasSlotContent: hasSlotContent,
18055
+ sidebarTop: null,
18056
+ contentTop: null,
18057
+ documentHeight: null
18034
18058
  };
18035
18059
  },
18036
18060
 
@@ -18039,16 +18063,62 @@ const ROOT_LAYOUT_SIDEBAR_POSITIONS = {
18039
18063
  return [this.bodyClass, {
18040
18064
  'root-layout__body--invert': this.sidebarPosition === ROOT_LAYOUT_SIDEBAR_POSITIONS.RIGHT
18041
18065
  }];
18066
+ },
18067
+
18068
+ mainHeight() {
18069
+ if (this.fixed) {
18070
+ return `calc(${this.documentHeight}
18071
+ - (${this.headerHeight} + ${this.extraSidebarHeight} + ${this.footerHeight}))`;
18072
+ }
18073
+
18074
+ return null;
18075
+ },
18076
+
18077
+ // When the sidebar is above the header due to contentWrapWidthPercent, it needs to be excluded
18078
+ // in the main content height calculation. Otherwise it is 0 since it is at equal height with the main content.
18079
+ extraSidebarHeight() {
18080
+ if (this.contentTop > this.sidebarTop) {
18081
+ return this.$refs['root-layout-sidebar'].offsetHeight + 'px';
18082
+ }
18083
+
18084
+ return '0px';
18085
+ }
18086
+
18087
+ },
18088
+
18089
+ mounted() {
18090
+ window.addEventListener('resize', this.onResize);
18091
+ this.getDocumentHeight();
18092
+ this.getElementTops();
18093
+ },
18094
+
18095
+ beforeUnmount() {
18096
+ window.removeEventListener('resize', this.onResize);
18097
+ },
18098
+
18099
+ methods: {
18100
+ onResize() {
18101
+ this.getDocumentHeight();
18102
+ this.getElementTops();
18103
+ },
18104
+
18105
+ getElementTops() {
18106
+ this.sidebarTop = this.$refs['root-layout-sidebar'].offsetTop;
18107
+ this.contentTop = this.$refs['root-layout-content'].offsetTop;
18108
+ },
18109
+
18110
+ getDocumentHeight() {
18111
+ this.documentHeight = window.innerHeight + 'px';
18042
18112
  }
18043
18113
 
18044
18114
  }
18045
18115
  });
18046
18116
  ;// CONCATENATED MODULE: ./components/root_layout/root_layout_body.vue?vue&type=script&lang=js
18047
18117
 
18048
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout_body.vue?vue&type=style&index=0&id=5f53db5a&lang=less
18118
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout_body.vue?vue&type=style&index=0&id=e95be78c&lang=less
18049
18119
  // extracted by mini-css-extract-plugin
18050
18120
 
18051
- ;// CONCATENATED MODULE: ./components/root_layout/root_layout_body.vue?vue&type=style&index=0&id=5f53db5a&lang=less
18121
+ ;// CONCATENATED MODULE: ./components/root_layout/root_layout_body.vue?vue&type=style&index=0&id=e95be78c&lang=less
18052
18122
 
18053
18123
  ;// CONCATENATED MODULE: ./components/root_layout/root_layout_body.vue
18054
18124
 
@@ -18058,7 +18128,7 @@ const ROOT_LAYOUT_SIDEBAR_POSITIONS = {
18058
18128
  ;
18059
18129
 
18060
18130
 
18061
- const root_layout_body_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_layout_bodyvue_type_script_lang_js, [['render',root_layout_bodyvue_type_template_id_5f53db5a_render]])
18131
+ const root_layout_body_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_layout_bodyvue_type_script_lang_js, [['render',root_layout_bodyvue_type_template_id_e95be78c_render]])
18062
18132
 
18063
18133
  /* harmony default export */ const root_layout_body = (root_layout_body_exports_);
18064
18134
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout.vue?vue&type=script&lang=js
@@ -18075,6 +18145,15 @@ const root_layout_body_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(r
18075
18145
  DtRootLayoutBody: root_layout_body
18076
18146
  },
18077
18147
  props: {
18148
+ /**
18149
+ * When true, the header / footer will be locked in position and the content will
18150
+ * be scrollable. When false the header / footer will scroll out of view.
18151
+ */
18152
+ fixed: {
18153
+ type: Boolean,
18154
+ default: true
18155
+ },
18156
+
18078
18157
  /**
18079
18158
  * Additional class name for the header element
18080
18159
  */
@@ -18183,10 +18262,10 @@ const root_layout_body_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(r
18183
18262
  });
18184
18263
  ;// CONCATENATED MODULE: ./components/root_layout/root_layout.vue?vue&type=script&lang=js
18185
18264
 
18186
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout.vue?vue&type=style&index=0&id=1f5c28de&lang=less
18265
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/root_layout/root_layout.vue?vue&type=style&index=0&id=3670772e&lang=less
18187
18266
  // extracted by mini-css-extract-plugin
18188
18267
 
18189
- ;// CONCATENATED MODULE: ./components/root_layout/root_layout.vue?vue&type=style&index=0&id=1f5c28de&lang=less
18268
+ ;// CONCATENATED MODULE: ./components/root_layout/root_layout.vue?vue&type=style&index=0&id=3670772e&lang=less
18190
18269
 
18191
18270
  ;// CONCATENATED MODULE: ./components/root_layout/root_layout.vue
18192
18271
 
@@ -18196,7 +18275,7 @@ const root_layout_body_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(r
18196
18275
  ;
18197
18276
 
18198
18277
 
18199
- const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_layoutvue_type_script_lang_js, [['render',root_layoutvue_type_template_id_1f5c28de_render]])
18278
+ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_layoutvue_type_script_lang_js, [['render',root_layoutvue_type_template_id_3670772e_render]])
18200
18279
 
18201
18280
  /* harmony default export */ const root_layout = (root_layout_exports_);
18202
18281
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
@@ -18677,27 +18756,27 @@ const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */
18677
18756
  /* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
18678
18757
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
18679
18758
 
18680
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=74c4195e
18759
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=491f9b2d
18681
18760
 
18682
- const combobox_multi_selectvue_type_template_id_74c4195e_hoisted_1 = {
18761
+ const combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_1 = {
18683
18762
  ref: "inputSlotWrapper",
18684
18763
  class: "d-ps-relative d-d-block"
18685
18764
  };
18686
- const combobox_multi_selectvue_type_template_id_74c4195e_hoisted_2 = {
18765
+ const combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_2 = {
18687
18766
  ref: "chipsWrapper",
18688
18767
  class: "d-ps-absolute d-mx2"
18689
18768
  };
18690
- const combobox_multi_selectvue_type_template_id_74c4195e_hoisted_3 = {
18769
+ const combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_3 = {
18691
18770
  ref: "header"
18692
18771
  };
18693
- const combobox_multi_selectvue_type_template_id_74c4195e_hoisted_4 = {
18772
+ const combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_4 = {
18694
18773
  key: 1,
18695
18774
  class: "d-ta-center d-py16"
18696
18775
  };
18697
- const combobox_multi_selectvue_type_template_id_74c4195e_hoisted_5 = {
18776
+ const combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_5 = {
18698
18777
  ref: "footer"
18699
18778
  };
18700
- function combobox_multi_selectvue_type_template_id_74c4195e_render(_ctx, _cache, $props, $setup, $data, $options) {
18779
+ function combobox_multi_selectvue_type_template_id_491f9b2d_render(_ctx, _cache, $props, $setup, $data, $options) {
18701
18780
  const _component_dt_chip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-chip");
18702
18781
 
18703
18782
  const _component_dt_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-input");
@@ -18722,7 +18801,7 @@ function combobox_multi_selectvue_type_template_id_74c4195e_render(_ctx, _cache,
18722
18801
  let {
18723
18802
  onInput
18724
18803
  } = _ref;
18725
- return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_74c4195e_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_74c4195e_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($props.selectedItems, item => {
18804
+ return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($props.selectedItems, item => {
18726
18805
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_chip, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
18727
18806
  ref_for: true,
18728
18807
  ref: "chips",
@@ -18764,19 +18843,19 @@ function combobox_multi_selectvue_type_template_id_74c4195e_render(_ctx, _cache,
18764
18843
  onMousedown: _cache[1] || (_cache[1] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent"]))
18765
18844
  }, [!$props.loading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
18766
18845
  key: 0
18767
- }) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", combobox_multi_selectvue_type_template_id_74c4195e_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.loadingMessage), 1))], 544)]),
18846
+ }) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.loadingMessage), 1))], 544)]),
18768
18847
  _: 2
18769
18848
  }, [$data.hasSlotContent(_ctx.$slots.header) ? {
18770
18849
  name: "header",
18771
- fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_multi_selectvue_type_template_id_74c4195e_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 512)]),
18850
+ fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 512)]),
18772
18851
  key: "0"
18773
18852
  } : undefined, $data.hasSlotContent(_ctx.$slots.footer) ? {
18774
18853
  name: "footer",
18775
- fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_multi_selectvue_type_template_id_74c4195e_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 512)]),
18854
+ fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_multi_selectvue_type_template_id_491f9b2d_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 512)]),
18776
18855
  key: "1"
18777
18856
  } : undefined]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "onSelect"]);
18778
18857
  }
18779
- ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=74c4195e
18858
+ ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=491f9b2d
18780
18859
 
18781
18860
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
18782
18861
  // The item list for default story
@@ -18881,9 +18960,9 @@ const CHIP_SIZES = {
18881
18960
  md: 'sm'
18882
18961
  };
18883
18962
  const CHIP_TOP_POSITION = {
18884
- xs: 11.1,
18885
- sm: 10.1,
18886
- md: 10.1
18963
+ xs: 1.4,
18964
+ sm: 0.4,
18965
+ md: 0.2
18887
18966
  };
18888
18967
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=script&lang=js
18889
18968
 
@@ -19140,7 +19219,7 @@ const CHIP_TOP_POSITION = {
19140
19219
  handler: async function () {
19141
19220
  await this.$nextTick();
19142
19221
  this.setInputPadding();
19143
- this.setChipsPosition();
19222
+ this.setChipsTopPosition();
19144
19223
  this.setInputMinWidth();
19145
19224
  this.checkMaxSelected();
19146
19225
  }
@@ -19149,13 +19228,13 @@ const CHIP_TOP_POSITION = {
19149
19228
  async label() {
19150
19229
  await this.$nextTick(); // Adjust the chips position if label changed
19151
19230
 
19152
- this.setChipsPosition();
19231
+ this.setChipsTopPosition();
19153
19232
  },
19154
19233
 
19155
19234
  async description() {
19156
19235
  await this.$nextTick(); // Adjust the chips position if description changed
19157
19236
 
19158
- this.setChipsPosition();
19237
+ this.setChipsTopPosition();
19159
19238
  },
19160
19239
 
19161
19240
  size: {
@@ -19165,6 +19244,7 @@ const CHIP_TOP_POSITION = {
19165
19244
  this.revertInputPadding(input);
19166
19245
  this.originalInputSize = input.getBoundingClientRect().height;
19167
19246
  this.setInputPadding();
19247
+ this.setChipsTopPosition();
19168
19248
  },
19169
19249
 
19170
19250
  immediate: true
@@ -19172,10 +19252,9 @@ const CHIP_TOP_POSITION = {
19172
19252
  },
19173
19253
 
19174
19254
  mounted() {
19175
- this.setChipsPosition(); // Recalculate chip position and input padding when resizing window
19176
-
19177
- this.resizeWindowObserver = new ResizeObserver(() => {
19178
- this.setChipsPosition();
19255
+ // Recalculate chip position and input padding when resizing window
19256
+ this.resizeWindowObserver = new ResizeObserver(async () => {
19257
+ this.setChipsTopPosition();
19179
19258
  this.setInputPadding();
19180
19259
  });
19181
19260
  this.resizeWindowObserver.observe(document.body);
@@ -19297,10 +19376,15 @@ const CHIP_TOP_POSITION = {
19297
19376
  this.closeComboboxList();
19298
19377
  },
19299
19378
 
19300
- setChipsPosition() {
19301
- const input = this.getInput().getBoundingClientRect();
19379
+ setChipsTopPosition() {
19380
+ // To place the chips in the input box
19381
+ // The chip "top" position should be the same line as the input box
19382
+ const input = this.getInput();
19383
+ if (!input) return;
19384
+ const inputSlotWrapper = this.$refs.inputSlotWrapper;
19385
+ const top = input.getBoundingClientRect().top - inputSlotWrapper.getBoundingClientRect().top;
19302
19386
  const chipsWrapper = this.$refs.chipsWrapper;
19303
- chipsWrapper.style.top = input.top - CHIP_TOP_POSITION[this.size] + 'px';
19387
+ chipsWrapper.style.top = top - CHIP_TOP_POSITION[this.size] + 'px';
19304
19388
  },
19305
19389
 
19306
19390
  setInputPadding() {
@@ -19371,7 +19455,7 @@ const CHIP_TOP_POSITION = {
19371
19455
 
19372
19456
 
19373
19457
  ;
19374
- const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_multi_selectvue_type_script_lang_js, [['render',combobox_multi_selectvue_type_template_id_74c4195e_render]])
19458
+ const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_multi_selectvue_type_script_lang_js, [['render',combobox_multi_selectvue_type_template_id_491f9b2d_render]])
19375
19459
 
19376
19460
  /* harmony default export */ const combobox_multi_select = (combobox_multi_select_exports_);
19377
19461
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js