@forgeroute/ui 0.5.16 → 0.5.17
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/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
- package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
- package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-alert.mjs +223 -0
- package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
- package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-badge.mjs +158 -0
- package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
- package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
- package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
- package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-charts.mjs +1 -1
- package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-chip.mjs +379 -0
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
- package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-columns.mjs +351 -0
- package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
- package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
- package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
- package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-divider.mjs +111 -0
- package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
- package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
- package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-error.mjs +93 -0
- package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fade.mjs +117 -0
- package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
- package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
- package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
- package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-form.mjs +139 -0
- package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-hint.mjs +47 -0
- package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-icon.mjs +311 -0
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
- package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
- package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
- package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-layout.mjs +18 -0
- package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
- package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-list.mjs +866 -0
- package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
- package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-map.mjs +5 -1
- package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-maps.mjs +2 -1
- package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +4615 -0
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs +768 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
- package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
- package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-page.mjs +317 -0
- package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
- package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
- package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
- package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
- package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-print.mjs +76 -0
- package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
- package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
- package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
- package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-radio.mjs +911 -0
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
- package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
- package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
- package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
- package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-select.mjs +498 -0
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
- package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-shell.mjs +981 -0
- package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-show.mjs +129 -0
- package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
- package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
- package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
- package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
- package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-square.mjs +15 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stack.mjs +233 -0
- package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
- package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
- package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-star.mjs +184 -0
- package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
- package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs +14 -1
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
- package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-text.mjs +195 -0
- package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
- package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toast.mjs +507 -0
- package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
- package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
- package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
- package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
- package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
- package/fesm2022/forgeroute-ui.mjs +105 -70663
- package/package.json +417 -1
- package/types/forgeroute-ui-action-bar.d.ts +74 -0
- package/types/forgeroute-ui-address-input.d.ts +354 -0
- package/types/forgeroute-ui-alert.d.ts +89 -0
- package/types/forgeroute-ui-avatar.d.ts +85 -0
- package/types/forgeroute-ui-badge.d.ts +45 -0
- package/types/forgeroute-ui-bar-row.d.ts +90 -0
- package/types/forgeroute-ui-boards.d.ts +575 -0
- package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
- package/types/forgeroute-ui-business-hours.d.ts +191 -0
- package/types/forgeroute-ui-calendar.d.ts +544 -0
- package/types/forgeroute-ui-card-list-item.d.ts +186 -0
- package/types/forgeroute-ui-charts.d.ts +1 -1
- package/types/forgeroute-ui-checkbox.d.ts +270 -0
- package/types/forgeroute-ui-chip.d.ts +125 -0
- package/types/forgeroute-ui-color-input.d.ts +160 -0
- package/types/forgeroute-ui-column-filter.d.ts +130 -0
- package/types/forgeroute-ui-columns.d.ts +150 -0
- package/types/forgeroute-ui-combobox.d.ts +252 -0
- package/types/forgeroute-ui-confirm.d.ts +34 -0
- package/types/forgeroute-ui-contact-picker.d.ts +173 -0
- package/types/forgeroute-ui-conversations.d.ts +993 -0
- package/types/forgeroute-ui-copy-field.d.ts +122 -0
- package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
- package/types/forgeroute-ui-date-input.d.ts +101 -0
- package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
- package/types/forgeroute-ui-datetime-input.d.ts +97 -0
- package/types/forgeroute-ui-detail-card.d.ts +252 -0
- package/types/forgeroute-ui-discount-selector.d.ts +57 -0
- package/types/forgeroute-ui-divider.d.ts +40 -0
- package/types/forgeroute-ui-dropdown.d.ts +156 -0
- package/types/forgeroute-ui-editor.d.ts +873 -0
- package/types/forgeroute-ui-empty-state.d.ts +29 -0
- package/types/forgeroute-ui-error-state.d.ts +38 -0
- package/types/forgeroute-ui-error.d.ts +29 -0
- package/types/forgeroute-ui-fade.d.ts +39 -0
- package/types/forgeroute-ui-file-input.d.ts +337 -0
- package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
- package/types/forgeroute-ui-form-row.d.ts +30 -0
- package/types/forgeroute-ui-form-section.d.ts +18 -0
- package/types/forgeroute-ui-form.d.ts +68 -0
- package/types/forgeroute-ui-hint.d.ts +10 -0
- package/types/forgeroute-ui-icon-picker.d.ts +122 -0
- package/types/forgeroute-ui-icon.d.ts +95 -0
- package/types/forgeroute-ui-image-preview.d.ts +88 -0
- package/types/forgeroute-ui-keypad.d.ts +73 -0
- package/types/forgeroute-ui-kpi-card.d.ts +161 -0
- package/types/forgeroute-ui-language-switcher.d.ts +41 -0
- package/types/forgeroute-ui-layout.d.ts +13 -0
- package/types/forgeroute-ui-list-item.d.ts +253 -0
- package/types/forgeroute-ui-list.d.ts +282 -0
- package/types/forgeroute-ui-live-region.d.ts +49 -0
- package/types/forgeroute-ui-map.d.ts +1 -1
- package/types/forgeroute-ui-maps.d.ts +1 -1
- package/types/forgeroute-ui-media.d.ts +1221 -0
- package/types/forgeroute-ui-messaging.d.ts +6 -1
- package/types/forgeroute-ui-more-menu.d.ts +91 -0
- package/types/forgeroute-ui-multi-select.d.ts +119 -0
- package/types/forgeroute-ui-notes.d.ts +172 -0
- package/types/forgeroute-ui-notification-bell.d.ts +135 -0
- package/types/forgeroute-ui-offline-banner.d.ts +44 -0
- package/types/forgeroute-ui-option-card.d.ts +106 -0
- package/types/forgeroute-ui-page.d.ts +115 -0
- package/types/forgeroute-ui-pagination.d.ts +55 -0
- package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
- package/types/forgeroute-ui-password-requirements.d.ts +89 -0
- package/types/forgeroute-ui-payments.d.ts +1818 -0
- package/types/forgeroute-ui-pdf.d.ts +1 -1
- package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
- package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
- package/types/forgeroute-ui-print.d.ts +40 -0
- package/types/forgeroute-ui-progress-bar.d.ts +88 -0
- package/types/forgeroute-ui-progress-ring.d.ts +102 -0
- package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
- package/types/forgeroute-ui-quickbooks.d.ts +4 -1
- package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
- package/types/forgeroute-ui-radio.d.ts +311 -0
- package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
- package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
- package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
- package/types/forgeroute-ui-search-input.d.ts +93 -0
- package/types/forgeroute-ui-section-header.d.ts +149 -0
- package/types/forgeroute-ui-select.d.ts +183 -0
- package/types/forgeroute-ui-setup.d.ts +775 -0
- package/types/forgeroute-ui-share-menu.d.ts +99 -0
- package/types/forgeroute-ui-shell.d.ts +173 -0
- package/types/forgeroute-ui-show.d.ts +40 -0
- package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
- package/types/forgeroute-ui-skeleton.d.ts +51 -0
- package/types/forgeroute-ui-skip-link.d.ts +51 -0
- package/types/forgeroute-ui-snackbar.d.ts +50 -0
- package/types/forgeroute-ui-square.d.ts +3 -1
- package/types/forgeroute-ui-stack.d.ts +99 -0
- package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
- package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
- package/types/forgeroute-ui-star-rating.d.ts +151 -0
- package/types/forgeroute-ui-star.d.ts +46 -0
- package/types/forgeroute-ui-stepper.d.ts +273 -0
- package/types/forgeroute-ui-stripe.d.ts +3 -1
- package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
- package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
- package/types/forgeroute-ui-table-types.d.ts +624 -0
- package/types/forgeroute-ui-text-input.d.ts +359 -0
- package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
- package/types/forgeroute-ui-text.d.ts +76 -0
- package/types/forgeroute-ui-textarea-input.d.ts +174 -0
- package/types/forgeroute-ui-time-input.d.ts +105 -0
- package/types/forgeroute-ui-timeline.d.ts +196 -0
- package/types/forgeroute-ui-toast.d.ts +131 -0
- package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
- package/types/forgeroute-ui-toggle.d.ts +92 -0
- package/types/forgeroute-ui-tooltip.d.ts +36 -0
- package/types/forgeroute-ui-utils.d.ts +210 -0
- package/types/forgeroute-ui.d.ts +106 -19539
- package/fesm2022/forgeroute-ui.mjs.map +0 -1
|
@@ -0,0 +1,981 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, Injector, ViewEncapsulation, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
|
|
3
|
+
import { DOCUMENT } from "@angular/common";
|
|
4
|
+
import { NavigationEnd, Router, RouterLink, RouterLinkActive } from "@angular/router";
|
|
5
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
6
|
+
import { filter } from "rxjs";
|
|
7
|
+
import { ConfirmOutletComponent, UiLabelsService } from "@forgeroute/ui/core";
|
|
8
|
+
import { ToastComponent } from "@forgeroute/ui/toast";
|
|
9
|
+
var ShellProjectedStylesComponent = class ShellProjectedStylesComponent {
|
|
10
|
+
static {
|
|
11
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.2.2",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: ShellProjectedStylesComponent,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
static {
|
|
21
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
22
|
+
minVersion: "14.0.0",
|
|
23
|
+
version: "22.2.2",
|
|
24
|
+
type: ShellProjectedStylesComponent,
|
|
25
|
+
isStandalone: true,
|
|
26
|
+
selector: "ui-shell-projected-styles",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
template: "",
|
|
29
|
+
isInline: true,
|
|
30
|
+
styles: ["ui-shell-projected-styles{display:none}ui-app-shell .nav-icon svg{width:17px;height:17px;stroke:color-mix(in srgb,var(--shell-text, #fff) 90%,transparent);transition:stroke .15s;flex-shrink:0}ui-app-shell .sidebar-nav a:hover .nav-icon svg{stroke:color-mix(in srgb,var(--shell-text, #fff) 100%,transparent)}ui-app-shell .sidebar-nav a.active .nav-icon svg{stroke:#93c5fd}@media(min-width:1025px){ui-app-shell .shell.collapsed .brand-full img,ui-app-shell .shell.collapsed .brand-full svg{width:44px;height:44px;max-width:none;object-fit:cover;object-position:50% 42%}ui-app-shell .shell.collapsed .nav-icon svg{width:20px;height:20px}}@media(prefers-reduced-motion:reduce){ui-app-shell .nav-icon svg{transition:none!important}}\n"],
|
|
31
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
32
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
37
|
+
minVersion: "12.0.0",
|
|
38
|
+
version: "22.2.2",
|
|
39
|
+
ngImport: i0,
|
|
40
|
+
type: ShellProjectedStylesComponent,
|
|
41
|
+
decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{
|
|
44
|
+
selector: "ui-shell-projected-styles",
|
|
45
|
+
standalone: true,
|
|
46
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
47
|
+
encapsulation: ViewEncapsulation.None,
|
|
48
|
+
template: "",
|
|
49
|
+
styles: ["ui-shell-projected-styles{display:none}ui-app-shell .nav-icon svg{width:17px;height:17px;stroke:color-mix(in srgb,var(--shell-text, #fff) 90%,transparent);transition:stroke .15s;flex-shrink:0}ui-app-shell .sidebar-nav a:hover .nav-icon svg{stroke:color-mix(in srgb,var(--shell-text, #fff) 100%,transparent)}ui-app-shell .sidebar-nav a.active .nav-icon svg{stroke:#93c5fd}@media(min-width:1025px){ui-app-shell .shell.collapsed .brand-full img,ui-app-shell .shell.collapsed .brand-full svg{width:44px;height:44px;max-width:none;object-fit:cover;object-position:50% 42%}ui-app-shell .shell.collapsed .nav-icon svg{width:20px;height:20px}}@media(prefers-reduced-motion:reduce){ui-app-shell .nav-icon svg{transition:none!important}}\n"]
|
|
50
|
+
}]
|
|
51
|
+
}]
|
|
52
|
+
});
|
|
53
|
+
function appShellGroupsStorageKey(persistKey) {
|
|
54
|
+
return `ui-app-shell-groups:${persistKey}`;
|
|
55
|
+
}
|
|
56
|
+
var AppShellComponent = class AppShellComponent {
|
|
57
|
+
constructor() {
|
|
58
|
+
this.labels = inject(UiLabelsService);
|
|
59
|
+
this.sanitizer = inject(DomSanitizer);
|
|
60
|
+
this.router = inject(Router);
|
|
61
|
+
this.navGroups = input([], ...ngDevMode ? [{ debugName: "navGroups" }] : /* istanbul ignore next */ []);
|
|
62
|
+
this.pageTitle = input("", ...ngDevMode ? [{ debugName: "pageTitle" }] : /* istanbul ignore next */ []);
|
|
63
|
+
this.showToast = input(false, ...ngDevMode ? [{ debugName: "showToast" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.appNameInput = input(null, {
|
|
65
|
+
...ngDevMode ? { debugName: "appNameInput" } : /* istanbul ignore next */ {},
|
|
66
|
+
alias: "appName"
|
|
67
|
+
});
|
|
68
|
+
this.appName = computed(() => this.appNameInput() ?? this.labels.t("appShell.appName"), ...ngDevMode ? [{ debugName: "appName" }] : /* istanbul ignore next */ []);
|
|
69
|
+
this.user = input(null, ...ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []);
|
|
70
|
+
this.readOnly = input(false, ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.backgroundColor = input("", ...ngDevMode ? [{ debugName: "backgroundColor" }] : /* istanbul ignore next */ []);
|
|
72
|
+
this.textColor = input("", ...ngDevMode ? [{ debugName: "textColor" }] : /* istanbul ignore next */ []);
|
|
73
|
+
this.collapsible = input(false, ...ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []);
|
|
74
|
+
this.persistKey = input("", ...ngDevMode ? [{ debugName: "persistKey" }] : /* istanbul ignore next */ []);
|
|
75
|
+
this.logoutClick = output();
|
|
76
|
+
this._sidebarOpen = signal(false, ...ngDevMode ? [{ debugName: "_sidebarOpen" }] : /* istanbul ignore next */ []);
|
|
77
|
+
this._routeTitle = signal("", ...ngDevMode ? [{ debugName: "_routeTitle" }] : /* istanbul ignore next */ []);
|
|
78
|
+
this._title = computed(() => this.pageTitle() || this._routeTitle(), ...ngDevMode ? [{ debugName: "_title" }] : /* istanbul ignore next */ []);
|
|
79
|
+
this._collapsed = signal(AppShellComponent._loadCollapsed(), ...ngDevMode ? [{ debugName: "_collapsed" }] : /* istanbul ignore next */ []);
|
|
80
|
+
this._drawerLayout = signal(false, ...ngDevMode ? [{ debugName: "_drawerLayout" }] : /* istanbul ignore next */ []);
|
|
81
|
+
this._isRail = computed(() => this.collapsible() && this._collapsed() && !this._drawerLayout(), ...ngDevMode ? [{ debugName: "_isRail" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this._collapsedGroups = signal({}, ...ngDevMode ? [{ debugName: "_collapsedGroups" }] : /* istanbul ignore next */ []);
|
|
83
|
+
this._visibleGroups = computed(() => this.navGroups().filter((g) => g.visible !== false), ...ngDevMode ? [{ debugName: "_visibleGroups" }] : /* istanbul ignore next */ []);
|
|
84
|
+
this._userInitials = computed(() => {
|
|
85
|
+
const u = this.user();
|
|
86
|
+
return `${u?.firstName?.charAt(0) ?? ""}${u?.lastName?.charAt(0) ?? ""}`;
|
|
87
|
+
}, ...ngDevMode ? [{ debugName: "_userInitials" }] : /* istanbul ignore next */ []);
|
|
88
|
+
this._userName = computed(() => {
|
|
89
|
+
const u = this.user();
|
|
90
|
+
return [u?.firstName, u?.lastName].filter(Boolean).join(" ");
|
|
91
|
+
}, ...ngDevMode ? [{ debugName: "_userName" }] : /* istanbul ignore next */ []);
|
|
92
|
+
this._iconCache = /* @__PURE__ */ new Map();
|
|
93
|
+
this._host = inject(ElementRef);
|
|
94
|
+
this._injector = inject(Injector);
|
|
95
|
+
this._document = inject(DOCUMENT, { optional: true });
|
|
96
|
+
this._onDrawerMqChange = (e) => {
|
|
97
|
+
this._drawerLayout.set(e.matches);
|
|
98
|
+
if (!e.matches) this._sidebarOpen.set(false);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
_safeIcon(svg) {
|
|
102
|
+
let safe = this._iconCache.get(svg);
|
|
103
|
+
if (!safe) {
|
|
104
|
+
safe = this.sanitizer.bypassSecurityTrustHtml(svg);
|
|
105
|
+
this._iconCache.set(svg, safe);
|
|
106
|
+
}
|
|
107
|
+
return safe;
|
|
108
|
+
}
|
|
109
|
+
_visibleLinks(group) {
|
|
110
|
+
return group.links.filter((l) => l.visible !== false);
|
|
111
|
+
}
|
|
112
|
+
_canCollapseGroups() {
|
|
113
|
+
return this._visibleGroups().length > 1;
|
|
114
|
+
}
|
|
115
|
+
_isCollapsed(key) {
|
|
116
|
+
return this._canCollapseGroups() && !!this._collapsedGroups()[key];
|
|
117
|
+
}
|
|
118
|
+
toggleGroup(key) {
|
|
119
|
+
const collapsed = !this._collapsedGroups()[key];
|
|
120
|
+
this._collapsedGroups.update((g) => ({
|
|
121
|
+
...g,
|
|
122
|
+
[key]: collapsed
|
|
123
|
+
}));
|
|
124
|
+
this._saveGroup(key, collapsed);
|
|
125
|
+
}
|
|
126
|
+
_readSavedGroups() {
|
|
127
|
+
const pk = this.persistKey();
|
|
128
|
+
if (!pk) return {};
|
|
129
|
+
try {
|
|
130
|
+
const raw = JSON.parse(localStorage.getItem(appShellGroupsStorageKey(pk)) ?? "null");
|
|
131
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
|
|
132
|
+
return Object.fromEntries(Object.entries(raw).filter(([, v]) => typeof v === "boolean"));
|
|
133
|
+
} catch {
|
|
134
|
+
return {};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
_saveGroup(key, collapsed) {
|
|
138
|
+
const pk = this.persistKey();
|
|
139
|
+
if (!pk) return;
|
|
140
|
+
try {
|
|
141
|
+
const saved = {
|
|
142
|
+
...this._readSavedGroups(),
|
|
143
|
+
[key]: collapsed
|
|
144
|
+
};
|
|
145
|
+
localStorage.setItem(appShellGroupsStorageKey(pk), JSON.stringify(saved));
|
|
146
|
+
} catch {}
|
|
147
|
+
}
|
|
148
|
+
toggleCollapsed() {
|
|
149
|
+
const next = !this._collapsed();
|
|
150
|
+
this._collapsed.set(next);
|
|
151
|
+
try {
|
|
152
|
+
localStorage.setItem(AppShellComponent._COLLAPSE_KEY, String(next));
|
|
153
|
+
} catch {}
|
|
154
|
+
}
|
|
155
|
+
static {
|
|
156
|
+
this._COLLAPSE_KEY = "ui-app-shell-collapsed";
|
|
157
|
+
}
|
|
158
|
+
static _loadCollapsed() {
|
|
159
|
+
try {
|
|
160
|
+
return localStorage.getItem(AppShellComponent._COLLAPSE_KEY) === "true";
|
|
161
|
+
} catch {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
static {
|
|
166
|
+
this._DRAWER_MQ = "not all and (min-width: 1025px)";
|
|
167
|
+
}
|
|
168
|
+
static {
|
|
169
|
+
this._FOCUSABLE = "a[href]:not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"]), input:not([disabled]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), select:not([disabled]):not([tabindex=\"-1\"]), textarea:not([disabled]):not([tabindex=\"-1\"]), [tabindex]:not([tabindex=\"-1\"]), summary:not([tabindex=\"-1\"]), [contenteditable]:not([contenteditable=\"false\"]):not([tabindex=\"-1\"]), iframe:not([tabindex=\"-1\"]), audio[controls]:not([tabindex=\"-1\"]), video[controls]:not([tabindex=\"-1\"])";
|
|
170
|
+
}
|
|
171
|
+
_sidebarFocusables() {
|
|
172
|
+
const aside = this._host.nativeElement.querySelector(".sidebar");
|
|
173
|
+
return aside ? Array.from(aside.querySelectorAll(AppShellComponent._FOCUSABLE)).filter((el) => !el.hidden && el.getClientRects().length > 0) : [];
|
|
174
|
+
}
|
|
175
|
+
_hamburger() {
|
|
176
|
+
return this._host.nativeElement.querySelector(".hamburger");
|
|
177
|
+
}
|
|
178
|
+
toggleSidebar() {
|
|
179
|
+
if (this._sidebarOpen()) this.closeSidebar(true);
|
|
180
|
+
else this.openSidebar();
|
|
181
|
+
}
|
|
182
|
+
openSidebar() {
|
|
183
|
+
if (!this._drawerLayout()) return;
|
|
184
|
+
this._sidebarOpen.set(true);
|
|
185
|
+
afterNextRender(() => this._sidebarFocusables()[0]?.focus(), { injector: this._injector });
|
|
186
|
+
}
|
|
187
|
+
closeSidebar(returnFocus = false) {
|
|
188
|
+
const wasOpen = this._sidebarOpen();
|
|
189
|
+
this._sidebarOpen.set(false);
|
|
190
|
+
if (!wasOpen) return;
|
|
191
|
+
const active = this._document?.activeElement ?? null;
|
|
192
|
+
const focusInSidebar = !!active && !!this._host.nativeElement.querySelector(".sidebar")?.contains(active);
|
|
193
|
+
if (returnFocus) this._hamburger()?.focus();
|
|
194
|
+
else if (focusInSidebar) this._host.nativeElement.querySelector("#main-content")?.focus();
|
|
195
|
+
}
|
|
196
|
+
onShellKeydown(e) {
|
|
197
|
+
if (e.defaultPrevented || !this._sidebarOpen() || !this._drawerLayout()) return;
|
|
198
|
+
if (e.key === "Escape") {
|
|
199
|
+
e.preventDefault();
|
|
200
|
+
this.closeSidebar(true);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey) return;
|
|
204
|
+
const items = this._sidebarFocusables();
|
|
205
|
+
if (!items.length) return;
|
|
206
|
+
const first = items[0];
|
|
207
|
+
const last = items[items.length - 1];
|
|
208
|
+
const active = this._document?.activeElement ?? null;
|
|
209
|
+
const owner = active ? items.find((el) => el === active || el.contains(active)) : void 0;
|
|
210
|
+
if (owner) {
|
|
211
|
+
if (e.shiftKey && owner === first) {
|
|
212
|
+
e.preventDefault();
|
|
213
|
+
last.focus();
|
|
214
|
+
} else if (!e.shiftKey && owner === last) {
|
|
215
|
+
e.preventDefault();
|
|
216
|
+
first.focus();
|
|
217
|
+
}
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
const host = active && active.shadowRoot && this._host.nativeElement.querySelector(".sidebar")?.contains(active) ? active : null;
|
|
221
|
+
if (host) {
|
|
222
|
+
const inner = Array.from(host.shadowRoot.querySelectorAll(AppShellComponent._FOCUSABLE)).filter((el) => !el.hidden && el.getClientRects().length > 0);
|
|
223
|
+
const innerActive = host.shadowRoot.activeElement;
|
|
224
|
+
const atInnerEdge = !innerActive || !inner.length || innerActive === (e.shiftKey ? inner[0] : inner[inner.length - 1]);
|
|
225
|
+
const afterAll = items.every((el) => !!(el.compareDocumentPosition(host) & Node.DOCUMENT_POSITION_FOLLOWING));
|
|
226
|
+
const beforeAll = items.every((el) => !!(el.compareDocumentPosition(host) & Node.DOCUMENT_POSITION_PRECEDING));
|
|
227
|
+
if (atInnerEdge && !e.shiftKey && afterAll) {
|
|
228
|
+
e.preventDefault();
|
|
229
|
+
first.focus();
|
|
230
|
+
} else if (atInnerEdge && e.shiftKey && beforeAll) {
|
|
231
|
+
e.preventDefault();
|
|
232
|
+
last.focus();
|
|
233
|
+
}
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
e.preventDefault();
|
|
237
|
+
(e.shiftKey ? last : first).focus();
|
|
238
|
+
}
|
|
239
|
+
skipToContent(e) {
|
|
240
|
+
e.preventDefault();
|
|
241
|
+
this._host.nativeElement.querySelector("#main-content")?.focus();
|
|
242
|
+
}
|
|
243
|
+
ngOnInit() {
|
|
244
|
+
const initial = {};
|
|
245
|
+
this.navGroups().forEach((g) => {
|
|
246
|
+
if (g.defaultCollapsed) initial[g.key] = true;
|
|
247
|
+
});
|
|
248
|
+
this._collapsedGroups.set({
|
|
249
|
+
...initial,
|
|
250
|
+
...this._readSavedGroups()
|
|
251
|
+
});
|
|
252
|
+
this._routerSub = this.router.events.pipe(filter((e) => e instanceof NavigationEnd)).subscribe((e) => {
|
|
253
|
+
this.closeSidebar();
|
|
254
|
+
this._expandActiveGroup(e.urlAfterRedirects);
|
|
255
|
+
this._routeTitle.set(this._titleOfRoute());
|
|
256
|
+
});
|
|
257
|
+
if (typeof matchMedia === "function") {
|
|
258
|
+
this._drawerMq = matchMedia(AppShellComponent._DRAWER_MQ);
|
|
259
|
+
this._drawerLayout.set(!!this._drawerMq?.matches);
|
|
260
|
+
this._drawerMq?.addEventListener?.("change", this._onDrawerMqChange);
|
|
261
|
+
}
|
|
262
|
+
this._expandActiveGroup(this.router.url);
|
|
263
|
+
this._routeTitle.set(this._titleOfRoute());
|
|
264
|
+
}
|
|
265
|
+
_titleOfRoute() {
|
|
266
|
+
let route = this.router.routerState?.snapshot?.root ?? null;
|
|
267
|
+
let title = "";
|
|
268
|
+
while (route) {
|
|
269
|
+
const t = route.data?.["pageTitle"];
|
|
270
|
+
if (typeof t === "string" && t) title = t;
|
|
271
|
+
route = route.firstChild;
|
|
272
|
+
}
|
|
273
|
+
return title;
|
|
274
|
+
}
|
|
275
|
+
ngOnDestroy() {
|
|
276
|
+
this._routerSub?.unsubscribe();
|
|
277
|
+
this._drawerMq?.removeEventListener?.("change", this._onDrawerMqChange);
|
|
278
|
+
this._iconCache.clear();
|
|
279
|
+
}
|
|
280
|
+
_expandActiveGroup(url) {
|
|
281
|
+
const path = url.split("?")[0].replace(/^\//, "");
|
|
282
|
+
for (const group of this.navGroups()) if (group.links.some((l) => {
|
|
283
|
+
if (l.visible === false) return false;
|
|
284
|
+
const route = l.route.replace(/^\//, "");
|
|
285
|
+
return l.exact ? route === path : path === route || path.startsWith(route + "/");
|
|
286
|
+
})) {
|
|
287
|
+
this._collapsedGroups.update((g) => ({
|
|
288
|
+
...g,
|
|
289
|
+
[group.key]: false
|
|
290
|
+
}));
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
static {
|
|
295
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
296
|
+
minVersion: "12.0.0",
|
|
297
|
+
version: "22.2.2",
|
|
298
|
+
ngImport: i0,
|
|
299
|
+
type: AppShellComponent,
|
|
300
|
+
deps: [],
|
|
301
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
static {
|
|
305
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
306
|
+
minVersion: "17.0.0",
|
|
307
|
+
version: "22.2.2",
|
|
308
|
+
type: AppShellComponent,
|
|
309
|
+
isStandalone: true,
|
|
310
|
+
selector: "ui-app-shell",
|
|
311
|
+
inputs: {
|
|
312
|
+
navGroups: {
|
|
313
|
+
classPropertyName: "navGroups",
|
|
314
|
+
publicName: "navGroups",
|
|
315
|
+
isSignal: true,
|
|
316
|
+
isRequired: false,
|
|
317
|
+
transformFunction: null
|
|
318
|
+
},
|
|
319
|
+
pageTitle: {
|
|
320
|
+
classPropertyName: "pageTitle",
|
|
321
|
+
publicName: "pageTitle",
|
|
322
|
+
isSignal: true,
|
|
323
|
+
isRequired: false,
|
|
324
|
+
transformFunction: null
|
|
325
|
+
},
|
|
326
|
+
showToast: {
|
|
327
|
+
classPropertyName: "showToast",
|
|
328
|
+
publicName: "showToast",
|
|
329
|
+
isSignal: true,
|
|
330
|
+
isRequired: false,
|
|
331
|
+
transformFunction: null
|
|
332
|
+
},
|
|
333
|
+
appNameInput: {
|
|
334
|
+
classPropertyName: "appNameInput",
|
|
335
|
+
publicName: "appName",
|
|
336
|
+
isSignal: true,
|
|
337
|
+
isRequired: false,
|
|
338
|
+
transformFunction: null
|
|
339
|
+
},
|
|
340
|
+
user: {
|
|
341
|
+
classPropertyName: "user",
|
|
342
|
+
publicName: "user",
|
|
343
|
+
isSignal: true,
|
|
344
|
+
isRequired: false,
|
|
345
|
+
transformFunction: null
|
|
346
|
+
},
|
|
347
|
+
readOnly: {
|
|
348
|
+
classPropertyName: "readOnly",
|
|
349
|
+
publicName: "readOnly",
|
|
350
|
+
isSignal: true,
|
|
351
|
+
isRequired: false,
|
|
352
|
+
transformFunction: null
|
|
353
|
+
},
|
|
354
|
+
backgroundColor: {
|
|
355
|
+
classPropertyName: "backgroundColor",
|
|
356
|
+
publicName: "backgroundColor",
|
|
357
|
+
isSignal: true,
|
|
358
|
+
isRequired: false,
|
|
359
|
+
transformFunction: null
|
|
360
|
+
},
|
|
361
|
+
textColor: {
|
|
362
|
+
classPropertyName: "textColor",
|
|
363
|
+
publicName: "textColor",
|
|
364
|
+
isSignal: true,
|
|
365
|
+
isRequired: false,
|
|
366
|
+
transformFunction: null
|
|
367
|
+
},
|
|
368
|
+
collapsible: {
|
|
369
|
+
classPropertyName: "collapsible",
|
|
370
|
+
publicName: "collapsible",
|
|
371
|
+
isSignal: true,
|
|
372
|
+
isRequired: false,
|
|
373
|
+
transformFunction: null
|
|
374
|
+
},
|
|
375
|
+
persistKey: {
|
|
376
|
+
classPropertyName: "persistKey",
|
|
377
|
+
publicName: "persistKey",
|
|
378
|
+
isSignal: true,
|
|
379
|
+
isRequired: false,
|
|
380
|
+
transformFunction: null
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
outputs: { logoutClick: "logoutClick" },
|
|
384
|
+
ngImport: i0,
|
|
385
|
+
template: `
|
|
386
|
+
<div
|
|
387
|
+
class="shell"
|
|
388
|
+
[class.sidebar-open]="_sidebarOpen()"
|
|
389
|
+
[class.collapsed]="_isRail()"
|
|
390
|
+
(keydown)="onShellKeydown($event)"
|
|
391
|
+
[style.--shell-bg]="backgroundColor() || null"
|
|
392
|
+
[style.--shell-text]="textColor() || null"
|
|
393
|
+
>
|
|
394
|
+
<ui-shell-projected-styles />
|
|
395
|
+
|
|
396
|
+
<!-- Keyboard users jump past the navigation straight to the page content -->
|
|
397
|
+
<a class="skip-link" href="#main-content" (click)="skipToContent($event)">{{ labels.t('appShell.skipToMainContent') }}</a>
|
|
398
|
+
|
|
399
|
+
<!-- Mobile backdrop -->
|
|
400
|
+
<div
|
|
401
|
+
class="sidebar-backdrop"
|
|
402
|
+
(click)="closeSidebar()"
|
|
403
|
+
aria-hidden="true"
|
|
404
|
+
></div>
|
|
405
|
+
|
|
406
|
+
<!-- ── Sidebar ────────────────────────────────────────────── -->
|
|
407
|
+
<aside class="sidebar" id="main-sidebar" [attr.aria-label]="labels.t('appShell.mainNavigation')">
|
|
408
|
+
|
|
409
|
+
<!-- Brand slot (project custom brand or fallback to appName) -->
|
|
410
|
+
<div class="sidebar-header">
|
|
411
|
+
<div class="brand-full">
|
|
412
|
+
<ng-content select="[shell-brand]">
|
|
413
|
+
<div class="brand-default">
|
|
414
|
+
<span class="brand-mark" aria-hidden="true">{{ appName().charAt(0) }}</span>
|
|
415
|
+
<span class="brand-text">{{ appName() }}</span>
|
|
416
|
+
</div>
|
|
417
|
+
</ng-content>
|
|
418
|
+
</div>
|
|
419
|
+
@if (collapsible()) {
|
|
420
|
+
<button
|
|
421
|
+
class="rail-toggle"
|
|
422
|
+
type="button"
|
|
423
|
+
[attr.aria-label]="_collapsed() ? labels.t('appShell.expandSidebar') : labels.t('appShell.collapseSidebar')"
|
|
424
|
+
[attr.aria-pressed]="_collapsed()"
|
|
425
|
+
[attr.title]="_collapsed() ? labels.t('appShell.expandSidebar') : labels.t('appShell.collapseSidebar')"
|
|
426
|
+
(click)="toggleCollapsed()"
|
|
427
|
+
>
|
|
428
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
429
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
430
|
+
@if (_collapsed()) {
|
|
431
|
+
<path d="M13 5l7 7-7 7M5 5l7 7-7 7"/>
|
|
432
|
+
} @else {
|
|
433
|
+
<path d="M11 19l-7-7 7-7m8 14l-7-7 7-7"/>
|
|
434
|
+
}
|
|
435
|
+
</svg>
|
|
436
|
+
</button>
|
|
437
|
+
}
|
|
438
|
+
</div>
|
|
439
|
+
|
|
440
|
+
<!-- Nav groups -->
|
|
441
|
+
<nav class="sidebar-nav" [attr.aria-label]="labels.t('appShell.siteNavigation')">
|
|
442
|
+
@for (group of _visibleGroups(); track group.key) {
|
|
443
|
+
<div class="nav-group">
|
|
444
|
+
@if (_isRail()) { <div class="rail-divider" aria-hidden="true"></div> }
|
|
445
|
+
@if (_canCollapseGroups()) {
|
|
446
|
+
<button
|
|
447
|
+
class="nav-group-label"
|
|
448
|
+
type="button"
|
|
449
|
+
[attr.aria-expanded]="!_isCollapsed(group.key)"
|
|
450
|
+
[attr.aria-controls]="'navg-' + group.key"
|
|
451
|
+
(click)="toggleGroup(group.key)"
|
|
452
|
+
>
|
|
453
|
+
<svg
|
|
454
|
+
class="chevron"
|
|
455
|
+
[class.collapsed]="_isCollapsed(group.key)"
|
|
456
|
+
width="12" height="12" viewBox="0 0 24 24"
|
|
457
|
+
fill="none" stroke="currentColor" stroke-width="2.5"
|
|
458
|
+
aria-hidden="true"
|
|
459
|
+
>
|
|
460
|
+
<polyline points="6 9 12 15 18 9"/>
|
|
461
|
+
</svg>
|
|
462
|
+
{{ group.label }}
|
|
463
|
+
</button>
|
|
464
|
+
} @else {
|
|
465
|
+
<!-- A single group can't be collapsed: hiding it would remove the whole navigation -->
|
|
466
|
+
<div class="nav-group-label nav-group-label--static" [id]="'navg-label-' + group.key">{{ group.label }}</div>
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
<!-- Always rendered so the toggle's aria-controls resolves; [hidden] (plus display:none in the CSS) removes the links of a collapsed group from view and from the tab order -->
|
|
470
|
+
<div
|
|
471
|
+
class="nav-group-links"
|
|
472
|
+
[id]="'navg-' + group.key"
|
|
473
|
+
[hidden]="!_isRail() && _isCollapsed(group.key)"
|
|
474
|
+
>
|
|
475
|
+
@for (link of _visibleLinks(group); track link.route) {
|
|
476
|
+
<a
|
|
477
|
+
[routerLink]="link.route"
|
|
478
|
+
routerLinkActive="active"
|
|
479
|
+
[routerLinkActiveOptions]="{ exact: !!link.exact }"
|
|
480
|
+
#rla="routerLinkActive"
|
|
481
|
+
[attr.aria-current]="rla.isActive ? 'page' : null"
|
|
482
|
+
[attr.title]="_isRail() ? link.label : null"
|
|
483
|
+
[attr.aria-label]="_isRail() ? link.label : null"
|
|
484
|
+
>
|
|
485
|
+
@if (link.icon) {
|
|
486
|
+
<span
|
|
487
|
+
class="nav-icon"
|
|
488
|
+
[innerHTML]="_safeIcon(link.icon)"
|
|
489
|
+
aria-hidden="true"
|
|
490
|
+
></span>
|
|
491
|
+
}
|
|
492
|
+
<span class="nav-label">{{ link.label }}</span>
|
|
493
|
+
@if (link.badge && link.badge > 0) {
|
|
494
|
+
<span
|
|
495
|
+
class="nav-badge"
|
|
496
|
+
[attr.aria-label]="labels.t('appShell.unreadCount', { count: link.badge })"
|
|
497
|
+
>{{ link.badge }}</span>
|
|
498
|
+
}
|
|
499
|
+
</a>
|
|
500
|
+
}
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
}
|
|
504
|
+
</nav>
|
|
505
|
+
|
|
506
|
+
<!-- User footer -->
|
|
507
|
+
<div class="sidebar-footer">
|
|
508
|
+
<div class="user-info">
|
|
509
|
+
<div class="user-avatar" aria-hidden="true">{{ _userInitials() }}</div>
|
|
510
|
+
<div class="user-details">
|
|
511
|
+
<span class="user-name">{{ _userName() }}</span>
|
|
512
|
+
@if (user()?.role) {
|
|
513
|
+
<span class="user-role">{{ user()!.role }}</span>
|
|
514
|
+
}
|
|
515
|
+
</div>
|
|
516
|
+
<button
|
|
517
|
+
class="btn-logout"
|
|
518
|
+
type="button"
|
|
519
|
+
[attr.aria-label]="labels.t('appShell.logOut')"
|
|
520
|
+
(click)="logoutClick.emit()"
|
|
521
|
+
>
|
|
522
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
|
|
523
|
+
stroke="currentColor" stroke-width="1.8"
|
|
524
|
+
stroke-linecap="round" stroke-linejoin="round"
|
|
525
|
+
aria-hidden="true">
|
|
526
|
+
<path d="M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"/>
|
|
527
|
+
<polyline points="16 17 21 12 16 7"/>
|
|
528
|
+
<line x1="21" y1="12" x2="9" y2="12"/>
|
|
529
|
+
</svg>
|
|
530
|
+
</button>
|
|
531
|
+
</div>
|
|
532
|
+
</div>
|
|
533
|
+
</aside>
|
|
534
|
+
|
|
535
|
+
<!-- ── Main area ──────────────────────────────────────────── -->
|
|
536
|
+
<div class="main-area">
|
|
537
|
+
|
|
538
|
+
<!-- Top header -->
|
|
539
|
+
<header class="top-header" role="banner">
|
|
540
|
+
<button
|
|
541
|
+
class="hamburger"
|
|
542
|
+
type="button"
|
|
543
|
+
[attr.aria-expanded]="_sidebarOpen()"
|
|
544
|
+
aria-controls="main-sidebar"
|
|
545
|
+
[attr.aria-label]="labels.t('appShell.toggleNavigation')"
|
|
546
|
+
(click)="toggleSidebar()"
|
|
547
|
+
>
|
|
548
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"
|
|
549
|
+
stroke="currentColor" stroke-width="2"
|
|
550
|
+
stroke-linecap="round" stroke-linejoin="round"
|
|
551
|
+
aria-hidden="true">
|
|
552
|
+
<line x1="3" y1="6" x2="21" y2="6"/>
|
|
553
|
+
<line x1="3" y1="12" x2="21" y2="12"/>
|
|
554
|
+
<line x1="3" y1="18" x2="21" y2="18"/>
|
|
555
|
+
</svg>
|
|
556
|
+
</button>
|
|
557
|
+
|
|
558
|
+
@if (_title()) {
|
|
559
|
+
<h1 class="page-title" id="shell-page-title" tabindex="-1">{{ _title() }}</h1>
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
@if (readOnly()) {
|
|
563
|
+
<span
|
|
564
|
+
class="read-only-badge"
|
|
565
|
+
role="status"
|
|
566
|
+
[attr.aria-label]="labels.t('appShell.thisPageIsReadOnly')"
|
|
567
|
+
>{{ labels.t('appShell.readOnly') }}</span>
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
<!-- Optional page-level navigation next to the title (e.g. a <ui-pill-tabs> of the page's views) -->
|
|
571
|
+
<div class="header-start"><ng-content select="[shell-header-start]" /></div>
|
|
572
|
+
|
|
573
|
+
<!-- Right-side header content (search, notifications, etc.) -->
|
|
574
|
+
<div class="header-end">
|
|
575
|
+
<ng-content select="[shell-header-end]" />
|
|
576
|
+
</div>
|
|
577
|
+
</header>
|
|
578
|
+
|
|
579
|
+
<!-- Banners / toasts above content -->
|
|
580
|
+
<ng-content select="[shell-banners]" />
|
|
581
|
+
|
|
582
|
+
<!-- Page content -->
|
|
583
|
+
<main class="content" id="main-content" role="main" tabindex="-1" [attr.aria-labelledby]="_title() ? 'shell-page-title' : null">
|
|
584
|
+
<ng-content />
|
|
585
|
+
</main>
|
|
586
|
+
</div>
|
|
587
|
+
</div>
|
|
588
|
+
|
|
589
|
+
<!-- Global confirm overlay — position:fixed so it overlays without affecting layout -->
|
|
590
|
+
<ui-confirm-outlet />
|
|
591
|
+
|
|
592
|
+
@if (showToast()) {
|
|
593
|
+
<ui-toast />
|
|
594
|
+
}
|
|
595
|
+
`,
|
|
596
|
+
isInline: true,
|
|
597
|
+
styles: [":host{display:contents}.shell{display:flex;height:100vh;height:100dvh;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar-backdrop{display:none;position:fixed;inset:0;background:#00000080;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:199}.sidebar{width:256px;background:var(--shell-bg, linear-gradient(175deg, #0f172a 0%, #111827 100%));display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.sidebar-header{display:flex;align-items:center;padding:0 20px;min-height:64px;border-bottom:1px solid color-mix(in srgb,var(--shell-text, #fff) 6%,transparent);box-sizing:border-box}.brand-default{display:flex;align-items:center;gap:10px}.brand-text{font-size:1.125rem;font-weight:700;color:var(--shell-text, #fff);letter-spacing:-.01em}.sidebar-nav{padding:6px 0 8px;flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--shell-text, #fff) 8%,transparent) transparent}.sidebar-nav::-webkit-scrollbar{width:3px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}.sidebar-nav::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--shell-text, #fff) 8%,transparent);border-radius:2px}.nav-group{margin-bottom:6px}.nav-group-links[hidden]{display:none}.nav-group-label{display:flex;align-items:center;gap:6px;width:100%;padding:8px 16px;font-size:.6875rem;font-weight:700;color:color-mix(in srgb,var(--shell-text, #fff) 80%,transparent);text-transform:uppercase;letter-spacing:.12em;background:none;border:none;cursor:pointer;transition:color .15s;text-align:left;border-radius:6px;background:color-mix(in srgb,var(--shell-text, #fff) 10%,transparent);margin:6px 4px 4px;width:calc(100% - 8px);box-sizing:border-box}.nav-group-label:hover{color:color-mix(in srgb,var(--shell-text, #fff) 100%,transparent)}.nav-group-label:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:-1px}.chevron{flex-shrink:0;transition:transform .2s cubic-bezier(.4,0,.2,1);opacity:.85}.chevron.collapsed{transform:rotate(-90deg)}.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:8px 12px 8px 32px;color:color-mix(in srgb,var(--shell-text, #fff) 95%,transparent);font-size:.9375rem;font-weight:500;text-decoration:none;border-left:2px solid transparent;border-radius:0 8px 8px 0;margin-right:10px;transition:color .15s,background .15s,border-color .15s}.sidebar-nav a:hover{color:color-mix(in srgb,var(--shell-text, #fff) 100%,transparent);background:color-mix(in srgb,var(--shell-text, #fff) 6%,transparent)}.sidebar-nav a.active{color:var(--shell-text, #fff);background:#60a5fa21;border-left-color:#60a5fa;font-weight:600}.sidebar-nav a:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:-2px}.nav-icon{display:flex;align-items:center;flex-shrink:0}.nav-label{flex:1}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font-size:.625rem;font-weight:700;margin-left:auto}.sidebar-footer{padding:10px 14px;border-top:1px solid color-mix(in srgb,var(--shell-text, #fff) 6%,transparent)}.user-info{display:flex;align-items:center;gap:10px}.user-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#60a5fa38,#60a5fa14);border:1px solid rgba(96,165,250,.18);color:color-mix(in srgb,var(--shell-text, #fff) 88%,transparent);font-size:.75rem;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-details{display:flex;flex-direction:column;min-width:0;flex:1}.user-name{font-size:.8125rem;font-weight:600;color:var(--shell-text, #fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{font-size:.6875rem;color:color-mix(in srgb,var(--shell-text, #fff) 80%,transparent);text-transform:uppercase;letter-spacing:.05em;font-weight:500}.btn-logout{background:none;border:none;cursor:pointer;color:color-mix(in srgb,var(--shell-text, #fff) 85%,transparent);padding:6px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:color .15s,background .15s}.btn-logout:hover{color:#f87171;background:#f871711a}.btn-logout:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:2px}.brand-full{display:flex;align-items:center;min-width:0;flex:1}.brand-mark{display:none}.shell.collapsed .brand-mark{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.125rem;color:var(--shell-text, #fff);background:color-mix(in srgb,var(--shell-text, #fff) 15%,transparent)}.rail-toggle{display:none;align-items:center;justify-content:center;width:32px;height:32px;margin-left:auto;flex-shrink:0;border:none;background:none;cursor:pointer;border-radius:8px;color:color-mix(in srgb,var(--shell-text, #fff) 85%,transparent);transition:background .15s,color .15s}.rail-toggle:hover{background:color-mix(in srgb,var(--shell-text, #fff) 12%,transparent);color:var(--shell-text, #fff)}.rail-toggle:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:2px}.rail-divider{display:none}@media(min-width:1025px){.rail-toggle{display:flex}.sidebar{transition:width .2s cubic-bezier(.4,0,.2,1)}.shell.collapsed .sidebar{width:68px}.shell.collapsed .sidebar-header{flex-direction:column;justify-content:center;gap:4px;padding:8px 0}.shell.collapsed .brand-full{flex:none;width:44px;height:44px;overflow:hidden;border-radius:10px;justify-content:center}.shell.collapsed .brand-text{display:none}.shell.collapsed .rail-toggle{margin-left:0}.shell.collapsed .nav-group-label{display:none}.shell.collapsed .rail-divider{display:block;height:1px;margin:8px 14px;background:color-mix(in srgb,var(--shell-text, #fff) 20%,transparent)}.shell.collapsed .nav-group:first-child .rail-divider{display:none}.shell.collapsed .sidebar-nav a{position:relative;justify-content:center;padding:10px 0;margin:0 8px 2px;border-left:none;border-radius:8px}.shell.collapsed .sidebar-nav a.active{box-shadow:inset 3px 0 #60a5fa}.shell.collapsed .nav-label{display:none}.shell.collapsed .nav-badge{position:absolute;top:2px;right:4px;min-width:16px;height:16px;padding:0 4px;font-size:.5625rem;margin:0}.shell.collapsed .sidebar-footer{padding:10px 8px}.shell.collapsed .user-info{flex-direction:column;gap:8px}.shell.collapsed .user-details{display:none}}.main-area{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.top-header{display:flex;align-items:center;gap:8px;padding:0 24px;background:#fff;box-shadow:0 1px 3px #00000012,0 1px #0000000a;min-height:64px;box-sizing:border-box;position:relative;z-index:50}.hamburger{display:none;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:none;cursor:pointer;color:#374151;border-radius:8px;flex-shrink:0;transition:background .15s,color .15s}.hamburger:hover{background:#f3f4f6}.hamburger:focus-visible{outline:2px solid rgba(59,130,246,.5);outline-offset:2px}.page-title{font-size:1.25rem;font-weight:700;color:#111827;margin:0;letter-spacing:-.02em}.page-title:focus{outline:none}.read-only-badge{display:inline-flex;align-items:center;flex-shrink:0;padding:2px 8px;border-radius:9999px;font-size:.6875rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;background:#fef9c3;color:#854d0e;border:1px solid #fde68a;white-space:nowrap}.header-start{display:flex;align-items:center;min-width:0;margin-left:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.header-start:empty{display:none}.header-start::-webkit-scrollbar{display:none}.header-end{display:flex;align-items:center;margin-left:auto}.content:focus{outline:none}.content{--shell-content-padding: 24px;flex:1;overflow-y:auto;padding:var(--shell-content-padding);background:#f7f8f6;display:flex;flex-direction:column;box-sizing:border-box;min-height:0}.content>*{flex:1;min-height:0;display:flex;flex-direction:column}.skip-link{position:absolute;top:-48px;left:8px;z-index:300;padding:8px 14px;border-radius:6px;background:#fff;color:#1d4ed8;font-size:.875rem;font-weight:600;text-decoration:none;box-shadow:0 2px 10px #00000040}.skip-link:focus{top:8px;outline:2px solid #1d4ed8;outline-offset:2px}.nav-group-label--static{cursor:default}@media(max-width:1024px){.hamburger{display:flex}.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:200;transform:translate(-100%);transition:transform .26s cubic-bezier(.4,0,.2,1),box-shadow .26s cubic-bezier(.4,0,.2,1),visibility 0s linear .26s;visibility:hidden;box-shadow:none}.shell.sidebar-open .sidebar{transform:translate(0);box-shadow:4px 0 32px #0000004d;visibility:visible;transition-delay:0s}.shell.sidebar-open .sidebar-backdrop{display:block}.main-area{width:100%}.top-header{padding:0 16px;gap:4px}.content{--shell-content-padding: 16px}}@media(max-width:480px){.page-title{font-size:1.0625rem}.content{--shell-content-padding: 12px}}@media(pointer:coarse),(max-width:480px){.sidebar-nav a,.nav-group-label{min-height:44px}.btn-logout,.hamburger,.rail-toggle{min-width:44px;min-height:44px}}@media(prefers-reduced-motion:reduce){.chevron,.sidebar-nav a,.sidebar{transition:none!important}}\n"],
|
|
598
|
+
dependencies: [
|
|
599
|
+
{
|
|
600
|
+
kind: "directive",
|
|
601
|
+
type: RouterLink,
|
|
602
|
+
selector: "[routerLink]",
|
|
603
|
+
inputs: [
|
|
604
|
+
"target",
|
|
605
|
+
"queryParams",
|
|
606
|
+
"fragment",
|
|
607
|
+
"queryParamsHandling",
|
|
608
|
+
"state",
|
|
609
|
+
"info",
|
|
610
|
+
"relativeTo",
|
|
611
|
+
"preserveFragment",
|
|
612
|
+
"skipLocationChange",
|
|
613
|
+
"replaceUrl",
|
|
614
|
+
"browserUrl",
|
|
615
|
+
"routerLink"
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
kind: "directive",
|
|
620
|
+
type: RouterLinkActive,
|
|
621
|
+
selector: "[routerLinkActive]",
|
|
622
|
+
inputs: [
|
|
623
|
+
"routerLinkActiveOptions",
|
|
624
|
+
"ariaCurrentWhenActive",
|
|
625
|
+
"routerLinkActive"
|
|
626
|
+
],
|
|
627
|
+
outputs: ["isActiveChange"],
|
|
628
|
+
exportAs: ["routerLinkActive"]
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
kind: "component",
|
|
632
|
+
type: ConfirmOutletComponent,
|
|
633
|
+
selector: "ui-confirm-outlet"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
kind: "component",
|
|
637
|
+
type: ToastComponent,
|
|
638
|
+
selector: "ui-toast",
|
|
639
|
+
inputs: [
|
|
640
|
+
"dismissible",
|
|
641
|
+
"persistentLiveRegion",
|
|
642
|
+
"queue",
|
|
643
|
+
"countdown",
|
|
644
|
+
"maxQueued",
|
|
645
|
+
"countdownLabel",
|
|
646
|
+
"queueLabel"
|
|
647
|
+
],
|
|
648
|
+
outputs: ["action"]
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
kind: "component",
|
|
652
|
+
type: ShellProjectedStylesComponent,
|
|
653
|
+
selector: "ui-shell-projected-styles"
|
|
654
|
+
}
|
|
655
|
+
],
|
|
656
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
661
|
+
minVersion: "12.0.0",
|
|
662
|
+
version: "22.2.2",
|
|
663
|
+
ngImport: i0,
|
|
664
|
+
type: AppShellComponent,
|
|
665
|
+
decorators: [{
|
|
666
|
+
type: Component,
|
|
667
|
+
args: [{
|
|
668
|
+
selector: "ui-app-shell",
|
|
669
|
+
standalone: true,
|
|
670
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
671
|
+
imports: [
|
|
672
|
+
RouterLink,
|
|
673
|
+
RouterLinkActive,
|
|
674
|
+
ConfirmOutletComponent,
|
|
675
|
+
ToastComponent,
|
|
676
|
+
ShellProjectedStylesComponent
|
|
677
|
+
],
|
|
678
|
+
template: `
|
|
679
|
+
<div
|
|
680
|
+
class="shell"
|
|
681
|
+
[class.sidebar-open]="_sidebarOpen()"
|
|
682
|
+
[class.collapsed]="_isRail()"
|
|
683
|
+
(keydown)="onShellKeydown($event)"
|
|
684
|
+
[style.--shell-bg]="backgroundColor() || null"
|
|
685
|
+
[style.--shell-text]="textColor() || null"
|
|
686
|
+
>
|
|
687
|
+
<ui-shell-projected-styles />
|
|
688
|
+
|
|
689
|
+
<!-- Keyboard users jump past the navigation straight to the page content -->
|
|
690
|
+
<a class="skip-link" href="#main-content" (click)="skipToContent($event)">{{ labels.t('appShell.skipToMainContent') }}</a>
|
|
691
|
+
|
|
692
|
+
<!-- Mobile backdrop -->
|
|
693
|
+
<div
|
|
694
|
+
class="sidebar-backdrop"
|
|
695
|
+
(click)="closeSidebar()"
|
|
696
|
+
aria-hidden="true"
|
|
697
|
+
></div>
|
|
698
|
+
|
|
699
|
+
<!-- ── Sidebar ────────────────────────────────────────────── -->
|
|
700
|
+
<aside class="sidebar" id="main-sidebar" [attr.aria-label]="labels.t('appShell.mainNavigation')">
|
|
701
|
+
|
|
702
|
+
<!-- Brand slot (project custom brand or fallback to appName) -->
|
|
703
|
+
<div class="sidebar-header">
|
|
704
|
+
<div class="brand-full">
|
|
705
|
+
<ng-content select="[shell-brand]">
|
|
706
|
+
<div class="brand-default">
|
|
707
|
+
<span class="brand-mark" aria-hidden="true">{{ appName().charAt(0) }}</span>
|
|
708
|
+
<span class="brand-text">{{ appName() }}</span>
|
|
709
|
+
</div>
|
|
710
|
+
</ng-content>
|
|
711
|
+
</div>
|
|
712
|
+
@if (collapsible()) {
|
|
713
|
+
<button
|
|
714
|
+
class="rail-toggle"
|
|
715
|
+
type="button"
|
|
716
|
+
[attr.aria-label]="_collapsed() ? labels.t('appShell.expandSidebar') : labels.t('appShell.collapseSidebar')"
|
|
717
|
+
[attr.aria-pressed]="_collapsed()"
|
|
718
|
+
[attr.title]="_collapsed() ? labels.t('appShell.expandSidebar') : labels.t('appShell.collapseSidebar')"
|
|
719
|
+
(click)="toggleCollapsed()"
|
|
720
|
+
>
|
|
721
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
722
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
723
|
+
@if (_collapsed()) {
|
|
724
|
+
<path d="M13 5l7 7-7 7M5 5l7 7-7 7"/>
|
|
725
|
+
} @else {
|
|
726
|
+
<path d="M11 19l-7-7 7-7m8 14l-7-7 7-7"/>
|
|
727
|
+
}
|
|
728
|
+
</svg>
|
|
729
|
+
</button>
|
|
730
|
+
}
|
|
731
|
+
</div>
|
|
732
|
+
|
|
733
|
+
<!-- Nav groups -->
|
|
734
|
+
<nav class="sidebar-nav" [attr.aria-label]="labels.t('appShell.siteNavigation')">
|
|
735
|
+
@for (group of _visibleGroups(); track group.key) {
|
|
736
|
+
<div class="nav-group">
|
|
737
|
+
@if (_isRail()) { <div class="rail-divider" aria-hidden="true"></div> }
|
|
738
|
+
@if (_canCollapseGroups()) {
|
|
739
|
+
<button
|
|
740
|
+
class="nav-group-label"
|
|
741
|
+
type="button"
|
|
742
|
+
[attr.aria-expanded]="!_isCollapsed(group.key)"
|
|
743
|
+
[attr.aria-controls]="'navg-' + group.key"
|
|
744
|
+
(click)="toggleGroup(group.key)"
|
|
745
|
+
>
|
|
746
|
+
<svg
|
|
747
|
+
class="chevron"
|
|
748
|
+
[class.collapsed]="_isCollapsed(group.key)"
|
|
749
|
+
width="12" height="12" viewBox="0 0 24 24"
|
|
750
|
+
fill="none" stroke="currentColor" stroke-width="2.5"
|
|
751
|
+
aria-hidden="true"
|
|
752
|
+
>
|
|
753
|
+
<polyline points="6 9 12 15 18 9"/>
|
|
754
|
+
</svg>
|
|
755
|
+
{{ group.label }}
|
|
756
|
+
</button>
|
|
757
|
+
} @else {
|
|
758
|
+
<!-- A single group can't be collapsed: hiding it would remove the whole navigation -->
|
|
759
|
+
<div class="nav-group-label nav-group-label--static" [id]="'navg-label-' + group.key">{{ group.label }}</div>
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
<!-- Always rendered so the toggle's aria-controls resolves; [hidden] (plus display:none in the CSS) removes the links of a collapsed group from view and from the tab order -->
|
|
763
|
+
<div
|
|
764
|
+
class="nav-group-links"
|
|
765
|
+
[id]="'navg-' + group.key"
|
|
766
|
+
[hidden]="!_isRail() && _isCollapsed(group.key)"
|
|
767
|
+
>
|
|
768
|
+
@for (link of _visibleLinks(group); track link.route) {
|
|
769
|
+
<a
|
|
770
|
+
[routerLink]="link.route"
|
|
771
|
+
routerLinkActive="active"
|
|
772
|
+
[routerLinkActiveOptions]="{ exact: !!link.exact }"
|
|
773
|
+
#rla="routerLinkActive"
|
|
774
|
+
[attr.aria-current]="rla.isActive ? 'page' : null"
|
|
775
|
+
[attr.title]="_isRail() ? link.label : null"
|
|
776
|
+
[attr.aria-label]="_isRail() ? link.label : null"
|
|
777
|
+
>
|
|
778
|
+
@if (link.icon) {
|
|
779
|
+
<span
|
|
780
|
+
class="nav-icon"
|
|
781
|
+
[innerHTML]="_safeIcon(link.icon)"
|
|
782
|
+
aria-hidden="true"
|
|
783
|
+
></span>
|
|
784
|
+
}
|
|
785
|
+
<span class="nav-label">{{ link.label }}</span>
|
|
786
|
+
@if (link.badge && link.badge > 0) {
|
|
787
|
+
<span
|
|
788
|
+
class="nav-badge"
|
|
789
|
+
[attr.aria-label]="labels.t('appShell.unreadCount', { count: link.badge })"
|
|
790
|
+
>{{ link.badge }}</span>
|
|
791
|
+
}
|
|
792
|
+
</a>
|
|
793
|
+
}
|
|
794
|
+
</div>
|
|
795
|
+
</div>
|
|
796
|
+
}
|
|
797
|
+
</nav>
|
|
798
|
+
|
|
799
|
+
<!-- User footer -->
|
|
800
|
+
<div class="sidebar-footer">
|
|
801
|
+
<div class="user-info">
|
|
802
|
+
<div class="user-avatar" aria-hidden="true">{{ _userInitials() }}</div>
|
|
803
|
+
<div class="user-details">
|
|
804
|
+
<span class="user-name">{{ _userName() }}</span>
|
|
805
|
+
@if (user()?.role) {
|
|
806
|
+
<span class="user-role">{{ user()!.role }}</span>
|
|
807
|
+
}
|
|
808
|
+
</div>
|
|
809
|
+
<button
|
|
810
|
+
class="btn-logout"
|
|
811
|
+
type="button"
|
|
812
|
+
[attr.aria-label]="labels.t('appShell.logOut')"
|
|
813
|
+
(click)="logoutClick.emit()"
|
|
814
|
+
>
|
|
815
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
|
|
816
|
+
stroke="currentColor" stroke-width="1.8"
|
|
817
|
+
stroke-linecap="round" stroke-linejoin="round"
|
|
818
|
+
aria-hidden="true">
|
|
819
|
+
<path d="M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"/>
|
|
820
|
+
<polyline points="16 17 21 12 16 7"/>
|
|
821
|
+
<line x1="21" y1="12" x2="9" y2="12"/>
|
|
822
|
+
</svg>
|
|
823
|
+
</button>
|
|
824
|
+
</div>
|
|
825
|
+
</div>
|
|
826
|
+
</aside>
|
|
827
|
+
|
|
828
|
+
<!-- ── Main area ──────────────────────────────────────────── -->
|
|
829
|
+
<div class="main-area">
|
|
830
|
+
|
|
831
|
+
<!-- Top header -->
|
|
832
|
+
<header class="top-header" role="banner">
|
|
833
|
+
<button
|
|
834
|
+
class="hamburger"
|
|
835
|
+
type="button"
|
|
836
|
+
[attr.aria-expanded]="_sidebarOpen()"
|
|
837
|
+
aria-controls="main-sidebar"
|
|
838
|
+
[attr.aria-label]="labels.t('appShell.toggleNavigation')"
|
|
839
|
+
(click)="toggleSidebar()"
|
|
840
|
+
>
|
|
841
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"
|
|
842
|
+
stroke="currentColor" stroke-width="2"
|
|
843
|
+
stroke-linecap="round" stroke-linejoin="round"
|
|
844
|
+
aria-hidden="true">
|
|
845
|
+
<line x1="3" y1="6" x2="21" y2="6"/>
|
|
846
|
+
<line x1="3" y1="12" x2="21" y2="12"/>
|
|
847
|
+
<line x1="3" y1="18" x2="21" y2="18"/>
|
|
848
|
+
</svg>
|
|
849
|
+
</button>
|
|
850
|
+
|
|
851
|
+
@if (_title()) {
|
|
852
|
+
<h1 class="page-title" id="shell-page-title" tabindex="-1">{{ _title() }}</h1>
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
@if (readOnly()) {
|
|
856
|
+
<span
|
|
857
|
+
class="read-only-badge"
|
|
858
|
+
role="status"
|
|
859
|
+
[attr.aria-label]="labels.t('appShell.thisPageIsReadOnly')"
|
|
860
|
+
>{{ labels.t('appShell.readOnly') }}</span>
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
<!-- Optional page-level navigation next to the title (e.g. a <ui-pill-tabs> of the page's views) -->
|
|
864
|
+
<div class="header-start"><ng-content select="[shell-header-start]" /></div>
|
|
865
|
+
|
|
866
|
+
<!-- Right-side header content (search, notifications, etc.) -->
|
|
867
|
+
<div class="header-end">
|
|
868
|
+
<ng-content select="[shell-header-end]" />
|
|
869
|
+
</div>
|
|
870
|
+
</header>
|
|
871
|
+
|
|
872
|
+
<!-- Banners / toasts above content -->
|
|
873
|
+
<ng-content select="[shell-banners]" />
|
|
874
|
+
|
|
875
|
+
<!-- Page content -->
|
|
876
|
+
<main class="content" id="main-content" role="main" tabindex="-1" [attr.aria-labelledby]="_title() ? 'shell-page-title' : null">
|
|
877
|
+
<ng-content />
|
|
878
|
+
</main>
|
|
879
|
+
</div>
|
|
880
|
+
</div>
|
|
881
|
+
|
|
882
|
+
<!-- Global confirm overlay — position:fixed so it overlays without affecting layout -->
|
|
883
|
+
<ui-confirm-outlet />
|
|
884
|
+
|
|
885
|
+
@if (showToast()) {
|
|
886
|
+
<ui-toast />
|
|
887
|
+
}
|
|
888
|
+
`,
|
|
889
|
+
styles: [":host{display:contents}.shell{display:flex;height:100vh;height:100dvh;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar-backdrop{display:none;position:fixed;inset:0;background:#00000080;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:199}.sidebar{width:256px;background:var(--shell-bg, linear-gradient(175deg, #0f172a 0%, #111827 100%));display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.sidebar-header{display:flex;align-items:center;padding:0 20px;min-height:64px;border-bottom:1px solid color-mix(in srgb,var(--shell-text, #fff) 6%,transparent);box-sizing:border-box}.brand-default{display:flex;align-items:center;gap:10px}.brand-text{font-size:1.125rem;font-weight:700;color:var(--shell-text, #fff);letter-spacing:-.01em}.sidebar-nav{padding:6px 0 8px;flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--shell-text, #fff) 8%,transparent) transparent}.sidebar-nav::-webkit-scrollbar{width:3px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}.sidebar-nav::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--shell-text, #fff) 8%,transparent);border-radius:2px}.nav-group{margin-bottom:6px}.nav-group-links[hidden]{display:none}.nav-group-label{display:flex;align-items:center;gap:6px;width:100%;padding:8px 16px;font-size:.6875rem;font-weight:700;color:color-mix(in srgb,var(--shell-text, #fff) 80%,transparent);text-transform:uppercase;letter-spacing:.12em;background:none;border:none;cursor:pointer;transition:color .15s;text-align:left;border-radius:6px;background:color-mix(in srgb,var(--shell-text, #fff) 10%,transparent);margin:6px 4px 4px;width:calc(100% - 8px);box-sizing:border-box}.nav-group-label:hover{color:color-mix(in srgb,var(--shell-text, #fff) 100%,transparent)}.nav-group-label:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:-1px}.chevron{flex-shrink:0;transition:transform .2s cubic-bezier(.4,0,.2,1);opacity:.85}.chevron.collapsed{transform:rotate(-90deg)}.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:8px 12px 8px 32px;color:color-mix(in srgb,var(--shell-text, #fff) 95%,transparent);font-size:.9375rem;font-weight:500;text-decoration:none;border-left:2px solid transparent;border-radius:0 8px 8px 0;margin-right:10px;transition:color .15s,background .15s,border-color .15s}.sidebar-nav a:hover{color:color-mix(in srgb,var(--shell-text, #fff) 100%,transparent);background:color-mix(in srgb,var(--shell-text, #fff) 6%,transparent)}.sidebar-nav a.active{color:var(--shell-text, #fff);background:#60a5fa21;border-left-color:#60a5fa;font-weight:600}.sidebar-nav a:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:-2px}.nav-icon{display:flex;align-items:center;flex-shrink:0}.nav-label{flex:1}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font-size:.625rem;font-weight:700;margin-left:auto}.sidebar-footer{padding:10px 14px;border-top:1px solid color-mix(in srgb,var(--shell-text, #fff) 6%,transparent)}.user-info{display:flex;align-items:center;gap:10px}.user-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#60a5fa38,#60a5fa14);border:1px solid rgba(96,165,250,.18);color:color-mix(in srgb,var(--shell-text, #fff) 88%,transparent);font-size:.75rem;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-details{display:flex;flex-direction:column;min-width:0;flex:1}.user-name{font-size:.8125rem;font-weight:600;color:var(--shell-text, #fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{font-size:.6875rem;color:color-mix(in srgb,var(--shell-text, #fff) 80%,transparent);text-transform:uppercase;letter-spacing:.05em;font-weight:500}.btn-logout{background:none;border:none;cursor:pointer;color:color-mix(in srgb,var(--shell-text, #fff) 85%,transparent);padding:6px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:color .15s,background .15s}.btn-logout:hover{color:#f87171;background:#f871711a}.btn-logout:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:2px}.brand-full{display:flex;align-items:center;min-width:0;flex:1}.brand-mark{display:none}.shell.collapsed .brand-mark{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.125rem;color:var(--shell-text, #fff);background:color-mix(in srgb,var(--shell-text, #fff) 15%,transparent)}.rail-toggle{display:none;align-items:center;justify-content:center;width:32px;height:32px;margin-left:auto;flex-shrink:0;border:none;background:none;cursor:pointer;border-radius:8px;color:color-mix(in srgb,var(--shell-text, #fff) 85%,transparent);transition:background .15s,color .15s}.rail-toggle:hover{background:color-mix(in srgb,var(--shell-text, #fff) 12%,transparent);color:var(--shell-text, #fff)}.rail-toggle:focus-visible{outline:2px solid rgba(96,165,250,.5);outline-offset:2px}.rail-divider{display:none}@media(min-width:1025px){.rail-toggle{display:flex}.sidebar{transition:width .2s cubic-bezier(.4,0,.2,1)}.shell.collapsed .sidebar{width:68px}.shell.collapsed .sidebar-header{flex-direction:column;justify-content:center;gap:4px;padding:8px 0}.shell.collapsed .brand-full{flex:none;width:44px;height:44px;overflow:hidden;border-radius:10px;justify-content:center}.shell.collapsed .brand-text{display:none}.shell.collapsed .rail-toggle{margin-left:0}.shell.collapsed .nav-group-label{display:none}.shell.collapsed .rail-divider{display:block;height:1px;margin:8px 14px;background:color-mix(in srgb,var(--shell-text, #fff) 20%,transparent)}.shell.collapsed .nav-group:first-child .rail-divider{display:none}.shell.collapsed .sidebar-nav a{position:relative;justify-content:center;padding:10px 0;margin:0 8px 2px;border-left:none;border-radius:8px}.shell.collapsed .sidebar-nav a.active{box-shadow:inset 3px 0 #60a5fa}.shell.collapsed .nav-label{display:none}.shell.collapsed .nav-badge{position:absolute;top:2px;right:4px;min-width:16px;height:16px;padding:0 4px;font-size:.5625rem;margin:0}.shell.collapsed .sidebar-footer{padding:10px 8px}.shell.collapsed .user-info{flex-direction:column;gap:8px}.shell.collapsed .user-details{display:none}}.main-area{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.top-header{display:flex;align-items:center;gap:8px;padding:0 24px;background:#fff;box-shadow:0 1px 3px #00000012,0 1px #0000000a;min-height:64px;box-sizing:border-box;position:relative;z-index:50}.hamburger{display:none;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:none;cursor:pointer;color:#374151;border-radius:8px;flex-shrink:0;transition:background .15s,color .15s}.hamburger:hover{background:#f3f4f6}.hamburger:focus-visible{outline:2px solid rgba(59,130,246,.5);outline-offset:2px}.page-title{font-size:1.25rem;font-weight:700;color:#111827;margin:0;letter-spacing:-.02em}.page-title:focus{outline:none}.read-only-badge{display:inline-flex;align-items:center;flex-shrink:0;padding:2px 8px;border-radius:9999px;font-size:.6875rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;background:#fef9c3;color:#854d0e;border:1px solid #fde68a;white-space:nowrap}.header-start{display:flex;align-items:center;min-width:0;margin-left:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.header-start:empty{display:none}.header-start::-webkit-scrollbar{display:none}.header-end{display:flex;align-items:center;margin-left:auto}.content:focus{outline:none}.content{--shell-content-padding: 24px;flex:1;overflow-y:auto;padding:var(--shell-content-padding);background:#f7f8f6;display:flex;flex-direction:column;box-sizing:border-box;min-height:0}.content>*{flex:1;min-height:0;display:flex;flex-direction:column}.skip-link{position:absolute;top:-48px;left:8px;z-index:300;padding:8px 14px;border-radius:6px;background:#fff;color:#1d4ed8;font-size:.875rem;font-weight:600;text-decoration:none;box-shadow:0 2px 10px #00000040}.skip-link:focus{top:8px;outline:2px solid #1d4ed8;outline-offset:2px}.nav-group-label--static{cursor:default}@media(max-width:1024px){.hamburger{display:flex}.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:200;transform:translate(-100%);transition:transform .26s cubic-bezier(.4,0,.2,1),box-shadow .26s cubic-bezier(.4,0,.2,1),visibility 0s linear .26s;visibility:hidden;box-shadow:none}.shell.sidebar-open .sidebar{transform:translate(0);box-shadow:4px 0 32px #0000004d;visibility:visible;transition-delay:0s}.shell.sidebar-open .sidebar-backdrop{display:block}.main-area{width:100%}.top-header{padding:0 16px;gap:4px}.content{--shell-content-padding: 16px}}@media(max-width:480px){.page-title{font-size:1.0625rem}.content{--shell-content-padding: 12px}}@media(pointer:coarse),(max-width:480px){.sidebar-nav a,.nav-group-label{min-height:44px}.btn-logout,.hamburger,.rail-toggle{min-width:44px;min-height:44px}}@media(prefers-reduced-motion:reduce){.chevron,.sidebar-nav a,.sidebar{transition:none!important}}\n"]
|
|
890
|
+
}]
|
|
891
|
+
}],
|
|
892
|
+
propDecorators: {
|
|
893
|
+
navGroups: [{
|
|
894
|
+
type: i0.Input,
|
|
895
|
+
args: [{
|
|
896
|
+
isSignal: true,
|
|
897
|
+
alias: "navGroups",
|
|
898
|
+
required: false
|
|
899
|
+
}]
|
|
900
|
+
}],
|
|
901
|
+
pageTitle: [{
|
|
902
|
+
type: i0.Input,
|
|
903
|
+
args: [{
|
|
904
|
+
isSignal: true,
|
|
905
|
+
alias: "pageTitle",
|
|
906
|
+
required: false
|
|
907
|
+
}]
|
|
908
|
+
}],
|
|
909
|
+
showToast: [{
|
|
910
|
+
type: i0.Input,
|
|
911
|
+
args: [{
|
|
912
|
+
isSignal: true,
|
|
913
|
+
alias: "showToast",
|
|
914
|
+
required: false
|
|
915
|
+
}]
|
|
916
|
+
}],
|
|
917
|
+
appNameInput: [{
|
|
918
|
+
type: i0.Input,
|
|
919
|
+
args: [{
|
|
920
|
+
isSignal: true,
|
|
921
|
+
alias: "appName",
|
|
922
|
+
required: false
|
|
923
|
+
}]
|
|
924
|
+
}],
|
|
925
|
+
user: [{
|
|
926
|
+
type: i0.Input,
|
|
927
|
+
args: [{
|
|
928
|
+
isSignal: true,
|
|
929
|
+
alias: "user",
|
|
930
|
+
required: false
|
|
931
|
+
}]
|
|
932
|
+
}],
|
|
933
|
+
readOnly: [{
|
|
934
|
+
type: i0.Input,
|
|
935
|
+
args: [{
|
|
936
|
+
isSignal: true,
|
|
937
|
+
alias: "readOnly",
|
|
938
|
+
required: false
|
|
939
|
+
}]
|
|
940
|
+
}],
|
|
941
|
+
backgroundColor: [{
|
|
942
|
+
type: i0.Input,
|
|
943
|
+
args: [{
|
|
944
|
+
isSignal: true,
|
|
945
|
+
alias: "backgroundColor",
|
|
946
|
+
required: false
|
|
947
|
+
}]
|
|
948
|
+
}],
|
|
949
|
+
textColor: [{
|
|
950
|
+
type: i0.Input,
|
|
951
|
+
args: [{
|
|
952
|
+
isSignal: true,
|
|
953
|
+
alias: "textColor",
|
|
954
|
+
required: false
|
|
955
|
+
}]
|
|
956
|
+
}],
|
|
957
|
+
collapsible: [{
|
|
958
|
+
type: i0.Input,
|
|
959
|
+
args: [{
|
|
960
|
+
isSignal: true,
|
|
961
|
+
alias: "collapsible",
|
|
962
|
+
required: false
|
|
963
|
+
}]
|
|
964
|
+
}],
|
|
965
|
+
persistKey: [{
|
|
966
|
+
type: i0.Input,
|
|
967
|
+
args: [{
|
|
968
|
+
isSignal: true,
|
|
969
|
+
alias: "persistKey",
|
|
970
|
+
required: false
|
|
971
|
+
}]
|
|
972
|
+
}],
|
|
973
|
+
logoutClick: [{
|
|
974
|
+
type: i0.Output,
|
|
975
|
+
args: ["logoutClick"]
|
|
976
|
+
}]
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
export { AppShellComponent, appShellGroupsStorageKey };
|
|
980
|
+
|
|
981
|
+
//# sourceMappingURL=forgeroute-ui-shell.mjs.map
|