@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.
@@ -2251,12 +2251,14 @@ __webpack_require__.d(__webpack_exports__, {
2251
2251
  "DtCheckbox": () => (/* reexport */ checkbox_checkbox),
2252
2252
  "DtCheckboxGroup": () => (/* reexport */ checkbox_group),
2253
2253
  "DtChip": () => (/* reexport */ chip),
2254
+ "DtCodeblock": () => (/* reexport */ codeblock),
2254
2255
  "DtCollapsible": () => (/* reexport */ collapsible),
2255
2256
  "DtCombobox": () => (/* reexport */ combobox),
2256
2257
  "DtDropdown": () => (/* reexport */ dropdown),
2257
2258
  "DtDropdownSeparator": () => (/* reexport */ dropdown_separator),
2258
2259
  "DtGroupableInputMixin": () => (/* reexport */ GroupableMixin),
2259
2260
  "DtIcon": () => (/* reexport */ icon),
2261
+ "DtImageViewer": () => (/* reexport */ image_viewer),
2260
2262
  "DtInput": () => (/* reexport */ input_input),
2261
2263
  "DtInputGroup": () => (/* reexport */ input_group_input_group),
2262
2264
  "DtInputGroupMixin": () => (/* reexport */ InputGroupMixin),
@@ -5407,6 +5409,54 @@ var card_component = normalizeComponent(
5407
5409
  /* harmony default export */ const card = (card_component.exports);
5408
5410
  ;// CONCATENATED MODULE: ./components/card/index.js
5409
5411
 
5412
+ ;// 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&
5413
+ 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")])}
5414
+ var codeblockvue_type_template_id_043e0ff6_staticRenderFns = []
5415
+
5416
+
5417
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[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&
5418
+ //
5419
+ //
5420
+ //
5421
+ //
5422
+ //
5423
+ //
5424
+ //
5425
+ //
5426
+ //
5427
+ /* harmony default export */ const codeblockvue_type_script_lang_js_ = ({
5428
+ name: 'DtCodeblock',
5429
+ props: {
5430
+ text: {
5431
+ type: String,
5432
+ required: true
5433
+ }
5434
+ }
5435
+ });
5436
+ ;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue?vue&type=script&lang=js&
5437
+ /* harmony default export */ const codeblock_codeblockvue_type_script_lang_js_ = (codeblockvue_type_script_lang_js_);
5438
+ ;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue
5439
+
5440
+
5441
+
5442
+
5443
+
5444
+ /* normalize component */
5445
+ ;
5446
+ var codeblock_component = normalizeComponent(
5447
+ codeblock_codeblockvue_type_script_lang_js_,
5448
+ codeblockvue_type_template_id_043e0ff6_render,
5449
+ codeblockvue_type_template_id_043e0ff6_staticRenderFns,
5450
+ false,
5451
+ null,
5452
+ null,
5453
+ null
5454
+
5455
+ )
5456
+
5457
+ /* harmony default export */ const codeblock = (codeblock_component.exports);
5458
+ ;// CONCATENATED MODULE: ./components/codeblock/index.js
5459
+
5410
5460
  ;// 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&
5411
5461
  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()])}
5412
5462
  var comboboxvue_type_template_id_5e29b120_staticRenderFns = []
@@ -8281,13 +8331,13 @@ var collapsible_component = normalizeComponent(
8281
8331
  /* harmony default export */ const collapsible = (collapsible_component.exports);
8282
8332
  ;// CONCATENATED MODULE: ./components/collapsible/index.js
8283
8333
 
8284
- ;// 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&
8285
- 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){
8334
+ ;// 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&
8335
+ 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){
8286
8336
  var attrs = ref.attrs;
8287
8337
  return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
8288
8338
  var close = ref.close;
8289
8339
  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))}
8290
- var dropdownvue_type_template_id_359f1c8b_staticRenderFns = []
8340
+ var dropdownvue_type_template_id_b22f331a_staticRenderFns = []
8291
8341
 
8292
8342
 
8293
8343
  ;// 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&
