@dialpad/dialtone-vue 3.54.0 → 3.56.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 +15 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +273 -24
- package/dist/dialtone-vue.umd.js +273 -24
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -1181,6 +1181,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1181
1181
|
"DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
|
|
1182
1182
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
1183
1183
|
"DtIcon": () => (/* reexport */ icon),
|
|
1184
|
+
"DtImageViewer": () => (/* reexport */ image_viewer),
|
|
1184
1185
|
"DtInput": () => (/* reexport */ input_input),
|
|
1185
1186
|
"DtInputGroup": () => (/* reexport */ input_group_input_group),
|
|
1186
1187
|
"DtInputGroupMixin": () => (/* reexport */ InputGroupMixin),
|
|
@@ -1271,6 +1272,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1271
1272
|
"TAB_LIST_KIND_MODIFIERS": () => (/* reexport */ TAB_LIST_KIND_MODIFIERS),
|
|
1272
1273
|
"TAB_LIST_SIZES": () => (/* reexport */ TAB_LIST_SIZES),
|
|
1273
1274
|
"TOAST_ROLES": () => (/* reexport */ TOAST_ROLES),
|
|
1275
|
+
"TOOLTIP_DELAY_MS": () => (/* reexport */ TOOLTIP_DELAY_MS),
|
|
1274
1276
|
"TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
|
|
1275
1277
|
"TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
|
|
1276
1278
|
"TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
|
|
@@ -12770,30 +12772,247 @@ const dropdown_separator_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)
|
|
|
12770
12772
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
12771
12773
|
|
|
12772
12774
|
|
|
12773
|
-
;// 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/
|
|
12775
|
+
;// 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/image_viewer/image_viewer.vue?vue&type=template&id=2229fad0
|
|
12774
12776
|
|
|
12775
|
-
const
|
|
12777
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_1 = ["src", "alt"];
|
|
12778
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_2 = ["aria-hidden"];
|
|
12779
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_3 = {
|
|
12780
|
+
"data-qa": "dt-image-viewer-full",
|
|
12781
|
+
class: "d-p0 d-bar0 d-wmx80p d-hmx80p",
|
|
12782
|
+
role: "dialog",
|
|
12783
|
+
"aria-modal": "true"
|
|
12784
|
+
};
|
|
12785
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_4 = ["src", "alt"];
|
|
12786
|
+
function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12787
|
+
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
12788
|
+
|
|
12789
|
+
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
12790
|
+
|
|
12791
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_button, {
|
|
12792
|
+
"data-qa": "dt-image-viewer-preview",
|
|
12793
|
+
"aria-label": $props.ariaLabel,
|
|
12794
|
+
importance: "clear",
|
|
12795
|
+
onClick: $options.open
|
|
12796
|
+
}, {
|
|
12797
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12798
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.imageButtonClass),
|
|
12799
|
+
src: $props.imageSrc,
|
|
12800
|
+
alt: $props.imageAlt
|
|
12801
|
+
}, null, 10, image_viewervue_type_template_id_2229fad0_hoisted_1)]),
|
|
12802
|
+
_: 1
|
|
12803
|
+
}, 8, ["aria-label", "onClick"]), $data.show ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Teleport, {
|
|
12804
|
+
key: 0,
|
|
12805
|
+
to: "body"
|
|
12806
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
12807
|
+
"aria-hidden": $options.isOpen,
|
|
12808
|
+
class: "d-modal",
|
|
12809
|
+
"data-qa": "dt-modal"
|
|
12810
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.modalListeners, true), {
|
|
12811
|
+
onMouseover: _cache[0] || (_cache[0] = $event => $data.showCloseButton = true),
|
|
12812
|
+
onMouseleave: _cache[1] || (_cache[1] = $event => $data.showCloseButton = false),
|
|
12813
|
+
onFocusin: _cache[2] || (_cache[2] = $event => $data.showCloseButton = true),
|
|
12814
|
+
onFocusout: _cache[3] || (_cache[3] = $event => $data.showCloseButton = false)
|
|
12815
|
+
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", image_viewervue_type_template_id_2229fad0_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12816
|
+
class: "d-wmx100p d-hmx100p",
|
|
12817
|
+
src: $props.imageSrc,
|
|
12818
|
+
alt: $props.imageAlt
|
|
12819
|
+
}, null, 8, image_viewervue_type_template_id_2229fad0_hoisted_4)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Transition, {
|
|
12820
|
+
name: "fade"
|
|
12821
|
+
}, {
|
|
12822
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [$data.showCloseButton ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, {
|
|
12823
|
+
key: 0,
|
|
12824
|
+
ref: "closeImage",
|
|
12825
|
+
"data-qa": "dt-image-viewer-close-btn",
|
|
12826
|
+
class: "d-modal__close",
|
|
12827
|
+
circle: "",
|
|
12828
|
+
size: "lg",
|
|
12829
|
+
importance: "clear",
|
|
12830
|
+
kind: "inverted",
|
|
12831
|
+
"aria-label": $props.closeAriaLabel,
|
|
12832
|
+
onClick: $options.close
|
|
12833
|
+
}, {
|
|
12834
|
+
icon: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_icon, {
|
|
12835
|
+
name: "close",
|
|
12836
|
+
size: "400"
|
|
12837
|
+
})]),
|
|
12838
|
+
_: 1
|
|
12839
|
+
}, 8, ["aria-label", "onClick"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
12840
|
+
_: 1
|
|
12841
|
+
})], 16, image_viewervue_type_template_id_2229fad0_hoisted_2)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
12842
|
+
}
|
|
12843
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=template&id=2229fad0
|
|
12844
|
+
|
|
12845
|
+
;// 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/image_viewer/image_viewer.vue?vue&type=script&lang=js
|
|
12846
|
+
|
|
12847
|
+
|
|
12848
|
+
|
|
12849
|
+
|
|
12850
|
+
/* harmony default export */ const image_viewervue_type_script_lang_js = ({
|
|
12851
|
+
name: 'DtImageViewer',
|
|
12852
|
+
components: {
|
|
12853
|
+
DtButton: button_button,
|
|
12854
|
+
DtIcon: icon
|
|
12855
|
+
},
|
|
12856
|
+
mixins: [modal],
|
|
12857
|
+
props: {
|
|
12858
|
+
/**
|
|
12859
|
+
* URL of the image to be shown
|
|
12860
|
+
*/
|
|
12861
|
+
imageSrc: {
|
|
12862
|
+
type: String,
|
|
12863
|
+
required: true
|
|
12864
|
+
},
|
|
12865
|
+
|
|
12866
|
+
/**
|
|
12867
|
+
* Alt text of image
|
|
12868
|
+
*/
|
|
12869
|
+
imageAlt: {
|
|
12870
|
+
type: String,
|
|
12871
|
+
required: true
|
|
12872
|
+
},
|
|
12873
|
+
|
|
12874
|
+
/**
|
|
12875
|
+
* Image Class
|
|
12876
|
+
*/
|
|
12877
|
+
imageButtonClass: {
|
|
12878
|
+
type: String,
|
|
12879
|
+
required: false,
|
|
12880
|
+
default: ''
|
|
12881
|
+
},
|
|
12882
|
+
|
|
12883
|
+
/**
|
|
12884
|
+
* Aria label
|
|
12885
|
+
*/
|
|
12886
|
+
ariaLabel: {
|
|
12887
|
+
type: String,
|
|
12888
|
+
required: true
|
|
12889
|
+
},
|
|
12890
|
+
|
|
12891
|
+
/**
|
|
12892
|
+
* Aria label for close button
|
|
12893
|
+
*/
|
|
12894
|
+
closeAriaLabel: {
|
|
12895
|
+
type: String,
|
|
12896
|
+
required: true
|
|
12897
|
+
}
|
|
12898
|
+
},
|
|
12899
|
+
|
|
12900
|
+
data() {
|
|
12901
|
+
return {
|
|
12902
|
+
show: false,
|
|
12903
|
+
showCloseButton: true
|
|
12904
|
+
};
|
|
12905
|
+
},
|
|
12906
|
+
|
|
12907
|
+
computed: {
|
|
12908
|
+
isOpen() {
|
|
12909
|
+
return `${!this.show}`;
|
|
12910
|
+
},
|
|
12911
|
+
|
|
12912
|
+
modalListeners() {
|
|
12913
|
+
return {
|
|
12914
|
+
click: event => {
|
|
12915
|
+
event.target === event.currentTarget && this.close();
|
|
12916
|
+
},
|
|
12917
|
+
keydown: event => {
|
|
12918
|
+
switch (event.code) {
|
|
12919
|
+
case EVENT_KEYNAMES.esc:
|
|
12920
|
+
case EVENT_KEYNAMES.escape:
|
|
12921
|
+
this.close();
|
|
12922
|
+
break;
|
|
12923
|
+
|
|
12924
|
+
case EVENT_KEYNAMES.tab:
|
|
12925
|
+
this.trapFocus(event);
|
|
12926
|
+
break;
|
|
12927
|
+
}
|
|
12928
|
+
}
|
|
12929
|
+
};
|
|
12930
|
+
}
|
|
12931
|
+
|
|
12932
|
+
},
|
|
12933
|
+
watch: {
|
|
12934
|
+
show: {
|
|
12935
|
+
immediate: true,
|
|
12936
|
+
|
|
12937
|
+
handler(isShowing) {
|
|
12938
|
+
if (isShowing) {
|
|
12939
|
+
// Set a reference to the previously-active element, to which we'll return focus on modal close.
|
|
12940
|
+
this.previousActiveElement = document.activeElement;
|
|
12941
|
+
} else {
|
|
12942
|
+
var _this$previousActiveE;
|
|
12943
|
+
|
|
12944
|
+
// Modal is being hidden, so return focus to the previously active element before clearing the reference.
|
|
12945
|
+
(_this$previousActiveE = this.previousActiveElement) === null || _this$previousActiveE === void 0 ? void 0 : _this$previousActiveE.focus();
|
|
12946
|
+
this.previousActiveElement = null;
|
|
12947
|
+
}
|
|
12948
|
+
}
|
|
12949
|
+
|
|
12950
|
+
}
|
|
12951
|
+
},
|
|
12952
|
+
methods: {
|
|
12953
|
+
open() {
|
|
12954
|
+
this.show = true;
|
|
12955
|
+
this.showCloseButton = true;
|
|
12956
|
+
setTimeout(() => {
|
|
12957
|
+
this.focusAfterOpen();
|
|
12958
|
+
});
|
|
12959
|
+
},
|
|
12960
|
+
|
|
12961
|
+
close() {
|
|
12962
|
+
this.show = false;
|
|
12963
|
+
},
|
|
12964
|
+
|
|
12965
|
+
focusAfterOpen() {
|
|
12966
|
+
var _this$$refs$closeImag;
|
|
12967
|
+
|
|
12968
|
+
(_this$$refs$closeImag = this.$refs.closeImage) === null || _this$$refs$closeImag === void 0 ? void 0 : _this$$refs$closeImag.$el.focus();
|
|
12969
|
+
},
|
|
12970
|
+
|
|
12971
|
+
trapFocus(e) {
|
|
12972
|
+
if (this.show) {
|
|
12973
|
+
this.focusTrappedTabPress(e);
|
|
12974
|
+
}
|
|
12975
|
+
}
|
|
12976
|
+
|
|
12977
|
+
}
|
|
12978
|
+
});
|
|
12979
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=script&lang=js
|
|
12980
|
+
|
|
12981
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue
|
|
12982
|
+
|
|
12983
|
+
|
|
12984
|
+
|
|
12985
|
+
|
|
12986
|
+
;
|
|
12987
|
+
const image_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(image_viewervue_type_script_lang_js, [['render',image_viewervue_type_template_id_2229fad0_render]])
|
|
12988
|
+
|
|
12989
|
+
/* harmony default export */ const image_viewer = (image_viewer_exports_);
|
|
12990
|
+
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
12991
|
+
|
|
12992
|
+
;// 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/input/input.vue?vue&type=template&id=c6af832c
|
|
12993
|
+
|
|
12994
|
+
const inputvue_type_template_id_c6af832c_hoisted_1 = {
|
|
12776
12995
|
ref: "container",
|
|
12777
12996
|
class: "base-input",
|
|
12778
12997
|
"data-qa": "dt-input"
|
|
12779
12998
|
};
|
|
12780
|
-
const
|
|
12781
|
-
const
|
|
12782
|
-
const
|
|
12999
|
+
const inputvue_type_template_id_c6af832c_hoisted_2 = ["aria-details"];
|
|
13000
|
+
const inputvue_type_template_id_c6af832c_hoisted_3 = ["id"];
|
|
13001
|
+
const inputvue_type_template_id_c6af832c_hoisted_4 = {
|
|
12783
13002
|
key: 0
|
|
12784
13003
|
};
|
|
12785
|
-
const
|
|
13004
|
+
const inputvue_type_template_id_c6af832c_hoisted_5 = {
|
|
12786
13005
|
key: 1,
|
|
12787
13006
|
"data-qa": "dt-input-length-description",
|
|
12788
13007
|
class: /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-mb2'])
|
|
12789
13008
|
};
|
|
12790
|
-
const
|
|
13009
|
+
const inputvue_type_template_id_c6af832c_hoisted_6 = ["read-only"];
|
|
12791
13010
|
const _hoisted_7 = ["value", "name", "disabled", "maxlength"];
|
|
12792
13011
|
const _hoisted_8 = ["value", "name", "type", "disabled", "maxlength"];
|
|
12793
|
-
function
|
|
13012
|
+
function inputvue_type_template_id_c6af832c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12794
13013
|
const _component_dt_validation_messages = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-validation-messages");
|
|
12795
13014
|
|
|
12796
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
13015
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", inputvue_type_template_id_c6af832c_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("label", {
|
|
12797
13016
|
class: "base-input__label",
|
|
12798
13017
|
"aria-details": _ctx.$slots.description || $props.description ? $options.descriptionKey : undefined,
|
|
12799
13018
|
"data-qa": "dt-input-label-wrapper"
|
|
@@ -12808,7 +13027,7 @@ function inputvue_type_template_id_2ab65018_render(_ctx, _cache, $props, $setup,
|
|
|
12808
13027
|
ref: "description",
|
|
12809
13028
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['base-input__description', 'd-description', 'd-fd-column', $data.descriptionSizeClasses[$props.size]]),
|
|
12810
13029
|
"data-qa": "dt-input-description"
|
|
12811
|
-
}, [$data.hasSlotContent(_ctx.$slots.description) || $props.description ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
13030
|
+
}, [$data.hasSlotContent(_ctx.$slots.description) || $props.description ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", inputvue_type_template_id_c6af832c_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "description", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.description), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $options.shouldValidateLength ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", inputvue_type_template_id_c6af832c_hoisted_5, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.validationProps.length.description), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 10, inputvue_type_template_id_c6af832c_hoisted_3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
12812
13031
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.inputWrapperClasses()),
|
|
12813
13032
|
"read-only": $props.disabled === true ? true : undefined
|
|
12814
13033
|
}, [$data.hasSlotContent(_ctx.$slots.leftIcon) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
@@ -12844,7 +13063,7 @@ function inputvue_type_template_id_2ab65018_render(_ctx, _cache, $props, $setup,
|
|
|
12844
13063
|
onFocusout: _cache[1] || (_cache[1] = function () {
|
|
12845
13064
|
return $options.onBlur && $options.onBlur(...arguments);
|
|
12846
13065
|
})
|
|
12847
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "rightIcon")], 34)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 10,
|
|
13066
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "rightIcon")], 34)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 10, inputvue_type_template_id_c6af832c_hoisted_6)], 8, inputvue_type_template_id_c6af832c_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_validation_messages, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
12848
13067
|
"validation-messages": $options.validationMessages,
|
|
12849
13068
|
"show-messages": _ctx.showMessages,
|
|
12850
13069
|
class: _ctx.messagesClass
|
|
@@ -12852,7 +13071,7 @@ function inputvue_type_template_id_2ab65018_render(_ctx, _cache, $props, $setup,
|
|
|
12852
13071
|
"data-qa": "dt-input-messages"
|
|
12853
13072
|
}), null, 16, ["validation-messages", "show-messages", "class"])], 512);
|
|
12854
13073
|
}
|
|
12855
|
-
;// CONCATENATED MODULE: ./components/input/input.vue?vue&type=template&id=
|
|
13074
|
+
;// CONCATENATED MODULE: ./components/input/input.vue?vue&type=template&id=c6af832c
|
|
12856
13075
|
|
|
12857
13076
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
12858
13077
|
// Valid input types, any other input types (for example: 'radio' or 'checkbox') should
|
|
@@ -12862,7 +13081,9 @@ const INPUT_TYPES = {
|
|
|
12862
13081
|
TEXTAREA: 'textarea',
|
|
12863
13082
|
PASSWORD: 'password',
|
|
12864
13083
|
EMAIL: 'email',
|
|
12865
|
-
NUMBER: 'number'
|
|
13084
|
+
NUMBER: 'number',
|
|
13085
|
+
DATE: 'date',
|
|
13086
|
+
TIME: 'time'
|
|
12866
13087
|
};
|
|
12867
13088
|
const INPUT_SIZES = {
|
|
12868
13089
|
EXTRA_SMALL: 'xs',
|
|
@@ -13412,9 +13633,9 @@ const MessagesMixin = {
|
|
|
13412
13633
|
},
|
|
13413
13634
|
|
|
13414
13635
|
/**
|
|
13415
|
-
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea
|
|
13636
|
+
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea`, 'date', 'time'.
|
|
13416
13637
|
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
13417
|
-
* @values text, password, email, number, textarea
|
|
13638
|
+
* @values text, password, email, number, textarea, date, time
|
|
13418
13639
|
*/
|
|
13419
13640
|
type: {
|
|
13420
13641
|
type: String,
|
|
@@ -13884,7 +14105,7 @@ const MessagesMixin = {
|
|
|
13884
14105
|
|
|
13885
14106
|
|
|
13886
14107
|
;
|
|
13887
|
-
const input_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(inputvue_type_script_lang_js, [['render',
|
|
14108
|
+
const input_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(inputvue_type_script_lang_js, [['render',inputvue_type_template_id_c6af832c_render]])
|
|
13888
14109
|
|
|
13889
14110
|
/* harmony default export */ const input_input = (input_exports_);
|
|
13890
14111
|
;// CONCATENATED MODULE: ./components/input/index.js
|
|
@@ -17611,15 +17832,15 @@ const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_t
|
|
|
17611
17832
|
/* harmony default export */ const toggle = (toggle_exports_);
|
|
17612
17833
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
17613
17834
|
|
|
17614
|
-
;// 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/tooltip/tooltip.vue?vue&type=template&id=
|
|
17835
|
+
;// 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/tooltip/tooltip.vue?vue&type=template&id=395e7132
|
|
17615
17836
|
|
|
17616
|
-
const
|
|
17837
|
+
const tooltipvue_type_template_id_395e7132_hoisted_1 = {
|
|
17617
17838
|
"data-qa": "dt-tooltip-container"
|
|
17618
17839
|
};
|
|
17619
|
-
function
|
|
17840
|
+
function tooltipvue_type_template_id_395e7132_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17620
17841
|
const _component_dt_lazy_show = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-lazy-show");
|
|
17621
17842
|
|
|
17622
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
17843
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", tooltipvue_type_template_id_395e7132_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("a", {
|
|
17623
17844
|
ref: "anchor",
|
|
17624
17845
|
tabindex: "-1",
|
|
17625
17846
|
role: "presentation",
|
|
@@ -17656,7 +17877,7 @@ function tooltipvue_type_template_id_1868931e_render(_ctx, _cache, $props, $setu
|
|
|
17656
17877
|
_: 3
|
|
17657
17878
|
}, 16, ["id", "show", "appear", "transition", "class"])]);
|
|
17658
17879
|
}
|
|
17659
|
-
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=
|
|
17880
|
+
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=395e7132
|
|
17660
17881
|
|
|
17661
17882
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
17662
17883
|
/*
|
|
@@ -17664,6 +17885,7 @@ function tooltipvue_type_template_id_1868931e_render(_ctx, _cache, $props, $setu
|
|
|
17664
17885
|
* */
|
|
17665
17886
|
|
|
17666
17887
|
const TOOLTIP_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
17888
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
17667
17889
|
const TOOLTIP_KIND_MODIFIERS = {
|
|
17668
17890
|
hover: `d-tooltip--hover`,
|
|
17669
17891
|
show: `d-tooltip--show`,
|
|
@@ -17810,10 +18032,20 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17810
18032
|
|
|
17811
18033
|
/**
|
|
17812
18034
|
* Whether to apply transition on initial render in the content lazy show component.
|
|
18035
|
+
* @values true, false
|
|
17813
18036
|
*/
|
|
17814
18037
|
contentAppear: {
|
|
17815
18038
|
type: Boolean,
|
|
17816
18039
|
default: false
|
|
18040
|
+
},
|
|
18041
|
+
|
|
18042
|
+
/**
|
|
18043
|
+
* Whether the tooltip will have a delay when being focused or moused over.
|
|
18044
|
+
* @values true, false
|
|
18045
|
+
*/
|
|
18046
|
+
delay: {
|
|
18047
|
+
type: Boolean,
|
|
18048
|
+
default: true
|
|
17817
18049
|
}
|
|
17818
18050
|
},
|
|
17819
18051
|
emits: [
|
|
@@ -17835,6 +18067,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17835
18067
|
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS,
|
|
17836
18068
|
hasSlotContent: hasSlotContent,
|
|
17837
18069
|
tip: null,
|
|
18070
|
+
inTimer: null,
|
|
17838
18071
|
// Internal state for whether the tooltip is shown. Changing the prop
|
|
17839
18072
|
// will update this.
|
|
17840
18073
|
isShown: false,
|
|
@@ -17941,6 +18174,16 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17941
18174
|
},
|
|
17942
18175
|
|
|
17943
18176
|
onEnterAnchor(e) {
|
|
18177
|
+
if (this.delay) {
|
|
18178
|
+
this.inTimer = setTimeout(function (event) {
|
|
18179
|
+
return this.triggerShow(event);
|
|
18180
|
+
}.bind(this, e), TOOLTIP_DELAY_MS);
|
|
18181
|
+
} else {
|
|
18182
|
+
return this.triggerShow(e);
|
|
18183
|
+
}
|
|
18184
|
+
},
|
|
18185
|
+
|
|
18186
|
+
triggerShow(e) {
|
|
17944
18187
|
if (e.type === 'focusin') {
|
|
17945
18188
|
// only show tooltips on visible focus when triggered via focus.
|
|
17946
18189
|
// when the user is using the mouse they only want tooltips to display
|
|
@@ -17958,6 +18201,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17958
18201
|
},
|
|
17959
18202
|
|
|
17960
18203
|
onLeaveAnchor() {
|
|
18204
|
+
clearTimeout(this.inTimer);
|
|
18205
|
+
return this.triggerHide();
|
|
18206
|
+
},
|
|
18207
|
+
|
|
18208
|
+
triggerHide() {
|
|
17961
18209
|
if (this.show === null) this.isShown = false;
|
|
17962
18210
|
},
|
|
17963
18211
|
|
|
@@ -18010,10 +18258,10 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
18010
18258
|
});
|
|
18011
18259
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=script&lang=js
|
|
18012
18260
|
|
|
18013
|
-
;// 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/tooltip/tooltip.vue?vue&type=style&index=0&id=
|
|
18261
|
+
;// 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/tooltip/tooltip.vue?vue&type=style&index=0&id=395e7132&lang=less
|
|
18014
18262
|
// extracted by mini-css-extract-plugin
|
|
18015
18263
|
|
|
18016
|
-
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=style&index=0&id=
|
|
18264
|
+
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=style&index=0&id=395e7132&lang=less
|
|
18017
18265
|
|
|
18018
18266
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue
|
|
18019
18267
|
|
|
@@ -18023,7 +18271,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
18023
18271
|
;
|
|
18024
18272
|
|
|
18025
18273
|
|
|
18026
|
-
const tooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tooltipvue_type_script_lang_js, [['render',
|
|
18274
|
+
const tooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tooltipvue_type_script_lang_js, [['render',tooltipvue_type_template_id_395e7132_render]])
|
|
18027
18275
|
|
|
18028
18276
|
/* harmony default export */ const tooltip = (tooltip_exports_);
|
|
18029
18277
|
;// CONCATENATED MODULE: ./components/tooltip/index.js
|
|
@@ -23790,6 +24038,7 @@ const contact_row_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(contac
|
|
|
23790
24038
|
|
|
23791
24039
|
|
|
23792
24040
|
|
|
24041
|
+
|
|
23793
24042
|
|
|
23794
24043
|
|
|
23795
24044
|
/// Recipes
|