@dialpad/dialtone-vue 3.41.0-beta.4 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -1
- package/CHANGELOG.md +2 -23
- package/dist/dialtone-vue.common.js +84 -99
- package/dist/dialtone-vue.umd.js +84 -99
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -2972,17 +2972,25 @@ const focusableElementsList = `button,[href],input,select,textarea,details,[tabi
|
|
|
2972
2972
|
/* harmony default export */ const modal = ({
|
|
2973
2973
|
methods: {
|
|
2974
2974
|
/**
|
|
2975
|
-
*
|
|
2975
|
+
* get the first focusable element in your component, includes tabindex="-1".
|
|
2976
2976
|
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
2977
2977
|
* will default to the root node of the vue component
|
|
2978
2978
|
*/
|
|
2979
|
-
async
|
|
2979
|
+
async getFirstFocusableElement(el) {
|
|
2980
2980
|
await this.$nextTick();
|
|
2981
2981
|
|
|
2982
2982
|
const focusableElements = this._getFocusableElements(el, true);
|
|
2983
2983
|
|
|
2984
|
-
|
|
2984
|
+
return this._getFirstFocusElement(focusableElements);
|
|
2985
|
+
},
|
|
2985
2986
|
|
|
2987
|
+
/**
|
|
2988
|
+
* set focus to the first focusable element in your component, includes tabindex="-1".
|
|
2989
|
+
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
2990
|
+
* will default to the root node of the vue component
|
|
2991
|
+
*/
|
|
2992
|
+
async focusFirstElement(el) {
|
|
2993
|
+
const elToFocus = await this.getFirstFocusableElement(el);
|
|
2986
2994
|
elToFocus === null || elToFocus === void 0 ? void 0 : elToFocus.focus({
|
|
2987
2995
|
preventScroll: true
|
|
2988
2996
|
});
|
|
@@ -6349,11 +6357,11 @@ function dropdownvue_type_template_id_878a8588_render(_ctx, _cache, $props, $set
|
|
|
6349
6357
|
}
|
|
6350
6358
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown.vue?vue&type=template&id=878a8588
|
|
6351
6359
|
|
|
6352
|
-
;// 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/popover/popover.vue?vue&type=template&id=
|
|
6360
|
+
;// 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/popover/popover.vue?vue&type=template&id=31e5c1c0
|
|
6353
6361
|
|
|
6354
|
-
const
|
|
6355
|
-
const
|
|
6356
|
-
function
|
|
6362
|
+
const popovervue_type_template_id_31e5c1c0_hoisted_1 = ["aria-hidden"];
|
|
6363
|
+
const popovervue_type_template_id_31e5c1c0_hoisted_2 = ["id", "tabindex"];
|
|
6364
|
+
function popovervue_type_template_id_31e5c1c0_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6357
6365
|
const _component_popover_header_footer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("popover-header-footer");
|
|
6358
6366
|
|
|
6359
6367
|
const _component_sr_only_close_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("sr-only-close-button");
|
|
@@ -6367,7 +6375,7 @@ function popovervue_type_template_id_3758d616_render(_ctx, _cache, $props, $setu
|
|
|
6367
6375
|
class: "d-modal--transparent",
|
|
6368
6376
|
"aria-hidden": $props.modal && $data.isOpen ? 'false' : 'true',
|
|
6369
6377
|
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent", "stop"]))
|
|
6370
|
-
}, null, 8,
|
|
6378
|
+
}, null, 8, popovervue_type_template_id_31e5c1c0_hoisted_1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.elementType), {
|
|
6371
6379
|
ref: "popover",
|
|
6372
6380
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-popover', {
|
|
6373
6381
|
'd-popover__anchor--opened': $data.isOpen
|
|
@@ -6399,7 +6407,7 @@ function popovervue_type_template_id_3758d616_render(_ctx, _cache, $props, $setu
|
|
|
6399
6407
|
'aria-controls': $props.id,
|
|
6400
6408
|
'aria-haspopup': $props.role
|
|
6401
6409
|
}
|
|
6402
|
-
})], 40,
|
|
6410
|
+
})], 40, popovervue_type_template_id_31e5c1c0_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_lazy_show, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
6403
6411
|
id: $props.id,
|
|
6404
6412
|
ref: "content",
|
|
6405
6413
|
role: $props.role,
|
|
@@ -6462,7 +6470,7 @@ function popovervue_type_template_id_3758d616_render(_ctx, _cache, $props, $setu
|
|
|
6462
6470
|
_: 3
|
|
6463
6471
|
}, 8, ["class"]))]);
|
|
6464
6472
|
}
|
|
6465
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=
|
|
6473
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=31e5c1c0
|
|
6466
6474
|
|
|
6467
6475
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
6468
6476
|
function getWindow(node) {
|
|
@@ -11566,23 +11574,23 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11566
11574
|
});
|
|
11567
11575
|
},
|
|
11568
11576
|
|
|
11569
|
-
|
|
11577
|
+
sticky(sticky) {
|
|
11570
11578
|
var _this$tip3;
|
|
11571
11579
|
|
|
11572
11580
|
(_this$tip3 = this.tip) === null || _this$tip3 === void 0 ? void 0 : _this$tip3.setProps({
|
|
11573
|
-
|
|
11581
|
+
sticky
|
|
11574
11582
|
});
|
|
11575
11583
|
},
|
|
11576
11584
|
|
|
11577
|
-
|
|
11585
|
+
fallbackPlacements() {
|
|
11578
11586
|
var _this$tip4;
|
|
11579
11587
|
|
|
11580
11588
|
(_this$tip4 = this.tip) === null || _this$tip4 === void 0 ? void 0 : _this$tip4.setProps({
|
|
11581
|
-
|
|
11589
|
+
popperOptions: this.popperOptions()
|
|
11582
11590
|
});
|
|
11583
11591
|
},
|
|
11584
11592
|
|
|
11585
|
-
|
|
11593
|
+
tether() {
|
|
11586
11594
|
var _this$tip5;
|
|
11587
11595
|
|
|
11588
11596
|
(_this$tip5 = this.tip) === null || _this$tip5 === void 0 ? void 0 : _this$tip5.setProps({
|
|
@@ -11590,18 +11598,10 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11590
11598
|
});
|
|
11591
11599
|
},
|
|
11592
11600
|
|
|
11593
|
-
|
|
11601
|
+
placement(placement) {
|
|
11594
11602
|
var _this$tip6;
|
|
11595
11603
|
|
|
11596
11604
|
(_this$tip6 = this.tip) === null || _this$tip6 === void 0 ? void 0 : _this$tip6.setProps({
|
|
11597
|
-
popperOptions: this.popperOptions()
|
|
11598
|
-
});
|
|
11599
|
-
},
|
|
11600
|
-
|
|
11601
|
-
placement(placement) {
|
|
11602
|
-
var _this$tip7;
|
|
11603
|
-
|
|
11604
|
-
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.setProps({
|
|
11605
11605
|
placement
|
|
11606
11606
|
});
|
|
11607
11607
|
},
|
|
@@ -11638,7 +11638,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11638
11638
|
},
|
|
11639
11639
|
|
|
11640
11640
|
mounted() {
|
|
11641
|
-
const externalAnchorEl =
|
|
11641
|
+
const externalAnchorEl = document.getElementById(this.externalAnchor);
|
|
11642
11642
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
11643
11643
|
this.popoverContentEl = this.$refs.content.$el;
|
|
11644
11644
|
|
|
@@ -11648,9 +11648,9 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11648
11648
|
},
|
|
11649
11649
|
|
|
11650
11650
|
beforeUnmount() {
|
|
11651
|
-
var _this$
|
|
11651
|
+
var _this$tip7;
|
|
11652
11652
|
|
|
11653
|
-
(_this$
|
|
11653
|
+
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
11654
11654
|
this.removeReferences();
|
|
11655
11655
|
this.removeEventListeners();
|
|
11656
11656
|
},
|
|
@@ -11675,7 +11675,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11675
11675
|
|
|
11676
11676
|
calculateAnchorZindex() {
|
|
11677
11677
|
// if a modal is currently active render at modal-element z-index, otherwise at popover z-index
|
|
11678
|
-
if (
|
|
11678
|
+
if (document.querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')) {
|
|
11679
11679
|
return 650;
|
|
11680
11680
|
} else {
|
|
11681
11681
|
return 300;
|
|
@@ -11769,7 +11769,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11769
11769
|
* Prevents scrolling only when the popover is set to modal
|
|
11770
11770
|
**/
|
|
11771
11771
|
preventScrolling(e) {
|
|
11772
|
-
if (!this.modal) return;
|
|
11772
|
+
if (!this.modal || this.$refs.content.$el.contains(e.target)) return;
|
|
11773
11773
|
e.preventDefault();
|
|
11774
11774
|
},
|
|
11775
11775
|
|
|
@@ -11790,7 +11790,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11790
11790
|
},
|
|
11791
11791
|
|
|
11792
11792
|
async onLeaveTransitionComplete() {
|
|
11793
|
-
var _this$
|
|
11793
|
+
var _this$tip8;
|
|
11794
11794
|
|
|
11795
11795
|
if (this.modal) {
|
|
11796
11796
|
await this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
@@ -11798,7 +11798,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11798
11798
|
await this.$nextTick();
|
|
11799
11799
|
}
|
|
11800
11800
|
|
|
11801
|
-
(_this$
|
|
11801
|
+
(_this$tip8 = this.tip) === null || _this$tip8 === void 0 ? void 0 : _this$tip8.unmount();
|
|
11802
11802
|
this.$emit('opened', false);
|
|
11803
11803
|
|
|
11804
11804
|
if (this.open !== null) {
|
|
@@ -11897,15 +11897,13 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11897
11897
|
},
|
|
11898
11898
|
|
|
11899
11899
|
initTippyInstance() {
|
|
11900
|
-
var _this$anchorEl2, _this$anchorEl2$getRo;
|
|
11901
|
-
|
|
11902
11900
|
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
11903
11901
|
popperOptions: this.popperOptions(),
|
|
11904
11902
|
contentElement: this.popoverContentEl,
|
|
11905
11903
|
placement: this.placement,
|
|
11906
11904
|
offset: this.offset,
|
|
11907
11905
|
sticky: this.sticky,
|
|
11908
|
-
appendTo: this.appendTo
|
|
11906
|
+
appendTo: this.appendTo,
|
|
11909
11907
|
interactive: true,
|
|
11910
11908
|
trigger: 'manual',
|
|
11911
11909
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -11926,10 +11924,10 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11926
11924
|
});
|
|
11927
11925
|
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=script&lang=js
|
|
11928
11926
|
|
|
11929
|
-
;// 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/popover/popover.vue?vue&type=style&index=0&id=
|
|
11927
|
+
;// 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/popover/popover.vue?vue&type=style&index=0&id=31e5c1c0&lang=less
|
|
11930
11928
|
// extracted by mini-css-extract-plugin
|
|
11931
11929
|
|
|
11932
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
11930
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=31e5c1c0&lang=less
|
|
11933
11931
|
|
|
11934
11932
|
;// CONCATENATED MODULE: ./components/popover/popover.vue
|
|
11935
11933
|
|
|
@@ -11939,7 +11937,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11939
11937
|
;
|
|
11940
11938
|
|
|
11941
11939
|
|
|
11942
|
-
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',
|
|
11940
|
+
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',popovervue_type_template_id_31e5c1c0_render]])
|
|
11943
11941
|
|
|
11944
11942
|
/* harmony default export */ const popover = (popover_exports_);
|
|
11945
11943
|
;// CONCATENATED MODULE: ./components/popover/index.js
|
|
@@ -15708,31 +15706,34 @@ function tabvue_type_template_id_af343bac_render(_ctx, _cache, $props, $setup, $
|
|
|
15708
15706
|
const tab_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tabvue_type_script_lang_js, [['render',tabvue_type_template_id_af343bac_render]])
|
|
15709
15707
|
|
|
15710
15708
|
/* harmony default export */ const tab = (tab_exports_);
|
|
15711
|
-
;// 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/tabs/tab_panel.vue?vue&type=template&id=
|
|
15709
|
+
;// 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/tabs/tab_panel.vue?vue&type=template&id=2cfdc9e8
|
|
15712
15710
|
|
|
15713
|
-
const
|
|
15714
|
-
function
|
|
15711
|
+
const tab_panelvue_type_template_id_2cfdc9e8_hoisted_1 = ["id", "tabindex", "aria-labelledby", "aria-hidden"];
|
|
15712
|
+
function tab_panelvue_type_template_id_2cfdc9e8_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15715
15713
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
15716
15714
|
id: `dt-panel-${$props.id}`,
|
|
15717
15715
|
role: "tabpanel",
|
|
15718
|
-
tabindex:
|
|
15716
|
+
tabindex: $data.isFirstElementFocusable ? -1 : 0,
|
|
15719
15717
|
"aria-labelledby": `dt-tab-${$props.tabId}`,
|
|
15720
15718
|
"aria-hidden": `${$options.hidePanel}`,
|
|
15721
15719
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([{
|
|
15722
15720
|
'd-d-none': $options.hidePanel
|
|
15723
15721
|
}, $props.tabPanelClass]),
|
|
15724
15722
|
"data-qa": "dt-tab-panel"
|
|
15725
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10,
|
|
15723
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10, tab_panelvue_type_template_id_2cfdc9e8_hoisted_1)), [[external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.vShow, !$props.hidden]]);
|
|
15726
15724
|
}
|
|
15727
|
-
;// CONCATENATED MODULE: ./components/tabs/tab_panel.vue?vue&type=template&id=
|
|
15725
|
+
;// CONCATENATED MODULE: ./components/tabs/tab_panel.vue?vue&type=template&id=2cfdc9e8
|
|
15728
15726
|
|
|
15729
15727
|
;// 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/tabs/tab_panel.vue?vue&type=script&lang=js
|
|
15728
|
+
|
|
15730
15729
|
/**
|
|
15731
15730
|
* Tabs allow users to navigation between grouped content in different views while within the same page context.
|
|
15732
15731
|
* @see https://dialpad.design/components/tabs.html
|
|
15733
15732
|
*/
|
|
15733
|
+
|
|
15734
15734
|
/* harmony default export */ const tab_panelvue_type_script_lang_js = ({
|
|
15735
15735
|
name: 'DtTabPanel',
|
|
15736
|
+
mixins: [modal],
|
|
15736
15737
|
inject: ['groupContext'],
|
|
15737
15738
|
props: {
|
|
15738
15739
|
/**
|
|
@@ -15768,12 +15769,24 @@ function tab_panelvue_type_template_id_572b0140_render(_ctx, _cache, $props, $se
|
|
|
15768
15769
|
default: ''
|
|
15769
15770
|
}
|
|
15770
15771
|
},
|
|
15772
|
+
|
|
15773
|
+
data() {
|
|
15774
|
+
return {
|
|
15775
|
+
isFirstElementFocusable: false
|
|
15776
|
+
};
|
|
15777
|
+
},
|
|
15778
|
+
|
|
15771
15779
|
computed: {
|
|
15772
15780
|
hidePanel() {
|
|
15773
15781
|
return this.groupContext.selected !== this.id || this.hidden;
|
|
15774
15782
|
}
|
|
15775
15783
|
|
|
15784
|
+
},
|
|
15785
|
+
|
|
15786
|
+
async mounted() {
|
|
15787
|
+
this.isFirstElementFocusable = !!(await this.getFirstFocusableElement(this.$el));
|
|
15776
15788
|
}
|
|
15789
|
+
|
|
15777
15790
|
});
|
|
15778
15791
|
;// CONCATENATED MODULE: ./components/tabs/tab_panel.vue?vue&type=script&lang=js
|
|
15779
15792
|
|
|
@@ -15783,7 +15796,7 @@ function tab_panelvue_type_template_id_572b0140_render(_ctx, _cache, $props, $se
|
|
|
15783
15796
|
|
|
15784
15797
|
|
|
15785
15798
|
;
|
|
15786
|
-
const tab_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tab_panelvue_type_script_lang_js, [['render',
|
|
15799
|
+
const tab_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tab_panelvue_type_script_lang_js, [['render',tab_panelvue_type_template_id_2cfdc9e8_render]])
|
|
15787
15800
|
|
|
15788
15801
|
/* harmony default export */ const tab_panel = (tab_panel_exports_);
|
|
15789
15802
|
;// CONCATENATED MODULE: ./components/tabs/index.js
|
|
@@ -18068,17 +18081,17 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
18068
18081
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
18069
18082
|
|
|
18070
18083
|
|
|
18071
|
-
;// 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_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
18084
|
+
;// 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_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
18072
18085
|
|
|
18073
|
-
const
|
|
18074
|
-
const
|
|
18086
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1 = ["id"];
|
|
18087
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2 = {
|
|
18075
18088
|
ref: "header"
|
|
18076
18089
|
};
|
|
18077
|
-
const
|
|
18078
|
-
const
|
|
18090
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3 = ["onMouseleave", "onFocusout"];
|
|
18091
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4 = {
|
|
18079
18092
|
ref: "footer"
|
|
18080
18093
|
};
|
|
18081
|
-
function
|
|
18094
|
+
function combobox_with_popovervue_type_template_id_6b1072ea_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18082
18095
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
18083
18096
|
|
|
18084
18097
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -18101,7 +18114,6 @@ function combobox_with_popovervue_type_template_id_27b9863b_render(_ctx, _cache,
|
|
|
18101
18114
|
"on-end-of-list": $props.onEndOfList,
|
|
18102
18115
|
"list-rendered-outside": true,
|
|
18103
18116
|
"list-id": $props.listId,
|
|
18104
|
-
"append-to": $props.appendTo,
|
|
18105
18117
|
"data-qa": "dt-combobox"
|
|
18106
18118
|
}, $options.comboboxListeners), {
|
|
18107
18119
|
input: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref => {
|
|
@@ -18118,7 +18130,7 @@ function combobox_with_popovervue_type_template_id_27b9863b_render(_ctx, _cache,
|
|
|
18118
18130
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
18119
18131
|
inputProps: inputProps,
|
|
18120
18132
|
onInput: $options.handleDisplayList
|
|
18121
|
-
})], 40,
|
|
18133
|
+
})], 40, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1)];
|
|
18122
18134
|
}),
|
|
18123
18135
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
18124
18136
|
let {
|
|
@@ -18163,22 +18175,22 @@ function combobox_with_popovervue_type_template_id_27b9863b_render(_ctx, _cache,
|
|
|
18163
18175
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
18164
18176
|
key: 2,
|
|
18165
18177
|
listProps: listProps
|
|
18166
|
-
})], 42,
|
|
18178
|
+
})], 42, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3)]),
|
|
18167
18179
|
_: 2
|
|
18168
18180
|
}, [_ctx.$slots.header ? {
|
|
18169
18181
|
name: "headerContent",
|
|
18170
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
18182
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 512)]),
|
|
18171
18183
|
key: "0"
|
|
18172
18184
|
} : undefined, _ctx.$slots.footer ? {
|
|
18173
18185
|
name: "footerContent",
|
|
18174
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
18186
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 512)]),
|
|
18175
18187
|
key: "1"
|
|
18176
18188
|
} : undefined]), 1032, ["open", "max-height", "max-width", "offset", "sticky", "external-anchor", "content-width", "visually-hidden-close-label", "visually-hidden-close", "onOpened"])];
|
|
18177
18189
|
}),
|
|
18178
18190
|
_: 3
|
|
18179
|
-
}, 16, ["loading", "label", "label-visible", "size", "description", "empty-list", "empty-state-message", "show-list", "on-beginning-of-list", "on-end-of-list", "list-id"
|
|
18191
|
+
}, 16, ["loading", "label", "label-visible", "size", "description", "empty-list", "empty-state-message", "show-list", "on-beginning-of-list", "on-end-of-list", "list-id"]);
|
|
18180
18192
|
}
|
|
18181
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
18193
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
18182
18194
|
|
|
18183
18195
|
;// 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_with_popover/combobox_with_popover.vue?vue&type=script&lang=js
|
|
18184
18196
|
|
|
@@ -18189,7 +18201,6 @@ function combobox_with_popovervue_type_template_id_27b9863b_render(_ctx, _cache,
|
|
|
18189
18201
|
|
|
18190
18202
|
|
|
18191
18203
|
|
|
18192
|
-
|
|
18193
18204
|
/* harmony default export */ const combobox_with_popovervue_type_script_lang_js = ({
|
|
18194
18205
|
name: 'DtRecipeComboboxWithPopover',
|
|
18195
18206
|
components: {
|
|
@@ -18348,18 +18359,6 @@ function combobox_with_popovervue_type_template_id_27b9863b_render(_ctx, _cache,
|
|
|
18348
18359
|
default: false
|
|
18349
18360
|
},
|
|
18350
18361
|
|
|
18351
|
-
/**
|
|
18352
|
-
* Sets the element to which the popover is going to append to.
|
|
18353
|
-
* @values 'parent', HTMLElement,
|
|
18354
|
-
*/
|
|
18355
|
-
appendTo: {
|
|
18356
|
-
type: [HTMLElement, String],
|
|
18357
|
-
default: () => document.body,
|
|
18358
|
-
validator: appendTo => {
|
|
18359
|
-
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
18360
|
-
}
|
|
18361
|
-
},
|
|
18362
|
-
|
|
18363
18362
|
/**
|
|
18364
18363
|
* Displays the list when the combobox is focused, before the user has typed anything.
|
|
18365
18364
|
* When this is enabled the list will not close after selection.
|
|
@@ -18551,32 +18550,32 @@ function combobox_with_popovervue_type_template_id_27b9863b_render(_ctx, _cache,
|
|
|
18551
18550
|
|
|
18552
18551
|
|
|
18553
18552
|
;
|
|
18554
|
-
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',
|
|
18553
|
+
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',combobox_with_popovervue_type_template_id_6b1072ea_render]])
|
|
18555
18554
|
|
|
18556
18555
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
18557
18556
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
18558
18557
|
|
|
18559
|
-
;// 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=
|
|
18558
|
+
;// 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=5e05b863
|
|
18560
18559
|
|
|
18561
|
-
const
|
|
18560
|
+
const combobox_multi_selectvue_type_template_id_5e05b863_hoisted_1 = {
|
|
18562
18561
|
ref: "inputSlotWrapper",
|
|
18563
18562
|
class: "d-ps-relative d-d-block"
|
|
18564
18563
|
};
|
|
18565
|
-
const
|
|
18564
|
+
const combobox_multi_selectvue_type_template_id_5e05b863_hoisted_2 = {
|
|
18566
18565
|
ref: "chipsWrapper",
|
|
18567
18566
|
class: "d-ps-absolute d-mx2"
|
|
18568
18567
|
};
|
|
18569
|
-
const
|
|
18568
|
+
const combobox_multi_selectvue_type_template_id_5e05b863_hoisted_3 = {
|
|
18570
18569
|
ref: "header"
|
|
18571
18570
|
};
|
|
18572
|
-
const
|
|
18571
|
+
const combobox_multi_selectvue_type_template_id_5e05b863_hoisted_4 = {
|
|
18573
18572
|
key: 1,
|
|
18574
18573
|
class: "d-ta-center d-py16"
|
|
18575
18574
|
};
|
|
18576
|
-
const
|
|
18575
|
+
const combobox_multi_selectvue_type_template_id_5e05b863_hoisted_5 = {
|
|
18577
18576
|
ref: "footer"
|
|
18578
18577
|
};
|
|
18579
|
-
function
|
|
18578
|
+
function combobox_multi_selectvue_type_template_id_5e05b863_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18580
18579
|
const _component_dt_chip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-chip");
|
|
18581
18580
|
|
|
18582
18581
|
const _component_dt_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-input");
|
|
@@ -18594,7 +18593,6 @@ function combobox_multi_selectvue_type_template_id_e2856cc6_render(_ctx, _cache,
|
|
|
18594
18593
|
"has-suggestion-list": $props.hasSuggestionList,
|
|
18595
18594
|
"visually-hidden-close-label": _ctx.visuallyHiddenCloseLabel,
|
|
18596
18595
|
"visually-hidden-close": _ctx.visuallyHiddenClose,
|
|
18597
|
-
"append-to": $props.appendTo,
|
|
18598
18596
|
"content-width": "anchor",
|
|
18599
18597
|
onSelect: $options.onComboboxSelect
|
|
18600
18598
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createSlots)({
|
|
@@ -18602,7 +18600,7 @@ function combobox_multi_selectvue_type_template_id_e2856cc6_render(_ctx, _cache,
|
|
|
18602
18600
|
let {
|
|
18603
18601
|
onInput
|
|
18604
18602
|
} = _ref;
|
|
18605
|
-
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span",
|
|
18603
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_5e05b863_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_5e05b863_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 => {
|
|
18606
18604
|
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)({
|
|
18607
18605
|
ref_for: true,
|
|
18608
18606
|
ref: "chips",
|
|
@@ -18644,19 +18642,19 @@ function combobox_multi_selectvue_type_template_id_e2856cc6_render(_ctx, _cache,
|
|
|
18644
18642
|
onMousedown: _cache[1] || (_cache[1] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent"]))
|
|
18645
18643
|
}, [!$props.loading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
18646
18644
|
key: 0
|
|
18647
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
18645
|
+
}) : ((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_5e05b863_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.loadingMessage), 1))], 544)]),
|
|
18648
18646
|
_: 2
|
|
18649
18647
|
}, [_ctx.$slots.header ? {
|
|
18650
18648
|
name: "header",
|
|
18651
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
18649
|
+
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_5e05b863_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 512)]),
|
|
18652
18650
|
key: "0"
|
|
18653
18651
|
} : undefined, _ctx.$slots.footer ? {
|
|
18654
18652
|
name: "footer",
|
|
18655
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
18653
|
+
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_5e05b863_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 512)]),
|
|
18656
18654
|
key: "1"
|
|
18657
|
-
} : undefined]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "
|
|
18655
|
+
} : undefined]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "onSelect"]);
|
|
18658
18656
|
}
|
|
18659
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=
|
|
18657
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=5e05b863
|
|
18660
18658
|
|
|
18661
18659
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
18662
18660
|
// The item list for default story
|
|
@@ -18773,7 +18771,6 @@ const CHIP_BOTTOM_POSITION = {
|
|
|
18773
18771
|
|
|
18774
18772
|
|
|
18775
18773
|
|
|
18776
|
-
|
|
18777
18774
|
/* harmony default export */ const combobox_multi_selectvue_type_script_lang_js = ({
|
|
18778
18775
|
name: 'DtRecipeComboboxMultiSelect',
|
|
18779
18776
|
components: {
|
|
@@ -18828,18 +18825,6 @@ const CHIP_BOTTOM_POSITION = {
|
|
|
18828
18825
|
}
|
|
18829
18826
|
},
|
|
18830
18827
|
|
|
18831
|
-
/**
|
|
18832
|
-
* Sets the element to which the popover is going to append to.
|
|
18833
|
-
* @values 'parent', HTMLElement,
|
|
18834
|
-
*/
|
|
18835
|
-
appendTo: {
|
|
18836
|
-
type: [HTMLElement, String],
|
|
18837
|
-
default: () => document.body,
|
|
18838
|
-
validator: appendTo => {
|
|
18839
|
-
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
18840
|
-
}
|
|
18841
|
-
},
|
|
18842
|
-
|
|
18843
18828
|
/**
|
|
18844
18829
|
* Show input validation message
|
|
18845
18830
|
*/
|
|
@@ -19261,7 +19246,7 @@ const CHIP_BOTTOM_POSITION = {
|
|
|
19261
19246
|
|
|
19262
19247
|
|
|
19263
19248
|
;
|
|
19264
|
-
const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_multi_selectvue_type_script_lang_js, [['render',
|
|
19249
|
+
const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_multi_selectvue_type_script_lang_js, [['render',combobox_multi_selectvue_type_template_id_5e05b863_render]])
|
|
19265
19250
|
|
|
19266
19251
|
/* harmony default export */ const combobox_multi_select = (combobox_multi_select_exports_);
|
|
19267
19252
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|