@dialpad/dialtone-vue 2.74.1 → 2.74.3
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 +15 -0
- package/dist/dialtone-vue.common.js +66 -34
- package/dist/dialtone-vue.umd.js +66 -34
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [2.74.3](https://github.com/dialpad/dialtone-vue/compare/v2.74.2...v2.74.3) (2023-03-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Avatar:** null protect firstElementChild ([8cc0b40](https://github.com/dialpad/dialtone-vue/commit/8cc0b409fa2347fba70cdabe9afd47d7cd0c108f))
|
|
7
|
+
|
|
8
|
+
## [2.74.2](https://github.com/dialpad/dialtone-vue/compare/v2.74.1...v2.74.2) (2023-03-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **Image Viewer:** dt image viewer visual testing ([#865](https://github.com/dialpad/dialtone-vue/issues/865)) ([f530286](https://github.com/dialpad/dialtone-vue/commit/f5302866f7c4d10a5be604d2fbd108fc71af9e28))
|
|
14
|
+
* **Recipe Callbar Btn:** transparent background when btn is in disabled state ([#875](https://github.com/dialpad/dialtone-vue/issues/875)) ([fff9350](https://github.com/dialpad/dialtone-vue/commit/fff93500ac01ec626c78f3d0fde7757b82f1f800))
|
|
15
|
+
|
|
1
16
|
## [2.74.1](https://github.com/dialpad/dialtone-vue/compare/v2.74.0...v2.74.1) (2023-03-30)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -2378,7 +2378,7 @@ if (typeof window !== 'undefined') {
|
|
|
2378
2378
|
// Indicate to webpack that this file can be concatenated
|
|
2379
2379
|
/* harmony default export */ const setPublicPath = (null);
|
|
2380
2380
|
|
|
2381
|
-
;// 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/avatar/avatar.vue?vue&type=template&id=
|
|
2381
|
+
;// 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/avatar/avatar.vue?vue&type=template&id=f4cb04e8&
|
|
2382
2382
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.avatarClasses,style:(_vm.initialKindStyle),attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_c('div',{ref:"canvas",class:[_vm.canvasClass, 'd-avatar__canvas']},[(_vm.showDefaultSlot)?_vm._t("default"):_vm._e(),(_vm.showInitials)?_c('span',{staticClass:"d-ps-absolute d-zi-base",class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count d-zi-base1",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({staticClass:"d-zi-base1",class:[
|
|
2383
2383
|
'd-avatar__presence',
|
|
2384
2384
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -3109,10 +3109,12 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3109
3109
|
|
|
3110
3110
|
methods: {
|
|
3111
3111
|
async init() {
|
|
3112
|
+
var _this$$refs$canvas;
|
|
3113
|
+
|
|
3112
3114
|
if (this.initializing) return;
|
|
3113
3115
|
this.kind = null;
|
|
3114
3116
|
await this.$nextTick();
|
|
3115
|
-
const firstChild = this.$refs.canvas.firstElementChild || this.$refs.canvas;
|
|
3117
|
+
const firstChild = ((_this$$refs$canvas = this.$refs.canvas) === null || _this$$refs$canvas === void 0 ? void 0 : _this$$refs$canvas.firstElementChild) || this.$refs.canvas;
|
|
3116
3118
|
this.formatInitials(this.initials);
|
|
3117
3119
|
this.setKind(firstChild);
|
|
3118
3120
|
this.kindHandler(firstChild);
|
|
@@ -14677,9 +14679,9 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14677
14679
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14678
14680
|
|
|
14679
14681
|
|
|
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=
|
|
14681
|
-
var
|
|
14682
|
-
var
|
|
14682
|
+
;// 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=18c60894&
|
|
14683
|
+
var image_viewervue_type_template_id_18c60894_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.openModal}},[_c('img',{class:_vm.imageButtonClass,attrs:{"src":_vm.imageSrc,"alt":_vm.imageAlt}})]),(_vm.isOpen)?_c('portal',[_c('div',_vm._g({staticClass:"d-modal",attrs:{"aria-hidden":!_vm.isOpen ? 'true' : 'false',"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)}
|
|
14684
|
+
var image_viewervue_type_template_id_18c60894_staticRenderFns = []
|
|
14683
14685
|
|
|
14684
14686
|
|
|
14685
14687
|
;// 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&
|
|
@@ -14760,6 +14762,18 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14760
14762
|
},
|
|
14761
14763
|
mixins: [modal],
|
|
14762
14764
|
props: {
|
|
14765
|
+
/**
|
|
14766
|
+
* Controls whether the image modal is shown. Leaving this null will have the image modal
|
|
14767
|
+
* trigger on click by default.
|
|
14768
|
+
* If you set this value, the default trigger behavior will be disabled and you can control it as you need.
|
|
14769
|
+
* Supports .sync modifier
|
|
14770
|
+
* @values null, true, false
|
|
14771
|
+
*/
|
|
14772
|
+
open: {
|
|
14773
|
+
type: Boolean,
|
|
14774
|
+
default: null
|
|
14775
|
+
},
|
|
14776
|
+
|
|
14763
14777
|
/**
|
|
14764
14778
|
* URL of the image to be shown
|
|
14765
14779
|
*/
|
|
@@ -14801,19 +14815,28 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14801
14815
|
required: true
|
|
14802
14816
|
}
|
|
14803
14817
|
},
|
|
14818
|
+
emits: [
|
|
14819
|
+
/**
|
|
14820
|
+
* Emitted when popover is shown or hidden
|
|
14821
|
+
*
|
|
14822
|
+
* @event opened
|
|
14823
|
+
* @type {Boolean}
|
|
14824
|
+
*/
|
|
14825
|
+
'opened',
|
|
14826
|
+
/**
|
|
14827
|
+
* Event fired to sync the open prop with the parent component
|
|
14828
|
+
* @event update:open
|
|
14829
|
+
*/
|
|
14830
|
+
'update:open'],
|
|
14804
14831
|
|
|
14805
14832
|
data() {
|
|
14806
14833
|
return {
|
|
14807
|
-
|
|
14808
|
-
|
|
14834
|
+
showCloseButton: true,
|
|
14835
|
+
isOpen: false
|
|
14809
14836
|
};
|
|
14810
14837
|
},
|
|
14811
14838
|
|
|
14812
14839
|
computed: {
|
|
14813
|
-
isOpen() {
|
|
14814
|
-
return `${!this.show}`;
|
|
14815
|
-
},
|
|
14816
|
-
|
|
14817
14840
|
modalListeners() {
|
|
14818
14841
|
return { ...this.$listeners,
|
|
14819
14842
|
click: event => {
|
|
@@ -14836,7 +14859,7 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14836
14859
|
|
|
14837
14860
|
},
|
|
14838
14861
|
watch: {
|
|
14839
|
-
|
|
14862
|
+
isOpen: {
|
|
14840
14863
|
immediate: true,
|
|
14841
14864
|
|
|
14842
14865
|
handler(isShowing) {
|
|
@@ -14852,19 +14875,38 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14852
14875
|
}
|
|
14853
14876
|
}
|
|
14854
14877
|
|
|
14878
|
+
},
|
|
14879
|
+
open: {
|
|
14880
|
+
handler: function (open) {
|
|
14881
|
+
if (open !== null) {
|
|
14882
|
+
this.isOpen = open;
|
|
14883
|
+
}
|
|
14884
|
+
},
|
|
14885
|
+
immediate: true
|
|
14855
14886
|
}
|
|
14856
14887
|
},
|
|
14857
14888
|
methods: {
|
|
14858
|
-
|
|
14859
|
-
|
|
14889
|
+
openModal() {
|
|
14890
|
+
// Has custom control passed in
|
|
14891
|
+
if (this.open !== null) {
|
|
14892
|
+
return;
|
|
14893
|
+
}
|
|
14894
|
+
|
|
14895
|
+
this.isOpen = true;
|
|
14860
14896
|
this.showCloseButton = true;
|
|
14897
|
+
this.$emit('opened', true);
|
|
14861
14898
|
setTimeout(() => {
|
|
14862
14899
|
this.focusAfterOpen();
|
|
14863
14900
|
});
|
|
14864
14901
|
},
|
|
14865
14902
|
|
|
14866
14903
|
close() {
|
|
14867
|
-
this.
|
|
14904
|
+
this.isOpen = false;
|
|
14905
|
+
this.$emit('opened', false);
|
|
14906
|
+
|
|
14907
|
+
if (this.open !== null) {
|
|
14908
|
+
this.$emit('update:open', false);
|
|
14909
|
+
}
|
|
14868
14910
|
},
|
|
14869
14911
|
|
|
14870
14912
|
focusAfterOpen() {
|
|
@@ -14874,7 +14916,7 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14874
14916
|
},
|
|
14875
14917
|
|
|
14876
14918
|
trapFocus(e) {
|
|
14877
|
-
if (this.
|
|
14919
|
+
if (this.isOpen) {
|
|
14878
14920
|
this.focusTrappedTabPress(e);
|
|
14879
14921
|
}
|
|
14880
14922
|
}
|
|
@@ -14893,8 +14935,8 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14893
14935
|
;
|
|
14894
14936
|
var image_viewer_component = normalizeComponent(
|
|
14895
14937
|
image_viewer_image_viewervue_type_script_lang_js_,
|
|
14896
|
-
|
|
14897
|
-
|
|
14938
|
+
image_viewervue_type_template_id_18c60894_render,
|
|
14939
|
+
image_viewervue_type_template_id_18c60894_staticRenderFns,
|
|
14898
14940
|
false,
|
|
14899
14941
|
null,
|
|
14900
14942
|
null,
|
|
@@ -22616,9 +22658,9 @@ var combobox_multi_select_component = normalizeComponent(
|
|
|
22616
22658
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|
|
22617
22659
|
|
|
22618
22660
|
|
|
22619
|
-
;// 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/buttons/callbar_button/callbar_button.vue?vue&type=template&id=
|
|
22620
|
-
var
|
|
22621
|
-
var
|
|
22661
|
+
;// 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/buttons/callbar_button/callbar_button.vue?vue&type=template&id=9499378e&
|
|
22662
|
+
var callbar_buttonvue_type_template_id_9499378e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-tooltip',{attrs:{"id":_vm.id,"offset":[0, -12]},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('span',{class:{ 'd-c-not-allowed': _vm.disabled }},[_c('dt-button',_vm._g({class:_vm.callbarButtonClass,attrs:{"importance":_vm.circle ? 'outlined' : 'clear',"kind":"muted","icon-position":"top","aria-disabled":_vm.disabled,"aria-label":_vm.ariaLabel,"label-class":_vm.callbarButtonTextClass,"width":_vm.buttonWidth}},_vm.$listeners),[_vm._t("default"),_vm._t("icon",null,{"slot":"icon"})],2)],1)]},proxy:true}],null,true)},[_vm._t("tooltip")],2)}
|
|
22663
|
+
var callbar_buttonvue_type_template_id_9499378e_staticRenderFns = []
|
|
22622
22664
|
|
|
22623
22665
|
|
|
22624
22666
|
;// 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/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js&
|
|
@@ -22754,16 +22796,6 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
22754
22796
|
type: String,
|
|
22755
22797
|
default: 'xl',
|
|
22756
22798
|
validator: size => VALID_WIDTH_SIZE.includes(size)
|
|
22757
|
-
},
|
|
22758
|
-
|
|
22759
|
-
/**
|
|
22760
|
-
* Whether to show the tooltip text. Sometimes we want to show it when the button is disabled.
|
|
22761
|
-
* @values true, false
|
|
22762
|
-
* @see https://dialpad.design/components/button.html#disabled
|
|
22763
|
-
*/
|
|
22764
|
-
showTooltip: {
|
|
22765
|
-
type: Boolean,
|
|
22766
|
-
default: false
|
|
22767
22799
|
}
|
|
22768
22800
|
},
|
|
22769
22801
|
emits: [
|
|
@@ -22780,7 +22812,7 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
22780
22812
|
'dt-recipe-callbar-button--circle': this.circle,
|
|
22781
22813
|
'dt-recipe-callbar-button--active': this.active,
|
|
22782
22814
|
'dt-recipe-callbar-button--danger': this.danger,
|
|
22783
|
-
'd-btn--disabled': this.disabled,
|
|
22815
|
+
'd-btn--disabled d-bgc-transparent': this.disabled,
|
|
22784
22816
|
'd-fc-primary': !this.disabled
|
|
22785
22817
|
}];
|
|
22786
22818
|
},
|
|
@@ -22821,8 +22853,8 @@ var callbar_buttonvue_type_style_index_0_lang_less_ = __webpack_require__(759);
|
|
|
22821
22853
|
|
|
22822
22854
|
var callbar_button_component = normalizeComponent(
|
|
22823
22855
|
callbar_button_callbar_buttonvue_type_script_lang_js_,
|
|
22824
|
-
|
|
22825
|
-
|
|
22856
|
+
callbar_buttonvue_type_template_id_9499378e_render,
|
|
22857
|
+
callbar_buttonvue_type_template_id_9499378e_staticRenderFns,
|
|
22826
22858
|
false,
|
|
22827
22859
|
null,
|
|
22828
22860
|
null,
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -2388,7 +2388,7 @@ if (typeof window !== 'undefined') {
|
|
|
2388
2388
|
// Indicate to webpack that this file can be concatenated
|
|
2389
2389
|
/* harmony default export */ const setPublicPath = (null);
|
|
2390
2390
|
|
|
2391
|
-
;// 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/avatar/avatar.vue?vue&type=template&id=
|
|
2391
|
+
;// 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/avatar/avatar.vue?vue&type=template&id=f4cb04e8&
|
|
2392
2392
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.avatarClasses,style:(_vm.initialKindStyle),attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_c('div',{ref:"canvas",class:[_vm.canvasClass, 'd-avatar__canvas']},[(_vm.showDefaultSlot)?_vm._t("default"):_vm._e(),(_vm.showInitials)?_c('span',{staticClass:"d-ps-absolute d-zi-base",class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count d-zi-base1",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({staticClass:"d-zi-base1",class:[
|
|
2393
2393
|
'd-avatar__presence',
|
|
2394
2394
|
_vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
|
|
@@ -3119,10 +3119,12 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
|
|
|
3119
3119
|
|
|
3120
3120
|
methods: {
|
|
3121
3121
|
async init() {
|
|
3122
|
+
var _this$$refs$canvas;
|
|
3123
|
+
|
|
3122
3124
|
if (this.initializing) return;
|
|
3123
3125
|
this.kind = null;
|
|
3124
3126
|
await this.$nextTick();
|
|
3125
|
-
const firstChild = this.$refs.canvas.firstElementChild || this.$refs.canvas;
|
|
3127
|
+
const firstChild = ((_this$$refs$canvas = this.$refs.canvas) === null || _this$$refs$canvas === void 0 ? void 0 : _this$$refs$canvas.firstElementChild) || this.$refs.canvas;
|
|
3126
3128
|
this.formatInitials(this.initials);
|
|
3127
3129
|
this.setKind(firstChild);
|
|
3128
3130
|
this.kindHandler(firstChild);
|
|
@@ -14687,9 +14689,9 @@ var dropdown_separator_component = normalizeComponent(
|
|
|
14687
14689
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
14688
14690
|
|
|
14689
14691
|
|
|
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=
|
|
14691
|
-
var
|
|
14692
|
-
var
|
|
14692
|
+
;// 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=18c60894&
|
|
14693
|
+
var image_viewervue_type_template_id_18c60894_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.openModal}},[_c('img',{class:_vm.imageButtonClass,attrs:{"src":_vm.imageSrc,"alt":_vm.imageAlt}})]),(_vm.isOpen)?_c('portal',[_c('div',_vm._g({staticClass:"d-modal",attrs:{"aria-hidden":!_vm.isOpen ? 'true' : 'false',"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)}
|
|
14694
|
+
var image_viewervue_type_template_id_18c60894_staticRenderFns = []
|
|
14693
14695
|
|
|
14694
14696
|
|
|
14695
14697
|
;// 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&
|
|
@@ -14770,6 +14772,18 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14770
14772
|
},
|
|
14771
14773
|
mixins: [modal],
|
|
14772
14774
|
props: {
|
|
14775
|
+
/**
|
|
14776
|
+
* Controls whether the image modal is shown. Leaving this null will have the image modal
|
|
14777
|
+
* trigger on click by default.
|
|
14778
|
+
* If you set this value, the default trigger behavior will be disabled and you can control it as you need.
|
|
14779
|
+
* Supports .sync modifier
|
|
14780
|
+
* @values null, true, false
|
|
14781
|
+
*/
|
|
14782
|
+
open: {
|
|
14783
|
+
type: Boolean,
|
|
14784
|
+
default: null
|
|
14785
|
+
},
|
|
14786
|
+
|
|
14773
14787
|
/**
|
|
14774
14788
|
* URL of the image to be shown
|
|
14775
14789
|
*/
|
|
@@ -14811,19 +14825,28 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14811
14825
|
required: true
|
|
14812
14826
|
}
|
|
14813
14827
|
},
|
|
14828
|
+
emits: [
|
|
14829
|
+
/**
|
|
14830
|
+
* Emitted when popover is shown or hidden
|
|
14831
|
+
*
|
|
14832
|
+
* @event opened
|
|
14833
|
+
* @type {Boolean}
|
|
14834
|
+
*/
|
|
14835
|
+
'opened',
|
|
14836
|
+
/**
|
|
14837
|
+
* Event fired to sync the open prop with the parent component
|
|
14838
|
+
* @event update:open
|
|
14839
|
+
*/
|
|
14840
|
+
'update:open'],
|
|
14814
14841
|
|
|
14815
14842
|
data() {
|
|
14816
14843
|
return {
|
|
14817
|
-
|
|
14818
|
-
|
|
14844
|
+
showCloseButton: true,
|
|
14845
|
+
isOpen: false
|
|
14819
14846
|
};
|
|
14820
14847
|
},
|
|
14821
14848
|
|
|
14822
14849
|
computed: {
|
|
14823
|
-
isOpen() {
|
|
14824
|
-
return `${!this.show}`;
|
|
14825
|
-
},
|
|
14826
|
-
|
|
14827
14850
|
modalListeners() {
|
|
14828
14851
|
return { ...this.$listeners,
|
|
14829
14852
|
click: event => {
|
|
@@ -14846,7 +14869,7 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14846
14869
|
|
|
14847
14870
|
},
|
|
14848
14871
|
watch: {
|
|
14849
|
-
|
|
14872
|
+
isOpen: {
|
|
14850
14873
|
immediate: true,
|
|
14851
14874
|
|
|
14852
14875
|
handler(isShowing) {
|
|
@@ -14862,19 +14885,38 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14862
14885
|
}
|
|
14863
14886
|
}
|
|
14864
14887
|
|
|
14888
|
+
},
|
|
14889
|
+
open: {
|
|
14890
|
+
handler: function (open) {
|
|
14891
|
+
if (open !== null) {
|
|
14892
|
+
this.isOpen = open;
|
|
14893
|
+
}
|
|
14894
|
+
},
|
|
14895
|
+
immediate: true
|
|
14865
14896
|
}
|
|
14866
14897
|
},
|
|
14867
14898
|
methods: {
|
|
14868
|
-
|
|
14869
|
-
|
|
14899
|
+
openModal() {
|
|
14900
|
+
// Has custom control passed in
|
|
14901
|
+
if (this.open !== null) {
|
|
14902
|
+
return;
|
|
14903
|
+
}
|
|
14904
|
+
|
|
14905
|
+
this.isOpen = true;
|
|
14870
14906
|
this.showCloseButton = true;
|
|
14907
|
+
this.$emit('opened', true);
|
|
14871
14908
|
setTimeout(() => {
|
|
14872
14909
|
this.focusAfterOpen();
|
|
14873
14910
|
});
|
|
14874
14911
|
},
|
|
14875
14912
|
|
|
14876
14913
|
close() {
|
|
14877
|
-
this.
|
|
14914
|
+
this.isOpen = false;
|
|
14915
|
+
this.$emit('opened', false);
|
|
14916
|
+
|
|
14917
|
+
if (this.open !== null) {
|
|
14918
|
+
this.$emit('update:open', false);
|
|
14919
|
+
}
|
|
14878
14920
|
},
|
|
14879
14921
|
|
|
14880
14922
|
focusAfterOpen() {
|
|
@@ -14884,7 +14926,7 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14884
14926
|
},
|
|
14885
14927
|
|
|
14886
14928
|
trapFocus(e) {
|
|
14887
|
-
if (this.
|
|
14929
|
+
if (this.isOpen) {
|
|
14888
14930
|
this.focusTrappedTabPress(e);
|
|
14889
14931
|
}
|
|
14890
14932
|
}
|
|
@@ -14903,8 +14945,8 @@ var image_viewervue_type_template_id_3214f60f_staticRenderFns = []
|
|
|
14903
14945
|
;
|
|
14904
14946
|
var image_viewer_component = normalizeComponent(
|
|
14905
14947
|
image_viewer_image_viewervue_type_script_lang_js_,
|
|
14906
|
-
|
|
14907
|
-
|
|
14948
|
+
image_viewervue_type_template_id_18c60894_render,
|
|
14949
|
+
image_viewervue_type_template_id_18c60894_staticRenderFns,
|
|
14908
14950
|
false,
|
|
14909
14951
|
null,
|
|
14910
14952
|
null,
|
|
@@ -22626,9 +22668,9 @@ var combobox_multi_select_component = normalizeComponent(
|
|
|
22626
22668
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|
|
22627
22669
|
|
|
22628
22670
|
|
|
22629
|
-
;// 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/buttons/callbar_button/callbar_button.vue?vue&type=template&id=
|
|
22630
|
-
var
|
|
22631
|
-
var
|
|
22671
|
+
;// 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/buttons/callbar_button/callbar_button.vue?vue&type=template&id=9499378e&
|
|
22672
|
+
var callbar_buttonvue_type_template_id_9499378e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-tooltip',{attrs:{"id":_vm.id,"offset":[0, -12]},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('span',{class:{ 'd-c-not-allowed': _vm.disabled }},[_c('dt-button',_vm._g({class:_vm.callbarButtonClass,attrs:{"importance":_vm.circle ? 'outlined' : 'clear',"kind":"muted","icon-position":"top","aria-disabled":_vm.disabled,"aria-label":_vm.ariaLabel,"label-class":_vm.callbarButtonTextClass,"width":_vm.buttonWidth}},_vm.$listeners),[_vm._t("default"),_vm._t("icon",null,{"slot":"icon"})],2)],1)]},proxy:true}],null,true)},[_vm._t("tooltip")],2)}
|
|
22673
|
+
var callbar_buttonvue_type_template_id_9499378e_staticRenderFns = []
|
|
22632
22674
|
|
|
22633
22675
|
|
|
22634
22676
|
;// 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/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js&
|
|
@@ -22764,16 +22806,6 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
22764
22806
|
type: String,
|
|
22765
22807
|
default: 'xl',
|
|
22766
22808
|
validator: size => VALID_WIDTH_SIZE.includes(size)
|
|
22767
|
-
},
|
|
22768
|
-
|
|
22769
|
-
/**
|
|
22770
|
-
* Whether to show the tooltip text. Sometimes we want to show it when the button is disabled.
|
|
22771
|
-
* @values true, false
|
|
22772
|
-
* @see https://dialpad.design/components/button.html#disabled
|
|
22773
|
-
*/
|
|
22774
|
-
showTooltip: {
|
|
22775
|
-
type: Boolean,
|
|
22776
|
-
default: false
|
|
22777
22809
|
}
|
|
22778
22810
|
},
|
|
22779
22811
|
emits: [
|
|
@@ -22790,7 +22822,7 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
22790
22822
|
'dt-recipe-callbar-button--circle': this.circle,
|
|
22791
22823
|
'dt-recipe-callbar-button--active': this.active,
|
|
22792
22824
|
'dt-recipe-callbar-button--danger': this.danger,
|
|
22793
|
-
'd-btn--disabled': this.disabled,
|
|
22825
|
+
'd-btn--disabled d-bgc-transparent': this.disabled,
|
|
22794
22826
|
'd-fc-primary': !this.disabled
|
|
22795
22827
|
}];
|
|
22796
22828
|
},
|
|
@@ -22831,8 +22863,8 @@ var callbar_buttonvue_type_style_index_0_lang_less_ = __webpack_require__(736);
|
|
|
22831
22863
|
|
|
22832
22864
|
var callbar_button_component = normalizeComponent(
|
|
22833
22865
|
callbar_button_callbar_buttonvue_type_script_lang_js_,
|
|
22834
|
-
|
|
22835
|
-
|
|
22866
|
+
callbar_buttonvue_type_template_id_9499378e_render,
|
|
22867
|
+
callbar_buttonvue_type_template_id_9499378e_staticRenderFns,
|
|
22836
22868
|
false,
|
|
22837
22869
|
null,
|
|
22838
22870
|
null,
|