@openproject/primer-view-components 0.59.1 → 0.59.2-rc.0a7305768

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.
@@ -1,7 +1,7 @@
1
1
  declare class CollapsibleHeaderElement extends HTMLElement {
2
2
  arrowDown: HTMLElement;
3
3
  arrowUp: HTMLElement;
4
- description: HTMLElement;
4
+ description: HTMLElement | undefined;
5
5
  collapsed: string;
6
6
  private _collapsed;
7
7
  connectedCallback(): void;
@@ -29,19 +29,15 @@ let CollapsibleHeaderElement = class CollapsibleHeaderElement extends HTMLElemen
29
29
  }
30
30
  }
31
31
  hideAll() {
32
- this.arrowDown.classList.remove('d-none');
33
- this.arrowUp.classList.add('d-none');
34
- if (this.description !== undefined) {
35
- this.description.classList.add('d-none');
36
- }
32
+ this.arrowDown?.classList.remove('d-none');
33
+ this.arrowUp?.classList.add('d-none');
34
+ this.description?.classList.add('d-none');
37
35
  this.classList.add('CollapsibleHeader--collapsed');
38
36
  }
39
37
  expandAll() {
40
- this.arrowDown.classList.add('d-none');
41
- this.arrowUp.classList.remove('d-none');
42
- if (this.description !== undefined) {
43
- this.description.classList.remove('d-none');
44
- }
38
+ this.arrowDown?.classList.add('d-none');
39
+ this.arrowUp?.classList.remove('d-none');
40
+ this.description?.classList.remove('d-none');
45
41
  this.classList.remove('CollapsibleHeader--collapsed');
46
42
  }
47
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.59.1",
3
+ "version": "0.59.2-rc.0a7305768",
4
4
  "description": "ViewComponents of the Primer Design System for OpenProject",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -17448,8 +17448,8 @@
17448
17448
  },
17449
17449
  {
17450
17450
  "fully_qualified_name": "Primer::OpenProject::BorderBox::CollapsibleHeader",
17451
- "description": "Add a general description of component here\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
17452
- "accessibility_docs": "Add any accessibility considerations",
17451
+ "description": "A component to be used inside Primer::Beta::BorderBox.\nIt will toggle the visibility of the complete Box body",
17452
+ "accessibility_docs": null,
17453
17453
  "is_form_component": false,
17454
17454
  "is_published": true,
17455
17455
  "requires_js": false,