@dialpad/dialtone-vue 2.72.5 → 2.73.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.
@@ -2261,12 +2261,14 @@ __webpack_require__.d(__webpack_exports__, {
2261
2261
  "DtCheckbox": () => (/* reexport */ checkbox_checkbox),
2262
2262
  "DtCheckboxGroup": () => (/* reexport */ checkbox_group),
2263
2263
  "DtChip": () => (/* reexport */ chip),
2264
+ "DtCodeblock": () => (/* reexport */ codeblock),
2264
2265
  "DtCollapsible": () => (/* reexport */ collapsible),
2265
2266
  "DtCombobox": () => (/* reexport */ combobox),
2266
2267
  "DtDropdown": () => (/* reexport */ dropdown),
2267
2268
  "DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
2268
2269
  "DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
2269
2270
  "DtIcon": () => (/* reexport */ icon),
2271
+ "DtImageViewer": () => (/* reexport */ image_viewer),
2270
2272
  "DtInput": () => (/* reexport */ input_input),
2271
2273
  "DtInputGroup": () => (/* reexport */ input_group_input_group),
2272
2274
  "DtInputGroupMixin": () => (/* reexport */ InputGroupMixin),
@@ -5417,6 +5419,54 @@ var card_component = normalizeComponent(
5417
5419
  /* harmony default export */ const card = (card_component.exports);
5418
5420
  ;// CONCATENATED MODULE: ./components/card/index.js
5419
5421
 
5422
+ ;// 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/codeblock/codeblock.vue?vue&type=template&id=043e0ff6&
5423
+ var codeblockvue_type_template_id_043e0ff6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(" "),_c('code',{staticClass:"d-d-block d-bgc-secondary d-ws-pre-wrap d-p8 d-ba d-bc-subtle d-bar8 d-fs-200 d-ff-mono d-lh-400 d-fc-secondary"},[_vm._v(_vm._s(_vm.text))]),_vm._v("\n")])}
5424
+ var codeblockvue_type_template_id_043e0ff6_staticRenderFns = []
5425
+
5426
+
5427
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/codeblock/codeblock.vue?vue&type=script&lang=js&
5428
+ //
5429
+ //
5430
+ //
5431
+ //
5432
+ //
5433
+ //
5434
+ //
5435
+ //
5436
+ //
5437
+ /* harmony default export */ const codeblockvue_type_script_lang_js_ = ({
5438
+ name: 'DtCodeblock',
5439
+ props: {
5440
+ text: {
5441
+ type: String,
5442
+ required: true
5443
+ }
5444
+ }
5445
+ });
5446
+ ;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue?vue&type=script&lang=js&
5447
+ /* harmony default export */ const codeblock_codeblockvue_type_script_lang_js_ = (codeblockvue_type_script_lang_js_);
5448
+ ;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue
5449
+
5450
+
5451
+
5452
+
5453
+
5454
+ /* normalize component */
5455
+ ;
5456
+ var codeblock_component = normalizeComponent(
5457
+ codeblock_codeblockvue_type_script_lang_js_,
5458
+ codeblockvue_type_template_id_043e0ff6_render,
5459
+ codeblockvue_type_template_id_043e0ff6_staticRenderFns,
5460
+ false,
5461
+ null,
5462
+ null,
5463
+ null
5464
+
5465
+ )
5466
+
5467
+ /* harmony default export */ const codeblock = (codeblock_component.exports);
5468
+ ;// CONCATENATED MODULE: ./components/codeblock/index.js
5469
+
5420
5470
  ;// 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/combobox/combobox.vue?vue&type=template&id=5e29b120&
5421
5471
  var comboboxvue_type_template_id_5e29b120_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.loading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.emptyList && (_vm.emptyStateMessage || _vm.$slots.emptyListItem) && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage,"item-class":_vm.emptyStateClass}},'combobox-empty-list',_vm.listProps,false),[_vm._t("emptyListItem")],2):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex})],2):_vm._e()])}
