@1024pix/pix-ui 18.0.1 → 18.0.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/.github/workflows/auto-merge.yml +7 -10
- package/CHANGELOG.md +9 -0
- package/addon/components/pix-modal.hbs +2 -3
- package/addon/components/pix-modal.js +6 -7
- package/addon/components/pix-sidebar.hbs +2 -3
- package/addon/components/pix-sidebar.js +6 -7
- package/app/stories/pix-sidebar.stories.js +2 -2
- package/package.json +1 -1
|
@@ -4,9 +4,13 @@ on:
|
|
|
4
4
|
pull_request:
|
|
5
5
|
types:
|
|
6
6
|
- labeled
|
|
7
|
+
- unlabeled
|
|
7
8
|
check_suite:
|
|
8
9
|
types:
|
|
9
10
|
- completed
|
|
11
|
+
status:
|
|
12
|
+
types:
|
|
13
|
+
- success
|
|
10
14
|
|
|
11
15
|
permissions: write-all
|
|
12
16
|
|
|
@@ -14,13 +18,6 @@ jobs:
|
|
|
14
18
|
automerge:
|
|
15
19
|
runs-on: ubuntu-latest
|
|
16
20
|
steps:
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
GITHUB_TOKEN: "${{ github.token }}"
|
|
21
|
-
MERGE_LABELS: ":rocket: Ready to Merge"
|
|
22
|
-
MERGE_COMMIT_MESSAGE: "pull-request-title"
|
|
23
|
-
UPDATE_LABELS: ":rocket: Ready to Merge"
|
|
24
|
-
UPDATE_METHOD: "rebase"
|
|
25
|
-
MERGE_FORKS: "false"
|
|
26
|
-
LOG: "TRACE"
|
|
21
|
+
- uses: 1024pix/pix-actions/auto-merge@v0
|
|
22
|
+
with:
|
|
23
|
+
auto_merge_token: "${{ github.token }}"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v18.0.2 (06/09/2022)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :bug: Correction
|
|
7
|
+
- [#251](https://github.com/1024pix/pix-ui/pull/251) [BUGFIX] Évite de casser les tests d'acceptance des applis (PIX-5619)
|
|
8
|
+
|
|
9
|
+
### :coffee: Autre
|
|
10
|
+
- [#250](https://github.com/1024pix/pix-ui/pull/250) [CLEANUP] Utilise l'action commune d'automerge
|
|
11
|
+
|
|
3
12
|
## v18.0.1 (02/09/2022)
|
|
4
13
|
|
|
5
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
class="pix-modal__overlay {{unless @showModal ' pix-modal__overlay--hidden'}}"
|
|
3
3
|
{{on "click" this.closeAction}}
|
|
4
4
|
{{trap-focus @showModal}}
|
|
5
|
-
{{on-escape-action
|
|
5
|
+
{{on-escape-action @onCloseButtonClick}}
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
8
|
class="pix-modal"
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
aria-labelledby="modal-title"
|
|
11
11
|
aria-describedby="modal-content"
|
|
12
12
|
aria-modal="true"
|
|
13
|
-
{{on "click" this.stopPropagation}}
|
|
14
13
|
...attributes
|
|
15
14
|
>
|
|
16
15
|
<header class="pix-modal__header">
|
|
17
16
|
<h1 id="modal-title" class="pix-modal__title">{{@title}}</h1>
|
|
18
17
|
<PixIconButton
|
|
19
18
|
@icon="xmark"
|
|
20
|
-
@triggerAction={{
|
|
19
|
+
@triggerAction={{@onCloseButtonClick}}
|
|
21
20
|
@ariaLabel="Fermer"
|
|
22
21
|
@size="small"
|
|
23
22
|
@withBackground={{true}}
|
|
@@ -11,14 +11,13 @@ export default class PixModal extends Component {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@action
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
closeAction(event) {
|
|
15
|
+
if (this.args.onCloseButtonClick && this.isClickOnOverlay(event)) {
|
|
16
|
+
this.args.onCloseButtonClick(event);
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (this.args.onCloseButtonClick) {
|
|
21
|
-
this.args.onCloseButtonClick(params);
|
|
22
|
-
}
|
|
20
|
+
isClickOnOverlay(event) {
|
|
21
|
+
return event.target.classList.contains('pix-modal__overlay');
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
class="pix-sidebar__overlay {{unless @showSidebar ' pix-sidebar__overlay--hidden'}}"
|
|
3
3
|
{{on "click" this.closeAction}}
|
|
4
4
|
{{trap-focus @showSidebar}}
|
|
5
|
-
{{on-escape-action
|
|
5
|
+
{{on-escape-action @onClose}}
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
8
|
class="pix-sidebar {{unless @showSidebar ' pix-sidebar--hidden'}}"
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
aria-labelledby="sidebar-title"
|
|
11
11
|
aria-describedby="sidebar-content"
|
|
12
12
|
aria-modal="true"
|
|
13
|
-
{{on "click" this.stopPropagation}}
|
|
14
13
|
...attributes
|
|
15
14
|
>
|
|
16
15
|
<header class="pix-sidebar__header">
|
|
17
16
|
<h1 id="sidebar-title" class="pix-sidebar__title">{{@title}}</h1>
|
|
18
17
|
<PixIconButton
|
|
19
18
|
@icon="xmark"
|
|
20
|
-
@triggerAction={{
|
|
19
|
+
@triggerAction={{@onClose}}
|
|
21
20
|
@ariaLabel="Fermer"
|
|
22
21
|
@size="small"
|
|
23
22
|
@withBackground={{true}}
|
|
@@ -11,14 +11,13 @@ export default class PixSidebar extends Component {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@action
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
closeAction(event) {
|
|
15
|
+
if (this.args.onClose && this.isClickOnOverlay(event)) {
|
|
16
|
+
this.args.onClose(event);
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (this.args.onClose) {
|
|
21
|
-
this.args.onClose(params);
|
|
22
|
-
}
|
|
20
|
+
isClickOnOverlay(event) {
|
|
21
|
+
return event.target.classList.contains('pix-sidebar__overlay');
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -12,8 +12,8 @@ export const Template = (args) => {
|
|
|
12
12
|
</:content>
|
|
13
13
|
<:footer>
|
|
14
14
|
<div style="display: flex; gap: 8px">
|
|
15
|
-
<PixButton @backgroundColor="transparent-light" @isBorderVisible="true">Annuler</PixButton>
|
|
16
|
-
<PixButton>Valider</PixButton>
|
|
15
|
+
<PixButton @backgroundColor="transparent-light" @isBorderVisible="true" @triggerAction={{fn (mut showSidebar) (not showSidebar)}}>Annuler</PixButton>
|
|
16
|
+
<PixButton @triggerAction={{fn (mut showSidebar) (not showSidebar)}}>Valider</PixButton>
|
|
17
17
|
</div>
|
|
18
18
|
</:footer>
|
|
19
19
|
</PixSidebar>
|