@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
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -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),
|
|
@@ -2355,6 +2357,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2355
2357
|
"TAB_LIST_KIND_MODIFIERS": () => (/* reexport */ TAB_LIST_KIND_MODIFIERS),
|
|
2356
2358
|
"TAB_LIST_SIZES": () => (/* reexport */ TAB_LIST_SIZES),
|
|
2357
2359
|
"TOAST_ROLES": () => (/* reexport */ TOAST_ROLES),
|
|
2360
|
+
"TOOLTIP_DELAY_MS": () => (/* reexport */ TOOLTIP_DELAY_MS),
|
|
2358
2361
|
"TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
|
|
2359
2362
|
"TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
|
|
2360
2363
|
"TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
|
|
@@ -5417,6 +5420,54 @@ var card_component = normalizeComponent(
|
|
|
5417
5420
|
/* harmony default export */ const card = (card_component.exports);
|
|
5418
5421
|
;// CONCATENATED MODULE: ./components/card/index.js
|
|
5419
5422
|
|
|
5423
|
+
;// 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&
|
|
5424
|
+
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")])}
|
|
5425
|
+
var codeblockvue_type_template_id_043e0ff6_staticRenderFns = []
|
|
5426
|
+
|
|
5427
|
+
|
|
5428
|
+
;// 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&
|
|
5429
|
+
//
|
|
5430
|
+
//
|
|
5431
|
+
//
|
|
5432
|
+
//
|
|
5433
|
+
//
|
|
5434
|
+
//
|
|
5435
|
+
//
|
|
5436
|
+
//
|
|
5437
|
+
//
|
|
5438
|
+
/* harmony default export */ const codeblockvue_type_script_lang_js_ = ({
|
|
5439
|
+
name: 'DtCodeblock',
|
|
5440
|
+
props: {
|
|
5441
|
+
text: {
|
|
5442
|
+
type: String,
|
|
5443
|
+
required: true
|
|
5444
|
+
}
|
|
5445
|
+
}
|
|
5446
|
+
});
|
|
5447
|
+
;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue?vue&type=script&lang=js&
|
|
5448
|
+
/* harmony default export */ const codeblock_codeblockvue_type_script_lang_js_ = (codeblockvue_type_script_lang_js_);
|
|
5449
|
+
;// CONCATENATED MODULE: ./components/codeblock/codeblock.vue
|
|
5450
|
+
|
|
5451
|
+
|
|
5452
|
+
|
|
5453
|
+
|
|
5454
|
+
|
|
5455
|
+
/* normalize component */
|
|
5456
|
+
;
|
|
5457
|
+
var codeblock_component = normalizeComponent(
|
|
5458
|
+
codeblock_codeblockvue_type_script_lang_js_,
|
|
5459
|
+
codeblockvue_type_template_id_043e0ff6_render,
|
|
5460
|
+
codeblockvue_type_template_id_043e0ff6_staticRenderFns,
|
|
5461
|
+
false,
|
|
5462
|
+
null,
|
|
5463
|
+
null,
|
|
5464
|
+
null
|
|
5465
|
+
|
|
5466
|
+
)
|
|
5467
|
+
|
|
5468
|
+
/* harmony default export */ const codeblock = (codeblock_component.exports);
|
|
5469
|
+
;// CONCATENATED MODULE: ./components/codeblock/index.js
|
|
5470
|
+
|
|
5420
5471
|
;// 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
5472
|
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
5473
|
var comboboxvue_type_template_id_5e29b120_staticRenderFns = []
|
|
@@ -8291,13 +8342,13 @@ var collapsible_component = normalizeComponent(
|
|
|
8291
8342
|
/* harmony default export */ const collapsible = (collapsible_component.exports);
|
|
8292
8343
|
;// CONCATENATED MODULE: ./components/collapsible/index.js
|
|
8293
8344
|
|
|
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=
|
|
8295
|
-
var
|
|
8345
|
+
;// 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&
|
|
8346
|
+
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
8347
|
var attrs = ref.attrs;
|
|
8297
8348
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
8298
8349
|
var close = ref.close;
|
|
8299
8350
|
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
|
|
8351
|
+
var dropdownvue_type_template_id_b22f331a_staticRenderFns = []
|
|
8301
8352
|
|
|
8302
8353
|
|
|
8303
8354
|
;// 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 +14202,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14151
14202
|
//
|
|
14152
14203
|
//
|
|
14153
14204
|
//
|
|
14205
|
+
//
|
|
14154
14206
|
|
|
14155
14207
|
|
|
14156
14208
|
|
|
@@ -14332,6 +14384,17 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
14332
14384
|
validator: appendTo => {
|
|
14333
14385
|
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
14334
14386
|
}
|
|
14387
|
+
},
|
|
14388
|
+
|
|
14389
|
+
/**
|
|
14390
|
+
* If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
14391
|
+
* If set to true it will never move from its position relative to the anchor and will clip instead.
|
|
14392
|
+
* See <a href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether" target="_blank">Popper.js docs</a>
|
|
14393
|
+
* @values true, false
|
|
14394
|
+
*/
|
|
14395
|
+
tether: {
|
|
14396
|
+
type: Boolean,
|
|
14397
|
+
default: true
|
|
14335
14398
|
}
|
|
14336
14399
|
},
|
|
14337
14400
|
emits: [
|
|
@@ -14568,8 +14631,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(774);
|
|
|
14568
14631
|
|
|
14569
14632
|
var dropdown_component = normalizeComponent(
|
|
14570
14633
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
14571
|
-
|
|
14572
|
-
|
|
14634
|
+
dropdownvue_type_template_id_b22f331a_render,
|
|
14635
|
+
dropdownvue_type_template_id_b22f331a_staticRenderFns,
|
|
14573
14636
|
false,
|
|
14574
14637
|
null,
|
|
14575
14638
|
null,
|
|
@@ -14624,8 +14687,236 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14624
14687
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14625
14688
|
|
|
14626
14689
|
|
|
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/
|
|
14628
|
-
var
|
|
14690
|
+
;// 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&
|
|
14691
|
+
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)}
|
|
14692
|
+
var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
14693
|
+
|
|
14694
|
+
|
|
14695
|
+
;// 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&
|
|
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
|
+
|
|
14764
|
+
/* harmony default export */ const image_viewervue_type_script_lang_js_ = ({
|
|
14765
|
+
name: 'DtImageViewer',
|
|
14766
|
+
components: {
|
|
14767
|
+
Portal: Portal,
|
|
14768
|
+
DtButton: button_button,
|
|
14769
|
+
DtIcon: icon
|
|
14770
|
+
},
|
|
14771
|
+
mixins: [modal],
|
|
14772
|
+
props: {
|
|
14773
|
+
/**
|
|
14774
|
+
* URL of the image to be shown
|
|
14775
|
+
*/
|
|
14776
|
+
imageSrc: {
|
|
14777
|
+
type: String,
|
|
14778
|
+
required: true
|
|
14779
|
+
},
|
|
14780
|
+
|
|
14781
|
+
/**
|
|
14782
|
+
* Alt text of image
|
|
14783
|
+
*/
|
|
14784
|
+
imageAlt: {
|
|
14785
|
+
type: String,
|
|
14786
|
+
required: true
|
|
14787
|
+
},
|
|
14788
|
+
|
|
14789
|
+
/**
|
|
14790
|
+
* Image Class
|
|
14791
|
+
*/
|
|
14792
|
+
imageButtonClass: {
|
|
14793
|
+
type: String,
|
|
14794
|
+
required: false,
|
|
14795
|
+
default: ''
|
|
14796
|
+
},
|
|
14797
|
+
|
|
14798
|
+
/**
|
|
14799
|
+
* Aria label
|
|
14800
|
+
*/
|
|
14801
|
+
ariaLabel: {
|
|
14802
|
+
type: String,
|
|
14803
|
+
required: true
|
|
14804
|
+
},
|
|
14805
|
+
|
|
14806
|
+
/**
|
|
14807
|
+
* Aria label for close button
|
|
14808
|
+
*/
|
|
14809
|
+
closeAriaLabel: {
|
|
14810
|
+
type: String,
|
|
14811
|
+
required: true
|
|
14812
|
+
}
|
|
14813
|
+
},
|
|
14814
|
+
|
|
14815
|
+
data() {
|
|
14816
|
+
return {
|
|
14817
|
+
show: false,
|
|
14818
|
+
showCloseButton: true
|
|
14819
|
+
};
|
|
14820
|
+
},
|
|
14821
|
+
|
|
14822
|
+
computed: {
|
|
14823
|
+
isOpen() {
|
|
14824
|
+
return `${!this.show}`;
|
|
14825
|
+
},
|
|
14826
|
+
|
|
14827
|
+
modalListeners() {
|
|
14828
|
+
return { ...this.$listeners,
|
|
14829
|
+
click: event => {
|
|
14830
|
+
event.target === event.currentTarget && this.close();
|
|
14831
|
+
},
|
|
14832
|
+
keydown: event => {
|
|
14833
|
+
switch (event.code) {
|
|
14834
|
+
case EVENT_KEYNAMES.esc:
|
|
14835
|
+
case EVENT_KEYNAMES.escape:
|
|
14836
|
+
this.close();
|
|
14837
|
+
break;
|
|
14838
|
+
|
|
14839
|
+
case EVENT_KEYNAMES.tab:
|
|
14840
|
+
this.trapFocus(event);
|
|
14841
|
+
break;
|
|
14842
|
+
}
|
|
14843
|
+
}
|
|
14844
|
+
};
|
|
14845
|
+
}
|
|
14846
|
+
|
|
14847
|
+
},
|
|
14848
|
+
watch: {
|
|
14849
|
+
show: {
|
|
14850
|
+
immediate: true,
|
|
14851
|
+
|
|
14852
|
+
handler(isShowing) {
|
|
14853
|
+
if (isShowing) {
|
|
14854
|
+
// Set a reference to the previously-active element, to which we'll return focus on modal close.
|
|
14855
|
+
this.previousActiveElement = document.activeElement;
|
|
14856
|
+
} else {
|
|
14857
|
+
var _this$previousActiveE;
|
|
14858
|
+
|
|
14859
|
+
// Modal is being hidden, so return focus to the previously active element before clearing the reference.
|
|
14860
|
+
(_this$previousActiveE = this.previousActiveElement) === null || _this$previousActiveE === void 0 ? void 0 : _this$previousActiveE.focus();
|
|
14861
|
+
this.previousActiveElement = null;
|
|
14862
|
+
}
|
|
14863
|
+
}
|
|
14864
|
+
|
|
14865
|
+
}
|
|
14866
|
+
},
|
|
14867
|
+
methods: {
|
|
14868
|
+
open() {
|
|
14869
|
+
this.show = true;
|
|
14870
|
+
this.showCloseButton = true;
|
|
14871
|
+
setTimeout(() => {
|
|
14872
|
+
this.focusAfterOpen();
|
|
14873
|
+
});
|
|
14874
|
+
},
|
|
14875
|
+
|
|
14876
|
+
close() {
|
|
14877
|
+
this.show = false;
|
|
14878
|
+
},
|
|
14879
|
+
|
|
14880
|
+
focusAfterOpen() {
|
|
14881
|
+
var _this$$refs$closeImag;
|
|
14882
|
+
|
|
14883
|
+
(_this$$refs$closeImag = this.$refs.closeImage) === null || _this$$refs$closeImag === void 0 ? void 0 : _this$$refs$closeImag.$el.focus();
|
|
14884
|
+
},
|
|
14885
|
+
|
|
14886
|
+
trapFocus(e) {
|
|
14887
|
+
if (this.show) {
|
|
14888
|
+
this.focusTrappedTabPress(e);
|
|
14889
|
+
}
|
|
14890
|
+
}
|
|
14891
|
+
|
|
14892
|
+
}
|
|
14893
|
+
});
|
|
14894
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=script&lang=js&
|
|
14895
|
+
/* harmony default export */ const image_viewer_image_viewervue_type_script_lang_js_ = (image_viewervue_type_script_lang_js_);
|
|
14896
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue
|
|
14897
|
+
|
|
14898
|
+
|
|
14899
|
+
|
|
14900
|
+
|
|
14901
|
+
|
|
14902
|
+
/* normalize component */
|
|
14903
|
+
;
|
|
14904
|
+
var image_viewer_component = normalizeComponent(
|
|
14905
|
+
image_viewer_image_viewervue_type_script_lang_js_,
|
|
14906
|
+
image_viewervue_type_template_id_3214f60f_render,
|
|
14907
|
+
image_viewervue_type_template_id_3214f60f_staticRenderFns,
|
|
14908
|
+
false,
|
|
14909
|
+
null,
|
|
14910
|
+
null,
|
|
14911
|
+
null
|
|
14912
|
+
|
|
14913
|
+
)
|
|
14914
|
+
|
|
14915
|
+
/* harmony default export */ const image_viewer = (image_viewer_component.exports);
|
|
14916
|
+
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
14917
|
+
|
|
14918
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/input/input.vue?vue&type=template&id=62e06544&
|
|
14919
|
+
var inputvue_type_template_id_62e06544_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[_c('label',{staticClass:"base-input__label",attrs:{"aria-details":_vm.$slots.description || _vm.description ? _vm.descriptionKey : undefined,"data-qa":"dt-input-label-wrapper"}},[_vm._t("labelSlot",function(){return [(_vm.labelVisible && _vm.label)?_c('div',{ref:"label",class:[
|
|
14629
14920
|
'base-input__label-text',
|
|
14630
14921
|
'd-label',
|
|
14631
14922
|
_vm.labelSizeClasses[_vm.size] ],attrs:{"data-qa":"dt-input-label"}},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e()]}),(_vm.$slots.description || _vm.description || _vm.shouldValidateLength)?_c('div',{ref:"description",class:[
|
|
@@ -14634,7 +14925,7 @@ var inputvue_type_template_id_2c334438_render = function () {var _vm=this;var _h
|
|
|
14634
14925
|
'd-fd-column',
|
|
14635
14926
|
_vm.descriptionSizeClasses[_vm.size] ],attrs:{"id":_vm.descriptionKey,"data-qa":"dt-input-description"}},[(_vm.$slots.description || _vm.description)?_c('div',[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),(_vm.shouldValidateLength)?_c('div',{class:[
|
|
14636
14927
|
'd-mb2' ],attrs:{"data-qa":"dt-input-length-description"}},[_vm._v(" "+_vm._s(_vm.validationProps.length.description)+" ")]):_vm._e()]):_vm._e(),_c('div',{class:_vm.inputWrapperClasses(),attrs:{"read-only":_vm.disabled}},[(_vm.$slots.leftIcon)?_c('span',{class:_vm.inputIconClasses('left'),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("leftIcon")],2):_vm._e(),(_vm.isTextarea)?_c('textarea',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'textarea',_vm.$attrs,false),_vm.inputListeners)):_c('input',_vm._g(_vm._b({ref:"input",class:_vm.inputClasses(),attrs:{"name":_vm.name,"type":_vm.type,"disabled":_vm.disabled,"maxlength":_vm.shouldLimitMaxLength ? _vm.validationProps.length.max : null,"data-qa":"dt-input-input"},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners)),(_vm.$slots.rightIcon)?_c('span',{class:_vm.inputIconClasses('right'),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{"focusout":_vm.onBlur}},[_vm._t("rightIcon")],2):_vm._e()])],2),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.validationMessages,"show-messages":_vm.showMessages,"data-qa":"dt-input-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)}
|
|
14637
|
-
var
|
|
14928
|
+
var inputvue_type_template_id_62e06544_staticRenderFns = []
|
|
14638
14929
|
|
|
14639
14930
|
|
|
14640
14931
|
;// CONCATENATED MODULE: ./components/input/input_constants.js
|
|
@@ -14645,7 +14936,9 @@ const INPUT_TYPES = {
|
|
|
14645
14936
|
TEXTAREA: 'textarea',
|
|
14646
14937
|
PASSWORD: 'password',
|
|
14647
14938
|
EMAIL: 'email',
|
|
14648
|
-
NUMBER: 'number'
|
|
14939
|
+
NUMBER: 'number',
|
|
14940
|
+
DATE: 'date',
|
|
14941
|
+
TIME: 'time'
|
|
14649
14942
|
};
|
|
14650
14943
|
const INPUT_SIZES = {
|
|
14651
14944
|
EXTRA_SMALL: 'xs',
|
|
@@ -15326,9 +15619,9 @@ const MessagesMixin = {
|
|
|
15326
15619
|
},
|
|
15327
15620
|
|
|
15328
15621
|
/**
|
|
15329
|
-
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea
|
|
15622
|
+
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea`, 'date', 'time'.
|
|
15330
15623
|
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
15331
|
-
* @values text, password, email, number, textarea
|
|
15624
|
+
* @values text, password, email, number, textarea, date, time
|
|
15332
15625
|
*/
|
|
15333
15626
|
type: {
|
|
15334
15627
|
type: String,
|
|
@@ -15796,8 +16089,8 @@ const MessagesMixin = {
|
|
|
15796
16089
|
;
|
|
15797
16090
|
var input_component = normalizeComponent(
|
|
15798
16091
|
input_inputvue_type_script_lang_js_,
|
|
15799
|
-
|
|
15800
|
-
|
|
16092
|
+
inputvue_type_template_id_62e06544_render,
|
|
16093
|
+
inputvue_type_template_id_62e06544_staticRenderFns,
|
|
15801
16094
|
false,
|
|
15802
16095
|
null,
|
|
15803
16096
|
null,
|
|
@@ -19868,15 +20161,15 @@ var toggle_component = normalizeComponent(
|
|
|
19868
20161
|
/* harmony default export */ const toggle = (toggle_component.exports);
|
|
19869
20162
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
19870
20163
|
|
|
19871
|
-
;// 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=
|
|
19872
|
-
var
|
|
20164
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/tooltip/tooltip.vue?vue&type=template&id=39a603a8&
|
|
20165
|
+
var tooltipvue_type_template_id_39a603a8_render = function () {
|
|
19873
20166
|
var _obj;
|
|
19874
20167
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tooltip-container"}},[_c('a',{ref:"anchor",attrs:{"tabindex":"-1","role":"presentation","data-qa":"dt-tooltip-anchor"},on:{"focusin":_vm.onEnterAnchor,"focusout":_vm.onLeaveAnchor,"mouseenter":_vm.onEnterAnchor,"mouseleave":_vm.onLeaveAnchor,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.onLeaveAnchor.apply(null, arguments)}}},[_vm._t("anchor")],2),_c('dt-lazy-show',_vm._g({ref:"content",class:[
|
|
19875
20168
|
'd-tooltip',
|
|
19876
20169
|
("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
|
|
19877
20170
|
( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
|
|
19878
20171
|
_vm.contentClass ],attrs:{"id":_vm.id,"show":_vm.isShown && (!!_vm.message.trim() || !!_vm.$slots.default),"role":"tooltip","aria-hidden":"false","data-qa":"dt-tooltip","appear":"","transition":_vm.transition}},_vm.tooltipListeners),[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],1)}
|
|
19879
|
-
var
|
|
20172
|
+
var tooltipvue_type_template_id_39a603a8_staticRenderFns = []
|
|
19880
20173
|
|
|
19881
20174
|
|
|
19882
20175
|
;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
|
|
@@ -19885,6 +20178,7 @@ var tooltipvue_type_template_id_6d30a218_staticRenderFns = []
|
|
|
19885
20178
|
* */
|
|
19886
20179
|
|
|
19887
20180
|
const TOOLTIP_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
20181
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
19888
20182
|
const TOOLTIP_KIND_MODIFIERS = {
|
|
19889
20183
|
hover: `d-tooltip--hover`,
|
|
19890
20184
|
show: `d-tooltip--show`,
|
|
@@ -20073,6 +20367,15 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20073
20367
|
transition: {
|
|
20074
20368
|
type: String,
|
|
20075
20369
|
default: 'fade'
|
|
20370
|
+
},
|
|
20371
|
+
|
|
20372
|
+
/**
|
|
20373
|
+
* Whether the tooltip will have a delay when being focused or moused over.
|
|
20374
|
+
* @values true, false
|
|
20375
|
+
*/
|
|
20376
|
+
delay: {
|
|
20377
|
+
type: Boolean,
|
|
20378
|
+
default: true
|
|
20076
20379
|
}
|
|
20077
20380
|
},
|
|
20078
20381
|
emits: [
|
|
@@ -20094,6 +20397,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20094
20397
|
return {
|
|
20095
20398
|
TOOLTIP_KIND_MODIFIERS: TOOLTIP_KIND_MODIFIERS,
|
|
20096
20399
|
tip: null,
|
|
20400
|
+
inTimer: null,
|
|
20097
20401
|
// Internal state for whether the tooltip is shown. Changing the prop
|
|
20098
20402
|
// will update this.
|
|
20099
20403
|
isShown: false,
|
|
@@ -20200,6 +20504,16 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20200
20504
|
},
|
|
20201
20505
|
|
|
20202
20506
|
onEnterAnchor(e) {
|
|
20507
|
+
if (this.delay) {
|
|
20508
|
+
this.inTimer = setTimeout(function (event) {
|
|
20509
|
+
return this.triggerShow(event);
|
|
20510
|
+
}.bind(this, e), TOOLTIP_DELAY_MS);
|
|
20511
|
+
} else {
|
|
20512
|
+
return this.triggerShow(e);
|
|
20513
|
+
}
|
|
20514
|
+
},
|
|
20515
|
+
|
|
20516
|
+
triggerShow(e) {
|
|
20203
20517
|
if (e.type === 'focusin') {
|
|
20204
20518
|
// only show tooltips on visible focus when triggered via focus.
|
|
20205
20519
|
// when the user is using the mouse they only want tooltips to display
|
|
@@ -20217,6 +20531,11 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
|
|
|
20217
20531
|
},
|
|
20218
20532
|
|
|
20219
20533
|
onLeaveAnchor() {
|
|
20534
|
+
clearTimeout(this.inTimer);
|
|
20535
|
+
return this.triggerHide();
|
|
20536
|
+
},
|
|
20537
|
+
|
|
20538
|
+
triggerHide() {
|
|
20220
20539
|
if (this.show === null) this.isShown = false;
|
|
20221
20540
|
},
|
|
20222
20541
|
|
|
@@ -20284,8 +20603,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(228);
|
|
|
20284
20603
|
|
|
20285
20604
|
var tooltip_component = normalizeComponent(
|
|
20286
20605
|
tooltip_tooltipvue_type_script_lang_js_,
|
|
20287
|
-
|
|
20288
|
-
|
|
20606
|
+
tooltipvue_type_template_id_39a603a8_render,
|
|
20607
|
+
tooltipvue_type_template_id_39a603a8_staticRenderFns,
|
|
20289
20608
|
false,
|
|
20290
20609
|
null,
|
|
20291
20610
|
null,
|
|
@@ -24563,9 +24882,9 @@ var general_row_component = normalizeComponent(
|
|
|
24563
24882
|
;// CONCATENATED MODULE: ./recipes/leftbar/general_row/index.js
|
|
24564
24883
|
|
|
24565
24884
|
|
|
24566
|
-
;// 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=
|
|
24567
|
-
var
|
|
24568
|
-
var
|
|
24885
|
+
;// 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&
|
|
24886
|
+
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))}
|
|
24887
|
+
var group_rowvue_type_template_id_d27bba34_staticRenderFns = []
|
|
24569
24888
|
|
|
24570
24889
|
|
|
24571
24890
|
;// 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&
|
|
@@ -24590,65 +24909,16 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
|
|
|
24590
24909
|
//
|
|
24591
24910
|
//
|
|
24592
24911
|
//
|
|
24593
|
-
//
|
|
24594
|
-
//
|
|
24595
|
-
//
|
|
24596
|
-
//
|
|
24597
|
-
//
|
|
24598
|
-
//
|
|
24599
|
-
//
|
|
24600
|
-
//
|
|
24601
|
-
//
|
|
24602
|
-
//
|
|
24603
|
-
//
|
|
24604
|
-
//
|
|
24605
|
-
//
|
|
24606
24912
|
|
|
24607
24913
|
|
|
24608
24914
|
/* harmony default export */ const group_rowvue_type_script_lang_js_ = ({
|
|
24609
24915
|
name: 'DtRecipeGroupRow',
|
|
24610
24916
|
components: {
|
|
24611
|
-
|
|
24917
|
+
DtIcon: icon,
|
|
24612
24918
|
DtRecipeGeneralRow: general_row
|
|
24613
24919
|
},
|
|
24614
24920
|
inheritAttrs: false,
|
|
24615
24921
|
props: {
|
|
24616
|
-
/**
|
|
24617
|
-
* Optional avatar image url.
|
|
24618
|
-
* if provided, it's also required to provide a value in the `avatarInitials` prop to use
|
|
24619
|
-
* in the alt attribute of the avatar.
|
|
24620
|
-
*/
|
|
24621
|
-
avatarSrc: {
|
|
24622
|
-
type: String,
|
|
24623
|
-
default: ''
|
|
24624
|
-
},
|
|
24625
|
-
|
|
24626
|
-
/**
|
|
24627
|
-
* Initials to display on the avatar if avatarSrc is not provided or
|
|
24628
|
-
* alt attr if avatarSrc is provided.
|
|
24629
|
-
*/
|
|
24630
|
-
avatarInitials: {
|
|
24631
|
-
type: String,
|
|
24632
|
-
default: '',
|
|
24633
|
-
required: true
|
|
24634
|
-
},
|
|
24635
|
-
|
|
24636
|
-
/**
|
|
24637
|
-
* Avatar seed, set this to the user's ID to get the same avatar background gradient each time it is displayed.
|
|
24638
|
-
*/
|
|
24639
|
-
avatarSeed: {
|
|
24640
|
-
type: String,
|
|
24641
|
-
default: null
|
|
24642
|
-
},
|
|
24643
|
-
|
|
24644
|
-
/**
|
|
24645
|
-
* Number displayed in avatar to count group members
|
|
24646
|
-
*/
|
|
24647
|
-
groupCount: {
|
|
24648
|
-
type: Number,
|
|
24649
|
-
required: true
|
|
24650
|
-
},
|
|
24651
|
-
|
|
24652
24922
|
/**
|
|
24653
24923
|
* Screen reader will read out the number of users in the group using this text. Ex: "2 users"
|
|
24654
24924
|
*/
|
|
@@ -24727,8 +24997,8 @@ var group_rowvue_type_template_id_3222d6a1_staticRenderFns = []
|
|
|
24727
24997
|
;
|
|
24728
24998
|
var group_row_component = normalizeComponent(
|
|
24729
24999
|
group_row_group_rowvue_type_script_lang_js_,
|
|
24730
|
-
|
|
24731
|
-
|
|
25000
|
+
group_rowvue_type_template_id_d27bba34_render,
|
|
25001
|
+
group_rowvue_type_template_id_d27bba34_staticRenderFns,
|
|
24732
25002
|
false,
|
|
24733
25003
|
null,
|
|
24734
25004
|
null,
|
|
@@ -25058,6 +25328,8 @@ var contact_row_component = normalizeComponent(
|
|
|
25058
25328
|
|
|
25059
25329
|
|
|
25060
25330
|
|
|
25331
|
+
|
|
25332
|
+
|
|
25061
25333
|
|
|
25062
25334
|
|
|
25063
25335
|
|