@ardium-ui/ui 1.0.0
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/esm2022/ardium-ui-ui.mjs +5 -0
- package/esm2022/lib/_internal/boolean-component.mjs +108 -0
- package/esm2022/lib/_internal/clear-button/clear-button.component.mjs +12 -0
- package/esm2022/lib/_internal/clear-button/clear-button.module.mjs +18 -0
- package/esm2022/lib/_internal/disablable-component.mjs +44 -0
- package/esm2022/lib/_internal/focusable-component.mjs +91 -0
- package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +436 -0
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +349 -0
- package/esm2022/lib/_internal/item-storages/simplest-item-storage.mjs +155 -0
- package/esm2022/lib/_internal/models/pagination.model.mjs +124 -0
- package/esm2022/lib/_internal/ngmodel-component.mjs +42 -0
- package/esm2022/lib/_internal/queue.mjs +59 -0
- package/esm2022/lib/_internal/selectable-list-component.mjs +304 -0
- package/esm2022/lib/badge/badge.directive.mjs +123 -0
- package/esm2022/lib/badge/badge.module.mjs +18 -0
- package/esm2022/lib/badge/badge.types.mjs +16 -0
- package/esm2022/lib/buttons/_button-base.mjs +45 -0
- package/esm2022/lib/buttons/button/button.component.mjs +49 -0
- package/esm2022/lib/buttons/button/button.module.mjs +18 -0
- package/esm2022/lib/buttons/fab/fab.component.mjs +40 -0
- package/esm2022/lib/buttons/fab/fab.module.mjs +18 -0
- package/esm2022/lib/buttons/general-button.types.mjs +55 -0
- package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +37 -0
- package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +18 -0
- package/esm2022/lib/calendar/calendar.component.mjs +982 -0
- package/esm2022/lib/calendar/calendar.directives.mjs +107 -0
- package/esm2022/lib/calendar/calendar.helpers.mjs +47 -0
- package/esm2022/lib/calendar/calendar.module.mjs +21 -0
- package/esm2022/lib/calendar/calendar.types.mjs +11 -0
- package/esm2022/lib/card/card.children.mjs +97 -0
- package/esm2022/lib/card/card.component.mjs +40 -0
- package/esm2022/lib/card/card.module.mjs +59 -0
- package/esm2022/lib/card/card.types.mjs +9 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +73 -0
- package/esm2022/lib/checkbox/checkbox.module.mjs +18 -0
- package/esm2022/lib/checkbox/checkbox.types.mjs +6 -0
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +139 -0
- package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +19 -0
- package/esm2022/lib/checkbox-list/checkbox-list.types.mjs +7 -0
- package/esm2022/lib/chip/chip.component.mjs +55 -0
- package/esm2022/lib/chip/chip.module.mjs +21 -0
- package/esm2022/lib/chip/deletable-chip/deletable-chip.component.mjs +80 -0
- package/esm2022/lib/chip/selectable-chip/selectable-chip.component.mjs +77 -0
- package/esm2022/lib/color/color-display/color-display.component.mjs +48 -0
- package/esm2022/lib/color/color-display/color-display.module.mjs +18 -0
- package/esm2022/lib/color/color-display/color-display.types.mjs +9 -0
- package/esm2022/lib/color/color-picker/color-picker.component.mjs +484 -0
- package/esm2022/lib/color/color-picker/color-picker.directives.mjs +55 -0
- package/esm2022/lib/color/color-picker/color-picker.module.mjs +43 -0
- package/esm2022/lib/color/color-picker/color-picker.types.mjs +11 -0
- package/esm2022/lib/dialog/dialog.component.mjs +167 -0
- package/esm2022/lib/dialog/dialog.directives.mjs +14 -0
- package/esm2022/lib/dialog/dialog.module.mjs +21 -0
- package/esm2022/lib/dialog/dialog.types.mjs +6 -0
- package/esm2022/lib/divider/divider.component.mjs +26 -0
- package/esm2022/lib/divider/divider.module.mjs +18 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.component.mjs +130 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.module.mjs +18 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.types.mjs +10 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +82 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.directives.mjs +42 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.module.mjs +58 -0
- package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +153 -0
- package/esm2022/lib/file-inputs/file-input/file-input.directives.mjs +73 -0
- package/esm2022/lib/file-inputs/file-input/file-input.module.mjs +21 -0
- package/esm2022/lib/file-inputs/file-input-base.mjs +187 -0
- package/esm2022/lib/file-inputs/file-input-types.mjs +2 -0
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +74 -0
- package/esm2022/lib/form-field-frame/form-field-frame.directives.mjs +25 -0
- package/esm2022/lib/form-field-frame/form-field-frame.module.mjs +19 -0
- package/esm2022/lib/icon/icon.component.mjs +85 -0
- package/esm2022/lib/icon/icon.module.mjs +19 -0
- package/esm2022/lib/icon/icon.pipe.mjs +18 -0
- package/esm2022/lib/inputs/color-input/color-input.component.mjs +421 -0
- package/esm2022/lib/inputs/color-input/color-input.directives.mjs +101 -0
- package/esm2022/lib/inputs/color-input/color-input.module.mjs +85 -0
- package/esm2022/lib/inputs/color-input/color-input.types.mjs +2 -0
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +218 -0
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +217 -0
- package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +18 -0
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +15 -0
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +8 -0
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +234 -0
- package/esm2022/lib/inputs/hex-input/hex-input.directives.mjs +36 -0
- package/esm2022/lib/inputs/hex-input/hex-input.module.mjs +21 -0
- package/esm2022/lib/inputs/hex-input.model.mjs +106 -0
- package/esm2022/lib/inputs/input/input.component.mjs +344 -0
- package/esm2022/lib/inputs/input/input.directives.mjs +58 -0
- package/esm2022/lib/inputs/input/input.module.mjs +47 -0
- package/esm2022/lib/inputs/input-transformers.mjs +66 -0
- package/esm2022/lib/inputs/input-types.mjs +6 -0
- package/esm2022/lib/inputs/input-utils.mjs +205 -0
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +289 -0
- package/esm2022/lib/inputs/number-input/number-input.directives.mjs +14 -0
- package/esm2022/lib/inputs/number-input/number-input.module.mjs +21 -0
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +222 -0
- package/esm2022/lib/inputs/password-input/password-input.directives.mjs +49 -0
- package/esm2022/lib/inputs/password-input/password-input.module.mjs +41 -0
- package/esm2022/lib/inputs/password-input/password-input.types.mjs +2 -0
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +219 -0
- package/esm2022/lib/inputs/simple-input/simple-input.directives.mjs +36 -0
- package/esm2022/lib/inputs/simple-input/simple-input.module.mjs +37 -0
- package/esm2022/lib/kbd/kbd.component.mjs +42 -0
- package/esm2022/lib/kbd/kbd.module.mjs +19 -0
- package/esm2022/lib/kbd/kbd.pipe.mjs +17 -0
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.component.mjs +55 -0
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.module.mjs +19 -0
- package/esm2022/lib/modal/modal.component.mjs +120 -0
- package/esm2022/lib/modal/modal.module.mjs +21 -0
- package/esm2022/lib/option/option.component.mjs +77 -0
- package/esm2022/lib/option/option.module.mjs +18 -0
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +95 -0
- package/esm2022/lib/progress-bar/progress-bar.directive.mjs +14 -0
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +19 -0
- package/esm2022/lib/progress-bar/progress-bar.types.mjs +19 -0
- package/esm2022/lib/progress-circle/progress-circle.component.mjs +94 -0
- package/esm2022/lib/progress-circle/progress-circle.directive.mjs +14 -0
- package/esm2022/lib/progress-circle/progress-circle.module.mjs +19 -0
- package/esm2022/lib/progress-circle/progress-circle.types.mjs +10 -0
- package/esm2022/lib/radio/radio/radio.component.mjs +53 -0
- package/esm2022/lib/radio/radio-group.component.mjs +207 -0
- package/esm2022/lib/radio/radio.module.mjs +19 -0
- package/esm2022/lib/search-functions.mjs +64 -0
- package/esm2022/lib/segment/segment.component.mjs +168 -0
- package/esm2022/lib/segment/segment.directives.mjs +14 -0
- package/esm2022/lib/segment/segment.module.mjs +19 -0
- package/esm2022/lib/segment/segment.types.mjs +12 -0
- package/esm2022/lib/select/select.component.mjs +1160 -0
- package/esm2022/lib/select/select.directive.mjs +171 -0
- package/esm2022/lib/select/select.module.mjs +112 -0
- package/esm2022/lib/select/select.types.mjs +2 -0
- package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +46 -0
- package/esm2022/lib/slide-toggle/slide-toggle.module.mjs +18 -0
- package/esm2022/lib/slider/abstract-slider.mjs +330 -0
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +143 -0
- package/esm2022/lib/slider/range-slider/range-slider.module.mjs +18 -0
- package/esm2022/lib/slider/slider.component.mjs +93 -0
- package/esm2022/lib/slider/slider.directive.mjs +16 -0
- package/esm2022/lib/slider/slider.module.mjs +20 -0
- package/esm2022/lib/slider/slider.types.mjs +10 -0
- package/esm2022/lib/snackbar/index.mjs +5 -0
- package/esm2022/lib/snackbar/snackbar-ref.mjs +51 -0
- package/esm2022/lib/snackbar/snackbar.component.mjs +48 -0
- package/esm2022/lib/snackbar/snackbar.service.mjs +227 -0
- package/esm2022/lib/snackbar/snackbar.token.mjs +20 -0
- package/esm2022/lib/snackbar/snackbar.types.mjs +25 -0
- package/esm2022/lib/spinner/spinner.component.mjs +22 -0
- package/esm2022/lib/spinner/spinner.module.mjs +18 -0
- package/esm2022/lib/star/star-button/star-button.component.mjs +53 -0
- package/esm2022/lib/star/star-button/star-button.module.mjs +19 -0
- package/esm2022/lib/star/star-display/star-display.component.mjs +66 -0
- package/esm2022/lib/star/star-display/star-display.module.mjs +19 -0
- package/esm2022/lib/star/star-input/star-input.component.mjs +221 -0
- package/esm2022/lib/star/star-input/star-input.module.mjs +19 -0
- package/esm2022/lib/star/star.component.mjs +28 -0
- package/esm2022/lib/star/star.module.mjs +18 -0
- package/esm2022/lib/star/star.types.mjs +23 -0
- package/esm2022/lib/statebox/statebox.component.mjs +158 -0
- package/esm2022/lib/statebox/statebox.module.mjs +18 -0
- package/esm2022/lib/statebox/statebox.types.mjs +2 -0
- package/esm2022/lib/table/table-item-storage.mjs +560 -0
- package/esm2022/lib/table/table.component.mjs +468 -0
- package/esm2022/lib/table/table.directives.mjs +64 -0
- package/esm2022/lib/table/table.module.mjs +46 -0
- package/esm2022/lib/table/table.types.mjs +30 -0
- package/esm2022/lib/table/utils.mjs +18 -0
- package/esm2022/lib/table-from-csv/table-from-csv.component.mjs +64 -0
- package/esm2022/lib/table-from-csv/table-from-csv.module.mjs +19 -0
- package/esm2022/lib/table-pagination/table-pagination.component.mjs +172 -0
- package/esm2022/lib/table-pagination/table-pagination.module.mjs +21 -0
- package/esm2022/lib/table-pagination/table-pagination.types.mjs +7 -0
- package/esm2022/lib/types/alignment.types.mjs +10 -0
- package/esm2022/lib/types/colors.types.mjs +43 -0
- package/esm2022/lib/types/item-storage.types.mjs +6 -0
- package/esm2022/lib/types/theming.types.mjs +48 -0
- package/esm2022/lib/types/utility.types.mjs +5 -0
- package/esm2022/public-api.mjs +194 -0
- package/fesm2022/ardium-ui-ui.mjs +14316 -0
- package/fesm2022/ardium-ui-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/_internal/boolean-component.d.ts +50 -0
- package/lib/_internal/clear-button/clear-button.component.d.ts +6 -0
- package/lib/_internal/clear-button/clear-button.module.d.ts +8 -0
- package/lib/_internal/disablable-component.d.ts +11 -0
- package/lib/_internal/focusable-component.d.ts +52 -0
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +87 -0
- package/lib/_internal/item-storages/simple-item-storage.d.ts +159 -0
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +70 -0
- package/lib/_internal/models/pagination.model.d.ts +53 -0
- package/lib/_internal/ngmodel-component.d.ts +42 -0
- package/lib/_internal/queue.d.ts +21 -0
- package/lib/_internal/selectable-list-component.d.ts +71 -0
- package/lib/badge/badge.directive.d.ts +31 -0
- package/lib/badge/badge.module.d.ts +8 -0
- package/lib/badge/badge.types.d.ts +17 -0
- package/lib/buttons/_button-base.d.ts +18 -0
- package/lib/buttons/button/button.component.d.ts +15 -0
- package/lib/buttons/button/button.module.d.ts +8 -0
- package/lib/buttons/fab/fab.component.d.ts +12 -0
- package/lib/buttons/fab/fab.module.d.ts +8 -0
- package/lib/buttons/general-button.types.d.ts +57 -0
- package/lib/buttons/icon-button/icon-button.component.d.ts +13 -0
- package/lib/buttons/icon-button/icon-button.module.d.ts +8 -0
- package/lib/calendar/calendar.component.d.ts +155 -0
- package/lib/calendar/calendar.directives.d.ts +51 -0
- package/lib/calendar/calendar.helpers.d.ts +15 -0
- package/lib/calendar/calendar.module.d.ts +11 -0
- package/lib/calendar/calendar.types.d.ts +80 -0
- package/lib/card/card.children.d.ts +43 -0
- package/lib/card/card.component.d.ts +13 -0
- package/lib/card/card.module.d.ts +9 -0
- package/lib/card/card.types.d.ts +10 -0
- package/lib/checkbox/checkbox.component.d.ts +21 -0
- package/lib/checkbox/checkbox.module.d.ts +8 -0
- package/lib/checkbox/checkbox.types.d.ts +6 -0
- package/lib/checkbox-list/checkbox-list.component.d.ts +50 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +9 -0
- package/lib/checkbox-list/checkbox-list.types.d.ts +7 -0
- package/lib/chip/chip.component.d.ts +18 -0
- package/lib/chip/chip.module.d.ts +11 -0
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +24 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +24 -0
- package/lib/color/color-display/color-display.component.d.ts +17 -0
- package/lib/color/color-display/color-display.module.d.ts +8 -0
- package/lib/color/color-display/color-display.types.d.ts +9 -0
- package/lib/color/color-picker/color-picker.component.d.ts +125 -0
- package/lib/color/color-picker/color-picker.directives.d.ts +27 -0
- package/lib/color/color-picker/color-picker.module.d.ts +13 -0
- package/lib/color/color-picker/color-picker.types.d.ts +21 -0
- package/lib/dialog/dialog.component.d.ts +44 -0
- package/lib/dialog/dialog.directives.d.ts +9 -0
- package/lib/dialog/dialog.module.d.ts +11 -0
- package/lib/dialog/dialog.types.d.ts +28 -0
- package/lib/divider/divider.component.d.ts +8 -0
- package/lib/divider/divider.module.d.ts +8 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +37 -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/file-inputs/file-drop-area/file-drop-area.component.d.ts +22 -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-input/file-input.component.d.ts +41 -0
- package/lib/file-inputs/file-input/file-input.directives.d.ts +39 -0
- package/lib/file-inputs/file-input/file-input.module.d.ts +11 -0
- package/lib/file-inputs/file-input-base.d.ts +43 -0
- package/lib/file-inputs/file-input-types.d.ts +10 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +32 -0
- package/lib/form-field-frame/form-field-frame.directives.d.ts +14 -0
- package/lib/form-field-frame/form-field-frame.module.d.ts +9 -0
- package/lib/icon/icon.component.d.ts +32 -0
- package/lib/icon/icon.module.d.ts +9 -0
- package/lib/icon/icon.pipe.d.ts +7 -0
- package/lib/inputs/color-input/color-input.component.d.ts +147 -0
- package/lib/inputs/color-input/color-input.directives.d.ts +52 -0
- package/lib/inputs/color-input/color-input.module.d.ts +16 -0
- package/lib/inputs/color-input/color-input.types.d.ts +5 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +50 -0
- package/lib/inputs/digit-input/digit-input.model.d.ts +26 -0
- package/lib/inputs/digit-input/digit-input.module.d.ts +8 -0
- package/lib/inputs/digit-input/digit-input.types.d.ts +27 -0
- package/lib/inputs/digit-input/digit-input.utils.d.ts +17 -0
- package/lib/inputs/hex-input/hex-input.component.d.ts +60 -0
- package/lib/inputs/hex-input/hex-input.directives.d.ts +20 -0
- package/lib/inputs/hex-input/hex-input.module.d.ts +11 -0
- package/lib/inputs/hex-input.model.d.ts +27 -0
- package/lib/inputs/input/input.component.d.ts +79 -0
- package/lib/inputs/input/input.directives.d.ts +33 -0
- package/lib/inputs/input/input.module.d.ts +13 -0
- package/lib/inputs/input-transformers.d.ts +24 -0
- package/lib/inputs/input-types.d.ts +6 -0
- package/lib/inputs/input-utils.d.ts +58 -0
- package/lib/inputs/number-input/number-input.component.d.ts +70 -0
- package/lib/inputs/number-input/number-input.directives.d.ts +8 -0
- package/lib/inputs/number-input/number-input.module.d.ts +11 -0
- package/lib/inputs/password-input/password-input.component.d.ts +54 -0
- package/lib/inputs/password-input/password-input.directives.d.ts +27 -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/inputs/simple-input/simple-input.component.d.ts +58 -0
- package/lib/inputs/simple-input/simple-input.directives.d.ts +20 -0
- package/lib/inputs/simple-input/simple-input.module.d.ts +11 -0
- package/lib/kbd/kbd.component.d.ts +15 -0
- package/lib/kbd/kbd.module.d.ts +9 -0
- package/lib/kbd/kbd.pipe.d.ts +7 -0
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +18 -0
- package/lib/kbd-shortcut/kbd-shortcut.module.d.ts +9 -0
- package/lib/modal/modal.component.d.ts +36 -0
- package/lib/modal/modal.module.d.ts +11 -0
- package/lib/option/option.component.d.ts +29 -0
- package/lib/option/option.module.d.ts +8 -0
- package/lib/progress-bar/progress-bar.component.d.ts +26 -0
- package/lib/progress-bar/progress-bar.directive.d.ts +9 -0
- package/lib/progress-bar/progress-bar.module.d.ts +9 -0
- package/lib/progress-bar/progress-bar.types.d.ts +26 -0
- package/lib/progress-circle/progress-circle.component.d.ts +28 -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 +17 -0
- package/lib/radio/radio/radio.component.d.ts +23 -0
- package/lib/radio/radio-group.component.d.ts +43 -0
- package/lib/radio/radio.module.d.ts +9 -0
- package/lib/search-functions.d.ts +10 -0
- package/lib/segment/segment.component.d.ts +48 -0
- package/lib/segment/segment.directives.d.ts +9 -0
- package/lib/segment/segment.module.d.ts +9 -0
- package/lib/segment/segment.types.d.ts +16 -0
- package/lib/select/select.component.d.ts +255 -0
- package/lib/select/select.directive.d.ts +94 -0
- package/lib/select/select.module.d.ts +14 -0
- package/lib/select/select.types.d.ts +109 -0
- package/lib/slide-toggle/slide-toggle.component.d.ts +14 -0
- package/lib/slide-toggle/slide-toggle.module.d.ts +8 -0
- package/lib/slider/abstract-slider.d.ts +88 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +29 -0
- package/lib/slider/range-slider/range-slider.module.d.ts +8 -0
- package/lib/slider/slider.component.d.ts +18 -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 +37 -0
- package/lib/snackbar/snackbar.component.d.ts +16 -0
- package/lib/snackbar/snackbar.service.d.ts +31 -0
- package/lib/snackbar/snackbar.token.d.ts +5 -0
- package/lib/snackbar/snackbar.types.d.ts +48 -0
- package/lib/spinner/spinner.component.d.ts +8 -0
- package/lib/spinner/spinner.module.d.ts +8 -0
- package/lib/star/star-button/star-button.component.d.ts +16 -0
- package/lib/star/star-button/star-button.module.d.ts +9 -0
- package/lib/star/star-display/star-display.component.d.ts +16 -0
- package/lib/star/star-display/star-display.module.d.ts +9 -0
- package/lib/star/star-input/star-input.component.d.ts +51 -0
- package/lib/star/star-input/star-input.module.d.ts +9 -0
- package/lib/star/star.component.d.ts +10 -0
- package/lib/star/star.module.d.ts +8 -0
- package/lib/star/star.types.d.ts +30 -0
- package/lib/statebox/statebox.component.d.ts +31 -0
- package/lib/statebox/statebox.module.d.ts +8 -0
- package/lib/statebox/statebox.types.d.ts +22 -0
- package/lib/table/table-item-storage.d.ts +266 -0
- package/lib/table/table.component.d.ts +127 -0
- package/lib/table/table.directives.d.ts +35 -0
- package/lib/table/table.module.d.ts +12 -0
- package/lib/table/table.types.d.ts +83 -0
- package/lib/table/utils.d.ts +4 -0
- package/lib/table-from-csv/table-from-csv.component.d.ts +16 -0
- package/lib/table-from-csv/table-from-csv.module.d.ts +9 -0
- package/lib/table-pagination/table-pagination.component.d.ts +48 -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/types/alignment.types.d.ts +11 -0
- package/lib/types/colors.types.d.ts +71 -0
- package/lib/types/item-storage.types.d.ts +98 -0
- package/lib/types/theming.types.d.ts +61 -0
- package/lib/types/utility.types.d.ts +11 -0
- package/package.json +36 -0
- package/prebuilt-themes/default/badge.css +208 -0
- package/prebuilt-themes/default/badge.css.map +1 -0
- package/prebuilt-themes/default/buttons/button.css +290 -0
- package/prebuilt-themes/default/buttons/button.css.map +1 -0
- package/prebuilt-themes/default/buttons/fab.css +307 -0
- package/prebuilt-themes/default/buttons/fab.css.map +1 -0
- package/prebuilt-themes/default/buttons/icon-button.css +288 -0
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -0
- package/prebuilt-themes/default/calendar.css +293 -0
- package/prebuilt-themes/default/calendar.css.map +1 -0
- package/prebuilt-themes/default/card.css +122 -0
- package/prebuilt-themes/default/card.css.map +1 -0
- package/prebuilt-themes/default/checkbox-list.css +65 -0
- package/prebuilt-themes/default/checkbox-list.css.map +1 -0
- package/prebuilt-themes/default/checkbox.css +365 -0
- package/prebuilt-themes/default/checkbox.css.map +1 -0
- package/prebuilt-themes/default/chips.css +367 -0
- package/prebuilt-themes/default/chips.css.map +1 -0
- package/prebuilt-themes/default/color-display.css +29 -0
- package/prebuilt-themes/default/color-display.css.map +1 -0
- package/prebuilt-themes/default/color-picker.css +106 -0
- package/prebuilt-themes/default/color-picker.css.map +1 -0
- package/prebuilt-themes/default/core.css +84 -0
- package/prebuilt-themes/default/core.css.map +1 -0
- package/prebuilt-themes/default/dialog.css +18 -0
- package/prebuilt-themes/default/dialog.css.map +1 -0
- package/prebuilt-themes/default/divider.css +11 -0
- package/prebuilt-themes/default/divider.css.map +1 -0
- package/prebuilt-themes/default/dropdown-panel.css +37 -0
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -0
- package/prebuilt-themes/default/file-drop-area.css +279 -0
- package/prebuilt-themes/default/file-drop-area.css.map +1 -0
- package/prebuilt-themes/default/form-field-frame.css +84 -0
- package/prebuilt-themes/default/form-field-frame.css.map +1 -0
- package/prebuilt-themes/default/inputs/color-input.css +139 -0
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/digit-input.css +45 -0
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/file-input.css +169 -0
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/hex-input.css +119 -0
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/input.css +139 -0
- package/prebuilt-themes/default/inputs/input.css.map +1 -0
- package/prebuilt-themes/default/inputs/number-input.css +150 -0
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/password-input.css +73 -0
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/search-bar.css +114 -0
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -0
- package/prebuilt-themes/default/inputs/simple-input.css +114 -0
- package/prebuilt-themes/default/inputs/simple-input.css.map +1 -0
- package/prebuilt-themes/default/kbd-shortcut.css +12 -0
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -0
- package/prebuilt-themes/default/kbd.css +17 -0
- package/prebuilt-themes/default/kbd.css.map +1 -0
- package/prebuilt-themes/default/modal.css +73 -0
- package/prebuilt-themes/default/modal.css.map +1 -0
- package/prebuilt-themes/default/progress-bar.css +267 -0
- package/prebuilt-themes/default/progress-bar.css.map +1 -0
- package/prebuilt-themes/default/progress-circle.css +167 -0
- package/prebuilt-themes/default/progress-circle.css.map +1 -0
- package/prebuilt-themes/default/radio.css +226 -0
- package/prebuilt-themes/default/radio.css.map +1 -0
- package/prebuilt-themes/default/segment.css +391 -0
- package/prebuilt-themes/default/segment.css.map +1 -0
- package/prebuilt-themes/default/select.css +275 -0
- package/prebuilt-themes/default/select.css.map +1 -0
- package/prebuilt-themes/default/slide-toggle.css +264 -0
- package/prebuilt-themes/default/slide-toggle.css.map +1 -0
- package/prebuilt-themes/default/slider.css +354 -0
- package/prebuilt-themes/default/slider.css.map +1 -0
- package/prebuilt-themes/default/snackbar.css +183 -0
- package/prebuilt-themes/default/snackbar.css.map +1 -0
- package/prebuilt-themes/default/spinner.css +151 -0
- package/prebuilt-themes/default/spinner.css.map +1 -0
- package/prebuilt-themes/default/stars.css +291 -0
- package/prebuilt-themes/default/stars.css.map +1 -0
- package/prebuilt-themes/default/statebox.css +235 -0
- package/prebuilt-themes/default/statebox.css.map +1 -0
- package/prebuilt-themes/default/table-pagination.css +48 -0
- package/prebuilt-themes/default/table-pagination.css.map +1 -0
- package/prebuilt-themes/default/table.css +418 -0
- package/prebuilt-themes/default/table.css.map +1 -0
- package/public-api.d.ts +145 -0
- package/themes/_variables.scss +121 -0
- package/themes/default/_clear-button.scss +73 -0
- package/themes/default/_coloring.scss +137 -0
- package/themes/default/_dropdown-arrow.scss +12 -0
- package/themes/default/_mixins.scss +70 -0
- package/themes/default/badge.scss +94 -0
- package/themes/default/buttons/_button-mixins.scss +144 -0
- package/themes/default/buttons/button.scss +62 -0
- package/themes/default/buttons/fab.scss +72 -0
- package/themes/default/buttons/icon-button.scss +59 -0
- package/themes/default/calendar.scss +182 -0
- package/themes/default/card.scss +126 -0
- package/themes/default/checkbox-list.scss +83 -0
- package/themes/default/checkbox.scss +109 -0
- package/themes/default/chips.scss +206 -0
- package/themes/default/color-display.scss +41 -0
- package/themes/default/color-picker.scss +111 -0
- package/themes/default/core.scss +96 -0
- package/themes/default/dialog.scss +16 -0
- package/themes/default/divider.scss +13 -0
- package/themes/default/dropdown-panel.scss +45 -0
- package/themes/default/file-drop-area.scss +162 -0
- package/themes/default/form-field-frame.scss +78 -0
- package/themes/default/inputs/_shared.scss +46 -0
- package/themes/default/inputs/color-input.scss +46 -0
- package/themes/default/inputs/digit-input.scss +56 -0
- package/themes/default/inputs/file-input.scss +78 -0
- package/themes/default/inputs/hex-input.scss +27 -0
- package/themes/default/inputs/input.scss +52 -0
- package/themes/default/inputs/number-input.scss +121 -0
- package/themes/default/inputs/password-input.scss +43 -0
- package/themes/default/inputs/search-bar.scss +19 -0
- package/themes/default/inputs/simple-input.scss +19 -0
- package/themes/default/kbd-shortcut.scss +13 -0
- package/themes/default/kbd.scss +20 -0
- package/themes/default/modal.scss +93 -0
- package/themes/default/progress-bar.scss +166 -0
- package/themes/default/progress-circle.scss +56 -0
- package/themes/default/radio.scss +112 -0
- package/themes/default/segment.scss +339 -0
- package/themes/default/select.scss +253 -0
- package/themes/default/slide-toggle.scss +151 -0
- package/themes/default/slider.scss +224 -0
- package/themes/default/snackbar.scss +60 -0
- package/themes/default/spinner.scss +21 -0
- package/themes/default/stars.scss +122 -0
- package/themes/default/statebox.scss +109 -0
- package/themes/default/table-pagination.scss +56 -0
- package/themes/default/table.scss +403 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { SortType, TableDataColumn, TablePaginationStrategy, TableSubheader } from './table.types';
|
|
2
|
+
export interface ArdTableRow {
|
|
3
|
+
readonly itemData: any;
|
|
4
|
+
readonly index: number;
|
|
5
|
+
readonly isEmpty?: boolean;
|
|
6
|
+
data: any[];
|
|
7
|
+
dataColumns: TableDataColumn[];
|
|
8
|
+
class?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
bold?: boolean;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
highlighted?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface TableItemStorageHostDefaults {
|
|
15
|
+
rowDisabledFrom: string;
|
|
16
|
+
rowBoldFrom: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TableItemStorageHost {
|
|
19
|
+
rowDisabledFrom?: string;
|
|
20
|
+
rowBoldFrom?: string;
|
|
21
|
+
invertRowDisabled?: boolean;
|
|
22
|
+
invertRowBold?: boolean;
|
|
23
|
+
data?: any[];
|
|
24
|
+
readonly DEFAULTS: TableItemStorageHostDefaults;
|
|
25
|
+
maxSelectedItems?: number;
|
|
26
|
+
treatDataSourceAsString?: boolean;
|
|
27
|
+
paginated: boolean;
|
|
28
|
+
paginationStrategy: TablePaginationStrategy;
|
|
29
|
+
itemsPerPage: number;
|
|
30
|
+
page: number;
|
|
31
|
+
}
|
|
32
|
+
export declare class HeaderCell {
|
|
33
|
+
colspan: number;
|
|
34
|
+
rowspan: number;
|
|
35
|
+
cell: TableDataColumn | TableSubheader;
|
|
36
|
+
get width(): string | null;
|
|
37
|
+
get minWidth(): string | null;
|
|
38
|
+
private _getWidth;
|
|
39
|
+
constructor(cell: TableDataColumn | TableSubheader, colspan?: number, rowspan?: number);
|
|
40
|
+
}
|
|
41
|
+
export declare class TableItemStorage {
|
|
42
|
+
private _ardParentComp;
|
|
43
|
+
private _items;
|
|
44
|
+
private _sortedItems;
|
|
45
|
+
private _highlightedItems;
|
|
46
|
+
private _selectedItems;
|
|
47
|
+
private _dataColumns;
|
|
48
|
+
private _headerCells;
|
|
49
|
+
constructor(_ardParentComp: TableItemStorageHost);
|
|
50
|
+
/**
|
|
51
|
+
* Gets all items.
|
|
52
|
+
*/
|
|
53
|
+
get items(): ArdTableRow[];
|
|
54
|
+
get sortedItems(): ArdTableRow[];
|
|
55
|
+
/**
|
|
56
|
+
* Gets items based on the current pagination state.
|
|
57
|
+
*/
|
|
58
|
+
get paginatedItems(): ArdTableRow[];
|
|
59
|
+
/**
|
|
60
|
+
* Gets all currently selected items.
|
|
61
|
+
*/
|
|
62
|
+
get selectedItems(): ArdTableRow[];
|
|
63
|
+
/**
|
|
64
|
+
* Gets all currently highlighted items.
|
|
65
|
+
*/
|
|
66
|
+
get highlightedItems(): ArdTableRow[];
|
|
67
|
+
/**
|
|
68
|
+
* Gets the values of the currently selected items.
|
|
69
|
+
*/
|
|
70
|
+
get value(): any[];
|
|
71
|
+
/**
|
|
72
|
+
* Maps an array of items into their values.
|
|
73
|
+
* @param items The items to convert to value.
|
|
74
|
+
* @returns An array of item values.
|
|
75
|
+
*/
|
|
76
|
+
private _itemsToValue;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if at least one item is highlighted, otherwise false.
|
|
79
|
+
*/
|
|
80
|
+
get isAnyItemHighlighted(): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Checks if any item in the table is selected.
|
|
83
|
+
* @returns A boolean value indicating if any item is selected.
|
|
84
|
+
*/
|
|
85
|
+
get isAnyItemSelected(): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Checks if all items in the table are selected.
|
|
88
|
+
* @returns A boolean value indicating if all items are selected.
|
|
89
|
+
*/
|
|
90
|
+
get areAllSelected(): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*
|
|
94
|
+
* **TLDR**: true if `maxSelectedItems` is defined and the number of selected items matches that value.
|
|
95
|
+
*/
|
|
96
|
+
get isItemLimitReached(): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Gets the header cells of the table.
|
|
99
|
+
* @returns a 2D array of header cells.
|
|
100
|
+
*/
|
|
101
|
+
get headerCells(): HeaderCell[][];
|
|
102
|
+
/**
|
|
103
|
+
* Checks if the table has defined columns.
|
|
104
|
+
* @returns a boolean value indicating if the table has defined columns.
|
|
105
|
+
*/
|
|
106
|
+
get hasDefinedColumns(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Sets the columns of the table.
|
|
109
|
+
* @param cols an array of table data columns or table subheaders.
|
|
110
|
+
*/
|
|
111
|
+
setColumns(cols: (TableDataColumn | TableSubheader)[]): void;
|
|
112
|
+
/**
|
|
113
|
+
* Filters out null values from the header cells array.
|
|
114
|
+
* @param cells a 2D array of header cells or null values.
|
|
115
|
+
* @returns a 2D array of header cells without null values and empty arrays.
|
|
116
|
+
*/
|
|
117
|
+
private _filterHeaderCells;
|
|
118
|
+
/**
|
|
119
|
+
* Extracts the data sources from the columns array.
|
|
120
|
+
* @param cols an array of table data columns or table subheaders.
|
|
121
|
+
* @returns an array of table data columns.
|
|
122
|
+
*/
|
|
123
|
+
private _extractDataSources;
|
|
124
|
+
/**
|
|
125
|
+
* Gets the maximum nesting level of the columns array.
|
|
126
|
+
* @param cols an array of table data columns or table subheaders.
|
|
127
|
+
* @returns the maximum nesting level as a number.
|
|
128
|
+
*/
|
|
129
|
+
private _getHeaderMaxNesting;
|
|
130
|
+
/**
|
|
131
|
+
* Maps the columns tree to a 2D array of header cells or null values.
|
|
132
|
+
* @param cols an array of table data columns or table subheaders.
|
|
133
|
+
* @param maxNesting the maximum nesting level of the columns array.
|
|
134
|
+
* @param currentNesting the current nesting level of the columns array.
|
|
135
|
+
* @returns a 2D array of header cells or null values.
|
|
136
|
+
*/
|
|
137
|
+
private _mapColumnsToArray;
|
|
138
|
+
/**
|
|
139
|
+
* Sets the component's items. Takes into account the values defined by the parent component for `rowDisabledFrom`, `rowBoldFrom`, and `rowHighlightedFrom`.
|
|
140
|
+
* @param items An array of items to be set as the component's items.
|
|
141
|
+
*/
|
|
142
|
+
setItems(items: any[]): void;
|
|
143
|
+
/**
|
|
144
|
+
* Maps raw item data to an {@link ArdTableRow} object.
|
|
145
|
+
*
|
|
146
|
+
* @param {any} rawItemData - The raw data of the item.
|
|
147
|
+
* @param {number} index - The index of the item.
|
|
148
|
+
* @returns {ArdTableRow} Returns an ArdTableRow object with mapped properties.
|
|
149
|
+
* @private
|
|
150
|
+
*/
|
|
151
|
+
private _setItemsMapFn;
|
|
152
|
+
/**
|
|
153
|
+
* Retrieves data for a row based on data columns configuration.
|
|
154
|
+
*
|
|
155
|
+
* @param {any} rawItemData - The raw data of the item.
|
|
156
|
+
* @param {number} index - The index of the item.
|
|
157
|
+
* @returns {any[]} Returns an array containing the row data.
|
|
158
|
+
* @private
|
|
159
|
+
*/
|
|
160
|
+
private _getRowData;
|
|
161
|
+
/**
|
|
162
|
+
* 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.
|
|
163
|
+
* @param indexes The value of the ngModel to set.
|
|
164
|
+
*/
|
|
165
|
+
writeValue(indexes: number[]): void;
|
|
166
|
+
/**
|
|
167
|
+
* Checks if an item with the given index is selected.
|
|
168
|
+
*
|
|
169
|
+
* @param {number} index The index of the item to check.
|
|
170
|
+
* @returns {boolean} _true_ if the item is selected, otherwise _false_.
|
|
171
|
+
*/
|
|
172
|
+
isItemSelected(index: number): boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Selects all items.
|
|
175
|
+
*
|
|
176
|
+
* Accounts for the limit of concurrently selected items defined by the parent component.
|
|
177
|
+
* @returns a tuple containing two arrays:
|
|
178
|
+
* * An array of items selected.
|
|
179
|
+
* * An array of items failed to select.
|
|
180
|
+
*/
|
|
181
|
+
selectAll(): [any[], any[]];
|
|
182
|
+
/**
|
|
183
|
+
* Unselects all selected items.
|
|
184
|
+
*
|
|
185
|
+
* If the parent component requires at least one value to be selected at all times, the first selected items is left selected.
|
|
186
|
+
* @returns An array of items cleared, mapped to only their values.
|
|
187
|
+
*/
|
|
188
|
+
unselectAll(): any[];
|
|
189
|
+
/**
|
|
190
|
+
* Unselects all selected items, no matter what the component settings are.
|
|
191
|
+
* @returns An array of items cleared, mapped to only their values.
|
|
192
|
+
*/
|
|
193
|
+
private _forceUnselectAll;
|
|
194
|
+
/**
|
|
195
|
+
* Selects one or multiple items.
|
|
196
|
+
*
|
|
197
|
+
* Accounts for the limit of concurrently selected items defined by the parent component.
|
|
198
|
+
*
|
|
199
|
+
* @param indexes A rest operator array of item indexes to be selected.
|
|
200
|
+
* @returns a tuple containing two arrays:
|
|
201
|
+
* * An array of items selected.
|
|
202
|
+
* * An array of items failed to select.
|
|
203
|
+
*/
|
|
204
|
+
selectItem(...indexes: number[]): [any[], any[]];
|
|
205
|
+
/**
|
|
206
|
+
* Unselects one or multiple items.
|
|
207
|
+
* @param items A rest operator array of item indexes to be unselected.
|
|
208
|
+
* @returns An array of items unselected, mapped to only their values.
|
|
209
|
+
*/
|
|
210
|
+
unselectItem(...indexes: number[]): any[];
|
|
211
|
+
/**
|
|
212
|
+
* Unhighlights all currently highlighted items.
|
|
213
|
+
*/
|
|
214
|
+
unhighlightAll(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Highlights the given item, while unhighlighting all other items. Does nothing when the item is disabled.
|
|
217
|
+
* @param item The index of the item to be highlighted.
|
|
218
|
+
* @returns The highlighted item.
|
|
219
|
+
*/
|
|
220
|
+
highlightSingleItem(index: number): ArdTableRow | null;
|
|
221
|
+
/**
|
|
222
|
+
* Highlights all given items.
|
|
223
|
+
* @param items A rest operator array of item indexes to be highlighted.
|
|
224
|
+
* @returns The last highlighted item.
|
|
225
|
+
*/
|
|
226
|
+
highlightItem(...indexes: number[]): ArdTableRow;
|
|
227
|
+
/**
|
|
228
|
+
* Unhighlights all given items.
|
|
229
|
+
* @param items A rest operator array of item indexes to be unhighlighted.
|
|
230
|
+
*/
|
|
231
|
+
unhighlightItem(...indexes: number[]): void;
|
|
232
|
+
/**
|
|
233
|
+
* Highlights the first item out of all items.
|
|
234
|
+
* @returns The highlighted item.
|
|
235
|
+
*/
|
|
236
|
+
highlightFirstItem(): ArdTableRow | null;
|
|
237
|
+
/**
|
|
238
|
+
* Highlights the last item out of all items.
|
|
239
|
+
* @returns The highlighted item.
|
|
240
|
+
*/
|
|
241
|
+
highlightLastItem(): ArdTableRow | null;
|
|
242
|
+
/**
|
|
243
|
+
* Highlights all non-disabled items.
|
|
244
|
+
*/
|
|
245
|
+
highlightAllItems(): void;
|
|
246
|
+
/**
|
|
247
|
+
* Highlights the next non-disabled item defined by the offset amount.
|
|
248
|
+
*
|
|
249
|
+
* If `hasShift` is set to true, all originally highlighted items are kept. Otherwise, all original items are unselected.
|
|
250
|
+
* @param offset The amount of items to offset the highlight by.
|
|
251
|
+
* @param hasShift Whether the user has the shift key pressed.
|
|
252
|
+
* @returns The item highlighted.
|
|
253
|
+
*/
|
|
254
|
+
highlightNextItem(offset: number, hasShift?: boolean): ArdTableRow | null;
|
|
255
|
+
/**
|
|
256
|
+
* Finds all highlightable items. An item is considered highlightable if it is **not** disabled.
|
|
257
|
+
* @returns An array of all highlightable items.
|
|
258
|
+
*/
|
|
259
|
+
private _getHiglightableItems;
|
|
260
|
+
private _currentSortColumn;
|
|
261
|
+
private _currentSortType;
|
|
262
|
+
toggleCurrentSortColumn(column: number): void;
|
|
263
|
+
resetSort(): void;
|
|
264
|
+
getColumnSortType(column: number): SortType | null;
|
|
265
|
+
private _generateSortedRows;
|
|
266
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { _FocusableComponentBase } from '../_internal/focusable-component';
|
|
3
|
+
import { CurrentItemsFormatFn, PaginationAlign } from '../table-pagination/table-pagination.types';
|
|
4
|
+
import { ComponentColor, SimpleComponentColor } from '../types/colors.types';
|
|
5
|
+
import { ArdTableRow, HeaderCell, TableItemStorageHost } from './table-item-storage';
|
|
6
|
+
import { ArdiumTableTemplateDirective } from './table.directives';
|
|
7
|
+
import { TableAlignType, TableAppearance, TableCaptionContext, TableCheckboxContext, TableDataColumn, TableHeaderCheckboxContext, TableHeaderContext, TablePaginationStrategy, TableSubheader, TableVariant, TableSubheaderContext } from './table.types';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ArdiumTableComponent extends _FocusableComponentBase implements TableItemStorageHost, AfterContentInit {
|
|
10
|
+
private readonly _itemStorage;
|
|
11
|
+
readonly DEFAULTS: {
|
|
12
|
+
rowDisabledFrom: string;
|
|
13
|
+
rowBoldFrom: string;
|
|
14
|
+
};
|
|
15
|
+
rowDisabledFrom?: string;
|
|
16
|
+
rowBoldFrom?: string;
|
|
17
|
+
private _invertRowDisabled;
|
|
18
|
+
get invertRowDisabled(): boolean;
|
|
19
|
+
set invertRowDisabled(v: any);
|
|
20
|
+
private _invertRowBold;
|
|
21
|
+
get invertRowBold(): boolean;
|
|
22
|
+
set invertRowBold(v: any);
|
|
23
|
+
private _selectableRows;
|
|
24
|
+
get selectableRows(): boolean;
|
|
25
|
+
set selectableRows(v: any);
|
|
26
|
+
caption?: string;
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
loadingProgress?: number;
|
|
29
|
+
appearance: TableAppearance;
|
|
30
|
+
variant: TableVariant;
|
|
31
|
+
color: ComponentColor;
|
|
32
|
+
align: TableAlignType;
|
|
33
|
+
headerAlign: TableAlignType;
|
|
34
|
+
private _compact;
|
|
35
|
+
get compact(): boolean;
|
|
36
|
+
set compact(v: any);
|
|
37
|
+
private _zebra;
|
|
38
|
+
get zebra(): boolean;
|
|
39
|
+
set zebra(v: any);
|
|
40
|
+
private _stickyHeader;
|
|
41
|
+
get stickyHeader(): boolean;
|
|
42
|
+
set stickyHeader(v: any);
|
|
43
|
+
get ngClasses(): string;
|
|
44
|
+
private _paginated;
|
|
45
|
+
get paginated(): boolean;
|
|
46
|
+
set paginated(v: any);
|
|
47
|
+
paginationStrategy: TablePaginationStrategy;
|
|
48
|
+
paginationOptions: number[] | {
|
|
49
|
+
value: number;
|
|
50
|
+
label: string;
|
|
51
|
+
}[];
|
|
52
|
+
totalItems?: number;
|
|
53
|
+
paginationColor: ComponentColor;
|
|
54
|
+
paginationAlign: PaginationAlign;
|
|
55
|
+
itemsPerPageText: string;
|
|
56
|
+
currentItemsFormatFn: CurrentItemsFormatFn;
|
|
57
|
+
private _pageFillRemaining;
|
|
58
|
+
get pageFillRemaining(): boolean;
|
|
59
|
+
set pageFillRemaining(v: any);
|
|
60
|
+
private _paginationDisabled;
|
|
61
|
+
get paginationDisabled(): boolean;
|
|
62
|
+
set paginationDisabled(v: any);
|
|
63
|
+
private _useFirstLastButtons;
|
|
64
|
+
get useFirstLastButtons(): boolean;
|
|
65
|
+
set useFirstLastButtons(v: any);
|
|
66
|
+
private _itemsPerPage;
|
|
67
|
+
get itemsPerPage(): number;
|
|
68
|
+
set itemsPerPage(v: any);
|
|
69
|
+
itemsPerPageChange: EventEmitter<number>;
|
|
70
|
+
private _page;
|
|
71
|
+
get page(): number;
|
|
72
|
+
set page(v: any);
|
|
73
|
+
pageChange: EventEmitter<number>;
|
|
74
|
+
get isDefinedTotalItems(): boolean;
|
|
75
|
+
get canDisplayPagination(): boolean;
|
|
76
|
+
get headerCells(): HeaderCell[][];
|
|
77
|
+
get dataRows(): ArdTableRow[];
|
|
78
|
+
set columns(v: (TableDataColumn | TableSubheader)[]);
|
|
79
|
+
private _data;
|
|
80
|
+
set data(v: any[]);
|
|
81
|
+
get data(): any[];
|
|
82
|
+
private _treatDataSourceAsString;
|
|
83
|
+
get treatDataSourceAsString(): boolean;
|
|
84
|
+
set treatDataSourceAsString(v: any);
|
|
85
|
+
checkboxTemplate?: TemplateRef<TableCheckboxContext>;
|
|
86
|
+
headerCheckboxTemplate?: TemplateRef<TableHeaderCheckboxContext>;
|
|
87
|
+
captionTemplate?: TemplateRef<TableCaptionContext>;
|
|
88
|
+
private _itemTemplates;
|
|
89
|
+
templateChildren: QueryList<ArdiumTableTemplateDirective>;
|
|
90
|
+
ngAfterContentInit(): void;
|
|
91
|
+
getHeaderTemplate(tmp: string | {
|
|
92
|
+
template: string | TemplateRef<any>;
|
|
93
|
+
}): TemplateRef<any> | undefined;
|
|
94
|
+
getHeaderCheckboxColor(): SimpleComponentColor;
|
|
95
|
+
getCellTemplate(tmp?: string | TemplateRef<any>): TemplateRef<any> | undefined;
|
|
96
|
+
getCellStyle(cell: TableDataColumn | TableSubheader): string;
|
|
97
|
+
onCheckboxClick(index: number): void;
|
|
98
|
+
onRowClick(index: number, event: MouseEvent): void;
|
|
99
|
+
onRowMouseOver(event: MouseEvent): void;
|
|
100
|
+
onRowMouseEnter(index: number, event: MouseEvent): void;
|
|
101
|
+
onRowMouseLeave(index: number, event: MouseEvent): void;
|
|
102
|
+
/**
|
|
103
|
+
* Toggles the selection state of a row in the table.
|
|
104
|
+
* @param selected a boolean value indicating if the row is currently selected.
|
|
105
|
+
* @param index the index of the row in the table.
|
|
106
|
+
*/
|
|
107
|
+
toggleRowSelected(index: number): void;
|
|
108
|
+
/**
|
|
109
|
+
* Toggles the selection state of all rows in the table.
|
|
110
|
+
*/
|
|
111
|
+
toggleAllRowsSelected(): void;
|
|
112
|
+
private _emitSelect;
|
|
113
|
+
isCellCheckbox(cell: any): boolean;
|
|
114
|
+
isHeaderCellCheckbox(cell: HeaderCell): boolean;
|
|
115
|
+
isHeaderCellSortable(cell: HeaderCell): boolean;
|
|
116
|
+
selectedRowsChangeEvent: EventEmitter<any[]>;
|
|
117
|
+
failedSelectRowEvent: EventEmitter<any[]>;
|
|
118
|
+
selectRowEvent: EventEmitter<any[]>;
|
|
119
|
+
unselectRowEvent: EventEmitter<any[]>;
|
|
120
|
+
getHeaderContext(cell: TableDataColumn, index: number): TableHeaderContext | null;
|
|
121
|
+
getHeaderContext(cell: TableSubheader, index: number): TableSubheaderContext | null;
|
|
122
|
+
getHeaderContext(cell: TableDataColumn | TableSubheader, index: number): TableHeaderContext | TableSubheaderContext | null;
|
|
123
|
+
getHeaderCheckboxContext(): TableHeaderCheckboxContext;
|
|
124
|
+
getCheckboxContext(index: number): TableCheckboxContext;
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableComponent, never>;
|
|
126
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTableComponent, "ard-table", never, { "rowDisabledFrom": { "alias": "rowDisabledFrom"; "required": false; }; "rowBoldFrom": { "alias": "rowBoldFrom"; "required": false; }; "invertRowDisabled": { "alias": "invertRowDisabled"; "required": false; }; "invertRowBold": { "alias": "invertRowBold"; "required": false; }; "selectableRows": { "alias": "selectableRows"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "loadingProgress": { "alias": "loadingProgress"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "align": { "alias": "align"; "required": false; }; "headerAlign": { "alias": "headerAlign"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "zebra": { "alias": "zebra"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "paginated": { "alias": "paginated"; "required": false; }; "paginationStrategy": { "alias": "paginationStrategy"; "required": false; }; "paginationOptions": { "alias": "paginationOptions"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "paginationColor": { "alias": "paginationColor"; "required": false; }; "paginationAlign": { "alias": "paginationAlign"; "required": false; }; "itemsPerPageText": { "alias": "itemsPerPageText"; "required": false; }; "currentItemsFormatFn": { "alias": "currentItemsFormatFn"; "required": false; }; "pageFillRemaining": { "alias": "pageFillRemaining"; "required": false; }; "paginationDisabled": { "alias": "paginationDisabled"; "required": false; }; "useFirstLastButtons": { "alias": "useFirstLastButtons"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "page": { "alias": "page"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "treatDataSourceAsString": { "alias": "treatDataSourceAsString"; "required": false; }; }, { "itemsPerPageChange": "itemsPerPageChange"; "pageChange": "pageChange"; "selectedRowsChangeEvent": "selectedRowsChange"; "failedSelectRowEvent": "failedSelectRow"; "selectRowEvent": "selectRow"; "unselectRowEvent": "unselectRow"; }, ["checkboxTemplate", "headerCheckboxTemplate", "captionTemplate", "templateChildren"], never, false, never>;
|
|
127
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { TableCaptionContext, TableCheckboxContext } from './table.types';
|
|
3
|
+
import { PaginationContext } from '../_internal/models/pagination.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ArdiumTableTemplateDirective {
|
|
6
|
+
template: TemplateRef<any>;
|
|
7
|
+
name?: string;
|
|
8
|
+
constructor(template: TemplateRef<any>);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableTemplateDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableTemplateDirective, "ard-table > ng-template[ard-table-tmp]", never, { "name": { "alias": "ard-table-tmp"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class ArdiumTableCheckboxTemplateDirective {
|
|
13
|
+
template: TemplateRef<TableCheckboxContext>;
|
|
14
|
+
constructor(template: TemplateRef<TableCheckboxContext>);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableCheckboxTemplateDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableCheckboxTemplateDirective, "ard-table > ng-template[ard-table-checkbox-tmp]", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
18
|
+
export declare class ArdiumTableHeaderCheckboxTemplateDirective {
|
|
19
|
+
template: TemplateRef<TableCheckboxContext>;
|
|
20
|
+
constructor(template: TemplateRef<TableCheckboxContext>);
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableHeaderCheckboxTemplateDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableHeaderCheckboxTemplateDirective, "ard-table > ng-template[ard-table-header-checkbox-tmp]", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
24
|
+
export declare class ArdiumTableCaptionTemplateDirective {
|
|
25
|
+
template: TemplateRef<TableCaptionContext>;
|
|
26
|
+
constructor(template: TemplateRef<TableCaptionContext>);
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableCaptionTemplateDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTableCaptionTemplateDirective, "ard-table > ng-template[ard-table-caption-tmp]", never, {}, {}, never, never, false, never>;
|
|
29
|
+
}
|
|
30
|
+
export declare class ArdiumTablePaginationTemplateDirective {
|
|
31
|
+
template: TemplateRef<PaginationContext>;
|
|
32
|
+
constructor(template: TemplateRef<PaginationContext>);
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTablePaginationTemplateDirective, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumTablePaginationTemplateDirective, "ard-table > ng-template[ard-table-pagination-tmp]", never, {}, {}, never, never, false, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export declare class ArdiumTableModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableModule, never>;
|
|
10
|
+
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 i1.ArdiumTableComponent, typeof i2.ArdiumTableTemplateDirective, typeof i2.ArdiumTableCheckboxTemplateDirective, typeof i2.ArdiumTableHeaderCheckboxTemplateDirective, typeof i2.ArdiumTableCaptionTemplateDirective, typeof i2.ArdiumTablePaginationTemplateDirective]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumTableModule>;
|
|
12
|
+
}
|
|
@@ -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,16 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TableDataColumn } from '../table/table.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ArdiumTableFromCsvComponent implements AfterContentInit {
|
|
5
|
+
separator: string;
|
|
6
|
+
private _isDataOkay;
|
|
7
|
+
set data(v: string);
|
|
8
|
+
headers: TableDataColumn[];
|
|
9
|
+
dataRows: any[];
|
|
10
|
+
ngAfterContentInit(): void;
|
|
11
|
+
private _isCsvValid;
|
|
12
|
+
private _convertCsvToHeaders;
|
|
13
|
+
private _convertCsvToArray;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableFromCsvComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTableFromCsvComponent, "ard-table-from-csv", never, { "separator": { "alias": "separator"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table-from-csv.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../table/table.module";
|
|
5
|
+
export declare class ArdiumTableFromCsvModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTableFromCsvModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumTableFromCsvModule, [typeof i1.ArdiumTableFromCsvComponent], [typeof i2.CommonModule, typeof i3.ArdiumTableModule], [typeof i1.ArdiumTableFromCsvComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumTableFromCsvModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { _FocusableComponentBase } from '../_internal/focusable-component';
|
|
3
|
+
import { ComponentColor } from '../types/colors.types';
|
|
4
|
+
import { CurrentItemsFormatFn, PaginationAlign } from './table-pagination.types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ArdiumTablePaginationComponent extends _FocusableComponentBase implements OnInit {
|
|
7
|
+
private readonly _pagination;
|
|
8
|
+
set options(v: number[] | {
|
|
9
|
+
value: number;
|
|
10
|
+
label: string;
|
|
11
|
+
}[]);
|
|
12
|
+
get options(): number[] | {
|
|
13
|
+
value: number;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
set itemsPerPage(v: any);
|
|
17
|
+
get itemsPerPage(): number;
|
|
18
|
+
set page(v: any);
|
|
19
|
+
get page(): number;
|
|
20
|
+
set totalItems(v: any);
|
|
21
|
+
itemsPerPageChangeEvent: EventEmitter<number>;
|
|
22
|
+
pageChangeEvent: EventEmitter<number>;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
color: ComponentColor;
|
|
25
|
+
align: PaginationAlign;
|
|
26
|
+
private _compact;
|
|
27
|
+
get compact(): boolean;
|
|
28
|
+
set compact(v: any);
|
|
29
|
+
get ngClasses(): string;
|
|
30
|
+
private _useFirstLastButtons;
|
|
31
|
+
get useFirstLastButtons(): boolean;
|
|
32
|
+
set useFirstLastButtons(v: any);
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
itemsPerPageText: string;
|
|
35
|
+
currentItemsFormatFn: CurrentItemsFormatFn;
|
|
36
|
+
getCurrentItemsContext(): import("../_internal/models/pagination.model").PaginationCurrentItemsContext;
|
|
37
|
+
get firstPageDisabled(): boolean;
|
|
38
|
+
get lastPageDisabled(): boolean;
|
|
39
|
+
onItemsPerPageChange(newValue: number): void;
|
|
40
|
+
private _emitPageEvent;
|
|
41
|
+
onPageChange(newPage: number): void;
|
|
42
|
+
onFirstPage(): void;
|
|
43
|
+
onPrevPage(): void;
|
|
44
|
+
onNextPage(): void;
|
|
45
|
+
onLastPage(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTablePaginationComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumTablePaginationComponent, "ard-table-pagination", never, { "options": { "alias": "options"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "page": { "alias": "page"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "color": { "alias": "color"; "required": false; }; "align": { "alias": "align"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "useFirstLastButtons": { "alias": "useFirstLastButtons"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "itemsPerPageText": { "alias": "itemsPerPageText"; "required": false; }; "currentItemsFormatFn": { "alias": "currentItemsFormatFn"; "required": false; }; }, { "itemsPerPageChangeEvent": "itemsPerPageChange"; "pageChangeEvent": "pageChange"; }, never, never, false, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table-pagination.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../select/select.module";
|
|
5
|
+
import * as i4 from "../buttons/icon-button/icon-button.module";
|
|
6
|
+
import * as i5 from "../icon/icon.module";
|
|
7
|
+
export declare class ArdiumTablePaginationModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumTablePaginationModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumTablePaginationModule, [typeof i1.ArdiumTablePaginationComponent], [typeof i2.CommonModule, typeof i3.ArdiumSelectModule, typeof i4.ArdiumIconButtonModule, typeof i5.ArdiumIconModule], [typeof i1.ArdiumTablePaginationComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumTablePaginationModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PaginationCurrentItemsContext } from '../_internal/models/pagination.model';
|
|
2
|
+
export declare const PaginationAlign: {
|
|
3
|
+
readonly Left: "left";
|
|
4
|
+
readonly Center: "center";
|
|
5
|
+
readonly Right: "right";
|
|
6
|
+
readonly Split: "split";
|
|
7
|
+
};
|
|
8
|
+
export type PaginationAlign = (typeof PaginationAlign)[keyof typeof PaginationAlign];
|
|
9
|
+
export type CurrentItemsFormatFn = (context: PaginationCurrentItemsContext) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const SimpleOneAxisAlignment: {
|
|
2
|
+
readonly Left: "left";
|
|
3
|
+
readonly Right: "right";
|
|
4
|
+
};
|
|
5
|
+
export type SimpleOneAxisAlignment = (typeof SimpleOneAxisAlignment)[keyof typeof SimpleOneAxisAlignment];
|
|
6
|
+
export declare const OneAxisAlignment: {
|
|
7
|
+
readonly Left: "left";
|
|
8
|
+
readonly Middle: "middle";
|
|
9
|
+
readonly Right: "right";
|
|
10
|
+
};
|
|
11
|
+
export type OneAxisAlignment = (typeof OneAxisAlignment)[keyof typeof OneAxisAlignment];
|