@carbon/vue 2.39.0 → 2.40.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.md +6 -0
- package/dist/carbon-vue.common.js +71 -34
- package/dist/carbon-vue.common.js.map +1 -1
- package/dist/carbon-vue.umd.js +71 -34
- package/dist/carbon-vue.umd.js.map +1 -1
- package/dist/carbon-vue.umd.min.js +2 -2
- package/dist/carbon-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/cv-file-uploader/cv-file-uploader.vue +57 -24
- package/src/components/cv-inline-notification/cv-inline-notification.vue +2 -0
- package/src/components/cv-toast-notification/cv-toast-notification.vue +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.40.0
|
|
4
|
+
|
|
5
|
+
feat: CvFileUploader mark dropped files of the wrong type as invalid
|
|
6
|
+
feat: CvInlineNotification add ability to hide close button
|
|
7
|
+
feat: CvToastNotification add ability to hide close button
|
|
8
|
+
|
|
3
9
|
## 2.39.0
|
|
4
10
|
|
|
5
11
|
feat: emit event on progress step click
|
|
@@ -9475,17 +9475,17 @@ var ErrorFilled20 = Object(_utils_e280d4a4_js__WEBPACK_IMPORTED_MODULE_0__[/* c
|
|
|
9475
9475
|
// ESM COMPAT FLAG
|
|
9476
9476
|
__webpack_require__.r(__webpack_exports__);
|
|
9477
9477
|
|
|
9478
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474a3f54-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/cv-file-uploader/cv-file-uploader.vue?vue&type=template&id=
|
|
9478
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474a3f54-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/cv-file-uploader/cv-file-uploader.vue?vue&type=template&id=0c045fc0&
|
|
9479
9479
|
var render = function () {
|
|
9480
9480
|
var _obj;
|
|
9481
9481
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('cv-form-item',{staticClass:"cv-file-uploader"},[_c('p',{class:(_vm.carbonPrefix + "--file--label")},[_vm._v(_vm._s(_vm.label))]),_c('p',{class:(_vm.carbonPrefix + "--label-description")},[_vm._v(_vm._s(_vm.helperText))]),_c('div',{class:(_vm.carbonPrefix + "--file"),attrs:{"data-file":""}},[_c('label',{ref:"focusTarget",class:[
|
|
9482
|
-
( _obj = {}, _obj[(_vm.carbonPrefix + "--file-browse-btn")] = _vm.kind !== 'button', _obj[(_vm.carbonPrefix + "--btn")] = _vm.kind === 'button', _obj[(_vm.carbonPrefix + "--btn--primary")] = _vm.kind === 'button', _obj ) ],attrs:{"for":_vm.uid,"role":"button","tabindex":"0"},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.onShow()},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();}],"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.onShow()}}},[_c('cv-wrapper',{class:(_vm.carbonPrefix + "--file__drop-container" + _vm.allowDropClass),attrs:{"tag-type":_vm.kind !== 'button' ? 'div' : '',"data-file-drop-container":""},on:{"dragover":_vm.onDragEvent,"dragleave":_vm.onDragEvent,"drop":_vm.onDragEvent}},[_vm._t("drop-target",[_vm._v(_vm._s(_vm.internalDropTargetLabel))]),(_vm.kind !== 'button')?_c('input',_vm._g(_vm._b({ref:"file-input",class:(_vm.carbonPrefix + "--file-input"),attrs:{"type":"file","id":_vm.uid,"data-file-uploader":"","data-target":"[data-file-container]"}},'input',_vm.$attrs,false),_vm.inputListeners)):_vm._e()],2)],1),(_vm.kind === 'button')?_c('input',_vm._g(_vm._b({ref:"file-input",class:(_vm.carbonPrefix + "--file-input"),attrs:{"type":"file","id":_vm.uid,"data-file-uploader":"","data-target":"[data-file-container]"}},'input',_vm.$attrs,false),_vm.inputListeners)):_vm._e(),_c('div',{class:(_vm.carbonPrefix + "--file-container"),attrs:{"data-file-container":""}},_vm._l((_vm.internalFiles),function(file,index){return _c('div',{key:index,class:_vm.isInvalid(index)
|
|
9482
|
+
( _obj = {}, _obj[(_vm.carbonPrefix + "--file-browse-btn")] = _vm.kind !== 'button', _obj[(_vm.carbonPrefix + "--btn")] = _vm.kind === 'button', _obj[(_vm.carbonPrefix + "--btn--primary")] = _vm.kind === 'button', _obj ) ],attrs:{"for":_vm.uid,"role":"button","tabindex":"0"},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.onShow()},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();}],"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.onShow()}}},[_c('cv-wrapper',{class:(_vm.carbonPrefix + "--file__drop-container" + _vm.allowDropClass),attrs:{"tag-type":_vm.kind !== 'button' ? 'div' : '',"data-file-drop-container":""},on:{"dragover":_vm.onDragEvent,"dragleave":_vm.onDragEvent,"drop":_vm.onDragEvent}},[_vm._t("drop-target",[_vm._v(_vm._s(_vm.internalDropTargetLabel))]),(_vm.kind !== 'button')?_c('input',_vm._g(_vm._b({ref:"file-input",class:(_vm.carbonPrefix + "--file-input"),attrs:{"type":"file","accept":_vm.accept,"id":_vm.uid,"data-file-uploader":"","data-target":"[data-file-container]"}},'input',_vm.$attrs,false),_vm.inputListeners)):_vm._e()],2)],1),(_vm.kind === 'button')?_c('input',_vm._g(_vm._b({ref:"file-input",class:(_vm.carbonPrefix + "--file-input"),attrs:{"type":"file","accept":_vm.accept,"id":_vm.uid,"data-file-uploader":"","data-target":"[data-file-container]"}},'input',_vm.$attrs,false),_vm.inputListeners)):_vm._e(),_c('div',{class:(_vm.carbonPrefix + "--file-container"),attrs:{"data-file-container":""}},_vm._l((_vm.internalFiles),function(file,index){return _c('div',{key:index,class:_vm.isInvalid(index)
|
|
9483
9483
|
? (_vm.carbonPrefix + "--file__selected-file--invalid__wrapper")
|
|
9484
9484
|
: (_vm.carbonPrefix + "--file__selected-file")},[_c('cv-wrapper',{class:(_vm.carbonPrefix + "--file__selected-file " + _vm.carbonPrefix + "--file__selected-file--invalid"),attrs:{"tag-type":_vm.isInvalid(index) ? 'div' : ''}},[_c('p',{class:(_vm.carbonPrefix + "--file-filename"),attrs:{"title":file.file.name}},[_vm._v(_vm._s(file.file.name))]),_c('span',{class:(_vm.carbonPrefix + "--file__state-container"),style:(_vm.stateStyleOverides),attrs:{"data-for":_vm.uid,"data-test":file.state}},[(file.state === 'uploading')?_c('div',{class:(_vm.carbonPrefix + "--inline-loading__animation")},[_c('div',{class:(_vm.carbonPrefix + "--loading " + _vm.carbonPrefix + "--loading--small"),attrs:{"data-inline-loading-spinner":""}},[_c('svg',{class:(_vm.carbonPrefix + "--loading__svg"),attrs:{"viewBox":"-75 -75 150 150"}},[_c('circle',{class:(_vm.carbonPrefix + "--loading__background"),attrs:{"cx":"0","cy":"0","r":"37.5"}}),_c('circle',{class:(_vm.carbonPrefix + "--loading__stroke"),attrs:{"cx":"0","cy":"0","r":"37.5"}})])])]):_vm._e(),(file.state === 'complete')?_c('CheckmarkFilled16',{class:(_vm.carbonPrefix + "--file-complete")}):_vm._e(),(_vm.isInvalid(index))?_c('WarningFilled16',{class:(_vm.carbonPrefix + "--file--invalid")}):_vm._e(),(_vm.removable)?_c('button',{class:(_vm.carbonPrefix + "--file-close"),attrs:{"type":"button","alt":_vm.removeAriaLabel,"arial-label":_vm.removeAriaLabel},on:{"click":function($event){return _vm.remove(index)}}},[_c('Close16')],1):_vm._e()],1),(_vm.isInvalid(index))?_c('div',{class:(_vm.carbonPrefix + "--form-requirement")},[_c('div',{class:(_vm.carbonPrefix + "--form-requirement__title")},[_vm._v("\n "+_vm._s(file.invalidMessageTitle || 'Invalid file')+"\n ")]),_c('p',{class:(_vm.carbonPrefix + "--form-requirement__supplement")},[_vm._v(_vm._s(file.invalidMessage))])]):_vm._e()])],1)}),0)])])}
|
|
9485
9485
|
var staticRenderFns = []
|
|
9486
9486
|
|
|
9487
9487
|
|
|
9488
|
-
// CONCATENATED MODULE: ./src/components/cv-file-uploader/cv-file-uploader.vue?vue&type=template&id=
|
|
9488
|
+
// CONCATENATED MODULE: ./src/components/cv-file-uploader/cv-file-uploader.vue?vue&type=template&id=0c045fc0&
|
|
9489
9489
|
|
|
9490
9490
|
// EXTERNAL MODULE: ./src/mixins/index.js + 7 modules
|
|
9491
9491
|
var mixins = __webpack_require__("1b62");
|
|
@@ -9620,6 +9620,8 @@ var consts = __webpack_require__("4352");
|
|
|
9620
9620
|
//
|
|
9621
9621
|
//
|
|
9622
9622
|
//
|
|
9623
|
+
//
|
|
9624
|
+
//
|
|
9623
9625
|
|
|
9624
9626
|
|
|
9625
9627
|
|
|
@@ -9651,6 +9653,7 @@ var consts = __webpack_require__("4352");
|
|
|
9651
9653
|
},
|
|
9652
9654
|
label: String,
|
|
9653
9655
|
helperText: String,
|
|
9656
|
+
accept: String,
|
|
9654
9657
|
initialStateUploading: Boolean,
|
|
9655
9658
|
removable: Boolean,
|
|
9656
9659
|
buttonLabel: {
|
|
@@ -9721,12 +9724,19 @@ var consts = __webpack_require__("4352");
|
|
|
9721
9724
|
},
|
|
9722
9725
|
addFiles(files) {
|
|
9723
9726
|
for (const file of files) {
|
|
9724
|
-
|
|
9727
|
+
const internalFile = {
|
|
9725
9728
|
state: this.initialStateUploading ? consts["b" /* STATES */].UPLOADING : consts["b" /* STATES */].NONE,
|
|
9726
9729
|
file,
|
|
9727
9730
|
invalidMessageTitle: '',
|
|
9728
9731
|
invalidMessage: '',
|
|
9729
|
-
}
|
|
9732
|
+
};
|
|
9733
|
+
|
|
9734
|
+
if (file.messageBundle) {
|
|
9735
|
+
internalFile.invalidMessageTitle = file.messageBundle.invalidMessageTitle;
|
|
9736
|
+
internalFile.invalidMessage = file.messageBundle.invalidMessage;
|
|
9737
|
+
delete file.messageBundle;
|
|
9738
|
+
}
|
|
9739
|
+
this.internalFiles.push(internalFile);
|
|
9730
9740
|
}
|
|
9731
9741
|
this.$emit('change', this.internalFiles);
|
|
9732
9742
|
},
|
|
@@ -9752,32 +9762,55 @@ var consts = __webpack_require__("4352");
|
|
|
9752
9762
|
this.internalFiles[index].invalidMessage = message;
|
|
9753
9763
|
},
|
|
9754
9764
|
onDragEvent(evt) {
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
if (
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9765
|
+
if (Array.prototype.indexOf.call(evt.dataTransfer.types, 'Files') === -1) {
|
|
9766
|
+
return;
|
|
9767
|
+
}
|
|
9768
|
+
|
|
9769
|
+
if (evt.type === 'dragleave') {
|
|
9770
|
+
this.allowDrop = false;
|
|
9771
|
+
return;
|
|
9772
|
+
}
|
|
9773
|
+
|
|
9774
|
+
if (evt.type === 'dragover') {
|
|
9775
|
+
evt.preventDefault();
|
|
9776
|
+
const dropEffect = 'copy';
|
|
9777
|
+
if (Array.isArray(evt.dataTransfer.types)) {
|
|
9778
|
+
try {
|
|
9779
|
+
// IE11 throws a "permission denied" error accessing `.effectAllowed`
|
|
9780
|
+
evt.dataTransfer.effectAllowed = dropEffect;
|
|
9781
|
+
} catch (e) {
|
|
9782
|
+
// ignore
|
|
9770
9783
|
}
|
|
9771
|
-
evt.dataTransfer.dropEffect = dropEffect;
|
|
9772
|
-
this.allowDrop = true;
|
|
9773
9784
|
}
|
|
9774
|
-
|
|
9775
|
-
|
|
9785
|
+
evt.dataTransfer.dropEffect = dropEffect;
|
|
9786
|
+
this.allowDrop = true;
|
|
9787
|
+
}
|
|
9788
|
+
|
|
9789
|
+
if (evt.type === 'drop') {
|
|
9790
|
+
evt.preventDefault();
|
|
9791
|
+
if (this.accept) {
|
|
9792
|
+
this.markInvalidFileTypes(evt.dataTransfer.files);
|
|
9793
|
+
}
|
|
9794
|
+
this.addFiles(evt.dataTransfer.files);
|
|
9795
|
+
this.allowDrop = false;
|
|
9796
|
+
}
|
|
9797
|
+
},
|
|
9798
|
+
markInvalidFileTypes(files) {
|
|
9799
|
+
const isFileAllowed = file => {
|
|
9800
|
+
const extension = '.' + file.name.split('.').pop();
|
|
9801
|
+
const allowed = this.accept.split(',').map(x => x.trim());
|
|
9802
|
+
if (allowed.includes('.jpg')) {
|
|
9803
|
+
allowed.push('.jpeg');
|
|
9776
9804
|
}
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9805
|
+
return allowed.includes(file.type) || allowed.includes(extension);
|
|
9806
|
+
};
|
|
9807
|
+
|
|
9808
|
+
for (const file of files) {
|
|
9809
|
+
if (!isFileAllowed(file)) {
|
|
9810
|
+
file.messageBundle = {
|
|
9811
|
+
invalidMessageTitle: 'Invalid file type',
|
|
9812
|
+
invalidMessage: `"${file.name}" does not have a valid file type.`,
|
|
9813
|
+
};
|
|
9781
9814
|
}
|
|
9782
9815
|
}
|
|
9783
9816
|
},
|
|
@@ -14761,17 +14794,17 @@ var Close20 = Object(_utils_e280d4a4_js__WEBPACK_IMPORTED_MODULE_0__[/* c */ "a"
|
|
|
14761
14794
|
// ESM COMPAT FLAG
|
|
14762
14795
|
__webpack_require__.r(__webpack_exports__);
|
|
14763
14796
|
|
|
14764
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474a3f54-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/cv-toast-notification/cv-toast-notification.vue?vue&type=template&id=
|
|
14797
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474a3f54-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/cv-toast-notification/cv-toast-notification.vue?vue&type=template&id=48c07dad&
|
|
14765
14798
|
var render = function () {
|
|
14766
14799
|
var _obj;
|
|
14767
14800
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._g({class:[
|
|
14768
14801
|
("cv-notifiation " + _vm.carbonPrefix + "--toast-notification"),
|
|
14769
14802
|
(_vm.carbonPrefix + "--toast-notification--" + (_vm.kind.toLowerCase())),
|
|
14770
|
-
( _obj = {}, _obj[(_vm.carbonPrefix + "--toast-notification--low-contrast")] = _vm.lowContrast, _obj ) ],attrs:{"data-notification":"","role":_vm.isAlert ? 'alert' : undefined,"aria-live":!_vm.isAlert ? 'polite' : false}},_vm.$listeners),[_c(_vm.icon,{tag:"component",class:(_vm.carbonPrefix + "--toast-notification__icon")}),_c('div',{class:(_vm.carbonPrefix + "--toast-notification__details")},[_c('h3',{class:(_vm.carbonPrefix + "--toast-notification__title")},[_vm._v(_vm._s(_vm.title))]),_c('p',{class:(_vm.carbonPrefix + "--toast-notification__subtitle"),domProps:{"innerHTML":_vm._s(_vm.subTitle)}}),_c('p',{class:(_vm.carbonPrefix + "--toast-notification__caption"),domProps:{"innerHTML":_vm._s(_vm.caption)}})]),_c('button',{class:(_vm.carbonPrefix + "--toast-notification__close-button"),attrs:{"aria-label":_vm.closeAriaLabel,"type":"button","data-notification-btn":""},on:{"click":function($event){return _vm.$emit('close')}}},[_c('Close20',{class:(_vm.carbonPrefix + "--toast-notification__close-icon")})],1)],1)}
|
|
14803
|
+
( _obj = {}, _obj[(_vm.carbonPrefix + "--toast-notification--low-contrast")] = _vm.lowContrast, _obj ) ],attrs:{"data-notification":"","role":_vm.isAlert ? 'alert' : undefined,"aria-live":!_vm.isAlert ? 'polite' : false}},_vm.$listeners),[_c(_vm.icon,{tag:"component",class:(_vm.carbonPrefix + "--toast-notification__icon")}),_c('div',{class:(_vm.carbonPrefix + "--toast-notification__details")},[_c('h3',{class:(_vm.carbonPrefix + "--toast-notification__title")},[_vm._v(_vm._s(_vm.title))]),_c('p',{class:(_vm.carbonPrefix + "--toast-notification__subtitle"),domProps:{"innerHTML":_vm._s(_vm.subTitle)}}),_c('p',{class:(_vm.carbonPrefix + "--toast-notification__caption"),domProps:{"innerHTML":_vm._s(_vm.caption)}})]),(!_vm.hideCloseButton)?_c('button',{class:(_vm.carbonPrefix + "--toast-notification__close-button"),attrs:{"aria-label":_vm.closeAriaLabel,"type":"button","data-notification-btn":""},on:{"click":function($event){return _vm.$emit('close')}}},[_c('Close20',{class:(_vm.carbonPrefix + "--toast-notification__close-icon")})],1):_vm._e()],1)}
|
|
14771
14804
|
var staticRenderFns = []
|
|
14772
14805
|
|
|
14773
14806
|
|
|
14774
|
-
// CONCATENATED MODULE: ./src/components/cv-toast-notification/cv-toast-notification.vue?vue&type=template&id=
|
|
14807
|
+
// CONCATENATED MODULE: ./src/components/cv-toast-notification/cv-toast-notification.vue?vue&type=template&id=48c07dad&
|
|
14775
14808
|
|
|
14776
14809
|
// EXTERNAL MODULE: ./src/mixins/index.js + 7 modules
|
|
14777
14810
|
var mixins = __webpack_require__("1b62");
|
|
@@ -14822,6 +14855,7 @@ var information_filled_20 = __webpack_require__("92ca");
|
|
|
14822
14855
|
//
|
|
14823
14856
|
//
|
|
14824
14857
|
//
|
|
14858
|
+
//
|
|
14825
14859
|
|
|
14826
14860
|
|
|
14827
14861
|
|
|
@@ -14837,6 +14871,7 @@ var information_filled_20 = __webpack_require__("92ca");
|
|
|
14837
14871
|
props: {
|
|
14838
14872
|
caption: String,
|
|
14839
14873
|
closeAriaLabel: { type: String, default: 'Dismiss notification' },
|
|
14874
|
+
hideCloseButton: Boolean,
|
|
14840
14875
|
kind: {
|
|
14841
14876
|
type: String,
|
|
14842
14877
|
default: 'info',
|
|
@@ -15715,7 +15750,7 @@ exports.createSVGComponent = createSVGComponent;
|
|
|
15715
15750
|
// ESM COMPAT FLAG
|
|
15716
15751
|
__webpack_require__.r(__webpack_exports__);
|
|
15717
15752
|
|
|
15718
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474a3f54-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/cv-inline-notification/cv-inline-notification.vue?vue&type=template&id=
|
|
15753
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"474a3f54-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/cv-inline-notification/cv-inline-notification.vue?vue&type=template&id=a9ac2754&
|
|
15719
15754
|
var render = function () {
|
|
15720
15755
|
var _obj;
|
|
15721
15756
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._g({class:[
|
|
@@ -15726,11 +15761,11 @@ var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_
|
|
|
15726
15761
|
(_vm.carbonPrefix + "--inline-notification__action-button"),
|
|
15727
15762
|
(_vm.carbonPrefix + "--btn"),
|
|
15728
15763
|
(_vm.carbonPrefix + "--btn--sm"),
|
|
15729
|
-
(_vm.carbonPrefix + "--btn--ghost") ],attrs:{"type":"button"},on:{"click":function($event){return _vm.$emit('action')}}},[_vm._v("\n "+_vm._s(_vm.actionLabel)+"\n ")]):_vm._e(),_c('button',{class:(_vm.carbonPrefix + "--inline-notification__close-button"),attrs:{"type":"button","aria-label":_vm.closeAriaLabel,"data-notification-btn":""},on:{"click":function($event){return _vm.$emit('close')}}},[_c('Close20',{class:(_vm.carbonPrefix + "--inline-notification__close-icon")})],1)])}
|
|
15764
|
+
(_vm.carbonPrefix + "--btn--ghost") ],attrs:{"type":"button"},on:{"click":function($event){return _vm.$emit('action')}}},[_vm._v("\n "+_vm._s(_vm.actionLabel)+"\n ")]):_vm._e(),(!_vm.hideCloseButton)?_c('button',{class:(_vm.carbonPrefix + "--inline-notification__close-button"),attrs:{"type":"button","aria-label":_vm.closeAriaLabel,"data-notification-btn":""},on:{"click":function($event){return _vm.$emit('close')}}},[_c('Close20',{class:(_vm.carbonPrefix + "--inline-notification__close-icon")})],1):_vm._e()])}
|
|
15730
15765
|
var staticRenderFns = []
|
|
15731
15766
|
|
|
15732
15767
|
|
|
15733
|
-
// CONCATENATED MODULE: ./src/components/cv-inline-notification/cv-inline-notification.vue?vue&type=template&id=
|
|
15768
|
+
// CONCATENATED MODULE: ./src/components/cv-inline-notification/cv-inline-notification.vue?vue&type=template&id=a9ac2754&
|
|
15734
15769
|
|
|
15735
15770
|
// EXTERNAL MODULE: ./src/mixins/index.js + 7 modules
|
|
15736
15771
|
var mixins = __webpack_require__("1b62");
|
|
@@ -15798,6 +15833,7 @@ var information_filled_20 = __webpack_require__("92ca");
|
|
|
15798
15833
|
//
|
|
15799
15834
|
//
|
|
15800
15835
|
//
|
|
15836
|
+
//
|
|
15801
15837
|
|
|
15802
15838
|
|
|
15803
15839
|
|
|
@@ -15819,6 +15855,7 @@ var information_filled_20 = __webpack_require__("92ca");
|
|
|
15819
15855
|
validator: val => ['error', 'info', 'warning', 'success'].includes(val),
|
|
15820
15856
|
},
|
|
15821
15857
|
lowContrast: Boolean,
|
|
15858
|
+
hideCloseButton: Boolean,
|
|
15822
15859
|
},
|
|
15823
15860
|
computed: {
|
|
15824
15861
|
icon() {
|