@ardium-pl/ui 5.0.0-alpha.106
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/README.md +25 -0
- package/fesm2022/ardium-pl-ui.mjs +18003 -0
- package/fesm2022/ardium-pl-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/_internal/boolean-component.d.ts +65 -0
- package/lib/_internal/clear-button/clear-button.component.d.ts +7 -0
- package/lib/_internal/clear-button/clear-button.module.d.ts +8 -0
- package/lib/_internal/disablable-component.d.ts +24 -0
- package/lib/_internal/focusable-component.d.ts +56 -0
- package/lib/_internal/form-field-component.d.ts +22 -0
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +79 -0
- package/lib/_internal/item-storages/simple-item-storage.d.ts +167 -0
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +75 -0
- package/lib/_internal/models/pagination.model.d.ts +49 -0
- package/lib/_internal/models/queue.d.ts +21 -0
- package/lib/_internal/ngmodel-component.d.ts +58 -0
- package/lib/_internal/public-api.d.ts +3 -0
- package/lib/_internal/selectable-list-component.d.ts +76 -0
- package/lib/_internal/utils/context-to-inputs.d.ts +3 -0
- package/lib/_internal/utils/date.utils.d.ts +21 -0
- package/lib/badge/badge.defaults.d.ts +13 -0
- package/lib/badge/badge.directive.d.ts +27 -0
- package/lib/badge/badge.module.d.ts +8 -0
- package/lib/badge/badge.types.d.ts +17 -0
- package/lib/badge/index.d.ts +4 -0
- package/lib/breakpoints/breakpoint.service.d.ts +12 -0
- package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
- package/lib/breakpoints/breakpoints.d.ts +13 -0
- package/lib/breakpoints/index.d.ts +2 -0
- package/lib/buttons/_button-base.d.ts +25 -0
- package/lib/buttons/_button-base.defaults.d.ts +17 -0
- package/lib/buttons/button/button.component.d.ts +22 -0
- package/lib/buttons/button/button.defaults.d.ts +10 -0
- package/lib/buttons/button/button.directive.d.ts +23 -0
- package/lib/buttons/button/button.module.d.ts +9 -0
- package/lib/buttons/button/index.d.ts +4 -0
- package/lib/buttons/button-group/button-group.component.d.ts +25 -0
- package/lib/buttons/button-group/button-group.defaults.d.ts +7 -0
- package/lib/buttons/button-group/button-group.module.d.ts +8 -0
- package/lib/buttons/button-group/index.d.ts +3 -0
- package/lib/buttons/fab/fab.component.d.ts +13 -0
- package/lib/buttons/fab/fab.defaults.d.ts +8 -0
- package/lib/buttons/fab/fab.module.d.ts +8 -0
- package/lib/buttons/fab/index.d.ts +3 -0
- package/lib/buttons/general-button.types.d.ts +57 -0
- package/lib/buttons/icon-button/icon-button.component.d.ts +20 -0
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +7 -0
- package/lib/buttons/icon-button/icon-button.module.d.ts +8 -0
- package/lib/buttons/icon-button/index.d.ts +3 -0
- package/lib/calendar/abstract-calendar.d.ts +135 -0
- package/lib/calendar/calendar.component.d.ts +15 -0
- package/lib/calendar/calendar.defaults.d.ts +34 -0
- package/lib/calendar/calendar.directives.d.ts +51 -0
- package/lib/calendar/calendar.internal-directives.d.ts +33 -0
- package/lib/calendar/calendar.internal-types.d.ts +5 -0
- package/lib/calendar/calendar.module.d.ts +10 -0
- package/lib/calendar/calendar.types.d.ts +111 -0
- package/lib/calendar/index.d.ts +8 -0
- package/lib/calendar/range-calendar.component.d.ts +17 -0
- package/lib/calendar/range-calendar.directives.d.ts +51 -0
- package/lib/calendar/range-calendar.module.d.ts +10 -0
- package/lib/calendar/views/calendar-views.module.d.ts +13 -0
- package/lib/calendar/views/days-view/days-view.component.d.ts +86 -0
- package/lib/calendar/views/days-view/days-view.helpers.d.ts +20 -0
- package/lib/calendar/views/months-view/months-view.component.d.ts +73 -0
- package/lib/calendar/views/months-view/months-view.helpers.d.ts +3 -0
- package/lib/calendar/views/years-view/years-view.component.d.ts +71 -0
- package/lib/calendar/views/years-view/years-view.helpers.d.ts +3 -0
- package/lib/card/card.children.d.ts +44 -0
- package/lib/card/card.component.d.ts +15 -0
- package/lib/card/card.defaults.d.ts +10 -0
- package/lib/card/card.module.d.ts +9 -0
- package/lib/card/card.types.d.ts +10 -0
- package/lib/card/index.d.ts +5 -0
- package/lib/checkbox/checkbox.component.d.ts +38 -0
- package/lib/checkbox/checkbox.defaults.d.ts +12 -0
- package/lib/checkbox/checkbox.directives.d.ts +15 -0
- package/lib/checkbox/checkbox.internal-directives.d.ts +10 -0
- package/lib/checkbox/checkbox.module.d.ts +10 -0
- package/lib/checkbox/checkbox.types.d.ts +22 -0
- package/lib/checkbox/index.d.ts +5 -0
- package/lib/checkbox-list/checkbox-list.component.d.ts +55 -0
- package/lib/checkbox-list/checkbox-list.defaults.d.ts +20 -0
- package/lib/checkbox-list/checkbox-list.directives.d.ts +16 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +11 -0
- package/lib/checkbox-list/checkbox-list.types.d.ts +11 -0
- package/lib/checkbox-list/index.d.ts +5 -0
- package/lib/chip/chip.component.d.ts +20 -0
- package/lib/chip/chip.defaults.d.ts +15 -0
- package/lib/chip/chip.module.d.ts +11 -0
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +23 -0
- package/lib/chip/deletable-chip/deletable-chip.defaults.d.ts +8 -0
- package/lib/chip/index.d.ts +7 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +25 -0
- package/lib/chip/selectable-chip/selectable-chip.defaults.d.ts +9 -0
- package/lib/dialog/dialog.component.d.ts +47 -0
- package/lib/dialog/dialog.defaults.d.ts +19 -0
- package/lib/dialog/dialog.directives.d.ts +15 -0
- package/lib/dialog/dialog.module.d.ts +11 -0
- package/lib/dialog/dialog.types.d.ts +38 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.component.d.ts +6 -0
- package/lib/divider/divider.defaults.d.ts +11 -0
- package/lib/divider/divider.directive.d.ts +18 -0
- package/lib/divider/divider.module.d.ts +9 -0
- package/lib/divider/divider.types.d.ts +5 -0
- package/lib/divider/index.d.ts +5 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +36 -0
- package/lib/dropdown-panel/dropdown-panel.defaults.d.ts +10 -0
- package/lib/dropdown-panel/dropdown-panel.module.d.ts +8 -0
- package/lib/dropdown-panel/dropdown-panel.types.d.ts +12 -0
- package/lib/dropdown-panel/index.d.ts +4 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.component.d.ts +26 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.defaults.d.ts +10 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.directives.d.ts +21 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.module.d.ts +12 -0
- package/lib/file-inputs/file-drop-area/index.d.ts +4 -0
- package/lib/file-inputs/file-input/file-input.component.d.ts +38 -0
- package/lib/file-inputs/file-input/file-input.defaults.d.ts +17 -0
- package/lib/file-inputs/file-input/file-input.directives.d.ts +46 -0
- package/lib/file-inputs/file-input/file-input.module.d.ts +13 -0
- package/lib/file-inputs/file-input/index.d.ts +4 -0
- package/lib/file-inputs/file-input-base.d.ts +60 -0
- package/lib/file-inputs/file-input-base.defaults.d.ts +7 -0
- package/lib/file-inputs/file-input-types.d.ts +41 -0
- package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
- package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
- package/lib/form-field/error/error.component.d.ts +6 -0
- package/lib/form-field/error/error.directive.d.ts +9 -0
- package/lib/form-field/form-field-base.d.ts +30 -0
- package/lib/form-field/form-field-child.token.d.ts +8 -0
- package/lib/form-field/form-field-native-inputs.d.ts +17 -0
- package/lib/form-field/form-field.component.d.ts +7 -0
- package/lib/form-field/form-field.defaults.d.ts +11 -0
- package/lib/form-field/form-field.module.d.ts +17 -0
- package/lib/form-field/hint/hint.component.d.ts +6 -0
- package/lib/form-field/hint/hint.directive.d.ts +9 -0
- package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
- package/lib/form-field/hint-error/hint-error.directive.d.ts +9 -0
- package/lib/form-field/horizontal-form-field.component.d.ts +7 -0
- package/lib/form-field/index.d.ts +15 -0
- package/lib/form-field/label/label.component.d.ts +12 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +43 -0
- package/lib/form-field-frame/form-field-frame.defaults.d.ts +13 -0
- package/lib/form-field-frame/form-field-frame.directives.d.ts +15 -0
- package/lib/form-field-frame/form-field-frame.module.d.ts +9 -0
- package/lib/form-field-frame/form-field-frame.types.d.ts +10 -0
- package/lib/form-field-frame/index.d.ts +5 -0
- package/lib/grid/grid.component.d.ts +63 -0
- package/lib/grid/grid.defaults.d.ts +16 -0
- package/lib/grid/grid.module.d.ts +7 -0
- package/lib/grid/grid.types.d.ts +38 -0
- package/lib/grid/grid.utils.d.ts +20 -0
- package/lib/grid/index.d.ts +4 -0
- package/lib/icon/icon.component.d.ts +28 -0
- package/lib/icon/icon.defaults.d.ts +11 -0
- package/lib/icon/icon.module.d.ts +9 -0
- package/lib/icon/icon.pipe.d.ts +7 -0
- package/lib/icon/index.d.ts +4 -0
- package/lib/inputs/_simple-input-base.d.ts +67 -0
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +69 -0
- package/lib/inputs/autocomplete-input/autocomplete-input.defaults.d.ts +18 -0
- package/lib/inputs/autocomplete-input/autocomplete-input.directives.d.ts +34 -0
- package/lib/inputs/autocomplete-input/autocomplete-input.module.d.ts +13 -0
- package/lib/inputs/autocomplete-input/index.d.ts +4 -0
- package/lib/inputs/date-input/abstract-date-input.d.ts +109 -0
- package/lib/inputs/date-input/date-input.component.d.ts +52 -0
- package/lib/inputs/date-input/date-input.defaults.d.ts +54 -0
- package/lib/inputs/date-input/date-input.directives.d.ts +83 -0
- package/lib/inputs/date-input/date-input.module.d.ts +17 -0
- package/lib/inputs/date-input/date-input.serializers.d.ts +5 -0
- package/lib/inputs/date-input/date-input.types.d.ts +17 -0
- package/lib/inputs/date-input/date-range-input.component.d.ts +36 -0
- package/lib/inputs/date-input/date-range-input.directives.d.ts +83 -0
- package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
- package/lib/inputs/date-input/index.d.ts +11 -0
- package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +50 -0
- package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +83 -0
- package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +62 -0
- package/lib/inputs/digit-input/digit-input.defaults.d.ts +16 -0
- package/lib/inputs/digit-input/digit-input.model.d.ts +27 -0
- package/lib/inputs/digit-input/digit-input.module.d.ts +9 -0
- package/lib/inputs/digit-input/digit-input.types.d.ts +30 -0
- package/lib/inputs/digit-input/digit-input.utils.d.ts +20 -0
- package/lib/inputs/digit-input/index.d.ts +4 -0
- package/lib/inputs/hex-input/hex-input.component.d.ts +57 -0
- package/lib/inputs/hex-input/hex-input.defaults.d.ts +22 -0
- package/lib/inputs/hex-input/hex-input.directives.d.ts +21 -0
- package/lib/inputs/hex-input/hex-input.model.d.ts +26 -0
- package/lib/inputs/hex-input/hex-input.module.d.ts +11 -0
- package/lib/inputs/hex-input/index.d.ts +4 -0
- package/lib/inputs/input/index.d.ts +4 -0
- package/lib/inputs/input/input.component.d.ts +15 -0
- package/lib/inputs/input/input.defaults.d.ts +9 -0
- package/lib/inputs/input/input.directives.d.ts +21 -0
- package/lib/inputs/input/input.module.d.ts +11 -0
- package/lib/inputs/input-transformers.d.ts +24 -0
- package/lib/inputs/input-types.d.ts +15 -0
- package/lib/inputs/input-utils.d.ts +66 -0
- package/lib/inputs/number-input/index.d.ts +4 -0
- package/lib/inputs/number-input/number-input.component.d.ts +78 -0
- package/lib/inputs/number-input/number-input.defaults.d.ts +28 -0
- package/lib/inputs/number-input/number-input.directives.d.ts +21 -0
- package/lib/inputs/number-input/number-input.module.d.ts +11 -0
- package/lib/inputs/number-input/number-input.types.d.ts +6 -0
- package/lib/inputs/password-input/index.d.ts +5 -0
- package/lib/inputs/password-input/password-input.component.d.ts +48 -0
- package/lib/inputs/password-input/password-input.defaults.d.ts +20 -0
- package/lib/inputs/password-input/password-input.directives.d.ts +28 -0
- package/lib/inputs/password-input/password-input.module.d.ts +11 -0
- package/lib/inputs/password-input/password-input.types.d.ts +3 -0
- package/lib/kbd/index.d.ts +5 -0
- package/lib/kbd/kbd.component.d.ts +15 -0
- package/lib/kbd/kbd.defaults.d.ts +8 -0
- package/lib/kbd/kbd.directive.d.ts +13 -0
- package/lib/kbd/kbd.module.d.ts +10 -0
- package/lib/kbd/kbd.pipe.d.ts +8 -0
- package/lib/kbd-shortcut/index.d.ts +3 -0
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +18 -0
- package/lib/kbd-shortcut/kbd-shortcut.defaults.d.ts +8 -0
- package/lib/kbd-shortcut/kbd-shortcut.module.d.ts +9 -0
- package/lib/modal/index.d.ts +5 -0
- package/lib/modal/modal.component.d.ts +39 -0
- package/lib/modal/modal.defaults.d.ts +18 -0
- package/lib/modal/modal.directives.d.ts +8 -0
- package/lib/modal/modal.module.d.ts +12 -0
- package/lib/modal/modal.types.d.ts +3 -0
- package/lib/option/index.d.ts +2 -0
- package/lib/option/option.component.d.ts +25 -0
- package/lib/option/option.module.d.ts +8 -0
- package/lib/progress-bar/index.d.ts +4 -0
- package/lib/progress-bar/progress-bar.component.d.ts +18 -0
- package/lib/progress-bar/progress-bar.defaults.d.ts +13 -0
- package/lib/progress-bar/progress-bar.module.d.ts +8 -0
- package/lib/progress-bar/progress-bar.types.d.ts +22 -0
- package/lib/progress-circle/index.d.ts +5 -0
- package/lib/progress-circle/progress-circle.component.d.ts +25 -0
- package/lib/progress-circle/progress-circle.defaults.d.ts +15 -0
- package/lib/progress-circle/progress-circle.directive.d.ts +9 -0
- package/lib/progress-circle/progress-circle.module.d.ts +9 -0
- package/lib/progress-circle/progress-circle.types.d.ts +20 -0
- package/lib/radio/index.d.ts +4 -0
- package/lib/radio/radio/radio.component.d.ts +68 -0
- package/lib/radio/radio/radio.defaults.d.ts +8 -0
- package/lib/radio/radio-group.component.d.ts +40 -0
- package/lib/radio/radio.module.d.ts +9 -0
- package/lib/search-functions.d.ts +10 -0
- package/lib/segment/index.d.ts +5 -0
- package/lib/segment/segment.component.d.ts +40 -0
- package/lib/segment/segment.defaults.d.ts +18 -0
- package/lib/segment/segment.directives.d.ts +8 -0
- package/lib/segment/segment.module.d.ts +9 -0
- package/lib/segment/segment.types.d.ts +17 -0
- package/lib/select/index.d.ts +5 -0
- package/lib/select/select.component.d.ts +230 -0
- package/lib/select/select.defaults.d.ts +70 -0
- package/lib/select/select.directive.d.ts +95 -0
- package/lib/select/select.module.d.ts +14 -0
- package/lib/select/select.types.d.ts +60 -0
- package/lib/select/select.utils.d.ts +2 -0
- package/lib/slide-toggle/index.d.ts +4 -0
- package/lib/slide-toggle/slide-toggle.component.d.ts +21 -0
- package/lib/slide-toggle/slide-toggle.defaults.d.ts +14 -0
- package/lib/slide-toggle/slide-toggle.module.d.ts +8 -0
- package/lib/slide-toggle/slide-toggle.types.d.ts +5 -0
- package/lib/slider/abstract-slider.d.ts +96 -0
- package/lib/slider/index.d.ts +8 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +37 -0
- package/lib/slider/range-slider/range-slider.module.d.ts +8 -0
- package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
- package/lib/slider/slider.component.d.ts +24 -0
- package/lib/slider/slider.defaults.d.ts +6 -0
- package/lib/slider/slider.directive.d.ts +9 -0
- package/lib/slider/slider.module.d.ts +10 -0
- package/lib/slider/slider.types.d.ts +28 -0
- package/lib/snackbar/index.d.ts +4 -0
- package/lib/snackbar/snackbar-ref.d.ts +69 -0
- package/lib/snackbar/snackbar.component.d.ts +16 -0
- package/lib/snackbar/snackbar.service.d.ts +57 -0
- package/lib/snackbar/snackbar.token.d.ts +5 -0
- package/lib/snackbar/snackbar.types.d.ts +84 -0
- package/lib/spinner/index.d.ts +3 -0
- package/lib/spinner/spinner.component.d.ts +9 -0
- package/lib/spinner/spinner.defaults.d.ts +7 -0
- package/lib/spinner/spinner.module.d.ts +8 -0
- package/lib/stack/index.d.ts +3 -0
- package/lib/stack/stack.component.d.ts +26 -0
- package/lib/stack/stack.defaults.d.ts +14 -0
- package/lib/stack/stack.module.d.ts +7 -0
- package/lib/star/index.d.ts +5 -0
- package/lib/star/rating-display/index.d.ts +5 -0
- package/lib/star/rating-display/rating-display.component.d.ts +18 -0
- package/lib/star/rating-display/rating-display.defaults.d.ts +9 -0
- package/lib/star/rating-display/rating-display.directives.d.ts +9 -0
- package/lib/star/rating-display/rating-display.module.d.ts +10 -0
- package/lib/star/rating-display/rating-display.types.d.ts +8 -0
- package/lib/star/rating-input/index.d.ts +5 -0
- package/lib/star/rating-input/rating-input.component.d.ts +48 -0
- package/lib/star/rating-input/rating-input.defaults.d.ts +9 -0
- package/lib/star/rating-input/rating-input.directives.d.ts +9 -0
- package/lib/star/rating-input/rating-input.module.d.ts +10 -0
- package/lib/star/rating-input/rating-input.types.d.ts +12 -0
- package/lib/star/star-button/index.d.ts +5 -0
- package/lib/star/star-button/star-button.component.d.ts +26 -0
- package/lib/star/star-button/star-button.defaults.d.ts +10 -0
- package/lib/star/star-button/star-button.directives.d.ts +9 -0
- package/lib/star/star-button/star-button.module.d.ts +10 -0
- package/lib/star/star-button/star-button.types.d.ts +7 -0
- package/lib/star/star.component.d.ts +15 -0
- package/lib/star/star.defaults.d.ts +8 -0
- package/lib/star/star.directives.d.ts +9 -0
- package/lib/star/star.module.d.ts +10 -0
- package/lib/star/star.types.d.ts +33 -0
- package/lib/tabber/index.d.ts +6 -0
- package/lib/tabber/tab/tab.component.d.ts +27 -0
- package/lib/tabber/tabber.component.d.ts +44 -0
- package/lib/tabber/tabber.defaults.d.ts +14 -0
- package/lib/tabber/tabber.directives.d.ts +9 -0
- package/lib/tabber/tabber.module.d.ts +10 -0
- package/lib/tabber/tabber.types.d.ts +5 -0
- package/lib/table/index.d.ts +5 -0
- package/lib/table/table-item-storage.d.ts +273 -0
- package/lib/table/table.component.d.ts +111 -0
- package/lib/table/table.defaults.d.ts +50 -0
- package/lib/table/table.directives.d.ts +36 -0
- package/lib/table/table.module.d.ts +13 -0
- package/lib/table/table.types.d.ts +83 -0
- package/lib/table/utils.d.ts +4 -0
- package/lib/table-from-csv/index.d.ts +3 -0
- package/lib/table-from-csv/table-from-csv.component.d.ts +55 -0
- package/lib/table-from-csv/table-from-csv.defaults.d.ts +7 -0
- package/lib/table-from-csv/table-from-csv.module.d.ts +9 -0
- package/lib/table-pagination/index.d.ts +4 -0
- package/lib/table-pagination/table-pagination.component.d.ts +40 -0
- package/lib/table-pagination/table-pagination.defaults.d.ts +20 -0
- package/lib/table-pagination/table-pagination.module.d.ts +11 -0
- package/lib/table-pagination/table-pagination.types.d.ts +9 -0
- package/lib/text-list/index.d.ts +3 -0
- package/lib/text-list/text-list.component.d.ts +9 -0
- package/lib/text-list/text-list.module.d.ts +9 -0
- package/lib/text-list/text-list.pipe.d.ts +7 -0
- package/lib/types/alignment.types.d.ts +17 -0
- package/lib/types/button.types.d.ts +6 -0
- package/lib/types/colors.types.d.ts +71 -0
- package/lib/types/item-storage.types.d.ts +50 -0
- package/lib/types/theming.types.d.ts +62 -0
- package/lib/types/utility.types.d.ts +16 -0
- package/package.json +39 -0
- package/prebuilt-themes/default/badge.css +237 -0
- package/prebuilt-themes/default/badge.css.map +1 -0
- package/prebuilt-themes/default/buttons/button-group.css +19 -0
- package/prebuilt-themes/default/buttons/button-group.css.map +1 -0
- package/prebuilt-themes/default/buttons/button.css +339 -0
- package/prebuilt-themes/default/buttons/button.css.map +1 -0
- package/prebuilt-themes/default/buttons/fab.css +330 -0
- package/prebuilt-themes/default/buttons/fab.css.map +1 -0
- package/prebuilt-themes/default/buttons/icon-button.css +304 -0
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -0
- package/prebuilt-themes/default/calendar.css +393 -0
- package/prebuilt-themes/default/calendar.css.map +1 -0
- package/prebuilt-themes/default/card.css +154 -0
- package/prebuilt-themes/default/card.css.map +1 -0
- package/prebuilt-themes/default/checkbox-list.css +101 -0
- package/prebuilt-themes/default/checkbox-list.css.map +1 -0
- package/prebuilt-themes/default/checkbox.css +383 -0
- package/prebuilt-themes/default/checkbox.css.map +1 -0
- package/prebuilt-themes/default/chips.css +421 -0
- package/prebuilt-themes/default/chips.css.map +1 -0
- package/prebuilt-themes/default/color-display.css +37 -0
- package/prebuilt-themes/default/color-display.css.map +1 -0
- package/prebuilt-themes/default/color-picker.css +108 -0
- package/prebuilt-themes/default/color-picker.css.map +1 -0
- package/prebuilt-themes/default/core.css +112 -0
- package/prebuilt-themes/default/core.css.map +1 -0
- package/prebuilt-themes/default/dialog.css +22 -0
- package/prebuilt-themes/default/dialog.css.map +1 -0
- package/prebuilt-themes/default/divider.css +87 -0
- package/prebuilt-themes/default/divider.css.map +1 -0
- package/prebuilt-themes/default/dropdown-panel.css +45 -0
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -0
- package/prebuilt-themes/default/file-drop-area.css +332 -0
- package/prebuilt-themes/default/file-drop-area.css.map +1 -0
- package/prebuilt-themes/default/form-field-frame.css +105 -0
- package/prebuilt-themes/default/form-field-frame.css.map +1 -0
- package/prebuilt-themes/default/form-field.css +153 -0
- package/prebuilt-themes/default/form-field.css.map +1 -0
- package/prebuilt-themes/default/inputs/autocomplete-input.css +198 -0
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/color-input.css +108 -0
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/date-input.css +152 -0
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/digit-input.css +129 -0
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/file-input.css +399 -0
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/hex-input.css +165 -0
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/input.css +152 -0
- package/prebuilt-themes/default/inputs/input.css.map +1 -0
- package/prebuilt-themes/default/inputs/number-input.css +230 -0
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/password-input.css +132 -0
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -0
- package/prebuilt-themes/default/kbd-shortcut.css +17 -0
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -0
- package/prebuilt-themes/default/kbd.css +29 -0
- package/prebuilt-themes/default/kbd.css.map +1 -0
- package/prebuilt-themes/default/modal.css +99 -0
- package/prebuilt-themes/default/modal.css.map +1 -0
- package/prebuilt-themes/default/progress-bar.css +286 -0
- package/prebuilt-themes/default/progress-bar.css.map +1 -0
- package/prebuilt-themes/default/progress-circle.css +181 -0
- package/prebuilt-themes/default/progress-circle.css.map +1 -0
- package/prebuilt-themes/default/radio.css +261 -0
- package/prebuilt-themes/default/radio.css.map +1 -0
- package/prebuilt-themes/default/segment.css +441 -0
- package/prebuilt-themes/default/segment.css.map +1 -0
- package/prebuilt-themes/default/select.css +322 -0
- package/prebuilt-themes/default/select.css.map +1 -0
- package/prebuilt-themes/default/slide-toggle.css +322 -0
- package/prebuilt-themes/default/slide-toggle.css.map +1 -0
- package/prebuilt-themes/default/slider.css +428 -0
- package/prebuilt-themes/default/slider.css.map +1 -0
- package/prebuilt-themes/default/snackbar.css +202 -0
- package/prebuilt-themes/default/snackbar.css.map +1 -0
- package/prebuilt-themes/default/spinner.css +164 -0
- package/prebuilt-themes/default/spinner.css.map +1 -0
- package/prebuilt-themes/default/stars.css +284 -0
- package/prebuilt-themes/default/stars.css.map +1 -0
- package/prebuilt-themes/default/tabber.css +253 -0
- package/prebuilt-themes/default/tabber.css.map +1 -0
- package/prebuilt-themes/default/table-pagination.css +60 -0
- package/prebuilt-themes/default/table-pagination.css.map +1 -0
- package/prebuilt-themes/default/table.css +467 -0
- package/prebuilt-themes/default/table.css.map +1 -0
- package/public-api.d.ts +59 -0
- package/themes/_variables.scss +124 -0
- package/themes/default/_clear-button.scss +78 -0
- package/themes/default/_coloring.scss +144 -0
- package/themes/default/_dropdown-arrow.scss +12 -0
- package/themes/default/_mixins.scss +91 -0
- package/themes/default/badge.scss +129 -0
- package/themes/default/buttons/_button-mixins.scss +152 -0
- package/themes/default/buttons/button-group.scss +19 -0
- package/themes/default/buttons/button.scss +119 -0
- package/themes/default/buttons/fab.scss +112 -0
- package/themes/default/buttons/icon-button.scss +91 -0
- package/themes/default/calendar.scss +298 -0
- package/themes/default/card.scss +181 -0
- package/themes/default/checkbox-list.scss +125 -0
- package/themes/default/checkbox.scss +123 -0
- package/themes/default/chips.scss +269 -0
- package/themes/default/color-display.scss +53 -0
- package/themes/default/color-picker.scss +113 -0
- package/themes/default/core.scss +129 -0
- package/themes/default/dialog.scss +25 -0
- package/themes/default/divider.scss +115 -0
- package/themes/default/dropdown-panel.scss +60 -0
- package/themes/default/file-drop-area.scss +221 -0
- package/themes/default/form-field-frame.scss +91 -0
- package/themes/default/form-field.scss +161 -0
- package/themes/default/inputs/_shared.scss +99 -0
- package/themes/default/inputs/autocomplete-input.scss +119 -0
- package/themes/default/inputs/color-input.scss +48 -0
- package/themes/default/inputs/date-input.scss +106 -0
- package/themes/default/inputs/digit-input.scss +138 -0
- package/themes/default/inputs/file-input.scss +187 -0
- package/themes/default/inputs/hex-input.scss +81 -0
- package/themes/default/inputs/input.scss +63 -0
- package/themes/default/inputs/number-input.scss +214 -0
- package/themes/default/inputs/password-input.scss +116 -0
- package/themes/default/kbd-shortcut.scss +21 -0
- package/themes/default/kbd.scss +40 -0
- package/themes/default/modal.scss +130 -0
- package/themes/default/progress-bar.scss +181 -0
- package/themes/default/progress-circle.scss +64 -0
- package/themes/default/radio.scss +154 -0
- package/themes/default/segment.scss +383 -0
- package/themes/default/select.scss +327 -0
- package/themes/default/slide-toggle.scss +228 -0
- package/themes/default/slider.scss +287 -0
- package/themes/default/snackbar.scss +78 -0
- package/themes/default/spinner.scss +31 -0
- package/themes/default/stars.scss +133 -0
- package/themes/default/tabber.scss +131 -0
- package/themes/default/table-pagination.scss +72 -0
- package/themes/default/table.scss +459 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { Nullable } from '../types/utility.types';
|
|
3
|
+
import { SortType, TableDataColumn, TablePaginationStrategy, TableSubheader } from './table.types';
|
|
4
|
+
export declare class ArdTableRow {
|
|
5
|
+
private readonly _itemData;
|
|
6
|
+
readonly itemData: Signal<any>;
|
|
7
|
+
private readonly _index;
|
|
8
|
+
readonly index: Signal<number>;
|
|
9
|
+
private readonly _isEmpty;
|
|
10
|
+
readonly isEmpty: Signal<boolean>;
|
|
11
|
+
private readonly _data;
|
|
12
|
+
readonly data: Signal<any[]>;
|
|
13
|
+
private readonly _dataColumns;
|
|
14
|
+
readonly dataColumns: Signal<TableDataColumn[]>;
|
|
15
|
+
private readonly _class;
|
|
16
|
+
readonly class: Signal<string>;
|
|
17
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
readonly bold: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
readonly selected: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
readonly highlighted: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
constructor(itemData: any, index: number, data: any[], dataColumns: TableDataColumn[], disabled: boolean, bold: boolean, isEmpty?: boolean);
|
|
22
|
+
static newEmptyCell(index: number): ArdTableRow;
|
|
23
|
+
}
|
|
24
|
+
export interface TableItemStorageHost {
|
|
25
|
+
readonly rowDisabledFrom: Signal<string>;
|
|
26
|
+
readonly rowBoldFrom: Signal<string>;
|
|
27
|
+
readonly invertRowDisabled: Signal<boolean>;
|
|
28
|
+
readonly invertRowBold: Signal<boolean>;
|
|
29
|
+
readonly data: Signal<Nullable<any>>[];
|
|
30
|
+
readonly maxSelectedItems: Signal<Nullable<number>>;
|
|
31
|
+
readonly treatDataSourceAsString: Signal<boolean>;
|
|
32
|
+
readonly paginated: Signal<boolean>;
|
|
33
|
+
readonly paginationStrategy: Signal<TablePaginationStrategy>;
|
|
34
|
+
readonly itemsPerPage: Signal<number>;
|
|
35
|
+
readonly page: Signal<number>;
|
|
36
|
+
}
|
|
37
|
+
export declare class HeaderCell {
|
|
38
|
+
readonly cell: import("@angular/core").WritableSignal<TableDataColumn | TableSubheader>;
|
|
39
|
+
readonly colspan: import("@angular/core").WritableSignal<number>;
|
|
40
|
+
readonly rowspan: import("@angular/core").WritableSignal<number>;
|
|
41
|
+
constructor(cell: TableDataColumn | TableSubheader, colspan?: number, rowspan?: number);
|
|
42
|
+
get width(): string | null;
|
|
43
|
+
get minWidth(): string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Thransforms a numeric width into a CSS string if needed. Pure function.
|
|
46
|
+
* @param width the width to be converted.
|
|
47
|
+
* @returns The width expressed as a CSS-compatible string or null.
|
|
48
|
+
*/
|
|
49
|
+
private _getWidth;
|
|
50
|
+
}
|
|
51
|
+
export declare class TableItemStorage {
|
|
52
|
+
private readonly _ardParentComp;
|
|
53
|
+
private readonly _items;
|
|
54
|
+
private readonly _sortedItems;
|
|
55
|
+
private readonly _dataColumns;
|
|
56
|
+
private readonly _headerCells;
|
|
57
|
+
constructor(_ardParentComp: TableItemStorageHost);
|
|
58
|
+
/**
|
|
59
|
+
* Gets all items.
|
|
60
|
+
*/
|
|
61
|
+
readonly items: Signal<ArdTableRow[]>;
|
|
62
|
+
readonly sortedItems: Signal<ArdTableRow[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Gets items based on the current pagination state.
|
|
65
|
+
*/
|
|
66
|
+
readonly paginatedItems: Signal<ArdTableRow[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Gets all currently selected items.
|
|
69
|
+
*/
|
|
70
|
+
readonly selectedItems: Signal<ArdTableRow[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Gets all currently highlighted items.
|
|
73
|
+
*/
|
|
74
|
+
readonly highlightedItems: Signal<ArdTableRow[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Gets all highlightable items. An item is considered highlightable if it is **not** disabled.
|
|
77
|
+
*/
|
|
78
|
+
readonly highlightableItems: Signal<ArdTableRow[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Gets the values of the currently selected items.
|
|
81
|
+
*/
|
|
82
|
+
readonly value: Signal<any[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Maps an array of items into their values.
|
|
85
|
+
* @param items The items to convert to value.
|
|
86
|
+
* @returns An array of item values.
|
|
87
|
+
*/
|
|
88
|
+
private _itemsToValue;
|
|
89
|
+
/**
|
|
90
|
+
* Returns true if at least one item is highlighted, otherwise false.
|
|
91
|
+
*/
|
|
92
|
+
readonly isAnyItemHighlighted: Signal<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Checks if any item in the table is selected.
|
|
95
|
+
* @returns A boolean value indicating if any item is selected.
|
|
96
|
+
*/
|
|
97
|
+
readonly isAnyItemSelected: Signal<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Checks if all items in the table are selected.
|
|
100
|
+
* @returns A boolean value indicating if all items are selected.
|
|
101
|
+
*/
|
|
102
|
+
readonly areAllSelected: Signal<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns true if the parent component defines the limit of concurrently selectable items and the amount of currently selected items matches that limit. Otherwise returns false.
|
|
105
|
+
*
|
|
106
|
+
* **TLDR**: true if `maxSelectedItems` is defined and the number of selected items matches that value.
|
|
107
|
+
*/
|
|
108
|
+
readonly isItemLimitReached: Signal<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Gets the header cells of the table.
|
|
111
|
+
* @returns a 2D array of header cells.
|
|
112
|
+
*/
|
|
113
|
+
readonly headerCells: Signal<HeaderCell[][]>;
|
|
114
|
+
/**
|
|
115
|
+
* Checks if the table has defined columns.
|
|
116
|
+
* @returns a boolean value indicating if the table has defined columns.
|
|
117
|
+
*/
|
|
118
|
+
readonly hasDefinedColumns: Signal<boolean>;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the columns of the table.
|
|
121
|
+
* @param cols an array of table data columns or table subheaders.
|
|
122
|
+
*/
|
|
123
|
+
setColumns(cols: (TableDataColumn | TableSubheader)[]): void;
|
|
124
|
+
/**
|
|
125
|
+
* Filters out null values from the header cells array. Pure function.
|
|
126
|
+
* @param cells a 2D array of header cells or null values.
|
|
127
|
+
* @returns a 2D array of header cells without null values and empty arrays.
|
|
128
|
+
*/
|
|
129
|
+
private _filterHeaderCells;
|
|
130
|
+
/**
|
|
131
|
+
* Extracts the data sources from the columns array. Pure function.
|
|
132
|
+
* @param cols an array of table data columns or table subheaders.
|
|
133
|
+
* @returns an array of table data columns.
|
|
134
|
+
*/
|
|
135
|
+
private _extractDataSources;
|
|
136
|
+
/**
|
|
137
|
+
* Gets the maximum nesting level of the columns array. Pure function.
|
|
138
|
+
* @param cols an array of table data columns or table subheaders.
|
|
139
|
+
* @returns the maximum nesting level as a number.
|
|
140
|
+
*/
|
|
141
|
+
private _getHeaderMaxNesting;
|
|
142
|
+
/**
|
|
143
|
+
* Maps the columns tree to a 2D array of header cells or null values. Pure function.
|
|
144
|
+
* @param cols an array of table data columns or table subheaders.
|
|
145
|
+
* @param maxNesting the maximum nesting level of the columns array.
|
|
146
|
+
* @param currentNesting the current nesting level of the columns array.
|
|
147
|
+
* @returns a 2D array of header cells or null values.
|
|
148
|
+
*/
|
|
149
|
+
private _mapColumnsToArray;
|
|
150
|
+
/**
|
|
151
|
+
* Sets the component's items. Takes into account the values defined by the parent component for `rowDisabledFrom`, `rowBoldFrom`, and `rowHighlightedFrom`.
|
|
152
|
+
* @param items An array of items to be set as the component's items.
|
|
153
|
+
*/
|
|
154
|
+
setItems(items: any[]): void;
|
|
155
|
+
/**
|
|
156
|
+
* Maps raw item data to an {@link ArdTableRow} object.
|
|
157
|
+
*
|
|
158
|
+
* @param {any} rawItemData - The raw data of the item.
|
|
159
|
+
* @param {number} index - The index of the item.
|
|
160
|
+
* @returns {ArdTableRow} Returns an ArdTableRow object with mapped properties.
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
private _setItemsMapFn;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieves data for a row based on data columns configuration.
|
|
166
|
+
*
|
|
167
|
+
* @param {any} rawItemData - The raw data of the item.
|
|
168
|
+
* @param {number} index - The index of the item.
|
|
169
|
+
* @returns {any[]} Returns an array containing the row data.
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
172
|
+
private _getRowData;
|
|
173
|
+
/**
|
|
174
|
+
* Writes a new value to the item storage. Selects the correct items based on the provided values, warning the user if the value is not found.
|
|
175
|
+
* @param indexes The value of the ngModel to set.
|
|
176
|
+
*/
|
|
177
|
+
writeValue(indexes: number[]): void;
|
|
178
|
+
/**
|
|
179
|
+
* Checks if an item with the given index is selected.
|
|
180
|
+
*
|
|
181
|
+
* @param {number} index The index of the item to check.
|
|
182
|
+
* @returns {boolean} _true_ if the item is selected, otherwise _false_.
|
|
183
|
+
*/
|
|
184
|
+
isItemSelected(index: number): boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Selects all items.
|
|
187
|
+
*
|
|
188
|
+
* Accounts for the limit of concurrently selected items defined by the parent component.
|
|
189
|
+
* @returns a tuple containing two arrays:
|
|
190
|
+
* * An array of items selected.
|
|
191
|
+
* * An array of items failed to select.
|
|
192
|
+
*/
|
|
193
|
+
selectAll(): [any[], any[]];
|
|
194
|
+
/**
|
|
195
|
+
* Unselects all selected items.
|
|
196
|
+
*
|
|
197
|
+
* If the parent component requires at least one value to be selected at all times, the first selected items is left selected.
|
|
198
|
+
* @returns An array of items cleared, mapped to only their values.
|
|
199
|
+
*/
|
|
200
|
+
unselectAll(): any[];
|
|
201
|
+
/**
|
|
202
|
+
* Unselects all selected items, no matter what the component settings are.
|
|
203
|
+
* @returns An array of items cleared, mapped to only their values.
|
|
204
|
+
*/
|
|
205
|
+
private _forceUnselectAll;
|
|
206
|
+
/**
|
|
207
|
+
* Selects one or multiple items.
|
|
208
|
+
*
|
|
209
|
+
* Accounts for the limit of concurrently selected items defined by the parent component.
|
|
210
|
+
*
|
|
211
|
+
* @param indexes A rest operator array of item indexes to be selected.
|
|
212
|
+
* @returns a tuple containing two arrays:
|
|
213
|
+
* - An array of items selected.
|
|
214
|
+
* - An array of items failed to select.
|
|
215
|
+
*/
|
|
216
|
+
selectItem(...indexes: number[]): [any[], any[]];
|
|
217
|
+
/**
|
|
218
|
+
* Unselects one or multiple items.
|
|
219
|
+
* @param items A rest operator array of item indexes to be unselected.
|
|
220
|
+
* @returns An array of items unselected, mapped to only their values.
|
|
221
|
+
*/
|
|
222
|
+
unselectItem(...indexes: number[]): any[];
|
|
223
|
+
/**
|
|
224
|
+
* Unhighlights all currently highlighted items.
|
|
225
|
+
*/
|
|
226
|
+
unhighlightAll(): void;
|
|
227
|
+
/**
|
|
228
|
+
* Highlights the given item, while unhighlighting all other items. Does nothing when the item is disabled.
|
|
229
|
+
* @param item The index of the item to be highlighted.
|
|
230
|
+
* @returns The highlighted item.
|
|
231
|
+
*/
|
|
232
|
+
highlightSingleItem(index: number): ArdTableRow | null;
|
|
233
|
+
/**
|
|
234
|
+
* Highlights all given items.
|
|
235
|
+
* @param items A rest operator array of item indexes to be highlighted.
|
|
236
|
+
* @returns The last highlighted item.
|
|
237
|
+
*/
|
|
238
|
+
highlightItem(...indexes: number[]): ArdTableRow;
|
|
239
|
+
/**
|
|
240
|
+
* Unhighlights all given items.
|
|
241
|
+
* @param items A rest operator array of item indexes to be unhighlighted.
|
|
242
|
+
*/
|
|
243
|
+
unhighlightItem(...indexes: number[]): void;
|
|
244
|
+
/**
|
|
245
|
+
* Highlights the first item out of all items.
|
|
246
|
+
* @returns The highlighted item.
|
|
247
|
+
*/
|
|
248
|
+
highlightFirstItem(): ArdTableRow | null;
|
|
249
|
+
/**
|
|
250
|
+
* Highlights the last item out of all items.
|
|
251
|
+
* @returns The highlighted item.
|
|
252
|
+
*/
|
|
253
|
+
highlightLastItem(): ArdTableRow | null;
|
|
254
|
+
/**
|
|
255
|
+
* Highlights all non-disabled items.
|
|
256
|
+
*/
|
|
257
|
+
highlightAllItems(): void;
|
|
258
|
+
/**
|
|
259
|
+
* Highlights the next non-disabled item defined by the offset amount.
|
|
260
|
+
*
|
|
261
|
+
* If `hasShift` is set to true, all originally highlighted items are kept. Otherwise, all original items are unselected.
|
|
262
|
+
* @param offset The amount of items to offset the highlight by.
|
|
263
|
+
* @param hasShift Whether the user has the shift key pressed.
|
|
264
|
+
* @returns The item highlighted.
|
|
265
|
+
*/
|
|
266
|
+
highlightNextItem(offset: number, hasShift?: boolean): ArdTableRow | null;
|
|
267
|
+
private _currentSortColumn;
|
|
268
|
+
private _currentSortType;
|
|
269
|
+
toggleCurrentSortColumn(column: number): void;
|
|
270
|
+
resetSort(): void;
|
|
271
|
+
getColumnSortType(column: number): SortType | null;
|
|
272
|
+
private _generateSortedRows;
|
|
273
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { AfterContentInit, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { BooleanLike, NumberLike } from '@ardium-ui/devkit';
|
|
3
|
+
import { _FocusableComponentBase } from '../_internal/focusable-component';
|
|
4
|
+
import { ProgressBarMode } from '../progress-bar';
|
|
5
|
+
import { CurrentItemsFormatFn, PaginationAlign } from '../table-pagination/table-pagination.types';
|
|
6
|
+
import { ComponentColor, SimpleComponentColor } from '../types/colors.types';
|
|
7
|
+
import { Nullable } from '../types/utility.types';
|
|
8
|
+
import { ArdTableRow, HeaderCell, TableItemStorageHost } from './table-item-storage';
|
|
9
|
+
import { ArdTableDefaults } from './table.defaults';
|
|
10
|
+
import { ArdiumTableTemplateDirective } from './table.directives';
|
|
11
|
+
import { TableAlignType, TableAppearance, TableCaptionContext, TableCheckboxContext, TableDataColumn, TableHeaderCheckboxContext, TableHeaderContext, TablePaginationStrategy, TableSubheader, TableSubheaderContext, TableVariant } from './table.types';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class ArdiumTableComponent extends _FocusableComponentBase implements TableItemStorageHost, AfterContentInit, OnChanges {
|
|
14
|
+
protected readonly _DEFAULTS: ArdTableDefaults;
|
|
15
|
+
constructor(defaults: ArdTableDefaults);
|
|
16
|
+
private readonly _itemStorage;
|
|
17
|
+
readonly rowDisabledFrom: import("@angular/core").InputSignal<string>;
|
|
18
|
+
readonly rowBoldFrom: import("@angular/core").InputSignal<string>;
|
|
19
|
+
readonly invertRowDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
20
|
+
readonly invertRowBold: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
21
|
+
readonly selectableRows: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
22
|
+
readonly maxSelectedItems: import("@angular/core").InputSignalWithTransform<Nullable<number>, any>;
|
|
23
|
+
readonly clickableRows: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
24
|
+
readonly caption: import("@angular/core").InputSignal<Nullable<string>>;
|
|
25
|
+
readonly isLoading: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
26
|
+
readonly loadingProgress: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
27
|
+
readonly loadingProgressBuffer: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
|
|
28
|
+
readonly loadingBarMode: import("@angular/core").InputSignal<ProgressBarMode>;
|
|
29
|
+
readonly loadingBarColor: import("@angular/core").InputSignal<ComponentColor>;
|
|
30
|
+
readonly appearance: import("@angular/core").InputSignal<TableAppearance>;
|
|
31
|
+
readonly variant: import("@angular/core").InputSignal<TableVariant>;
|
|
32
|
+
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
33
|
+
readonly align: import("@angular/core").InputSignal<TableAlignType>;
|
|
34
|
+
readonly headerAlign: import("@angular/core").InputSignal<TableAlignType>;
|
|
35
|
+
readonly compact: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
36
|
+
readonly zebra: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
37
|
+
readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
38
|
+
readonly ngClasses: import("@angular/core").Signal<string>;
|
|
39
|
+
readonly paginated: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
40
|
+
readonly paginationStrategy: import("@angular/core").InputSignal<TablePaginationStrategy>;
|
|
41
|
+
readonly paginationOptions: import("@angular/core").InputSignalWithTransform<number[] | {
|
|
42
|
+
value: number;
|
|
43
|
+
label: string;
|
|
44
|
+
}[], number[] | {
|
|
45
|
+
value: number;
|
|
46
|
+
label: string;
|
|
47
|
+
}[]>;
|
|
48
|
+
readonly totalItems: import("@angular/core").InputSignalWithTransform<Nullable<number>, any>;
|
|
49
|
+
readonly paginationColor: import("@angular/core").InputSignal<ComponentColor>;
|
|
50
|
+
readonly paginationAlign: import("@angular/core").InputSignal<PaginationAlign>;
|
|
51
|
+
readonly itemsPerPageText: import("@angular/core").InputSignal<string>;
|
|
52
|
+
readonly currentItemsFormatFn: import("@angular/core").InputSignal<CurrentItemsFormatFn>;
|
|
53
|
+
readonly pageFillRemaining: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
54
|
+
readonly paginationDisabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
55
|
+
readonly useFirstLastButtons: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
56
|
+
readonly itemsPerPage: import("@angular/core").ModelSignal<number>;
|
|
57
|
+
readonly page: import("@angular/core").ModelSignal<number>;
|
|
58
|
+
readonly isDefinedTotalItems: import("@angular/core").Signal<boolean>;
|
|
59
|
+
readonly canDisplayPagination: import("@angular/core").Signal<boolean>;
|
|
60
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
61
|
+
readonly headerCells: import("@angular/core").Signal<HeaderCell[][]>;
|
|
62
|
+
readonly dataRows: import("@angular/core").Signal<ArdTableRow[]>;
|
|
63
|
+
set columns(v: (TableDataColumn | TableSubheader)[]);
|
|
64
|
+
private _data;
|
|
65
|
+
set data(v: any[]);
|
|
66
|
+
get data(): any[];
|
|
67
|
+
readonly treatDataSourceAsString: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
|
|
68
|
+
readonly checkboxTemplate: import("@angular/core").Signal<TemplateRef<TableCheckboxContext> | undefined>;
|
|
69
|
+
readonly headerCheckboxTemplate: import("@angular/core").Signal<TemplateRef<TableHeaderCheckboxContext> | undefined>;
|
|
70
|
+
readonly captionTemplate: import("@angular/core").Signal<TemplateRef<TableCaptionContext> | undefined>;
|
|
71
|
+
private _itemTemplates;
|
|
72
|
+
readonly templateChildren: import("@angular/core").Signal<readonly ArdiumTableTemplateDirective[]>;
|
|
73
|
+
ngAfterContentInit(): void;
|
|
74
|
+
getHeaderTemplate(tmp: string | {
|
|
75
|
+
template: string | TemplateRef<any>;
|
|
76
|
+
}): TemplateRef<any> | undefined;
|
|
77
|
+
getHeaderCheckboxColor(): SimpleComponentColor;
|
|
78
|
+
getCellTemplate(tmp?: string | TemplateRef<any>): TemplateRef<any> | undefined;
|
|
79
|
+
getCellStyle(cell: TableDataColumn | TableSubheader): string;
|
|
80
|
+
onCheckboxClick(index: number): void;
|
|
81
|
+
onRowClick(row: ArdTableRow, event: MouseEvent): void;
|
|
82
|
+
onRowMouseOver(event: MouseEvent): void;
|
|
83
|
+
onRowMouseEnter(index: number, event: MouseEvent): void;
|
|
84
|
+
onRowMouseLeave(index: number, event: MouseEvent): void;
|
|
85
|
+
/**
|
|
86
|
+
* Toggles the selection state of a row in the table.
|
|
87
|
+
* @param selected a boolean value indicating if the row is currently selected.
|
|
88
|
+
* @param index the index of the row in the table.
|
|
89
|
+
*/
|
|
90
|
+
toggleRowSelected(index: number): void;
|
|
91
|
+
/**
|
|
92
|
+
* Toggles the selection state of all rows in the table.
|
|
93
|
+
*/
|
|
94
|
+
toggleAllRowsSelected(): void;
|
|
95
|
+
private _emitSelect;
|
|
96
|
+
isCellCheckbox(cell: any): boolean;
|
|
97
|
+
isHeaderCellCheckbox(cell: HeaderCell): boolean;
|
|
98
|
+
isHeaderCellSortable(cell: HeaderCell): boolean;
|
|
99
|
+
readonly selectedRowsChangeEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
100
|
+
readonly failedSelectRowEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
101
|
+
readonly selectRowEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
102
|
+
readonly unselectRowEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
103
|
+
readonly clickRowEvent: import("@angular/core").OutputEmitterRef<any>;
|
|
104
|
+
getHeaderContext(cell: TableDataColumn, index: number): TableHeaderContext | null;
|
|
105
|
+
getHeaderContext(cell: TableSubheader, index: number): TableSubheaderContext | null;
|
|
106
|
+
getHeaderContext(cell: TableDataColumn | TableSubheader, index: number): TableHeaderContext | TableSubheaderContext | null;
|
|
107
|
+
readonly getHeaderCheckboxContext: import("@angular/core").Signal<TableHeaderCheckboxContext>;
|
|
108
|
+
getCheckboxContext(index: number): TableCheckboxContext;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableComponent, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTableComponent, "ard-table", never, { "rowDisabledFrom": { "alias": "rowDisabledFrom"; "required": false; "isSignal": true; }; "rowBoldFrom": { "alias": "rowBoldFrom"; "required": false; "isSignal": true; }; "invertRowDisabled": { "alias": "invertRowDisabled"; "required": false; "isSignal": true; }; "invertRowBold": { "alias": "invertRowBold"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "loadingProgress": { "alias": "loadingProgress"; "required": false; "isSignal": true; }; "loadingProgressBuffer": { "alias": "loadingProgressBuffer"; "required": false; "isSignal": true; }; "loadingBarMode": { "alias": "loadingBarMode"; "required": false; "isSignal": true; }; "loadingBarColor": { "alias": "loadingBarColor"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "headerAlign": { "alias": "headerAlign"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "paginated": { "alias": "paginated"; "required": false; "isSignal": true; }; "paginationStrategy": { "alias": "paginationStrategy"; "required": false; "isSignal": true; }; "paginationOptions": { "alias": "paginationOptions"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "paginationColor": { "alias": "paginationColor"; "required": false; "isSignal": true; }; "paginationAlign": { "alias": "paginationAlign"; "required": false; "isSignal": true; }; "itemsPerPageText": { "alias": "itemsPerPageText"; "required": false; "isSignal": true; }; "currentItemsFormatFn": { "alias": "currentItemsFormatFn"; "required": false; "isSignal": true; }; "pageFillRemaining": { "alias": "pageFillRemaining"; "required": false; "isSignal": true; }; "paginationDisabled": { "alias": "paginationDisabled"; "required": false; "isSignal": true; }; "useFirstLastButtons": { "alias": "useFirstLastButtons"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "treatDataSourceAsString": { "alias": "treatDataSourceAsString"; "required": false; "isSignal": true; }; }, { "itemsPerPage": "itemsPerPageChange"; "page": "pageChange"; "selectedRowsChangeEvent": "selectedRowsChange"; "failedSelectRowEvent": "failedSelectRow"; "selectRowEvent": "selectRow"; "unselectRowEvent": "unselectRow"; "clickRowEvent": "clickRow"; }, ["checkboxTemplate", "headerCheckboxTemplate", "captionTemplate", "templateChildren"], never, false, never>;
|
|
111
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { _FocusableComponentDefaults } from '../_internal/focusable-component';
|
|
3
|
+
import { ProgressBarMode } from '../progress-bar';
|
|
4
|
+
import { CurrentItemsFormatFn, PaginationAlign } from '../table-pagination';
|
|
5
|
+
import { TableAlignType, TableAppearance, TablePaginationStrategy, TableVariant } from '../table/table.types';
|
|
6
|
+
import { ComponentColor } from '../types/colors.types';
|
|
7
|
+
import { Nullable } from '../types/utility.types';
|
|
8
|
+
export interface ArdTableDefaults extends _FocusableComponentDefaults {
|
|
9
|
+
rowDisabledFrom: string;
|
|
10
|
+
rowBoldFrom: string;
|
|
11
|
+
invertRowDisabled: boolean;
|
|
12
|
+
invertRowBold: boolean;
|
|
13
|
+
selectableRows: boolean;
|
|
14
|
+
maxSelectedItems: Nullable<number>;
|
|
15
|
+
clickableRows: boolean;
|
|
16
|
+
caption: Nullable<string>;
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
loadingProgress: number;
|
|
19
|
+
loadingProgressBuffer: number;
|
|
20
|
+
loadingBarMode: ProgressBarMode;
|
|
21
|
+
loadingBarColor: ComponentColor;
|
|
22
|
+
appearance: TableAppearance;
|
|
23
|
+
variant: TableVariant;
|
|
24
|
+
color: ComponentColor;
|
|
25
|
+
align: TableAlignType;
|
|
26
|
+
headerAlign: TableAlignType;
|
|
27
|
+
compact: boolean;
|
|
28
|
+
zebra: boolean;
|
|
29
|
+
stickyHeader: boolean;
|
|
30
|
+
paginated: boolean;
|
|
31
|
+
paginationStrategy: TablePaginationStrategy;
|
|
32
|
+
paginationOptions: number[] | {
|
|
33
|
+
value: number;
|
|
34
|
+
label: string;
|
|
35
|
+
}[];
|
|
36
|
+
totalItems: Nullable<number>;
|
|
37
|
+
paginationColor: ComponentColor;
|
|
38
|
+
paginationAlign: PaginationAlign;
|
|
39
|
+
itemsPerPageText: string;
|
|
40
|
+
currentItemsFormatFn: CurrentItemsFormatFn;
|
|
41
|
+
pageFillRemaining: boolean;
|
|
42
|
+
paginationDisabled: boolean;
|
|
43
|
+
useFirstLastButtons: boolean;
|
|
44
|
+
itemsPerPage: number;
|
|
45
|
+
page: number;
|
|
46
|
+
treatDataSourceAsString: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare const _tableDefaults: ArdTableDefaults;
|
|
49
|
+
export declare const ARD_TABLE_DEFAULTS: InjectionToken<ArdTableDefaults>;
|
|
50
|
+
export declare function provideTableDefaults(config: Partial<ArdTableDefaults>): Provider;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { PaginationContext } from '../_internal/models/pagination.model';
|
|
3
|
+
import { Nullable } from '../types/utility.types';
|
|
4
|
+
import { TableCaptionContext, TableCheckboxContext } from './table.types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ArdiumTableTemplateDirective {
|
|
7
|
+
template: TemplateRef<any>;
|
|
8
|
+
readonly name: import("@angular/core").InputSignal<Nullable<string>>;
|
|
9
|
+
constructor(template: TemplateRef<any>);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableTemplateDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableTemplateDirective, "ard-table > ng-template[ard-table-tmp]", never, { "name": { "alias": "ard-table-tmp"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class ArdiumTableCheckboxTemplateDirective {
|
|
14
|
+
template: TemplateRef<TableCheckboxContext>;
|
|
15
|
+
constructor(template: TemplateRef<TableCheckboxContext>);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableCheckboxTemplateDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableCheckboxTemplateDirective, "ard-table > ng-template[ard-table-checkbox-tmp]", never, {}, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
19
|
+
export declare class ArdiumTableHeaderCheckboxTemplateDirective {
|
|
20
|
+
template: TemplateRef<TableCheckboxContext>;
|
|
21
|
+
constructor(template: TemplateRef<TableCheckboxContext>);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableHeaderCheckboxTemplateDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableHeaderCheckboxTemplateDirective, "ard-table > ng-template[ard-table-header-checkbox-tmp]", never, {}, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
25
|
+
export declare class ArdiumTableCaptionTemplateDirective {
|
|
26
|
+
template: TemplateRef<TableCaptionContext>;
|
|
27
|
+
constructor(template: TemplateRef<TableCaptionContext>);
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableCaptionTemplateDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableCaptionTemplateDirective, "ard-table > ng-template[ard-table-caption-tmp]", never, {}, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
31
|
+
export declare class ArdiumTablePaginationTemplateDirective {
|
|
32
|
+
template: TemplateRef<PaginationContext>;
|
|
33
|
+
constructor(template: TemplateRef<PaginationContext>);
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTablePaginationTemplateDirective, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTablePaginationTemplateDirective, "ard-table > ng-template[ard-table-pagination-tmp]", never, {}, {}, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table.component";
|
|
3
|
+
import * as i2 from "./table.directives";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../checkbox/checkbox.module";
|
|
6
|
+
import * as i5 from "../table-pagination/table-pagination.module";
|
|
7
|
+
import * as i6 from "../icon/icon.module";
|
|
8
|
+
import * as i7 from "../progress-bar/progress-bar.module";
|
|
9
|
+
export declare class ArdiumTableModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumTableModule, [typeof i1.ArdiumTableComponent, typeof i2.ArdiumTableTemplateDirective, typeof i2.ArdiumTableCheckboxTemplateDirective, typeof i2.ArdiumTableHeaderCheckboxTemplateDirective, typeof i2.ArdiumTableCaptionTemplateDirective, typeof i2.ArdiumTablePaginationTemplateDirective], [typeof i3.CommonModule, typeof i4.ArdiumCheckboxModule, typeof i5.ArdiumTablePaginationModule, typeof i6.ArdiumIconModule, typeof i7.ArdiumProgressBarModule], [typeof i1.ArdiumTableComponent, typeof i2.ArdiumTableTemplateDirective, typeof i2.ArdiumTableCheckboxTemplateDirective, typeof i2.ArdiumTableHeaderCheckboxTemplateDirective, typeof i2.ArdiumTableCaptionTemplateDirective, typeof i2.ArdiumTablePaginationTemplateDirective]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumTableModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { ComponentColor } from '../types/colors.types';
|
|
3
|
+
import { NonEmptyArray } from '../types/utility.types';
|
|
4
|
+
import { CheckboxState } from '../checkbox/checkbox.types';
|
|
5
|
+
export type DataSource = string | {
|
|
6
|
+
type: 'checkbox' | 'autocount';
|
|
7
|
+
};
|
|
8
|
+
export interface _GenericColumn {
|
|
9
|
+
header: string | {
|
|
10
|
+
template: string | TemplateRef<unknown>;
|
|
11
|
+
};
|
|
12
|
+
cellClass?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TableDataColumn extends _GenericColumn {
|
|
15
|
+
dataSource: DataSource;
|
|
16
|
+
template?: string | TemplateRef<unknown>;
|
|
17
|
+
sortable?: boolean;
|
|
18
|
+
sortFn?: (columnAData: any, columnBData: any) => number;
|
|
19
|
+
highlight?: boolean | ComponentColor;
|
|
20
|
+
width?: string | number;
|
|
21
|
+
minWidth?: string | number;
|
|
22
|
+
isRowHeader?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface TableSubheader extends _GenericColumn {
|
|
25
|
+
children: NonEmptyArray<TableSubheader | TableDataColumn>;
|
|
26
|
+
}
|
|
27
|
+
export declare const SortType: {
|
|
28
|
+
readonly Ascending: "ascending";
|
|
29
|
+
readonly Descending: "descending";
|
|
30
|
+
};
|
|
31
|
+
export type SortType = (typeof SortType)[keyof typeof SortType];
|
|
32
|
+
export interface TableSubheaderContext {
|
|
33
|
+
$implicit: string;
|
|
34
|
+
header: string;
|
|
35
|
+
}
|
|
36
|
+
export interface TableHeaderContext extends TableSubheaderContext {
|
|
37
|
+
sortable: boolean;
|
|
38
|
+
sortType: SortType | null;
|
|
39
|
+
onTriggerSort: (event?: MouseEvent) => void;
|
|
40
|
+
onTriggerResetSort: (event?: MouseEvent) => void;
|
|
41
|
+
}
|
|
42
|
+
export interface TableCheckboxContext {
|
|
43
|
+
$implicit: boolean;
|
|
44
|
+
selected: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
onChange: (event: MouseEvent) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface TableHeaderCheckboxContext {
|
|
49
|
+
$implicit: CheckboxState;
|
|
50
|
+
state: CheckboxState;
|
|
51
|
+
onChange: () => void;
|
|
52
|
+
}
|
|
53
|
+
export interface TableCaptionContext {
|
|
54
|
+
$implicit: string;
|
|
55
|
+
}
|
|
56
|
+
export declare const TableAppearance: {
|
|
57
|
+
readonly Strong: "strong";
|
|
58
|
+
readonly Light: "light";
|
|
59
|
+
readonly Colorless: "colorless";
|
|
60
|
+
};
|
|
61
|
+
export type TableAppearance = (typeof TableAppearance)[keyof typeof TableAppearance];
|
|
62
|
+
export declare const TableVariant: {
|
|
63
|
+
readonly Rounded: "rounded";
|
|
64
|
+
readonly Sharp: "sharp";
|
|
65
|
+
};
|
|
66
|
+
export type TableVariant = (typeof TableVariant)[keyof typeof TableVariant];
|
|
67
|
+
export declare const TablePaginationStrategy: {
|
|
68
|
+
readonly Noop: "noop";
|
|
69
|
+
readonly Slice: "slice";
|
|
70
|
+
};
|
|
71
|
+
export type TablePaginationStrategy = (typeof TablePaginationStrategy)[keyof typeof TablePaginationStrategy];
|
|
72
|
+
export declare const TableAlignType: {
|
|
73
|
+
readonly TopLeft: "top-left";
|
|
74
|
+
readonly TopCenter: "top-center";
|
|
75
|
+
readonly TopRight: "top-right";
|
|
76
|
+
readonly CenterLeft: "center-left";
|
|
77
|
+
readonly Center: "center-center";
|
|
78
|
+
readonly CenterRight: "center-right";
|
|
79
|
+
readonly BottomLeft: "bottom-left";
|
|
80
|
+
readonly BottomCenter: "bottom-center";
|
|
81
|
+
readonly BottomRight: "bottom-right";
|
|
82
|
+
};
|
|
83
|
+
export type TableAlignType = (typeof TableAlignType)[keyof typeof TableAlignType];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TableDataColumn, TableSubheader } from './table.types';
|
|
2
|
+
export declare function isTableSubheader(v: TableDataColumn | TableSubheader): v is TableSubheader;
|
|
3
|
+
export declare function areAllDataColumns(cols: (TableDataColumn | TableSubheader)[]): boolean;
|
|
4
|
+
export declare function merge2dArrays<T>(destArr: T[][], arr: T[][]): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AfterContentInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { CurrentItemsFormatFn, PaginationAlign } from '../table-pagination/table-pagination.types';
|
|
3
|
+
import { TableDataColumn, TablePaginationStrategy } from '../table/table.types';
|
|
4
|
+
import { ComponentColor } from '../types/colors.types';
|
|
5
|
+
import { Nullable } from '../types/utility.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ArdiumTableFromCsvComponent implements AfterContentInit, OnChanges {
|
|
8
|
+
protected readonly _DEFAULTS: import("./table-from-csv.defaults").ArdTableFromCsvDefaults;
|
|
9
|
+
readonly selectableRows: import("@angular/core").InputSignal<any>;
|
|
10
|
+
readonly maxSelectedItems: import("@angular/core").InputSignal<any>;
|
|
11
|
+
readonly clickableRows: import("@angular/core").InputSignal<any>;
|
|
12
|
+
readonly isLoading: import("@angular/core").InputSignal<any>;
|
|
13
|
+
readonly loadingProgress: import("@angular/core").InputSignal<any>;
|
|
14
|
+
readonly caption: import("@angular/core").InputSignal<Nullable<string>>;
|
|
15
|
+
readonly appearance: import("@angular/core").InputSignal<any>;
|
|
16
|
+
readonly variant: import("@angular/core").InputSignal<any>;
|
|
17
|
+
readonly color: import("@angular/core").InputSignal<any>;
|
|
18
|
+
readonly align: import("@angular/core").InputSignal<any>;
|
|
19
|
+
readonly headerAlign: import("@angular/core").InputSignal<any>;
|
|
20
|
+
readonly compact: import("@angular/core").InputSignal<any>;
|
|
21
|
+
readonly zebra: import("@angular/core").InputSignal<any>;
|
|
22
|
+
readonly stickyHeader: import("@angular/core").InputSignal<any>;
|
|
23
|
+
readonly paginated: import("@angular/core").InputSignal<any>;
|
|
24
|
+
readonly paginationStrategy: import("@angular/core").InputSignal<TablePaginationStrategy>;
|
|
25
|
+
readonly paginationOptions: import("@angular/core").InputSignal<number[] | {
|
|
26
|
+
value: number;
|
|
27
|
+
label: string;
|
|
28
|
+
}[]>;
|
|
29
|
+
readonly totalItems: import("@angular/core").InputSignal<any>;
|
|
30
|
+
readonly paginationColor: import("@angular/core").InputSignal<ComponentColor>;
|
|
31
|
+
readonly paginationAlign: import("@angular/core").InputSignal<PaginationAlign>;
|
|
32
|
+
readonly itemsPerPageText: import("@angular/core").InputSignal<string>;
|
|
33
|
+
readonly currentItemsFormatFn: import("@angular/core").InputSignal<CurrentItemsFormatFn>;
|
|
34
|
+
readonly pageFillRemaining: import("@angular/core").InputSignal<any>;
|
|
35
|
+
readonly paginationDisabled: import("@angular/core").InputSignal<any>;
|
|
36
|
+
readonly useFirstLastButtons: import("@angular/core").InputSignal<any>;
|
|
37
|
+
readonly itemsPerPage: import("@angular/core").ModelSignal<number>;
|
|
38
|
+
readonly page: import("@angular/core").ModelSignal<number>;
|
|
39
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
40
|
+
readonly separator: import("@angular/core").InputSignal<string>;
|
|
41
|
+
readonly stringData: import("@angular/core").InputSignal<string>;
|
|
42
|
+
readonly data: import("@angular/core").Signal<{
|
|
43
|
+
headers: TableDataColumn[];
|
|
44
|
+
dataRows: any[];
|
|
45
|
+
} | null>;
|
|
46
|
+
private readonly _isDataOkay;
|
|
47
|
+
readonly headers: import("@angular/core").Signal<TableDataColumn[]>;
|
|
48
|
+
readonly dataRows: import("@angular/core").Signal<any[]>;
|
|
49
|
+
ngAfterContentInit(): void;
|
|
50
|
+
private _isCsvValid;
|
|
51
|
+
private _convertCsvToHeaders;
|
|
52
|
+
private _convertCsvToArray;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableFromCsvComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTableFromCsvComponent, "ard-table-from-csv", never, { "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "loadingProgress": { "alias": "loadingProgress"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "headerAlign": { "alias": "headerAlign"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "paginated": { "alias": "paginated"; "required": false; "isSignal": true; }; "paginationStrategy": { "alias": "paginationStrategy"; "required": false; "isSignal": true; }; "paginationOptions": { "alias": "paginationOptions"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "paginationColor": { "alias": "paginationColor"; "required": false; "isSignal": true; }; "paginationAlign": { "alias": "paginationAlign"; "required": false; "isSignal": true; }; "itemsPerPageText": { "alias": "itemsPerPageText"; "required": false; "isSignal": true; }; "currentItemsFormatFn": { "alias": "currentItemsFormatFn"; "required": false; "isSignal": true; }; "pageFillRemaining": { "alias": "pageFillRemaining"; "required": false; "isSignal": true; }; "paginationDisabled": { "alias": "paginationDisabled"; "required": false; "isSignal": true; }; "useFirstLastButtons": { "alias": "useFirstLastButtons"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "stringData": { "alias": "data"; "required": false; "isSignal": true; }; }, { "itemsPerPage": "itemsPerPageChange"; "page": "pageChange"; }, never, never, false, never>;
|
|
55
|
+
}
|