@1024pix/pix-ui 65.0.0 → 66.0.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/addon/components/pix-checkbox.gjs +5 -10
- package/addon/components/pix-radio-button.gjs +4 -9
- package/addon/translations/en.js +0 -6
- package/addon/translations/es-419.js +0 -6
- package/addon/translations/es.js +0 -6
- package/addon/translations/fr.js +0 -7
- package/addon/translations/nl.js +0 -6
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import { action } from '@ember/object';
|
|
|
4
4
|
import { guidFor } from '@ember/object/internals';
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
|
|
7
|
-
import { formatMessage } from '../translations';
|
|
8
7
|
import PixLabelWrapped from './pix-label-wrapped';
|
|
9
8
|
export default class PixCheckbox extends Component {
|
|
10
9
|
constructor() {
|
|
@@ -65,27 +64,23 @@ export default class PixCheckbox extends Component {
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
get stateSuccessMessage() {
|
|
68
|
-
return this.
|
|
67
|
+
return this.args.texts?.stateSuccess;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
get stateErrorMessage() {
|
|
72
|
-
return this.
|
|
71
|
+
return this.args.texts?.stateError;
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
get stateDeclarativeMessage() {
|
|
76
|
-
return this.
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
formatMessage(message) {
|
|
80
|
-
return formatMessage(this.args.locale ?? 'fr', `input.${message}`);
|
|
75
|
+
return this.args.texts?.stateDeclarative;
|
|
81
76
|
}
|
|
82
77
|
|
|
83
78
|
<template>
|
|
84
79
|
<div class="pix-checkbox {{@class}}">
|
|
85
80
|
<PixLabelWrapped
|
|
86
81
|
@for={{this.id}}
|
|
87
|
-
@requiredLabel={{@requiredLabel}}
|
|
88
|
-
@subLabel={{@subLabel}}
|
|
82
|
+
@requiredLabel={{@text?.requiredLabel}}
|
|
83
|
+
@subLabel={{@text?.subLabel}}
|
|
89
84
|
@size={{@size}}
|
|
90
85
|
@inlineLabel={{true}}
|
|
91
86
|
@screenReaderOnly={{@screenReaderOnly}}
|
|
@@ -4,7 +4,6 @@ import { action } from '@ember/object';
|
|
|
4
4
|
import { guidFor } from '@ember/object/internals';
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
|
|
7
|
-
import { formatMessage } from '../translations';
|
|
8
7
|
import PixLabelWrapped from './pix-label-wrapped';
|
|
9
8
|
|
|
10
9
|
export default class PixRadioButton extends Component {
|
|
@@ -53,15 +52,11 @@ export default class PixRadioButton extends Component {
|
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
get stateSuccessMessage() {
|
|
56
|
-
return this.
|
|
55
|
+
return this.args.texts?.stateSuccess;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
get stateErrorMessage() {
|
|
60
|
-
return this.
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
formatMessage(message) {
|
|
64
|
-
return formatMessage('fr', `input.${message}`);
|
|
59
|
+
return this.args.texts?.stateError;
|
|
65
60
|
}
|
|
66
61
|
|
|
67
62
|
@action
|
|
@@ -75,8 +70,8 @@ export default class PixRadioButton extends Component {
|
|
|
75
70
|
<div class="pix-radio-button {{@class}}">
|
|
76
71
|
<PixLabelWrapped
|
|
77
72
|
@for={{this.id}}
|
|
78
|
-
@requiredLabel={{@requiredLabel}}
|
|
79
|
-
@subLabel={{@subLabel}}
|
|
73
|
+
@requiredLabel={{@text?.requiredLabel}}
|
|
74
|
+
@subLabel={{@text?.subLabel}}
|
|
80
75
|
@size={{@size}}
|
|
81
76
|
@screenReaderOnly={{@screenReaderOnly}}
|
|
82
77
|
@isDisabled={{this.isDisabled}}
|
package/addon/translations/en.js
CHANGED
package/addon/translations/es.js
CHANGED
package/addon/translations/fr.js
CHANGED
package/addon/translations/nl.js
CHANGED