@getflip/swirl-components 0.198.0 → 0.200.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/components.json +128 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-accordion.cjs.entry.js +1 -1
- package/dist/cjs/swirl-action-list-section.cjs.entry.js +1 -1
- package/dist/cjs/swirl-action-list_3.cjs.entry.js +2 -2
- package/dist/cjs/swirl-app-bar.cjs.entry.js +7 -1
- package/dist/cjs/swirl-app-layout_6.cjs.entry.js +3 -3
- package/dist/cjs/swirl-autocomplete.cjs.entry.js +4 -4
- package/dist/cjs/swirl-avatar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-badge.cjs.entry.js +1 -1
- package/dist/cjs/swirl-banner.cjs.entry.js +1 -1
- package/dist/cjs/swirl-box.cjs.entry.js +1 -1
- package/dist/cjs/swirl-button-group.cjs.entry.js +2 -2
- package/dist/cjs/swirl-button.cjs.entry.js +1 -1
- package/dist/cjs/swirl-card.cjs.entry.js +2 -2
- package/dist/cjs/swirl-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +1 -1
- package/dist/cjs/swirl-columns.cjs.entry.js +2 -2
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-dialog.cjs.entry.js +1 -1
- package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +2 -2
- package/dist/cjs/swirl-form-control.cjs.entry.js +1 -1
- package/dist/cjs/swirl-form-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-left_4.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check-small_3.cjs.entry.js +2 -2
- package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
- package/dist/cjs/swirl-icon.cjs.entry.js +1 -1
- package/dist/cjs/swirl-image-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/swirl-inline-notification.cjs.entry.js +1 -1
- package/dist/cjs/swirl-inline-status.cjs.entry.js +1 -1
- package/dist/cjs/swirl-link.cjs.entry.js +1 -1
- package/dist/cjs/swirl-menu.cjs.entry.js +2 -2
- package/dist/cjs/swirl-modal.cjs.entry.js +3 -3
- package/dist/cjs/swirl-option-list_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/swirl-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/swirl-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-radio.cjs.entry.js +1 -1
- package/dist/cjs/swirl-search.cjs.entry.js +1 -1
- package/dist/cjs/swirl-skeleton-box.cjs.entry.js +2 -2
- package/dist/cjs/swirl-skeleton-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-stack.cjs.entry.js +1 -1
- package/dist/cjs/swirl-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-switch.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tab.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-column.cjs.entry.js +1 -1
- package/dist/cjs/swirl-text-input.cjs.entry.js +1 -1
- package/dist/cjs/swirl-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toast-provider.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toast.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tooltip.cjs.entry.js +2 -2
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/swirl-accordion/swirl-accordion.js +1 -1
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.js +1 -1
- package/dist/collection/components/swirl-action-list/swirl-action-list.js +1 -1
- package/dist/collection/components/swirl-action-list-section/swirl-action-list-section.js +1 -1
- package/dist/collection/components/swirl-app-bar/swirl-app-bar.js +55 -1
- package/dist/collection/components/swirl-app-bar/swirl-app-bar.spec.js +3 -3
- package/dist/collection/components/swirl-app-layout/swirl-app-layout.js +2 -2
- package/dist/collection/components/swirl-autocomplete/swirl-autocomplete.js +4 -4
- package/dist/collection/components/swirl-avatar/swirl-avatar.js +1 -1
- package/dist/collection/components/swirl-badge/swirl-badge.js +1 -1
- package/dist/collection/components/swirl-banner/swirl-banner.js +1 -1
- package/dist/collection/components/swirl-box/swirl-box.js +1 -1
- package/dist/collection/components/swirl-button/swirl-button.js +1 -1
- package/dist/collection/components/swirl-button-group/swirl-button-group.js +2 -2
- package/dist/collection/components/swirl-card/swirl-card.js +2 -2
- package/dist/collection/components/swirl-checkbox/swirl-checkbox.js +1 -1
- package/dist/collection/components/swirl-chip/swirl-chip.js +1 -1
- package/dist/collection/components/swirl-columns/swirl-columns.js +2 -2
- package/dist/collection/components/swirl-dialog/swirl-dialog.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.js +2 -2
- package/dist/collection/components/swirl-form-control/swirl-form-control.js +1 -1
- package/dist/collection/components/swirl-form-group/swirl-form-group.js +1 -1
- package/dist/collection/components/swirl-icon/swirl-icon.js +1 -1
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.js +2 -2
- package/dist/collection/components/swirl-inline-error/swirl-inline-error.js +1 -1
- package/dist/collection/components/swirl-inline-notification/swirl-inline-notification.js +1 -1
- package/dist/collection/components/swirl-inline-status/swirl-inline-status.js +1 -1
- package/dist/collection/components/swirl-link/swirl-link.js +1 -1
- package/dist/collection/components/swirl-menu/swirl-menu.js +2 -2
- package/dist/collection/components/swirl-modal/swirl-modal.js +3 -3
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +2 -2
- package/dist/collection/components/swirl-pagination/swirl-pagination.js +1 -1
- package/dist/collection/components/swirl-popover/swirl-popover.js +3 -3
- package/dist/collection/components/swirl-progress-indicator/swirl-progress-indicator.js +1 -1
- package/dist/collection/components/swirl-radio/swirl-radio.js +1 -1
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +1 -1
- package/dist/collection/components/swirl-search/swirl-search.js +1 -1
- package/dist/collection/components/swirl-separator/swirl-separator.js +1 -1
- package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.js +2 -2
- package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.js +1 -1
- package/dist/collection/components/swirl-spinner/swirl-spinner.js +1 -1
- package/dist/collection/components/swirl-stack/swirl-stack.js +1 -1
- package/dist/collection/components/swirl-status-indicator/swirl-status-indicator.js +1 -1
- package/dist/collection/components/swirl-switch/swirl-switch.js +1 -1
- package/dist/collection/components/swirl-tab/swirl-tab.js +1 -1
- package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.js +1 -1
- package/dist/collection/components/swirl-table-column/swirl-table-column.js +1 -1
- package/dist/collection/components/swirl-tag/swirl-tag.js +1 -1
- package/dist/collection/components/swirl-text/swirl-text.js +1 -1
- package/dist/collection/components/swirl-text-input/swirl-text-input.js +1 -1
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.js +1 -1
- package/dist/collection/components/swirl-toast/swirl-toast.js +1 -1
- package/dist/collection/components/swirl-toast-provider/swirl-toast-provider.js +1 -1
- package/dist/collection/components/swirl-toolbar/swirl-toolbar.js +1 -1
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +2 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-accordion-item.js +1 -1
- package/dist/components/swirl-accordion.js +1 -1
- package/dist/components/swirl-action-list-section.js +1 -1
- package/dist/components/swirl-action-list2.js +1 -1
- package/dist/components/swirl-app-bar.js +9 -1
- package/dist/components/swirl-app-layout2.js +2 -2
- package/dist/components/swirl-autocomplete.js +4 -4
- package/dist/components/swirl-avatar.js +1 -1
- package/dist/components/swirl-badge2.js +1 -1
- package/dist/components/swirl-banner.js +1 -1
- package/dist/components/swirl-box2.js +1 -1
- package/dist/components/swirl-button-group2.js +2 -2
- package/dist/components/swirl-button2.js +1 -1
- package/dist/components/swirl-card.js +2 -2
- package/dist/components/swirl-checkbox.js +1 -1
- package/dist/components/swirl-chip.js +1 -1
- package/dist/components/swirl-columns.js +2 -2
- package/dist/components/swirl-dialog.js +1 -1
- package/dist/components/swirl-file-viewer-pdf2.js +2 -2
- package/dist/components/swirl-form-control.js +1 -1
- package/dist/components/swirl-form-group.js +1 -1
- package/dist/components/swirl-icon2.js +1 -1
- package/dist/components/swirl-image-grid-item.js +2 -2
- package/dist/components/swirl-inline-error2.js +1 -1
- package/dist/components/swirl-inline-notification.js +1 -1
- package/dist/components/swirl-inline-status.js +1 -1
- package/dist/components/swirl-link.js +1 -1
- package/dist/components/swirl-menu.js +2 -2
- package/dist/components/swirl-modal.js +3 -3
- package/dist/components/swirl-option-list-item2.js +2 -2
- package/dist/components/swirl-pagination.js +1 -1
- package/dist/components/swirl-popover2.js +3 -3
- package/dist/components/swirl-progress-indicator2.js +1 -1
- package/dist/components/swirl-radio.js +1 -1
- package/dist/components/swirl-resource-list-item2.js +1 -1
- package/dist/components/swirl-search.js +1 -1
- package/dist/components/swirl-separator2.js +1 -1
- package/dist/components/swirl-skeleton-box.js +2 -2
- package/dist/components/swirl-skeleton-text.js +1 -1
- package/dist/components/swirl-spinner2.js +1 -1
- package/dist/components/swirl-stack2.js +1 -1
- package/dist/components/swirl-status-indicator.js +1 -1
- package/dist/components/swirl-switch.js +1 -1
- package/dist/components/swirl-tab-bar2.js +1 -1
- package/dist/components/swirl-tab.js +1 -1
- package/dist/components/swirl-table-column.js +1 -1
- package/dist/components/swirl-tag2.js +1 -1
- package/dist/components/swirl-text-input2.js +1 -1
- package/dist/components/swirl-text2.js +1 -1
- package/dist/components/swirl-thumbnail2.js +1 -1
- package/dist/components/swirl-toast-provider.js +1 -1
- package/dist/components/swirl-toast2.js +1 -1
- package/dist/components/swirl-toolbar.js +1 -1
- package/dist/components/swirl-tooltip2.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-accordion-item.entry.js +1 -1
- package/dist/esm/swirl-accordion.entry.js +1 -1
- package/dist/esm/swirl-action-list-section.entry.js +1 -1
- package/dist/esm/swirl-action-list_3.entry.js +2 -2
- package/dist/esm/swirl-app-bar.entry.js +7 -1
- package/dist/esm/swirl-app-layout_6.entry.js +3 -3
- package/dist/esm/swirl-autocomplete.entry.js +4 -4
- package/dist/esm/swirl-avatar.entry.js +1 -1
- package/dist/esm/swirl-badge.entry.js +1 -1
- package/dist/esm/swirl-banner.entry.js +1 -1
- package/dist/esm/swirl-box.entry.js +1 -1
- package/dist/esm/swirl-button-group.entry.js +2 -2
- package/dist/esm/swirl-button.entry.js +1 -1
- package/dist/esm/swirl-card.entry.js +2 -2
- package/dist/esm/swirl-checkbox.entry.js +1 -1
- package/dist/esm/swirl-chip.entry.js +1 -1
- package/dist/esm/swirl-columns.entry.js +2 -2
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-dialog.entry.js +1 -1
- package/dist/esm/swirl-file-viewer_7.entry.js +2 -2
- package/dist/esm/swirl-form-control.entry.js +1 -1
- package/dist/esm/swirl-form-group.entry.js +1 -1
- package/dist/esm/swirl-icon-arrow-left_4.entry.js +1 -1
- package/dist/esm/swirl-icon-check-small_3.entry.js +2 -2
- package/dist/esm/swirl-icon-error_3.entry.js +2 -2
- package/dist/esm/swirl-icon.entry.js +1 -1
- package/dist/esm/swirl-image-grid-item.entry.js +2 -2
- package/dist/esm/swirl-inline-notification.entry.js +1 -1
- package/dist/esm/swirl-inline-status.entry.js +1 -1
- package/dist/esm/swirl-link.entry.js +1 -1
- package/dist/esm/swirl-menu.entry.js +2 -2
- package/dist/esm/swirl-modal.entry.js +3 -3
- package/dist/esm/swirl-option-list_2.entry.js +1 -1
- package/dist/esm/swirl-pagination.entry.js +1 -1
- package/dist/esm/swirl-popover_2.entry.js +3 -3
- package/dist/esm/swirl-progress-indicator.entry.js +1 -1
- package/dist/esm/swirl-radio.entry.js +1 -1
- package/dist/esm/swirl-search.entry.js +1 -1
- package/dist/esm/swirl-skeleton-box.entry.js +2 -2
- package/dist/esm/swirl-skeleton-text.entry.js +1 -1
- package/dist/esm/swirl-stack.entry.js +1 -1
- package/dist/esm/swirl-status-indicator.entry.js +1 -1
- package/dist/esm/swirl-switch.entry.js +1 -1
- package/dist/esm/swirl-tab-bar.entry.js +1 -1
- package/dist/esm/swirl-tab.entry.js +1 -1
- package/dist/esm/swirl-table-column.entry.js +1 -1
- package/dist/esm/swirl-text-input.entry.js +1 -1
- package/dist/esm/swirl-text.entry.js +1 -1
- package/dist/esm/swirl-toast-provider.entry.js +1 -1
- package/dist/esm/swirl-toast.entry.js +1 -1
- package/dist/esm/swirl-toolbar.entry.js +1 -1
- package/dist/esm/swirl-tooltip.entry.js +2 -2
- package/dist/swirl-components/{p-705efcf5.entry.js → p-022eecff.entry.js} +1 -1
- package/dist/swirl-components/{p-0ad3af6b.entry.js → p-0614f755.entry.js} +1 -1
- package/dist/swirl-components/{p-488310fc.entry.js → p-0ca77d35.entry.js} +1 -1
- package/dist/swirl-components/{p-6f415a78.entry.js → p-1032a97c.entry.js} +1 -1
- package/dist/swirl-components/{p-7019e6dc.entry.js → p-14bd9550.entry.js} +1 -1
- package/dist/swirl-components/{p-15a357eb.entry.js → p-1a93e4ae.entry.js} +1 -1
- package/dist/swirl-components/{p-e55171af.entry.js → p-259e41d2.entry.js} +1 -1
- package/dist/swirl-components/p-270309c2.entry.js +1 -0
- package/dist/swirl-components/{p-f0d3b581.entry.js → p-27853fc7.entry.js} +1 -1
- package/dist/swirl-components/{p-ac94fc99.entry.js → p-2e4931e8.entry.js} +1 -1
- package/dist/swirl-components/{p-7d4f193c.entry.js → p-36226188.entry.js} +1 -1
- package/dist/swirl-components/{p-c11ca18e.entry.js → p-378a6a5f.entry.js} +1 -1
- package/dist/swirl-components/{p-27f4f43f.entry.js → p-3c64c30a.entry.js} +1 -1
- package/dist/swirl-components/{p-04b44d30.entry.js → p-4070f21b.entry.js} +1 -1
- package/dist/swirl-components/{p-3cd3db70.entry.js → p-42b2fc50.entry.js} +1 -1
- package/dist/swirl-components/{p-c5fc2c63.entry.js → p-44fa8631.entry.js} +1 -1
- package/dist/swirl-components/{p-e6181004.entry.js → p-4a246b7f.entry.js} +1 -1
- package/dist/swirl-components/{p-a00700d8.entry.js → p-4b8b51bb.entry.js} +1 -1
- package/dist/swirl-components/{p-9c84b099.entry.js → p-5287ebee.entry.js} +1 -1
- package/dist/swirl-components/{p-78635b8d.entry.js → p-572420d6.entry.js} +1 -1
- package/dist/swirl-components/{p-36e5ed51.entry.js → p-65660ce0.entry.js} +2 -2
- package/dist/swirl-components/{p-fddd5aba.entry.js → p-68ab9b04.entry.js} +1 -1
- package/dist/swirl-components/{p-eb03f5e8.entry.js → p-77ca3b3d.entry.js} +1 -1
- package/dist/swirl-components/{p-fc9781a0.entry.js → p-788eeb00.entry.js} +1 -1
- package/dist/swirl-components/{p-fe3a2688.entry.js → p-78ff38b5.entry.js} +1 -1
- package/dist/swirl-components/{p-ef657692.entry.js → p-81826353.entry.js} +1 -1
- package/dist/swirl-components/{p-9eb636d4.entry.js → p-82a308c3.entry.js} +1 -1
- package/dist/swirl-components/{p-d1772d32.entry.js → p-8f3b3b85.entry.js} +1 -1
- package/dist/swirl-components/{p-10a5d3dd.entry.js → p-94a4e326.entry.js} +1 -1
- package/dist/swirl-components/{p-365d82f5.entry.js → p-9d700ac9.entry.js} +1 -1
- package/dist/swirl-components/{p-94468a2a.entry.js → p-a1587b86.entry.js} +1 -1
- package/dist/swirl-components/{p-1045e424.entry.js → p-ac12a851.entry.js} +1 -1
- package/dist/swirl-components/{p-146bafdb.entry.js → p-acaf436c.entry.js} +1 -1
- package/dist/swirl-components/{p-bb4f804e.entry.js → p-b1174043.entry.js} +1 -1
- package/dist/swirl-components/{p-4d2a33ed.entry.js → p-b2ab1a04.entry.js} +1 -1
- package/dist/swirl-components/{p-eec0e484.entry.js → p-b5194373.entry.js} +1 -1
- package/dist/swirl-components/{p-25bf25c6.entry.js → p-b528f6f9.entry.js} +1 -1
- package/dist/swirl-components/{p-0d1168a4.entry.js → p-c6836ea7.entry.js} +1 -1
- package/dist/swirl-components/p-c8b4e275.entry.js +1 -0
- package/dist/swirl-components/{p-d49fea73.entry.js → p-cbf4e512.entry.js} +1 -1
- package/dist/swirl-components/{p-83942eae.entry.js → p-cfe8e85c.entry.js} +1 -1
- package/dist/swirl-components/{p-8a46ef77.entry.js → p-dd3bce08.entry.js} +1 -1
- package/dist/swirl-components/{p-4733182f.entry.js → p-df721c05.entry.js} +1 -1
- package/dist/swirl-components/{p-4d0bcdd1.entry.js → p-e0f2e78f.entry.js} +1 -1
- package/dist/swirl-components/{p-53a10b1b.entry.js → p-e2317bbb.entry.js} +1 -1
- package/dist/swirl-components/{p-a6d58ca2.entry.js → p-e8fad360.entry.js} +1 -1
- package/dist/swirl-components/{p-dbeb8ed9.entry.js → p-ed2d7241.entry.js} +1 -1
- package/dist/swirl-components/{p-cdd3f180.entry.js → p-ed8b7429.entry.js} +1 -1
- package/dist/swirl-components/p-efc0855b.entry.js +1 -0
- package/dist/swirl-components/p-f4d3c5d2.entry.js +1 -0
- package/dist/swirl-components/{p-6beb6879.entry.js → p-fa9d2fad.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.css +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-app-bar/swirl-app-bar.d.ts +3 -0
- package/dist/types/components.d.ts +6 -0
- package/package.json +1 -1
- package/vscode-data.json +66 -0
- package/dist/swirl-components/p-11da1782.entry.js +0 -1
- package/dist/swirl-components/p-63a94955.entry.js +0 -1
- package/dist/swirl-components/p-afc2de7b.entry.js +0 -1
- package/dist/swirl-components/p-e434883f.entry.js +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"entries": [
|
|
3
3
|
"components/swirl-heading/swirl-heading.js",
|
|
4
4
|
"components/swirl-action-list-item/swirl-action-list-item.js",
|
|
5
|
+
"components/swirl-app-bar/swirl-app-bar.js",
|
|
5
6
|
"components/swirl-app-layout/swirl-app-layout.js",
|
|
6
7
|
"components/swirl-text-input/swirl-text-input.js",
|
|
7
8
|
"components/swirl-autocomplete/swirl-autocomplete.js",
|
|
@@ -55,7 +56,6 @@
|
|
|
55
56
|
"components/swirl-accordion-item/swirl-accordion-item.js",
|
|
56
57
|
"components/swirl-action-list/swirl-action-list.js",
|
|
57
58
|
"components/swirl-action-list-section/swirl-action-list-section.js",
|
|
58
|
-
"components/swirl-app-bar/swirl-app-bar.js",
|
|
59
59
|
"components/swirl-app-icon/swirl-app-icon.js",
|
|
60
60
|
"components/swirl-avatar-group/swirl-avatar-group.js",
|
|
61
61
|
"components/swirl-carousel/swirl-carousel.js",
|
|
@@ -36,7 +36,7 @@ export class SwirlAccordion {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'ad20b40fee8a6ecbcf5078bcc67da0738792ee59' }, h("slot", { key: 'b4def8c0c8fde90a8f5431c033aefb7bf6e15842' })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "swirl-accordion"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,7 +58,7 @@ export class SwirlAccordionItem {
|
|
|
58
58
|
const className = classnames("accordion-item", {
|
|
59
59
|
"accordion-item--expanded": this.expanded,
|
|
60
60
|
});
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '006861d6031bc49ef4c68d5e5aee2eaba58e0cc6' }, h("div", { key: '47c5fe06e4da5aff6b675d1b4ad5d223a73e5b3b', class: className }, h(HeadingTag, { key: 'd396f75989f831eddd66510f67c9f5ca523a1e80', class: "accordion-item__heading" }, h("button", { key: '9bfdb9f316d3d64356091ff35086493c153ad9ae', "aria-controls": this.itemId, "aria-expanded": String(this.expanded), class: "accordion-item__toggle", disabled: this.disabled, id: this.headingId, onClick: this.onHeadingClick, type: "button" }, h("span", { key: '0696232de801d6c5aedac6bb1a8714f9c1b9362d', class: "accordion-item__toggle-text" }, this.heading, this.description && (h("swirl-text", { key: '21c86a4e3a8956917fc15ea4387e697be2408beb', as: "span", color: "subdued", size: "sm" }, this.description))), h("span", { key: '50fa0cd1da17d126ecd26757bcda453302dd2182', class: "accordion-item__icon" }, !this.expanded && (h("swirl-icon", { key: 'a05d59697919662a816363c92da91940ece29cf9', glyph: "chevron-right", size: 20 })), this.expanded && (h("swirl-icon", { key: 'e99c77b661c4b4efbd1bf56c69a97f2ff12787c5', glyph: "expand-more", size: 20 }))))), h("div", { key: 'f5e7bbdc5025f952de1fb09bf19c1dae72f53c8f', "aria-labelledby": this.headingId, class: "accordion-item__content", id: this.itemId, role: "region" }, h("slot", { key: '4f755a5f113d956df138f0a7803bb8274149c4cc' })))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "swirl-accordion-item"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class SwirlActionList {
|
|
|
76
76
|
item === activeElement?.querySelector('[role="menuitem"]'));
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '36322caabed257ed68473c6a2faef239318b2ebf' }, h("div", { key: '9a3c533acdd8f9ba50366f3c85473a59b1d97b1f', "aria-orientation": "vertical", class: "action-list", onFocusout: this.isInsidePopover ? undefined : this.onFocusOut, onFocus: this.isInsidePopover ? undefined : this.onFocus, onKeyDown: this.onKeyDown, part: "action-list", ref: (el) => (this.container = el), role: "menu" }, h("slot", { key: 'b969b7469999bcdbe84fa81bd92858c1bd24b1ad' }))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "swirl-action-list"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class SwirlActionListSection {
|
|
|
7
7
|
this.label = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '44a9deefaca9838b3fd25179d39e7b9d961d5910' }, h("div", { key: '3f19a2ea5d7593b8516de8a8657ac7138bd65385', "aria-labelledby": "label", class: "action-list-section", role: "group" }, h("span", { key: 'bba5651dde645a819341872f7bdf918abf1a5fdb', class: "action-list-section__label", id: "label", part: "action-list-section__label" }, this.label), h("div", { key: 'c59c1f6060488ec7995c4b582d30484905a45397', class: "action-list-section__items" }, h("slot", { key: 'fb444405ab1b8beb208044b641fbf16887880ffe' })))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "swirl-action-list-section"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,6 +23,8 @@ export class SwirlAppBar {
|
|
|
23
23
|
this.backButtonLabel = "Go back";
|
|
24
24
|
this.closeButtonIcon = "<swirl-icon-close></swirl-icon-close>";
|
|
25
25
|
this.closeButtonLabel = "Close";
|
|
26
|
+
this.paddingInlineEnd = "16";
|
|
27
|
+
this.paddingInlineStart = "16";
|
|
26
28
|
this.stepUpButtonLabel = "Previous item";
|
|
27
29
|
this.stepDownButtonLabel = "Next item";
|
|
28
30
|
this.showBackButton = undefined;
|
|
@@ -52,7 +54,11 @@ export class SwirlAppBar {
|
|
|
52
54
|
"app-bar--has-cta": this.hasCta,
|
|
53
55
|
"app-bar--has-right-controls": hasRightControls,
|
|
54
56
|
});
|
|
55
|
-
|
|
57
|
+
const styles = {
|
|
58
|
+
paddingInlineEnd: `var(--s-space-${this.paddingInlineEnd})`,
|
|
59
|
+
paddingInlineStart: `var(--s-space-${this.paddingInlineStart})`,
|
|
60
|
+
};
|
|
61
|
+
return (h(Host, { key: 'e3c441ae152c5f32628341d93ab9c01267fdcd14' }, h("div", { key: 'f5d2d48ddb1a3226e0fb5ca4789ff59ddd866dec', class: className, style: styles }, showLeftControls && (h("div", { key: 'c9f3c6f1cab3c15d99f373ddc53ee6dce3e51a6a', class: "app-bar__left-controls" }, (this.showBackButton || this.showCloseButton) && (h("div", { key: '9ae0620bef35977af26de20b4fbe7725062ab0d0', class: "app-bar__main-navigation-control" }, this.showBackButton && (h("swirl-button", { key: '05e57714c3649dbf722d74f135d0c5fb7591e16b', hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButtonLabel, onClick: this.onBackButtonClick })), this.showCloseButton && (h("swirl-button", { key: '54d48e492a7cbc94e7784829ce4288e339e38526', hideLabel: true, icon: this.closeButtonIcon, label: this.closeButtonLabel, onClick: this.onCloseButtonClick })))), this.showStepperControls && (h("div", { key: '65637f25c16f60d7b7028a8b985520688439a2a8', class: "app-bar__stepper-controls" }, h("swirl-button", { key: 'b46ca47a50c9ff3f938d0adc4e5145e1c4d7a6d5', hideLabel: true, icon: "<swirl-icon-arrow-upward></swirl-icon-arrow-upward>", label: this.stepUpButtonLabel, onClick: this.onStepUpButtonClick }), h("swirl-button", { key: 'ce4bbb821ad76249caf680965853aefed6bbf041', hideLabel: true, icon: "<swirl-icon-arrow-downward></swirl-icon-arrow-downward>", label: this.stepDownButtonLabel, onClick: this.onStepDownButtonClick }))))), h("div", { key: '75042cd5d3c9c5f82d1d8c2b5a1ba156890f83a0', class: "app-bar__cta" }, h("slot", { key: '195d9d91da4e64688b281f0a7c5cd8dfdd3f661d', name: "cta" })), h("div", { key: '92fdfb5748e8e1578205c97c13ff361fd3020fac', class: "app-bar__heading" }, h("slot", { key: 'c62711620a9b717c340bfac1a92f8eb639207fd0', name: "heading" })), h("div", { key: 'cd37b16d36b2115ca3c63adbae7635b5a412ba38', class: "app-bar__center-controls" }, h("slot", { key: '1b884ef50fdbf39da5bb738174defa6e17b93efa', name: "center-controls" })), h("div", { key: '9dc46b4fa36e8d34837c26aed63b4bb80c2c08fe', class: "app-bar__right-controls" }, h("slot", { key: '83aa64ac31b9a68f6777e8ad75a0c1ad262a815b', name: "right-controls" })))));
|
|
56
62
|
}
|
|
57
63
|
static get is() { return "swirl-app-bar"; }
|
|
58
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -122,6 +128,54 @@ export class SwirlAppBar {
|
|
|
122
128
|
"reflect": false,
|
|
123
129
|
"defaultValue": "\"Close\""
|
|
124
130
|
},
|
|
131
|
+
"paddingInlineEnd": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "SwirlAppBarPadding",
|
|
136
|
+
"resolved": "\"0\" | \"12\" | \"16\" | \"2\" | \"20\" | \"24\" | \"32\" | \"4\" | \"8\"",
|
|
137
|
+
"references": {
|
|
138
|
+
"SwirlAppBarPadding": {
|
|
139
|
+
"location": "local",
|
|
140
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-app-bar/swirl-app-bar.tsx",
|
|
141
|
+
"id": "src/components/swirl-app-bar/swirl-app-bar.tsx::SwirlAppBarPadding"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": true,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": ""
|
|
150
|
+
},
|
|
151
|
+
"attribute": "padding-inline-end",
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"defaultValue": "\"16\""
|
|
154
|
+
},
|
|
155
|
+
"paddingInlineStart": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "SwirlAppBarPadding",
|
|
160
|
+
"resolved": "\"0\" | \"12\" | \"16\" | \"2\" | \"20\" | \"24\" | \"32\" | \"4\" | \"8\"",
|
|
161
|
+
"references": {
|
|
162
|
+
"SwirlAppBarPadding": {
|
|
163
|
+
"location": "local",
|
|
164
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-app-bar/swirl-app-bar.tsx",
|
|
165
|
+
"id": "src/components/swirl-app-bar/swirl-app-bar.tsx::SwirlAppBarPadding"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": true,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"attribute": "padding-inline-start",
|
|
176
|
+
"reflect": false,
|
|
177
|
+
"defaultValue": "\"16\""
|
|
178
|
+
},
|
|
125
179
|
"stepUpButtonLabel": {
|
|
126
180
|
"type": "string",
|
|
127
181
|
"mutable": false,
|
|
@@ -21,7 +21,7 @@ describe("swirl-app-bar", () => {
|
|
|
21
21
|
expect(page.root).toEqualHtml(`
|
|
22
22
|
<swirl-app-bar>
|
|
23
23
|
<mock:shadow-root>
|
|
24
|
-
<div class="app-bar app-bar--has-cta app-bar--has-right-controls">
|
|
24
|
+
<div class="app-bar app-bar--has-cta app-bar--has-right-controls" style="padding-inline-end: 16; padding-inline-start: 16;">
|
|
25
25
|
<div class="app-bar__cta">
|
|
26
26
|
<slot name="cta"></slot>
|
|
27
27
|
</div>
|
|
@@ -69,7 +69,7 @@ describe("swirl-app-bar", () => {
|
|
|
69
69
|
expect(page.root).toEqualHtml(`
|
|
70
70
|
<swirl-app-bar show-stepper-controls="true">
|
|
71
71
|
<mock:shadow-root>
|
|
72
|
-
<div class="app-bar">
|
|
72
|
+
<div class="app-bar" style="padding-inline-end: 16; padding-inline-start: 16;">
|
|
73
73
|
<div class="app-bar__left-controls">
|
|
74
74
|
<div class="app-bar__stepper-controls">
|
|
75
75
|
<swirl-button hidelabel="" icon="<swirl-icon-arrow-upward></swirl-icon-arrow-upward>" label="Previous item"></swirl-button>
|
|
@@ -107,7 +107,7 @@ describe("swirl-app-bar", () => {
|
|
|
107
107
|
expect(page.root).toEqualHtml(`
|
|
108
108
|
<swirl-app-bar show-close-button="true">
|
|
109
109
|
<mock:shadow-root>
|
|
110
|
-
<div class="app-bar">
|
|
110
|
+
<div class="app-bar" style="padding-inline-end: 16; padding-inline-start: 16;">
|
|
111
111
|
<div class="app-bar__left-controls">
|
|
112
112
|
<div class="app-bar__main-navigation-control">
|
|
113
113
|
<swirl-button hidelabel="" icon="<swirl-icon-close></swirl-icon-close>" label="Close"></swirl-button>
|
|
@@ -197,9 +197,9 @@ export class SwirlAppLayout {
|
|
|
197
197
|
"app-layout--sidebar-active": this.mobileView === "sidebar" || this.sidebarActive,
|
|
198
198
|
"app-layout--sidebar-closing": this.sidebarClosing,
|
|
199
199
|
});
|
|
200
|
-
return (h(Host, { key: '
|
|
200
|
+
return (h(Host, { key: '6d961491aca6930666b7d587789eb3bff6bf1e2d' }, h("section", { key: 'e34654e362f28c3a57aa4716a3a10a86909d9aa8', "aria-labelledby": "app-name", class: className }, h("div", { key: '3e6cc02c9c3701e195a8a92f97f2fa49be7a5325', class: "app-layout__grid" }, h("header", { key: '7b4b7743aa9225c591f05705f18d50bd3009bfff', class: "app-layout__header" }, h("span", { key: '18050ae2d54fd438da16a6df7a57ecd80fac35a6', class: "app-layout__navigation-mobile-menu-button" }, h("slot", { key: '2a4a8d6f30c2e5e02ab512ff2be09197ea61c68c', name: "navigation-mobile-menu-button" })), this.showNavigationBackButton && (h("span", { key: 'c461ab4bd9f6f116cd6c019c0e967633946f0a5c', class: "app-layout__navigation-back-button" }, h("swirl-button", { key: '94a59959334c405d871b9d89b7d72c25a644571c', hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), h("swirl-heading", { key: 'f5fd24b0ad24656831b66da8c024df6d1f5c62a6', as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 3, text: this.appName }), this.hasNavigation && (h("span", { key: '04a2d228a04980e946b2d764bf1783a7c75a8e2f', class: "app-layout__navigation-controls" }, h("slot", { key: '1850db373293226330e64f6c45cb6d2b1792b6fe', name: "navigation-controls" })))), h("nav", { key: 'f90677d445f076e80615a73265e1abf5fd206821', "aria-label": this.navigationLabel, class: "app-layout__navigation" }, h("slot", { key: '1342aa7f9766d8bc7f5ceff39ae14b407871ba5b', name: "navigation" })), h("section", { key: '54bbd47bd318cf77ccfeee3ca0176504928d6c62', "aria-labelledby": "app-name", class: "app-layout__body" }, !this.hideAppBar && (h("header", { key: '6861a37fd4fbafcf4389f9df561abc1010fe94b8', class: "app-layout__app-bar" }, h("span", { key: 'e92f067fbf50cca7931213bc75cf195210d5cd29', class: "app-layout__app-bar-mobile-menu-button" }, h("slot", { key: '37c85dcf2fa77c37ea3aef4537c313ac14eb9ad9', name: "app-bar-mobile-menu-button" })), showBackToNavigationButton && (h("span", { key: 'a647140e357d1099774c239dbdb0c486aeedc74e', class: "app-layout__back-to-navigation-button" }, h("swirl-button", { key: '86b0502d617c12fb7123ef81c46126cc5ea18fca', hideLabel: true, icon: this.transitionStyle === "dialog"
|
|
201
201
|
? "<swirl-icon-close></swirl-icon-close>"
|
|
202
|
-
: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backToNavigationViewButtonLabel, onClick: this.onBackToNavigationViewButtonClick }))), h("span", { key: '
|
|
202
|
+
: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backToNavigationViewButtonLabel, onClick: this.onBackToNavigationViewButtonClick }))), h("span", { key: '0d1bef25d834457390cc3f1e8a16af30ee8ec411', class: "app-layout__custom-app-bar-back-button" }, h("slot", { key: 'ef609f9b32db88320c940927939b2bd3f87a28e5', name: "custom-app-bar-back-button" })), h("div", { key: 'd885bbea33f0c6b046e8cd574f61623e3b7cc225', class: "app-layout__app-bar-content" }, h("slot", { key: '70189b7672d8b70f490c3efdfde15d82c0b5c48c', name: "app-bar" })), h("div", { key: '23b3747628acc4fd2c61ee54de55253a3fc41203', class: "app-layout__app-bar-controls" }, h("slot", { key: '1bb20b112b186544833b10d3f67d48b002773bbc', name: "app-bar-controls" })))), h("div", { key: '33bad47951b64672f1f838b96d51e7e9f9d7c832', class: "app-layout__banner" }, h("slot", { key: 'e59682438a1d7aaec36e143c0c07d69a2205a24f', name: "banner" })), h("div", { key: '322eab095e9bf9d01f331adccdcd8953fcfa9fd0', class: "app-layout__content" }, h("slot", { key: '259690ee199cdc0ac3d037733b54544ea2b483ee', name: "content" })), h("div", { key: '7495427d0a523a22268c19c4ae56c977b4e295d0', class: "app-layout__bottom-bar" }, h("slot", { key: '50cc7202f5bbec17324ca23378617831d9fc199d', name: "bottom-bar" }))), h("aside", { key: '781981ef566aa8717d94331549272e7b9d2eeb6a', class: "app-layout__sidebar" }, h("header", { key: 'e6df1707394682f125448c1cf770600539bb1cfa', class: "app-layout__custom-sidebar-header" }, h("slot", { key: '6e6187ae87c94d9c2a2e7e6f573a384dcea43125', name: "custom-sidebar-header" })), h("header", { key: '7d9a21343c070d3a9aeea9236852be1a2cb12e1e', class: "app-layout__sidebar-header" }, h("swirl-button", { key: '6f4a53a16176d30139d497f4b510586f3bef2252', class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), h("swirl-heading", { key: '6b32dc32a6844cfd258d0148a949f06fa86a222b', as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 3, text: this.sidebarHeading })), h("div", { key: '64914275c88e1843af23ad087774d48092c70a36', class: "app-layout__sidebar-content" }, h("slot", { key: 'c6667fcf5d7702704752360854d9181d8ff35652', name: "sidebar" }))), h("span", { key: '7b8347d1a450aaed9c2e31ae1f308f46a760227b', class: "app-layout__floating-action-button" }, this.ctaLabel && (h("swirl-button", { key: '62393818e2205700c6b090dee8783049f95c747c', hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })), h("slot", { key: '32708bdfa2a5a36fbc7cd79bf0012bbf1928db68', name: "floating-action-button" }))))));
|
|
203
203
|
}
|
|
204
204
|
static get is() { return "swirl-app-layout"; }
|
|
205
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -200,17 +200,17 @@ export class SwirlAutocomplete {
|
|
|
200
200
|
const className = classnames("autocomplete", {
|
|
201
201
|
"autocomplete--inactive": !this.active,
|
|
202
202
|
});
|
|
203
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: 'e523e43c9a3f188b280212d75eb7cda439efa16a' }, h("div", { key: 'bc223dea7f5ee6dcfcb7ff1fec7548f3e70ba02f', class: className, onKeyDown: this.onKeyDown }, this.multiSelect &&
|
|
204
204
|
Array.isArray(this.value) &&
|
|
205
|
-
this.value.length > 0 && (h("div", { key: '
|
|
205
|
+
this.value.length > 0 && (h("div", { key: '3cf9889c1c2398778346eb598232095472ac03ce', class: "autocomplete__multi-select-tags" }, h("swirl-stack", { key: '710997aa77b59d1d997de03b32a91e699a7403a4', orientation: "horizontal", spacing: "8", wrap: true }, this.value.map((item) => {
|
|
206
206
|
return (h("swirl-tag", { key: item.id, label: item.label,
|
|
207
207
|
// eslint-disable-next-line react/jsx-no-bind
|
|
208
208
|
onRemove: () => this.onRemoveValue(item.id), removable: !this.disabled }));
|
|
209
|
-
})))), h("swirl-text-input", { key: '
|
|
209
|
+
})))), h("swirl-text-input", { key: '67c627131a343cd5eab355baa0ce3d6113672a72', autoSelect: this.autoSelect, class: "autocomplete__input", clearable: clearable, clearButtonLabel: this.clearButtonLabel, disabled: this.disabled, disableDynamicWidth: true, id: this.id, inline: this.inline, invalid: this.invalid, onInputFocus: this.onFocus, onKeyDown: this.onInputKeyDown, onValueChange: this.onChange, maxLength: this.maxLength, mode: this.mode, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, spellCheck: this.spellCheck, swirlAriaAutocomplete: "list", swirlAriaControls: suggestionsMenuId, swirlAriaDescribedby: this.swirlAriaDescribedby, swirlAriaExpanded: String(this.active), swirlRole: "combobox", value: valueLabel }), h("div", { key: '1fa4b4c6e1c2116779b3e019f138ceae18143397', class: "autocomplete__listbox-container", onFocusout: this.onFocusOut, ref: (el) => (this.listboxContainerEl = el), style: {
|
|
210
210
|
top: Boolean(this.position) ? `${this.position?.y}px` : "",
|
|
211
211
|
left: Boolean(this.position) ? `${this.position?.x}px` : "",
|
|
212
212
|
width: `${this.inputEl?.getBoundingClientRect().width + 32}px`,
|
|
213
|
-
} }, this.loading && (h("div", { key: '
|
|
213
|
+
} }, this.loading && (h("div", { key: '25bf6f40fc87b6273e8a627aab03c9de2d1a3130', class: "autocomplete__spinner" }, h("swirl-spinner", { key: 'e4e2d6ad0fca0adeea6770d339fcc310fd522083' }))), this.suggestions.length > 0 && (h("swirl-option-list", { key: '7c155395c8eca3d516610ee58c76b4da3465c7a8', allowDeselect: this.multiSelect === true, label: this.menuLabel, multiSelect: this.multiSelect, onValueChange: this.onSelect, optionListId: suggestionsMenuId, ref: (el) => (this.listboxEl = el), value: optionListValue }, this.suggestions.map((suggestion) => (h("swirl-option-list-item", { selected: Array.isArray(this.value)
|
|
214
214
|
? this.value.some((item) => item.id === suggestion.id)
|
|
215
215
|
: this.value?.id === suggestion.id, key: suggestion.id, disabled: suggestion.disabled, label: suggestion.label, value: suggestion.id })))))))));
|
|
216
216
|
}
|
|
@@ -102,7 +102,7 @@ export class SwirlAvatar {
|
|
|
102
102
|
});
|
|
103
103
|
const badgeClassName = classnames("avatar__badge", `avatar__badge--position-${this.badgePosition}`);
|
|
104
104
|
const toolClassName = classnames("avatar__tool", `avatar__tool--position-${this.toolPosition}`);
|
|
105
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: '6e71cf7f05ca78c5d2dbc3180fce8bb0bee5e18c', "aria-label": this.label, onKeydown: this.interactive ? this.onKeydown : undefined, onKeyup: this.interactive ? this.onKeyup : undefined, role: role, tabIndex: this.interactive ? 0 : undefined }, h("span", { key: '0d7b2870ae59e6628e96c38a18c747ef8ee09c54', class: className, part: "avatar" }, showImage && (h("span", { key: '8cf1235dfb9e3b30262f61f6aeef2d251db1fc08', class: "avatar__image" }, h("img", { key: '83eb8aa8d9c16116440e2a50c3a921109e96a812', alt: "", height: swirlAvatarSizeMappings[this.size], loading: this.loading !== "intersecting" ? this.loading : undefined, onError: this.setImageUnavailable, onLoad: this.setImageAvailable, src: this.src, width: swirlAvatarSizeMappings[this.size] }))), showInitials && (h("span", { key: '4dffa0b362fbbc7413000f5fc5006d3566daf0c8', class: "avatar__initials" }, h("span", { key: 'b0e1479398b0f8ac0304fba2c38fdfa66e072fde' }, this.initials))), showIcon && h("span", { key: '13640b63ff186ca7fbe6d72eca77359cdb0eb4bb', class: "avatar__icon", innerHTML: this.icon }), showFallbackIcon && (h("span", { key: '1bba16d3de264381aff4009ae5d2dfee9eb5f638', class: "avatar__icon" }, h("swirl-icon-person", { key: '004689c1bcd3d51b9cf8f8fce93a6923f8f41f6a' }))), showBadge && (h("span", { key: 'b2f9cd9ee49a3bf77781473a94ca68848f6299a4', class: badgeClassName, innerHTML: this.badge })), h("span", { key: '29c112792ac8effec07fffadbf2b6997af304cfe', class: toolClassName }, h("slot", { key: 'a8e2bb8f60e382e86a0cb969af91ffc7195e5204', name: "tool" }))), this.showLabel && (h("span", { key: '4daf80748cdb5a3bacf5405e5ff58fd21febb37d', "aria-hidden": true, class: "avatar__label" }, this.label))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "swirl-avatar"; }
|
|
108
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class SwirlBadge {
|
|
|
12
12
|
const className = classnames("badge", `badge--intent-${this.intent}`, `badge--size-${this.size}`, `badge--variant-${this.variant}`, {
|
|
13
13
|
"badge--has-icon": this.icon,
|
|
14
14
|
});
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '33f35cb8399a9a9af91d771dff6b640b577c3b69', role: "status" }, h("span", { key: '95465982eb5690342abae2235b57644afd8cdd4d', class: className, part: "badge" }, this.icon && h("span", { key: '8a775d6ceb801d34380e82450879108dab4fcb37', class: "badge__icon", innerHTML: this.icon }), this.icon === undefined && this.variant !== "dot" ? (h("span", { class: "badge__label" }, this.label)) : (h(Fragment, null, this.icon === undefined && (h("span", { class: "badge__label" }, "\u00A0")), h("swirl-visually-hidden", null, this.label))))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "swirl-badge"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class SwirlBanner {
|
|
|
53
53
|
const className = classnames("banner", `banner--intent-${this.intent}`, `banner--size-${this.size}`, {
|
|
54
54
|
"banner--has-icon": showIcon,
|
|
55
55
|
});
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '7d1d0fe808a0d56888901519a1d2c7d7a5953703' }, h("div", { key: '6f0482657ddd0b91ba5ca740db378e3fa5cad176', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, h("div", { key: '82bc8952ea7cc638a13eb8997492515280793e70', class: "banner__content", id: "content", part: "banner__content" }, showIcon && (h("span", { key: 'd2d6aa7d78d04fdb16a5d9d632fef49977400690', "aria-hidden": "true", class: "banner__icon", innerHTML: icon, ref: (el) => (this.iconEl = el) })), h("span", { key: '637f8d6f03aa8b9ed71798b60a2a8b6f68c96e6b', class: "banner__text" }, this.content)), showControls && (h("div", { key: '8c6ed8081c22c3f9121223ea2dc6bd3918f1babf', class: "banner__controls" }, this.actionLabel && (h("button", { key: 'afd0254e27d026a1f828ec203eed23a6934c8dbe', class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel)), this.dismissable && (h("button", { key: '7842e8dc33cfc78226ade9d5b8d141809efbb9e7', "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (el) => (this.dismissButtonEl = el), type: "button" }, h("swirl-icon-close", { key: '44118f5b5f92f476440b3adb6d33b3c88ef3b5a8' }))))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "swirl-banner"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -80,7 +80,7 @@ export class SwirlBox {
|
|
|
80
80
|
"box--bordered-inline-start": this.borderedInlineStart,
|
|
81
81
|
"box--cover": this.cover,
|
|
82
82
|
});
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '027b397f10e1f70fb7a0df7f63299949fe4ab7be', class: className, style: styles }, h("slot", { key: '57de1c7c3d70479fdc46e281475e4eed08d8a412' })));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "swirl-box"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,7 +91,7 @@ export class SwirlButton {
|
|
|
91
91
|
"button--pressed": this.pressed,
|
|
92
92
|
});
|
|
93
93
|
const Tag = isLink ? "a" : "button";
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '3080eccf4241cc3696536782d66e444e755ebe8d', style: { pointerEvents: this.disabled ? "none" : "" } }, h(Tag, { key: 'e1678ccf0a907f6e124ffd90382d8436ece74b4d', "aria-controls": this.swirlAriaControls, "aria-current": this.swirlAriaCurrent, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, "aria-label": ariaLabel, "aria-pressed": this.pressed ? "true" : undefined, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, ref: (el) => (this.buttonEl = el), target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value }, Boolean(this.icon) && (h("span", { key: 'a6bc374b9d89f2e8690c33ae24d811559b9813c7', class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !Boolean(this.icon) && (h("span", { key: '907936643a16569d8ad7e0cb9c2293a44c8acf3e', class: "button__icon", ref: (el) => (this.iconEl = el) }, h("slot", { key: '258f476318ac7456fcca53a16ab1742b90bfdd7a', name: "icon" }))), !hideLabel && h("span", { key: '9f5a81854f0f3c05a70b10e0698aca6cfdc8d742', class: "button__label" }, this.label))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "swirl-button"; }
|
|
97
97
|
static get encapsulation() { return "scoped"; }
|
|
@@ -12,11 +12,11 @@ export class SwirlButtonGroup {
|
|
|
12
12
|
const className = classnames("button-group", {
|
|
13
13
|
"button-group--segmented": this.segmented,
|
|
14
14
|
});
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '9687c6322ffcef953cfbe5e06e4a6f8adf480833' }, h("swirl-stack", { key: 'ee585a4758153b42d0f146e0e7e96f2af5248be3', align: this.orientation === "vertical" && this.stretch
|
|
16
16
|
? "stretch"
|
|
17
17
|
: "start", class: className, justify: this.orientation === "horizontal" && this.stretch
|
|
18
18
|
? "stretch"
|
|
19
|
-
: "start", orientation: this.orientation, role: "group", spacing: spacing, wrap: this.wrap }, h("slot", { key: '
|
|
19
|
+
: "start", orientation: this.orientation, role: "group", spacing: spacing, wrap: this.wrap }, h("slot", { key: '978949b595ba449fe7b815b37e4526c2525f2bda' }))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "swirl-button-group"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,9 +79,9 @@ export class SwirlCard {
|
|
|
79
79
|
"card--interactive": this.interactive || this.href,
|
|
80
80
|
"card--is--borderless": this.isBorderless,
|
|
81
81
|
});
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'f8cecba3a843c247f876ed7b3cf56c8bbfeaa430', styles: { height: this.height } }, h(Tag, { key: '85afe38f7753ea8ea9250abaee724a7f8d9108e6', "aria-label": this.swirlAriaLabel, "aria-labelledby": this.swirlAriaLabelledby, class: className, href: this.href, rel: Boolean(this.href) && this.linkTarget === "_blank"
|
|
83
83
|
? "noreferrer"
|
|
84
|
-
: undefined, style: styles, target: this.linkTarget }, h("div", { key: '
|
|
84
|
+
: undefined, style: styles, target: this.linkTarget }, h("div", { key: 'b2928caa364fdfc8d038fb1011235b4314ec8a33', class: "card__image", style: { aspectRatio: this.imageAspectRatio } }, h("slot", { key: 'dfb6bacb00d851486db725151eb3a2d514492b72', name: "image" })), h("div", { key: '851a63e084daa1909fc030efd188d7c1251eea9f', class: "card__body", style: bodyStyles }, h("div", { key: '037c36a2f07355f42b2b95d2c2a9d9807fe02bd8', class: "card__content" }, h("slot", { key: '73a31f76e6d4af56cd2a925844f64c2d1167b1ad', name: "content" }))))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "swirl-card"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,7 +45,7 @@ export class SwirlCheckbox {
|
|
|
45
45
|
"checkbox--invalid": this.invalid,
|
|
46
46
|
"checkbox--unchecked": unchecked,
|
|
47
47
|
});
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'cc5e788a984c8a5162b3d41f8984623ea0b2ede5', style: { width: this.variant === "card" ? "100%" : undefined } }, h("label", { key: '6c755f03de94374b926845de8d23c2ffe88c0010', class: className, htmlFor: this.inputId }, h("span", { key: '767be761f571ab2860d4aaece65cea955884fe6b', class: "checkbox__control" }, h("swirl-visually-hidden", { key: '03c17d3c4238b3cf12f5eaffea54ffcc06a5a41a' }, h("input", { key: '57f89f01c0e59bcd36c9cbf1445d75b66e5d06de', "aria-checked": ariaCheckedLabel, "aria-describedby": this.swirlAriaDescribedby, "aria-invalid": ariaInvalid, "aria-label": this.swirlAriaLabel, checked: checked, class: "checkbox__input", disabled: this.disabled, id: this.inputId, indeterminate: indeterminate, name: this.inputName, onChange: this.onChange, type: "checkbox", value: this.value })), h("span", { key: '22c96b4bf96cd453892ccf9efd970e20d32f57d7', "aria-hidden": "true", class: "checkbox__box" }, h("span", { key: '09bcb150c233170cf5fdb0e0a112b70ae64f2b94', class: "checkbox__icon" }, checked && h("swirl-icon-check-strong", { key: 'e14bd37c5a397a711a52855d58f8abc3b2b65810' }), indeterminate && (h("span", { key: '7873bc0ec60a7d7cf6cc465ac77b544851b44a14', class: "checkbox__indeterminate-icon" }))))), showLabelContainer && (h("span", { key: '667dfd4e4907c9966513064f04f4734a9cb964f5', class: "checkbox__label-container" }, this.label && h("span", { key: '0141f0b56214c9d1fc73f08cdd287572ff1f4529', class: "checkbox__label" }, this.label), this.description && (h("span", { key: '5d9fc09abccc81d2e6402b42c659380e75f72288', class: "checkbox__description" }, this.description)))))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "swirl-checkbox"; }
|
|
51
51
|
static get encapsulation() { return "scoped"; }
|
|
@@ -49,7 +49,7 @@ export class SwirlChip {
|
|
|
49
49
|
"chip--interactive": this.interactive || this.pressed !== undefined,
|
|
50
50
|
"chip--removable": this.removable,
|
|
51
51
|
});
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '6ce267d94331ffa5cd45590f776819ca81f0269f' }, h(Tag, { key: '9d20a1ac9558e920e7924b86178920ec91b6b77d', class: className, type: this.interactive ? "button" : undefined, "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined }, h("span", { key: '67ed858d088ff500b553db57276e99e94ba660c3', class: "chip__inner" }, showAvatar && (h("span", { key: '87e5bc08fc83e55f7d63dd3a38a18def3bfc0470', class: "chip__avatar" }, h("slot", { key: '3c7a52dcc434476313c61b43603ff3188758618d', name: "avatar" }))), showIcon && (h("span", { key: '16edc3a3da88e0e43eb81c7c8228e873e63e61df', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: '951fc836655f2ba5046c2a9c8a56954087378fc3', class: "chip__label" }, this.label)), this.progress !== undefined && (h("span", { key: 'bcda4f0a728956f5e18c642c316002c31e240443', class: "chip__progress-indicator" }, h("swirl-progress-indicator", { key: '6aed56a2fa7702b583203768f5b734db1b215f4b', label: this.progressBarLabel, value: this.progress })))), this.removable && (h("button", { key: 'b762ed266095ef2bc96ba3fee9e689f4e6865479', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.remove.emit }, h("swirl-icon-close", { key: 'ba7b0ccef7688fe8f385f422b8a8418249abf46d', size: 20 })))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "swirl-chip"; }
|
|
55
55
|
static get encapsulation() { return "scoped"; }
|
|
@@ -5,10 +5,10 @@ export class SwirlColumns {
|
|
|
5
5
|
this.spacing = undefined;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'be4c273a9e25e8b0c32d7e90de79e60fed795141' }, h("div", { key: '5b834a7d9a058f0c2177648bc7320cd22b407a38', class: "columns", style: {
|
|
9
9
|
gridTemplateColumns: this.columns,
|
|
10
10
|
gap: `var(--s-space-${this.spacing})`,
|
|
11
|
-
} }, h("slot", { key: '
|
|
11
|
+
} }, h("slot", { key: '56c43acdf48ce8184e7b75ccc3ad0016bd2e285d' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "swirl-columns"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,7 +64,7 @@ export class SwirlDialog {
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const className = classnames("dialog", { "dialog--closing": this.closing });
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '26954b78d9f2c39ea321e81285ffbed08b2d3773' }, h("div", { key: '7ce0e80ecafe7fc289c7549f430cff2b4491c7bc', "aria-describedby": "content", "aria-hidden": "true", "aria-labelledby": this.hideLabel ? undefined : "label", "aria-label": this.hideLabel ? this.label : undefined, "aria-modal": "true", class: className, onKeyDown: this.onKeyDown, ref: (el) => (this.dialogEl = el), role: "alertdialog" }, h("div", { key: '4fcd019a45dacb18bf096743956176fbab60eacd', class: "dialog__backdrop", onClick: this.onBackdropClick }), h("div", { key: 'f007c3fdb86297861dc7d4b22d1fce80cf21afd8', class: "dialog__body", part: "dialog__body", role: "document" }, !this.hideLabel && (h("h2", { key: 'cfa055452fba83877207e1b8ee95cec9c3b82442', class: "dialog__heading", part: "dialog__heading", id: "label" }, this.label)), h("div", { key: '8c4bf02726a2a6d2c13d994649a81919cbba0e81', class: "dialog__content", part: "dialog__content", id: "content" }, h("slot", { key: '1558c8b2ecec2557d332c5ef7da1532943cfbf0c' })), h("div", { key: '48117a3902352da99f7801b062fed46eb7a6a6dc', class: "dialog__controls", ref: (el) => (this.controlsContainerEl = el) }, this.secondaryActionLabel && (h("swirl-button", { key: '15fdebe09fdda48ecb39b52ba28cf1dfa0e0e322', label: this.secondaryActionLabel, onClick: this.onSecondaryAction })), this.primaryActionLabel && (h("swirl-button", { key: '8abd9032c4f11d2cc47e5ce5f204092828523917', intent: this.intent, label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" })))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "swirl-dialog"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -326,7 +326,7 @@ export class SwirlFileViewerPdf {
|
|
|
326
326
|
: this.visiblePages[0];
|
|
327
327
|
const showSpinner = this.loading;
|
|
328
328
|
const className = classnames("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
329
|
-
return (h(Host, { key: '
|
|
329
|
+
return (h(Host, { key: '2d3e38cad8cea628df0e1155eb15445f56f99803', class: className, exportparts: "file-viewer-pdf__pagination" }, this.error && (h("swirl-inline-error", { key: '3008938faf485009c65dbac73b1534689e2a17e1', class: "file-viewer-pdf__error", message: this.errorMessage })), h("div", { key: 'bfddf8fb94651405dab2b2c61f084e18b3e87902', "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (el) => (this.scrollContainer = el) }, this.pages.map((page) => {
|
|
330
330
|
const viewport = page.getViewport({
|
|
331
331
|
scale: this.getScale(page),
|
|
332
332
|
});
|
|
@@ -340,7 +340,7 @@ export class SwirlFileViewerPdf {
|
|
|
340
340
|
width: `${width}px`,
|
|
341
341
|
height: `${height}px`,
|
|
342
342
|
}, tabIndex: 0 }, !rendered && (h("swirl-spinner", { class: "file-viewer-pdf__page-spinner" })), h("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: rendered ? "1" : "0" } }), h("div", { class: "file-viewer-pdf__text-container" })));
|
|
343
|
-
})), showPagination && (h("span", { key: '
|
|
343
|
+
})), showPagination && (h("span", { key: 'de4487f27fb7041473671caacd173d71f895b9c7', class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, h("span", { key: '77874267a29e093d7f5f9ba4c3d0895e7c470713', "aria-current": "page" }, currentPage), " / ", this.doc.numPages)), showSpinner && (h("div", { key: '85fe73564deeb070ec42bf900636ca45f8399bd3', class: "file-viewer-pdf__spinner" }, h("swirl-spinner", { key: 'db5b9dee45c00ae4cbdac03640a3fec36fd36cc3' })))));
|
|
344
344
|
}
|
|
345
345
|
static get is() { return "swirl-file-viewer-pdf"; }
|
|
346
346
|
static get encapsulation() { return "shadow"; }
|
|
@@ -153,7 +153,7 @@ export class SwirlFormControl {
|
|
|
153
153
|
"form-control--is-select": isSelect,
|
|
154
154
|
});
|
|
155
155
|
const LabelTag = hasContenteditableControl ? "div" : "label";
|
|
156
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: 'af46148f774d3bb04d4e808a66686ba12ddd580b', onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onKeyDown: this.onKeyDown }, h("div", { key: 'e282305055b190bd2eb36569c02eabf598dae3d5', class: className, role: "group" }, h("span", { key: 'a2bd20175356fd1c17fb8f09a56e61d35bf518e2', class: "form-control__controls" }, h("span", { key: '02ca095153f5f5d011ee7ea297ce66b919aaf616', class: "form-control__prefix" }, h("slot", { key: '898844a7fad51a09e9dbe73607ac002ca4d159ed', name: "prefix" })), h(LabelTag, { key: '058102fa4f4882bf0a78a6c224317867219385ce', class: "form-control__label", onClick: this.onLabelClick }, h("span", { key: '549eb4345a5fc0409feddebdf5318d5e5cdeda9f', class: "form-control__label-text", id: this.labelId }, this.label, this.tooltip && this.labelPosition === "outside" && (h("span", { key: '19c30c9165b5a82c4b6a0000e7ff543642fad032', class: "form-control__tooltip" }, h("swirl-tooltip", { key: 'd99a4469954fa2f165c42b55b9c5ae3e120b7c55', content: this.tooltip, positioning: "fixed", position: "top" }, h("swirl-icon-help", { key: 'b109a8bdaa64e6cd53f9387bfcf4674921190ef6', size: 16, tabindex: "0" }))))), h("span", { key: 'd2a0d027f17680993de98b67b79ff15ece1a65d9', class: "form-control__input" }, h("slot", { key: '3a9ed204addcc57f3bdbc357e4ae31566d0e4cd4' })))), showDescription && (h("span", { key: 'acb6aac692734078452087dd8ae06c43adbf77be', class: "form-control__description", id: this.descriptionId }, this.description)), showErrorMessage && (h("span", { key: '6adadee57e6c4a3a42f513810ed2f344fb4f8bbb', "aria-live": "polite", class: "form-control__error-message", id: this.descriptionId }, h("swirl-inline-error", { key: '238c1ad310cc4ef4dd91117e6a86ffa33248c919', message: this.errorMessage, size: "s" }))))));
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "swirl-form-control"; }
|
|
159
159
|
static get encapsulation() { return "scoped"; }
|
|
@@ -6,7 +6,7 @@ export class SwirlFormGroup {
|
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
8
|
const className = classnames("form-group", `form-group--orientation-${this.orientation}`);
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '2e0236314e66e90b245065f56fa7a41c9290367d' }, h("div", { key: 'eb0d4cb779f7cf7eb92911af1dd28aa67b5182df', class: className }, h("slot", { key: '82e80790c2b56adb31bd06286f98d1b7e5416205' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "swirl-form-group"; }
|
|
12
12
|
static get encapsulation() { return "scoped"; }
|
|
@@ -7,7 +7,7 @@ export class SwirlIcon {
|
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
const Tag = `swirl-icon-${this.glyph}`;
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '513d3eda3fc6ae104a894d6b8899fb5cf2cb6533' }, h(Tag, { key: 'f257e7c91e842275f82da470dbbd5e5f567b7ac0', color: this.color, size: this.size })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "swirl-icon"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,14 +57,14 @@ export class SwirlImageGridItem {
|
|
|
57
57
|
"image-grid-item--has-error": this.error,
|
|
58
58
|
"image-grid-item--has-overlay": this.overlay,
|
|
59
59
|
});
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '31248910e8c9b74c256eab3fda1baaf653c3344c', role: "listitem" }, h(Tag, { key: '74ac2ddd0f449ecd5f061dfff852b19026bc482f', class: className, type: this.interactive ? "button" : undefined }, h("div", { key: '4ebaf2e35d4ab5779600b88f967f23b5e6de7e67', class: "image-grid-item__background", style: {
|
|
61
61
|
backgroundImage: showBlurredBackground
|
|
62
62
|
? `url(${this.src})`
|
|
63
63
|
: undefined,
|
|
64
64
|
} }), this.loading !== "intersecting" || this.inViewport ? (h("img", { alt: this.alt, class: "image-grid-item__image", loading: this.loading !== "intersecting" ? this.loading : undefined, onError: this.onError, onLoad: this.onLoad, ref: (el) => (this.img = el), src: this.src })) : (h("div", { class: "image-grid-item__loading-placeholder" })), this.loaded &&
|
|
65
65
|
!this.error &&
|
|
66
66
|
this.icon &&
|
|
67
|
-
!Boolean(this.overlay) && (h("div", { key: '
|
|
67
|
+
!Boolean(this.overlay) && (h("div", { key: 'b11a327a30e92ccce354176f35031e00af05b92e', class: "image-grid-item__icon", innerHTML: this.icon })), this.overlay && (h("div", { key: 'e384b6006a277cb0e55c15d7547709e5e8de6694', class: "image-grid-item__overlay" }, this.overlay)), !this.loaded && (h("div", { key: '9d081ed42cb5fbed8eed67f91032285572cf1e1a', class: "image-grid-item__spinner" }, h("swirl-spinner", { key: '407c9627c45aff862bab130566301fbd662d0b7f' }))), this.loaded && this.error && (h("div", { key: '2258d9b2c00058dc851afe0ed7a509ddd298467d', class: "image-grid-item__error" }, h("swirl-icon-error", { key: '15b48376686ef20e2629a06a9e05d8b5ea563602', color: "critical" }))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "swirl-image-grid-item"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class SwirlInlineError {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const className = classnames("inline-error", `inline-error--size-${this.size}`);
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '804d9512c703121f135c621ffe3f75f40f47526d' }, h("span", { key: '7b2fd3af5fa2c6140a3931c1c8df6ce891c3ab26', class: className, part: "inline-error" }, h("span", { key: '7a398c0cf6cc4008fa14e4332abcd1413048d42e', class: "inline-error__icon", ref: (el) => (this.iconEl = el) }, h("swirl-icon-error", { key: '0ed735a3b2d4c7490b1f92f80590019e2850d93e' })), h("span", { key: 'c7f52688925bdb9fade0b461319233b9a94d7419', class: "inline-error__message" }, this.message))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "swirl-inline-error"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class SwirlInlineNotification {
|
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
const className = classnames("inline-notification", `inline-notification--intent-${this.intent}`);
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '8e21f90f77594f0cc4a64e6cff99bdb35166ea70' }, h("div", { key: '43b8b7ee49f36a748859127f56ff0eca5d4f97de', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, h("span", { key: '81bcced39e396d677b14f22620f4a283202eb983', "aria-hidden": "true", class: "inline-notification__icon" }, this.intent === "critical" && (h("swirl-icon-error", { key: '8f1dea1971ae34e70dc6841efa991dd5688360c3', size: 20 })), this.intent === "success" && (h("swirl-icon-check-circle", { key: '8d48709d600fd93a415a31dbfd386cfc659f0d11', size: 20 })), this.intent === "warning" && (h("swirl-icon-warning", { key: 'faa4b3951d5d83264679b1acc7ba6e9e8ca9f872', size: 20 })), this.intent === "info" && (h("swirl-icon-info", { key: '5fe76a76f0c8c0e809d9e184115665c71824ca31', size: 20 }))), h("span", { key: 'f318fc8979d7d132455b05cb2b881308e708f3b2', class: "inline-notification__content", id: "content" }, h("swirl-text", { key: '2fc1a5088e28ec8e1d2c08a215a319abb8d71672', class: "inline-notification__heading", size: "sm", weight: "semibold" }, this.heading), h("slot", { key: '7ee8b88b3d040a295b13ac2065a0335e2a83768a' })))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "swirl-inline-notification"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class SwirlInlineStatus {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const className = classnames("inline-status", `inline-status--intent-${this.intent}`, `inline-status--size-${this.size}`);
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'ccfd99f89e7005d6b03dcc1c8cd7cc7d8fd3e108' }, h("span", { key: '625ab5faff22280fe67340b3ffc1f90feaf237ac', class: className, part: "inline-status" }, this.icon && (h("span", { key: 'c9bdbc0d33f14b656a2bfc92de564a202cfccadf', class: "inline-status__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { key: '1d3339349bf63d7f307be152d840c266da42b492', class: "inline-status__message" }, this.message))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "swirl-inline-status"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class SwirlLink {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const className = classnames("link", `link--color-${this.color}`);
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '8bc85c462cefcd4b542d2b59494a1f95e70ffde0' }, h("a", { key: '21d84579f9ec88e09d766e7cd7038f27e92deaca', class: className, href: this.href, part: "link", target: this.target }, this.label)));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "swirl-link"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|