@dialpad/dialtone-vue 2.72.4 → 2.72.6
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.
|
@@ -14614,8 +14614,8 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14614
14614
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14615
14615
|
|
|
14616
14616
|
|
|
14617
|
-
;// 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=
|
|
14618
|
-
var
|
|
14617
|
+
;// 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=2c334438&
|
|
14618
|
+
var inputvue_type_template_id_2c334438_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:[
|
|
14619
14619
|
'base-input__label-text',
|
|
14620
14620
|
'd-label',
|
|
14621
14621
|
_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:[
|
|
@@ -14624,7 +14624,7 @@ var inputvue_type_template_id_5be97b31_render = function () {var _vm=this;var _h
|
|
|
14624
14624
|
'd-fd-column',
|
|
14625
14625
|
_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:[
|
|
14626
14626
|
'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)}
|
|
14627
|
-
var
|
|
14627
|
+
var inputvue_type_template_id_2c334438_staticRenderFns = []
|
|
14628
14628
|
|
|
14629
14629
|
|
|
14630
14630
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
@@ -15421,6 +15421,14 @@ const MessagesMixin = {
|
|
|
15421
15421
|
default: null
|
|
15422
15422
|
},
|
|
15423
15423
|
|
|
15424
|
+
/**
|
|
15425
|
+
* Whether the input will continue to display a warning validation message even if the input has lost focus.
|
|
15426
|
+
*/
|
|
15427
|
+
retainWarning: {
|
|
15428
|
+
type: Boolean,
|
|
15429
|
+
default: false
|
|
15430
|
+
},
|
|
15431
|
+
|
|
15424
15432
|
/**
|
|
15425
15433
|
* Validation for the input. Supports maximum length validation with the structure:
|
|
15426
15434
|
* `{ "length": {"description": string, "max": number, "warn": number, "message": string,
|
|
@@ -15605,7 +15613,7 @@ const MessagesMixin = {
|
|
|
15605
15613
|
inputLengthState() {
|
|
15606
15614
|
if (this.inputLength < this.validationProps.length.warn) {
|
|
15607
15615
|
return null;
|
|
15608
|
-
} else if (this.inputLength
|
|
15616
|
+
} else if (this.inputLength <= this.validationProps.length.max) {
|
|
15609
15617
|
return this.validationProps.length.warn ? VALIDATION_MESSAGE_TYPES.WARNING : null;
|
|
15610
15618
|
} else {
|
|
15611
15619
|
return VALIDATION_MESSAGE_TYPES.ERROR;
|
|
@@ -15620,8 +15628,9 @@ const MessagesMixin = {
|
|
|
15620
15628
|
return this.shouldValidateLength && this.validationProps.length.limitMaxLength;
|
|
15621
15629
|
},
|
|
15622
15630
|
|
|
15631
|
+
// eslint-disable-next-line complexity
|
|
15623
15632
|
showLengthLimitValidation() {
|
|
15624
|
-
return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.isInputFocused || this.isInvalid);
|
|
15633
|
+
return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.retainWarning || this.isInputFocused || this.isInvalid);
|
|
15625
15634
|
},
|
|
15626
15635
|
|
|
15627
15636
|
sizeModifierClass() {
|
|
@@ -15777,8 +15786,8 @@ const MessagesMixin = {
|
|
|
15777
15786
|
;
|
|
15778
15787
|
var input_component = normalizeComponent(
|
|
15779
15788
|
input_inputvue_type_script_lang_js_,
|
|
15780
|
-
|
|
15781
|
-
|
|
15789
|
+
inputvue_type_template_id_2c334438_render,
|
|
15790
|
+
inputvue_type_template_id_2c334438_staticRenderFns,
|
|
15782
15791
|
false,
|
|
15783
15792
|
null,
|
|
15784
15793
|
null,
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -14624,8 +14624,8 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14624
14624
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14625
14625
|
|
|
14626
14626
|
|
|
14627
|
-
;// 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=
|
|
14628
|
-
var
|
|
14627
|
+
;// 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=2c334438&
|
|
14628
|
+
var inputvue_type_template_id_2c334438_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:[
|
|
14629
14629
|
'base-input__label-text',
|
|
14630
14630
|
'd-label',
|
|
14631
14631
|
_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:[
|
|
@@ -14634,7 +14634,7 @@ var inputvue_type_template_id_5be97b31_render = function () {var _vm=this;var _h
|
|
|
14634
14634
|
'd-fd-column',
|
|
14635
14635
|
_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:[
|
|
14636
14636
|
'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)}
|
|
14637
|
-
var
|
|
14637
|
+
var inputvue_type_template_id_2c334438_staticRenderFns = []
|
|
14638
14638
|
|
|
14639
14639
|
|
|
14640
14640
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
@@ -15431,6 +15431,14 @@ const MessagesMixin = {
|
|
|
15431
15431
|
default: null
|
|
15432
15432
|
},
|
|
15433
15433
|
|
|
15434
|
+
/**
|
|
15435
|
+
* Whether the input will continue to display a warning validation message even if the input has lost focus.
|
|
15436
|
+
*/
|
|
15437
|
+
retainWarning: {
|
|
15438
|
+
type: Boolean,
|
|
15439
|
+
default: false
|
|
15440
|
+
},
|
|
15441
|
+
|
|
15434
15442
|
/**
|
|
15435
15443
|
* Validation for the input. Supports maximum length validation with the structure:
|
|
15436
15444
|
* `{ "length": {"description": string, "max": number, "warn": number, "message": string,
|
|
@@ -15615,7 +15623,7 @@ const MessagesMixin = {
|
|
|
15615
15623
|
inputLengthState() {
|
|
15616
15624
|
if (this.inputLength < this.validationProps.length.warn) {
|
|
15617
15625
|
return null;
|
|
15618
|
-
} else if (this.inputLength
|
|
15626
|
+
} else if (this.inputLength <= this.validationProps.length.max) {
|
|
15619
15627
|
return this.validationProps.length.warn ? VALIDATION_MESSAGE_TYPES.WARNING : null;
|
|
15620
15628
|
} else {
|
|
15621
15629
|
return VALIDATION_MESSAGE_TYPES.ERROR;
|
|
@@ -15630,8 +15638,9 @@ const MessagesMixin = {
|
|
|
15630
15638
|
return this.shouldValidateLength && this.validationProps.length.limitMaxLength;
|
|
15631
15639
|
},
|
|
15632
15640
|
|
|
15641
|
+
// eslint-disable-next-line complexity
|
|
15633
15642
|
showLengthLimitValidation() {
|
|
15634
|
-
return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.isInputFocused || this.isInvalid);
|
|
15643
|
+
return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.retainWarning || this.isInputFocused || this.isInvalid);
|
|
15635
15644
|
},
|
|
15636
15645
|
|
|
15637
15646
|
sizeModifierClass() {
|
|
@@ -15787,8 +15796,8 @@ const MessagesMixin = {
|
|
|
15787
15796
|
;
|
|
15788
15797
|
var input_component = normalizeComponent(
|
|
15789
15798
|
input_inputvue_type_script_lang_js_,
|
|
15790
|
-
|
|
15791
|
-
|
|
15799
|
+
inputvue_type_template_id_2c334438_render,
|
|
15800
|
+
inputvue_type_template_id_2c334438_staticRenderFns,
|
|
15792
15801
|
false,
|
|
15793
15802
|
null,
|
|
15794
15803
|
null,
|