5422
5472
  var comboboxvue_type_template_id_5e29b120_staticRenderFns = []
@@ -8291,13 +8341,13 @@ var collapsible_component = normalizeComponent(
8291
8341
  /* harmony default export */ const collapsible = (collapsible_component.exports);
8292
8342
  ;// CONCATENATED MODULE: ./components/collapsible/index.js
8293
8343
 
8294
- ;// 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/dropdown/dropdown.vue?vue&type=template&id=359f1c8b&
8295
- var dropdownvue_type_template_id_359f1c8b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-popover',_vm._g({ref:"popover",attrs:{"content-width":_vm.contentWidth,"open":_vm.open,"placement":_vm.placement,"initial-focus-element":_vm.openedWithKeyboard ? 'first' : 'dialog',"fallback-placements":_vm.fallbackPlacements,"padding":"none","role":"menu","append-to":_vm.appendTo,"modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":_vm.shouldOpenWithArrowKeys,"open-on-context":_vm.openOnContext},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
8344
+ ;// 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/dropdown/dropdown.vue?vue&type=template&id=b22f331a&
8345
+ var dropdownvue_type_template_id_b22f331a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-popover',_vm._g({ref:"popover",attrs:{"content-width":_vm.contentWidth,"open":_vm.open,"placement":_vm.placement,"initial-focus-element":_vm.openedWithKeyboard ? 'first' : 'dialog',"fallback-placements":_vm.fallbackPlacements,"padding":"none","role":"menu","append-to":_vm.appendTo,"modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":_vm.shouldOpenWithArrowKeys,"open-on-context":_vm.openOnContext,"tether":_vm.tether},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
8296
8346
  var attrs = ref.attrs;
8297
8347
  return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
8298
8348
  var close = ref.close;
8299
8349
  return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,attrs:{"id":_vm.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[_vm._t("list",null,{"close":close}),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"tabindex":_vm.isArrowKeyNav ? -1 : 0},on:{"close":close}}):_vm._e()],2)]}}],null,true)},_vm.dropdownListeners))}
8300
- var dropdownvue_type_template_id_359f1c8b_staticRenderFns = []
8350
+ var dropdownvue_type_template_id_b22f331a_staticRenderFns = []
8301
8351
 
8302
8352
 
8303
8353
  ;// 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/popover/popover.vue?vue&type=template&id=683dbc64&
@@ -14151,6 +14201,7 @@ const DROPDOWN_PADDING_CLASSES = {
14151
14201
  //
14152
14202
  //
14153
14203
  //
14204
+ //
14154
14205
 
14155
14206
 
14156
14207
 
@@ -14332,6 +14383,17 @@ const DROPDOWN_PADDING_CLASSES = {
14332
14383
  validator: appendTo => {
14333
14384
  return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
14334
14385
  }
14386
+ },
14387
+
14388
+ /**
14389
+ * If set to false the dialog will display over top of the anchor when there is insufficient space.
14390
+ * If set to true it will never move from its position relative to the anchor and will clip instead.
14391
+ * See <a href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether" target="_blank">Popper.js docs</a>
14392
+ * @values true, false
14393
+ */
14394
+ tether: {
14395
+ type: Boolean,
14396
+ default: true
14335
14397
  }
14336
14398
  },
