@1024pix/pix-ui 38.2.0 → 38.2.1

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.
@@ -34,7 +34,6 @@ workflows:
34
34
  matrix:
35
35
  parameters:
36
36
  node-version:
37
- - "16.20.1"
38
37
  - "18.17.0"
39
38
  filters:
40
39
  branches:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v38.2.1 (25/07/2023)
4
+
5
+
6
+ ### :building_construction: Tech
7
+ - [#451](https://github.com/1024pix/pix-ui/pull/451) [TECH] Ajustements des versions de Node et npm.
8
+
9
+ ### :coffee: Autre
10
+ - [#449](https://github.com/1024pix/pix-ui/pull/449) [BUMP] Update dependency eslint-plugin-qunit to v8 (dossier racine).
11
+ - [#443](https://github.com/1024pix/pix-ui/pull/443) [BUMP] Update dependency eslint-plugin-prettier to v5 (dossier racine).
12
+
3
13
  ## v38.2.0 (25/07/2023)
4
14
 
5
15
 
@@ -18,13 +18,13 @@ export default class PixDropdown extends Component {
18
18
 
19
19
  if (!this.args.label && !this.args.placeholder) {
20
20
  throw new Error(
21
- 'ERROR in PixDropdown component, you need to provide a label and/or a placeholder'
21
+ 'ERROR in PixDropdown component, you need to provide a label and/or a placeholder',
22
22
  );
23
23
  }
24
24
 
25
25
  if (this.args.selectedOption) {
26
26
  this.selectedOption = this.args.options.find(
27
- ({ value }) => value === this.args.selectedOption
27
+ ({ value }) => value === this.args.selectedOption,
28
28
  );
29
29
  }
30
30
  }
@@ -11,7 +11,7 @@ export default class PixMessage extends Component {
11
11
  const correctTypes = [TYPE_INFO, TYPE_SUCCESS, TYPE_WARNING, TYPE_ALERT, TYPE_ERROR];
12
12
  if (this.args.type === 'alert') {
13
13
  console.warn(
14
- 'ERROR in PixMessage component, "alert" type is deprecated. Use "error" type instead.'
14
+ 'ERROR in PixMessage component, "alert" type is deprecated. Use "error" type instead.',
15
15
  );
16
16
  }
17
17
  return correctTypes.includes(this.args.type) ? this.args.type : 'info';
@@ -16,14 +16,14 @@ export default class PixSearchInput extends Component {
16
16
  }
17
17
  if (!this.args.label && !this.args.ariaLabel) {
18
18
  throw new Error(
19
- 'ERROR in PixSearchInput component, you must provide @label or @ariaLabel params'
19
+ 'ERROR in PixSearchInput component, you must provide @label or @ariaLabel params',
20
20
  );
21
21
  }
22
22
 
23
23
  this.searchInputId = this.args.id || guidFor(this);
24
24
  this.debouncedTriggerFiltering = debounce(
25
25
  this.args.triggerFiltering,
26
- this.debounceTimeBeforeSearch
26
+ this.debounceTimeBeforeSearch,
27
27
  );
28
28
  }
29
29
 
@@ -81,7 +81,7 @@ export default class PixSelect extends Component {
81
81
 
82
82
  if (this.searchValue) {
83
83
  options = this.args.options.filter((option) =>
84
- option.label.toLowerCase().includes(this.searchValue.toLowerCase())
84
+ option.label.toLowerCase().includes(this.searchValue.toLowerCase()),
85
85
  );
86
86
  }
87
87
 
@@ -163,7 +163,7 @@ export default class PixSelect extends Component {
163
163
  @action
164
164
  setSelectWidth() {
165
165
  const baseFontRemRatio = Number(
166
- getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0]
166
+ getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0],
167
167
  );
168
168
  const checkIconWidth = 1.125 * baseFontRemRatio;
169
169
  const listWidth = document.getElementById(this.listId).getBoundingClientRect().width;
@@ -30,7 +30,7 @@ export default class PixTextarea extends Component {
30
30
 
31
31
  if (idRequiredLabelDefined && !labelIsDefined) {
32
32
  throw new Error(
33
- 'ERROR in PixTextarea component, @label param is necessary when giving @requiredLabel'
33
+ 'ERROR in PixTextarea component, @label param is necessary when giving @requiredLabel',
34
34
  );
35
35
  }
36
36
  return this.args.requiredLabel || null;
@@ -76,7 +76,7 @@ export default modifier((element, [elementId, callback, isExpanded]) => {
76
76
  function findFocusableElements(element) {
77
77
  return [
78
78
  ...element.querySelectorAll(
79
- 'a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])'
79
+ 'a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])',
80
80
  ),
81
81
  ].filter((el) => !el.hasAttribute('disabled') && !el.getAttribute('aria-hidden'));
82
82
  }
@@ -29,7 +29,7 @@ export default modifier(function trapFocus(element, [isOpen]) {
29
29
  function findFocusableElements(element) {
30
30
  return [
31
31
  ...element.querySelectorAll(
32
- 'a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])'
32
+ 'a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])',
33
33
  ),
34
34
  ].filter((el) => !el.hasAttribute('disabled') && !el.getAttribute('aria-hidden'));
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "38.2.0",
3
+ "version": "38.2.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -8,8 +8,7 @@
8
8
  "license": "MIT",
9
9
  "author": "GIP Pix",
10
10
  "engines": {
11
- "node": "16 || 18",
12
- "npm": "8 || 9"
11
+ "node": "^16.17 || ^18"
13
12
  },
14
13
  "ember": {
15
14
  "edition": "octane"
@@ -105,20 +104,20 @@
105
104
  "ember-source": "^4.0.1",
106
105
  "ember-source-channel-url": "^3.0.0",
107
106
  "ember-template-lint": "^4.18.2",
108
- "ember-template-lint-plugin-prettier": "^4.1.0",
107
+ "ember-template-lint-plugin-prettier": "^5.0.0",
109
108
  "ember-try": "^3.0.0-beta",
110
109
  "eslint": "^8.28.0",
111
110
  "eslint-config-prettier": "^8.5.0",
112
111
  "eslint-plugin-ember": "^11.2.0",
113
112
  "eslint-plugin-node": "^11.1.0",
114
- "eslint-plugin-prettier": "^4.2.1",
115
- "eslint-plugin-qunit": "^7.3.3",
113
+ "eslint-plugin-prettier": "^5.0.0",
114
+ "eslint-plugin-qunit": "^8.0.0",
116
115
  "fs-extra": "^11.0.0",
117
116
  "html-webpack-plugin": "^5.5.0",
118
117
  "loader.js": "^4.7.0",
119
118
  "lodash": "^4.17.21",
120
119
  "npm-run-all": "^4.1.5",
121
- "prettier": "^2.8.0",
120
+ "prettier": "^3.0.0",
122
121
  "qunit": "^2.19.3",
123
122
  "qunit-dom": "^2.0.0",
124
123
  "sass": "^1.56.1",