-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(panel, flow-item): add support for collapsing content (#7857)
**Related Issue:** #7498 ## Summary - Add support for collapsing panel content via an action in the header - Adds props `collapsible`, `collapsed` and `collapseDirection` to both `flow-item` and `panel` - `collapseDirection` is internal for discussion - Depending on which way the panel expands, the icons may need to be reversed. - This property allows that. cc @asangma for more information. - We can remove this prop if we don't think its necessary - Adds event `calcitePanelToggle`. - Block calls this event `calciteBlockToggle`. - ActionPad calls this event `calciteActionPadToggle` - Copies t9n messages from block component (expand/collapse) messages. - Adds CSS custom properties for the panel/flow-item to disable the header's bottom border - `--calcite-panel-header-border-block-end` - `--calcite-flow-item-header-border-block-end` - Removes unused private properties on panel 🧹 - Adds screenshot tests & stories - Adds usage file - Updates HTML file for panel - Adds e2e tests
- Loading branch information
Showing
52 changed files
with
460 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Close", | ||
"options": "Options" | ||
"options": "Options", | ||
"collapse": "Collapse", | ||
"expand": "Expand" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_ar.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "إغلاق", | ||
"options": "خيارات" | ||
"options": "خيارات", | ||
"collapse": "طي", | ||
"expand": "توسيع" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_bg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Затваряне", | ||
"options": "Опции" | ||
"options": "Опции", | ||
"collapse": "Сгъване", | ||
"expand": "Разгъване" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_bs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Zatvori", | ||
"options": "Opcije" | ||
"options": "Opcije", | ||
"collapse": "Sažmi", | ||
"expand": "Proširi" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_ca.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Tanca", | ||
"options": "Opcions" | ||
"options": "Opcions", | ||
"collapse": "Redueix", | ||
"expand": "Amplia" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_cs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Zavřít", | ||
"options": "Možnosti" | ||
"options": "Možnosti", | ||
"collapse": "Sbalit", | ||
"expand": "Rozbalit" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_da.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Luk", | ||
"options": "Indstillinger" | ||
"options": "Indstillinger", | ||
"collapse": "Skjul", | ||
"expand": "Udvid" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_de.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Schließen", | ||
"options": "Optionen" | ||
"options": "Optionen", | ||
"collapse": "Ausblenden", | ||
"expand": "Einblenden" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_el.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Κλείσιμο", | ||
"options": "Επιλογές" | ||
"options": "Επιλογές", | ||
"collapse": "Σύμπτυξη", | ||
"expand": "Ανάπτυξη" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_en.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Close", | ||
"options": "Options" | ||
"options": "Options", | ||
"collapse": "Collapse", | ||
"expand": "Expand" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_es.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Cerrar", | ||
"options": "Opciones" | ||
"options": "Opciones", | ||
"collapse": "Contraer", | ||
"expand": "Expandir" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_et.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Sule", | ||
"options": "Valikud" | ||
"options": "Valikud", | ||
"collapse": "Ahenda", | ||
"expand": "Laienda" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_fi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Sulje", | ||
"options": "Asetukset" | ||
"options": "Asetukset", | ||
"collapse": "Kutista", | ||
"expand": "Laajenna" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_fr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Fermer", | ||
"options": "Options" | ||
"options": "Options", | ||
"collapse": "Réduire", | ||
"expand": "Développer" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_he.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "סגירה", | ||
"options": "אפשרויות" | ||
"options": "אפשרויות", | ||
"collapse": "צמצם", | ||
"expand": "הרחב" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_hr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Zatvori", | ||
"options": "Opcije" | ||
"options": "Opcije", | ||
"collapse": "Sažmi", | ||
"expand": "Proširi" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_hu.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Bezárás", | ||
"options": "Beállítási lehetőségek" | ||
"options": "Beállítási lehetőségek", | ||
"collapse": "Összecsukás", | ||
"expand": "Kibontás" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_id.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Tutup", | ||
"options": "Opsi" | ||
"options": "Opsi", | ||
"collapse": "Tutup", | ||
"expand": "Bentang" | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/calcite-components/src/components/panel/assets/panel/t9n/messages_it.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"close": "Chiudi", | ||
"options": "Opzioni" | ||
"options": "Opzioni", | ||
"collapse": "Comprimi", | ||
"expand": "Espandi" | ||
} |
Oops, something went wrong.