14337
14399
  emits: [
@@ -14568,8 +14630,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(774);
14568
14630
 
14569
14631
  var dropdown_component = normalizeComponent(
14570
14632
  dropdown_dropdownvue_type_script_lang_js_,
14571
- dropdownvue_type_template_id_359f1c8b_render,
14572
- dropdownvue_type_template_id_359f1c8b_staticRenderFns,
14633
+ dropdownvue_type_template_id_b22f331a_render,
14634
+ dropdownvue_type_template_id_b22f331a_staticRenderFns,
14573
14635
  false,
14574
14636
  null,
14575
14637
  null,
@@ -14624,8 +14686,236 @@ var dropdown_separator_component = normalizeComponent(
14624
14686
  ;// CONCATENATED MODULE: ./components/dropdown/index.js
14625
14687
 
14626
14688
 
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=5be97b31&
14628
- var inputvue_type_template_id_5be97b31_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:[
14689
+ ;// 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/image_viewer/image_viewer.vue?vue&type=template&id=3214f60f&
14690
+ var image_viewervue_type_template_id_3214f60f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('dt-button',{attrs:{"data-qa":"dt-image-viewer-preview","aria-label":_vm.ariaLabel,"importance":"clear"},on:{"click":_vm.open}},[_c('img',{class:_vm.imageButtonClass,attrs:{"src":_vm.imageSrc,"alt":_vm.imageAlt}})]),(_vm.show)?_c('portal',[_c('div',_vm._g({staticClass:"d-modal",attrs:{"aria-hidden":_vm.isOpen,"data-qa":"dt-modal"},on:{"mouseover":function($event){_vm.showCloseButton = true},"mouseleave":function($event){_vm.showCloseButton = false},"focusin":function($event){_vm.showCloseButton = true},"focusout":function($event){_vm.showCloseButton = false}}},_vm.modalListeners),[_c('div',{staticClass:"d-p0 d-bar0 d-wmx80p d-hmx80p",attrs:{"data-qa":"dt-image-viewer-full","role":"dialog","aria-modal":"true"}},[_c('img',{staticClass:"d-wmx100p d-hmx100p",attrs:{"src":_vm.imageSrc,"alt":_vm.imageAlt}})]),_c('transition',{attrs:{"name":"fade"}},[(_vm.showCloseButton)?_c('dt-button',{ref:"closeImage",staticClass:"d-modal__close",attrs:{"data-qa":"dt-image-viewer-close-btn","circle":"","size":"lg","importance":"clear","kind":"inverted","aria-label":_vm.closeAriaLabel},on:{"click":_vm.close},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{attrs:{"name":"close","size":"400"}})]},proxy:true}],null,false,1709155279)}):_vm._e()],1)],1)]):_vm._e()],1)}
14691
+ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
14692
+
14693
+
14694
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/image_viewer/image_viewer.vue?vue&type=script&lang=js&
14695
+ //
14696
+ //
14697
+ //
14698
+ //
14699
+ //
14700
+ //
14701
+ //
14702
+ //
14703
+ //
14704
+ //
14705
+ //
14706
+ //
14707
+ //
14708
+ //
14709
+ //
14710
+ //
14711
+ //
14712
+ //
14713
+ //
14714
+ //
14715
+ //
14716
+ //
14717
+ //
14718
+ //
14719
+ //
14720
+ //
14721
+ //
14722
+ //
14723
+ //
14724
+ //
14725
+ //
14726
+ //
14727
+ //
14728
+ //
14729
+ //
14730
+ //
14731
+ //
14732
+ //
14733
+ //
14734
+ //
14735
+ //
14736
+ //
14737
+ //
14738
+ //
14739
+ //
14740
+ //
14741
+ //
14742
+ //
14743
+ //
14744
+ //
14745
+ //
14746
+ //
14747
+ //
14748
+ //
14749
+ //
14750
+ //
14751
+ //
14752
+ //
14753
+ //
14754
+ //
14755
+ //
14756
+ //
14757
+ //
14758
+
14759
+
14760
+
14761
+
14762
+
14763
+ /* harmony default export */ const image_viewervue_type_script_lang_js_ = ({
14764
+ name: 'DtImageViewer',
14765
+ components: {
14766
+ Portal: Portal,
14767
+ DtButton: button_button,
14768
+ DtIcon: icon
14769
+ },
14770
+ mixins: [modal],
14771
+ props: {
14772
+ /**
14773
+ * URL of the image to be shown
14774
+ */
14775
+ imageSrc: {
14776
+ type: String,
14777
+ required: true
14778
+ },
14779
+
14780
+ /**
14781
+ * Alt text of image
14782
+ */
14783
+ imageAlt: {
14784
+ type: String,
14785
+ required: true
14786
+ },
14787
+
14788
+ /**
14789
+ * Image Class
14790
+ */
14791
+ imageButtonClass: {
14792
+ type: String,
14793
+ required: false,
14794
+ default: ''
14795
+ },
14796
+
14797
+ /**
14798
+ * Aria label
14799
+ */
14800
+ ariaLabel: {
14801
+ type: String,
14802
+ required: true
14803
+ },
14804
+
14805
+ /**
14806
+ * Aria label for close button
14807
+ */
14808
+ closeAriaLabel: {
14809
+ type: String,
14810
+ required: true
14811
+ }
14812
+ },
14813
+
14814
+ data() {
14815
+ return {
14816
+ show: false,
14817
+ showCloseButton: true
14818
+ };
14819
+ },
14820
+
14821
+ computed: {
14822
+ isOpen() {
14823
+ return `${!this.show}`;
14824
+ },
14825
+
14826
+ modalListeners() {
14827
+ return { ...this.$listeners,
14828
+ click: event => {
14829
+ event.target === event.currentTarget && this.close();
14830
+ },
14831
+ keydown: event => {
14832
+ switch (event.code) {
14833
+ case EVENT_KEYNAMES.esc:
14834
+ case EVENT_KEYNAMES.escape:
14835
+ this.close();
14836
+ break;
14837
+
14838
+ case EVENT_KEYNAMES.tab:
14839
+ this.trapFocus(event);
14840
+ break;
14841
+ }
14842
+ }
14843
+ };
14844
+ }
14845
+
14846
+ },
14847
+ watch: {
14848
+ show: {
14849
+ immediate: true,
14850
+
14851
+ handler(isShowing) {
14852
+ if (isShowing) {
14853
+ // Set a reference to the previously-active element, to which we'll return focus on modal close.
14854
+ this.previousActiveElement = document.activeElement;
14855
+ } else {
14856
+ var _this$previousActiveE;
14857
+
14858
+ // Modal is being hidden, so return focus to the previously active element before clearing the reference.
14859
+ (_this$previousActiveE = this.previousActiveElement) === null || _this$previousActiveE === void 0 ? void 0 : _this$previousActiveE.focus();
14860
+ this.previousActiveElement = null;
14861
+ }
14862
+ }
14863
+
14864
+ }
14865
+ },
14866
+ methods: {
14867
+ open() {
14868
+ this.show = true;
14869
+ this.showCloseButton = true;
14870
+ setTimeout(() => {
14871
+ this.focusAfterOpen();
14872
+ });
14873
+ },
14874
+
14875
+ close() {
14876
+ this.show = false;
14877
+ },
14878
+
14879
+ focusAfterOpen() {
14880
+ var _this$$refs$closeImag;
14881
+
14882
+ (_this$$refs$closeImag = this.$refs.closeImage) === null || _this$$refs$closeImag === void 0 ? void 0 : _this$$refs$closeImag.$el.focus();
14883
+ },
14884
+
14885
+ trapFocus(e) {
14886
+ if (this.show) {
14887
+ this.focusTrappedTabPress(e);
14888
+ }
14889
+ }
14890
+
14891
+ }
14892
+ });
14893
+ ;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=script&lang=js&
14894
+ /* harmony default export */ const image_viewer_image_viewervue_type_script_lang_js_ = (image_viewervue_type_script_lang_js_);
14895
+ ;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue
14896
+
14897
+
14898
+
14899
+
14900
+
14901
+ /* normalize component */
14902
+ ;
14903
+ var image_viewer_component = normalizeComponent(
14904
+ image_viewer_image_viewervue_type_script_lang_js_,
14905
+ image_viewervue_type_template_id_3214f60f_render,
14906
+ image_viewervue_type_template_id_3214f60f_staticRenderFns,
14907
+ false,
14908
+ null,
14909
+ null,
14910
+ null
14911
+
14912
+ )
14913
+
14914
+ /* harmony default export */ const image_viewer = (image_viewer_component.exports);
14915
+ ;// CONCATENATED MODULE: ./components/image_viewer/index.js
14916
+
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=2c334438&
14918
+ 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
14919
  'base-input__label-text',
