@dialpad/dialtone-vue 2.73.0 → 2.74.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 +8 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +42 -13
- package/dist/dialtone-vue.umd.js +42 -13
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -2347,6 +2347,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2347
2347
|
"TAB_LIST_KIND_MODIFIERS": () => (/* reexport */ TAB_LIST_KIND_MODIFIERS),
|
|
2348
2348
|
"TAB_LIST_SIZES": () => (/* reexport */ TAB_LIST_SIZES),
|
|
2349
2349
|
"TOAST_ROLES": () => (/* reexport */ TOAST_ROLES),
|
|
2350
|
+
"TOOLTIP_DELAY_MS": () => (/* reexport */ TOOLTIP_DELAY_MS),
|
|
2350
2351
|
"TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
|
|
2351
2352
|
"TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
|
|
2352
2353
|
"TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
|
|
@@ -14904,8 +14905,8 @@ var image_viewer_component = normalizeComponent(
|
|
|
14904
14905
|
/* harmony default export */ const image_viewer = (image_viewer_component.exports);
|
|
14905
14906
|
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
14906
14907
|
|
|
14907
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=
|
|
14908
|
-
var
|
|
14908
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=62e06544&
|
|
14909
|
+
var inputvue_type_template_id_62e06544_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",function(){return [(_vm.labelVisible && _vm.label)?_c('div',{ref:"label",class:[
|
|
14909
14910
|
'base-input__label-text',
|
|
14910
14911
|
'd-label',
|
|
14911
14912
|
_vm.labelSizeClasses[_vm.size] ],attrs:{"data-qa":"dt-input-label"}},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e()]}),(_vm.$slots.description || _vm.description || _vm.shouldValidateLength)?_c('div',{ref:"description",class:[
|
|
@@ -14914,7 +14915,7 @@ var inputvue_type_template_id_2c334438_render = function () {var _vm=this;var _h
|
|
|
14914
14915
|
'd-fd-column',
|
|
14915
14916
|
_vm.descriptionSizeClasses[_vm.size] ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-input-description"}},[(_vm.$slots.description || _vm.description)?_c('div',[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),(_vm.shouldValidateLength)?_c('div',{class:[
|
|
14916
14917
|
'd-mb2' ],attrs:{"data-qa":"dt-input-length-description"}},[_vm._v(" "+_vm._s(_vm.validationProps.length.description)+" ")]):_vm._e()]):_vm._e(),_c('div',{class:_vm.inputWrapperClasses(),attrs:{"read-only":_vm.disabled}},[(_vm.$slots.leftIcon)?_c('span',{class:_vm.inputIconClasses('left'),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("leftIcon")],2):_vm._e(),(_vm.isTextarea)?_c('textarea',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'textarea',_vm.$attrs,false),_vm.inputListeners)):_c('input',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"type":_vm.type,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners)),(_vm.$slots.rightIcon)?_c('span',{class:_vm.inputIconClasses('right'),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("rightIcon")],2):_vm._e()])],2),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.validationMessages,"show-messages":_vm.showMessages,"data-qa":"dt-input-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
|
|
14917
|
-
var
|
|
14918
|
+
var inputvue_type_template_id_62e06544_staticRenderFns = []
|
|
14918
14919
|
|
|
14919
14920
|
|
|
14920
14921
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
@@ -14925,7 +14926,9 @@ const INPUT_TYPES = {
|
|
|
14925
14926
|
TEXTAREA: 'textarea',
|
|
14926
14927
|
PASSWORD: 'password',
|
|
14927
14928
|
EMAIL: 'email',
|
|
14928
|
-
NUMBER: 'number'
|
|
14929
|
+
NUMBER: 'number',
|
|
14930
|
+
DATE: 'date',
|
|
14931
|
+
TIME: 'time'
|
|
14929
14932
|
};
|
|
14930
14933
|
const INPUT_SIZES = {
|
|
14931
14934
|
EXTRA_SMALL: 'xs',
|
|
@@ -15606,9 +15609,9 @@ const MessagesMixin = {
|
|
|
15606
15609
|
},
|
|
15607
15610
|
|
|
15608
15611
|
/**
|
|
15609
|
-
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea
|
|
15612
|
+
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea`, 'date', 'time'.
|
|
15610
15613
|
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
15611
|
-
* @values text, password, email, number, textarea
|
|
15614
|
+
* @values text, password, email, number, textarea, date, time
|
|
15612
15615
|
*/
|
|
15613
15616
|
type: {
|
|
15614
15617
|
type: String,
|
|
@@ -16076,8 +16079,8 @@ const MessagesMixin = {
|
|
|
16076
16079
|
;
|
|
16077
16080
|
var input_component = normalizeComponent(
|
|
16078
16081
|
input_inputvue_type_script_lang_js_,
|
|
16079
|
-
|
|
16080
|
-
|
|
16082
|
+
inputvue_type_template_id_62e06544_render,
|
|
16083
|
+
inputvue_type_template_id_62e06544_staticRenderFns,
|
|
16081
16084
|
false,
|
|
16082
16085
|
null,
|
|
16083
16086
|
null,
|
|
@@ -20148,15 +20151,15 @@ var toggle_component = normalizeComponent(
|
|
|
20148
20151
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
20149
20152
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
20150
20153
|
|
|
20151
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=template&id=
|
|
20152
|
-
var
|
|
20154
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=template&id=39a603a8&
|
|
20155
|
+
var tooltipvue_type_template_id_39a603a8_render = function () {
|
|
20153
20156
|
var _obj;
|
|
20154
20157
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tooltip-container"}},[_c('a',{ref:"anchor",attrs:{"tabindex":"-1","role":"presentation","data-qa":"dt-tooltip-anchor"},on:{"focusin":_vm.onEnterAnchor,"focusout":_vm.onLeaveAnchor,"mouseenter":_vm.onEnterAnchor,"mouseleave":_vm.onLeaveAnchor,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.onLeaveAnchor.apply(null, arguments)}}},[_vm._t("anchor")],2),_c('dt-lazy-show',_vm._g({ref:"content",class:[
|
|
20155
20158
|
'd-tooltip',
|
|
20156
20159
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
20157
20160
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
20158
20161
|
_vm.contentClass ],attrs:{"id":_vm.id,"show":_vm.isShown && (!!_vm.message.trim() || !!_vm.$slots.default),"role":"tooltip","aria-hidden":"false","data-qa":"dt-tooltip","appear":"","transition":_vm.transition}},_vm.tooltipListeners),[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],1)}
|
|
20159
|
-
var
|
|
20162
|
+
var tooltipvue_type_template_id_39a603a8_staticRenderFns = []
|
|
20160
20163
|
|
|
20161
20164
|
|
|
20162
20165
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -20165,6 +20168,7 @@ var tooltipvue_type_template_id_6d30a218_staticRenderFns = []
|
|
|
20165
20168
|
* */
|
|
20166
20169
|
|
|
20167
20170
|
const TOOLTIP_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
20171
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
20168
20172
|
const TOOLTIP_KIND_MODIFIERS = {
|
|
20169
20173
|
hover: `d-tooltip--hover`,
|
|
20170
20174
|
show: `d-tooltip--show`,
|
|
@@ -20353,6 +20357,15 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20353
20357
|
transition: {
|
|
20354
20358
|
type: String,
|
|
20355
20359
|
default: 'fade'
|
|
20360
|
+
},
|
|
20361
|
+
|
|
20362
|
+
/**
|
|
20363
|
+
* Whether the tooltip will have a delay when being focused or moused over.
|
|
20364
|
+
* @values true, false
|
|
20365
|
+
*/
|
|
20366
|
+
delay: {
|
|
20367
|
+
type: Boolean,
|
|
20368
|
+
default: true
|
|
20356
20369
|
}
|
|
20357
20370
|
},
|
|
20358
20371
|
emits: [
|
|
@@ -20374,6 +20387,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20374
20387
|
return {
|
|
20375
20388
|
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS,
|
|
20376
20389
|
tip: null,
|
|
20390
|
+
inTimer: null,
|
|
20377
20391
|
// Internal state for whether the tooltip is shown. Changing the prop
|
|
20378
20392
|
// will update this.
|
|
20379
20393
|
isShown: false,
|
|
@@ -20480,6 +20494,16 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20480
20494
|
},
|
|
20481
20495
|
|
|
20482
20496
|
onEnterAnchor(e) {
|
|
20497
|
+
if (this.delay) {
|
|
20498
|
+
this.inTimer = setTimeout(function (event) {
|
|
20499
|
+
return this.triggerShow(event);
|
|
20500
|
+
}.bind(this, e), TOOLTIP_DELAY_MS);
|
|
20501
|
+
} else {
|
|
20502
|
+
return this.triggerShow(e);
|
|
20503
|
+
}
|
|
20504
|
+
},
|
|
20505
|
+
|
|
20506
|
+
triggerShow(e) {
|
|
20483
20507
|
if (e.type === 'focusin') {
|
|
20484
20508
|
// only show tooltips on visible focus when triggered via focus.
|
|
20485
20509
|
// when the user is using the mouse they only want tooltips to display
|
|
@@ -20497,6 +20521,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20497
20521
|
},
|
|
20498
20522
|
|
|
20499
20523
|
onLeaveAnchor() {
|
|
20524
|
+
clearTimeout(this.inTimer);
|
|
20525
|
+
return this.triggerHide();
|
|
20526
|
+
},
|
|
20527
|
+
|
|
20528
|
+
triggerHide() {
|
|
20500
20529
|
if (this.show === null) this.isShown = false;
|
|
20501
20530
|
},
|
|
20502
20531
|
|
|
@@ -20564,8 +20593,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(213);
|
|
|
20564
20593
|
|
|
20565
20594
|
var tooltip_component = normalizeComponent(
|
|
20566
20595
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20567
|
-
|
|
20568
|
-
|
|
20596
|
+
tooltipvue_type_template_id_39a603a8_render,
|
|
20597
|
+
tooltipvue_type_template_id_39a603a8_staticRenderFns,
|
|
20569
20598
|
false,
|
|
20570
20599
|
null,
|
|
20571
20600
|
null,
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -2357,6 +2357,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2357
2357
|
"TAB_LIST_KIND_MODIFIERS": () => (/* reexport */ TAB_LIST_KIND_MODIFIERS),
|
|
2358
2358
|
"TAB_LIST_SIZES": () => (/* reexport */ TAB_LIST_SIZES),
|
|
2359
2359
|
"TOAST_ROLES": () => (/* reexport */ TOAST_ROLES),
|
|
2360
|
+
"TOOLTIP_DELAY_MS": () => (/* reexport */ TOOLTIP_DELAY_MS),
|
|
2360
2361
|
"TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
|
|
2361
2362
|
"TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
|
|
2362
2363
|
"TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
|
|
@@ -14914,8 +14915,8 @@ var image_viewer_component = normalizeComponent(
|
|
|
14914
14915
|
/* harmony default export */ const image_viewer = (image_viewer_component.exports);
|
|
14915
14916
|
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
14916
14917
|
|
|
14917
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=
|
|
14918
|
-
var
|
|
14918
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=62e06544&
|
|
14919
|
+
var inputvue_type_template_id_62e06544_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",function(){return [(_vm.labelVisible && _vm.label)?_c('div',{ref:"label",class:[
|
|
14919
14920
|
'base-input__label-text',
|
|
14920
14921
|
'd-label',
|
|
14921
14922
|
_vm.labelSizeClasses[_vm.size] ],attrs:{"data-qa":"dt-input-label"}},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e()]}),(_vm.$slots.description || _vm.description || _vm.shouldValidateLength)?_c('div',{ref:"description",class:[
|
|
@@ -14924,7 +14925,7 @@ var inputvue_type_template_id_2c334438_render = function () {var _vm=this;var _h
|
|
|
14924
14925
|
'd-fd-column',
|
|
14925
14926
|
_vm.descriptionSizeClasses[_vm.size] ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-input-description"}},[(_vm.$slots.description || _vm.description)?_c('div',[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),(_vm.shouldValidateLength)?_c('div',{class:[
|
|
14926
14927
|
'd-mb2' ],attrs:{"data-qa":"dt-input-length-description"}},[_vm._v(" "+_vm._s(_vm.validationProps.length.description)+" ")]):_vm._e()]):_vm._e(),_c('div',{class:_vm.inputWrapperClasses(),attrs:{"read-only":_vm.disabled}},[(_vm.$slots.leftIcon)?_c('span',{class:_vm.inputIconClasses('left'),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("leftIcon")],2):_vm._e(),(_vm.isTextarea)?_c('textarea',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'textarea',_vm.$attrs,false),_vm.inputListeners)):_c('input',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"type":_vm.type,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners)),(_vm.$slots.rightIcon)?_c('span',{class:_vm.inputIconClasses('right'),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("rightIcon")],2):_vm._e()])],2),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.validationMessages,"show-messages":_vm.showMessages,"data-qa":"dt-input-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
|
|
14927
|
-
var
|
|
14928
|
+
var inputvue_type_template_id_62e06544_staticRenderFns = []
|
|
14928
14929
|
|
|
14929
14930
|
|
|
14930
14931
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
@@ -14935,7 +14936,9 @@ const INPUT_TYPES = {
|
|
|
14935
14936
|
TEXTAREA: 'textarea',
|
|
14936
14937
|
PASSWORD: 'password',
|
|
14937
14938
|
EMAIL: 'email',
|
|
14938
|
-
NUMBER: 'number'
|
|
14939
|
+
NUMBER: 'number',
|
|
14940
|
+
DATE: 'date',
|
|
14941
|
+
TIME: 'time'
|
|
14939
14942
|
};
|
|
14940
14943
|
const INPUT_SIZES = {
|
|
14941
14944
|
EXTRA_SMALL: 'xs',
|
|
@@ -15616,9 +15619,9 @@ const MessagesMixin = {
|
|
|
15616
15619
|
},
|
|
15617
15620
|
|
|
15618
15621
|
/**
|
|
15619
|
-
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea
|
|
15622
|
+
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea`, 'date', 'time'.
|
|
15620
15623
|
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
15621
|
-
* @values text, password, email, number, textarea
|
|
15624
|
+
* @values text, password, email, number, textarea, date, time
|
|
15622
15625
|
*/
|
|
15623
15626
|
type: {
|
|
15624
15627
|
type: String,
|
|
@@ -16086,8 +16089,8 @@ const MessagesMixin = {
|
|
|
16086
16089
|
;
|
|
16087
16090
|
var input_component = normalizeComponent(
|
|
16088
16091
|
input_inputvue_type_script_lang_js_,
|
|
16089
|
-
|
|
16090
|
-
|
|
16092
|
+
inputvue_type_template_id_62e06544_render,
|
|
16093
|
+
inputvue_type_template_id_62e06544_staticRenderFns,
|
|
16091
16094
|
false,
|
|
16092
16095
|
null,
|
|
16093
16096
|
null,
|
|
@@ -20158,15 +20161,15 @@ var toggle_component = normalizeComponent(
|
|
|
20158
20161
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
20159
20162
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
20160
20163
|
|
|
20161
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=template&id=
|
|
20162
|
-
var
|
|
20164
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=template&id=39a603a8&
|
|
20165
|
+
var tooltipvue_type_template_id_39a603a8_render = function () {
|
|
20163
20166
|
var _obj;
|
|
20164
20167
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tooltip-container"}},[_c('a',{ref:"anchor",attrs:{"tabindex":"-1","role":"presentation","data-qa":"dt-tooltip-anchor"},on:{"focusin":_vm.onEnterAnchor,"focusout":_vm.onLeaveAnchor,"mouseenter":_vm.onEnterAnchor,"mouseleave":_vm.onLeaveAnchor,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.onLeaveAnchor.apply(null, arguments)}}},[_vm._t("anchor")],2),_c('dt-lazy-show',_vm._g({ref:"content",class:[
|
|
20165
20168
|
'd-tooltip',
|
|
20166
20169
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
20167
20170
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
20168
20171
|
_vm.contentClass ],attrs:{"id":_vm.id,"show":_vm.isShown && (!!_vm.message.trim() || !!_vm.$slots.default),"role":"tooltip","aria-hidden":"false","data-qa":"dt-tooltip","appear":"","transition":_vm.transition}},_vm.tooltipListeners),[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],1)}
|
|
20169
|
-
var
|
|
20172
|
+
var tooltipvue_type_template_id_39a603a8_staticRenderFns = []
|
|
20170
20173
|
|
|
20171
20174
|
|
|
20172
20175
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -20175,6 +20178,7 @@ var tooltipvue_type_template_id_6d30a218_staticRenderFns = []
|
|
|
20175
20178
|
* */
|
|
20176
20179
|
|
|
20177
20180
|
const TOOLTIP_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
20181
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
20178
20182
|
const TOOLTIP_KIND_MODIFIERS = {
|
|
20179
20183
|
hover: `d-tooltip--hover`,
|
|
20180
20184
|
show: `d-tooltip--show`,
|
|
@@ -20363,6 +20367,15 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20363
20367
|
transition: {
|
|
20364
20368
|
type: String,
|
|
20365
20369
|
default: 'fade'
|
|
20370
|
+
},
|
|
20371
|
+
|
|
20372
|
+
/**
|
|
20373
|
+
* Whether the tooltip will have a delay when being focused or moused over.
|
|
20374
|
+
* @values true, false
|
|
20375
|
+
*/
|
|
20376
|
+
delay: {
|
|
20377
|
+
type: Boolean,
|
|
20378
|
+
default: true
|
|
20366
20379
|
}
|
|
20367
20380
|
},
|
|
20368
20381
|
emits: [
|
|
@@ -20384,6 +20397,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20384
20397
|
return {
|
|
20385
20398
|
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS,
|
|
20386
20399
|
tip: null,
|
|
20400
|
+
inTimer: null,
|
|
20387
20401
|
// Internal state for whether the tooltip is shown. Changing the prop
|
|
20388
20402
|
// will update this.
|
|
20389
20403
|
isShown: false,
|
|
@@ -20490,6 +20504,16 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20490
20504
|
},
|
|
20491
20505
|
|
|
20492
20506
|
onEnterAnchor(e) {
|
|
20507
|
+
if (this.delay) {
|
|
20508
|
+
this.inTimer = setTimeout(function (event) {
|
|
20509
|
+
return this.triggerShow(event);
|
|
20510
|
+
}.bind(this, e), TOOLTIP_DELAY_MS);
|
|
20511
|
+
} else {
|
|
20512
|
+
return this.triggerShow(e);
|
|
20513
|
+
}
|
|
20514
|
+
},
|
|
20515
|
+
|
|
20516
|
+
triggerShow(e) {
|
|
20493
20517
|
if (e.type === 'focusin') {
|
|
20494
20518
|
// only show tooltips on visible focus when triggered via focus.
|
|
20495
20519
|
// when the user is using the mouse they only want tooltips to display
|
|
@@ -20507,6 +20531,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20507
20531
|
},
|
|
20508
20532
|
|
|
20509
20533
|
onLeaveAnchor() {
|
|
20534
|
+
clearTimeout(this.inTimer);
|
|
20535
|
+
return this.triggerHide();
|
|
20536
|
+
},
|
|
20537
|
+
|
|
20538
|
+
triggerHide() {
|
|
20510
20539
|
if (this.show === null) this.isShown = false;
|
|
20511
20540
|
},
|
|
20512
20541
|
|
|
@@ -20574,8 +20603,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(228);
|
|
|
20574
20603
|
|
|
20575
20604
|
var tooltip_component = normalizeComponent(
|
|
20576
20605
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20577
|
-
|
|
20578
|
-
|
|
20606
|
+
tooltipvue_type_template_id_39a603a8_render,
|
|
20607
|
+
tooltipvue_type_template_id_39a603a8_staticRenderFns,
|
|
20579
20608
|
false,
|
|
20580
20609
|
null,
|
|
20581
20610
|
null,
|