@dialpad/dialtone-vue 2.72.6 → 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 +22 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +345 -73
- package/dist/dialtone-vue.umd.js +345 -73
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -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),
|
|
@@ -2345,6 +2347,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2345
2347
|
"TAB_LIST_KIND_MODIFIERS": () => (/* reexport */ TAB_LIST_KIND_MODIFIERS),
|
|
2346
2348
|
"TAB_LIST_SIZES": () => (/* reexport */ TAB_LIST_SIZES),
|
|
2347
2349
|
"TOAST_ROLES": () => (/* reexport */ TOAST_ROLES),
|
|
2350
|
+
"TOOLTIP_DELAY_MS": () => (/* reexport */ TOOLTIP_DELAY_MS),
|
|
2348
2351
|
"TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
|
|
2349
2352
|
"TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
|
|
2350
2353
|
"TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
|
|
@@ -5407,6 +5410,54 @@ var card_component = normalizeComponent(
|
|
|
5407
5410
|
/* harmony default export */ const card = (card_component.exports);
|
|
5408
5411
|
;// CONCATENATED MODULE: ./components/card/index.js
|
|
5409
5412
|
|
|
5413
|
+
;// 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&
|
|
5414
|
+
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")])}
|
|
5415
|
+
var codeblockvue_type_template_id_043e0ff6_staticRenderFns = []
|
|
5416
|
+
|
|
5417
|
+
|
|
5418
|
+
;// 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&
|
|
5419
|
+
//
|
|
5420
|
+
//
|
|
5421
|
+
//
|
|
5422
|
+
//
|
|
5423
|
+
//
|
|
5424
|
+
//
|
|
5425
|
+
//
|
|
5426
|
+
//
|
|
5427
|
+
//
|
|
5428
|
+
/* harmony default export */ const codeblockvue_type_script_lang_js_ = ({
|
|
5429
|
+
name: 'DtCodeblock',
|
|
5430
|
+
props: {
|
|
5431
|
+
text: {
|
|
5432
|
+
type: String,
|
|
5433
|
+
required: true
|
|
5434
|
+
}
|
|
5435
|
+
}
|
|
5436
|
+
});
|
|
5437
|
+
;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue?vue&type=script&lang=js&
|
|
5438
|
+
/* harmony default export */ const codeblock_codeblockvue_type_script_lang_js_ = (codeblockvue_type_script_lang_js_);
|
|
5439
|
+
;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue
|
|
5440
|
+
|
|
5441
|
+
|
|
5442
|
+
|
|
5443
|
+
|
|
5444
|
+
|
|
5445
|
+
/* normalize component */
|
|
5446
|
+
;
|
|
5447
|
+
var codeblock_component = normalizeComponent(
|
|
5448
|
+
codeblock_codeblockvue_type_script_lang_js_,
|
|
5449
|
+
codeblockvue_type_template_id_043e0ff6_render,
|
|
5450
|
+
codeblockvue_type_template_id_043e0ff6_staticRenderFns,
|
|
5451
|
+
false,
|
|
5452
|
+
null,
|
|
5453
|
+
null,
|
|
5454
|
+
null
|
|
5455
|
+
|
|
5456
|
+
)
|
|
5457
|
+
|
|
5458
|
+
/* harmony default export */ const codeblock = (codeblock_component.exports);
|
|
5459
|
+
;// CONCATENATED MODULE: ./components/codeblock/index.js
|
|
5460
|
+
|
|
5410
5461
|
;// 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
5462
|
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
5463
|
var comboboxvue_type_template_id_5e29b120_staticRenderFns = []
|
|
@@ -8281,13 +8332,13 @@ var collapsible_component = normalizeComponent(
|
|
|
8281
8332
|
/* harmony default export */ const collapsible = (collapsible_component.exports);
|
|
8282
8333
|
;// CONCATENATED MODULE: ./components/collapsible/index.js
|
|
8283
8334
|
|
|
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=
|
|
8285
|
-
var
|
|
8335
|
+
;// 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&
|
|
8336
|
+
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
8337
|
var attrs = ref.attrs;
|
|
8287
8338
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
8288
8339
|
var close = ref.close;
|
|
8289
8340
|
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
|
|
8341
|
+
var dropdownvue_type_template_id_b22f331a_staticRenderFns = []
|
|
8291
8342
|
|
|
8292
8343
|
|
|
8293
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/popover/popover.vue?vue&type=template&id=683dbc64&
|
|
@@ -14141,6 +14192,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14141
14192
|
//
|
|
14142
14193
|
//
|
|
14143
14194
|
//
|
|
14195
|
+
//
|
|
14144
14196
|
|
|
14145
14197
|
|
|
14146
14198
|
|
|
@@ -14322,6 +14374,17 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14322
14374
|
validator: appendTo => {
|
|
14323
14375
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
14324
14376
|
}
|
|
14377
|
+
},
|
|
14378
|
+
|
|
14379
|
+
/**
|
|
14380
|
+
* If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
14381
|
+
* If set to true it will never move from its position relative to the anchor and will clip instead.
|
|
14382
|
+
* See <a href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether" target="_blank">Popper.js docs</a>
|
|
14383
|
+
* @values true, false
|
|
14384
|
+
*/
|
|
14385
|
+
tether: {
|
|
14386
|
+
type: Boolean,
|
|
14387
|
+
default: true
|
|
14325
14388
|
}
|
|
14326
14389
|
},
|
|
14327
14390
|
emits: [
|
|
@@ -14558,8 +14621,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(782);
|
|
|
14558
14621
|
|
|
14559
14622
|
var dropdown_component = normalizeComponent(
|
|
14560
14623
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
14561
|
-
|
|
14562
|
-
|
|
14624
|
+
dropdownvue_type_template_id_b22f331a_render,
|
|
14625
|
+
dropdownvue_type_template_id_b22f331a_staticRenderFns,
|
|
14563
14626
|
false,
|
|
14564
14627
|
null,
|
|
14565
14628
|
null,
|
|
@@ -14614,8 +14677,236 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14614
14677
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14615
14678
|
|
|
14616
14679
|
|
|
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/
|
|
14618
|
-
var
|
|
14680
|
+
;// 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&
|
|
14681
|
+
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)}
|
|
14682
|
+
var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
14683
|
+
|
|
14684
|
+
|
|
14685
|
+
;// 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&
|
|
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
|
+
|
|
14754
|
+
/* harmony default export */ const image_viewervue_type_script_lang_js_ = ({
|
|
14755
|
+
name: 'DtImageViewer',
|
|
14756
|
+
components: {
|
|
14757
|
+
Portal: Portal,
|
|
14758
|
+
DtButton: button_button,
|
|
14759
|
+
DtIcon: icon
|
|
14760
|
+
},
|
|
14761
|
+
mixins: [modal],
|
|
14762
|
+
props: {
|
|
14763
|
+
/**
|
|
14764
|
+
* URL of the image to be shown
|
|
14765
|
+
*/
|
|
14766
|
+
imageSrc: {
|
|
14767
|
+
type: String,
|
|
14768
|
+
required: true
|
|
14769
|
+
},
|
|
14770
|
+
|
|
14771
|
+
/**
|
|
14772
|
+
* Alt text of image
|
|
14773
|
+
*/
|
|
14774
|
+
imageAlt: {
|
|
14775
|
+
type: String,
|
|
14776
|
+
required: true
|
|
14777
|
+
},
|
|
14778
|
+
|
|
14779
|
+
/**
|
|
14780
|
+
* Image Class
|
|
14781
|
+
*/
|
|
14782
|
+
imageButtonClass: {
|
|
14783
|
+
type: String,
|
|
14784
|
+
required: false,
|
|
14785
|
+
default: ''
|
|
14786
|
+
},
|
|
14787
|
+
|
|
14788
|
+
/**
|
|
14789
|
+
* Aria label
|
|
14790
|
+
*/
|
|
14791
|
+
ariaLabel: {
|
|
14792
|
+
type: String,
|
|
14793
|
+
required: true
|
|
14794
|
+
},
|
|
14795
|
+
|
|
14796
|
+
/**
|
|
14797
|
+
* Aria label for close button
|
|
14798
|
+
*/
|
|
14799
|
+
closeAriaLabel: {
|
|
14800
|
+
type: String,
|
|
14801
|
+
required: true
|
|
14802
|
+
}
|
|
14803
|
+
},
|
|
14804
|
+
|
|
14805
|
+
data() {
|
|
14806
|
+
return {
|
|
14807
|
+
show: false,
|
|
14808
|
+
showCloseButton: true
|
|
14809
|
+
};
|
|
14810
|
+
},
|
|
14811
|
+
|
|
14812
|
+
computed: {
|
|
14813
|
+
isOpen() {
|
|
14814
|
+
return `${!this.show}`;
|
|
14815
|
+
},
|
|
14816
|
+
|
|
14817
|
+
modalListeners() {
|
|
14818
|
+
return { ...this.$listeners,
|
|
14819
|
+
click: event => {
|
|
14820
|
+
event.target === event.currentTarget && this.close();
|
|
14821
|
+
},
|
|
14822
|
+
keydown: event => {
|
|
14823
|
+
switch (event.code) {
|
|
14824
|
+
case EVENT_KEYNAMES.esc:
|
|
14825
|
+
case EVENT_KEYNAMES.escape:
|
|
14826
|
+
this.close();
|
|
14827
|
+
break;
|
|
14828
|
+
|
|
14829
|
+
case EVENT_KEYNAMES.tab:
|
|
14830
|
+
this.trapFocus(event);
|
|
14831
|
+
break;
|
|
14832
|
+
}
|
|
14833
|
+
}
|
|
14834
|
+
};
|
|
14835
|
+
}
|
|
14836
|
+
|
|
14837
|
+
},
|
|
14838
|
+
watch: {
|
|
14839
|
+
show: {
|
|
14840
|
+
immediate: true,
|
|
14841
|
+
|
|
14842
|
+
handler(isShowing) {
|
|
14843
|
+
if (isShowing) {
|
|
14844
|
+
// Set a reference to the previously-active element, to which we'll return focus on modal close.
|
|
14845
|
+
this.previousActiveElement = document.activeElement;
|
|
14846
|
+
} else {
|
|
14847
|
+
var _this$previousActiveE;
|
|
14848
|
+
|
|
14849
|
+
// Modal is being hidden, so return focus to the previously active element before clearing the reference.
|
|
14850
|
+
(_this$previousActiveE = this.previousActiveElement) === null || _this$previousActiveE === void 0 ? void 0 : _this$previousActiveE.focus();
|
|
14851
|
+
this.previousActiveElement = null;
|
|
14852
|
+
}
|
|
14853
|
+
}
|
|
14854
|
+
|
|
14855
|
+
}
|
|
14856
|
+
},
|
|
14857
|
+
methods: {
|
|
14858
|
+
open() {
|
|
14859
|
+
this.show = true;
|
|
14860
|
+
this.showCloseButton = true;
|
|
14861
|
+
setTimeout(() => {
|
|
14862
|
+
this.focusAfterOpen();
|
|
14863
|
+
});
|
|
14864
|
+
},
|
|
14865
|
+
|
|
14866
|
+
close() {
|
|
14867
|
+
this.show = false;
|
|
14868
|
+
},
|
|
14869
|
+
|
|
14870
|
+
focusAfterOpen() {
|
|
14871
|
+
var _this$$refs$closeImag;
|
|
14872
|
+
|
|
14873
|
+
(_this$$refs$closeImag = this.$refs.closeImage) === null || _this$$refs$closeImag === void 0 ? void 0 : _this$$refs$closeImag.$el.focus();
|
|
14874
|
+
},
|
|
14875
|
+
|
|
14876
|
+
trapFocus(e) {
|
|
14877
|
+
if (this.show) {
|
|
14878
|
+
this.focusTrappedTabPress(e);
|
|
14879
|
+
}
|
|
14880
|
+
}
|
|
14881
|
+
|
|
14882
|
+
}
|
|
14883
|
+
});
|
|
14884
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=script&lang=js&
|
|
14885
|
+
/* harmony default export */ const image_viewer_image_viewervue_type_script_lang_js_ = (image_viewervue_type_script_lang_js_);
|
|
14886
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue
|
|
14887
|
+
|
|
14888
|
+
|
|
14889
|
+
|
|
14890
|
+
|
|
14891
|
+
|
|
14892
|
+
/* normalize component */
|
|
14893
|
+
;
|
|
14894
|
+
var image_viewer_component = normalizeComponent(
|
|
14895
|
+
image_viewer_image_viewervue_type_script_lang_js_,
|
|
14896
|
+
image_viewervue_type_template_id_3214f60f_render,
|
|
14897
|
+
image_viewervue_type_template_id_3214f60f_staticRenderFns,
|
|
14898
|
+
false,
|
|
14899
|
+
null,
|
|
14900
|
+
null,
|
|
14901
|
+
null
|
|
14902
|
+
|
|
14903
|
+
)
|
|
14904
|
+
|
|
14905
|
+
/* harmony default export */ const image_viewer = (image_viewer_component.exports);
|
|
14906
|
+
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
14907
|
+
|
|
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:[
|
|
14619
14910
|
'base-input__label-text',
|
|
14620
14911
|
'd-label',
|
|
14621
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:[
|
|
@@ -14624,7 +14915,7 @@ var inputvue_type_template_id_2c334438_render = function () {var _vm=this;var _h
|
|
|
14624
14915
|
'd-fd-column',
|
|
14625
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:[
|
|
14626
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)}
|
|
14627
|
-
var
|
|
14918
|
+
var inputvue_type_template_id_62e06544_staticRenderFns = []
|
|
14628
14919
|
|
|
14629
14920
|
|
|
14630
14921
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
@@ -14635,7 +14926,9 @@ const INPUT_TYPES = {
|
|
|
14635
14926
|
TEXTAREA: 'textarea',
|
|
14636
14927
|
PASSWORD: 'password',
|
|
14637
14928
|
EMAIL: 'email',
|
|
14638
|
-
NUMBER: 'number'
|
|
14929
|
+
NUMBER: 'number',
|
|
14930
|
+
DATE: 'date',
|
|
14931
|
+
TIME: 'time'
|
|
14639
14932
|
};
|
|
14640
14933
|
const INPUT_SIZES = {
|
|
14641
14934
|
EXTRA_SMALL: 'xs',
|
|
@@ -15316,9 +15609,9 @@ const MessagesMixin = {
|
|
|
15316
15609
|
},
|
|
15317
15610
|
|
|
15318
15611
|
/**
|
|
15319
|
-
* 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'.
|
|
15320
15613
|
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
15321
|
-
* @values text, password, email, number, textarea
|
|
15614
|
+
* @values text, password, email, number, textarea, date, time
|
|
15322
15615
|
*/
|
|
15323
15616
|
type: {
|
|
15324
15617
|
type: String,
|
|
@@ -15786,8 +16079,8 @@ const MessagesMixin = {
|
|
|
15786
16079
|
;
|
|
15787
16080
|
var input_component = normalizeComponent(
|
|
15788
16081
|
input_inputvue_type_script_lang_js_,
|
|
15789
|
-
|
|
15790
|
-
|
|
16082
|
+
inputvue_type_template_id_62e06544_render,
|
|
16083
|
+
inputvue_type_template_id_62e06544_staticRenderFns,
|
|
15791
16084
|
false,
|
|
15792
16085
|
null,
|
|
15793
16086
|
null,
|
|
@@ -19858,15 +20151,15 @@ var toggle_component = normalizeComponent(
|
|
|
19858
20151
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
19859
20152
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
19860
20153
|
|
|
19861
|
-
;// 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=
|
|
19862
|
-
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 () {
|
|
19863
20156
|
var _obj;
|
|
19864
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:[
|
|
19865
20158
|
'd-tooltip',
|
|
19866
20159
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
19867
20160
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
19868
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)}
|
|
19869
|
-
var
|
|
20162
|
+
var tooltipvue_type_template_id_39a603a8_staticRenderFns = []
|
|
19870
20163
|
|
|
19871
20164
|
|
|
19872
20165
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -19875,6 +20168,7 @@ var tooltipvue_type_template_id_6d30a218_staticRenderFns = []
|
|
|
19875
20168
|
* */
|
|
19876
20169
|
|
|
19877
20170
|
const TOOLTIP_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
20171
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
19878
20172
|
const TOOLTIP_KIND_MODIFIERS = {
|
|
19879
20173
|
hover: `d-tooltip--hover`,
|
|
19880
20174
|
show: `d-tooltip--show`,
|
|
@@ -20063,6 +20357,15 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20063
20357
|
transition: {
|
|
20064
20358
|
type: String,
|
|
20065
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
|
|
20066
20369
|
}
|
|
20067
20370
|
},
|
|
20068
20371
|
emits: [
|
|
@@ -20084,6 +20387,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20084
20387
|
return {
|
|
20085
20388
|
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS,
|
|
20086
20389
|
tip: null,
|
|
20390
|
+
inTimer: null,
|
|
20087
20391
|
// Internal state for whether the tooltip is shown. Changing the prop
|
|
20088
20392
|
// will update this.
|
|
20089
20393
|
isShown: false,
|
|
@@ -20190,6 +20494,16 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20190
20494
|
},
|
|
20191
20495
|
|
|
20192
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) {
|
|
20193
20507
|
if (e.type === 'focusin') {
|
|
20194
20508
|
// only show tooltips on visible focus when triggered via focus.
|
|
20195
20509
|
// when the user is using the mouse they only want tooltips to display
|
|
@@ -20207,6 +20521,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20207
20521
|
},
|
|
20208
20522
|
|
|
20209
20523
|
onLeaveAnchor() {
|
|
20524
|
+
clearTimeout(this.inTimer);
|
|
20525
|
+
return this.triggerHide();
|
|
20526
|
+
},
|
|
20527
|
+
|
|
20528
|
+
triggerHide() {
|
|
20210
20529
|
if (this.show === null) this.isShown = false;
|
|
20211
20530
|
},
|
|
20212
20531
|
|
|
@@ -20274,8 +20593,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(213);
|
|
|
20274
20593
|
|
|
20275
20594
|
var tooltip_component = normalizeComponent(
|
|
20276
20595
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20277
|
-
|
|
20278
|
-
|
|
20596
|
+
tooltipvue_type_template_id_39a603a8_render,
|
|
20597
|
+
tooltipvue_type_template_id_39a603a8_staticRenderFns,
|
|
20279
20598
|
false,
|
|
20280
20599
|
null,
|
|
20281
20600
|
null,
|
|
@@ -24553,9 +24872,9 @@ var general_row_component = normalizeComponent(
|
|
|
24553
24872
|
;// CONCATENATED MODULE: ./recipes/leftbar/general_row/index.js
|
|
24554
24873
|
|
|
24555
24874
|
|
|
24556
|
-
;// 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=
|
|
24557
|
-
var
|
|
24558
|
-
var
|
|
24875
|
+
;// 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&
|
|
24876
|
+
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))}
|
|
24877
|
+
var group_rowvue_type_template_id_d27bba34_staticRenderFns = []
|
|
24559
24878
|
|
|
24560
24879
|
|
|
24561
24880
|
;// 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&
|
|
@@ -24580,65 +24899,16 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
|
|
|
24580
24899
|
//
|
|
24581
24900
|
//
|
|
24582
24901
|
//
|
|
24583
|
-
//
|
|
24584
|
-
//
|
|
24585
|
-
//
|
|
24586
|
-
//
|
|
24587
|
-
//
|
|
24588
|
-
//
|
|
24589
|
-
//
|
|
24590
|
-
//
|
|
24591
|
-
//
|
|
24592
|
-
//
|
|
24593
|
-
//
|
|
24594
|
-
//
|
|
24595
|
-
//
|
|
24596
24902
|
|
|
24597
24903
|
|
|
24598
24904
|
/* harmony default export */ const group_rowvue_type_script_lang_js_ = ({
|
|
24599
24905
|
name: 'DtRecipeGroupRow',
|
|
24600
24906
|
components: {
|
|
24601
|
-
|
|
24907
|
+
DtIcon: icon,
|
|
24602
24908
|
DtRecipeGeneralRow: general_row
|
|
24603
24909
|
},
|
|
24604
24910
|
inheritAttrs: false,
|
|
24605
24911
|
props: {
|
|
24606
|
-
/**
|
|
24607
|
-
* Optional avatar image url.
|
|
24608
|
-
* if provided, it's also required to provide a value in the `avatarInitials` prop to use
|
|
24609
|
-
* in the alt attribute of the avatar.
|
|
24610
|
-
*/
|
|
24611
|
-
avatarSrc: {
|
|
24612
|
-
type: String,
|
|
24613
|
-
default: ''
|
|
24614
|
-
},
|
|
24615
|
-
|
|
24616
|
-
/**
|
|
24617
|
-
* Initials to display on the avatar if avatarSrc is not provided or
|
|
24618
|
-
* alt attr if avatarSrc is provided.
|
|
24619
|
-
*/
|
|
24620
|
-
avatarInitials: {
|
|
24621
|
-
type: String,
|
|
24622
|
-
default: '',
|
|
24623
|
-
required: true
|
|
24624
|
-
},
|
|
24625
|
-
|
|
24626
|
-
/**
|
|
24627
|
-
* Avatar seed, set this to the user's ID to get the same avatar background gradient each time it is displayed.
|
|
24628
|
-
*/
|
|
24629
|
-
avatarSeed: {
|
|
24630
|
-
type: String,
|
|
24631
|
-
default: null
|
|
24632
|
-
},
|
|
24633
|
-
|
|
24634
|
-
/**
|
|
24635
|
-
* Number displayed in avatar to count group members
|
|
24636
|
-
*/
|
|
24637
|
-
groupCount: {
|
|
24638
|
-
type: Number,
|
|
24639
|
-
required: true
|
|
24640
|
-
},
|
|
24641
|
-
|
|
24642
24912
|
/**
|
|
24643
24913
|
* Screen reader will read out the number of users in the group using this text. Ex: "2 users"
|
|
24644
24914
|
*/
|
|
@@ -24717,8 +24987,8 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
|
|
|
24717
24987
|
;
|
|
24718
24988
|
var group_row_component = normalizeComponent(
|
|
24719
24989
|
group_row_group_rowvue_type_script_lang_js_,
|
|
24720
|
-
|
|
24721
|
-
|
|
24990
|
+
group_rowvue_type_template_id_d27bba34_render,
|
|
24991
|
+
group_rowvue_type_template_id_d27bba34_staticRenderFns,
|
|
24722
24992
|
false,
|
|
24723
24993
|
null,
|
|
24724
24994
|
null,
|
|
@@ -25048,6 +25318,8 @@ var contact_row_component = normalizeComponent(
|
|
|
25048
25318
|
|
|
25049
25319
|
|
|
25050
25320
|
|
|
25321
|
+
|
|
25322
|
+
|
|
25051
25323
|
|
|
25052
25324
|
|
|
25053
25325
|
|