@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,770 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, output, signal } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import { FormsModule } from "@angular/forms";
|
|
5
|
+
import { ButtonComponent, ModalComponent, UiLabelsService } from "@forgeroute/ui/core";
|
|
6
|
+
import { CheckboxComponent } from "@forgeroute/ui/checkbox";
|
|
7
|
+
import { TextInputComponent } from "@forgeroute/ui/text-input";
|
|
8
|
+
var TableToolbarComponent = class TableToolbarComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.labels = inject(UiLabelsService);
|
|
11
|
+
this.columns = input.required(...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.visibleColumns = input.required(...ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.lockedColumn = input("", ...ngDevMode ? [{ debugName: "lockedColumn" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.savedViews = input([], ...ngDevMode ? [{ debugName: "savedViews" }] : /* istanbul ignore next */ []);
|
|
15
|
+
this.activeViewId = input(null, ...ngDevMode ? [{ debugName: "activeViewId" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.showSavedViews = input(false, ...ngDevMode ? [{ debugName: "showSavedViews" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this.readOnly = input(false, ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
|
|
18
|
+
this.hideMoreActions = input(false, ...ngDevMode ? [{ debugName: "hideMoreActions" }] : /* istanbul ignore next */ []);
|
|
19
|
+
this.tableButtons = input([], ...ngDevMode ? [{ debugName: "tableButtons" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this.visibleColumnsChange = output();
|
|
21
|
+
this.saveViewClick = output();
|
|
22
|
+
this.loadViewClick = output();
|
|
23
|
+
this.deleteViewClick = output();
|
|
24
|
+
this.tableButtonClick = output();
|
|
25
|
+
this.colModalOpen = signal(false, ...ngDevMode ? [{ debugName: "colModalOpen" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.viewModalOpen = signal(false, ...ngDevMode ? [{ debugName: "viewModalOpen" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this.moreOpen = signal(false, ...ngDevMode ? [{ debugName: "moreOpen" }] : /* istanbul ignore next */ []);
|
|
28
|
+
this.saveNameModalOpen = signal(false, ...ngDevMode ? [{ debugName: "saveNameModalOpen" }] : /* istanbul ignore next */ []);
|
|
29
|
+
this._saveViewName = "";
|
|
30
|
+
this._pendingCols = signal([], ...ngDevMode ? [{ debugName: "_pendingCols" }] : /* istanbul ignore next */ []);
|
|
31
|
+
this._allowedButtons = computed(() => this.readOnly() ? this.tableButtons().filter((b) => b.type === "export" || b.allowReadOnly && b.type !== "import") : this.tableButtons(), ...ngDevMode ? [{ debugName: "_allowedButtons" }] : /* istanbul ignore next */ []);
|
|
32
|
+
this.standaloneButtons = computed(() => this._allowedButtons().filter((b) => (b.variant === "primary" || b.variant === "secondary") && !b.hidden).sort((a, b) => {
|
|
33
|
+
if (a.variant === b.variant) return 0;
|
|
34
|
+
return a.variant === "primary" ? -1 : 1;
|
|
35
|
+
}), ...ngDevMode ? [{ debugName: "standaloneButtons" }] : /* istanbul ignore next */ []);
|
|
36
|
+
this.importButton = computed(() => this._allowedButtons().find((b) => b.type === "import" && !b.hidden) ?? null, ...ngDevMode ? [{ debugName: "importButton" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.exportDropdownButton = computed(() => this._allowedButtons().find((b) => b.type === "export" && !b.variant && !b.hidden) ?? null, ...ngDevMode ? [{ debugName: "exportDropdownButton" }] : /* istanbul ignore next */ []);
|
|
38
|
+
this.additionalDropdownButtons = computed(() => this._allowedButtons().filter((b) => !b.variant && !b.hidden && b.type !== "import" && b.type !== "export").sort((a, b) => a.label.localeCompare(b.label, void 0, { sensitivity: "base" })), ...ngDevMode ? [{ debugName: "additionalDropdownButtons" }] : /* istanbul ignore next */ []);
|
|
39
|
+
this.showSavedViewsItem = computed(() => this.showSavedViews() && (!this.readOnly() || this.savedViews().length > 0), ...ngDevMode ? [{ debugName: "showSavedViewsItem" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.hasMoreItems = computed(() => !!this.exportDropdownButton() || !!this.importButton() || !this.readOnly() || this.showSavedViewsItem() || this.additionalDropdownButtons().length > 0, ...ngDevMode ? [{ debugName: "hasMoreItems" }] : /* istanbul ignore next */ []);
|
|
41
|
+
this.configurableColumns = computed(() => this.columns().filter((c) => c.key !== this.lockedColumn() && c.cellType !== "actions"), ...ngDevMode ? [{ debugName: "configurableColumns" }] : /* istanbul ignore next */ []);
|
|
42
|
+
this.hiddenCount = computed(() => this.configurableColumns().filter((c) => !this.visibleColumns().includes(c.key)).length, ...ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []);
|
|
43
|
+
this.activeViewName = computed(() => this.savedViews().find((v) => v.id === this.activeViewId())?.name ?? "", ...ngDevMode ? [{ debugName: "activeViewName" }] : /* istanbul ignore next */ []);
|
|
44
|
+
this.sortedViews = computed(() => {
|
|
45
|
+
return [...this.savedViews()].sort((a, b) => {
|
|
46
|
+
if (a.isSystem !== b.isSystem) return a.isSystem ? -1 : 1;
|
|
47
|
+
return a.name.localeCompare(b.name, void 0, { sensitivity: "base" });
|
|
48
|
+
});
|
|
49
|
+
}, ...ngDevMode ? [{ debugName: "sortedViews" }] : /* istanbul ignore next */ []);
|
|
50
|
+
}
|
|
51
|
+
isVisible(key) {
|
|
52
|
+
return this._pendingCols().includes(key);
|
|
53
|
+
}
|
|
54
|
+
toggleColumn(key) {
|
|
55
|
+
this._pendingCols.update((cols) => cols.includes(key) ? cols.filter((k) => k !== key) : [...cols, key]);
|
|
56
|
+
}
|
|
57
|
+
applyColumns() {
|
|
58
|
+
this.visibleColumnsChange.emit(this._pendingCols().filter((k) => !this.columns().some((c) => c.key === k && c.cellType === "actions")));
|
|
59
|
+
this.colModalOpen.set(false);
|
|
60
|
+
}
|
|
61
|
+
closeColModal() {
|
|
62
|
+
this.colModalOpen.set(false);
|
|
63
|
+
}
|
|
64
|
+
loadView(view) {
|
|
65
|
+
this.loadViewClick.emit(view);
|
|
66
|
+
this.viewModalOpen.set(false);
|
|
67
|
+
}
|
|
68
|
+
deleteView(id) {
|
|
69
|
+
if (this.readOnly()) return;
|
|
70
|
+
this.deleteViewClick.emit(id);
|
|
71
|
+
}
|
|
72
|
+
saveView() {
|
|
73
|
+
if (this.readOnly()) return;
|
|
74
|
+
this._saveViewName = "";
|
|
75
|
+
this.saveNameModalOpen.set(true);
|
|
76
|
+
}
|
|
77
|
+
confirmSaveName() {
|
|
78
|
+
if (this.readOnly() || !this._saveViewName.trim()) return;
|
|
79
|
+
this.saveViewClick.emit(this._saveViewName.trim());
|
|
80
|
+
this.saveNameModalOpen.set(false);
|
|
81
|
+
this._saveViewName = "";
|
|
82
|
+
}
|
|
83
|
+
closeSaveNameModal() {
|
|
84
|
+
this.saveNameModalOpen.set(false);
|
|
85
|
+
this._saveViewName = "";
|
|
86
|
+
}
|
|
87
|
+
openColModal(event) {
|
|
88
|
+
event.stopPropagation();
|
|
89
|
+
this.moreOpen.set(false);
|
|
90
|
+
this._pendingCols.set([...this.visibleColumns()]);
|
|
91
|
+
this.colModalOpen.set(true);
|
|
92
|
+
}
|
|
93
|
+
openViewModal(event) {
|
|
94
|
+
event.stopPropagation();
|
|
95
|
+
this.moreOpen.set(false);
|
|
96
|
+
this.viewModalOpen.set(true);
|
|
97
|
+
}
|
|
98
|
+
emitAction(type, event) {
|
|
99
|
+
event.stopPropagation();
|
|
100
|
+
this.moreOpen.set(false);
|
|
101
|
+
this.tableButtonClick.emit(type);
|
|
102
|
+
}
|
|
103
|
+
toggleMore(event) {
|
|
104
|
+
event.stopPropagation();
|
|
105
|
+
this.moreOpen.update((v) => !v);
|
|
106
|
+
}
|
|
107
|
+
onDocumentClick() {
|
|
108
|
+
this.moreOpen.set(false);
|
|
109
|
+
}
|
|
110
|
+
onEscape() {
|
|
111
|
+
this.moreOpen.set(false);
|
|
112
|
+
}
|
|
113
|
+
static {
|
|
114
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
115
|
+
minVersion: "12.0.0",
|
|
116
|
+
version: "22.2.2",
|
|
117
|
+
ngImport: i0,
|
|
118
|
+
type: TableToolbarComponent,
|
|
119
|
+
deps: [],
|
|
120
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
static {
|
|
124
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
125
|
+
minVersion: "17.0.0",
|
|
126
|
+
version: "22.2.2",
|
|
127
|
+
type: TableToolbarComponent,
|
|
128
|
+
isStandalone: true,
|
|
129
|
+
selector: "ui-table-toolbar",
|
|
130
|
+
inputs: {
|
|
131
|
+
columns: {
|
|
132
|
+
classPropertyName: "columns",
|
|
133
|
+
publicName: "columns",
|
|
134
|
+
isSignal: true,
|
|
135
|
+
isRequired: true,
|
|
136
|
+
transformFunction: null
|
|
137
|
+
},
|
|
138
|
+
visibleColumns: {
|
|
139
|
+
classPropertyName: "visibleColumns",
|
|
140
|
+
publicName: "visibleColumns",
|
|
141
|
+
isSignal: true,
|
|
142
|
+
isRequired: true,
|
|
143
|
+
transformFunction: null
|
|
144
|
+
},
|
|
145
|
+
lockedColumn: {
|
|
146
|
+
classPropertyName: "lockedColumn",
|
|
147
|
+
publicName: "lockedColumn",
|
|
148
|
+
isSignal: true,
|
|
149
|
+
isRequired: false,
|
|
150
|
+
transformFunction: null
|
|
151
|
+
},
|
|
152
|
+
savedViews: {
|
|
153
|
+
classPropertyName: "savedViews",
|
|
154
|
+
publicName: "savedViews",
|
|
155
|
+
isSignal: true,
|
|
156
|
+
isRequired: false,
|
|
157
|
+
transformFunction: null
|
|
158
|
+
},
|
|
159
|
+
activeViewId: {
|
|
160
|
+
classPropertyName: "activeViewId",
|
|
161
|
+
publicName: "activeViewId",
|
|
162
|
+
isSignal: true,
|
|
163
|
+
isRequired: false,
|
|
164
|
+
transformFunction: null
|
|
165
|
+
},
|
|
166
|
+
showSavedViews: {
|
|
167
|
+
classPropertyName: "showSavedViews",
|
|
168
|
+
publicName: "showSavedViews",
|
|
169
|
+
isSignal: true,
|
|
170
|
+
isRequired: false,
|
|
171
|
+
transformFunction: null
|
|
172
|
+
},
|
|
173
|
+
readOnly: {
|
|
174
|
+
classPropertyName: "readOnly",
|
|
175
|
+
publicName: "readOnly",
|
|
176
|
+
isSignal: true,
|
|
177
|
+
isRequired: false,
|
|
178
|
+
transformFunction: null
|
|
179
|
+
},
|
|
180
|
+
hideMoreActions: {
|
|
181
|
+
classPropertyName: "hideMoreActions",
|
|
182
|
+
publicName: "hideMoreActions",
|
|
183
|
+
isSignal: true,
|
|
184
|
+
isRequired: false,
|
|
185
|
+
transformFunction: null
|
|
186
|
+
},
|
|
187
|
+
tableButtons: {
|
|
188
|
+
classPropertyName: "tableButtons",
|
|
189
|
+
publicName: "tableButtons",
|
|
190
|
+
isSignal: true,
|
|
191
|
+
isRequired: false,
|
|
192
|
+
transformFunction: null
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
outputs: {
|
|
196
|
+
visibleColumnsChange: "visibleColumnsChange",
|
|
197
|
+
saveViewClick: "saveViewClick",
|
|
198
|
+
loadViewClick: "loadViewClick",
|
|
199
|
+
deleteViewClick: "deleteViewClick",
|
|
200
|
+
tableButtonClick: "tableButtonClick"
|
|
201
|
+
},
|
|
202
|
+
host: { listeners: {
|
|
203
|
+
"document:click": "onDocumentClick()",
|
|
204
|
+
"document:keydown.escape": "onEscape()"
|
|
205
|
+
} },
|
|
206
|
+
ngImport: i0,
|
|
207
|
+
template: `
|
|
208
|
+
<div class="toolbar">
|
|
209
|
+
|
|
210
|
+
<!-- ── Standalone buttons (primary = blue, secondary = outlined) -->
|
|
211
|
+
@for (btn of standaloneButtons(); track btn.type) {
|
|
212
|
+
<button
|
|
213
|
+
[class]="btn.variant === 'primary' ? 'toolbar-primary-btn' : 'toolbar-btn'"
|
|
214
|
+
[attr.aria-pressed]="btn.pressed ?? null"
|
|
215
|
+
(click)="emitAction(btn.type, $event)">
|
|
216
|
+
@if (btn.icon) {
|
|
217
|
+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="btn.icon"/></svg>
|
|
218
|
+
}
|
|
219
|
+
{{ btn.label }}
|
|
220
|
+
@if (btn.badge) { <span class="toolbar-badge">{{ btn.badge }}</span> }
|
|
221
|
+
</button>
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
<!-- ── More Actions dropdown (hidden entirely when it would be empty, e.g. read-only with no saved views) -->
|
|
225
|
+
@if (hasMoreItems() && !hideMoreActions()) {
|
|
226
|
+
<div class="toolbar-item">
|
|
227
|
+
<button
|
|
228
|
+
class="toolbar-btn"
|
|
229
|
+
[class.toolbar-btn-active]="moreOpen()"
|
|
230
|
+
(click)="toggleMore($event)"
|
|
231
|
+
[attr.aria-label]="labels.t('toolbar.moreActions')"
|
|
232
|
+
[attr.aria-expanded]="moreOpen()">
|
|
233
|
+
{{ labels.t('toolbar.moreActionsButton') }}
|
|
234
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
235
|
+
</button>
|
|
236
|
+
|
|
237
|
+
@if (moreOpen()) {
|
|
238
|
+
<div class="more-dropdown" (click)="$event.stopPropagation()">
|
|
239
|
+
|
|
240
|
+
<!-- 1. Export (when in More Actions) -->
|
|
241
|
+
@if (exportDropdownButton(); as exp) {
|
|
242
|
+
<button class="more-option" (click)="emitAction(exp.type, $event)">
|
|
243
|
+
@if (exp.icon) {
|
|
244
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="exp.icon"/></svg>
|
|
245
|
+
}
|
|
246
|
+
{{ exp.label }}
|
|
247
|
+
</button>
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
<!-- 2. Import -->
|
|
251
|
+
@if (importButton(); as imp) {
|
|
252
|
+
<button class="more-option" (click)="emitAction(imp.type, $event)">
|
|
253
|
+
@if (imp.icon) {
|
|
254
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="imp.icon"/></svg>
|
|
255
|
+
}
|
|
256
|
+
{{ imp.label }}
|
|
257
|
+
@if (imp.badge) { <span class="more-badge">{{ imp.badge }}</span> }
|
|
258
|
+
</button>
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
<!-- 3. Columns (not for read-only users) -->
|
|
262
|
+
@if (!readOnly()) {
|
|
263
|
+
<button class="more-option" (click)="openColModal($event)">
|
|
264
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
|
|
265
|
+
{{ labels.t('toolbar.columns') }}
|
|
266
|
+
</button>
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
<!-- 3. Save Current View (full permission only) 4. Saved Views (read-only: only when they have some) -->
|
|
270
|
+
@if (showSavedViews() && !readOnly()) {
|
|
271
|
+
<button class="more-option" (click)="saveView(); moreOpen.set(false)">
|
|
272
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/></svg>
|
|
273
|
+
{{ labels.t('toolbar.saveCurrentView') }}
|
|
274
|
+
</button>
|
|
275
|
+
}
|
|
276
|
+
@if (showSavedViewsItem()) {
|
|
277
|
+
<button class="more-option" (click)="openViewModal($event)">
|
|
278
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/></svg>
|
|
279
|
+
{{ labels.t('toolbar.savedViews') }}
|
|
280
|
+
@if (activeViewId()) { <span class="more-view-name">{{ activeViewName() }}</span> }
|
|
281
|
+
</button>
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
<!-- 5. Additional page-specific options (alphabetical) -->
|
|
285
|
+
@for (btn of additionalDropdownButtons(); track btn.type) {
|
|
286
|
+
<button class="more-option" (click)="emitAction(btn.type, $event)">
|
|
287
|
+
@if (btn.icon) {
|
|
288
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="btn.icon"/></svg>
|
|
289
|
+
}
|
|
290
|
+
{{ btn.label }}
|
|
291
|
+
@if (btn.badge) { <span class="more-badge">{{ btn.badge }}</span> }
|
|
292
|
+
</button>
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
</div>
|
|
296
|
+
}
|
|
297
|
+
</div>
|
|
298
|
+
}
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<!-- ── Columns Modal -->
|
|
302
|
+
<ui-modal [open]="colModalOpen()" [title]="labels.t('toolbar.columns')" [description]="labels.t('toolbar.columnsDescription')" maxWidth="520px" (close)="closeColModal()">
|
|
303
|
+
<div class="col-list">
|
|
304
|
+
@for (col of configurableColumns(); track col.key) {
|
|
305
|
+
<ui-checkbox
|
|
306
|
+
class="col-option"
|
|
307
|
+
[checked]="isVisible(col.key)"
|
|
308
|
+
[label]="col.label"
|
|
309
|
+
(checkedChange)="toggleColumn(col.key)" />
|
|
310
|
+
}
|
|
311
|
+
</div>
|
|
312
|
+
<ui-button modal-footer-left variant="secondary" size="sm" (click)="closeColModal()">{{ labels.t('toolbar.cancel') }}</ui-button>
|
|
313
|
+
<ui-button modal-footer-right variant="primary" size="sm" (click)="applyColumns()"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg> {{ labels.t('toolbar.apply') }}</ui-button>
|
|
314
|
+
</ui-modal>
|
|
315
|
+
|
|
316
|
+
<!-- ── Saved Views Modal -->
|
|
317
|
+
@if (showSavedViews()) {
|
|
318
|
+
<ui-modal [open]="viewModalOpen()" [title]="labels.t('toolbar.savedViews')" maxWidth="520px" (close)="viewModalOpen.set(false)">
|
|
319
|
+
@if (savedViews().length === 0) {
|
|
320
|
+
<p class="view-empty">{{ labels.t('toolbar.noSavedViews') }}</p>
|
|
321
|
+
} @else {
|
|
322
|
+
<div class="view-list">
|
|
323
|
+
@for (view of sortedViews(); track view.id) {
|
|
324
|
+
<div class="view-option" [class.view-active]="view.id === activeViewId()">
|
|
325
|
+
<button class="view-select-btn" (click)="loadView(view)">{{ view.name }}</button>
|
|
326
|
+
@if (!view.isSystem && !readOnly()) {
|
|
327
|
+
<button class="view-delete-btn" [attr.aria-label]="labels.t('toolbar.deleteView', { name: view.name })" (click)="deleteView(view.id)">
|
|
328
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
329
|
+
</button>
|
|
330
|
+
}
|
|
331
|
+
</div>
|
|
332
|
+
}
|
|
333
|
+
</div>
|
|
334
|
+
}
|
|
335
|
+
<ui-button modal-footer-right variant="secondary" size="sm" (click)="viewModalOpen.set(false)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg> {{ labels.t('toolbar.done') }}</ui-button>
|
|
336
|
+
</ui-modal>
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
<!-- ── Save View Name Modal -->
|
|
340
|
+
<ui-modal [open]="saveNameModalOpen()" [title]="labels.t('toolbar.saveView')" maxWidth="360px" (close)="closeSaveNameModal()">
|
|
341
|
+
<ui-text-input [label]="labels.t('toolbar.viewName')" [(ngModel)]="_saveViewName" [placeholder]="labels.t('toolbar.viewNamePlaceholder')" [maxlength]="100" autocomplete="off" />
|
|
342
|
+
<ui-button modal-footer-left variant="secondary" size="sm" (click)="closeSaveNameModal()">{{ labels.t('toolbar.cancel') }}</ui-button>
|
|
343
|
+
<ui-button modal-footer-right variant="primary" size="sm" [disabled]="!_saveViewName.trim()" (click)="confirmSaveName()"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg> {{ labels.t('toolbar.save') }}</ui-button>
|
|
344
|
+
</ui-modal>
|
|
345
|
+
`,
|
|
346
|
+
isInline: true,
|
|
347
|
+
styles: [":host{display:inline-flex;max-width:100%}.toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.toolbar-item{position:relative}.toolbar-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#334155;cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .1s,border-color .1s}.toolbar-btn:hover{background:#f8fafc}.toolbar-btn.toolbar-btn-active{border-color:#1e293b;background:#f8fafc}.toolbar-btn:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.toolbar-badge{display:inline-flex;align-items:center;justify-content:center;background:#1e293b;color:#fff;border-radius:999px;font-size:.625rem;font-weight:700;min-width:16px;height:16px;padding:0 4px}.toolbar-primary-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:6px;border:none;background:#2563eb;color:#fff;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .1s}.toolbar-primary-btn:hover{background:#1d4ed8}.toolbar-primary-btn:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.more-dropdown{position:absolute;top:calc(100% + 6px);right:0;z-index:200;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;min-width:200px;overflow:hidden}.more-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;background:none;border:none;border-bottom:1px solid #f1f5f9;font-size:.875rem;color:#1e293b;font-family:inherit;text-align:left;cursor:pointer;transition:background .1s}.more-option:last-child{border-bottom:none}.more-option:hover{background:#f8fafc}.more-option:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.more-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;background:#1e293b;color:#fff;border-radius:999px;font-size:.625rem;font-weight:700;min-width:16px;height:16px;padding:0 4px}.more-divider{height:1px;background:#f1f5f9;margin:2px 0}.more-view-name{font-size:.75rem;color:#64748b;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.col-list{display:grid;grid-template-columns:1fr 1fr;max-height:340px;overflow-y:auto}@media(max-width:480px){.col-list{grid-template-columns:1fr}}@media(max-width:1024px){.toolbar-btn{padding:8px 12px}.toolbar-primary-btn{padding:8px 14px}}@media(pointer:coarse){.toolbar-btn,.toolbar-primary-btn{min-height:44px}}@media(max-width:640px){:host{display:flex;width:100%;min-width:0}.toolbar{width:100%;min-width:0;justify-content:flex-end;flex-wrap:wrap}.toolbar-btn{padding:10px 12px;font-size:.8125rem;min-height:44px}.toolbar-primary-btn{padding:10px 14px;font-size:.8125rem;min-height:44px}.toolbar-btn,.toolbar-primary-btn{max-width:100%;white-space:normal;text-align:center;justify-content:center;line-height:1.25;overflow-wrap:anywhere}.toolbar-item{min-width:0;max-width:100%;display:flex}.more-dropdown{max-height:calc(100vh - 140px);overflow-y:auto}.more-option{padding:12px 16px;font-size:.9375rem}}.col-option{display:flex;padding:9px 4px;border-bottom:1px solid #f1f5f9;transition:background .1s;border-radius:6px}.col-option:hover{background:#f8fafc}.col-option:nth-last-child(-n+2){border-bottom:none}.view-list{max-height:360px;overflow-y:auto;margin:0 -24px}.view-empty{padding:16px 24px;font-size:.9rem;color:#94a3b8;margin:0}.view-option{display:flex;align-items:center;padding-right:16px;border-bottom:1px solid #f1f5f9;transition:background .1s}.view-option:last-child{border-bottom:none}.view-option:hover{background:#f8fafc}.view-option.view-active{background:#eff6ff}.view-select-btn{flex:1;padding:12px 8px 12px 24px;background:none;border:none;font-size:.9rem;color:#334155;cursor:pointer;font-family:inherit;text-align:left}.view-delete-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;background:none;border:none;cursor:pointer;color:#94a3b8}.view-delete-btn:hover{color:#dc2626;background:#fef2f2}\n"],
|
|
348
|
+
dependencies: [
|
|
349
|
+
{
|
|
350
|
+
kind: "ngmodule",
|
|
351
|
+
type: FormsModule
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
kind: "directive",
|
|
355
|
+
type: i1.NgControlStatus,
|
|
356
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
kind: "directive",
|
|
360
|
+
type: i1.MaxLengthValidator,
|
|
361
|
+
selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",
|
|
362
|
+
inputs: ["maxlength"]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
kind: "directive",
|
|
366
|
+
type: i1.NgModel,
|
|
367
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
368
|
+
inputs: [
|
|
369
|
+
"name",
|
|
370
|
+
"disabled",
|
|
371
|
+
"ngModel",
|
|
372
|
+
"ngModelOptions"
|
|
373
|
+
],
|
|
374
|
+
outputs: ["ngModelChange"],
|
|
375
|
+
exportAs: ["ngModel"]
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
kind: "component",
|
|
379
|
+
type: ModalComponent,
|
|
380
|
+
selector: "ui-modal",
|
|
381
|
+
inputs: [
|
|
382
|
+
"open",
|
|
383
|
+
"title",
|
|
384
|
+
"description",
|
|
385
|
+
"describedBy",
|
|
386
|
+
"maxWidth",
|
|
387
|
+
"bodyOverflow",
|
|
388
|
+
"dialogTestId",
|
|
389
|
+
"hideClose",
|
|
390
|
+
"closable",
|
|
391
|
+
"layout",
|
|
392
|
+
"closeOnBackdrop",
|
|
393
|
+
"closeOnEscape",
|
|
394
|
+
"busy",
|
|
395
|
+
"returnFocusTo"
|
|
396
|
+
],
|
|
397
|
+
outputs: ["close"]
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
kind: "component",
|
|
401
|
+
type: CheckboxComponent,
|
|
402
|
+
selector: "ui-checkbox, ui-checkbox-group",
|
|
403
|
+
inputs: [
|
|
404
|
+
"label",
|
|
405
|
+
"ariaLabel",
|
|
406
|
+
"testId",
|
|
407
|
+
"labelTestId",
|
|
408
|
+
"headingLevel",
|
|
409
|
+
"indeterminate",
|
|
410
|
+
"checked",
|
|
411
|
+
"options",
|
|
412
|
+
"legend",
|
|
413
|
+
"orientation",
|
|
414
|
+
"values",
|
|
415
|
+
"labelLinks",
|
|
416
|
+
"description",
|
|
417
|
+
"indent",
|
|
418
|
+
"required",
|
|
419
|
+
"requiredMessage",
|
|
420
|
+
"hint",
|
|
421
|
+
"error",
|
|
422
|
+
"showErrors",
|
|
423
|
+
"disabled"
|
|
424
|
+
],
|
|
425
|
+
outputs: [
|
|
426
|
+
"checkedChange",
|
|
427
|
+
"valuesChange",
|
|
428
|
+
"invalidChange"
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
kind: "component",
|
|
433
|
+
type: ButtonComponent,
|
|
434
|
+
selector: "ui-button",
|
|
435
|
+
inputs: [
|
|
436
|
+
"variant",
|
|
437
|
+
"routerLink",
|
|
438
|
+
"queryParams",
|
|
439
|
+
"fragment",
|
|
440
|
+
"state",
|
|
441
|
+
"href",
|
|
442
|
+
"target",
|
|
443
|
+
"rel",
|
|
444
|
+
"shortLabel",
|
|
445
|
+
"shortBelow",
|
|
446
|
+
"color",
|
|
447
|
+
"active",
|
|
448
|
+
"size",
|
|
449
|
+
"type",
|
|
450
|
+
"disabled",
|
|
451
|
+
"loading",
|
|
452
|
+
"fullWidth",
|
|
453
|
+
"ariaLabel",
|
|
454
|
+
"ariaExpanded",
|
|
455
|
+
"ariaPressed",
|
|
456
|
+
"ariaDescribedBy",
|
|
457
|
+
"modal-footer-left",
|
|
458
|
+
"modal-footer-right"
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
kind: "component",
|
|
463
|
+
type: TextInputComponent,
|
|
464
|
+
selector: "ui-text-input",
|
|
465
|
+
inputs: [
|
|
466
|
+
"label",
|
|
467
|
+
"ariaLabel",
|
|
468
|
+
"inputTestId",
|
|
469
|
+
"inputName",
|
|
470
|
+
"placeholder",
|
|
471
|
+
"prefix",
|
|
472
|
+
"leadingIcon",
|
|
473
|
+
"revealable",
|
|
474
|
+
"passwordRequirements",
|
|
475
|
+
"passwordRules",
|
|
476
|
+
"type",
|
|
477
|
+
"maxlength",
|
|
478
|
+
"required",
|
|
479
|
+
"autocomplete",
|
|
480
|
+
"inputmode",
|
|
481
|
+
"readonly",
|
|
482
|
+
"hint",
|
|
483
|
+
"ariaDescribedBy",
|
|
484
|
+
"ariaInvalid",
|
|
485
|
+
"error",
|
|
486
|
+
"phoneFormat",
|
|
487
|
+
"min",
|
|
488
|
+
"max",
|
|
489
|
+
"maxDecimals",
|
|
490
|
+
"step",
|
|
491
|
+
"valueType",
|
|
492
|
+
"formatter",
|
|
493
|
+
"integer",
|
|
494
|
+
"showErrors",
|
|
495
|
+
"disabled"
|
|
496
|
+
],
|
|
497
|
+
outputs: [
|
|
498
|
+
"valueChange",
|
|
499
|
+
"focused",
|
|
500
|
+
"blurred",
|
|
501
|
+
"invalidChange"
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
510
|
+
minVersion: "12.0.0",
|
|
511
|
+
version: "22.2.2",
|
|
512
|
+
ngImport: i0,
|
|
513
|
+
type: TableToolbarComponent,
|
|
514
|
+
decorators: [{
|
|
515
|
+
type: Component,
|
|
516
|
+
args: [{
|
|
517
|
+
selector: "ui-table-toolbar",
|
|
518
|
+
standalone: true,
|
|
519
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
520
|
+
imports: [
|
|
521
|
+
FormsModule,
|
|
522
|
+
ModalComponent,
|
|
523
|
+
CheckboxComponent,
|
|
524
|
+
ButtonComponent,
|
|
525
|
+
TextInputComponent
|
|
526
|
+
],
|
|
527
|
+
host: {
|
|
528
|
+
"(document:click)": "onDocumentClick()",
|
|
529
|
+
"(document:keydown.escape)": "onEscape()"
|
|
530
|
+
},
|
|
531
|
+
template: `
|
|
532
|
+
<div class="toolbar">
|
|
533
|
+
|
|
534
|
+
<!-- ── Standalone buttons (primary = blue, secondary = outlined) -->
|
|
535
|
+
@for (btn of standaloneButtons(); track btn.type) {
|
|
536
|
+
<button
|
|
537
|
+
[class]="btn.variant === 'primary' ? 'toolbar-primary-btn' : 'toolbar-btn'"
|
|
538
|
+
[attr.aria-pressed]="btn.pressed ?? null"
|
|
539
|
+
(click)="emitAction(btn.type, $event)">
|
|
540
|
+
@if (btn.icon) {
|
|
541
|
+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="btn.icon"/></svg>
|
|
542
|
+
}
|
|
543
|
+
{{ btn.label }}
|
|
544
|
+
@if (btn.badge) { <span class="toolbar-badge">{{ btn.badge }}</span> }
|
|
545
|
+
</button>
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
<!-- ── More Actions dropdown (hidden entirely when it would be empty, e.g. read-only with no saved views) -->
|
|
549
|
+
@if (hasMoreItems() && !hideMoreActions()) {
|
|
550
|
+
<div class="toolbar-item">
|
|
551
|
+
<button
|
|
552
|
+
class="toolbar-btn"
|
|
553
|
+
[class.toolbar-btn-active]="moreOpen()"
|
|
554
|
+
(click)="toggleMore($event)"
|
|
555
|
+
[attr.aria-label]="labels.t('toolbar.moreActions')"
|
|
556
|
+
[attr.aria-expanded]="moreOpen()">
|
|
557
|
+
{{ labels.t('toolbar.moreActionsButton') }}
|
|
558
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
559
|
+
</button>
|
|
560
|
+
|
|
561
|
+
@if (moreOpen()) {
|
|
562
|
+
<div class="more-dropdown" (click)="$event.stopPropagation()">
|
|
563
|
+
|
|
564
|
+
<!-- 1. Export (when in More Actions) -->
|
|
565
|
+
@if (exportDropdownButton(); as exp) {
|
|
566
|
+
<button class="more-option" (click)="emitAction(exp.type, $event)">
|
|
567
|
+
@if (exp.icon) {
|
|
568
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="exp.icon"/></svg>
|
|
569
|
+
}
|
|
570
|
+
{{ exp.label }}
|
|
571
|
+
</button>
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
<!-- 2. Import -->
|
|
575
|
+
@if (importButton(); as imp) {
|
|
576
|
+
<button class="more-option" (click)="emitAction(imp.type, $event)">
|
|
577
|
+
@if (imp.icon) {
|
|
578
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="imp.icon"/></svg>
|
|
579
|
+
}
|
|
580
|
+
{{ imp.label }}
|
|
581
|
+
@if (imp.badge) { <span class="more-badge">{{ imp.badge }}</span> }
|
|
582
|
+
</button>
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
<!-- 3. Columns (not for read-only users) -->
|
|
586
|
+
@if (!readOnly()) {
|
|
587
|
+
<button class="more-option" (click)="openColModal($event)">
|
|
588
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
|
|
589
|
+
{{ labels.t('toolbar.columns') }}
|
|
590
|
+
</button>
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
<!-- 3. Save Current View (full permission only) 4. Saved Views (read-only: only when they have some) -->
|
|
594
|
+
@if (showSavedViews() && !readOnly()) {
|
|
595
|
+
<button class="more-option" (click)="saveView(); moreOpen.set(false)">
|
|
596
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/></svg>
|
|
597
|
+
{{ labels.t('toolbar.saveCurrentView') }}
|
|
598
|
+
</button>
|
|
599
|
+
}
|
|
600
|
+
@if (showSavedViewsItem()) {
|
|
601
|
+
<button class="more-option" (click)="openViewModal($event)">
|
|
602
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/></svg>
|
|
603
|
+
{{ labels.t('toolbar.savedViews') }}
|
|
604
|
+
@if (activeViewId()) { <span class="more-view-name">{{ activeViewName() }}</span> }
|
|
605
|
+
</button>
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
<!-- 5. Additional page-specific options (alphabetical) -->
|
|
609
|
+
@for (btn of additionalDropdownButtons(); track btn.type) {
|
|
610
|
+
<button class="more-option" (click)="emitAction(btn.type, $event)">
|
|
611
|
+
@if (btn.icon) {
|
|
612
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path [attr.d]="btn.icon"/></svg>
|
|
613
|
+
}
|
|
614
|
+
{{ btn.label }}
|
|
615
|
+
@if (btn.badge) { <span class="more-badge">{{ btn.badge }}</span> }
|
|
616
|
+
</button>
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
</div>
|
|
620
|
+
}
|
|
621
|
+
</div>
|
|
622
|
+
}
|
|
623
|
+
</div>
|
|
624
|
+
|
|
625
|
+
<!-- ── Columns Modal -->
|
|
626
|
+
<ui-modal [open]="colModalOpen()" [title]="labels.t('toolbar.columns')" [description]="labels.t('toolbar.columnsDescription')" maxWidth="520px" (close)="closeColModal()">
|
|
627
|
+
<div class="col-list">
|
|
628
|
+
@for (col of configurableColumns(); track col.key) {
|
|
629
|
+
<ui-checkbox
|
|
630
|
+
class="col-option"
|
|
631
|
+
[checked]="isVisible(col.key)"
|
|
632
|
+
[label]="col.label"
|
|
633
|
+
(checkedChange)="toggleColumn(col.key)" />
|
|
634
|
+
}
|
|
635
|
+
</div>
|
|
636
|
+
<ui-button modal-footer-left variant="secondary" size="sm" (click)="closeColModal()">{{ labels.t('toolbar.cancel') }}</ui-button>
|
|
637
|
+
<ui-button modal-footer-right variant="primary" size="sm" (click)="applyColumns()"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg> {{ labels.t('toolbar.apply') }}</ui-button>
|
|
638
|
+
</ui-modal>
|
|
639
|
+
|
|
640
|
+
<!-- ── Saved Views Modal -->
|
|
641
|
+
@if (showSavedViews()) {
|
|
642
|
+
<ui-modal [open]="viewModalOpen()" [title]="labels.t('toolbar.savedViews')" maxWidth="520px" (close)="viewModalOpen.set(false)">
|
|
643
|
+
@if (savedViews().length === 0) {
|
|
644
|
+
<p class="view-empty">{{ labels.t('toolbar.noSavedViews') }}</p>
|
|
645
|
+
} @else {
|
|
646
|
+
<div class="view-list">
|
|
647
|
+
@for (view of sortedViews(); track view.id) {
|
|
648
|
+
<div class="view-option" [class.view-active]="view.id === activeViewId()">
|
|
649
|
+
<button class="view-select-btn" (click)="loadView(view)">{{ view.name }}</button>
|
|
650
|
+
@if (!view.isSystem && !readOnly()) {
|
|
651
|
+
<button class="view-delete-btn" [attr.aria-label]="labels.t('toolbar.deleteView', { name: view.name })" (click)="deleteView(view.id)">
|
|
652
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
653
|
+
</button>
|
|
654
|
+
}
|
|
655
|
+
</div>
|
|
656
|
+
}
|
|
657
|
+
</div>
|
|
658
|
+
}
|
|
659
|
+
<ui-button modal-footer-right variant="secondary" size="sm" (click)="viewModalOpen.set(false)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg> {{ labels.t('toolbar.done') }}</ui-button>
|
|
660
|
+
</ui-modal>
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
<!-- ── Save View Name Modal -->
|
|
664
|
+
<ui-modal [open]="saveNameModalOpen()" [title]="labels.t('toolbar.saveView')" maxWidth="360px" (close)="closeSaveNameModal()">
|
|
665
|
+
<ui-text-input [label]="labels.t('toolbar.viewName')" [(ngModel)]="_saveViewName" [placeholder]="labels.t('toolbar.viewNamePlaceholder')" [maxlength]="100" autocomplete="off" />
|
|
666
|
+
<ui-button modal-footer-left variant="secondary" size="sm" (click)="closeSaveNameModal()">{{ labels.t('toolbar.cancel') }}</ui-button>
|
|
667
|
+
<ui-button modal-footer-right variant="primary" size="sm" [disabled]="!_saveViewName.trim()" (click)="confirmSaveName()"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg> {{ labels.t('toolbar.save') }}</ui-button>
|
|
668
|
+
</ui-modal>
|
|
669
|
+
`,
|
|
670
|
+
styles: [":host{display:inline-flex;max-width:100%}.toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.toolbar-item{position:relative}.toolbar-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#334155;cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .1s,border-color .1s}.toolbar-btn:hover{background:#f8fafc}.toolbar-btn.toolbar-btn-active{border-color:#1e293b;background:#f8fafc}.toolbar-btn:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.toolbar-badge{display:inline-flex;align-items:center;justify-content:center;background:#1e293b;color:#fff;border-radius:999px;font-size:.625rem;font-weight:700;min-width:16px;height:16px;padding:0 4px}.toolbar-primary-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:6px;border:none;background:#2563eb;color:#fff;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .1s}.toolbar-primary-btn:hover{background:#1d4ed8}.toolbar-primary-btn:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.more-dropdown{position:absolute;top:calc(100% + 6px);right:0;z-index:200;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;min-width:200px;overflow:hidden}.more-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;background:none;border:none;border-bottom:1px solid #f1f5f9;font-size:.875rem;color:#1e293b;font-family:inherit;text-align:left;cursor:pointer;transition:background .1s}.more-option:last-child{border-bottom:none}.more-option:hover{background:#f8fafc}.more-option:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.more-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;background:#1e293b;color:#fff;border-radius:999px;font-size:.625rem;font-weight:700;min-width:16px;height:16px;padding:0 4px}.more-divider{height:1px;background:#f1f5f9;margin:2px 0}.more-view-name{font-size:.75rem;color:#64748b;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.col-list{display:grid;grid-template-columns:1fr 1fr;max-height:340px;overflow-y:auto}@media(max-width:480px){.col-list{grid-template-columns:1fr}}@media(max-width:1024px){.toolbar-btn{padding:8px 12px}.toolbar-primary-btn{padding:8px 14px}}@media(pointer:coarse){.toolbar-btn,.toolbar-primary-btn{min-height:44px}}@media(max-width:640px){:host{display:flex;width:100%;min-width:0}.toolbar{width:100%;min-width:0;justify-content:flex-end;flex-wrap:wrap}.toolbar-btn{padding:10px 12px;font-size:.8125rem;min-height:44px}.toolbar-primary-btn{padding:10px 14px;font-size:.8125rem;min-height:44px}.toolbar-btn,.toolbar-primary-btn{max-width:100%;white-space:normal;text-align:center;justify-content:center;line-height:1.25;overflow-wrap:anywhere}.toolbar-item{min-width:0;max-width:100%;display:flex}.more-dropdown{max-height:calc(100vh - 140px);overflow-y:auto}.more-option{padding:12px 16px;font-size:.9375rem}}.col-option{display:flex;padding:9px 4px;border-bottom:1px solid #f1f5f9;transition:background .1s;border-radius:6px}.col-option:hover{background:#f8fafc}.col-option:nth-last-child(-n+2){border-bottom:none}.view-list{max-height:360px;overflow-y:auto;margin:0 -24px}.view-empty{padding:16px 24px;font-size:.9rem;color:#94a3b8;margin:0}.view-option{display:flex;align-items:center;padding-right:16px;border-bottom:1px solid #f1f5f9;transition:background .1s}.view-option:last-child{border-bottom:none}.view-option:hover{background:#f8fafc}.view-option.view-active{background:#eff6ff}.view-select-btn{flex:1;padding:12px 8px 12px 24px;background:none;border:none;font-size:.9rem;color:#334155;cursor:pointer;font-family:inherit;text-align:left}.view-delete-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;background:none;border:none;cursor:pointer;color:#94a3b8}.view-delete-btn:hover{color:#dc2626;background:#fef2f2}\n"]
|
|
671
|
+
}]
|
|
672
|
+
}],
|
|
673
|
+
propDecorators: {
|
|
674
|
+
columns: [{
|
|
675
|
+
type: i0.Input,
|
|
676
|
+
args: [{
|
|
677
|
+
isSignal: true,
|
|
678
|
+
alias: "columns",
|
|
679
|
+
required: true
|
|
680
|
+
}]
|
|
681
|
+
}],
|
|
682
|
+
visibleColumns: [{
|
|
683
|
+
type: i0.Input,
|
|
684
|
+
args: [{
|
|
685
|
+
isSignal: true,
|
|
686
|
+
alias: "visibleColumns",
|
|
687
|
+
required: true
|
|
688
|
+
}]
|
|
689
|
+
}],
|
|
690
|
+
lockedColumn: [{
|
|
691
|
+
type: i0.Input,
|
|
692
|
+
args: [{
|
|
693
|
+
isSignal: true,
|
|
694
|
+
alias: "lockedColumn",
|
|
695
|
+
required: false
|
|
696
|
+
}]
|
|
697
|
+
}],
|
|
698
|
+
savedViews: [{
|
|
699
|
+
type: i0.Input,
|
|
700
|
+
args: [{
|
|
701
|
+
isSignal: true,
|
|
702
|
+
alias: "savedViews",
|
|
703
|
+
required: false
|
|
704
|
+
}]
|
|
705
|
+
}],
|
|
706
|
+
activeViewId: [{
|
|
707
|
+
type: i0.Input,
|
|
708
|
+
args: [{
|
|
709
|
+
isSignal: true,
|
|
710
|
+
alias: "activeViewId",
|
|
711
|
+
required: false
|
|
712
|
+
}]
|
|
713
|
+
}],
|
|
714
|
+
showSavedViews: [{
|
|
715
|
+
type: i0.Input,
|
|
716
|
+
args: [{
|
|
717
|
+
isSignal: true,
|
|
718
|
+
alias: "showSavedViews",
|
|
719
|
+
required: false
|
|
720
|
+
}]
|
|
721
|
+
}],
|
|
722
|
+
readOnly: [{
|
|
723
|
+
type: i0.Input,
|
|
724
|
+
args: [{
|
|
725
|
+
isSignal: true,
|
|
726
|
+
alias: "readOnly",
|
|
727
|
+
required: false
|
|
728
|
+
}]
|
|
729
|
+
}],
|
|
730
|
+
hideMoreActions: [{
|
|
731
|
+
type: i0.Input,
|
|
732
|
+
args: [{
|
|
733
|
+
isSignal: true,
|
|
734
|
+
alias: "hideMoreActions",
|
|
735
|
+
required: false
|
|
736
|
+
}]
|
|
737
|
+
}],
|
|
738
|
+
tableButtons: [{
|
|
739
|
+
type: i0.Input,
|
|
740
|
+
args: [{
|
|
741
|
+
isSignal: true,
|
|
742
|
+
alias: "tableButtons",
|
|
743
|
+
required: false
|
|
744
|
+
}]
|
|
745
|
+
}],
|
|
746
|
+
visibleColumnsChange: [{
|
|
747
|
+
type: i0.Output,
|
|
748
|
+
args: ["visibleColumnsChange"]
|
|
749
|
+
}],
|
|
750
|
+
saveViewClick: [{
|
|
751
|
+
type: i0.Output,
|
|
752
|
+
args: ["saveViewClick"]
|
|
753
|
+
}],
|
|
754
|
+
loadViewClick: [{
|
|
755
|
+
type: i0.Output,
|
|
756
|
+
args: ["loadViewClick"]
|
|
757
|
+
}],
|
|
758
|
+
deleteViewClick: [{
|
|
759
|
+
type: i0.Output,
|
|
760
|
+
args: ["deleteViewClick"]
|
|
761
|
+
}],
|
|
762
|
+
tableButtonClick: [{
|
|
763
|
+
type: i0.Output,
|
|
764
|
+
args: ["tableButtonClick"]
|
|
765
|
+
}]
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
export { TableToolbarComponent };
|
|
769
|
+
|
|
770
|
+
//# sourceMappingURL=forgeroute-ui-table-toolbar.mjs.map
|