14630
14920
  'd-label',
14631
14921
  _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 +14924,7 @@ var inputvue_type_template_id_5be97b31_render = function () {var _vm=this;var _h
14634
14924
  'd-fd-column',
14635
14925
  _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
14926
  '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 inputvue_type_template_id_5be97b31_staticRenderFns = []
14927
+ var inputvue_type_template_id_2c334438_staticRenderFns = []
14638
14928
 
14639
14929
 
14640
14930
  ;// CONCATENATED MODULE: ./components/input/input_constants.js
@@ -15431,6 +15721,14 @@ const MessagesMixin = {
15431
15721
  default: null
15432
15722
  },
15433
15723
 
15724
+ /**
15725
+ * Whether the input will continue to display a warning validation message even if the input has lost focus.
15726
+ */
15727
+ retainWarning: {
15728
+ type: Boolean,
15729
+ default: false
15730
+ },
15731
+
15434
15732
  /**
15435
15733
  * Validation for the input. Supports maximum length validation with the structure:
15436
15734
  * `{ "length": {"description": string, "max": number, "warn": number, "message": string,
@@ -15615,7 +15913,7 @@ const MessagesMixin = {
15615
15913
  inputLengthState() {
15616
15914
  if (this.inputLength < this.validationProps.length.warn) {
15617
15915
  return null;
15618
- } else if (this.inputLength < this.validationProps.length.max) {
15916
+ } else if (this.inputLength <= this.validationProps.length.max) {
15619
15917
  return this.validationProps.length.warn ? VALIDATION_MESSAGE_TYPES.WARNING : null;
15620
15918
  } else {
15621
15919
  return VALIDATION_MESSAGE_TYPES.ERROR;
@@ -15630,8 +15928,9 @@ const MessagesMixin = {
15630
15928
  return this.shouldValidateLength && this.validationProps.length.limitMaxLength;
15631
15929
  },
15632
15930
 
15931
+ // eslint-disable-next-line complexity
15633
15932
  showLengthLimitValidation() {
15634
- return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.isInputFocused || this.isInvalid);
15933
+ return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.retainWarning || this.isInputFocused || this.isInvalid);
15635
15934
  },
15636
15935
 
15637
15936
  sizeModifierClass() {
@@ -15787,8 +16086,8 @@ const MessagesMixin = {
15787
16086
  ;
15788
16087
  var input_component = normalizeComponent(
15789
16088
  input_inputvue_type_script_lang_js_,
15790
- inputvue_type_template_id_5be97b31_render,
15791
- inputvue_type_template_id_5be97b31_staticRenderFns,
16089
+ inputvue_type_template_id_2c334438_render,
16090
+ inputvue_type_template_id_2c334438_staticRenderFns,
15792
16091
  false,
15793
16092
  null,
15794
16093
  null,
@@ -24554,9 +24853,9 @@ var general_row_component = normalizeComponent(
24554
24853
  ;// CONCATENATED MODULE: ./recipes/leftbar/general_row/index.js
24555
24854
 
24556
24855
 
24557
- ;// 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!./recipes/leftbar/group_row/group_row.vue?vue&type=template&id=3222d6a1&
24558
- var group_rowvue_type_template_id_3222d6a1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-general-row',_vm._g(_vm._b({attrs:{"description":_vm.names,"aria-label":(_vm.groupCountText + " " + _vm.names),"unread-count":_vm.unreadCount,"has-unreads":_vm.hasUnreads,"unread-count-tooltip":_vm.unreadCountTooltip,"selected":_vm.selected,"is-typing":_vm.isTyping},scopedSlots:_vm._u([{key:"left",fn:function(){return [_c('dt-avatar',{attrs:{"initials":_vm.avatarInitials,"seed":_vm.avatarSeed,"group":_vm.groupCount}},[(_vm.avatarSrc)?_c('img',{attrs:{"data-qa":"dt-avatar-image","src":_vm.avatarSrc,"alt":""}}):[_vm._v(" "+_vm._s(_vm.avatarInitials)+" ")]],2)]},proxy:true}])},'dt-recipe-general-row',_vm.$attrs,false),_vm.$listeners))}
24559
- var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
24856
+ ;// 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!./recipes/leftbar/group_row/group_row.vue?vue&type=template&id=d27bba34&
24857
+ var group_rowvue_type_template_id_d27bba34_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-general-row',_vm._g(_vm._b({attrs:{"description":_vm.names,"aria-label":(_vm.groupCountText + " " + _vm.names),"unread-count":_vm.unreadCount,"has-unreads":_vm.hasUnreads,"unread-count-tooltip":_vm.unreadCountTooltip,"selected":_vm.selected,"is-typing":_vm.isTyping},scopedSlots:_vm._u([{key:"left",fn:function(){return [_c('dt-icon',{attrs:{"name":"users","size":"300"}})]},proxy:true}])},'dt-recipe-general-row',_vm.$attrs,false),_vm.$listeners))}
24858
+ var group_rowvue_type_template_id_d27bba34_staticRenderFns = []
24560
24859
 
24561
24860
 
24562
24861
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/leftbar/group_row/group_row.vue?vue&type=script&lang=js&
@@ -24581,65 +24880,16 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
24581
24880
  //
24582
24881
  //
24583
24882
  //
24584
- //
24585
- //
24586
- //
24587
- //
24588
- //
24589
- //
24590
- //
24591
- //
24592
- //
24593
- //
24594
- //
24595
- //
24596
- //
24597
24883
 
24598
24884
 
24599
24885
  /* harmony default export */ const group_rowvue_type_script_lang_js_ = ({
24600
24886
  name: 'DtRecipeGroupRow',
24601
24887
  components: {
24602
- DtAvatar: avatar,
24888
+ DtIcon: icon,
24603
24889
  DtRecipeGeneralRow: general_row
24604
24890
  },
24605
24891
  inheritAttrs: false,
24606
24892
  props: {
24607
- /**
24608
- * Optional avatar image url.
24609
- * if provided, it's also required to provide a value in the `avatarInitials` prop to use
24610
- * in the alt attribute of the avatar.
24611
- */
24612
- avatarSrc: {
24613
- type: String,
24614
- default: ''
24615
- },
24616
-
24617
- /**
24618
- * Initials to display on the avatar if avatarSrc is not provided or
24619
- * alt attr if avatarSrc is provided.
24620
- */
24621
- avatarInitials: {
24622
- type: String,
24623
- default: '',
24624
- required: true
24625
- },
24626
-
24627
- /**
24628
- * Avatar seed, set this to the user's ID to get the same avatar background gradient each time it is displayed.
24629
- */
24630
- avatarSeed: {
24631
- type: String,
24632
- default: null
24633
- },
24634
-
24635
- /**
24636
- * Number displayed in avatar to count group members
24637
- */
24638
- groupCount: {
24639
- type: Number,
24640
- required: true
24641
- },
24642
-
24643
24893
  /**
24644
24894
  * Screen reader will read out the number of users in the group using this text. Ex: "2 users"
24645
24895
  */
@@ -24718,8 +24968,8 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
24718
24968
  ;
24719
24969
  var group_row_component = normalizeComponent(
24720
24970
  group_row_group_rowvue_type_script_lang_js_,
24721
- group_rowvue_type_template_id_3222d6a1_render,
24722
- group_rowvue_type_template_id_3222d6a1_staticRenderFns,
24971
+ group_rowvue_type_template_id_d27bba34_render,
24972
+ group_rowvue_type_template_id_d27bba34_staticRenderFns,
24723
24973
  false,
24724
24974
  null,
24725
24975
  null,
@@ -25049,6 +25299,8 @@ var contact_row_component = normalizeComponent(
25049
25299
 
25050
25300
 
25051
25301
 
25302
+
25303
+
25052
25304
 
25053
25305
 
25054
25306