@dialpad/dialtone-vue 3.56.1 → 3.56.2
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 +8 -0
- package/dist/dialtone-vue.common.js +73 -33
- package/dist/dialtone-vue.umd.js +73 -33
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [3.56.2](https://github.com/dialpad/dialtone-vue/compare/v3.56.1...v3.56.2) (2023-03-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Image Viewer:** dt image viewer visual testing ([#874](https://github.com/dialpad/dialtone-vue/issues/874)) ([5400412](https://github.com/dialpad/dialtone-vue/commit/5400412963d2d3408e1556f6ca0f986a8bdc4c3d))
|
|
7
|
+
* **Recipe Callbar Btn:** transparent background when btn is in disabled state ([#876](https://github.com/dialpad/dialtone-vue/issues/876)) ([1031e72](https://github.com/dialpad/dialtone-vue/commit/1031e72bcb8ee1d441a4b205bfbbca91536cd74b))
|
|
8
|
+
|
|
1
9
|
## [3.56.1](https://github.com/dialpad/dialtone-vue/compare/v3.56.0...v3.56.1) (2023-03-30)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -12762,18 +12762,18 @@ const dropdown_separator_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)
|
|
|
12762
12762
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
12763
12763
|
|
|
12764
12764
|
|
|
12765
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=template&id=
|
|
12765
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=template&id=9b4c7502
|
|
12766
12766
|
|
|
12767
|
-
const
|
|
12768
|
-
const
|
|
12769
|
-
const
|
|
12767
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_1 = ["src", "alt"];
|
|
12768
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_2 = ["aria-hidden"];
|
|
12769
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_3 = {
|
|
12770
12770
|
"data-qa": "dt-image-viewer-full",
|
|
12771
12771
|
class: "d-p0 d-bar0 d-wmx80p d-hmx80p",
|
|
12772
12772
|
role: "dialog",
|
|
12773
12773
|
"aria-modal": "true"
|
|
12774
12774
|
};
|
|
12775
|
-
const
|
|
12776
|
-
function
|
|
12775
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_4 = ["src", "alt"];
|
|
12776
|
+
function image_viewervue_type_template_id_9b4c7502_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12777
12777
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
12778
12778
|
|
|
12779
12779
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
@@ -12782,19 +12782,19 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12782
12782
|
"data-qa": "dt-image-viewer-preview",
|
|
12783
12783
|
"aria-label": $props.ariaLabel,
|
|
12784
12784
|
importance: "clear",
|
|
12785
|
-
onClick: $options.
|
|
12785
|
+
onClick: $options.openModal
|
|
12786
12786
|
}, {
|
|
12787
12787
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12788
12788
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.imageButtonClass),
|
|
12789
12789
|
src: $props.imageSrc,
|
|
12790
12790
|
alt: $props.imageAlt
|
|
12791
|
-
}, null, 10,
|
|
12791
|
+
}, null, 10, image_viewervue_type_template_id_9b4c7502_hoisted_1)]),
|
|
12792
12792
|
_: 1
|
|
12793
|
-
}, 8, ["aria-label", "onClick"]), $data.
|
|
12793
|
+
}, 8, ["aria-label", "onClick"]), $data.isOpen ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Teleport, {
|
|
12794
12794
|
key: 0,
|
|
12795
12795
|
to: "body"
|
|
12796
12796
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
12797
|
-
"aria-hidden":
|
|
12797
|
+
"aria-hidden": !$data.isOpen ? 'true' : 'false',
|
|
12798
12798
|
class: "d-modal",
|
|
12799
12799
|
"data-qa": "dt-modal"
|
|
12800
12800
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.modalListeners, true), {
|
|
@@ -12802,11 +12802,11 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12802
12802
|
onMouseleave: _cache[1] || (_cache[1] = $event => $data.showCloseButton = false),
|
|
12803
12803
|
onFocusin: _cache[2] || (_cache[2] = $event => $data.showCloseButton = true),
|
|
12804
12804
|
onFocusout: _cache[3] || (_cache[3] = $event => $data.showCloseButton = false)
|
|
12805
|
-
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
12805
|
+
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", image_viewervue_type_template_id_9b4c7502_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12806
12806
|
class: "d-wmx100p d-hmx100p",
|
|
12807
12807
|
src: $props.imageSrc,
|
|
12808
12808
|
alt: $props.imageAlt
|
|
12809
|
-
}, null, 8,
|
|
12809
|
+
}, null, 8, image_viewervue_type_template_id_9b4c7502_hoisted_4)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Transition, {
|
|
12810
12810
|
name: "fade"
|
|
12811
12811
|
}, {
|
|
12812
12812
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [$data.showCloseButton ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, {
|
|
@@ -12828,9 +12828,9 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12828
12828
|
_: 1
|
|
12829
12829
|
}, 8, ["aria-label", "onClick"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
12830
12830
|
_: 1
|
|
12831
|
-
})], 16,
|
|
12831
|
+
})], 16, image_viewervue_type_template_id_9b4c7502_hoisted_2)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
12832
12832
|
}
|
|
12833
|
-
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=template&id=
|
|
12833
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=template&id=9b4c7502
|
|
12834
12834
|
|
|
12835
12835
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=script&lang=js
|
|
12836
12836
|
|
|
@@ -12845,6 +12845,18 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12845
12845
|
},
|
|
12846
12846
|
mixins: [modal],
|
|
12847
12847
|
props: {
|
|
12848
|
+
/**
|
|
12849
|
+
* Controls whether the image modal is shown. Leaving this null will have the image modal
|
|
12850
|
+
* trigger on click by default.
|
|
12851
|
+
* If you set this value, the default trigger behavior will be disabled and you can control it as you need.
|
|
12852
|
+
* Supports .sync modifier
|
|
12853
|
+
* @values null, true, false
|
|
12854
|
+
*/
|
|
12855
|
+
open: {
|
|
12856
|
+
type: Boolean,
|
|
12857
|
+
default: null
|
|
12858
|
+
},
|
|
12859
|
+
|
|
12848
12860
|
/**
|
|
12849
12861
|
* URL of the image to be shown
|
|
12850
12862
|
*/
|
|
@@ -12886,19 +12898,28 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12886
12898
|
required: true
|
|
12887
12899
|
}
|
|
12888
12900
|
},
|
|
12901
|
+
emits: [
|
|
12902
|
+
/**
|
|
12903
|
+
* Emitted when popover is shown or hidden
|
|
12904
|
+
*
|
|
12905
|
+
* @event opened
|
|
12906
|
+
* @type {Boolean}
|
|
12907
|
+
*/
|
|
12908
|
+
'opened',
|
|
12909
|
+
/**
|
|
12910
|
+
* Event fired to sync the open prop with the parent component
|
|
12911
|
+
* @event update:open
|
|
12912
|
+
*/
|
|
12913
|
+
'update:open'],
|
|
12889
12914
|
|
|
12890
12915
|
data() {
|
|
12891
12916
|
return {
|
|
12892
|
-
|
|
12893
|
-
|
|
12917
|
+
showCloseButton: true,
|
|
12918
|
+
isOpen: false
|
|
12894
12919
|
};
|
|
12895
12920
|
},
|
|
12896
12921
|
|
|
12897
12922
|
computed: {
|
|
12898
|
-
isOpen() {
|
|
12899
|
-
return `${!this.show}`;
|
|
12900
|
-
},
|
|
12901
|
-
|
|
12902
12923
|
modalListeners() {
|
|
12903
12924
|
return {
|
|
12904
12925
|
click: event => {
|
|
@@ -12921,7 +12942,7 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12921
12942
|
|
|
12922
12943
|
},
|
|
12923
12944
|
watch: {
|
|
12924
|
-
|
|
12945
|
+
isOpen: {
|
|
12925
12946
|
immediate: true,
|
|
12926
12947
|
|
|
12927
12948
|
handler(isShowing) {
|
|
@@ -12937,19 +12958,38 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12937
12958
|
}
|
|
12938
12959
|
}
|
|
12939
12960
|
|
|
12961
|
+
},
|
|
12962
|
+
open: {
|
|
12963
|
+
handler: function (open) {
|
|
12964
|
+
if (open !== null) {
|
|
12965
|
+
this.isOpen = open;
|
|
12966
|
+
}
|
|
12967
|
+
},
|
|
12968
|
+
immediate: true
|
|
12940
12969
|
}
|
|
12941
12970
|
},
|
|
12942
12971
|
methods: {
|
|
12943
|
-
|
|
12944
|
-
|
|
12972
|
+
openModal() {
|
|
12973
|
+
// Has custom control passed in
|
|
12974
|
+
if (this.open !== null) {
|
|
12975
|
+
return;
|
|
12976
|
+
}
|
|
12977
|
+
|
|
12978
|
+
this.isOpen = true;
|
|
12945
12979
|
this.showCloseButton = true;
|
|
12980
|
+
this.$emit('opened', true);
|
|
12946
12981
|
setTimeout(() => {
|
|
12947
12982
|
this.focusAfterOpen();
|
|
12948
12983
|
});
|
|
12949
12984
|
},
|
|
12950
12985
|
|
|
12951
12986
|
close() {
|
|
12952
|
-
this.
|
|
12987
|
+
this.isOpen = false;
|
|
12988
|
+
this.$emit('opened', false);
|
|
12989
|
+
|
|
12990
|
+
if (this.open !== null) {
|
|
12991
|
+
this.$emit('update:open', false);
|
|
12992
|
+
}
|
|
12953
12993
|
},
|
|
12954
12994
|
|
|
12955
12995
|
focusAfterOpen() {
|
|
@@ -12959,7 +12999,7 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12959
12999
|
},
|
|
12960
13000
|
|
|
12961
13001
|
trapFocus(e) {
|
|
12962
|
-
if (this.
|
|
13002
|
+
if (this.isOpen) {
|
|
12963
13003
|
this.focusTrappedTabPress(e);
|
|
12964
13004
|
}
|
|
12965
13005
|
}
|
|
@@ -12974,7 +13014,7 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12974
13014
|
|
|
12975
13015
|
|
|
12976
13016
|
;
|
|
12977
|
-
const image_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(image_viewervue_type_script_lang_js, [['render',
|
|
13017
|
+
const image_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(image_viewervue_type_script_lang_js, [['render',image_viewervue_type_template_id_9b4c7502_render]])
|
|
12978
13018
|
|
|
12979
13019
|
/* harmony default export */ const image_viewer = (image_viewer_exports_);
|
|
12980
13020
|
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
@@ -21494,9 +21534,9 @@ const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
21494
21534
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|
|
21495
21535
|
|
|
21496
21536
|
|
|
21497
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=
|
|
21537
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=b3920b20
|
|
21498
21538
|
|
|
21499
|
-
function
|
|
21539
|
+
function callbar_buttonvue_type_template_id_b3920b20_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21500
21540
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
21501
21541
|
|
|
21502
21542
|
const _component_dt_tooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-tooltip");
|
|
@@ -21526,7 +21566,7 @@ function callbar_buttonvue_type_template_id_a276c32c_render(_ctx, _cache, $props
|
|
|
21526
21566
|
_: 3
|
|
21527
21567
|
}, 8, ["id"]);
|
|
21528
21568
|
}
|
|
21529
|
-
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=
|
|
21569
|
+
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=b3920b20
|
|
21530
21570
|
|
|
21531
21571
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js
|
|
21532
21572
|
|
|
@@ -21638,7 +21678,7 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
21638
21678
|
'd-btn--icon-only': this.circle,
|
|
21639
21679
|
'dt-recipe-callbar-button--active': this.active,
|
|
21640
21680
|
'dt-recipe-callbar-button--danger': this.danger,
|
|
21641
|
-
'd-btn--disabled': this.disabled,
|
|
21681
|
+
'd-btn--disabled d-bgc-transparent': this.disabled,
|
|
21642
21682
|
'd-fc-primary': !this.disabled
|
|
21643
21683
|
}];
|
|
21644
21684
|
},
|
|
@@ -21664,10 +21704,10 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
21664
21704
|
});
|
|
21665
21705
|
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js
|
|
21666
21706
|
|
|
21667
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=
|
|
21707
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=b3920b20&lang=less
|
|
21668
21708
|
// extracted by mini-css-extract-plugin
|
|
21669
21709
|
|
|
21670
|
-
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=
|
|
21710
|
+
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=b3920b20&lang=less
|
|
21671
21711
|
|
|
21672
21712
|
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue
|
|
21673
21713
|
|
|
@@ -21677,7 +21717,7 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
21677
21717
|
;
|
|
21678
21718
|
|
|
21679
21719
|
|
|
21680
|
-
const callbar_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(callbar_buttonvue_type_script_lang_js, [['render',
|
|
21720
|
+
const callbar_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(callbar_buttonvue_type_script_lang_js, [['render',callbar_buttonvue_type_template_id_b3920b20_render]])
|
|
21681
21721
|
|
|
21682
21722
|
/* harmony default export */ const callbar_button = (callbar_button_exports_);
|
|
21683
21723
|
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/index.js
|
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -12772,18 +12772,18 @@ const dropdown_separator_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)
|
|
|
12772
12772
|
;// CONCATENATED MODULE: ./components/dropdown/index.js
|
|
12773
12773
|
|
|
12774
12774
|
|
|
12775
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=template&id=
|
|
12775
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=template&id=9b4c7502
|
|
12776
12776
|
|
|
12777
|
-
const
|
|
12778
|
-
const
|
|
12779
|
-
const
|
|
12777
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_1 = ["src", "alt"];
|
|
12778
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_2 = ["aria-hidden"];
|
|
12779
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_3 = {
|
|
12780
12780
|
"data-qa": "dt-image-viewer-full",
|
|
12781
12781
|
class: "d-p0 d-bar0 d-wmx80p d-hmx80p",
|
|
12782
12782
|
role: "dialog",
|
|
12783
12783
|
"aria-modal": "true"
|
|
12784
12784
|
};
|
|
12785
|
-
const
|
|
12786
|
-
function
|
|
12785
|
+
const image_viewervue_type_template_id_9b4c7502_hoisted_4 = ["src", "alt"];
|
|
12786
|
+
function image_viewervue_type_template_id_9b4c7502_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12787
12787
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
12788
12788
|
|
|
12789
12789
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
@@ -12792,19 +12792,19 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12792
12792
|
"data-qa": "dt-image-viewer-preview",
|
|
12793
12793
|
"aria-label": $props.ariaLabel,
|
|
12794
12794
|
importance: "clear",
|
|
12795
|
-
onClick: $options.
|
|
12795
|
+
onClick: $options.openModal
|
|
12796
12796
|
}, {
|
|
12797
12797
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12798
12798
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.imageButtonClass),
|
|
12799
12799
|
src: $props.imageSrc,
|
|
12800
12800
|
alt: $props.imageAlt
|
|
12801
|
-
}, null, 10,
|
|
12801
|
+
}, null, 10, image_viewervue_type_template_id_9b4c7502_hoisted_1)]),
|
|
12802
12802
|
_: 1
|
|
12803
|
-
}, 8, ["aria-label", "onClick"]), $data.
|
|
12803
|
+
}, 8, ["aria-label", "onClick"]), $data.isOpen ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Teleport, {
|
|
12804
12804
|
key: 0,
|
|
12805
12805
|
to: "body"
|
|
12806
12806
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
12807
|
-
"aria-hidden":
|
|
12807
|
+
"aria-hidden": !$data.isOpen ? 'true' : 'false',
|
|
12808
12808
|
class: "d-modal",
|
|
12809
12809
|
"data-qa": "dt-modal"
|
|
12810
12810
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.modalListeners, true), {
|
|
@@ -12812,11 +12812,11 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12812
12812
|
onMouseleave: _cache[1] || (_cache[1] = $event => $data.showCloseButton = false),
|
|
12813
12813
|
onFocusin: _cache[2] || (_cache[2] = $event => $data.showCloseButton = true),
|
|
12814
12814
|
onFocusout: _cache[3] || (_cache[3] = $event => $data.showCloseButton = false)
|
|
12815
|
-
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
12815
|
+
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", image_viewervue_type_template_id_9b4c7502_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("img", {
|
|
12816
12816
|
class: "d-wmx100p d-hmx100p",
|
|
12817
12817
|
src: $props.imageSrc,
|
|
12818
12818
|
alt: $props.imageAlt
|
|
12819
|
-
}, null, 8,
|
|
12819
|
+
}, null, 8, image_viewervue_type_template_id_9b4c7502_hoisted_4)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Transition, {
|
|
12820
12820
|
name: "fade"
|
|
12821
12821
|
}, {
|
|
12822
12822
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [$data.showCloseButton ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, {
|
|
@@ -12838,9 +12838,9 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12838
12838
|
_: 1
|
|
12839
12839
|
}, 8, ["aria-label", "onClick"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
12840
12840
|
_: 1
|
|
12841
|
-
})], 16,
|
|
12841
|
+
})], 16, image_viewervue_type_template_id_9b4c7502_hoisted_2)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
12842
12842
|
}
|
|
12843
|
-
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=template&id=
|
|
12843
|
+
;// CONCATENATED MODULE: ./components/image_viewer/image_viewer.vue?vue&type=template&id=9b4c7502
|
|
12844
12844
|
|
|
12845
12845
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/image_viewer/image_viewer.vue?vue&type=script&lang=js
|
|
12846
12846
|
|
|
@@ -12855,6 +12855,18 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12855
12855
|
},
|
|
12856
12856
|
mixins: [modal],
|
|
12857
12857
|
props: {
|
|
12858
|
+
/**
|
|
12859
|
+
* Controls whether the image modal is shown. Leaving this null will have the image modal
|
|
12860
|
+
* trigger on click by default.
|
|
12861
|
+
* If you set this value, the default trigger behavior will be disabled and you can control it as you need.
|
|
12862
|
+
* Supports .sync modifier
|
|
12863
|
+
* @values null, true, false
|
|
12864
|
+
*/
|
|
12865
|
+
open: {
|
|
12866
|
+
type: Boolean,
|
|
12867
|
+
default: null
|
|
12868
|
+
},
|
|
12869
|
+
|
|
12858
12870
|
/**
|
|
12859
12871
|
* URL of the image to be shown
|
|
12860
12872
|
*/
|
|
@@ -12896,19 +12908,28 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12896
12908
|
required: true
|
|
12897
12909
|
}
|
|
12898
12910
|
},
|
|
12911
|
+
emits: [
|
|
12912
|
+
/**
|
|
12913
|
+
* Emitted when popover is shown or hidden
|
|
12914
|
+
*
|
|
12915
|
+
* @event opened
|
|
12916
|
+
* @type {Boolean}
|
|
12917
|
+
*/
|
|
12918
|
+
'opened',
|
|
12919
|
+
/**
|
|
12920
|
+
* Event fired to sync the open prop with the parent component
|
|
12921
|
+
* @event update:open
|
|
12922
|
+
*/
|
|
12923
|
+
'update:open'],
|
|
12899
12924
|
|
|
12900
12925
|
data() {
|
|
12901
12926
|
return {
|
|
12902
|
-
|
|
12903
|
-
|
|
12927
|
+
showCloseButton: true,
|
|
12928
|
+
isOpen: false
|
|
12904
12929
|
};
|
|
12905
12930
|
},
|
|
12906
12931
|
|
|
12907
12932
|
computed: {
|
|
12908
|
-
isOpen() {
|
|
12909
|
-
return `${!this.show}`;
|
|
12910
|
-
},
|
|
12911
|
-
|
|
12912
12933
|
modalListeners() {
|
|
12913
12934
|
return {
|
|
12914
12935
|
click: event => {
|
|
@@ -12931,7 +12952,7 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12931
12952
|
|
|
12932
12953
|
},
|
|
12933
12954
|
watch: {
|
|
12934
|
-
|
|
12955
|
+
isOpen: {
|
|
12935
12956
|
immediate: true,
|
|
12936
12957
|
|
|
12937
12958
|
handler(isShowing) {
|
|
@@ -12947,19 +12968,38 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12947
12968
|
}
|
|
12948
12969
|
}
|
|
12949
12970
|
|
|
12971
|
+
},
|
|
12972
|
+
open: {
|
|
12973
|
+
handler: function (open) {
|
|
12974
|
+
if (open !== null) {
|
|
12975
|
+
this.isOpen = open;
|
|
12976
|
+
}
|
|
12977
|
+
},
|
|
12978
|
+
immediate: true
|
|
12950
12979
|
}
|
|
12951
12980
|
},
|
|
12952
12981
|
methods: {
|
|
12953
|
-
|
|
12954
|
-
|
|
12982
|
+
openModal() {
|
|
12983
|
+
// Has custom control passed in
|
|
12984
|
+
if (this.open !== null) {
|
|
12985
|
+
return;
|
|
12986
|
+
}
|
|
12987
|
+
|
|
12988
|
+
this.isOpen = true;
|
|
12955
12989
|
this.showCloseButton = true;
|
|
12990
|
+
this.$emit('opened', true);
|
|
12956
12991
|
setTimeout(() => {
|
|
12957
12992
|
this.focusAfterOpen();
|
|
12958
12993
|
});
|
|
12959
12994
|
},
|
|
12960
12995
|
|
|
12961
12996
|
close() {
|
|
12962
|
-
this.
|
|
12997
|
+
this.isOpen = false;
|
|
12998
|
+
this.$emit('opened', false);
|
|
12999
|
+
|
|
13000
|
+
if (this.open !== null) {
|
|
13001
|
+
this.$emit('update:open', false);
|
|
13002
|
+
}
|
|
12963
13003
|
},
|
|
12964
13004
|
|
|
12965
13005
|
focusAfterOpen() {
|
|
@@ -12969,7 +13009,7 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12969
13009
|
},
|
|
12970
13010
|
|
|
12971
13011
|
trapFocus(e) {
|
|
12972
|
-
if (this.
|
|
13012
|
+
if (this.isOpen) {
|
|
12973
13013
|
this.focusTrappedTabPress(e);
|
|
12974
13014
|
}
|
|
12975
13015
|
}
|
|
@@ -12984,7 +13024,7 @@ function image_viewervue_type_template_id_2229fad0_render(_ctx, _cache, $props,
|
|
|
12984
13024
|
|
|
12985
13025
|
|
|
12986
13026
|
;
|
|
12987
|
-
const image_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(image_viewervue_type_script_lang_js, [['render',
|
|
13027
|
+
const image_viewer_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(image_viewervue_type_script_lang_js, [['render',image_viewervue_type_template_id_9b4c7502_render]])
|
|
12988
13028
|
|
|
12989
13029
|
/* harmony default export */ const image_viewer = (image_viewer_exports_);
|
|
12990
13030
|
;// CONCATENATED MODULE: ./components/image_viewer/index.js
|
|
@@ -21504,9 +21544,9 @@ const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
21504
21544
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|
|
21505
21545
|
|
|
21506
21546
|
|
|
21507
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=
|
|
21547
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=b3920b20
|
|
21508
21548
|
|
|
21509
|
-
function
|
|
21549
|
+
function callbar_buttonvue_type_template_id_b3920b20_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21510
21550
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
21511
21551
|
|
|
21512
21552
|
const _component_dt_tooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-tooltip");
|
|
@@ -21536,7 +21576,7 @@ function callbar_buttonvue_type_template_id_a276c32c_render(_ctx, _cache, $props
|
|
|
21536
21576
|
_: 3
|
|
21537
21577
|
}, 8, ["id"]);
|
|
21538
21578
|
}
|
|
21539
|
-
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=
|
|
21579
|
+
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=template&id=b3920b20
|
|
21540
21580
|
|
|
21541
21581
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js
|
|
21542
21582
|
|
|
@@ -21648,7 +21688,7 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
21648
21688
|
'd-btn--icon-only': this.circle,
|
|
21649
21689
|
'dt-recipe-callbar-button--active': this.active,
|
|
21650
21690
|
'dt-recipe-callbar-button--danger': this.danger,
|
|
21651
|
-
'd-btn--disabled': this.disabled,
|
|
21691
|
+
'd-btn--disabled d-bgc-transparent': this.disabled,
|
|
21652
21692
|
'd-fc-primary': !this.disabled
|
|
21653
21693
|
}];
|
|
21654
21694
|
},
|
|
@@ -21674,10 +21714,10 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
21674
21714
|
});
|
|
21675
21715
|
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=script&lang=js
|
|
21676
21716
|
|
|
21677
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=
|
|
21717
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=b3920b20&lang=less
|
|
21678
21718
|
// extracted by mini-css-extract-plugin
|
|
21679
21719
|
|
|
21680
|
-
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=
|
|
21720
|
+
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue?vue&type=style&index=0&id=b3920b20&lang=less
|
|
21681
21721
|
|
|
21682
21722
|
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/callbar_button.vue
|
|
21683
21723
|
|
|
@@ -21687,7 +21727,7 @@ const VALID_WIDTH_SIZE = ['sm', 'md', 'lg', 'xl'];
|
|
|
21687
21727
|
;
|
|
21688
21728
|
|
|
21689
21729
|
|
|
21690
|
-
const callbar_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(callbar_buttonvue_type_script_lang_js, [['render',
|
|
21730
|
+
const callbar_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(callbar_buttonvue_type_script_lang_js, [['render',callbar_buttonvue_type_template_id_b3920b20_render]])
|
|
21691
21731
|
|
|
21692
21732
|
/* harmony default export */ const callbar_button = (callbar_button_exports_);
|
|
21693
21733
|
;// CONCATENATED MODULE: ./recipes/buttons/callbar_button/index.js
|