@forgeroute/ui 0.5.16 → 0.5.18
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-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs} +186 -2
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +186 -2
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- 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 +6258 -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 +6254 -1188
- 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 +422 -2
- 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-core.d.ts +188 -4
- 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 +11 -6
- 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 +1826 -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 +6 -3
- 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 +5 -3
- 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 +1458 -3
- 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,768 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, computed, effect, inject, input, output, signal, untracked } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import { FormsModule } from "@angular/forms";
|
|
5
|
+
import { HttpClient } from "@angular/common/http";
|
|
6
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
7
|
+
import { ButtonComponent, FORGEROUTE_CONFIG, ModalComponent, ToastService, UI_NOTES_QUEUE, UiLabelsService, getErrorMessage } from "@forgeroute/ui/core";
|
|
8
|
+
import { EmptyStateComponent } from "@forgeroute/ui/empty-state";
|
|
9
|
+
import { PaginationComponent } from "@forgeroute/ui/pagination";
|
|
10
|
+
import { AvatarComponent } from "@forgeroute/ui/avatar";
|
|
11
|
+
import { TextareaInputComponent } from "@forgeroute/ui/textarea-input";
|
|
12
|
+
import { IconComponent } from "@forgeroute/ui/icon";
|
|
13
|
+
import { LiveRegionComponent } from "@forgeroute/ui/live-region";
|
|
14
|
+
const NOTES_MAX_LENGTH = 1e4;
|
|
15
|
+
const STATE_RANK = {
|
|
16
|
+
waiting: 1,
|
|
17
|
+
sending: 2,
|
|
18
|
+
failed: 3,
|
|
19
|
+
conflict: 4
|
|
20
|
+
};
|
|
21
|
+
const NOTES_PAGE_SIZE = 5;
|
|
22
|
+
var NotesComponent = class NotesComponent {
|
|
23
|
+
initials(name) {
|
|
24
|
+
const parts = (name || this.labels.t("notes.you")).trim().split(/\s+/).filter(Boolean);
|
|
25
|
+
return ((parts[0]?.[0] ?? "") + (parts.length > 1 ? parts[parts.length - 1][0] : "")).toUpperCase();
|
|
26
|
+
}
|
|
27
|
+
tooLong(text) {
|
|
28
|
+
return text.trim().length > this.maxLength();
|
|
29
|
+
}
|
|
30
|
+
validBody(text) {
|
|
31
|
+
const n = text.trim().length;
|
|
32
|
+
return n > 0 && n <= this.maxLength();
|
|
33
|
+
}
|
|
34
|
+
get listUrl() {
|
|
35
|
+
return this.basePath() ? `${this.apiBase}${this.basePath()}` : `${this.apiBase}/notes/${this.resourceType()}/${this.resourceId()}`;
|
|
36
|
+
}
|
|
37
|
+
noteUrl(id) {
|
|
38
|
+
const e = encodeURIComponent(id);
|
|
39
|
+
return this.basePath() ? `${this.apiBase}${this.basePath()}/${e}` : `${this.apiBase}/notes/${e}`;
|
|
40
|
+
}
|
|
41
|
+
get itemPrefix() {
|
|
42
|
+
return this.basePath() ? `${this.apiBase}${this.basePath()}/` : `${this.apiBase}/notes/`;
|
|
43
|
+
}
|
|
44
|
+
get ready() {
|
|
45
|
+
return !!this.basePath() || !!this.resourceType() && !!this.resourceId();
|
|
46
|
+
}
|
|
47
|
+
payload(text) {
|
|
48
|
+
return this.basePath() ? { content: text.trim() } : { body: text.trim() };
|
|
49
|
+
}
|
|
50
|
+
normalize(n) {
|
|
51
|
+
return {
|
|
52
|
+
...n,
|
|
53
|
+
body: n.body ?? n.content ?? "",
|
|
54
|
+
updatedAt: n.updatedAt ?? n.createdAt
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
constructor() {
|
|
58
|
+
this.labels = inject(UiLabelsService);
|
|
59
|
+
this.resourceType = input("", ...ngDevMode ? [{ debugName: "resourceType" }] : /* istanbul ignore next */ []);
|
|
60
|
+
this.resourceId = input("", ...ngDevMode ? [{ debugName: "resourceId" }] : /* istanbul ignore next */ []);
|
|
61
|
+
this.basePath = input("", ...ngDevMode ? [{ debugName: "basePath" }] : /* istanbul ignore next */ []);
|
|
62
|
+
this.readOnly = input(false, ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
|
|
63
|
+
this.editable = input(true, ...ngDevMode ? [{ debugName: "editable" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.maxLength = input(NOTES_MAX_LENGTH, ...ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []);
|
|
65
|
+
this.totalChange = output();
|
|
66
|
+
this.http = inject(HttpClient);
|
|
67
|
+
this.toast = inject(ToastService);
|
|
68
|
+
this.destroyRef = inject(DestroyRef);
|
|
69
|
+
this.apiBase = inject(FORGEROUTE_CONFIG, { optional: true })?.baseUrl ?? "/api";
|
|
70
|
+
this.pageSize = NOTES_PAGE_SIZE;
|
|
71
|
+
this.notes = signal([], ...ngDevMode ? [{ debugName: "notes" }] : /* istanbul ignore next */ []);
|
|
72
|
+
this.loading = signal(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
|
|
73
|
+
this.saving = signal(false, ...ngDevMode ? [{ debugName: "saving" }] : /* istanbul ignore next */ []);
|
|
74
|
+
this.page = signal(0, ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
|
|
75
|
+
this.totalElements = signal(0, ...ngDevMode ? [{ debugName: "totalElements" }] : /* istanbul ignore next */ []);
|
|
76
|
+
this.editingId = signal(null, ...ngDevMode ? [{ debugName: "editingId" }] : /* istanbul ignore next */ []);
|
|
77
|
+
this.deletingId = signal(null, ...ngDevMode ? [{ debugName: "deletingId" }] : /* istanbul ignore next */ []);
|
|
78
|
+
this.queue = inject(UI_NOTES_QUEUE, { optional: true });
|
|
79
|
+
this.announcement = signal("", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
80
|
+
this.settling = signal([], ...ngDevMode ? [{ debugName: "settling" }] : /* istanbul ignore next */ []);
|
|
81
|
+
this.afters = [];
|
|
82
|
+
this.loadSeq = 0;
|
|
83
|
+
this.offlineLoadFailed = signal(false, ...ngDevMode ? [{ debugName: "offlineLoadFailed" }] : /* istanbul ignore next */ []);
|
|
84
|
+
this.shown = computed(() => {
|
|
85
|
+
const server = this.notes();
|
|
86
|
+
const queue = this.queue;
|
|
87
|
+
if (!queue || !this.ready) return server;
|
|
88
|
+
const list = this.listUrl;
|
|
89
|
+
const settling = this.settling().filter((q) => q.list === list).map((q) => ({
|
|
90
|
+
...q,
|
|
91
|
+
state: "sending"
|
|
92
|
+
}));
|
|
93
|
+
const queued = [...queue.queuedFor(this.listUrl, this.itemPrefix), ...settling];
|
|
94
|
+
if (queued.length === 0) return server;
|
|
95
|
+
const added = queued.filter((q) => q.kind === "add" && this.page() === 0).sort((a, b) => b.createdAt - a.createdAt).map((q) => ({
|
|
96
|
+
id: `queued-${q.rowId}`,
|
|
97
|
+
body: q.text,
|
|
98
|
+
createdByName: "",
|
|
99
|
+
createdAt: new Date(q.createdAt).toISOString(),
|
|
100
|
+
updatedAt: new Date(q.createdAt).toISOString(),
|
|
101
|
+
queued: {
|
|
102
|
+
kind: "add",
|
|
103
|
+
state: q.state
|
|
104
|
+
}
|
|
105
|
+
}));
|
|
106
|
+
const byNote = /* @__PURE__ */ new Map();
|
|
107
|
+
for (const q of queued) if (q.kind !== "add") byNote.set(q.noteId, [...byNote.get(q.noteId) ?? [], q]);
|
|
108
|
+
const existing = server.map((n) => {
|
|
109
|
+
const changes = byNote.get(n.id);
|
|
110
|
+
if (!changes) return n;
|
|
111
|
+
const del = changes.some((c) => c.kind === "delete");
|
|
112
|
+
const lastEdit = [...changes].reverse().find((c) => c.kind === "edit");
|
|
113
|
+
const state = changes.reduce((worst, c) => STATE_RANK[c.state] > STATE_RANK[worst] ? c.state : worst, changes[0].state);
|
|
114
|
+
return {
|
|
115
|
+
...n,
|
|
116
|
+
body: del || !lastEdit ? n.body : lastEdit.text,
|
|
117
|
+
queued: {
|
|
118
|
+
kind: del ? "delete" : "edit",
|
|
119
|
+
state
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
return [...added, ...existing];
|
|
124
|
+
}, ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
|
|
125
|
+
this.newBody = "";
|
|
126
|
+
this.editBody = "";
|
|
127
|
+
const queue = this.queue;
|
|
128
|
+
if (queue) {
|
|
129
|
+
let known = /* @__PURE__ */ new Map();
|
|
130
|
+
let knownList = "";
|
|
131
|
+
effect(() => {
|
|
132
|
+
if (!this.ready) return;
|
|
133
|
+
const list = this.listUrl;
|
|
134
|
+
const now = new Map(queue.queuedFor(list, this.itemPrefix).map((q) => [q.rowId, q]));
|
|
135
|
+
const before = known;
|
|
136
|
+
const sameList = list === knownList;
|
|
137
|
+
known = now;
|
|
138
|
+
knownList = list;
|
|
139
|
+
if (!sameList) {
|
|
140
|
+
untracked(() => {
|
|
141
|
+
this.settling.set([]);
|
|
142
|
+
this.afters = [];
|
|
143
|
+
});
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const gone = [...before.values()].filter((q) => !now.has(q.rowId) && !queue.wasDiscarded(q.rowId));
|
|
147
|
+
if (gone.length === 0) return;
|
|
148
|
+
untracked(() => {
|
|
149
|
+
this.settling.update((s) => [...s, ...gone.map((g) => ({
|
|
150
|
+
...g,
|
|
151
|
+
list
|
|
152
|
+
}))]);
|
|
153
|
+
const ids = new Set(gone.map((g) => g.rowId));
|
|
154
|
+
this.loadPage(this.page(), () => this.settling.update((s) => s.filter((q) => !ids.has(q.rowId))));
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
const flagged = /* @__PURE__ */ new Set();
|
|
158
|
+
effect(() => {
|
|
159
|
+
const bad = this.ready ? queue.queuedFor(this.listUrl, this.itemPrefix).filter((q) => q.state === "failed" || q.state === "conflict") : [];
|
|
160
|
+
const keys = new Set(bad.map((q) => `${q.rowId}:${q.state}`));
|
|
161
|
+
for (const k of [...flagged]) if (!keys.has(k)) flagged.delete(k);
|
|
162
|
+
const fresh = [...keys].filter((k) => !flagged.has(k));
|
|
163
|
+
for (const k of keys) flagged.add(k);
|
|
164
|
+
if (fresh.length > 0) untracked(() => this.announce(this.labels.t("notes.queued.problemAnnounce")));
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
effect(() => {
|
|
168
|
+
const id = this.resourceId();
|
|
169
|
+
const type = this.resourceType();
|
|
170
|
+
if (this.basePath() || id && type) untracked(() => this.loadPage(0));
|
|
171
|
+
else untracked(() => {
|
|
172
|
+
this.loadSeq++;
|
|
173
|
+
this.settling.set([]);
|
|
174
|
+
this.afters = [];
|
|
175
|
+
this.loading.set(false);
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
queuedText(q) {
|
|
180
|
+
if (q.state === "failed") return this.labels.t("notes.queued.failed");
|
|
181
|
+
if (q.state === "conflict") return this.labels.t("notes.queued.conflict");
|
|
182
|
+
if (q.kind === "delete") return this.labels.t(q.state === "sending" ? "notes.queued.deleteSending" : "notes.queued.deleteWaiting");
|
|
183
|
+
return this.labels.t(q.state === "sending" ? "notes.queued.sending" : "notes.queued.waiting");
|
|
184
|
+
}
|
|
185
|
+
announce(message) {
|
|
186
|
+
this.announcement.set("");
|
|
187
|
+
queueMicrotask(() => this.announcement.set(message));
|
|
188
|
+
}
|
|
189
|
+
savedOffline(res) {
|
|
190
|
+
return !!this.queue && !!res && typeof res === "object" && res._offline === true;
|
|
191
|
+
}
|
|
192
|
+
loadPage(p, after) {
|
|
193
|
+
if (!this.ready) return;
|
|
194
|
+
const seq = ++this.loadSeq;
|
|
195
|
+
if (after) this.afters.push(after);
|
|
196
|
+
this.loading.set(true);
|
|
197
|
+
const finish = () => {
|
|
198
|
+
const run = this.afters;
|
|
199
|
+
this.afters = [];
|
|
200
|
+
run.forEach((fn) => fn());
|
|
201
|
+
};
|
|
202
|
+
this.http.get(`${this.listUrl}?page=${p}&size=${this.pageSize}`).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
203
|
+
next: (res) => {
|
|
204
|
+
if (seq !== this.loadSeq) return;
|
|
205
|
+
this.notes.set(res.content.map((n) => this.normalize(n)));
|
|
206
|
+
this.page.set(res.page ?? res.number ?? p);
|
|
207
|
+
this.totalElements.set(res.totalElements);
|
|
208
|
+
this.loading.set(false);
|
|
209
|
+
this.offlineLoadFailed.set(false);
|
|
210
|
+
this.totalChange.emit(res.totalElements);
|
|
211
|
+
finish();
|
|
212
|
+
},
|
|
213
|
+
error: (err) => {
|
|
214
|
+
if (seq !== this.loadSeq) return;
|
|
215
|
+
this.loading.set(false);
|
|
216
|
+
const offline = !!this.queue?.offline();
|
|
217
|
+
this.offlineLoadFailed.set(offline);
|
|
218
|
+
const afterDelivery = this.afters.length > 0 && [401, 403].includes(err?.status ?? 0);
|
|
219
|
+
if (!offline && !afterDelivery) this.toast.error(getErrorMessage(err, "notes"));
|
|
220
|
+
finish();
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
addNote() {
|
|
225
|
+
if (this.readOnly() || !this.validBody(this.newBody) || this.saving()) return;
|
|
226
|
+
this.saving.set(true);
|
|
227
|
+
this.http.post(this.listUrl, this.payload(this.newBody)).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
228
|
+
next: (res) => {
|
|
229
|
+
this.newBody = "";
|
|
230
|
+
this.saving.set(false);
|
|
231
|
+
if (this.savedOffline(res)) {
|
|
232
|
+
this.announce(this.labels.t("notes.queued.addedAnnounce"));
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
this.loadPage(0);
|
|
236
|
+
},
|
|
237
|
+
error: (err) => {
|
|
238
|
+
this.saving.set(false);
|
|
239
|
+
this.toast.error(getErrorMessage(err, "note", "create"));
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
startEdit(note) {
|
|
244
|
+
if (this.readOnly() || !this.editable()) return;
|
|
245
|
+
this.editingId.set(note.id);
|
|
246
|
+
this.editBody = note.body;
|
|
247
|
+
}
|
|
248
|
+
cancelEdit() {
|
|
249
|
+
this.editingId.set(null);
|
|
250
|
+
this.editBody = "";
|
|
251
|
+
}
|
|
252
|
+
saveEdit(noteId) {
|
|
253
|
+
if (this.readOnly() || !this.editable() || !this.validBody(this.editBody) || this.saving()) return;
|
|
254
|
+
this.saving.set(true);
|
|
255
|
+
this.http.put(this.noteUrl(noteId), this.payload(this.editBody)).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
256
|
+
next: (updated) => {
|
|
257
|
+
if (this.savedOffline(updated)) {
|
|
258
|
+
this.editingId.set(null);
|
|
259
|
+
this.saving.set(false);
|
|
260
|
+
this.announce(this.labels.t("notes.queued.editedAnnounce"));
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
this.notes.update((arr) => arr.map((n) => n.id === noteId ? this.normalize(updated) : n));
|
|
264
|
+
this.editingId.set(null);
|
|
265
|
+
this.saving.set(false);
|
|
266
|
+
},
|
|
267
|
+
error: (err) => {
|
|
268
|
+
this.saving.set(false);
|
|
269
|
+
this.toast.error(getErrorMessage(err, "note", "update"));
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
confirmDelete(id) {
|
|
274
|
+
if (this.readOnly()) return;
|
|
275
|
+
this.deletingId.set(id);
|
|
276
|
+
}
|
|
277
|
+
deleteNote() {
|
|
278
|
+
const id = this.deletingId();
|
|
279
|
+
if (this.readOnly() || !id || this.saving()) return;
|
|
280
|
+
this.saving.set(true);
|
|
281
|
+
this.http.delete(this.noteUrl(id)).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
282
|
+
next: (res) => {
|
|
283
|
+
this.deletingId.set(null);
|
|
284
|
+
this.saving.set(false);
|
|
285
|
+
if (this.savedOffline(res)) {
|
|
286
|
+
this.announce(this.labels.t("notes.queued.deletedAnnounce"));
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
this.loadPage(this.notes().length === 1 && this.page() > 0 ? this.page() - 1 : this.page());
|
|
290
|
+
},
|
|
291
|
+
error: (err) => {
|
|
292
|
+
this.deletingId.set(null);
|
|
293
|
+
this.saving.set(false);
|
|
294
|
+
this.toast.error(getErrorMessage(err, "note", "delete"));
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
static {
|
|
299
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
300
|
+
minVersion: "12.0.0",
|
|
301
|
+
version: "22.2.2",
|
|
302
|
+
ngImport: i0,
|
|
303
|
+
type: NotesComponent,
|
|
304
|
+
deps: [],
|
|
305
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
static {
|
|
309
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
310
|
+
minVersion: "17.0.0",
|
|
311
|
+
version: "22.2.2",
|
|
312
|
+
type: NotesComponent,
|
|
313
|
+
isStandalone: true,
|
|
314
|
+
selector: "ui-notes",
|
|
315
|
+
inputs: {
|
|
316
|
+
resourceType: {
|
|
317
|
+
classPropertyName: "resourceType",
|
|
318
|
+
publicName: "resourceType",
|
|
319
|
+
isSignal: true,
|
|
320
|
+
isRequired: false,
|
|
321
|
+
transformFunction: null
|
|
322
|
+
},
|
|
323
|
+
resourceId: {
|
|
324
|
+
classPropertyName: "resourceId",
|
|
325
|
+
publicName: "resourceId",
|
|
326
|
+
isSignal: true,
|
|
327
|
+
isRequired: false,
|
|
328
|
+
transformFunction: null
|
|
329
|
+
},
|
|
330
|
+
basePath: {
|
|
331
|
+
classPropertyName: "basePath",
|
|
332
|
+
publicName: "basePath",
|
|
333
|
+
isSignal: true,
|
|
334
|
+
isRequired: false,
|
|
335
|
+
transformFunction: null
|
|
336
|
+
},
|
|
337
|
+
readOnly: {
|
|
338
|
+
classPropertyName: "readOnly",
|
|
339
|
+
publicName: "readOnly",
|
|
340
|
+
isSignal: true,
|
|
341
|
+
isRequired: false,
|
|
342
|
+
transformFunction: null
|
|
343
|
+
},
|
|
344
|
+
editable: {
|
|
345
|
+
classPropertyName: "editable",
|
|
346
|
+
publicName: "editable",
|
|
347
|
+
isSignal: true,
|
|
348
|
+
isRequired: false,
|
|
349
|
+
transformFunction: null
|
|
350
|
+
},
|
|
351
|
+
maxLength: {
|
|
352
|
+
classPropertyName: "maxLength",
|
|
353
|
+
publicName: "maxLength",
|
|
354
|
+
isSignal: true,
|
|
355
|
+
isRequired: false,
|
|
356
|
+
transformFunction: null
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
outputs: { totalChange: "totalChange" },
|
|
360
|
+
ngImport: i0,
|
|
361
|
+
template: `
|
|
362
|
+
@if (!readOnly()) {
|
|
363
|
+
<div class="note-add">
|
|
364
|
+
<ui-textarea-input [ariaLabel]="labels.t('notes.addANote')" [placeholder]="labels.t('notes.addANote2')" [rows]="3" [maxlength]="maxLength()" [showErrors]="tooLong(newBody)" [disabled]="saving()" [(ngModel)]="newBody"
|
|
365
|
+
(keydown.meta.enter)="addNote()" (keydown.control.enter)="addNote()" />
|
|
366
|
+
<div class="note-add-footer">
|
|
367
|
+
<ui-button variant="primary" size="sm" data-testid="note-add-btn" [loading]="saving()" [disabled]="!validBody(newBody)" (click)="addNote()">{{ labels.t('notes.addNote') }}</ui-button>
|
|
368
|
+
</div>
|
|
369
|
+
</div>
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@if (queue) {
|
|
373
|
+
<ui-live-region [message]="announcement()" />
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@if (offlineLoadFailed() && shown().length > 0) {
|
|
377
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineSome') }}</p>
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@if (loading() && shown().length === 0) {
|
|
381
|
+
<div class="note-loading" role="status">{{ labels.t('notes.loadingNotes') }}</div>
|
|
382
|
+
} @else if (shown().length === 0 && offlineLoadFailed()) {
|
|
383
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineNone') }}</p>
|
|
384
|
+
} @else if (shown().length === 0) {
|
|
385
|
+
<ui-empty-state iconType="person" [title]="labels.t('notes.noNotesYet')" [message]="readOnly() ? labels.t('notes.noNotesAdded') : labels.t('notes.addFirstNote')" />
|
|
386
|
+
} @else {
|
|
387
|
+
<ul class="note-list" [attr.aria-label]="labels.t('notes.notes')">
|
|
388
|
+
@for (note of shown(); track note.id) {
|
|
389
|
+
<li class="note-item" [class.editing]="editingId() === note.id">
|
|
390
|
+
<ui-avatar class="note-avatar" [initials]="initials(note.createdByName)" [name]="note.createdByName || labels.t('notes.you')" [size]="32" />
|
|
391
|
+
<div class="note-main">
|
|
392
|
+
<div class="note-head">
|
|
393
|
+
<span class="note-author">{{ note.createdByName || labels.t('notes.you') }}</span>
|
|
394
|
+
<span class="note-dot" aria-hidden="true">·</span>
|
|
395
|
+
<time class="note-date" [attr.datetime]="note.createdAt">{{ labels.formatDate(note.createdAt, 'MMM d, yyyy h:mm a') }}</time>
|
|
396
|
+
@if (note.updatedAt !== note.createdAt) {
|
|
397
|
+
<span class="note-edited">{{ labels.t('notes.edited') }}</span>
|
|
398
|
+
}
|
|
399
|
+
@if (note.queued; as q) {
|
|
400
|
+
<span class="note-queued" [class.note-queued-bad]="q.state === 'failed' || q.state === 'conflict'" data-testid="note-queued">{{ queuedText(q) }}</span>
|
|
401
|
+
}
|
|
402
|
+
@if (!readOnly() && editingId() !== note.id && !note.queued) {
|
|
403
|
+
<div class="note-actions">
|
|
404
|
+
@if (editable()) {
|
|
405
|
+
<ui-icon name="edit" [size]="14" [tooltip]="labels.t('notes.editNote')" (iconClick)="startEdit(note)" />
|
|
406
|
+
}
|
|
407
|
+
<ui-icon name="delete" variant="danger" [size]="14" [tooltip]="labels.t('notes.deleteNote')" (iconClick)="confirmDelete(note.id)" />
|
|
408
|
+
</div>
|
|
409
|
+
}
|
|
410
|
+
</div>
|
|
411
|
+
@if (editingId() === note.id) {
|
|
412
|
+
<ui-textarea-input [ariaLabel]="labels.t('notes.editNote')" [rows]="3" [maxlength]="maxLength()" [showErrors]="tooLong(editBody)" [disabled]="saving()" [(ngModel)]="editBody" />
|
|
413
|
+
<div class="note-item-footer">
|
|
414
|
+
<ui-button variant="secondary" size="sm" (click)="cancelEdit()">{{ labels.t('common.cancel') }}</ui-button>
|
|
415
|
+
<ui-button variant="primary" size="sm" [loading]="saving()" [disabled]="!validBody(editBody)" (click)="saveEdit(note.id)">{{ labels.t('common.save') }}</ui-button>
|
|
416
|
+
</div>
|
|
417
|
+
} @else {
|
|
418
|
+
<p class="note-body">{{ note.body }}</p>
|
|
419
|
+
}
|
|
420
|
+
</div>
|
|
421
|
+
</li>
|
|
422
|
+
}
|
|
423
|
+
</ul>
|
|
424
|
+
<ui-pagination [page]="page() + 1" [pageSize]="pageSize" [totalItems]="totalElements()" (pageChange)="loadPage($event - 1)" />
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
<ui-modal [open]="!!deletingId()" [title]="labels.t('notes.deleteNote2')" maxWidth="420px" dialogTestId="delete-note-modal" describedBy="ui-note-delete-msg" (close)="deletingId.set(null)">
|
|
428
|
+
<p class="note-delete-msg" id="ui-note-delete-msg" data-testid="delete-note-message">{{ labels.t('notes.deleteThisNoteItIs') }}</p>
|
|
429
|
+
<ui-button modal-footer-left variant="secondary" size="sm" data-testid="delete-note-cancel" (click)="deletingId.set(null)">{{ labels.t('common.cancel') }}</ui-button>
|
|
430
|
+
<ui-button modal-footer-right variant="danger" size="sm" data-testid="delete-note-confirm" [loading]="saving()" (click)="deleteNote()">{{ labels.t('notes.deleteNote2') }}</ui-button>
|
|
431
|
+
</ui-modal>
|
|
432
|
+
`,
|
|
433
|
+
isInline: true,
|
|
434
|
+
styles: [":host{display:block}.note-add{padding:14px;margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.note-add-footer{display:flex;justify-content:flex-end;margin-top:10px}.note-offline-hint{margin:0 0 12px;font-size:.875rem;color:#475569}.note-loading{padding:24px 0;font-size:.875rem;color:#64748b;text-align:center}.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.note-item{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,box-shadow .15s}@media(hover:hover){.note-item:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}}.note-item.editing{background:#f8fafc;border-color:#bfdbfe}@media(prefers-reduced-motion:reduce){.note-item{transition:none}}.note-avatar{flex-shrink:0}.note-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.note-head{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;min-height:28px}.note-author{font-size:.875rem;font-weight:600;color:#0f172a}.note-dot{color:#94a3b8;font-size:.75rem}.note-date{font-size:.75rem;color:#64748b}.note-edited{font-size:.75rem;font-style:italic;color:#64748b}.note-queued{font-size:.75rem;font-weight:500;color:#475569;background:#f1f5f9;border:1px dashed #94a3b8;border-radius:999px;padding:1px 8px}.note-queued-bad{color:#991b1b;background:#fef2f2;border:1px solid #b91c1c;font-weight:700}.note-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.note-body{margin:0;font-size:.9375rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.note-item-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.note-delete-msg{margin:0;font-size:.9375rem;line-height:1.5;color:#334155}@media(max-width:480px){.note-item{padding:12px;gap:10px}.note-add{padding:12px}}\n"],
|
|
435
|
+
dependencies: [
|
|
436
|
+
{
|
|
437
|
+
kind: "ngmodule",
|
|
438
|
+
type: FormsModule
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
kind: "directive",
|
|
442
|
+
type: i1.NgControlStatus,
|
|
443
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
kind: "directive",
|
|
447
|
+
type: i1.MaxLengthValidator,
|
|
448
|
+
selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",
|
|
449
|
+
inputs: ["maxlength"]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
kind: "directive",
|
|
453
|
+
type: i1.NgModel,
|
|
454
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
455
|
+
inputs: [
|
|
456
|
+
"name",
|
|
457
|
+
"disabled",
|
|
458
|
+
"ngModel",
|
|
459
|
+
"ngModelOptions"
|
|
460
|
+
],
|
|
461
|
+
outputs: ["ngModelChange"],
|
|
462
|
+
exportAs: ["ngModel"]
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
kind: "component",
|
|
466
|
+
type: ButtonComponent,
|
|
467
|
+
selector: "ui-button",
|
|
468
|
+
inputs: [
|
|
469
|
+
"variant",
|
|
470
|
+
"routerLink",
|
|
471
|
+
"queryParams",
|
|
472
|
+
"fragment",
|
|
473
|
+
"state",
|
|
474
|
+
"href",
|
|
475
|
+
"target",
|
|
476
|
+
"rel",
|
|
477
|
+
"shortLabel",
|
|
478
|
+
"shortBelow",
|
|
479
|
+
"color",
|
|
480
|
+
"active",
|
|
481
|
+
"size",
|
|
482
|
+
"type",
|
|
483
|
+
"disabled",
|
|
484
|
+
"loading",
|
|
485
|
+
"fullWidth",
|
|
486
|
+
"ariaLabel",
|
|
487
|
+
"ariaExpanded",
|
|
488
|
+
"ariaPressed",
|
|
489
|
+
"ariaDescribedBy",
|
|
490
|
+
"modal-footer-left",
|
|
491
|
+
"modal-footer-right"
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
kind: "component",
|
|
496
|
+
type: ModalComponent,
|
|
497
|
+
selector: "ui-modal",
|
|
498
|
+
inputs: [
|
|
499
|
+
"open",
|
|
500
|
+
"title",
|
|
501
|
+
"description",
|
|
502
|
+
"describedBy",
|
|
503
|
+
"maxWidth",
|
|
504
|
+
"bodyOverflow",
|
|
505
|
+
"dialogTestId",
|
|
506
|
+
"hideClose",
|
|
507
|
+
"closable",
|
|
508
|
+
"layout",
|
|
509
|
+
"closeOnBackdrop",
|
|
510
|
+
"closeOnEscape",
|
|
511
|
+
"busy",
|
|
512
|
+
"returnFocusTo"
|
|
513
|
+
],
|
|
514
|
+
outputs: ["close"]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
kind: "component",
|
|
518
|
+
type: EmptyStateComponent,
|
|
519
|
+
selector: "ui-empty-state",
|
|
520
|
+
inputs: [
|
|
521
|
+
"message",
|
|
522
|
+
"title",
|
|
523
|
+
"iconType"
|
|
524
|
+
]
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
kind: "component",
|
|
528
|
+
type: PaginationComponent,
|
|
529
|
+
selector: "ui-pagination",
|
|
530
|
+
inputs: [
|
|
531
|
+
"page",
|
|
532
|
+
"pageSize",
|
|
533
|
+
"totalItems",
|
|
534
|
+
"detached",
|
|
535
|
+
"embedded",
|
|
536
|
+
"ariaLabel"
|
|
537
|
+
],
|
|
538
|
+
outputs: ["pageChange"]
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
kind: "component",
|
|
542
|
+
type: TextareaInputComponent,
|
|
543
|
+
selector: "ui-textarea-input",
|
|
544
|
+
inputs: [
|
|
545
|
+
"label",
|
|
546
|
+
"ariaLabel",
|
|
547
|
+
"placeholder",
|
|
548
|
+
"rows",
|
|
549
|
+
"maxlength",
|
|
550
|
+
"required",
|
|
551
|
+
"readonly",
|
|
552
|
+
"hint",
|
|
553
|
+
"ariaDescribedBy",
|
|
554
|
+
"hintAsDescription",
|
|
555
|
+
"error",
|
|
556
|
+
"monospace",
|
|
557
|
+
"showErrors",
|
|
558
|
+
"disabled"
|
|
559
|
+
],
|
|
560
|
+
outputs: [
|
|
561
|
+
"invalidChange",
|
|
562
|
+
"focused",
|
|
563
|
+
"blurred"
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
kind: "component",
|
|
568
|
+
type: IconComponent,
|
|
569
|
+
selector: "ui-icon",
|
|
570
|
+
inputs: [
|
|
571
|
+
"name",
|
|
572
|
+
"tooltip",
|
|
573
|
+
"ariaLabel",
|
|
574
|
+
"size",
|
|
575
|
+
"variant",
|
|
576
|
+
"disabled",
|
|
577
|
+
"loading",
|
|
578
|
+
"interactive"
|
|
579
|
+
],
|
|
580
|
+
outputs: ["iconClick"]
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
kind: "component",
|
|
584
|
+
type: AvatarComponent,
|
|
585
|
+
selector: "ui-avatar",
|
|
586
|
+
inputs: [
|
|
587
|
+
"initials",
|
|
588
|
+
"name",
|
|
589
|
+
"size",
|
|
590
|
+
"imageUrl",
|
|
591
|
+
"editable",
|
|
592
|
+
"editLabel",
|
|
593
|
+
"busy"
|
|
594
|
+
],
|
|
595
|
+
outputs: ["editClick", "imageError"]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
kind: "component",
|
|
599
|
+
type: LiveRegionComponent,
|
|
600
|
+
selector: "ui-live-region",
|
|
601
|
+
inputs: [
|
|
602
|
+
"message",
|
|
603
|
+
"politeness",
|
|
604
|
+
"atomic",
|
|
605
|
+
"visible"
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
],
|
|
609
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
614
|
+
minVersion: "12.0.0",
|
|
615
|
+
version: "22.2.2",
|
|
616
|
+
ngImport: i0,
|
|
617
|
+
type: NotesComponent,
|
|
618
|
+
decorators: [{
|
|
619
|
+
type: Component,
|
|
620
|
+
args: [{
|
|
621
|
+
selector: "ui-notes",
|
|
622
|
+
standalone: true,
|
|
623
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
624
|
+
imports: [
|
|
625
|
+
FormsModule,
|
|
626
|
+
ButtonComponent,
|
|
627
|
+
ModalComponent,
|
|
628
|
+
EmptyStateComponent,
|
|
629
|
+
PaginationComponent,
|
|
630
|
+
TextareaInputComponent,
|
|
631
|
+
IconComponent,
|
|
632
|
+
AvatarComponent,
|
|
633
|
+
LiveRegionComponent
|
|
634
|
+
],
|
|
635
|
+
template: `
|
|
636
|
+
@if (!readOnly()) {
|
|
637
|
+
<div class="note-add">
|
|
638
|
+
<ui-textarea-input [ariaLabel]="labels.t('notes.addANote')" [placeholder]="labels.t('notes.addANote2')" [rows]="3" [maxlength]="maxLength()" [showErrors]="tooLong(newBody)" [disabled]="saving()" [(ngModel)]="newBody"
|
|
639
|
+
(keydown.meta.enter)="addNote()" (keydown.control.enter)="addNote()" />
|
|
640
|
+
<div class="note-add-footer">
|
|
641
|
+
<ui-button variant="primary" size="sm" data-testid="note-add-btn" [loading]="saving()" [disabled]="!validBody(newBody)" (click)="addNote()">{{ labels.t('notes.addNote') }}</ui-button>
|
|
642
|
+
</div>
|
|
643
|
+
</div>
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
@if (queue) {
|
|
647
|
+
<ui-live-region [message]="announcement()" />
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
@if (offlineLoadFailed() && shown().length > 0) {
|
|
651
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineSome') }}</p>
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
@if (loading() && shown().length === 0) {
|
|
655
|
+
<div class="note-loading" role="status">{{ labels.t('notes.loadingNotes') }}</div>
|
|
656
|
+
} @else if (shown().length === 0 && offlineLoadFailed()) {
|
|
657
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineNone') }}</p>
|
|
658
|
+
} @else if (shown().length === 0) {
|
|
659
|
+
<ui-empty-state iconType="person" [title]="labels.t('notes.noNotesYet')" [message]="readOnly() ? labels.t('notes.noNotesAdded') : labels.t('notes.addFirstNote')" />
|
|
660
|
+
} @else {
|
|
661
|
+
<ul class="note-list" [attr.aria-label]="labels.t('notes.notes')">
|
|
662
|
+
@for (note of shown(); track note.id) {
|
|
663
|
+
<li class="note-item" [class.editing]="editingId() === note.id">
|
|
664
|
+
<ui-avatar class="note-avatar" [initials]="initials(note.createdByName)" [name]="note.createdByName || labels.t('notes.you')" [size]="32" />
|
|
665
|
+
<div class="note-main">
|
|
666
|
+
<div class="note-head">
|
|
667
|
+
<span class="note-author">{{ note.createdByName || labels.t('notes.you') }}</span>
|
|
668
|
+
<span class="note-dot" aria-hidden="true">·</span>
|
|
669
|
+
<time class="note-date" [attr.datetime]="note.createdAt">{{ labels.formatDate(note.createdAt, 'MMM d, yyyy h:mm a') }}</time>
|
|
670
|
+
@if (note.updatedAt !== note.createdAt) {
|
|
671
|
+
<span class="note-edited">{{ labels.t('notes.edited') }}</span>
|
|
672
|
+
}
|
|
673
|
+
@if (note.queued; as q) {
|
|
674
|
+
<span class="note-queued" [class.note-queued-bad]="q.state === 'failed' || q.state === 'conflict'" data-testid="note-queued">{{ queuedText(q) }}</span>
|
|
675
|
+
}
|
|
676
|
+
@if (!readOnly() && editingId() !== note.id && !note.queued) {
|
|
677
|
+
<div class="note-actions">
|
|
678
|
+
@if (editable()) {
|
|
679
|
+
<ui-icon name="edit" [size]="14" [tooltip]="labels.t('notes.editNote')" (iconClick)="startEdit(note)" />
|
|
680
|
+
}
|
|
681
|
+
<ui-icon name="delete" variant="danger" [size]="14" [tooltip]="labels.t('notes.deleteNote')" (iconClick)="confirmDelete(note.id)" />
|
|
682
|
+
</div>
|
|
683
|
+
}
|
|
684
|
+
</div>
|
|
685
|
+
@if (editingId() === note.id) {
|
|
686
|
+
<ui-textarea-input [ariaLabel]="labels.t('notes.editNote')" [rows]="3" [maxlength]="maxLength()" [showErrors]="tooLong(editBody)" [disabled]="saving()" [(ngModel)]="editBody" />
|
|
687
|
+
<div class="note-item-footer">
|
|
688
|
+
<ui-button variant="secondary" size="sm" (click)="cancelEdit()">{{ labels.t('common.cancel') }}</ui-button>
|
|
689
|
+
<ui-button variant="primary" size="sm" [loading]="saving()" [disabled]="!validBody(editBody)" (click)="saveEdit(note.id)">{{ labels.t('common.save') }}</ui-button>
|
|
690
|
+
</div>
|
|
691
|
+
} @else {
|
|
692
|
+
<p class="note-body">{{ note.body }}</p>
|
|
693
|
+
}
|
|
694
|
+
</div>
|
|
695
|
+
</li>
|
|
696
|
+
}
|
|
697
|
+
</ul>
|
|
698
|
+
<ui-pagination [page]="page() + 1" [pageSize]="pageSize" [totalItems]="totalElements()" (pageChange)="loadPage($event - 1)" />
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
<ui-modal [open]="!!deletingId()" [title]="labels.t('notes.deleteNote2')" maxWidth="420px" dialogTestId="delete-note-modal" describedBy="ui-note-delete-msg" (close)="deletingId.set(null)">
|
|
702
|
+
<p class="note-delete-msg" id="ui-note-delete-msg" data-testid="delete-note-message">{{ labels.t('notes.deleteThisNoteItIs') }}</p>
|
|
703
|
+
<ui-button modal-footer-left variant="secondary" size="sm" data-testid="delete-note-cancel" (click)="deletingId.set(null)">{{ labels.t('common.cancel') }}</ui-button>
|
|
704
|
+
<ui-button modal-footer-right variant="danger" size="sm" data-testid="delete-note-confirm" [loading]="saving()" (click)="deleteNote()">{{ labels.t('notes.deleteNote2') }}</ui-button>
|
|
705
|
+
</ui-modal>
|
|
706
|
+
`,
|
|
707
|
+
styles: [":host{display:block}.note-add{padding:14px;margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.note-add-footer{display:flex;justify-content:flex-end;margin-top:10px}.note-offline-hint{margin:0 0 12px;font-size:.875rem;color:#475569}.note-loading{padding:24px 0;font-size:.875rem;color:#64748b;text-align:center}.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.note-item{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,box-shadow .15s}@media(hover:hover){.note-item:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}}.note-item.editing{background:#f8fafc;border-color:#bfdbfe}@media(prefers-reduced-motion:reduce){.note-item{transition:none}}.note-avatar{flex-shrink:0}.note-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.note-head{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;min-height:28px}.note-author{font-size:.875rem;font-weight:600;color:#0f172a}.note-dot{color:#94a3b8;font-size:.75rem}.note-date{font-size:.75rem;color:#64748b}.note-edited{font-size:.75rem;font-style:italic;color:#64748b}.note-queued{font-size:.75rem;font-weight:500;color:#475569;background:#f1f5f9;border:1px dashed #94a3b8;border-radius:999px;padding:1px 8px}.note-queued-bad{color:#991b1b;background:#fef2f2;border:1px solid #b91c1c;font-weight:700}.note-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.note-body{margin:0;font-size:.9375rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.note-item-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.note-delete-msg{margin:0;font-size:.9375rem;line-height:1.5;color:#334155}@media(max-width:480px){.note-item{padding:12px;gap:10px}.note-add{padding:12px}}\n"]
|
|
708
|
+
}]
|
|
709
|
+
}],
|
|
710
|
+
ctorParameters: () => [],
|
|
711
|
+
propDecorators: {
|
|
712
|
+
resourceType: [{
|
|
713
|
+
type: i0.Input,
|
|
714
|
+
args: [{
|
|
715
|
+
isSignal: true,
|
|
716
|
+
alias: "resourceType",
|
|
717
|
+
required: false
|
|
718
|
+
}]
|
|
719
|
+
}],
|
|
720
|
+
resourceId: [{
|
|
721
|
+
type: i0.Input,
|
|
722
|
+
args: [{
|
|
723
|
+
isSignal: true,
|
|
724
|
+
alias: "resourceId",
|
|
725
|
+
required: false
|
|
726
|
+
}]
|
|
727
|
+
}],
|
|
728
|
+
basePath: [{
|
|
729
|
+
type: i0.Input,
|
|
730
|
+
args: [{
|
|
731
|
+
isSignal: true,
|
|
732
|
+
alias: "basePath",
|
|
733
|
+
required: false
|
|
734
|
+
}]
|
|
735
|
+
}],
|
|
736
|
+
readOnly: [{
|
|
737
|
+
type: i0.Input,
|
|
738
|
+
args: [{
|
|
739
|
+
isSignal: true,
|
|
740
|
+
alias: "readOnly",
|
|
741
|
+
required: false
|
|
742
|
+
}]
|
|
743
|
+
}],
|
|
744
|
+
editable: [{
|
|
745
|
+
type: i0.Input,
|
|
746
|
+
args: [{
|
|
747
|
+
isSignal: true,
|
|
748
|
+
alias: "editable",
|
|
749
|
+
required: false
|
|
750
|
+
}]
|
|
751
|
+
}],
|
|
752
|
+
maxLength: [{
|
|
753
|
+
type: i0.Input,
|
|
754
|
+
args: [{
|
|
755
|
+
isSignal: true,
|
|
756
|
+
alias: "maxLength",
|
|
757
|
+
required: false
|
|
758
|
+
}]
|
|
759
|
+
}],
|
|
760
|
+
totalChange: [{
|
|
761
|
+
type: i0.Output,
|
|
762
|
+
args: ["totalChange"]
|
|
763
|
+
}]
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
export { NOTES_MAX_LENGTH, NotesComponent };
|
|
767
|
+
|
|
768
|
+
//# sourceMappingURL=forgeroute-ui-notes.mjs.map
|