@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
|
@@ -1171,6 +1171,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1171
1171
|
"DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
|
|
1172
1172
|
"DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
|
|
1173
1173
|
"DtIcon": () => (/* reexport */ icon),
|
|
1174
|
+
"DtImageViewer": () => (/* reexport */ image_viewer),
|
|
1174
1175
|
"DtInput": () => (/* reexport */ input_input),
|
|
1175
1176
|
"DtInputGroup": () => (/* reexport */ input_group_input_group),
|
|
1176
1177
|
"DtInputGroupMixin": () => (/* reexport */ InputGroupMixin),
|
|
@@ -1261,6 +1262,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1261
1262
|
"TAB_LIST_KIND_MODIFIERS": () => (/* reexport */ TAB_LIST_KIND_MODIFIERS),
|
|
1262
1263
|
"TAB_LIST_SIZES": () => (/* reexport */ TAB_LIST_SIZES),
|
|
1263
1264
|
"TOAST_ROLES": () => (/* reexport */ TOAST_ROLES),
|
|
1265
|
+
"TOOLTIP_DELAY_MS": () => (/* reexport */ TOOLTIP_DELAY_MS),
|
|
1264
1266
|
"TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
|
|
1265
1267
|
"TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
|
|
1266
1268
|
"TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
|
|
@@ -12760,30 +12762,247 @@ const dropdown_separator_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)
|
|
|
12760
12762
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
12761
12763
|
|
|
12762
12764
|
|
|
12763
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/
|
|
12765
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
12764
12766
|
|
|
12765
|
-
const
|
|
12767
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_1 = ["src", "alt"];
|
|
12768
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_2 = ["aria-hidden"];
|
|
12769
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_3 = {
|
|
12770
|
+
"data-qa": "dt-image-viewer-full",
|
|
12771
|
+
class: "d-p0 d-bar0 d-wmx80p d-hmx80p",
|
|
12772
|
+
role: "dialog",
|
|
12773
|
+
"aria-modal": "true"
|
|
12774
|
+
};
|
|
12775
|
+
const image_viewervue_type_template_id_2229fad0_hoisted_4 = ["src", "alt"];
|
|
12776
|
+
function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12777
|
+
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
12778
|
+
|
|
12779
|
+
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
12780
|
+
|
|
12781
|
+
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, {
|
|
12782
|
+
"data-qa": "dt-image-viewer-preview",
|
|
12783
|
+
"aria-label": $props.ariaLabel,
|
|
12784
|
+
importance: "clear",
|
|
12785
|
+
onClick: $options.open
|
|
12786
|
+
}, {
|
|
12787
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12788
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.imageButtonClass),
|
|
12789
|
+
src: $props.imageSrc,
|
|
12790
|
+
alt: $props.imageAlt
|
|
12791
|
+
}, null, 10, image_viewervue_type_template_id_2229fad0_hoisted_1)]),
|
|
12792
|
+
_: 1
|
|
12793
|
+
}, 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, {
|
|
12794
|
+
key: 0,
|
|
12795
|
+
to: "body"
|
|
12796
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
12797
|
+
"aria-hidden": $options.isOpen,
|
|
12798
|
+
class: "d-modal",
|
|
12799
|
+
"data-qa": "dt-modal"
|
|
12800
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.modalListeners, true), {
|
|
12801
|
+
onMouseover: _cache[0] || (_cache[0] = $event => $data.showCloseButton = true),
|
|
12802
|
+
onMouseleave: _cache[1] || (_cache[1] = $event => $data.showCloseButton = false),
|
|
12803
|
+
onFocusin: _cache[2] || (_cache[2] = $event => $data.showCloseButton = true),
|
|
12804
|
+
onFocusout: _cache[3] || (_cache[3] = $event => $data.showCloseButton = false)
|
|
12805
|
+
}), [(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", {
|
|
12806
|
+
class: "d-wmx100p d-hmx100p",
|
|
12807
|
+
src: $props.imageSrc,
|
|
12808
|
+
alt: $props.imageAlt
|
|
12809
|
+
}, 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, {
|
|
12810
|
+
name: "fade"
|
|
12811
|
+
}, {
|
|
12812
|
+
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, {
|
|
12813
|
+
key: 0,
|
|
12814
|
+
ref: "closeImage",
|
|
12815
|
+
"data-qa": "dt-image-viewer-close-btn",
|
|
12816
|
+
class: "d-modal__close",
|
|
12817
|
+
circle: "",
|
|
12818
|
+
size: "lg",
|
|
12819
|
+
importance: "clear",
|
|
12820
|
+
kind: "inverted",
|
|
12821
|
+
"aria-label": $props.closeAriaLabel,
|
|
12822
|
+
onClick: $options.close
|
|
12823
|
+
}, {
|
|
12824
|
+
icon: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_icon, {
|
|
12825
|
+
name: "close",
|
|
12826
|
+
size: "400"
|
|
12827
|
+
})]),
|
|
12828
|
+
_: 1
|
|
12829
|
+
}, 8, ["aria-label", "onClick"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
12830
|
+
_: 1
|
|
12831
|
+
})], 16, image_viewervue_type_template_id_2229fad0_hoisted_2)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
12832
|
+
}
|
|
12833
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=template&id=2229fad0
|
|
12834
|
+
|
|
12835
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=script&lang=js
|
|
12836
|
+
|
|
12837
|
+
|
|
12838
|
+
|
|
12839
|
+
|
|
12840
|
+
/* harmony default export */ const image_viewervue_type_script_lang_js = ({
|
|
12841
|
+
name: 'DtImageViewer',
|
|
12842
|
+
components: {
|
|
12843
|
+
DtButton: button_button,
|
|
12844
|
+
DtIcon: icon
|
|
12845
|
+
},
|
|
12846
|
+
mixins: [modal],
|
|
12847
|
+
props: {
|
|
12848
|
+
/**
|
|
12849
|
+
* URL of the image to be shown
|
|
12850
|
+
*/
|
|
12851
|
+
imageSrc: {
|
|
12852
|
+
type: String,
|
|
12853
|
+
required: true
|
|
12854
|
+
},
|
|
12855
|
+
|
|
12856
|
+
/**
|
|
12857
|
+
* Alt text of image
|
|
12858
|
+
*/
|
|
12859
|
+
imageAlt: {
|
|
12860
|
+
type: String,
|
|
12861
|
+
required: true
|
|
12862
|
+
},
|
|
12863
|
+
|
|
12864
|
+
/**
|
|
12865
|
+
* Image Class
|
|
12866
|
+
*/
|
|
12867
|
+
imageButtonClass: {
|
|
12868
|
+
type: String,
|
|
12869
|
+
required: false,
|
|
12870
|
+
default: ''
|
|
12871
|
+
},
|
|
12872
|
+
|
|
12873
|
+
/**
|
|
12874
|
+
* Aria label
|
|
12875
|
+
*/
|
|
12876
|
+
ariaLabel: {
|
|
12877
|
+
type: String,
|
|
12878
|
+
required: true
|
|
12879
|
+
},
|
|
12880
|
+
|
|
12881
|
+
/**
|
|
12882
|
+
* Aria label for close button
|
|
12883
|
+
*/
|
|
12884
|
+
closeAriaLabel: {
|
|
12885
|
+
type: String,
|
|
12886
|
+
required: true
|
|
12887
|
+
}
|
|
12888
|
+
},
|
|
12889
|
+
|
|
12890
|
+
data() {
|
|
12891
|
+
return {
|
|
12892
|
+
show: false,
|
|
12893
|
+
showCloseButton: true
|
|
12894
|
+
};
|
|
12895
|
+
},
|
|
12896
|
+
|
|
12897
|
+
computed: {
|
|
12898
|
+
isOpen() {
|
|
12899
|
+
return `${!this.show}`;
|
|
12900
|
+
},
|
|
12901
|
+
|
|
12902
|
+
modalListeners() {
|
|
12903
|
+
return {
|
|
12904
|
+
click: event => {
|
|
12905
|
+
event.target === event.currentTarget && this.close();
|
|
12906
|
+
},
|
|
12907
|
+
keydown: event => {
|
|
12908
|
+
switch (event.code) {
|
|
12909
|
+
case EVENT_KEYNAMES.esc:
|
|
12910
|
+
case EVENT_KEYNAMES.escape:
|
|
12911
|
+
this.close();
|
|
12912
|
+
break;
|
|
12913
|
+
|
|
12914
|
+
case EVENT_KEYNAMES.tab:
|
|
12915
|
+
this.trapFocus(event);
|
|
12916
|
+
break;
|
|
12917
|
+
}
|
|
12918
|
+
}
|
|
12919
|
+
};
|
|
12920
|
+
}
|
|
12921
|
+
|
|
12922
|
+
},
|
|
12923
|
+
watch: {
|
|
12924
|
+
show: {
|
|
12925
|
+
immediate: true,
|
|
12926
|
+
|
|
12927
|
+
handler(isShowing) {
|
|
12928
|
+
if (isShowing) {
|
|
12929
|
+
// Set a reference to the previously-active element, to which we'll return focus on modal close.
|
|
12930
|
+
this.previousActiveElement = document.activeElement;
|
|
12931
|
+
} else {
|
|
12932
|
+
var _this$previousActiveE;
|
|
12933
|
+
|
|
12934
|
+
// Modal is being hidden, so return focus to the previously active element before clearing the reference.
|
|
12935
|
+
(_this$previousActiveE = this.previousActiveElement) === null || _this$previousActiveE === void 0 ? void 0 : _this$previousActiveE.focus();
|
|
12936
|
+
this.previousActiveElement = null;
|
|
12937
|
+
}
|
|
12938
|
+
}
|
|
12939
|
+
|
|
12940
|
+
}
|
|
12941
|
+
},
|
|
12942
|
+
methods: {
|
|
12943
|
+
open() {
|
|
12944
|
+
this.show = true;
|
|
12945
|
+
this.showCloseButton = true;
|
|
12946
|
+
setTimeout(() => {
|
|
12947
|
+
this.focusAfterOpen();
|
|
12948
|
+
});
|
|
12949
|
+
},
|
|
12950
|
+
|
|
12951
|
+
close() {
|
|
12952
|
+
this.show = false;
|
|
12953
|
+
},
|
|
12954
|
+
|
|
12955
|
+
focusAfterOpen() {
|
|
12956
|
+
var _this$$refs$closeImag;
|
|
12957
|
+
|
|
12958
|
+
(_this$$refs$closeImag = this.$refs.closeImage) === null || _this$$refs$closeImag === void 0 ? void 0 : _this$$refs$closeImag.$el.focus();
|
|
12959
|
+
},
|
|
12960
|
+
|
|
12961
|
+
trapFocus(e) {
|
|
12962
|
+
if (this.show) {
|
|
12963
|
+
this.focusTrappedTabPress(e);
|
|
12964
|
+
}
|
|
12965
|
+
}
|
|
12966
|
+
|
|
12967
|
+
}
|
|
12968
|
+
});
|
|
12969
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=script&lang=js
|
|
12970
|
+
|
|
12971
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue
|
|
12972
|
+
|
|
12973
|
+
|
|
12974
|
+
|
|
12975
|
+
|
|
12976
|
+
;
|
|
12977
|
+
const image_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(image_viewervue_type_script_lang_js, [['render',image_viewervue_type_template_id_2229fad0_render]])
|
|
12978
|
+
|
|
12979
|
+
/* harmony default export */ const image_viewer = (image_viewer_exports_);
|
|
12980
|
+
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
12981
|
+
|
|
12982
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
12983
|
+
|
|
12984
|
+
const inputvue_type_template_id_c6af832c_hoisted_1 = {
|
|
12766
12985
|
ref: "container",
|
|
12767
12986
|
class: "base-input",
|
|
12768
12987
|
"data-qa": "dt-input"
|
|
12769
12988
|
};
|
|
12770
|
-
const
|
|
12771
|
-
const
|
|
12772
|
-
const
|
|
12989
|
+
const inputvue_type_template_id_c6af832c_hoisted_2 = ["aria-details"];
|
|
12990
|
+
const inputvue_type_template_id_c6af832c_hoisted_3 = ["id"];
|
|
12991
|
+
const inputvue_type_template_id_c6af832c_hoisted_4 = {
|
|
12773
12992
|
key: 0
|
|
12774
12993
|
};
|
|
12775
|
-
const
|
|
12994
|
+
const inputvue_type_template_id_c6af832c_hoisted_5 = {
|
|
12776
12995
|
key: 1,
|
|
12777
12996
|
"data-qa": "dt-input-length-description",
|
|
12778
12997
|
class: /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-mb2'])
|
|
12779
12998
|
};
|
|
12780
|
-
const
|
|
12999
|
+
const inputvue_type_template_id_c6af832c_hoisted_6 = ["read-only"];
|
|
12781
13000
|
const _hoisted_7 = ["value", "name", "disabled", "maxlength"];
|
|
12782
13001
|
const _hoisted_8 = ["value", "name", "type", "disabled", "maxlength"];
|
|
12783
|
-
function
|
|
13002
|
+
function inputvue_type_template_id_c6af832c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12784
13003
|
const _component_dt_validation_messages = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-validation-messages");
|
|
12785
13004
|
|
|
12786
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
13005
|
+
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", {
|
|
12787
13006
|
class: "base-input__label",
|
|
12788
13007
|
"aria-details": _ctx.$slots.description || $props.description ? $options.descriptionKey : undefined,
|
|
12789
13008
|
"data-qa": "dt-input-label-wrapper"
|
|
@@ -12798,7 +13017,7 @@ function inputvue_type_template_id_2ab65018_render(_ctx, _cache, $props, $setup,
|
|
|
12798
13017
|
ref: "description",
|
|
12799
13018
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['base-input__description', 'd-description', 'd-fd-column', $data.descriptionSizeClasses[$props.size]]),
|
|
12800
13019
|
"data-qa": "dt-input-description"
|
|
12801
|
-
}, [$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",
|
|
13020
|
+
}, [$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", {
|
|
12802
13021
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.inputWrapperClasses()),
|
|
12803
13022
|
"read-only": $props.disabled === true ? true : undefined
|
|
12804
13023
|
}, [$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", {
|
|
@@ -12834,7 +13053,7 @@ function inputvue_type_template_id_2ab65018_render(_ctx, _cache, $props, $setup,
|
|
|
12834
13053
|
onFocusout: _cache[1] || (_cache[1] = function () {
|
|
12835
13054
|
return $options.onBlur && $options.onBlur(...arguments);
|
|
12836
13055
|
})
|
|
12837
|
-
}, [(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,
|
|
13056
|
+
}, [(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)({
|
|
12838
13057
|
"validation-messages": $options.validationMessages,
|
|
12839
13058
|
"show-messages": _ctx.showMessages,
|
|
12840
13059
|
class: _ctx.messagesClass
|
|
@@ -12842,7 +13061,7 @@ function inputvue_type_template_id_2ab65018_render(_ctx, _cache, $props, $setup,
|
|
|
12842
13061
|
"data-qa": "dt-input-messages"
|
|
12843
13062
|
}), null, 16, ["validation-messages", "show-messages", "class"])], 512);
|
|
12844
13063
|
}
|
|
12845
|
-
;// CONCATENATED MODULE: ./components/input/input.vue?vue&type=template&id=
|
|
13064
|
+
;// CONCATENATED MODULE: ./components/input/input.vue?vue&type=template&id=c6af832c
|
|
12846
13065
|
|
|
12847
13066
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
12848
13067
|
// Valid input types, any other input types (for example: 'radio' or 'checkbox') should
|
|
@@ -12852,7 +13071,9 @@ const INPUT_TYPES = {
|
|
|
12852
13071
|
TEXTAREA: 'textarea',
|
|
12853
13072
|
PASSWORD: 'password',
|
|
12854
13073
|
EMAIL: 'email',
|
|
12855
|
-
NUMBER: 'number'
|
|
13074
|
+
NUMBER: 'number',
|
|
13075
|
+
DATE: 'date',
|
|
13076
|
+
TIME: 'time'
|
|
12856
13077
|
};
|
|
12857
13078
|
const INPUT_SIZES = {
|
|
12858
13079
|
EXTRA_SMALL: 'xs',
|
|
@@ -13402,9 +13623,9 @@ const MessagesMixin = {
|
|
|
13402
13623
|
},
|
|
13403
13624
|
|
|
13404
13625
|
/**
|
|
13405
|
-
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea
|
|
13626
|
+
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea`, 'date', 'time'.
|
|
13406
13627
|
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
13407
|
-
* @values text, password, email, number, textarea
|
|
13628
|
+
* @values text, password, email, number, textarea, date, time
|
|
13408
13629
|
*/
|
|
13409
13630
|
type: {
|
|
13410
13631
|
type: String,
|
|
@@ -13874,7 +14095,7 @@ const MessagesMixin = {
|
|
|
13874
14095
|
|
|
13875
14096
|
|
|
13876
14097
|
;
|
|
13877
|
-
const input_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(inputvue_type_script_lang_js, [['render',
|
|
14098
|
+
const input_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(inputvue_type_script_lang_js, [['render',inputvue_type_template_id_c6af832c_render]])
|
|
13878
14099
|
|
|
13879
14100
|
/* harmony default export */ const input_input = (input_exports_);
|
|
13880
14101
|
;// CONCATENATED MODULE: ./components/input/index.js
|
|
@@ -17601,15 +17822,15 @@ const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_t
|
|
|
17601
17822
|
/* harmony default export */ const toggle = (toggle_exports_);
|
|
17602
17823
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
17603
17824
|
|
|
17604
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=
|
|
17825
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
17605
17826
|
|
|
17606
|
-
const
|
|
17827
|
+
const tooltipvue_type_template_id_395e7132_hoisted_1 = {
|
|
17607
17828
|
"data-qa": "dt-tooltip-container"
|
|
17608
17829
|
};
|
|
17609
|
-
function
|
|
17830
|
+
function tooltipvue_type_template_id_395e7132_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17610
17831
|
const _component_dt_lazy_show = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-lazy-show");
|
|
17611
17832
|
|
|
17612
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
17833
|
+
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", {
|
|
17613
17834
|
ref: "anchor",
|
|
17614
17835
|
tabindex: "-1",
|
|
17615
17836
|
role: "presentation",
|
|
@@ -17646,7 +17867,7 @@ function tooltipvue_type_template_id_1868931e_render(_ctx, _cache, $props, $setu
|
|
|
17646
17867
|
_: 3
|
|
17647
17868
|
}, 16, ["id", "show", "appear", "transition", "class"])]);
|
|
17648
17869
|
}
|
|
17649
|
-
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=
|
|
17870
|
+
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=template&id=395e7132
|
|
17650
17871
|
|
|
17651
17872
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
17652
17873
|
/*
|
|
@@ -17654,6 +17875,7 @@ function tooltipvue_type_template_id_1868931e_render(_ctx, _cache, $props, $setu
|
|
|
17654
17875
|
* */
|
|
17655
17876
|
|
|
17656
17877
|
const TOOLTIP_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
17878
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
17657
17879
|
const TOOLTIP_KIND_MODIFIERS = {
|
|
17658
17880
|
hover: `d-tooltip--hover`,
|
|
17659
17881
|
show: `d-tooltip--show`,
|
|
@@ -17800,10 +18022,20 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17800
18022
|
|
|
17801
18023
|
/**
|
|
17802
18024
|
* Whether to apply transition on initial render in the content lazy show component.
|
|
18025
|
+
* @values true, false
|
|
17803
18026
|
*/
|
|
17804
18027
|
contentAppear: {
|
|
17805
18028
|
type: Boolean,
|
|
17806
18029
|
default: false
|
|
18030
|
+
},
|
|
18031
|
+
|
|
18032
|
+
/**
|
|
18033
|
+
* Whether the tooltip will have a delay when being focused or moused over.
|
|
18034
|
+
* @values true, false
|
|
18035
|
+
*/
|
|
18036
|
+
delay: {
|
|
18037
|
+
type: Boolean,
|
|
18038
|
+
default: true
|
|
17807
18039
|
}
|
|
17808
18040
|
},
|
|
17809
18041
|
emits: [
|
|
@@ -17825,6 +18057,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17825
18057
|
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS,
|
|
17826
18058
|
hasSlotContent: hasSlotContent,
|
|
17827
18059
|
tip: null,
|
|
18060
|
+
inTimer: null,
|
|
17828
18061
|
// Internal state for whether the tooltip is shown. Changing the prop
|
|
17829
18062
|
// will update this.
|
|
17830
18063
|
isShown: false,
|
|
@@ -17931,6 +18164,16 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17931
18164
|
},
|
|
17932
18165
|
|
|
17933
18166
|
onEnterAnchor(e) {
|
|
18167
|
+
if (this.delay) {
|
|
18168
|
+
this.inTimer = setTimeout(function (event) {
|
|
18169
|
+
return this.triggerShow(event);
|
|
18170
|
+
}.bind(this, e), TOOLTIP_DELAY_MS);
|
|
18171
|
+
} else {
|
|
18172
|
+
return this.triggerShow(e);
|
|
18173
|
+
}
|
|
18174
|
+
},
|
|
18175
|
+
|
|
18176
|
+
triggerShow(e) {
|
|
17934
18177
|
if (e.type === 'focusin') {
|
|
17935
18178
|
// only show tooltips on visible focus when triggered via focus.
|
|
17936
18179
|
// when the user is using the mouse they only want tooltips to display
|
|
@@ -17948,6 +18191,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
17948
18191
|
},
|
|
17949
18192
|
|
|
17950
18193
|
onLeaveAnchor() {
|
|
18194
|
+
clearTimeout(this.inTimer);
|
|
18195
|
+
return this.triggerHide();
|
|
18196
|
+
},
|
|
18197
|
+
|
|
18198
|
+
triggerHide() {
|
|
17951
18199
|
if (this.show === null) this.isShown = false;
|
|
17952
18200
|
},
|
|
17953
18201
|
|
|
@@ -18000,10 +18248,10 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
18000
18248
|
});
|
|
18001
18249
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=script&lang=js
|
|
18002
18250
|
|
|
18003
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/tooltip/tooltip.vue?vue&type=style&index=0&id=
|
|
18251
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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
|
|
18004
18252
|
// extracted by mini-css-extract-plugin
|
|
18005
18253
|
|
|
18006
|
-
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=style&index=0&id=
|
|
18254
|
+
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue?vue&type=style&index=0&id=395e7132&lang=less
|
|
18007
18255
|
|
|
18008
18256
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip.vue
|
|
18009
18257
|
|
|
@@ -18013,7 +18261,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
18013
18261
|
;
|
|
18014
18262
|
|
|
18015
18263
|
|
|
18016
|
-
const tooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tooltipvue_type_script_lang_js, [['render',
|
|
18264
|
+
const tooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tooltipvue_type_script_lang_js, [['render',tooltipvue_type_template_id_395e7132_render]])
|
|
18017
18265
|
|
|
18018
18266
|
/* harmony default export */ const tooltip = (tooltip_exports_);
|
|
18019
18267
|
;// CONCATENATED MODULE: ./components/tooltip/index.js
|
|
@@ -23780,6 +24028,7 @@ const contact_row_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(contac
|
|
|
23780
24028
|
|
|
23781
24029
|
|
|
23782
24030
|
|
|
24031
|
+
|
|
23783
24032
|
|
|
23784
24033
|
|
|
23785
24034
|
/// Recipes
|