@1024pix/pix-ui 23.0.1 → 23.1.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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v23.1.0 (09/12/2022)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :rocket: Amélioration
|
|
7
|
+
- [#305](https://github.com/1024pix/pix-ui/pull/305) [FEATURE] Permettre l'appel d'une fonction lors de la fermeture d'une Pix Banner (PIX-6513).
|
|
8
|
+
|
|
3
9
|
## v23.0.1 (09/12/2022)
|
|
4
10
|
|
|
5
11
|
|
|
@@ -53,7 +53,10 @@ export default class PixBanner extends Component {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
@action
|
|
56
|
-
closeBanner() {
|
|
56
|
+
async closeBanner(params) {
|
|
57
|
+
if (this.args.onCloseBannerTriggerAction) {
|
|
58
|
+
await this.args.onCloseBannerTriggerAction(params);
|
|
59
|
+
}
|
|
57
60
|
this.isBannerVisible = false;
|
|
58
61
|
}
|
|
59
62
|
}
|
|
@@ -101,4 +101,11 @@ export const argsTypes = {
|
|
|
101
101
|
defaultValue: { summary: false },
|
|
102
102
|
},
|
|
103
103
|
},
|
|
104
|
+
onCloseBannerTriggerAction: {
|
|
105
|
+
name: 'onCloseBannerTriggerAction',
|
|
106
|
+
description:
|
|
107
|
+
'Fonction à appeler lors de la fermeture de la bannière. Doit être utilisé avec le paramètre canCloseBanner',
|
|
108
|
+
type: { required: false },
|
|
109
|
+
control: { disable: true },
|
|
110
|
+
},
|
|
104
111
|
};
|