@spartan-ng/brain 0.0.1-alpha.373 → 0.0.1-alpha.379
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/accordion/README.md +3 -0
- package/accordion/index.d.ts +13 -0
- package/accordion/lib/brn-accordion-content.component.d.ts +15 -0
- package/accordion/lib/brn-accordion.directive.d.ts +47 -0
- package/alert-dialog/README.md +3 -0
- package/alert-dialog/index.d.ts +25 -0
- package/alert-dialog/lib/brn-alert-dialog-content.directive.d.ts +6 -0
- package/alert-dialog/lib/brn-alert-dialog-description.directive.d.ts +6 -0
- package/alert-dialog/lib/brn-alert-dialog-overlay.component.d.ts +6 -0
- package/alert-dialog/lib/brn-alert-dialog-title.directive.d.ts +6 -0
- package/alert-dialog/lib/brn-alert-dialog-trigger.directive.d.ts +8 -0
- package/alert-dialog/lib/brn-alert-dialog.component.d.ts +7 -0
- package/avatar/README.md +3 -0
- package/avatar/index.d.ts +17 -0
- package/avatar/lib/brn-avatar.component.d.ts +7 -0
- package/avatar/lib/fallback/brn-avatar-fallback.directive.d.ts +11 -0
- package/avatar/lib/fallback/index.d.ts +1 -0
- package/avatar/lib/image/brn-avatar-image.directive.d.ts +9 -0
- package/avatar/lib/image/index.d.ts +1 -0
- package/avatar/lib/util/hex-color-for.d.ts +1 -0
- package/avatar/lib/util/index.d.ts +3 -0
- package/avatar/lib/util/initials.pipe.d.ts +7 -0
- package/avatar/lib/util/is-bright.d.ts +1 -0
- package/calendar/README.md +3 -0
- package/calendar/index.d.ts +36 -0
- package/calendar/lib/brn-calendar-cell-button.directive.d.ts +59 -0
- package/calendar/lib/brn-calendar-cell.directive.d.ts +5 -0
- package/calendar/lib/brn-calendar-grid.directive.d.ts +7 -0
- package/calendar/lib/brn-calendar-header.directive.d.ts +7 -0
- package/calendar/lib/brn-calendar-next-button.directive.d.ts +13 -0
- package/calendar/lib/brn-calendar-previous-button.directive.d.ts +13 -0
- package/calendar/lib/brn-calendar-week.directive.d.ts +25 -0
- package/calendar/lib/brn-calendar-weekday.directive.d.ts +25 -0
- package/calendar/lib/brn-calendar.directive.d.ts +55 -0
- package/calendar/lib/brn-calendar.token.d.ts +8 -0
- package/calendar/lib/i18n/calendar-i18n.d.ts +17 -0
- package/checkbox/lib/brn-checkbox.component.d.ts +1 -1
- package/collapsible/README.md +3 -0
- package/collapsible/index.d.ts +16 -0
- package/collapsible/lib/brn-collapsible-content.component.d.ts +19 -0
- package/collapsible/lib/brn-collapsible-trigger.directive.d.ts +12 -0
- package/collapsible/lib/brn-collapsible.component.d.ts +11 -0
- package/command/README.md +3 -0
- package/command/index.d.ts +33 -0
- package/command/lib/brn-command-empty.directive.d.ts +6 -0
- package/command/lib/brn-command-group.component.d.ts +6 -0
- package/command/lib/brn-command-input.directive.d.ts +6 -0
- package/command/lib/brn-command-item.directive.d.ts +6 -0
- package/command/lib/brn-command-list.component.d.ts +6 -0
- package/command/lib/brn-command-loader.directive.d.ts +6 -0
- package/command/lib/brn-command-separator.component.d.ts +6 -0
- package/command/lib/brn-command.component.d.ts +6 -0
- package/date-time/README.md +3 -0
- package/date-time/index.d.ts +2 -0
- package/date-time/lib/date-adapter.d.ts +176 -0
- package/date-time/lib/native-date-adapter.d.ts +103 -0
- package/date-time-luxon/README.md +3 -0
- package/date-time-luxon/index.d.ts +1 -0
- package/date-time-luxon/lib/date-adapter.d.ts +29 -0
- package/dialog/README.md +3 -0
- package/dialog/index.d.ts +33 -0
- package/dialog/lib/brn-dialog-close.directive.d.ts +10 -0
- package/dialog/lib/brn-dialog-content.directive.d.ts +12 -0
- package/dialog/lib/brn-dialog-description.directive.d.ts +8 -0
- package/dialog/lib/brn-dialog-options.d.ts +26 -0
- package/dialog/lib/brn-dialog-overlay.component.d.ts +8 -0
- package/dialog/lib/brn-dialog-ref.d.ts +24 -0
- package/dialog/lib/brn-dialog-state.d.ts +1 -0
- package/dialog/lib/brn-dialog-title.directive.d.ts +8 -0
- package/dialog/lib/brn-dialog-trigger.directive.d.ts +16 -0
- package/dialog/lib/brn-dialog-utils.d.ts +1 -0
- package/dialog/lib/brn-dialog.component.d.ts +56 -0
- package/dialog/lib/brn-dialog.service.d.ts +22 -0
- package/esm2022/accordion/index.mjs +31 -0
- package/esm2022/accordion/lib/brn-accordion-content.component.mjs +50 -0
- package/esm2022/accordion/lib/brn-accordion.directive.mjs +180 -0
- package/esm2022/accordion/spartan-ng-brain-accordion.mjs +5 -0
- package/esm2022/alert-dialog/index.mjs +45 -0
- package/esm2022/alert-dialog/lib/brn-alert-dialog-content.directive.mjs +17 -0
- package/esm2022/alert-dialog/lib/brn-alert-dialog-description.directive.mjs +18 -0
- package/esm2022/alert-dialog/lib/brn-alert-dialog-overlay.component.mjs +20 -0
- package/esm2022/alert-dialog/lib/brn-alert-dialog-title.directive.mjs +18 -0
- package/esm2022/alert-dialog/lib/brn-alert-dialog-trigger.directive.mjs +27 -0
- package/esm2022/alert-dialog/lib/brn-alert-dialog.component.mjs +40 -0
- package/esm2022/alert-dialog/spartan-ng-brain-alert-dialog.mjs +5 -0
- package/esm2022/avatar/index.mjs +23 -0
- package/esm2022/avatar/lib/brn-avatar.component.mjs +31 -0
- package/esm2022/avatar/lib/fallback/brn-avatar-fallback.directive.mjs +21 -0
- package/esm2022/avatar/lib/fallback/index.mjs +2 -0
- package/esm2022/avatar/lib/image/brn-avatar-image.directive.mjs +29 -0
- package/esm2022/avatar/lib/image/index.mjs +2 -0
- package/esm2022/avatar/lib/util/hex-color-for.mjs +22 -0
- package/esm2022/avatar/lib/util/index.mjs +4 -0
- package/esm2022/avatar/lib/util/initials.pipe.mjs +27 -0
- package/esm2022/avatar/lib/util/is-bright.mjs +12 -0
- package/esm2022/avatar/spartan-ng-brain-avatar.mjs +5 -0
- package/esm2022/calendar/index.mjs +62 -0
- package/esm2022/calendar/lib/brn-calendar-cell-button.directive.mjs +160 -0
- package/esm2022/calendar/lib/brn-calendar-cell.directive.mjs +17 -0
- package/esm2022/calendar/lib/brn-calendar-grid.directive.mjs +21 -0
- package/esm2022/calendar/lib/brn-calendar-header.directive.mjs +22 -0
- package/esm2022/calendar/lib/brn-calendar-next-button.directive.mjs +42 -0
- package/esm2022/calendar/lib/brn-calendar-previous-button.directive.mjs +42 -0
- package/esm2022/calendar/lib/brn-calendar-week.directive.mjs +64 -0
- package/esm2022/calendar/lib/brn-calendar-weekday.directive.mjs +48 -0
- package/esm2022/calendar/lib/brn-calendar.directive.mjs +154 -0
- package/esm2022/calendar/lib/brn-calendar.token.mjs +12 -0
- package/esm2022/calendar/lib/i18n/calendar-i18n.mjs +33 -0
- package/esm2022/calendar/spartan-ng-brain-calendar.mjs +5 -0
- package/esm2022/checkbox/lib/brn-checkbox.component.mjs +1 -1
- package/esm2022/collapsible/index.mjs +30 -0
- package/esm2022/collapsible/lib/brn-collapsible-content.component.mjs +61 -0
- package/esm2022/collapsible/lib/brn-collapsible-trigger.directive.mjs +35 -0
- package/esm2022/collapsible/lib/brn-collapsible.component.mjs +33 -0
- package/esm2022/collapsible/spartan-ng-brain-collapsible.mjs +5 -0
- package/esm2022/command/index.mjs +64 -0
- package/esm2022/command/lib/brn-command-empty.directive.mjs +29 -0
- package/esm2022/command/lib/brn-command-group.component.mjs +45 -0
- package/esm2022/command/lib/brn-command-input.directive.mjs +29 -0
- package/esm2022/command/lib/brn-command-item.directive.mjs +36 -0
- package/esm2022/command/lib/brn-command-list.component.mjs +35 -0
- package/esm2022/command/lib/brn-command-loader.directive.mjs +29 -0
- package/esm2022/command/lib/brn-command-separator.component.mjs +30 -0
- package/esm2022/command/lib/brn-command.component.mjs +21 -0
- package/esm2022/command/spartan-ng-brain-command.mjs +5 -0
- package/esm2022/date-time/index.mjs +3 -0
- package/esm2022/date-time/lib/date-adapter.mjs +16 -0
- package/esm2022/date-time/lib/native-date-adapter.mjs +155 -0
- package/esm2022/date-time/spartan-ng-brain-date-time.mjs +5 -0
- package/esm2022/date-time-luxon/index.mjs +2 -0
- package/esm2022/date-time-luxon/lib/date-adapter.mjs +85 -0
- package/esm2022/date-time-luxon/spartan-ng-brain-date-time-luxon.mjs +5 -0
- package/esm2022/dialog/index.mjs +55 -0
- package/esm2022/dialog/lib/brn-dialog-close.directive.mjs +29 -0
- package/esm2022/dialog/lib/brn-dialog-content.directive.mjs +41 -0
- package/esm2022/dialog/lib/brn-dialog-description.directive.mjs +25 -0
- package/esm2022/dialog/lib/brn-dialog-options.mjs +19 -0
- package/esm2022/dialog/lib/brn-dialog-overlay.component.mjs +29 -0
- package/esm2022/dialog/lib/brn-dialog-ref.mjs +53 -0
- package/esm2022/dialog/lib/brn-dialog-state.mjs +2 -0
- package/esm2022/dialog/lib/brn-dialog-title.directive.mjs +25 -0
- package/esm2022/dialog/lib/brn-dialog-trigger.directive.mjs +39 -0
- package/esm2022/dialog/lib/brn-dialog-utils.mjs +12 -0
- package/esm2022/dialog/lib/brn-dialog.component.mjs +208 -0
- package/esm2022/dialog/lib/brn-dialog.service.mjs +127 -0
- package/esm2022/dialog/spartan-ng-brain-dialog.mjs +5 -0
- package/esm2022/form-field/index.mjs +2 -0
- package/esm2022/form-field/lib/brn-form-field-control.mjs +14 -0
- package/esm2022/form-field/spartan-ng-brain-form-field.mjs +5 -0
- package/esm2022/forms/index.mjs +4 -0
- package/esm2022/forms/lib/control-value-accessor.mjs +2 -0
- package/esm2022/forms/lib/error-options.mjs +26 -0
- package/esm2022/forms/lib/error-state-tracker.mjs +29 -0
- package/esm2022/forms/spartan-ng-brain-forms.mjs +5 -0
- package/esm2022/hover-card/index.mjs +29 -0
- package/esm2022/hover-card/lib/brn-hover-card-content.service.mjs +205 -0
- package/esm2022/hover-card/lib/brn-hover-card.component.mjs +34 -0
- package/esm2022/hover-card/lib/createHoverObservable.mjs +19 -0
- package/esm2022/hover-card/spartan-ng-brain-hover-card.mjs +5 -0
- package/esm2022/label/index.mjs +17 -0
- package/esm2022/label/lib/brn-label.directive.mjs +49 -0
- package/esm2022/label/spartan-ng-brain-label.mjs +5 -0
- package/esm2022/menu/index.mjs +100 -0
- package/esm2022/menu/lib/brn-context-menu-trigger.directive.mjs +40 -0
- package/esm2022/menu/lib/brn-menu-align.mjs +15 -0
- package/esm2022/menu/lib/brn-menu-bar.directive.mjs +17 -0
- package/esm2022/menu/lib/brn-menu-group.directive.mjs +17 -0
- package/esm2022/menu/lib/brn-menu-item-checkbox.directive.mjs +30 -0
- package/esm2022/menu/lib/brn-menu-item-radio.directive.mjs +30 -0
- package/esm2022/menu/lib/brn-menu-item.directive.mjs +27 -0
- package/esm2022/menu/lib/brn-menu-trigger.directive.mjs +36 -0
- package/esm2022/menu/lib/brn-menu.directive.mjs +50 -0
- package/esm2022/menu/spartan-ng-brain-menu.mjs +5 -0
- package/esm2022/popover/index.mjs +35 -0
- package/esm2022/popover/lib/brn-popover-close.directive.mjs +15 -0
- package/esm2022/popover/lib/brn-popover-content.directive.mjs +17 -0
- package/esm2022/popover/lib/brn-popover-trigger.directive.mjs +37 -0
- package/esm2022/popover/lib/brn-popover.component.mjs +81 -0
- package/esm2022/popover/spartan-ng-brain-popover.mjs +5 -0
- package/esm2022/progress/index.mjs +21 -0
- package/esm2022/progress/lib/brn-progress-indicator.component.mjs +22 -0
- package/esm2022/progress/lib/brn-progress.component.mjs +61 -0
- package/esm2022/progress/lib/brn-progress.token.mjs +9 -0
- package/esm2022/progress/spartan-ng-brain-progress.mjs +5 -0
- package/esm2022/radio-group/index.mjs +20 -0
- package/esm2022/radio-group/lib/brn-radio-group.component.mjs +90 -0
- package/esm2022/radio-group/lib/brn-radio-group.token.mjs +9 -0
- package/esm2022/radio-group/lib/brn-radio.component.mjs +185 -0
- package/esm2022/radio-group/spartan-ng-brain-radio-group.mjs +5 -0
- package/esm2022/select/index.mjs +56 -0
- package/esm2022/select/lib/brn-select-content.component.mjs +204 -0
- package/esm2022/select/lib/brn-select-group.directive.mjs +19 -0
- package/esm2022/select/lib/brn-select-label.directive.mjs +23 -0
- package/esm2022/select/lib/brn-select-option.directive.mjs +65 -0
- package/esm2022/select/lib/brn-select-value.component.mjs +46 -0
- package/esm2022/select/lib/brn-select.component.mjs +358 -0
- package/esm2022/select/lib/brn-select.service.mjs +197 -0
- package/esm2022/select/spartan-ng-brain-select.mjs +5 -0
- package/esm2022/separator/index.mjs +17 -0
- package/esm2022/separator/lib/brn-separator.component.mjs +24 -0
- package/esm2022/separator/spartan-ng-brain-separator.mjs +5 -0
- package/esm2022/sheet/index.mjs +50 -0
- package/esm2022/sheet/lib/brn-sheet-close.directive.mjs +15 -0
- package/esm2022/sheet/lib/brn-sheet-content.directive.mjs +25 -0
- package/esm2022/sheet/lib/brn-sheet-description.directive.mjs +18 -0
- package/esm2022/sheet/lib/brn-sheet-overlay.component.mjs +20 -0
- package/esm2022/sheet/lib/brn-sheet-title.directive.mjs +18 -0
- package/esm2022/sheet/lib/brn-sheet-trigger.directive.mjs +26 -0
- package/esm2022/sheet/lib/brn-sheet.component.mjs +55 -0
- package/esm2022/sheet/spartan-ng-brain-sheet.mjs +5 -0
- package/esm2022/slider/index.mjs +13 -0
- package/esm2022/slider/lib/brn-slider-thumb.directive.mjs +41 -0
- package/esm2022/slider/lib/brn-slider-tick-mark.directive.mjs +37 -0
- package/esm2022/slider/lib/brn-slider-track-active-fill.directive.mjs +29 -0
- package/esm2022/slider/lib/brn-slider-track.directive.mjs +290 -0
- package/esm2022/slider/spartan-ng-brain-slider.mjs +5 -0
- package/esm2022/switch/index.mjs +20 -0
- package/esm2022/switch/lib/brn-switch-thumb.component.mjs +16 -0
- package/esm2022/switch/lib/brn-switch.component.mjs +236 -0
- package/esm2022/switch/spartan-ng-brain-switch.mjs +5 -0
- package/esm2022/table/index.mjs +47 -0
- package/esm2022/table/lib/brn-cell-def.directive.mjs +22 -0
- package/esm2022/table/lib/brn-column-def.component.mjs +82 -0
- package/esm2022/table/lib/brn-column-manager.mjs +61 -0
- package/esm2022/table/lib/brn-footer-def.directive.mjs +22 -0
- package/esm2022/table/lib/brn-header-def.directive.mjs +22 -0
- package/esm2022/table/lib/brn-paginator.directive.mjs +109 -0
- package/esm2022/table/lib/brn-table.component.mjs +169 -0
- package/esm2022/table/spartan-ng-brain-table.mjs +5 -0
- package/esm2022/tabs/index.mjs +32 -0
- package/esm2022/tabs/lib/brn-tabs-list.directive.mjs +65 -0
- package/esm2022/tabs/lib/brn-tabs-paginated-list.directive.mjs +525 -0
- package/esm2022/tabs/lib/brn-tabs-trigger.directive.mjs +134 -0
- package/esm2022/tabs/spartan-ng-brain-tabs.mjs +5 -0
- package/esm2022/toggle/index.mjs +31 -0
- package/esm2022/toggle/lib/brn-toggle-group.component.mjs +159 -0
- package/esm2022/toggle/lib/brn-toggle-group.token.mjs +9 -0
- package/esm2022/toggle/lib/brn-toggle.directive.mjs +65 -0
- package/esm2022/toggle/spartan-ng-brain-toggle.mjs +5 -0
- package/esm2022/tooltip/index.mjs +35 -0
- package/esm2022/tooltip/lib/brn-tooltip-content.component.mjs +228 -0
- package/esm2022/tooltip/lib/brn-tooltip-content.directive.mjs +22 -0
- package/esm2022/tooltip/lib/brn-tooltip-trigger.directive.mjs +689 -0
- package/esm2022/tooltip/lib/brn-tooltip.directive.mjs +15 -0
- package/esm2022/tooltip/spartan-ng-brain-tooltip.mjs +5 -0
- package/fesm2022/spartan-ng-brain-accordion.mjs +259 -0
- package/fesm2022/spartan-ng-brain-accordion.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-alert-dialog.mjs +162 -0
- package/fesm2022/spartan-ng-brain-alert-dialog.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-avatar.mjs +156 -0
- package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-calendar.mjs +629 -0
- package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-collapsible.mjs +152 -0
- package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-command.mjs +284 -0
- package/fesm2022/spartan-ng-brain-command.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-date-time-luxon.mjs +92 -0
- package/fesm2022/spartan-ng-brain-date-time-luxon.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-date-time.mjs +177 -0
- package/fesm2022/spartan-ng-brain-date-time.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-dialog.mjs +617 -0
- package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-form-field.mjs +21 -0
- package/fesm2022/spartan-ng-brain-form-field.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-forms.mjs +61 -0
- package/fesm2022/spartan-ng-brain-forms.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-hover-card.mjs +274 -0
- package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-label.mjs +69 -0
- package/fesm2022/spartan-ng-brain-label.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-menu.mjs +316 -0
- package/fesm2022/spartan-ng-brain-menu.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-popover.mjs +173 -0
- package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-progress.mjs +108 -0
- package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-radio-group.mjs +299 -0
- package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-select.mjs +928 -0
- package/fesm2022/spartan-ng-brain-select.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-separator.mjs +44 -0
- package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-sheet.mjs +197 -0
- package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-slider.mjs +399 -0
- package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-switch.mjs +271 -0
- package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-table.mjs +506 -0
- package/fesm2022/spartan-ng-brain-table.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-tabs.mjs +748 -0
- package/fesm2022/spartan-ng-brain-tabs.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-toggle.mjs +260 -0
- package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-tooltip.mjs +975 -0
- package/fesm2022/spartan-ng-brain-tooltip.mjs.map +1 -0
- package/form-field/README.md +3 -0
- package/form-field/index.d.ts +1 -0
- package/form-field/lib/brn-form-field-control.d.ts +11 -0
- package/forms/README.md +3 -0
- package/forms/index.d.ts +3 -0
- package/forms/lib/control-value-accessor.d.ts +2 -0
- package/forms/lib/error-options.d.ts +14 -0
- package/forms/lib/error-state-tracker.d.ts +15 -0
- package/hover-card/README.md +3 -0
- package/hover-card/index.d.ts +14 -0
- package/hover-card/lib/brn-hover-card-content.service.d.ts +65 -0
- package/hover-card/lib/brn-hover-card.component.d.ts +9 -0
- package/hover-card/lib/createHoverObservable.d.ts +4 -0
- package/label/README.md +3 -0
- package/label/index.d.ts +8 -0
- package/label/lib/brn-label.directive.d.ts +15 -0
- package/menu/README.md +3 -0
- package/menu/index.d.ts +49 -0
- package/menu/lib/brn-context-menu-trigger.directive.d.ts +13 -0
- package/menu/lib/brn-menu-align.d.ts +3 -0
- package/menu/lib/brn-menu-bar.directive.d.ts +6 -0
- package/menu/lib/brn-menu-group.directive.d.ts +6 -0
- package/menu/lib/brn-menu-item-checkbox.directive.d.ts +11 -0
- package/menu/lib/brn-menu-item-radio.directive.d.ts +11 -0
- package/menu/lib/brn-menu-item.directive.d.ts +10 -0
- package/menu/lib/brn-menu-trigger.directive.d.ts +10 -0
- package/menu/lib/brn-menu.directive.d.ts +11 -0
- package/package.json +182 -9
- package/popover/README.md +3 -0
- package/popover/index.d.ts +19 -0
- package/popover/lib/brn-popover-close.directive.d.ts +6 -0
- package/popover/lib/brn-popover-content.directive.d.ts +6 -0
- package/popover/lib/brn-popover-trigger.directive.d.ts +10 -0
- package/popover/lib/brn-popover.component.d.ts +14 -0
- package/progress/README.md +3 -0
- package/progress/index.d.ts +14 -0
- package/progress/lib/brn-progress-indicator.component.d.ts +6 -0
- package/progress/lib/brn-progress.component.d.ts +15 -0
- package/progress/lib/brn-progress.token.d.ts +4 -0
- package/radio-group/README.md +3 -0
- package/radio-group/index.d.ts +13 -0
- package/radio-group/lib/brn-radio-group.component.d.ts +57 -0
- package/radio-group/lib/brn-radio-group.token.d.ts +4 -0
- package/radio-group/lib/brn-radio.component.d.ts +58 -0
- package/select/README.md +3 -0
- package/select/index.d.ts +28 -0
- package/select/lib/brn-select-content.component.d.ts +50 -0
- package/select/lib/brn-select-group.directive.d.ts +6 -0
- package/select/lib/brn-select-label.directive.d.ts +9 -0
- package/select/lib/brn-select-option.directive.d.ts +25 -0
- package/select/lib/brn-select-value.component.d.ts +11 -0
- package/select/lib/brn-select.component.d.ts +82 -0
- package/select/lib/brn-select.service.d.ts +67 -0
- package/separator/README.md +3 -0
- package/separator/index.d.ts +8 -0
- package/separator/lib/brn-separator.component.d.ts +11 -0
- package/sheet/README.md +3 -0
- package/sheet/index.d.ts +28 -0
- package/sheet/lib/brn-sheet-close.directive.d.ts +6 -0
- package/sheet/lib/brn-sheet-content.directive.d.ts +8 -0
- package/sheet/lib/brn-sheet-description.directive.d.ts +6 -0
- package/sheet/lib/brn-sheet-overlay.component.d.ts +6 -0
- package/sheet/lib/brn-sheet-title.directive.d.ts +6 -0
- package/sheet/lib/brn-sheet-trigger.directive.d.ts +9 -0
- package/sheet/lib/brn-sheet.component.d.ts +9 -0
- package/slider/README.md +3 -0
- package/slider/index.d.ts +7 -0
- package/slider/lib/brn-slider-thumb.directive.d.ts +17 -0
- package/slider/lib/brn-slider-tick-mark.directive.d.ts +15 -0
- package/slider/lib/brn-slider-track-active-fill.directive.d.ts +10 -0
- package/slider/lib/brn-slider-track.directive.d.ts +139 -0
- package/switch/README.md +3 -0
- package/switch/index.d.ts +13 -0
- package/switch/lib/brn-switch-thumb.component.d.ts +5 -0
- package/switch/lib/brn-switch.component.d.ts +58 -0
- package/table/README.md +3 -0
- package/table/index.d.ts +26 -0
- package/table/lib/brn-cell-def.directive.d.ts +9 -0
- package/table/lib/brn-column-def.component.d.ts +18 -0
- package/table/lib/brn-column-manager.d.ts +26 -0
- package/table/lib/brn-footer-def.directive.d.ts +9 -0
- package/table/lib/brn-header-def.directive.d.ts +9 -0
- package/table/lib/brn-paginator.directive.d.ts +41 -0
- package/table/lib/brn-table.component.d.ts +37 -0
- package/tabs/README.md +3 -0
- package/tabs/index.d.ts +14 -0
- package/tabs/lib/brn-tabs-list.directive.d.ts +17 -0
- package/tabs/lib/brn-tabs-paginated-list.directive.d.ts +196 -0
- package/tabs/lib/brn-tabs-trigger.directive.d.ts +61 -0
- package/toggle/README.md +3 -0
- package/toggle/index.d.ts +15 -0
- package/toggle/lib/brn-toggle-group.component.d.ts +68 -0
- package/toggle/lib/brn-toggle-group.token.d.ts +4 -0
- package/toggle/lib/brn-toggle.directive.d.ts +25 -0
- package/tooltip/README.md +3 -0
- package/tooltip/index.d.ts +19 -0
- package/tooltip/lib/brn-tooltip-content.component.d.ts +73 -0
- package/tooltip/lib/brn-tooltip-content.directive.d.ts +8 -0
- package/tooltip/lib/brn-tooltip-trigger.directive.d.ts +177 -0
- package/tooltip/lib/brn-tooltip.directive.d.ts +7 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Signal } from '@angular/core';
|
|
2
|
+
type BrnColumnVisibility = Record<string, boolean> | Record<string, {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
}>;
|
|
5
|
+
type AllColumnsPropertyType<T> = T extends Record<string, boolean> ? (keyof T)[] : T extends Record<string, infer R> ? (R extends {
|
|
6
|
+
visible: boolean;
|
|
7
|
+
} ? {
|
|
8
|
+
name: keyof T;
|
|
9
|
+
} & R : never)[] : never;
|
|
10
|
+
export declare class BrnColumnManager<T extends BrnColumnVisibility> {
|
|
11
|
+
private readonly _initialColumnVisibility;
|
|
12
|
+
private readonly _columnVisibility;
|
|
13
|
+
readonly allColumns: AllColumnsPropertyType<T>;
|
|
14
|
+
readonly columnVisibility: Signal<T>;
|
|
15
|
+
readonly displayedColumns: Signal<(keyof T)[]>;
|
|
16
|
+
constructor(initialColumnVisibility: T);
|
|
17
|
+
readonly isColumnVisible: (columnName: string) => boolean;
|
|
18
|
+
readonly isColumnDisabled: (columnName: string) => boolean;
|
|
19
|
+
toggleVisibility(columnName: keyof T): void;
|
|
20
|
+
setVisible(columnName: keyof T): void;
|
|
21
|
+
setInvisible(columnName: keyof T): void;
|
|
22
|
+
private createAllColumns;
|
|
23
|
+
private isBooleanConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare const useBrnColumnManager: <T extends BrnColumnVisibility>(initialColumnVisibility: T) => BrnColumnManager<T>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CdkFooterCellDef } from '@angular/cdk/table';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BrnFooterDefDirective extends CdkFooterCellDef {
|
|
5
|
+
template: TemplateRef<unknown>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnFooterDefDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnFooterDefDirective, "[brnFooterDef]", ["brnFooterDef"], {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CdkHeaderCellDef } from '@angular/cdk/table';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BrnHeaderDefDirective extends CdkHeaderCellDef {
|
|
5
|
+
template: TemplateRef<unknown>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnHeaderDefDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnHeaderDefDirective, "[brnHeaderDef]", ["brnHeaderDef"], {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type OnInit, type Signal } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type PaginatorState = {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
startIndex: number;
|
|
6
|
+
endIndex: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
totalPages: number;
|
|
9
|
+
totalElements: number | null | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type PaginatorContext = {
|
|
12
|
+
$implicit: {
|
|
13
|
+
state: Signal<PaginatorState>;
|
|
14
|
+
incrementable: Signal<boolean>;
|
|
15
|
+
decrementable: Signal<boolean>;
|
|
16
|
+
increment: () => void;
|
|
17
|
+
decrement: () => void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare class BrnPaginatorDirective implements OnInit {
|
|
21
|
+
static ngTemplateContextGuard(_directive: BrnPaginatorDirective, _context: unknown): _context is PaginatorContext;
|
|
22
|
+
private readonly _vcr;
|
|
23
|
+
private readonly _template;
|
|
24
|
+
private readonly _state;
|
|
25
|
+
private readonly _decrementable;
|
|
26
|
+
private readonly _incrementable;
|
|
27
|
+
set totalElements(value: number | null | undefined);
|
|
28
|
+
set currentPage(value: number);
|
|
29
|
+
set pageSize(value: number);
|
|
30
|
+
onStateChange?: (state: PaginatorState) => void;
|
|
31
|
+
constructor();
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
decrementPage(): void;
|
|
34
|
+
incrementPage(): void;
|
|
35
|
+
reset(): void;
|
|
36
|
+
private calculateNewState;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnPaginatorDirective, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnPaginatorDirective, "[brnPaginator]", ["brnPaginator"], { "totalElements": { "alias": "brnPaginatorTotalElements"; "required": false; }; "currentPage": { "alias": "brnPaginatorCurrentPage"; "required": false; }; "pageSize": { "alias": "brnPaginatorPageSize"; "required": false; }; "onStateChange": { "alias": "brnPaginatorOnStateChange"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
static ngAcceptInputType_currentPage: unknown;
|
|
40
|
+
static ngAcceptInputType_pageSize: unknown;
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CdkRowDef, type CdkTableDataSourceInput } from '@angular/cdk/table';
|
|
2
|
+
import { type AfterContentInit, EventEmitter, type QueryList, type TrackByFunction } from '@angular/core';
|
|
3
|
+
import { type TableClassesSettable } from '@spartan-ng/ui-core';
|
|
4
|
+
import { BrnColumnDefComponent } from './brn-column-def.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type BrnTableDataSourceInput<T> = CdkTableDataSourceInput<T>;
|
|
7
|
+
export declare class BrnTableComponent<T> implements TableClassesSettable, AfterContentInit {
|
|
8
|
+
private readonly _cdkTable?;
|
|
9
|
+
dataSource: BrnTableDataSourceInput<T>;
|
|
10
|
+
fixedLayout: boolean;
|
|
11
|
+
multiTemplateDataRows: boolean;
|
|
12
|
+
displayedColumns: string[];
|
|
13
|
+
private _trackBy?;
|
|
14
|
+
get trackBy(): TrackByFunction<T> | undefined;
|
|
15
|
+
set trackBy(value: TrackByFunction<T>);
|
|
16
|
+
readonly contentChanged: EventEmitter<void>;
|
|
17
|
+
customTemplateDataRows: boolean;
|
|
18
|
+
onRowClick: ((element: T) => void) | undefined;
|
|
19
|
+
stickyHeader: boolean;
|
|
20
|
+
tableClasses: string;
|
|
21
|
+
headerRowClasses: string;
|
|
22
|
+
bodyRowClasses: string;
|
|
23
|
+
columnDefComponents: QueryList<BrnColumnDefComponent>;
|
|
24
|
+
rowDefs: QueryList<CdkRowDef<T>>;
|
|
25
|
+
ngAfterContentInit(): void;
|
|
26
|
+
setTableClasses({ table, headerRow, bodyRow, }: Partial<{
|
|
27
|
+
table: string;
|
|
28
|
+
headerRow: string;
|
|
29
|
+
bodyRow: string;
|
|
30
|
+
}>): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTableComponent<any>, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BrnTableComponent<any>, "brn-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "fixedLayout": { "alias": "fixedLayout"; "required": false; }; "multiTemplateDataRows": { "alias": "multiTemplateDataRows"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "customTemplateDataRows": { "alias": "customTemplateDataRows"; "required": false; }; "onRowClick": { "alias": "onRowClick"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "tableClasses": { "alias": "tableClasses"; "required": false; }; "headerRowClasses": { "alias": "headerRowClasses"; "required": false; }; "bodyRowClasses": { "alias": "bodyRowClasses"; "required": false; }; }, { "contentChanged": "contentChanged"; }, ["columnDefComponents", "rowDefs"], ["*", "[brnNoDataRow]"], true, never>;
|
|
33
|
+
static ngAcceptInputType_fixedLayout: unknown;
|
|
34
|
+
static ngAcceptInputType_multiTemplateDataRows: unknown;
|
|
35
|
+
static ngAcceptInputType_customTemplateDataRows: unknown;
|
|
36
|
+
static ngAcceptInputType_stickyHeader: unknown;
|
|
37
|
+
}
|
package/tabs/README.md
ADDED
package/tabs/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BrnTabsListDirective } from './lib/brn-tabs-list.directive';
|
|
2
|
+
import { BrnTabsContentDirective, BrnTabsDirective, BrnTabsTriggerDirective } from './lib/brn-tabs-trigger.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./lib/brn-tabs-trigger.directive";
|
|
5
|
+
import * as i2 from "./lib/brn-tabs-list.directive";
|
|
6
|
+
export * from './lib/brn-tabs-list.directive';
|
|
7
|
+
export * from './lib/brn-tabs-paginated-list.directive';
|
|
8
|
+
export * from './lib/brn-tabs-trigger.directive';
|
|
9
|
+
export declare const BrnTabsImports: readonly [typeof BrnTabsDirective, typeof BrnTabsListDirective, typeof BrnTabsTriggerDirective, typeof BrnTabsContentDirective];
|
|
10
|
+
export declare class BrnTabsModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTabsModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnTabsModule, never, [typeof i1.BrnTabsDirective, typeof i2.BrnTabsListDirective, typeof i1.BrnTabsTriggerDirective, typeof i1.BrnTabsContentDirective], [typeof i1.BrnTabsDirective, typeof i2.BrnTabsListDirective, typeof i1.BrnTabsTriggerDirective, typeof i1.BrnTabsContentDirective]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BrnTabsModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BrnTabsTriggerDirective } from './brn-tabs-trigger.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BrnTabsListDirective implements AfterContentInit {
|
|
5
|
+
private readonly _root;
|
|
6
|
+
protected readonly _orientation: import("@angular/core").InputSignal<import("./brn-tabs-trigger.directive").BrnTabsOrientation>;
|
|
7
|
+
private readonly _direction;
|
|
8
|
+
private readonly _activeTab;
|
|
9
|
+
private readonly _tabs;
|
|
10
|
+
private readonly _elementRef;
|
|
11
|
+
private readonly _keyDownListener;
|
|
12
|
+
private _keyManager?;
|
|
13
|
+
triggers: import("@angular/core").Signal<readonly BrnTabsTriggerDirective[]>;
|
|
14
|
+
ngAfterContentInit(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTabsListDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTabsListDirective, "[brnTabsList]", ["brnTabsList"], {}, {}, ["triggers"], never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* We are building on shoulders of giants here and adapt the implementation provided by the incredible Angular
|
|
3
|
+
* team: https://github.com/angular/components/blob/main/src/material/tabs/paginated-tab-header.ts
|
|
4
|
+
* Check them out! Give them a try! Leave a star! Their work is incredible!
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright Google LLC All Rights Reserved.
|
|
9
|
+
*
|
|
10
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
11
|
+
* found in the LICENSE file at https://angular.io/license
|
|
12
|
+
*/
|
|
13
|
+
import { type FocusableOption } from '@angular/cdk/a11y';
|
|
14
|
+
import { type Direction } from '@angular/cdk/bidi';
|
|
15
|
+
import { type AfterContentChecked, type AfterContentInit, type AfterViewInit, ChangeDetectorRef, ElementRef, type OnDestroy, Signal } from '@angular/core';
|
|
16
|
+
import { Observable, Subject } from 'rxjs';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
/**
|
|
19
|
+
* The directions that scrolling can go in when the header's tabs exceed the header width. 'After'
|
|
20
|
+
* will scroll the header towards the end of the tabs list and 'before' will scroll towards the
|
|
21
|
+
* beginning of the list.
|
|
22
|
+
*/
|
|
23
|
+
export type ScrollDirection = 'after' | 'before';
|
|
24
|
+
/** Item inside a paginated tab header. */
|
|
25
|
+
export type BrnPaginatedTabHeaderItem = FocusableOption & {
|
|
26
|
+
elementRef: ElementRef;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Base class for a tab header that supported pagination.
|
|
30
|
+
* @docs-private
|
|
31
|
+
*/
|
|
32
|
+
export declare abstract class BrnTabsPaginatedListDirective implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
33
|
+
abstract _items: Signal<ReadonlyArray<BrnPaginatedTabHeaderItem>>;
|
|
34
|
+
abstract _itemsChanges: Observable<ReadonlyArray<BrnPaginatedTabHeaderItem>>;
|
|
35
|
+
abstract _tabListContainer: Signal<ElementRef<HTMLElement>>;
|
|
36
|
+
abstract _tabList: Signal<ElementRef<HTMLElement>>;
|
|
37
|
+
abstract _tabListInner: Signal<ElementRef<HTMLElement>>;
|
|
38
|
+
abstract _nextPaginator: Signal<ElementRef<HTMLElement>>;
|
|
39
|
+
abstract _previousPaginator: Signal<ElementRef<HTMLElement>>;
|
|
40
|
+
/** The distance in pixels that the tab labels should be translated to the left. */
|
|
41
|
+
private _scrollDistance;
|
|
42
|
+
/** Whether the header should scroll to the selected index after the view has been checked. */
|
|
43
|
+
private _selectedIndexChanged;
|
|
44
|
+
private readonly _root;
|
|
45
|
+
private readonly _activeTab;
|
|
46
|
+
private readonly _tabs;
|
|
47
|
+
/** Emits when the component is destroyed. */
|
|
48
|
+
protected readonly _destroyed: Subject<void>;
|
|
49
|
+
/** Whether the controls for pagination should be displayed */
|
|
50
|
+
_showPaginationControls: import("@angular/core").WritableSignal<boolean>;
|
|
51
|
+
/** Whether the tab list can be scrolled more towards the end of the tab label list. */
|
|
52
|
+
_disableScrollAfter: boolean;
|
|
53
|
+
/** Whether the tab list can be scrolled more towards the beginning of the tab label list. */
|
|
54
|
+
_disableScrollBefore: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The number of tab labels that are displayed on the header. When this changes, the header
|
|
57
|
+
* should re-evaluate the scroll position.
|
|
58
|
+
*/
|
|
59
|
+
private _tabLabelCount;
|
|
60
|
+
/** Whether the scroll distance has changed and should be applied after the view is checked. */
|
|
61
|
+
private _scrollDistanceChanged;
|
|
62
|
+
/** Used to manage focus between the tabs. */
|
|
63
|
+
private _keyManager;
|
|
64
|
+
/** Cached text content of the header. */
|
|
65
|
+
private _currentTextContent;
|
|
66
|
+
/** Stream that will stop the automated scrolling. */
|
|
67
|
+
private readonly _stopScrolling;
|
|
68
|
+
/**
|
|
69
|
+
* Whether pagination should be disabled. This can be used to avoid unnecessary
|
|
70
|
+
* layout recalculations if it's known that pagination won't be required.
|
|
71
|
+
*/
|
|
72
|
+
disablePagination: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
73
|
+
/** The index of the active tab. */
|
|
74
|
+
private readonly _selectedIndex;
|
|
75
|
+
/** Event emitted when the option is selected. */
|
|
76
|
+
readonly selectFocusedIndex: import("@angular/core").OutputEmitterRef<number>;
|
|
77
|
+
/** Event emitted when a label is focused. */
|
|
78
|
+
readonly indexFocused: import("@angular/core").OutputEmitterRef<number>;
|
|
79
|
+
private readonly _sharedResizeObserver;
|
|
80
|
+
private readonly _injector;
|
|
81
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
82
|
+
protected _changeDetectorRef: ChangeDetectorRef;
|
|
83
|
+
private readonly _viewportRuler;
|
|
84
|
+
private readonly _dir;
|
|
85
|
+
private readonly _ngZone;
|
|
86
|
+
private readonly _platform;
|
|
87
|
+
_animationMode: "NoopAnimations" | "BrowserAnimations" | null;
|
|
88
|
+
constructor();
|
|
89
|
+
/** Called when the user has selected an item via the keyboard. */
|
|
90
|
+
protected abstract _itemSelected(event: KeyboardEvent): void;
|
|
91
|
+
ngAfterViewInit(): void;
|
|
92
|
+
ngAfterContentInit(): void;
|
|
93
|
+
/** Sends any changes that could affect the layout of the items. */
|
|
94
|
+
private _itemsResized;
|
|
95
|
+
ngAfterContentChecked(): void;
|
|
96
|
+
ngOnDestroy(): void;
|
|
97
|
+
/** Handles keyboard events on the header. */
|
|
98
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
99
|
+
/**
|
|
100
|
+
* Callback for when the MutationObserver detects that the content has changed.
|
|
101
|
+
*/
|
|
102
|
+
_onContentChanges(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Updates the view whether pagination should be enabled or not.
|
|
105
|
+
*
|
|
106
|
+
* WARNING: Calling this method can be very costly in terms of performance. It should be called
|
|
107
|
+
* as infrequently as possible from outside of the Tabs component as it causes a reflow of the
|
|
108
|
+
* page.
|
|
109
|
+
*/
|
|
110
|
+
updatePagination(): void;
|
|
111
|
+
/** Tracks which element has focus; used for keyboard navigation */
|
|
112
|
+
get focusIndex(): number;
|
|
113
|
+
/** When the focus index is set, we must manually send focus to the correct label */
|
|
114
|
+
set focusIndex(value: number);
|
|
115
|
+
/**
|
|
116
|
+
* Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
|
|
117
|
+
* providing a valid index and return true.
|
|
118
|
+
*/
|
|
119
|
+
_isValidIndex(index: number): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Sets focus on the HTML element for the label wrapper and scrolls it into the view if
|
|
122
|
+
* scrolling is enabled.
|
|
123
|
+
*/
|
|
124
|
+
_setTabFocus(tabIndex: number): void;
|
|
125
|
+
/** The layout direction of the containing app. */
|
|
126
|
+
_getLayoutDirection(): Direction;
|
|
127
|
+
/** Performs the CSS transformation on the tab list that will cause the list to scroll. */
|
|
128
|
+
_updateTabScrollPosition(): void;
|
|
129
|
+
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
|
|
130
|
+
get scrollDistance(): number;
|
|
131
|
+
set scrollDistance(value: number);
|
|
132
|
+
/**
|
|
133
|
+
* Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
|
|
134
|
+
* the end of the list, respectively). The distance to scroll is computed to be a third of the
|
|
135
|
+
* length of the tab list view window.
|
|
136
|
+
*
|
|
137
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
138
|
+
* should be called sparingly.
|
|
139
|
+
*/
|
|
140
|
+
_scrollHeader(direction: ScrollDirection): {
|
|
141
|
+
maxScrollDistance: number;
|
|
142
|
+
distance: number;
|
|
143
|
+
};
|
|
144
|
+
/** Handles click events on the pagination arrows. */
|
|
145
|
+
_handlePaginatorClick(direction: ScrollDirection): void;
|
|
146
|
+
/**
|
|
147
|
+
* Moves the tab list such that the desired tab label (marked by index) is moved into view.
|
|
148
|
+
*
|
|
149
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
150
|
+
* should be called sparingly.
|
|
151
|
+
*/
|
|
152
|
+
_scrollToLabel(labelIndex: number): void;
|
|
153
|
+
/**
|
|
154
|
+
* Evaluate whether the pagination controls should be displayed. If the scroll width of the
|
|
155
|
+
* tab list is wider than the size of the header container, then the pagination controls should
|
|
156
|
+
* be shown.
|
|
157
|
+
*
|
|
158
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
159
|
+
* should be called sparingly.
|
|
160
|
+
*/
|
|
161
|
+
_checkPaginationEnabled(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Evaluate whether the before and after controls should be enabled or disabled.
|
|
164
|
+
* If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
|
|
165
|
+
* before button. If the header is at the end of the list (scroll distance is equal to the
|
|
166
|
+
* maximum distance we can scroll), then disable the after button.
|
|
167
|
+
*
|
|
168
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
169
|
+
* should be called sparingly.
|
|
170
|
+
*/
|
|
171
|
+
_checkScrollingControls(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Determines what is the maximum length in pixels that can be set for the scroll distance. This
|
|
174
|
+
* is equal to the difference in width between the tab list container and tab header container.
|
|
175
|
+
*
|
|
176
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
177
|
+
* should be called sparingly.
|
|
178
|
+
*/
|
|
179
|
+
_getMaxScrollDistance(): number;
|
|
180
|
+
/** Stops the currently-running paginator interval. */
|
|
181
|
+
_stopInterval(): void;
|
|
182
|
+
/**
|
|
183
|
+
* Handles the user pressing down on one of the paginators.
|
|
184
|
+
* Starts scrolling the header after a certain amount of time.
|
|
185
|
+
* @param direction In which direction the paginator should be scrolled.
|
|
186
|
+
*/
|
|
187
|
+
_handlePaginatorPress(direction: ScrollDirection, mouseEvent?: MouseEvent): void;
|
|
188
|
+
/**
|
|
189
|
+
* Scrolls the header to a given position.
|
|
190
|
+
* @param position Position to which to scroll.
|
|
191
|
+
* @returns Information on the current scroll distance and the maximum.
|
|
192
|
+
*/
|
|
193
|
+
private _scrollTo;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTabsPaginatedListDirective, never>;
|
|
195
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTabsPaginatedListDirective, never, never, { "disablePagination": { "alias": "disablePagination"; "required": false; "isSignal": true; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, never, never, false, never>;
|
|
196
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BrnTabsContentDirective {
|
|
4
|
+
private readonly _root;
|
|
5
|
+
private readonly _elementRef;
|
|
6
|
+
readonly contentFor: import("@angular/core").InputSignal<string>;
|
|
7
|
+
protected readonly _isSelected: import("@angular/core").Signal<boolean>;
|
|
8
|
+
protected contentId: import("@angular/core").Signal<string>;
|
|
9
|
+
protected labelId: import("@angular/core").Signal<string>;
|
|
10
|
+
constructor();
|
|
11
|
+
focus(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTabsContentDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTabsContentDirective, "[brnTabsContent]", ["brnTabsContent"], { "contentFor": { "alias": "brnTabsContent"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
export type BrnTabsOrientation = 'horizontal' | 'vertical';
|
|
16
|
+
export type BrnTabsDirection = 'ltr' | 'rtl';
|
|
17
|
+
export type BrnActivationMode = 'automatic' | 'manual';
|
|
18
|
+
export declare class BrnTabsDirective {
|
|
19
|
+
readonly orientation: import("@angular/core").InputSignal<BrnTabsOrientation>;
|
|
20
|
+
/** internal **/
|
|
21
|
+
$orientation: import("@angular/core").InputSignal<BrnTabsOrientation>;
|
|
22
|
+
readonly direction: import("@angular/core").InputSignal<BrnTabsDirection>;
|
|
23
|
+
/** internal **/
|
|
24
|
+
$direction: import("@angular/core").InputSignal<BrnTabsDirection>;
|
|
25
|
+
readonly _activeTab: import("@angular/core").ModelSignal<string | undefined>;
|
|
26
|
+
/** internal **/
|
|
27
|
+
$activeTab: import("@angular/core").Signal<string | undefined>;
|
|
28
|
+
readonly activationMode: import("@angular/core").InputSignal<BrnActivationMode>;
|
|
29
|
+
/** internal **/
|
|
30
|
+
$activationMode: import("@angular/core").InputSignal<BrnActivationMode>;
|
|
31
|
+
readonly tabActivated: import("@angular/core").OutputEmitterRef<string>;
|
|
32
|
+
private readonly _tabs;
|
|
33
|
+
readonly $tabs: import("@angular/core").Signal<{
|
|
34
|
+
[key: string]: {
|
|
35
|
+
trigger: BrnTabsTriggerDirective;
|
|
36
|
+
content: BrnTabsContentDirective;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
registerTrigger(key: string, trigger: BrnTabsTriggerDirective): void;
|
|
40
|
+
registerContent(key: string, content: BrnTabsContentDirective): void;
|
|
41
|
+
emitTabActivated(key: string): void;
|
|
42
|
+
setActiveTab(key: string): void;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTabsDirective, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTabsDirective, "[brnTabs]", ["brnTabs"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "_activeTab": { "alias": "brnTabs"; "required": false; "isSignal": true; }; "activationMode": { "alias": "activationMode"; "required": false; "isSignal": true; }; }, { "_activeTab": "brnTabsChange"; "tabActivated": "tabActivated"; }, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
export declare class BrnTabsTriggerDirective {
|
|
47
|
+
readonly elementRef: ElementRef<any>;
|
|
48
|
+
private readonly _root;
|
|
49
|
+
protected readonly _orientation: import("@angular/core").InputSignal<BrnTabsOrientation>;
|
|
50
|
+
readonly triggerFor: import("@angular/core").InputSignal<string>;
|
|
51
|
+
readonly selected: import("@angular/core").Signal<boolean>;
|
|
52
|
+
protected readonly contentId: import("@angular/core").Signal<string>;
|
|
53
|
+
protected readonly labelId: import("@angular/core").Signal<string>;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
constructor();
|
|
56
|
+
focus(): void;
|
|
57
|
+
activate(): void;
|
|
58
|
+
get key(): string | undefined;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTabsTriggerDirective, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTabsTriggerDirective, "button[brnTabsTrigger]", ["brnTabsTrigger"], { "triggerFor": { "alias": "brnTabsTrigger"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
61
|
+
}
|
package/toggle/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./lib/brn-toggle.directive";
|
|
3
|
+
import * as i2 from "./lib/brn-toggle-group.component";
|
|
4
|
+
export * from './lib/brn-toggle-group.component';
|
|
5
|
+
export * from './lib/brn-toggle.directive';
|
|
6
|
+
export declare class BrnToggleModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnToggleModule, never, [typeof i1.BrnToggleDirective], [typeof i1.BrnToggleDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BrnToggleModule>;
|
|
10
|
+
}
|
|
11
|
+
export declare class BrnToggleGroupModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnToggleGroupModule, never, [typeof i1.BrnToggleDirective, typeof i2.BrnToggleGroupComponent], [typeof i1.BrnToggleDirective, typeof i2.BrnToggleGroupComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BrnToggleGroupModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { type ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { BrnToggleDirective } from './brn-toggle.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const BRN_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: {
|
|
6
|
+
provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
|
|
7
|
+
useExisting: import("@angular/core").Type<any>;
|
|
8
|
+
multi: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare class BrnButtonToggleChange<T = unknown> {
|
|
11
|
+
source: BrnToggleDirective<T>;
|
|
12
|
+
value: ToggleValue<T>;
|
|
13
|
+
constructor(source: BrnToggleDirective<T>, value: ToggleValue<T>);
|
|
14
|
+
}
|
|
15
|
+
export declare class BrnToggleGroupComponent<T = unknown> implements ControlValueAccessor {
|
|
16
|
+
/**
|
|
17
|
+
* The method to be called in order to update ngModel.
|
|
18
|
+
*/
|
|
19
|
+
private _onChange;
|
|
20
|
+
/** onTouch function registered via registerOnTouch (ControlValueAccessor). */
|
|
21
|
+
protected onTouched: () => void;
|
|
22
|
+
/** Whether the button toggle group has a vertical orientation */
|
|
23
|
+
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
24
|
+
/** Value of the toggle group. */
|
|
25
|
+
readonly value: import("@angular/core").ModelSignal<ToggleValue<T>>;
|
|
26
|
+
/** Whether no button toggles need to be selected. */
|
|
27
|
+
readonly nullable: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
28
|
+
/** Whether multiple button toggles can be selected. */
|
|
29
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
30
|
+
/** Whether the button toggle group is disabled. */
|
|
31
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
32
|
+
/** The internal state of the component. This can be replaced with linkedSignal in the future. */
|
|
33
|
+
readonly state: import("@angular/core").Signal<{
|
|
34
|
+
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
}>;
|
|
36
|
+
/** Emit event when the group value changes. */
|
|
37
|
+
readonly change: import("@angular/core").OutputEmitterRef<BrnButtonToggleChange<T>>;
|
|
38
|
+
writeValue(value: ToggleValue<T>): void;
|
|
39
|
+
registerOnChange(fn: (value: ToggleValue<T>) => void): void;
|
|
40
|
+
registerOnTouched(fn: () => void): void;
|
|
41
|
+
setDisabledState(isDisabled: boolean): void;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* Determines whether a value can be set on the group.
|
|
45
|
+
*/
|
|
46
|
+
canDeselect(value: ToggleValue<T>): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* Selects a value.
|
|
50
|
+
*/
|
|
51
|
+
select(value: T, source: BrnToggleDirective<T>): void;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* Deselects a value.
|
|
55
|
+
*/
|
|
56
|
+
deselect(value: T, source: BrnToggleDirective<T>): void;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* Determines whether a value is selected.
|
|
60
|
+
*/
|
|
61
|
+
isSelected(value: T): boolean;
|
|
62
|
+
/** Update the value of the group */
|
|
63
|
+
private emitSelectionChange;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupComponent<any>, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BrnToggleGroupComponent<any>, "brn-toggle-group", ["brnToggleGroup"], { "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "nullable": { "alias": "nullable"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "change": "change"; }, never, ["*"], true, never>;
|
|
66
|
+
}
|
|
67
|
+
type ToggleValue<T> = T | T[] | null | undefined;
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExistingProvider, Type } from '@angular/core';
|
|
2
|
+
import type { BrnToggleGroupComponent } from './brn-toggle-group.component';
|
|
3
|
+
export declare function injectBrnToggleGroup<T>(): BrnToggleGroupComponent<T> | null;
|
|
4
|
+
export declare function provideBrnToggleGroup<T>(value: Type<BrnToggleGroupComponent<T>>): ExistingProvider;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BrnToggleDirective<T> {
|
|
4
|
+
private static _uniqueId;
|
|
5
|
+
private readonly _changeDetector;
|
|
6
|
+
/** Access the toggle group if available. */
|
|
7
|
+
protected readonly group: import("@spartan-ng/brain/toggle").BrnToggleGroupComponent<T> | null;
|
|
8
|
+
/** The id of the toggle. */
|
|
9
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
10
|
+
/** The value this toggle represents. */
|
|
11
|
+
readonly value: import("@angular/core").InputSignal<T | undefined>;
|
|
12
|
+
/** Whether the toggle is disabled. */
|
|
13
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
14
|
+
/** The current state of the toggle when not used in a group. */
|
|
15
|
+
readonly state: import("@angular/core").ModelSignal<"on" | "off">;
|
|
16
|
+
/** Whether the toggle is responds to click events. */
|
|
17
|
+
readonly disableToggleClick: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
18
|
+
/** Whether the toggle is in the on state. */
|
|
19
|
+
protected readonly isOn: import("@angular/core").Signal<boolean>;
|
|
20
|
+
/** The current state that reflects the group state or the model state. */
|
|
21
|
+
protected readonly _state: import("@angular/core").Signal<"on" | "off">;
|
|
22
|
+
toggle(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleDirective<any>, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnToggleDirective<any>, "button[hlmToggle], button[brnToggle]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "disableToggleClick": { "alias": "disableToggleClick"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BrnTooltipContentComponent } from './lib/brn-tooltip-content.component';
|
|
2
|
+
import { BrnTooltipContentDirective } from './lib/brn-tooltip-content.directive';
|
|
3
|
+
import { BrnTooltipTriggerDirective } from './lib/brn-tooltip-trigger.directive';
|
|
4
|
+
import { BrnTooltipDirective } from './lib/brn-tooltip.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./lib/brn-tooltip.directive";
|
|
7
|
+
import * as i2 from "./lib/brn-tooltip-content.directive";
|
|
8
|
+
import * as i3 from "./lib/brn-tooltip-trigger.directive";
|
|
9
|
+
import * as i4 from "./lib/brn-tooltip-content.component";
|
|
10
|
+
export * from './lib/brn-tooltip-content.component';
|
|
11
|
+
export * from './lib/brn-tooltip-content.directive';
|
|
12
|
+
export * from './lib/brn-tooltip-trigger.directive';
|
|
13
|
+
export * from './lib/brn-tooltip.directive';
|
|
14
|
+
export declare const BrnTooltipImports: readonly [typeof BrnTooltipDirective, typeof BrnTooltipContentDirective, typeof BrnTooltipTriggerDirective, typeof BrnTooltipContentComponent];
|
|
15
|
+
export declare class BrnTooltipModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTooltipModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnTooltipModule, never, [typeof i1.BrnTooltipDirective, typeof i2.BrnTooltipContentDirective, typeof i3.BrnTooltipTriggerDirective, typeof i4.BrnTooltipContentComponent], [typeof i1.BrnTooltipDirective, typeof i2.BrnTooltipContentDirective, typeof i3.BrnTooltipTriggerDirective, typeof i4.BrnTooltipContentComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BrnTooltipModule>;
|
|
19
|
+
}
|