@@ -14141,6 +14191,7 @@ const DROPDOWN_PADDING_CLASSES = {
14141
14191
  //
14142
14192
  //
14143
14193
  //
14194
+ //
14144
14195
 
14145
14196
 
14146
14197
 
@@ -14322,6 +14373,17 @@ const DROPDOWN_PADDING_CLASSES = {
14322
14373
  validator: appendTo => {
14323
14374
  return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
14324
14375
  }
14376
+ },
14377
+
14378
+ /**
14379
+ * If set to false the dialog will display over top of the anchor when there is insufficient space.
14380
+ * If set to true it will never move from its position relative to the anchor and will clip instead.
14381
+ * See <a href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether" target="_blank">Popper.js docs</a>
14382
+ * @values true, false
14383
+ */
14384
+ tether: {
14385
+ type: Boolean,
14386
+ default: true
14325
14387
  }
14326
14388
  },
14327
14389
  emits: [
@@ -14558,8 +14620,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(782);
14558
14620
 
14559
14621
  var dropdown_component = normalizeComponent(
14560
14622
  dropdown_dropdownvue_type_script_lang_js_,
14561
- dropdownvue_type_template_id_359f1c8b_render,
14562
- dropdownvue_type_template_id_359f1c8b_staticRenderFns,
14623
+ dropdownvue_type_template_id_b22f331a_render,
14624
+ dropdownvue_type_template_id_b22f331a_staticRenderFns,
14563
14625
  false,
14564
14626
  null,
14565
14627
  null,
@@ -14614,8 +14676,236 @@ var dropdown_separator_component = normalizeComponent(
14614
14676
  ;// CONCATENATED MODULE: ./components/dropdown/index.js
14615
14677
 
14616
14678
 
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=5be97b31&
14618
- 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:[
14679
+ ;// 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&
14680
+ 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)}
14681
+ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
14682
+
14683
+
14684
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[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&
14685
+ //
14686
+ //
14687
+ //
14688
+ //
14689
+ //
14690
+ //
14691
+ //
14692
+ //
14693
+ //
14694
+ //
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
+ /* harmony default export */ const image_viewervue_type_script_lang_js_ = ({
14754
+ name: 'DtImageViewer',
14755
+ components: {
14756
+ Portal: Portal,
14757
+ DtButton: button_button,
14758
+ DtIcon: icon
14759
+ },
14760
+ mixins: [modal],
14761
+ props: {
14762
+ /**
14763
+ * URL of the image to be shown
14764
+ */
14765
+ imageSrc: {
14766
+ type: String,
14767
+ required: true
14768
+ },
14769
+
14770
+ /**
14771
+ * Alt text of image
14772
+ */
14773
+ imageAlt: {
14774
+ type: String,
14775
+ required: true
14776
+ },
14777
+
14778
+ /**
14779
+ * Image Class
14780
+ */
14781
+ imageButtonClass: {
14782
+ type: String,
14783
+ required: false,
14784
+ default: ''
14785
+ },
14786
+
14787
+ /**
14788
+ * Aria label
14789
+ */
14790
+ ariaLabel: {
14791
+ type: String,
14792
+ required: true
14793
+ },
14794
+
14795
+ /**
14796
+ * Aria label for close button
14797
+ */
14798
+ closeAriaLabel: {
14799
+ type: String,
14800
+ required: true
14801
+ }
14802
+ },
14803
+
14804
+ data() {
14805
+ return {
14806
+ show: false,
14807
+ showCloseButton: true
14808
+ };
14809
+ },
14810
+
14811
+ computed: {
14812
+ isOpen() {
14813
+ return `${!this.show}`;
14814
+ },
14815
+
14816
+ modalListeners() {
14817
+ return { ...this.$listeners,
14818
+ click: event => {
14819
+ event.target === event.currentTarget && this.close();
14820
+ },
14821
+ keydown: event => {
14822
+ switch (event.code) {
14823
+ case EVENT_KEYNAMES.esc:
14824
+ case EVENT_KEYNAMES.escape:
14825
+ this.close();
14826
+ break;
14827
+
14828
+ case EVENT_KEYNAMES.tab:
14829
+ this.trapFocus(event);
14830
+ break;
14831
+ }
14832
+ }
14833
+ };
14834
+ }
14835
+
14836
+ },
14837
+ watch: {
14838
+ show: {
14839
+ immediate: true,
14840
+
14841
+ handler(isShowing) {
14842
+ if (isShowing) {
14843
+ // Set a reference to the previously-active element, to which we'll return focus on modal close.
14844
+ this.previousActiveElement = document.activeElement;
14845
+ } else {
14846
+ var _this$previousActiveE;
14847
+
14848
+ // Modal is being hidden, so return focus to the previously active element before clearing the reference.
14849
+ (_this$previousActiveE = this.previousActiveElement) === null || _this$previousActiveE === void 0 ? void 0 : _this$previousActiveE.focus();
14850
+ this.previousActiveElement = null;
14851
+ }
14852
+ }
14853
+
14854
+ }
14855
+ },
14856
+ methods: {
14857
+ open() {
14858
+ this.show = true;
14859
+ this.showCloseButton = true;
14860
+ setTimeout(() => {
14861
+ this.focusAfterOpen();
14862
+ });
14863
+ },
14864
+
14865
+ close() {
14866
+ this.show = false;
14867
+ },
14868
+
14869
+ focusAfterOpen() {
14870
+ var _this$$refs$closeImag;
14871
+
14872
+ (_this$$refs$closeImag = this.$refs.closeImage) === null || _this$$refs$closeImag === void 0 ? void 0 : _this$$refs$closeImag.$el.focus();
14873
+ },
14874
+
14875
+ trapFocus(e) {
14876
+ if (this.show) {
14877
+ this.focusTrappedTabPress(e);
14878
+ }
14879
+ }
14880
+
14881
+ }
14882
+ });
14883
+ ;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=script&lang=js&
14884
+ /* harmony default export */ const image_viewer_image_viewervue_type_script_lang_js_ = (image_viewervue_type_script_lang_js_);
14885
+ ;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue
14886
+
14887
+
14888
+
14889
+
14890
+
14891
+ /* normalize component */
14892
+ ;
14893
+ var image_viewer_component = normalizeComponent(
14894
+ image_viewer_image_viewervue_type_script_lang_js_,
14895
+ image_viewervue_type_template_id_3214f60f_render,
14896
+ image_viewervue_type_template_id_3214f60f_staticRenderFns,
14897
+ false,
14898
+ null,
14899
+ null,
14900
+ null
14901
+
14902
+ )
14903
+
14904
+ /* harmony default export */ const image_viewer = (image_viewer_component.exports);
14905
+ ;// CONCATENATED MODULE: ./components/image_viewer/index.js
14906
+
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=2c334438&
14908
+ 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
14909
  'base-input__label-text',
14620
14910
  'd-label',
14621
14911
  _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 +14914,7 @@ var inputvue_type_template_id_5be97b31_render = function () {var _vm=this;var _h
14624
14914
  'd-fd-column',
14625
14915
  _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
14916
  '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 inputvue_type_template_id_5be97b31_staticRenderFns = []
14917
+ var inputvue_type_template_id_2c334438_staticRenderFns = []
14628
14918
 
14629
14919
 
14630
14920
  ;// CONCATENATED MODULE: ./components/input/input_constants.js
@@ -15421,6 +15711,14 @@ const MessagesMixin = {
15421
15711
  default: null
15422
15712
  },
15423
15713
 
15714
+ /**
15715
+ * Whether the input will continue to display a warning validation message even if the input has lost focus.
15716
+ */
15717
+ retainWarning: {
15718
+ type: Boolean,
15719
+ default: false
15720
+ },
15721
+
15424
15722
  /**
15425
15723
  * Validation for the input. Supports maximum length validation with the structure:
15426
15724
  * `{ "length": {"description": string, "max": number, "warn": number, "message": string,
@@ -15605,7 +15903,7 @@ const MessagesMixin = {
15605
15903
  inputLengthState() {
15606
15904
  if (this.inputLength < this.validationProps.length.warn) {
15607
15905
  return null;
15608
- } else if (this.inputLength < this.validationProps.length.max) {
15906
+ } else if (this.inputLength <= this.validationProps.length.max) {
15609
15907
  return this.validationProps.length.warn ? VALIDATION_MESSAGE_TYPES.WARNING : null;
15610
15908
  } else {
15611
15909
  return VALIDATION_MESSAGE_TYPES.ERROR;
@@ -15620,8 +15918,9 @@ const MessagesMixin = {
15620
15918
  return this.shouldValidateLength && this.validationProps.length.limitMaxLength;
15621
15919
  },
15622
15920
 
15921
+ // eslint-disable-next-line complexity
15623
15922
  showLengthLimitValidation() {
15624
- return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.isInputFocused || this.isInvalid);
15923
+ return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.retainWarning || this.isInputFocused || this.isInvalid);
15625
15924
  },
15626
15925
 
15627
15926
  sizeModifierClass() {
@@ -15777,8 +16076,8 @@ const MessagesMixin = {
15777
16076
  ;
15778
16077
  var input_component = normalizeComponent(
15779
16078
  input_inputvue_type_script_lang_js_,
15780
- inputvue_type_template_id_5be97b31_render,
15781
- inputvue_type_template_id_5be97b31_staticRenderFns,
16079
+ inputvue_type_template_id_2c334438_render,
16080
+ inputvue_type_template_id_2c334438_staticRenderFns,
15782
16081
  false,
15783
16082
  null,
15784
16083
  null,
@@ -24544,9 +24843,9 @@ var general_row_component = normalizeComponent(
24544
24843
  ;// CONCATENATED MODULE: ./recipes/leftbar/general_row/index.js
24545
24844
 
24546
24845
 
24547
- ;// 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&
24548
- 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))}
24549
- var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
24846
+ ;// 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&
24847
+ 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))}
24848
+ var group_rowvue_type_template_id_d27bba34_staticRenderFns = []
24550
24849
 
24551
24850
 
24552
24851
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[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&
@@ -24571,65 +24870,16 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
24571
24870
  //
24572
24871
  //
24573
24872
  //
24574
- //
24575
- //
24576
- //
24577
- //
24578
- //
24579
- //
24580
- //
24581
- //
24582
- //
24583
- //
24584
- //
24585
- //
24586
- //
24587
24873
 
24588
24874
 
24589
24875
  /* harmony default export */ const group_rowvue_type_script_lang_js_ = ({
24590
24876
  name: 'DtRecipeGroupRow',
24591
24877
  components: {
24592
- DtAvatar: avatar,
24878
+ DtIcon: icon,
24593
24879
  DtRecipeGeneralRow: general_row
24594
24880
  },
24595
24881
  inheritAttrs: false,
24596
24882
  props: {
24597
- /**
24598
- * Optional avatar image url.
24599
- * if provided, it's also required to provide a value in the `avatarInitials` prop to use
24600
- * in the alt attribute of the avatar.
24601
- */
24602
- avatarSrc: {
24603
- type: String,
24604
- default: ''
24605
- },
24606
-
24607
- /**
24608
- * Initials to display on the avatar if avatarSrc is not provided or
24609
- * alt attr if avatarSrc is provided.
24610
- */
24611
- avatarInitials: {
24612
- type: String,
24613
- default: '',
24614
- required: true
24615
- },
24616
-
24617
- /**
24618
- * Avatar seed, set this to the user's ID to get the same avatar background gradient each time it is displayed.
24619
- */
24620
- avatarSeed: {
24621
- type: String,
24622
- default: null
24623
- },
24624
-
24625
- /**
24626
- * Number displayed in avatar to count group members
24627
- */
24628
- groupCount: {
24629
- type: Number,
24630
- required: true
24631
- },
24632
-
24633
24883
  /**
24634
24884
  * Screen reader will read out the number of users in the group using this text. Ex: "2 users"
24635
24885
  */
@@ -24708,8 +24958,8 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
24708
24958
  ;
24709
24959
  var group_row_component = normalizeComponent(
24710
24960
  group_row_group_rowvue_type_script_lang_js_,
24711
- group_rowvue_type_template_id_3222d6a1_render,
24712
- group_rowvue_type_template_id_3222d6a1_staticRenderFns,
24961
+ group_rowvue_type_template_id_d27bba34_render,
24962
+ group_rowvue_type_template_id_d27bba34_staticRenderFns,
24713
24963
  false,
24714
24964
  null,
24715
24965
  null,
@@ -25039,6 +25289,8 @@ var contact_row_component = normalizeComponent(
25039
25289
 
25040
25290
 
25041
25291
 
25292
+
25293
+
25042
25294
 
25043
25295
 
25044
25296