@getflip/swirl-components 0.199.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/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.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
|
@@ -174,13 +174,13 @@ const SwirlModal = class {
|
|
|
174
174
|
"modal--scrolled": this.scrolled,
|
|
175
175
|
"modal--scrolled-down": this.scrolledDown,
|
|
176
176
|
});
|
|
177
|
-
return (index.h(index.Host, { key: '
|
|
177
|
+
return (index.h(index.Host, { key: 'd101cece24cb469e6300a88cda41a67281cd2b67' }, index.h("section", { key: 'ebad873d554eb02f4935d21d52e329320d31a47e', "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: className, onKeyDown: this.onKeyDown, role: "dialog", ref: (el) => (this.modalEl = el) }, index.h("div", { key: 'bf4a0569609c57d8f13c98ea86dc2fa22bb608d8', class: "modal__backdrop", onClick: this.onBackdropClick }), index.h("div", { key: 'd8624f029c1a40a13159ec2f6eb244233a337b9b', class: "modal__body", style: {
|
|
178
178
|
"--swirl-modal-max-height": this.maxHeight,
|
|
179
179
|
"--swirl-modal-height": this.height,
|
|
180
180
|
maxWidth: this.maxWidth,
|
|
181
|
-
} }, index.h("header", { key: '
|
|
181
|
+
} }, index.h("header", { key: '1bd7f42348ca11ded0c28d5324b6f070949b44c9', class: "modal__custom-header" }, index.h("slot", { key: '39fbacbcd794a371b898943bce382fee3d86a44b', name: "custom-header" })), (!this.hideLabel || !this.hideCloseButton) && (index.h("header", { key: 'c397f6bc837f3b8eb54615110f5938ed180cfb26', class: "modal__header" }, index.h("div", { key: '2a2624b81f447f14c4c02528a3cde361a9ce2dcb', class: "modal__header-bar" }, !this.hideCloseButton && (index.h("swirl-button", { key: 'eb1a57b60af155cfc640ef2ef0b6ec0e57889c88', class: "modal__close-button", hideLabel: true, icon: this.variant === "default"
|
|
182
182
|
? "<swirl-icon-close></swirl-icon-close>"
|
|
183
|
-
: "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick })), !this.hideLabel && (index.h("swirl-heading", { key: '
|
|
183
|
+
: "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick })), !this.hideLabel && (index.h("swirl-heading", { key: '7d5e09b46ed9065e8d21830e4d7fa83687b0b911', as: "h2", class: "modal__heading", level: 3, text: this.label }))))), index.h("div", { key: 'a2e87dc146c87c1f900c1692a3d00cc05691d032', class: "modal__content-container" }, index.h("div", { key: '413163c6bc7bd8057be1bb73e30f0db901d5d9c8', class: "modal__primary-content" }, index.h("div", { key: 'cd9db06581c8286137943e5a2f05d11bc7febe42', class: "modal__header-tools" }, index.h("slot", { key: '5a92044e76f842523e6e2e74413826d9d32180da', name: "header-tools" })), index.h("div", { key: 'f1eae6dde8e0cb56ec4dd5a92903a5f99738e4cf', class: "modal__content", onScroll: this.determineScrollStatus, ref: (el) => (this.scrollContainer = el) }, index.h("slot", { key: '22fe6f164c770c6b61b0c02f0aa8ce0bed9dbf49' }))), index.h("div", { key: '5bda225a1be3dc0e41a6fba093e430096ca372c3', class: "modal__secondary-content" }, index.h("slot", { key: '24bbcea293f3f849dfec59a00ba6c78d8d9adfa6', name: "secondary-content" }))), index.h("div", { key: '1d251bb36ac9267efaff5ebbb4dfbfeceae6b001', class: "modal__custom-footer" }, index.h("slot", { key: '64bac816af117d2c1ded2e3e2296e5dc3086f1eb', name: "custom-footer" })), showControls && (index.h("footer", { key: '84941235ca72a66ec1e8e880af177bf67d6264ba', class: "modal__controls" }, index.h("swirl-button-group", { key: 'f5e332e1831b8f168375673cc51f87fd56ef7f97', wrap: true }, this.secondaryActionLabel && (index.h("swirl-button", { key: '4c104649ec6bac6f17c1e57ea8b79762490c5da3', label: this.secondaryActionLabel, onClick: this.onSecondaryAction })), this.primaryActionLabel && (index.h("swirl-button", { key: 'df096b033de95729cd0c12a70afc17b4afd5dbc0', intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" })))))))));
|
|
184
184
|
}
|
|
185
185
|
get el() { return index.getElement(this); }
|
|
186
186
|
static get watchers() { return {
|
|
@@ -371,7 +371,7 @@ const SwirlTag = class {
|
|
|
371
371
|
const className = index$1.classnames("tag", `tag--intent-${this.intent}`, `tag--size-${this.size}`, {
|
|
372
372
|
"tag--bordered": this.bordered,
|
|
373
373
|
});
|
|
374
|
-
return (index.h(index.Host, { key: '
|
|
374
|
+
return (index.h(index.Host, { key: 'a7e7462eac54e144fc9d1d442d33287c480eefce' }, index.h("span", { key: 'b758ec2a9c31032caa720bfefaf769f3f2cefe6a', class: className, part: "tag" }, index.h("span", { key: '65c171c46715749bbc22c1ceff96963589e298ac', class: "tag__label" }, this.label), this.removable && (index.h("button", { key: 'd1ea6ea0df8612c3c4f2a4bb9a4d5b0be5f69279', "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, tabIndex: this.el.ariaHidden === "true" ? -1 : undefined, type: "button" }, index.h("swirl-icon-close", { key: 'f9d220ded4892a78413f4b5415b3083842fcd0ef', size: 16 }))))));
|
|
375
375
|
}
|
|
376
376
|
get el() { return index.getElement(this); }
|
|
377
377
|
};
|
|
@@ -92,7 +92,7 @@ const SwirlPagination = class {
|
|
|
92
92
|
const showDropDown = this.variant === "advanced";
|
|
93
93
|
const ariaPageLabel = `${this.page.toLocaleString()} ${this.pageLabel} ${this.pages.toLocaleString()}`;
|
|
94
94
|
const className = index$1.classnames("pagination", `pagination--variant-${this.variant}`);
|
|
95
|
-
return (index.h(index.Host, { key: '
|
|
95
|
+
return (index.h(index.Host, { key: 'a868ebbd52be7109114aa9902e90da4e8b3cc05b' }, index.h("nav", { key: 'c901f4199b231df362a5c245f39793158347e597', "aria-label": this.label, class: className }, index.h("ul", { key: '030fd790cf353b89a48d8b8d990c2e13984dbad6', class: "pagination__list", part: "pagination__list" }, this.showPageSizeSelect && (index.h("li", { key: 'dcd1ee3eb343ae6a095836719c94b554b589baf1', class: "pagination__list-item" }, index.h("label", { key: '84d344807e9efb1b6c7d8ca867e234fcd1552f3e', class: "pagination__page-size-selection" }, index.h("swirl-text", { key: '76eda5b61d9c7e9a078e0c6a3538dcc548c096f7' }, this.pageSizeSelectLabel), index.h("swirl-stack", { key: 'fa95c18ef16df5f3cee53d82a3b879c124f2ea52', align: "center", class: "pagination__page-size-select-container", orientation: "horizontal" }, index.h("select", { key: 'bae99f7594c60a9db45ea6c86edf47bbeafe8ed8', class: "pagination__page-size-select", onChange: this.onPageSizeSelect }, this.pageSizeOptions.map((pageSizeOption) => (index.h("option", { key: pageSizeOption, selected: pageSizeOption === this.pageSize, value: pageSizeOption }, pageSizeOption)))), index.h("swirl-icon-expand-more", { key: '3e02befb8461a4ffc9256058bd088c91447b000c', "aria-hidden": "true", class: "pagination__page-size-select-icon", size: 16 }))))), index.h("li", { key: 'c6c21f0ee13e46586bf0982c2fb97636ee016285', class: "pagination__list-item" }, index.h("swirl-button", { key: '06f41cac26e65a3b4a1493bc3824e9d9961a83ae', class: "pagination__first-page-button", disabled: this.page <= 1, hideLabel: true, icon: "<swirl-icon-double-arrow-left></swirl-icon-double-arrow-left>", intent: "primary", label: this.firstPageButtonLabel, onClick: this.onFirstPageButtonClick })), index.h("li", { key: 'f519537b3bc4b4c5dde7cee4623a23a28953c922', class: "pagination__list-item" }, index.h("swirl-button", { key: '22db009bbff5ba95a12f847e9da292ee6b2e3ba4', class: "pagination__prev-button", disabled: this.page <= 1, hideLabel: true, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", intent: "primary", label: this.prevButtonLabel, onClick: this.onPrevButtonClick })), showPageLabel ? (index.h("li", { class: "pagination__list-item pagination__page-label" }, index.h("span", null, showDropDown ? (index.h("span", { "aria-current": "page", class: "pagination__advanced-label" }, index.h("input", { "aria-label": this.pageSelectLabel, class: "pagination__page-input", onFocus: this.onFocusPageInput, onInput: this.onPageInput, ref: (el) => (this.pageInput = el), type: "text", value: this.page }), index.h("span", { "aria-hidden": "true" }, this.pageLabel, " ", this.pages.toLocaleString()))) : (index.h("span", { "aria-current": "page" }, ariaPageLabel))))) : (index.h("li", { class: "pagination__list-item" }, index.h("swirl-visually-hidden", null, index.h("span", { "aria-current": "page" }, ariaPageLabel)))), index.h("li", { key: '5084487945838fc47988d1bab2f97aaf2198c938', class: "pagination__list-item" }, index.h("swirl-button", { key: '1b7243f892803406be2fa5956def1e79f37fcc04', class: "pagination__next-button", disabled: this.page >= this.pages, hideLabel: true, icon: "<swirl-icon-chevron-right></swirl-icon-chevron-right>", iconPosition: "end", intent: "primary", label: this.nextButtonLabel, onClick: this.onNextButtonClick })), index.h("li", { key: '006a6afdc28d7033fffa3b90e72f2371a22abcd7', class: "pagination__list-item" }, index.h("swirl-button", { key: 'd409925fbd17f122bd01d32f4d17b71d40f2c414', class: "pagination__last-page-button", disabled: this.page >= this.pages, hideLabel: true, icon: "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>", intent: "primary", label: this.lastPageButtonLabel, onClick: this.onLastPageButtonClick }))))));
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
SwirlPagination.style = SwirlPaginationStyle0;
|
|
@@ -260,14 +260,14 @@ const SwirlPopover = class {
|
|
|
260
260
|
"popover--inactive": !this.active,
|
|
261
261
|
"popover--transparent": this.transparent,
|
|
262
262
|
});
|
|
263
|
-
return (index.h(index.Host, { key: '
|
|
263
|
+
return (index.h(index.Host, { key: 'f3bca2b5bafb8518298ab646ac1c348b5c56b232' }, index.h("div", { key: '5c035656e06397cec7631204d61faece94c616fb', class: className, onKeyDown: this.onKeydown }, index.h("div", { key: 'f2d24daa53c0e5165c5c60e38cd872179c5473ba', "aria-hidden": !this.active ? "true" : "false", "aria-label": this.label, class: "popover__content", id: this.popoverId, part: "popover__content", role: "dialog", ref: (el) => (this.contentContainer = el), style: {
|
|
264
264
|
top: Boolean(this.position) ? `${this.position?.y}px` : "",
|
|
265
265
|
left: Boolean(this.position) ? `${this.position?.x}px` : "",
|
|
266
|
-
}, tabindex: "-1" }, index.h("span", { key: '
|
|
266
|
+
}, tabindex: "-1" }, index.h("span", { key: '4efd18f520572ae456d0e5bbfc3c92a158b771bd', class: "popover__handle" }), index.h("div", { key: 'fa2c01019b25ec19830887d6ea72f08ca42daf27', class: "popover__scroll-container", part: "popover__scroll-container", ref: (el) => (this.scrollContainer = el), style: {
|
|
267
267
|
maxHeight: !mobile && Boolean(this.maxHeight)
|
|
268
268
|
? this.maxHeight
|
|
269
269
|
: undefined,
|
|
270
|
-
} }, index.h("slot", { key: '
|
|
270
|
+
} }, index.h("slot", { key: '6ea169f4b966c6bef3037e9a1f1d3f39e0bda3b3' }))), this.active && (index.h("div", { key: 'cadaaf7d7ba1a45bb07bcd41fae23b83e3d95394', class: "popover__backdrop", onClick: this.onCloseButtonClick })))));
|
|
271
271
|
}
|
|
272
272
|
get el() { return index.getElement(this); }
|
|
273
273
|
};
|
|
@@ -22,7 +22,7 @@ const SwirlProgressIndicator = class {
|
|
|
22
22
|
const radius = this.size === "m" ? 20 : 10;
|
|
23
23
|
const circumference = Math.round(radius * 2 * Math.PI);
|
|
24
24
|
const dashOffset = Math.round(circumference * ((100 - this.value) / 100));
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: 'ca77d885b616b669a5033061be8f2f21343a21d7', class: this.variant }, this.variant === "bar" && (index.h("progress", { key: '71195582ff12f2710703846d15549aa8ceeb3712', "aria-label": this.label, "aria-valuemax": 100, "aria-valuemin": 0, "aria-valuenow": this.value, class: className, max: 100, value: this.value })), this.variant === "circle" && (index.h("span", { key: '2d0da5160a59cd6002c8ee9fd2b907b6fe7210bd', role: "progressbar", "aria-label": this.label, "aria-valuemax": 100, "aria-valuemin": 0, "aria-valuenow": this.value, class: className }, index.h("svg", { key: '758e7629cb59f15066e898f5b052d3e861bf4c1d', class: "progress-indicator__circle", focusable: "false", viewBox: `0 0 ${(radius + strokeWidth) * 2} ${(radius + strokeWidth) * 2}` }, index.h("circle", { key: '3a50b796bdd0d77bfdca2fd6260e98674094e4d4', class: "progress-indicator__circle-background", cx: radius + strokeWidth, cy: radius + strokeWidth, r: radius, fill: "none", "stroke-width": strokeWidth }), index.h("circle", { key: 'f5a460cc868e4445682312f7ce48e06cc71e95b8', class: "progress-indicator__circle-value", cx: radius + strokeWidth, cy: radius + strokeWidth, r: radius, fill: "none", "stroke-width": strokeWidth, "stroke-dasharray": circumference, "stroke-dashoffset": dashOffset }))))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
SwirlProgressIndicator.style = SwirlProgressIndicatorStyle0;
|
|
@@ -46,7 +46,7 @@ const SwirlRadio = class {
|
|
|
46
46
|
"radio--invalid": this.invalid,
|
|
47
47
|
"radio--unchecked": unchecked,
|
|
48
48
|
});
|
|
49
|
-
return (index.h(index.Host, { key: '
|
|
49
|
+
return (index.h(index.Host, { key: '406d97d8e87da8a17bbff7b67cf6ecbf7d908064', style: { width: this.variant === "card" ? "100%" : undefined } }, index.h("label", { key: '6e4e93dc91ebfb3264226fc58e9322184179698d', class: className, htmlFor: this.inputId }, index.h("span", { key: '255519514587f38e0e9aa1beb3cee17993ff5cc4', class: "radio__control" }, index.h("swirl-visually-hidden", { key: '1bb98d55d2caceb15f72a2a82c3a0957a6509d0b' }, index.h("input", { key: '928992a95349bd917415be1a34c73bacec246bad', "aria-checked": ariaCheckedLabel, "aria-invalid": ariaInvalid, checked: checked, class: "radio__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, type: "radio", value: this.value })), index.h("span", { key: 'd912ffceed37c2f4201396d74cdff439cb41e735', "aria-hidden": "true", class: "radio__box" })), index.h("span", { key: 'c3cdad462855597283f685bca62bf7bdef10e04d', class: "radio__label-container" }, this.label && index.h("span", { key: '56a0225a0c1e8e42e08187f895ddf31745528fa5', class: "radio__label" }, this.label), this.description && (index.h("span", { key: '844c8355d1f8fc2d679df288fb19a6edc497d009', class: "radio__description", innerHTML: this.description }))))));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
SwirlRadio.style = SwirlRadioStyle0;
|
|
@@ -77,7 +77,7 @@ const SwirlSearch = class {
|
|
|
77
77
|
const className = index$1.classnames("search", `search--variant-${this.variant}`, {
|
|
78
78
|
"search--disabled": this.disabled,
|
|
79
79
|
});
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: '5bf70e02de79109b2b06f398d3ce1859f76df9e3' }, index.h("span", { key: '826ecc2b262862f239e554b2185329580cd83a17', class: className, ref: (el) => (this.iconEl = el) }, index.h("swirl-icon-search", { key: 'adb74eac3160bffcffc8088c1a500f2215967165', "aria-hidden": "true", class: "search__icon" }), index.h("input", { key: '9b3504f92c7cec190ef9b4a6613d513ebd960e7e', "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && (index.h("button", { key: 'fe42a660d21d6681cc30e648f7f616e6636446c3', "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, index.h("swirl-icon-cancel", { key: 'cd55c1ccdb59ab69129e9751dd4d25f0157f585a' }))))));
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
SwirlSearch.style = SwirlSearchStyle0;
|
|
@@ -19,11 +19,11 @@ const SwirlSkeletonBox = class {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
const className = index$1.classnames("skeleton-box", `skeleton-box--border-radius-${this.borderRadius}`, { "skeleton-box--static": !this.animated });
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: 'd2dbe289c28013f1e5a3e09beb6e7a7a893d6144', style: {
|
|
23
23
|
width: !Boolean(this.width) && !Boolean(this.aspectRatio)
|
|
24
24
|
? "100%"
|
|
25
25
|
: undefined,
|
|
26
|
-
} }, index.h("div", { key: '
|
|
26
|
+
} }, index.h("div", { key: 'd6b77cbe897bd99e91070bb83f2598a6e8d4c09f', class: className, style: {
|
|
27
27
|
aspectRatio: this.aspectRatio,
|
|
28
28
|
borderRadius: this.borderRadius !== "pill"
|
|
29
29
|
? `var(--s-border-radius-${this.borderRadius})`
|
|
@@ -18,7 +18,7 @@ const SwirlSkeletonText = class {
|
|
|
18
18
|
render() {
|
|
19
19
|
const className = index$1.classnames("skeleton-text", `skeleton-text--size-${this.size}`, { "skeleton-text--static": !this.animated });
|
|
20
20
|
const lineClassName = index$1.classnames("skeleton-text__line", `skeleton-text__line--size-${this.size}`);
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: '69157cd4b1f456890f3d60e0710b7c7df75d7995' }, index.h("div", { key: '4645af2dfd3e79330282cd80cdde83a9409a749f', class: className, part: className }, new Array(this.lines).fill(undefined).map((_, index$1) => (index.h("div", { class: lineClassName, key: index$1, part: lineClassName }))))));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
SwirlSkeletonText.style = SwirlSkeletonTextStyle0;
|
|
@@ -22,7 +22,7 @@ const SwirlStack = class {
|
|
|
22
22
|
render() {
|
|
23
23
|
const Tag = this.as;
|
|
24
24
|
const className = index$1.classnames("stack", `stack--align-${this.align}`, `stack--justify-${this.justify}`, `stack--orientation-${this.orientation}`, { "stack--wrap": this.wrap });
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '24ab0f168eba0b98ba7023b8e80da49d0a23a45e', style: { height: this.height } }, index.h(Tag, { key: '79d1ef08f5268fbe5789c1568461282c7e4097a6', class: className, style: { gap: `var(--s-space-${this.spacing})`, height: this.height } }, index.h("slot", { key: 'a4f47f46c9ff3b75b9f4d18cc320cd48cdab5d02' }))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
SwirlStack.style = SwirlStackStyle0;
|
|
@@ -16,7 +16,7 @@ const SwirlStatusIndicator = class {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const className = index$1.classnames("status-indicator", `status-indicator--intent-${this.intent}`);
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: '9f0e9b4f7d3cc04409dc6daaa77be11d8b4fefe7' }, index.h("div", { key: '6ae100f4aad059d72855d0214901a60d67820457', class: className }, index.h("span", { key: '31c5883aa6ef6582f5abc00f7f97d7e25bff97b1', class: "status-indicator__dot" }), index.h("span", { key: '4c5bf98ee5b89260c147351678dae6ddaa04008e', class: "status-indicator__label" }, this.label))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
SwirlStatusIndicator.style = SwirlStatusIndicatorStyle0;
|
|
@@ -34,7 +34,7 @@ const SwirlSwitch = class {
|
|
|
34
34
|
"switch--on": on,
|
|
35
35
|
"switch--disabled": this.disabled,
|
|
36
36
|
});
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: 'b73a0baa355e8c9d735a35e21db0f159ac1464fa' }, index.h("label", { key: 'd64e138a07f24f7fa242f64708c8bbbca609f7b5', class: className, htmlFor: this.inputId }, index.h("span", { key: '1cac1350333259d1da98005f12659d6b34b4dbe0', class: "switch__control" }, index.h("swirl-visually-hidden", { key: '95d140a3410b7f3eb3ffaf63ba803d7105b901a6' }, index.h("input", { key: '167ca5da2cf126def2e683ad58b1ac34deee90ab', "aria-checked": ariaCheckedLabel, checked: on, class: "switch__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, role: "switch", type: "checkbox", value: this.value })), index.h("span", { key: '939fc3e8248a03a90c073a2352cae494b3f70732', "aria-hidden": "true", class: "switch__thumb" })), this.label && !this.hideLabel && (index.h("span", { key: 'cb48d52eb206492642afc9443a4607ecaf000a1f', class: "switch__label" }, this.label)), this.label && this.hideLabel && (index.h("swirl-visually-hidden", { key: 'c4e32359d986473fb122062777c8f978b45a1fa5' }, this.label)))));
|
|
38
38
|
}
|
|
39
39
|
get el() { return index.getElement(this); }
|
|
40
40
|
};
|
|
@@ -29,7 +29,7 @@ const SwirlTabBar = class {
|
|
|
29
29
|
this.tabs = [];
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: '4313606f0cb6043928ba1b873221c2fc43e3dbd0' }, index.h("div", { key: 'ad4b27c49f6a0e8da48628dbc0fc2db53e050d0e', "aria-label": this.label, class: "tab-bar", onKeyDown: this.onKeyDown, role: this.disableTabSemantics ? undefined : "tablist" }, this.tabs.map((tab) => {
|
|
33
33
|
const className = index$1.classnames("tab-bar__tab", {
|
|
34
34
|
"tab-bar__tab--active": tab.active,
|
|
35
35
|
});
|
|
@@ -19,7 +19,7 @@ const SwirlTab = class {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
const className = index$1.classnames("tab", { "tab--active": this.active });
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: '66e47f42bb3d80f2dc0b2564c656df71d353a1d3', "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, index.h("div", { key: '5b88cc86d431aa4baaabdf280ee3503bbca825e6', class: className, style: { padding: `var(--s-space-${this.padding})` } }, index.h("slot", { key: '30f1dbeaccae338f6dbb99633aa48d275f3a75b2' }))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
SwirlTab.style = SwirlTabStyle0;
|
|
@@ -28,7 +28,7 @@ const SwirlTableColumn = class {
|
|
|
28
28
|
maxWidth: this.maxWidth || "",
|
|
29
29
|
minWidth: this.minWidth || "",
|
|
30
30
|
};
|
|
31
|
-
return (index.h(index.Host, { key: '
|
|
31
|
+
return (index.h(index.Host, { key: '4fac797a0fbaf5bd13c68857a708086a4cf4e6ee', "aria-sort": this.sort, class: "table-column", role: "columnheader", style: styles }, index.h("span", { key: 'e60434b33312042f5f572f4e27919c0212ed5f0c' }, index.h("slot", { key: '33e649b664d6113d8f497cbedee8fd186cc0cb96' })), this.sortable && (index.h("span", { key: 'b621d6748bb81ffc3c4c5c36d5b97867ff4e42f7', class: "table-column__sort-indicator" }, this.sort === "ascending" && (index.h("swirl-icon-arrow-upward", { key: '358c6f0c54f321e97209f5da1fe6b9f990df0d10', "aria-hidden": "true", size: 20 })), this.sort === "descending" && (index.h("swirl-icon-arrow-downward", { key: '2b0ec5fbd66ee0a91074d7e9b9707ef3e6c85f09', "aria-hidden": "true", size: 20 })), !Boolean(this.sort) && " "))));
|
|
32
32
|
}
|
|
33
33
|
get el() { return index.getElement(this); }
|
|
34
34
|
};
|
|
@@ -188,7 +188,7 @@ const SwirlTextInput = class {
|
|
|
188
188
|
"text-input--inline": this.inline,
|
|
189
189
|
"text-input--show-password": this.type === "password" && this.showPassword,
|
|
190
190
|
});
|
|
191
|
-
return (index.h(index.Host, { key: '
|
|
191
|
+
return (index.h(index.Host, { key: 'c28a27d2de16b8bab0bcbdedeb4577cc3c5926f1' }, index.h("div", { key: 'de1f6b38914d6dc549145a3a37730689429c9647', class: className }, this.prefixLabel && (index.h("span", { key: '188008d2d73f51127abe4de37306c82110344b29', class: "text-input__prefix" }, this.prefixLabel)), index.h(Tag, { key: '2264633163429eb618346241bbc99384a62fd4bb', "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": ariaInvalid, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : undefined, min: this.type === "number" ? this.min : undefined, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, placeholder: !Boolean(this.suffixLabel) ? this.placeholder : undefined, ref: (el) => (this.inputEl = el), required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : undefined, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : undefined, type: type, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && (index.h("span", { key: '5c226c6d35fe35b226c08182bce3ee479584d3bc', class: "text-input__suffix" }, this.suffixLabel)), showClearButton && (index.h("button", { key: '0825d6c0aa246d8ec97d0f47ca7a33e7437c69fb', "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, index.h("swirl-icon-cancel", { key: 'cb6d259a99c490949d946014aaccb9b92dd18a45', size: this.iconSize }))), showPasswordToggle && (index.h("button", { key: '5638f04a71fac455dc1a2dc9aff4a19ad55bf9b3', "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? (index.h("swirl-icon-visibility-off", { size: this.iconSize })) : (index.h("swirl-icon-visibility", { size: this.iconSize })))), showStepper && (index.h("span", { key: '6f8f117c6690ea375472c86befa0bc82d5c1b04d', class: "text-input__stepper" }, index.h("button", { key: '38ddc8bcc00c22f54a4f60195420179bfce8916d', "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, index.h("swirl-icon-expand-less", { key: 'd7445a23fa97ec57672d65f1334be7ac74368347', size: this.iconSize })), index.h("button", { key: '0295b7bd2bdcb0b3afb431e35c714c01d305eaa5', "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, index.h("swirl-icon-expand-more", { key: 'ad77b5281090dcf3dbbdc2adaf2147f937be7273', size: this.iconSize })))), this.showCharacterCounter && (index.h("span", { key: 'c3cdea8f4d70aba88baba76c6c74c39ca83ca367', class: "text-input__character-counter" }, this.value?.length || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")))));
|
|
192
192
|
}
|
|
193
193
|
static get watchers() { return {
|
|
194
194
|
"value": ["watchValue"]
|
|
@@ -986,7 +986,7 @@ const SwirlText = class {
|
|
|
986
986
|
const styles = {
|
|
987
987
|
whiteSpace: truncate ? "nowrap" : this.whiteSpace,
|
|
988
988
|
};
|
|
989
|
-
return (index.h(index.Host, { key: '
|
|
989
|
+
return (index.h(index.Host, { key: '532fc3d60139b1b6c27a3e2713f94e1a3a855d45' }, index.h(Tag, { key: '944a5502b8d218989035dd89c9ce1f33d0003399', class: className, ref: (el) => (this.textEl = el), style: styles }, index.h("slot", { key: 'bb53161691a0f57a003360b3437d8c6fc34fd29c' }))));
|
|
990
990
|
}
|
|
991
991
|
get el() { return index.getElement(this); }
|
|
992
992
|
};
|
|
@@ -55,7 +55,7 @@ const SwirlToastProvider = class {
|
|
|
55
55
|
return newToastWithId;
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: '1db8b2f832869490670c34067ae5fc8e19d7f987', role: "status" }, index.h("swirl-stack", { key: 'a616e31585de124b6f953151ec71cada1e8f051f', spacing: "12" }, this.toasts.map((toast) => {
|
|
59
59
|
const props = { ...toast, content: undefined };
|
|
60
60
|
return (index.h("swirl-toast", { key: toast.toastId, onDismiss: this.onDismiss, ...props }, toast.content));
|
|
61
61
|
}))));
|
|
@@ -63,7 +63,7 @@ const SwirlToast = class {
|
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
65
|
const className = index$1.classnames("toast", `toast--intent-${this.intent}`);
|
|
66
|
-
return (index.h(index.Host, { key: '
|
|
66
|
+
return (index.h(index.Host, { key: '35695f50ea63a19bb96de63dd68a7667a679356f' }, index.h("div", { key: 'f8e3c2c30bdd6867274c548e3a745a4a3591b503', class: className }, this.icon && (index.h("span", { key: '43dea51f1849ccf1c7064b9522d793d0e16f49a4', class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), index.h("span", { key: '5171e135301ba31ac09e9a5fad3090803e7d82d4', class: "toast__content", innerHTML: this.content, part: "toast__content" }, index.h("slot", { key: '13a75cb56789364ee8193c571c86b4f752743a8a' })), index.h("button", { key: 'aeaec3b3e2770da4db5834735cf1d85eb13be6d3', "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && (index.h("swirl-icon-close", { key: '039599ec0303620b134c1bc580468a1bf176b066', ref: (el) => (this.dismissIconEl = el) }))))));
|
|
67
67
|
}
|
|
68
68
|
static get watchers() { return {
|
|
69
69
|
"duration": ["watchDuration"]
|
|
@@ -75,7 +75,7 @@ const SwirlToolbar = class {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (index.h(index.Host, { key: '
|
|
78
|
+
return (index.h(index.Host, { key: '93dcf545129b0037257412e87c2a5723a2cbd70c' }, index.h("swirl-stack", { key: '2200658e9fa82b528b594ac267623fe9bdb4050b', align: "center", "aria-label": this.label, "aria-orientation": this.orientation, role: "toolbar", onKeyDown: this.onKeyDown, orientation: this.orientation, spacing: "8" }, index.h("slot", { key: '94a5dc9998cfdc6b064c1e749c49663cca87b5d1' }))));
|
|
79
79
|
}
|
|
80
80
|
get el() { return index.getElement(this); }
|
|
81
81
|
};
|
|
@@ -105,7 +105,7 @@ const SwirlTooltip = class {
|
|
|
105
105
|
const className = index$1.classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, {
|
|
106
106
|
"tooltip--visible": this.visible,
|
|
107
107
|
});
|
|
108
|
-
return (index.h(index.Host, { key: '
|
|
108
|
+
return (index.h(index.Host, { key: '03fbc0a205e7fc6ab4caf3c25153108cb332e94a', onKeydown: this.onKeydown }, index.h("span", { key: '67440b05dfffb0f797720e0817a19b6eb6a4f648', class: className }, index.h("span", { key: '7f4e9715d29a88af39b051d705b159c37ffe42f7', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.hide, onClick: this.hide, onFocusin: this.show }, index.h("slot", { key: '71d597a32e6a16ae688482a75fa823d09424d2c7' })), index.h("span", { key: '2e7bf8796bcfa4a0721a578a29e29e6b66d99b64', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
|
|
109
109
|
top: Boolean(this.actualPosition)
|
|
110
110
|
? `${this.actualPosition?.y}px`
|
|
111
111
|
: "",
|
|
@@ -113,7 +113,7 @@ const SwirlTooltip = class {
|
|
|
113
113
|
? `${this.actualPosition?.x}px`
|
|
114
114
|
: "",
|
|
115
115
|
position: this.positioning,
|
|
116
|
-
} }, this.visible && (index.h("span", { key: '
|
|
116
|
+
} }, this.visible && (index.h("span", { key: 'f9ac600db0ef8778651018a38c69d800b8ed9f59', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, index.h("span", { key: 'ee843dd7927f410ec0695027cb867e18d3bf1de4', class: "tooltip__content", innerHTML: this.content }))), index.h("span", { key: '5b2549165b80b6d8389bf1d61d655c34beeb89a8', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
117
117
|
...this.arrowStyles,
|
|
118
118
|
visibility: this.visible ? "visible" : "hidden",
|
|
119
119
|
} })))));
|
|
@@ -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"; }
|