@ardium-ui/ui 1.0.3 → 2.0.2
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 -25
- package/esm2022/lib/_internal/boolean-component.mjs +28 -42
- package/esm2022/lib/_internal/clear-button/clear-button.component.mjs +5 -5
- package/esm2022/lib/_internal/clear-button/clear-button.module.mjs +5 -5
- package/esm2022/lib/_internal/disablable-component.mjs +24 -22
- package/esm2022/lib/_internal/focusable-component.mjs +12 -25
- package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +172 -169
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +115 -120
- package/esm2022/lib/_internal/item-storages/simplest-item-storage.mjs +56 -53
- package/esm2022/lib/_internal/models/pagination.model.mjs +72 -106
- package/esm2022/lib/_internal/ngmodel-component.mjs +5 -5
- package/esm2022/lib/_internal/queue.mjs +1 -1
- package/esm2022/lib/_internal/selectable-list-component.mjs +74 -98
- package/esm2022/lib/badge/badge.directive.mjs +70 -99
- package/esm2022/lib/badge/badge.module.mjs +5 -5
- package/esm2022/lib/badge/badge.types.mjs +1 -1
- package/esm2022/lib/badge/index.mjs +4 -0
- package/esm2022/lib/buttons/_button-base.mjs +13 -35
- package/esm2022/lib/buttons/button/button.component.mjs +22 -37
- package/esm2022/lib/buttons/button/button.module.mjs +5 -5
- package/esm2022/lib/buttons/button/index.mjs +3 -0
- package/esm2022/lib/buttons/fab/fab.component.mjs +16 -28
- package/esm2022/lib/buttons/fab/fab.module.mjs +5 -5
- package/esm2022/lib/buttons/fab/index.mjs +3 -0
- package/esm2022/lib/buttons/general-button.types.mjs +1 -1
- package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +17 -25
- package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +5 -5
- package/esm2022/lib/buttons/icon-button/index.mjs +3 -0
- package/esm2022/lib/card/card.children.mjs +32 -33
- package/esm2022/lib/card/card.component.mjs +14 -17
- package/esm2022/lib/card/card.module.mjs +5 -5
- package/esm2022/lib/card/card.types.mjs +1 -1
- package/esm2022/lib/card/index.mjs +5 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +33 -46
- package/esm2022/lib/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/lib/checkbox/checkbox.types.mjs +1 -1
- package/esm2022/lib/checkbox/index.mjs +4 -0
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +31 -57
- package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +5 -5
- package/esm2022/lib/checkbox-list/checkbox-list.types.mjs +1 -1
- package/esm2022/lib/checkbox-list/index.mjs +4 -0
- package/esm2022/lib/chip/chip.component.mjs +22 -42
- package/esm2022/lib/chip/chip.module.mjs +5 -5
- package/esm2022/lib/chip/deletable-chip/deletable-chip.component.mjs +28 -53
- package/esm2022/lib/chip/index.mjs +5 -0
- package/esm2022/lib/chip/selectable-chip/selectable-chip.component.mjs +25 -49
- package/esm2022/lib/color/color-display/color-display.component.mjs +15 -32
- package/esm2022/lib/color/color-display/color-display.module.mjs +5 -5
- package/esm2022/lib/color/color-display/color-display.types.mjs +1 -1
- package/esm2022/lib/color/color-display/index.mjs +4 -0
- package/esm2022/lib/color/color-picker/color-picker.types.mjs +1 -1
- package/esm2022/lib/dialog/dialog.component.mjs +54 -130
- package/esm2022/lib/dialog/dialog.directives.mjs +4 -4
- package/esm2022/lib/dialog/dialog.module.mjs +5 -5
- package/esm2022/lib/dialog/dialog.types.mjs +1 -1
- package/esm2022/lib/dialog/index.mjs +5 -0
- package/esm2022/lib/divider/divider.component.mjs +9 -14
- package/esm2022/lib/divider/divider.module.mjs +5 -5
- package/esm2022/lib/divider/index.mjs +3 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.component.mjs +40 -59
- package/esm2022/lib/dropdown-panel/dropdown-panel.module.mjs +5 -5
- package/esm2022/lib/dropdown-panel/dropdown-panel.types.mjs +1 -1
- package/esm2022/lib/dropdown-panel/index.mjs +4 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +12 -17
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.directives.mjs +10 -10
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.module.mjs +6 -6
- package/esm2022/lib/file-inputs/file-drop-area/index.mjs +4 -0
- package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +24 -50
- package/esm2022/lib/file-inputs/file-input/file-input.directives.mjs +19 -19
- package/esm2022/lib/file-inputs/file-input/file-input.module.mjs +5 -5
- package/esm2022/lib/file-inputs/file-input/index.mjs +4 -0
- package/esm2022/lib/file-inputs/file-input-base.mjs +38 -72
- package/esm2022/lib/file-inputs/file-input-types.mjs +1 -1
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +20 -47
- package/esm2022/lib/form-field-frame/form-field-frame.directives.mjs +7 -7
- package/esm2022/lib/form-field-frame/form-field-frame.module.mjs +5 -5
- package/esm2022/lib/form-field-frame/index.mjs +4 -0
- package/esm2022/lib/icon/icon.component.mjs +32 -67
- package/esm2022/lib/icon/icon.module.mjs +5 -5
- package/esm2022/lib/icon/icon.pipe.mjs +4 -4
- package/esm2022/lib/icon/index.mjs +4 -0
- package/esm2022/lib/inputs/color-input/color-input.directives.mjs +25 -25
- package/esm2022/lib/inputs/color-input/color-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +65 -115
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +83 -92
- package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +5 -5
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/index.mjs +4 -0
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +59 -122
- package/esm2022/lib/inputs/hex-input/hex-input.directives.mjs +10 -10
- package/esm2022/lib/inputs/hex-input/hex-input.module.mjs +24 -8
- package/esm2022/lib/inputs/hex-input/index.mjs +4 -0
- package/esm2022/lib/inputs/hex-input.model.mjs +24 -33
- package/esm2022/lib/inputs/input/index.mjs +4 -0
- package/esm2022/lib/inputs/input/input.component.mjs +95 -154
- package/esm2022/lib/inputs/input/input.directives.mjs +16 -16
- package/esm2022/lib/inputs/input/input.module.mjs +21 -7
- package/esm2022/lib/inputs/input-transformers.mjs +6 -6
- package/esm2022/lib/inputs/input-types.mjs +1 -1
- package/esm2022/lib/inputs/input-utils.mjs +75 -94
- package/esm2022/lib/inputs/number-input/index.mjs +4 -0
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +106 -170
- package/esm2022/lib/inputs/number-input/number-input.directives.mjs +4 -4
- package/esm2022/lib/inputs/number-input/number-input.module.mjs +5 -5
- package/esm2022/lib/inputs/password-input/index.mjs +5 -0
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +74 -144
- package/esm2022/lib/inputs/password-input/password-input.directives.mjs +13 -13
- package/esm2022/lib/inputs/password-input/password-input.module.mjs +5 -5
- package/esm2022/lib/inputs/password-input/password-input.types.mjs +1 -1
- package/esm2022/lib/inputs/simple-input/index.mjs +4 -0
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +57 -110
- package/esm2022/lib/inputs/simple-input/simple-input.directives.mjs +10 -10
- package/esm2022/lib/inputs/simple-input/simple-input.module.mjs +5 -5
- package/esm2022/lib/kbd/index.mjs +4 -0
- package/esm2022/lib/kbd/kbd.component.mjs +15 -29
- package/esm2022/lib/kbd/kbd.module.mjs +5 -5
- package/esm2022/lib/kbd/kbd.pipe.mjs +4 -4
- package/esm2022/lib/kbd-shortcut/index.mjs +3 -0
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.component.mjs +23 -40
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.module.mjs +5 -5
- package/esm2022/lib/modal/index.mjs +3 -0
- package/esm2022/lib/modal/modal.component.mjs +42 -83
- package/esm2022/lib/modal/modal.module.mjs +5 -5
- package/esm2022/lib/option/index.mjs +3 -0
- package/esm2022/lib/option/option.component.mjs +24 -46
- package/esm2022/lib/option/option.module.mjs +5 -5
- package/esm2022/lib/progress-bar/index.mjs +5 -0
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +43 -81
- package/esm2022/lib/progress-bar/progress-bar.directive.mjs +4 -4
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +5 -5
- package/esm2022/lib/progress-bar/progress-bar.types.mjs +1 -1
- package/esm2022/lib/progress-circle/index.mjs +5 -0
- package/esm2022/lib/progress-circle/progress-circle.component.mjs +33 -78
- package/esm2022/lib/progress-circle/progress-circle.directive.mjs +4 -4
- package/esm2022/lib/progress-circle/progress-circle.module.mjs +5 -5
- package/esm2022/lib/progress-circle/progress-circle.types.mjs +1 -1
- package/esm2022/lib/radio/index.mjs +4 -0
- package/esm2022/lib/radio/radio/radio.component.mjs +16 -25
- package/esm2022/lib/radio/radio-group.component.mjs +71 -85
- package/esm2022/lib/radio/radio.module.mjs +5 -5
- package/esm2022/lib/search-functions.mjs +7 -7
- package/esm2022/lib/segment/index.mjs +5 -0
- package/esm2022/lib/segment/segment.component.mjs +70 -137
- package/esm2022/lib/segment/segment.directives.mjs +4 -4
- package/esm2022/lib/segment/segment.module.mjs +5 -5
- package/esm2022/lib/segment/segment.types.mjs +1 -1
- package/esm2022/lib/select/index.mjs +5 -0
- package/esm2022/lib/select/select.component.mjs +348 -655
- package/esm2022/lib/select/select.directive.mjs +46 -46
- package/esm2022/lib/select/select.module.mjs +5 -5
- package/esm2022/lib/select/select.types.mjs +1 -1
- package/esm2022/lib/slide-toggle/index.mjs +4 -0
- package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +19 -24
- package/esm2022/lib/slide-toggle/slide-toggle.module.mjs +5 -5
- package/esm2022/lib/slide-toggle/slide-toggle.types.mjs +5 -0
- package/esm2022/lib/slider/abstract-slider.mjs +111 -200
- package/esm2022/lib/slider/index.mjs +7 -0
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +26 -23
- package/esm2022/lib/slider/range-slider/range-slider.module.mjs +5 -5
- package/esm2022/lib/slider/slider.component.mjs +13 -10
- package/esm2022/lib/slider/slider.directive.mjs +4 -4
- package/esm2022/lib/slider/slider.module.mjs +7 -7
- package/esm2022/lib/slider/slider.types.mjs +1 -1
- package/esm2022/lib/snackbar/index.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar-ref.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar.component.mjs +8 -8
- package/esm2022/lib/snackbar/snackbar.service.mjs +13 -12
- package/esm2022/lib/snackbar/snackbar.token.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar.types.mjs +1 -1
- package/esm2022/lib/spinner/index.mjs +3 -0
- package/esm2022/lib/spinner/spinner.component.mjs +9 -13
- package/esm2022/lib/spinner/spinner.module.mjs +5 -5
- package/esm2022/lib/star/index.mjs +4 -0
- package/esm2022/lib/star/star-button/index.mjs +3 -0
- package/esm2022/lib/star/star-button/star-button.component.mjs +17 -26
- package/esm2022/lib/star/star-button/star-button.module.mjs +5 -5
- package/esm2022/lib/star/star-display/index.mjs +3 -0
- package/esm2022/lib/star/star-display/star-display.component.mjs +48 -55
- package/esm2022/lib/star/star-display/star-display.module.mjs +5 -5
- package/esm2022/lib/star/star-input/index.mjs +3 -0
- package/esm2022/lib/star/star-input/star-input.component.mjs +70 -106
- package/esm2022/lib/star/star-input/star-input.module.mjs +5 -5
- package/esm2022/lib/star/star.component.mjs +12 -20
- package/esm2022/lib/star/star.module.mjs +5 -5
- package/esm2022/lib/star/star.types.mjs +1 -1
- package/esm2022/lib/statebox/index.mjs +3 -0
- package/esm2022/lib/statebox/statebox.component.mjs +64 -102
- package/esm2022/lib/statebox/statebox.module.mjs +5 -5
- package/esm2022/lib/statebox/statebox.types.mjs +1 -1
- package/esm2022/lib/tabber/index.mjs +4 -0
- package/esm2022/lib/tabber/tab/tab.component.mjs +42 -0
- package/esm2022/lib/tabber/tabber.component.mjs +83 -0
- package/esm2022/lib/tabber/tabber.module.mjs +19 -0
- package/esm2022/lib/table/index.mjs +5 -0
- package/esm2022/lib/table/table-item-storage.mjs +204 -200
- package/esm2022/lib/table/table.component.mjs +184 -304
- package/esm2022/lib/table/table.directives.mjs +19 -21
- package/esm2022/lib/table/table.module.mjs +5 -5
- package/esm2022/lib/table/table.types.mjs +1 -1
- package/esm2022/lib/table/utils.mjs +1 -1
- package/esm2022/lib/table-from-csv/index.mjs +3 -0
- package/esm2022/lib/table-from-csv/table-from-csv.component.mjs +85 -29
- package/esm2022/lib/table-from-csv/table-from-csv.module.mjs +5 -5
- package/esm2022/lib/table-pagination/index.mjs +4 -0
- package/esm2022/lib/table-pagination/table-pagination.component.mjs +46 -114
- package/esm2022/lib/table-pagination/table-pagination.module.mjs +5 -5
- package/esm2022/lib/table-pagination/table-pagination.types.mjs +1 -1
- package/esm2022/lib/types/alignment.types.mjs +1 -1
- package/esm2022/lib/types/colors.types.mjs +1 -1
- package/esm2022/lib/types/item-storage.types.mjs +1 -1
- package/esm2022/lib/types/theming.types.mjs +1 -1
- package/esm2022/lib/types/utility.types.mjs +2 -2
- package/esm2022/public-api.mjs +58 -182
- package/fesm2022/ardium-ui-ui.mjs +7847 -11692
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/boolean-component.d.ts +8 -9
- package/lib/_internal/clear-button/clear-button.component.d.ts +1 -1
- package/lib/_internal/disablable-component.d.ts +12 -7
- package/lib/_internal/focusable-component.d.ts +5 -7
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +43 -41
- package/lib/_internal/item-storages/simple-item-storage.d.ts +28 -25
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +14 -9
- package/lib/_internal/models/pagination.model.d.ts +38 -42
- package/lib/_internal/ngmodel-component.d.ts +1 -1
- package/lib/_internal/selectable-list-component.d.ts +30 -30
- package/lib/badge/badge.directive.d.ts +15 -20
- package/lib/badge/index.d.ts +3 -0
- package/lib/buttons/_button-base.d.ts +9 -12
- package/lib/buttons/button/button.component.d.ts +6 -8
- package/lib/buttons/button/index.d.ts +2 -0
- package/lib/buttons/fab/fab.component.d.ts +4 -6
- package/lib/buttons/fab/index.d.ts +2 -0
- package/lib/buttons/icon-button/icon-button.component.d.ts +6 -7
- package/lib/buttons/icon-button/index.d.ts +2 -0
- package/lib/card/card.children.d.ts +4 -3
- package/lib/card/card.component.d.ts +5 -4
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.component.d.ts +8 -12
- package/lib/checkbox/index.d.ts +3 -0
- package/lib/checkbox-list/checkbox-list.component.d.ts +22 -21
- package/lib/checkbox-list/index.d.ts +3 -0
- package/lib/chip/chip.component.d.ts +8 -10
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +11 -14
- package/lib/chip/index.d.ts +4 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +10 -12
- package/lib/color/color-display/color-display.component.d.ts +6 -9
- package/lib/color/color-display/index.d.ts +3 -0
- package/lib/color/color-picker/color-picker.types.d.ts +4 -4
- package/lib/dialog/dialog.component.d.ts +25 -35
- package/lib/dialog/dialog.types.d.ts +2 -2
- package/lib/dialog/index.d.ts +4 -0
- package/lib/divider/divider.component.d.ts +3 -4
- package/lib/divider/index.d.ts +2 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +17 -20
- package/lib/dropdown-panel/index.d.ts +3 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.component.d.ts +5 -4
- package/lib/file-inputs/file-drop-area/index.d.ts +3 -0
- package/lib/file-inputs/file-input/file-input.component.d.ts +13 -17
- package/lib/file-inputs/file-input/index.d.ts +3 -0
- package/lib/file-inputs/file-input-base.d.ts +13 -18
- package/lib/form-field-frame/form-field-frame.component.d.ts +12 -16
- package/lib/form-field-frame/index.d.ts +3 -0
- package/lib/icon/icon.component.d.ts +10 -19
- package/lib/icon/index.d.ts +3 -0
- package/lib/inputs/color-input/color-input.types.d.ts +2 -2
- package/lib/inputs/digit-input/digit-input.component.d.ts +22 -30
- package/lib/inputs/digit-input/digit-input.model.d.ts +8 -12
- package/lib/inputs/digit-input/digit-input.types.d.ts +4 -4
- package/lib/inputs/digit-input/digit-input.utils.d.ts +4 -5
- package/lib/inputs/digit-input/index.d.ts +3 -0
- package/lib/inputs/hex-input/hex-input.component.d.ts +32 -38
- package/lib/inputs/hex-input/index.d.ts +3 -0
- package/lib/inputs/hex-input.model.d.ts +10 -11
- package/lib/inputs/input/index.d.ts +3 -0
- package/lib/inputs/input/input.component.d.ts +34 -40
- package/lib/inputs/input/input.directives.d.ts +3 -3
- package/lib/inputs/input-utils.d.ts +24 -27
- package/lib/inputs/number-input/index.d.ts +3 -0
- package/lib/inputs/number-input/number-input.component.d.ts +38 -48
- package/lib/inputs/password-input/index.d.ts +4 -0
- package/lib/inputs/password-input/password-input.component.d.ts +28 -40
- package/lib/inputs/password-input/password-input.types.d.ts +2 -2
- package/lib/inputs/simple-input/index.d.ts +3 -0
- package/lib/inputs/simple-input/simple-input.component.d.ts +30 -35
- package/lib/kbd/index.d.ts +3 -0
- package/lib/kbd/kbd.component.d.ts +6 -8
- package/lib/kbd-shortcut/index.d.ts +2 -0
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +7 -10
- package/lib/modal/index.d.ts +2 -0
- package/lib/modal/modal.component.d.ts +22 -30
- package/lib/option/index.d.ts +2 -0
- package/lib/option/option.component.d.ts +11 -16
- package/lib/progress-bar/index.d.ts +4 -0
- package/lib/progress-bar/progress-bar.component.d.ts +14 -20
- package/lib/progress-bar/progress-bar.types.d.ts +2 -2
- package/lib/progress-circle/index.d.ts +4 -0
- package/lib/progress-circle/progress-circle.component.d.ts +12 -20
- package/lib/progress-circle/progress-circle.types.d.ts +2 -2
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio/radio.component.d.ts +7 -8
- package/lib/radio/radio-group.component.d.ts +13 -16
- package/lib/segment/index.d.ts +4 -0
- package/lib/segment/segment.component.d.ts +22 -34
- package/lib/segment/segment.directives.d.ts +2 -3
- package/lib/select/index.d.ts +4 -0
- package/lib/select/select.component.d.ts +114 -160
- package/lib/select/select.directive.d.ts +3 -3
- package/lib/select/select.types.d.ts +2 -76
- package/lib/slide-toggle/index.d.ts +3 -0
- package/lib/slide-toggle/slide-toggle.component.d.ts +9 -7
- package/lib/slide-toggle/slide-toggle.types.d.ts +5 -0
- package/lib/slider/abstract-slider.d.ts +38 -55
- package/lib/slider/index.d.ts +6 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +3 -1
- package/lib/slider/slider.component.d.ts +2 -0
- package/lib/slider/slider.types.d.ts +8 -8
- package/lib/snackbar/snackbar-ref.d.ts +1 -2
- package/lib/snackbar/snackbar.component.d.ts +3 -3
- package/lib/snackbar/snackbar.service.d.ts +2 -2
- package/lib/snackbar/snackbar.types.d.ts +4 -4
- package/lib/spinner/index.d.ts +2 -0
- package/lib/spinner/spinner.component.d.ts +3 -3
- package/lib/star/index.d.ts +3 -0
- package/lib/star/star-button/index.d.ts +2 -0
- package/lib/star/star-button/star-button.component.d.ts +7 -7
- package/lib/star/star-display/index.d.ts +2 -0
- package/lib/star/star-display/star-display.component.d.ts +8 -12
- package/lib/star/star-input/index.d.ts +2 -0
- package/lib/star/star-input/star-input.component.d.ts +17 -22
- package/lib/star/star.component.d.ts +5 -5
- package/lib/statebox/index.d.ts +3 -0
- package/lib/statebox/statebox.component.d.ts +15 -21
- package/lib/statebox/statebox.types.d.ts +12 -8
- package/lib/tabber/index.d.ts +3 -0
- package/lib/tabber/tab/tab.component.d.ts +18 -0
- package/lib/tabber/tabber.component.d.ts +25 -0
- package/lib/tabber/tabber.module.d.ts +9 -0
- package/lib/table/index.d.ts +4 -0
- package/lib/table/table-item-storage.d.ts +70 -58
- package/lib/table/table.component.d.ts +59 -78
- package/lib/table/table.directives.d.ts +4 -3
- package/lib/table-from-csv/index.d.ts +2 -0
- package/lib/table-from-csv/table-from-csv.component.d.ts +46 -9
- package/lib/table-pagination/index.d.ts +3 -0
- package/lib/table-pagination/table-pagination.component.d.ts +21 -30
- package/lib/types/item-storage.types.d.ts +19 -18
- package/lib/types/utility.types.d.ts +2 -1
- package/package.json +8 -9
- package/prebuilt-themes/default/badge.css +5 -5
- package/prebuilt-themes/default/buttons/fab.css +4 -3
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/card.css +7 -7
- package/prebuilt-themes/default/chips.css +3 -8
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/core.css +6 -3
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +139 -2
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +2 -2
- package/prebuilt-themes/default/inputs/input.css +1 -1
- package/prebuilt-themes/default/inputs/search-bar.css +1 -1
- package/prebuilt-themes/default/inputs/simple-input.css +1 -1
- package/prebuilt-themes/default/modal.css +1 -1
- package/prebuilt-themes/default/segment.css +2 -2
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +5 -3
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +0 -1
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +207 -0
- package/prebuilt-themes/default/tabber.css.map +1 -0
- package/public-api.d.ts +43 -136
- package/themes/_variables.scss +121 -121
- package/themes/default/_clear-button.scss +73 -73
- package/themes/default/_coloring.scss +137 -137
- package/themes/default/_dropdown-arrow.scss +12 -12
- package/themes/default/_mixins.scss +70 -70
- package/themes/default/badge.scss +94 -94
- package/themes/default/buttons/_button-mixins.scss +144 -144
- package/themes/default/buttons/button.scss +62 -62
- package/themes/default/buttons/fab.scss +74 -72
- package/themes/default/buttons/icon-button.scss +59 -59
- package/themes/default/calendar.scss +182 -182
- package/themes/default/card.scss +126 -126
- package/themes/default/checkbox-list.scss +83 -83
- package/themes/default/checkbox.scss +109 -109
- package/themes/default/chips.scss +200 -206
- package/themes/default/color-display.scss +41 -41
- package/themes/default/color-picker.scss +111 -111
- package/themes/default/core.scss +99 -96
- package/themes/default/dialog.scss +16 -16
- package/themes/default/divider.scss +13 -13
- package/themes/default/dropdown-panel.scss +45 -45
- package/themes/default/file-drop-area.scss +162 -162
- package/themes/default/form-field-frame.scss +78 -78
- package/themes/default/inputs/_shared.scss +46 -46
- package/themes/default/inputs/color-input.scss +46 -46
- package/themes/default/inputs/digit-input.scss +56 -56
- package/themes/default/inputs/file-input.scss +85 -78
- package/themes/default/inputs/hex-input.scss +27 -27
- package/themes/default/inputs/input.scss +52 -52
- package/themes/default/inputs/number-input.scss +121 -121
- package/themes/default/inputs/password-input.scss +43 -43
- package/themes/default/inputs/search-bar.scss +19 -19
- package/themes/default/inputs/simple-input.scss +19 -19
- package/themes/default/kbd-shortcut.scss +13 -13
- package/themes/default/kbd.scss +20 -20
- package/themes/default/modal.scss +93 -93
- package/themes/default/progress-bar.scss +166 -166
- package/themes/default/progress-circle.scss +56 -56
- package/themes/default/radio.scss +112 -112
- package/themes/default/segment.scss +340 -339
- package/themes/default/select.scss +255 -253
- package/themes/default/slide-toggle.scss +151 -151
- package/themes/default/slider.scss +224 -224
- package/themes/default/snackbar.scss +58 -60
- package/themes/default/spinner.scss +21 -21
- package/themes/default/stars.scss +122 -122
- package/themes/default/statebox.scss +109 -109
- package/themes/default/tabber.scss +86 -0
- package/themes/default/table-pagination.scss +56 -56
- package/themes/default/table.scss +403 -403
- package/esm2022/lib/calendar/calendar.component.mjs +0 -979
- package/esm2022/lib/calendar/calendar.directives.mjs +0 -107
- package/esm2022/lib/calendar/calendar.helpers.mjs +0 -47
- package/esm2022/lib/calendar/calendar.module.mjs +0 -21
- package/esm2022/lib/calendar/calendar.types.mjs +0 -11
- package/esm2022/lib/color/color-picker/color-picker.component.mjs +0 -484
- package/esm2022/lib/color/color-picker/color-picker.directives.mjs +0 -55
- package/esm2022/lib/color/color-picker/color-picker.module.mjs +0 -43
- package/esm2022/lib/inputs/color-input/color-input.component.mjs +0 -421
- package/esm2022/lib/inputs/color-input/color-input.module.mjs +0 -85
- package/lib/calendar/calendar.component.d.ts +0 -155
- package/lib/calendar/calendar.directives.d.ts +0 -51
- package/lib/calendar/calendar.helpers.d.ts +0 -15
- package/lib/calendar/calendar.module.d.ts +0 -11
- package/lib/calendar/calendar.types.d.ts +0 -80
- package/lib/color/color-picker/color-picker.component.d.ts +0 -125
- package/lib/color/color-picker/color-picker.directives.d.ts +0 -27
- package/lib/color/color-picker/color-picker.module.d.ts +0 -13
- package/lib/inputs/color-input/color-input.component.d.ts +0 -147
- package/lib/inputs/color-input/color-input.module.d.ts +0 -16
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
2
|
import { _NgModelComponentBase } from './ngmodel-component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
@@ -14,25 +13,25 @@ export declare abstract class _BooleanComponentBase extends _NgModelComponentBas
|
|
|
14
13
|
/**
|
|
15
14
|
* The event emitter responsible for firing `select` events. Fired when the `selected` state is set to true.
|
|
16
15
|
*/
|
|
17
|
-
selectEvent:
|
|
16
|
+
readonly selectEvent: import("@angular/core").OutputEmitterRef<null>;
|
|
18
17
|
/**
|
|
19
18
|
* The event emitter responsible for firing `unselect` events. Fired when the `selected` state is set to false.
|
|
20
19
|
*/
|
|
21
|
-
unselectEvent:
|
|
20
|
+
readonly unselectEvent: import("@angular/core").OutputEmitterRef<null>;
|
|
22
21
|
/**
|
|
23
22
|
* The event emitter responsible for firing `change` events. Fired when the `selected` state is changed.
|
|
24
23
|
*/
|
|
25
|
-
changeEvent:
|
|
26
|
-
|
|
24
|
+
readonly changeEvent: import("@angular/core").OutputEmitterRef<boolean>;
|
|
25
|
+
readonly selected: import("@angular/core").WritableSignal<boolean>;
|
|
27
26
|
/**
|
|
28
27
|
* The selection state of the component. Coercible into a boolean.
|
|
29
28
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
set _selected(v: any);
|
|
30
|
+
get _selectedHostAttribute(): boolean;
|
|
32
31
|
/**
|
|
33
32
|
* The event emitter responsible for firing `selectedChange` events. Fired when the `selected` state is changed.
|
|
34
33
|
*/
|
|
35
|
-
selectedChange:
|
|
34
|
+
readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
36
35
|
/**
|
|
37
36
|
* Toggles the selected state. Emits all appropriate events.
|
|
38
37
|
*/
|
|
@@ -46,5 +45,5 @@ export declare abstract class _BooleanComponentBase extends _NgModelComponentBas
|
|
|
46
45
|
*/
|
|
47
46
|
unselect(): void;
|
|
48
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<_BooleanComponentBase, never>;
|
|
49
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_BooleanComponentBase, never, never, { "
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_BooleanComponentBase, never, never, { "_selected": { "alias": "selected"; "required": false; }; }, { "selectEvent": "select"; "unselectEvent": "unselect"; "changeEvent": "change"; "selectedChange": "selectedChange"; }, never, never, false, never>;
|
|
50
49
|
}
|
|
@@ -2,5 +2,5 @@ import { _FocusableComponentBase } from './../focusable-component';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class _ClearButtonComponent extends _FocusableComponentBase {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<_ClearButtonComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<_ClearButtonComponent, "ard-
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<_ClearButtonComponent, "ard-clear-button", never, {}, {}, never, never, false, never>;
|
|
6
6
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare abstract class _DisablableComponentBase {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Whether the component is read-only. Defines the `readonly` host attribute and `ard-readonly` host class. Coearcible into a boolean.
|
|
5
|
+
*/
|
|
6
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<any, boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the component is disabled. Defines the `disabled` host attribute and `ard-disabled` host class. Coearcible into a boolean.
|
|
9
|
+
*/
|
|
10
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
set _disabled(v: any);
|
|
12
|
+
get _readonlyHostAttribute(): boolean;
|
|
13
|
+
get _disabledHostAttribute(): boolean;
|
|
9
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<_DisablableComponentBase, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_DisablableComponentBase, never, never, { "readonly": { "alias": "readonly"; "required": false; }; "
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_DisablableComponentBase, never, never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { _DisablableComponentBase } from './disablable-component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare abstract class _FocusableComponentBase extends _DisablableComponentBase {
|
|
@@ -19,20 +18,19 @@ export declare abstract class _FocusableComponentBase extends _DisablableCompone
|
|
|
19
18
|
* Blurs all focusable elements in the component.
|
|
20
19
|
*/
|
|
21
20
|
blur(): void;
|
|
22
|
-
protected _tabIndex: number;
|
|
23
21
|
/**
|
|
24
22
|
* The component's overall tab index. If the component is disabled, it is always `-1`. Coercible into a number, defaults to `0`.
|
|
25
23
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
readonly tabIndex: import("@angular/core").Signal<any>;
|
|
25
|
+
readonly _tabIndex: import("@angular/core").InputSignalWithTransform<any, number>;
|
|
28
26
|
/**
|
|
29
27
|
* The event emitter responsible for firing `focus` events.
|
|
30
28
|
*/
|
|
31
|
-
focusEvent:
|
|
29
|
+
readonly focusEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
32
30
|
/**
|
|
33
31
|
* The event emitter responsible for firing `blur` events.
|
|
34
32
|
*/
|
|
35
|
-
blurEvent:
|
|
33
|
+
readonly blurEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
36
34
|
/**
|
|
37
35
|
* Whether the component is currently focused.
|
|
38
36
|
*/
|
|
@@ -48,5 +46,5 @@ export declare abstract class _FocusableComponentBase extends _DisablableCompone
|
|
|
48
46
|
*/
|
|
49
47
|
onBlur(event: FocusEvent): void;
|
|
50
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<_FocusableComponentBase, never>;
|
|
51
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_FocusableComponentBase, never, never, { "
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_FocusableComponentBase, never, never, { "_tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; }, { "focusEvent": "focus"; "blurEvent": "blur"; }, never, never, false, never>;
|
|
52
50
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
2
|
import { AddCustomFn } from '../../select/select.types';
|
|
3
|
+
import { ArdOption, ArdOptionGroup, CompareWithFn, GroupByFn, SearchFn } from '../../types/item-storage.types';
|
|
4
|
+
import { Nullable } from '../../types/utility.types';
|
|
3
5
|
export interface ItemStorageHostDefaults {
|
|
4
6
|
valueFrom: string;
|
|
5
7
|
labelFrom: string;
|
|
@@ -10,48 +12,48 @@ export interface ItemStorageHostDefaults {
|
|
|
10
12
|
[key: string]: any;
|
|
11
13
|
}
|
|
12
14
|
export interface ItemStorageHost {
|
|
13
|
-
valueFrom
|
|
14
|
-
labelFrom
|
|
15
|
-
disabledFrom
|
|
16
|
-
invertDisabled
|
|
17
|
-
groupLabelFrom
|
|
18
|
-
groupDisabledFrom
|
|
19
|
-
childrenFrom
|
|
15
|
+
readonly valueFrom: Signal<Nullable<string>>;
|
|
16
|
+
readonly labelFrom: Signal<Nullable<string>>;
|
|
17
|
+
readonly disabledFrom: Signal<Nullable<string>>;
|
|
18
|
+
readonly invertDisabled: Signal<Nullable<boolean>>;
|
|
19
|
+
readonly groupLabelFrom: Signal<Nullable<string | GroupByFn>>;
|
|
20
|
+
readonly groupDisabledFrom: Signal<Nullable<string>>;
|
|
21
|
+
readonly childrenFrom: Signal<Nullable<string>>;
|
|
20
22
|
readonly DEFAULTS: ItemStorageHostDefaults;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
readonly itemsAlreadyGrouped: Signal<Nullable<boolean>>;
|
|
24
|
+
readonly hideSelected: Signal<boolean>;
|
|
25
|
+
readonly searchCaseSensitive: Signal<boolean>;
|
|
26
|
+
readonly searchFn: Signal<SearchFn>;
|
|
27
|
+
readonly compareWith: Signal<Nullable<CompareWithFn>>;
|
|
28
|
+
readonly multiselectable: Signal<boolean>;
|
|
29
|
+
readonly sortMultipleValues: Signal<boolean>;
|
|
30
|
+
readonly maxSelectedItems: Signal<Nullable<number>>;
|
|
31
|
+
readonly addCustom: Signal<boolean | AddCustomFn<any> | AddCustomFn<Promise<any>>>;
|
|
32
|
+
readonly _componentId: string;
|
|
31
33
|
}
|
|
32
34
|
export declare class ItemStorage {
|
|
33
|
-
private _ardParentComp;
|
|
34
|
-
private _groups;
|
|
35
|
-
private _items;
|
|
36
|
-
private _filteredItems;
|
|
37
|
-
private _highlightedItems;
|
|
38
|
-
private _highlightedGroups;
|
|
39
|
-
private _recentlyHighlightedItem
|
|
40
|
-
private _selectedItems;
|
|
35
|
+
private readonly _ardParentComp;
|
|
36
|
+
private readonly _groups;
|
|
37
|
+
private readonly _items;
|
|
38
|
+
private readonly _filteredItems;
|
|
39
|
+
private readonly _highlightedItems;
|
|
40
|
+
private readonly _highlightedGroups;
|
|
41
|
+
private readonly _recentlyHighlightedItem;
|
|
42
|
+
private readonly _selectedItems;
|
|
41
43
|
constructor(_ardParentComp: ItemStorageHost);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
readonly groups: Signal<ArdOptionGroup[]>;
|
|
45
|
+
readonly items: Signal<ArdOption[]>;
|
|
46
|
+
readonly filteredItems: Signal<ArdOption[]>;
|
|
47
|
+
readonly highlightedItems: Signal<ArdOption[]>;
|
|
48
|
+
readonly selectedItems: Signal<ArdOption[]>;
|
|
49
|
+
readonly lastSelectedItem: Signal<ArdOption>;
|
|
50
|
+
readonly value: Signal<any[]>;
|
|
49
51
|
private _itemsToValue;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
readonly isNoItemsToSelect: Signal<boolean>;
|
|
53
|
+
readonly isNoItemsFound: Signal<boolean>;
|
|
54
|
+
readonly isAnyItemSelected: Signal<boolean>;
|
|
55
|
+
readonly isAnyItemHighlighted: Signal<boolean>;
|
|
56
|
+
readonly isItemLimitReached: Signal<boolean>;
|
|
55
57
|
setItems(items: any[]): boolean;
|
|
56
58
|
private _addSingleItem;
|
|
57
59
|
private _primitiveItemsMapFn;
|
|
@@ -61,8 +63,8 @@ export declare class ItemStorage {
|
|
|
61
63
|
private _addToGroup;
|
|
62
64
|
private _createEmptyGroupMap;
|
|
63
65
|
private _isWriteValueValid;
|
|
64
|
-
private _valueToWriteAfterItemsLoad;
|
|
65
|
-
private _wasValueWriteDeferred;
|
|
66
|
+
private readonly _valueToWriteAfterItemsLoad;
|
|
67
|
+
private readonly _wasValueWriteDeferred;
|
|
66
68
|
handleWriteValue(ngModel: any[]): void;
|
|
67
69
|
findItemByValue(valueToFind: any): ArdOption | undefined;
|
|
68
70
|
addCustomOption(value: string, fn: AddCustomFn<any> | AddCustomFn<Promise<any>>): Promise<ArdOption>;
|
|
@@ -83,5 +85,5 @@ export declare class ItemStorage {
|
|
|
83
85
|
setRecentlyHighlighted(item: ArdOption): void;
|
|
84
86
|
highlightNextItem(offset: number, hasShift?: boolean): ArdOption | null;
|
|
85
87
|
filter(filterTerm: string): any[];
|
|
86
|
-
resetFiltered():
|
|
88
|
+
resetFiltered(): ArdOption[];
|
|
87
89
|
}
|
|
@@ -1,42 +1,45 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
1
2
|
import { ArdOptionSimple, CompareWithFn } from '../../types/item-storage.types';
|
|
3
|
+
import { Nullable } from '../../types/utility.types';
|
|
2
4
|
export interface ItemStorageHostDefaults {
|
|
3
5
|
valueFrom: string;
|
|
4
6
|
labelFrom: string;
|
|
5
7
|
disabledFrom: string;
|
|
6
8
|
}
|
|
7
9
|
export interface SimpleItemStorageHost {
|
|
8
|
-
valueFrom
|
|
9
|
-
labelFrom
|
|
10
|
-
disabledFrom
|
|
11
|
-
invertDisabled
|
|
10
|
+
readonly valueFrom: Signal<Nullable<string>>;
|
|
11
|
+
readonly labelFrom: Signal<Nullable<string>>;
|
|
12
|
+
readonly disabledFrom: Signal<Nullable<string>>;
|
|
13
|
+
readonly invertDisabled: Signal<boolean>;
|
|
12
14
|
readonly DEFAULTS: ItemStorageHostDefaults;
|
|
13
|
-
compareWith
|
|
14
|
-
multiselectable: boolean
|
|
15
|
-
|
|
16
|
-
maxSelectedItems
|
|
15
|
+
readonly compareWith: Signal<Nullable<CompareWithFn>>;
|
|
16
|
+
readonly multiselectable: Signal<boolean>;
|
|
17
|
+
readonly isValueRequired: Signal<boolean>;
|
|
18
|
+
readonly maxSelectedItems: Signal<Nullable<number>>;
|
|
19
|
+
readonly _componentId: string;
|
|
17
20
|
}
|
|
18
21
|
export declare class SimpleItemStorage {
|
|
19
|
-
private _ardParentComp;
|
|
20
|
-
private _items;
|
|
21
|
-
private _highlightedItems;
|
|
22
|
-
private _selectedItems;
|
|
22
|
+
private readonly _ardParentComp;
|
|
23
|
+
private readonly _items;
|
|
24
|
+
private readonly _highlightedItems;
|
|
25
|
+
private readonly _selectedItems;
|
|
23
26
|
constructor(_ardParentComp: SimpleItemStorageHost);
|
|
24
27
|
/**
|
|
25
28
|
* Gets all items.
|
|
26
29
|
*/
|
|
27
|
-
|
|
30
|
+
readonly items: Signal<ArdOptionSimple[]>;
|
|
28
31
|
/**
|
|
29
|
-
* Gets all currently
|
|
32
|
+
* Gets all currently highlighted items.
|
|
30
33
|
*/
|
|
31
|
-
|
|
34
|
+
readonly highlightedItems: Signal<ArdOptionSimple[]>;
|
|
32
35
|
/**
|
|
33
|
-
* Gets all currently
|
|
36
|
+
* Gets all currently selected items.
|
|
34
37
|
*/
|
|
35
|
-
|
|
38
|
+
readonly selectedItems: Signal<ArdOptionSimple[]>;
|
|
36
39
|
/**
|
|
37
40
|
* Gets the values of the currently selected items.
|
|
38
41
|
*/
|
|
39
|
-
|
|
42
|
+
readonly value: Signal<any[]>;
|
|
40
43
|
/**
|
|
41
44
|
* Maps an array of items into their values.
|
|
42
45
|
* @param items The items to convert to value.
|
|
@@ -46,19 +49,19 @@ export declare class SimpleItemStorage {
|
|
|
46
49
|
/**
|
|
47
50
|
* Returns true if at least one item is highlighted, otherwise false.
|
|
48
51
|
*/
|
|
49
|
-
|
|
52
|
+
readonly isAnyItemHighlighted: Signal<boolean>;
|
|
50
53
|
/**
|
|
51
54
|
* 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.
|
|
52
55
|
*
|
|
53
56
|
* **TLDR**: true if `maxSelectedItems` is defined and the number of selected items matches that value.
|
|
54
57
|
*/
|
|
55
|
-
|
|
58
|
+
readonly isItemLimitReached: Signal<boolean>;
|
|
56
59
|
/**
|
|
57
60
|
* Sets the component's items. Takes into account the values defined by the parent component for `valueFrom`, `labelFrom`, and `disabledFrom`.
|
|
58
61
|
* @param items An array of items to be set as the component's items.
|
|
59
62
|
* @returns true if at least one of the items is of primitive type, otherwise false.
|
|
60
63
|
*/
|
|
61
|
-
setItems(items:
|
|
64
|
+
setItems(items: unknown[]): boolean;
|
|
62
65
|
private _primitiveItemsMapFn;
|
|
63
66
|
private _setItemsMapFn;
|
|
64
67
|
/**
|
|
@@ -96,9 +99,9 @@ export declare class SimpleItemStorage {
|
|
|
96
99
|
* Accounts for the limit of concurrently selected items defined by the parent component.
|
|
97
100
|
* @param items A rest operator array of item objects to be selected.
|
|
98
101
|
* @returns A tuple containing three arrays, all mapped to only their values:
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
+
* - An array of items selected,
|
|
103
|
+
* - An array of items unselected,
|
|
104
|
+
* - An array of items failed to select due to the limit.
|
|
102
105
|
*/
|
|
103
106
|
selectItem(...items: ArdOptionSimple[]): [any[], any[], any[]];
|
|
104
107
|
/**
|
|
@@ -155,5 +158,5 @@ export declare class SimpleItemStorage {
|
|
|
155
158
|
* Finds all highlightable items. An item is considered highlightable if it is **not** disabled.
|
|
156
159
|
* @returns An array of all highlightable items.
|
|
157
160
|
*/
|
|
158
|
-
private
|
|
161
|
+
private readonly highlightableItems;
|
|
159
162
|
}
|
|
@@ -1,27 +1,32 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
1
2
|
import { ArdSimplestStorageItem } from '../../types/item-storage.types';
|
|
3
|
+
import { Nullable } from '../../types/utility.types';
|
|
2
4
|
export interface SimplestItemStorageHostDefaults {
|
|
3
5
|
valueFrom: string;
|
|
4
6
|
labelFrom: string;
|
|
5
7
|
}
|
|
6
8
|
export interface SimplestItemStorageHost {
|
|
7
|
-
valueFrom
|
|
8
|
-
labelFrom
|
|
9
|
+
readonly valueFrom: Signal<Nullable<string>>;
|
|
10
|
+
readonly labelFrom: Signal<Nullable<string>>;
|
|
9
11
|
readonly DEFAULTS: SimplestItemStorageHostDefaults;
|
|
10
12
|
}
|
|
11
13
|
export declare class SimplestItemStorage {
|
|
12
|
-
private _ardParentComp;
|
|
13
|
-
private _items;
|
|
14
|
-
private _highlightedItem;
|
|
15
|
-
get highlightedItem(): ArdSimplestStorageItem | null;
|
|
14
|
+
private readonly _ardParentComp;
|
|
15
|
+
private readonly _items;
|
|
16
|
+
private readonly _highlightedItem;
|
|
16
17
|
constructor(_ardParentComp: SimplestItemStorageHost);
|
|
17
18
|
/**
|
|
18
19
|
* Gets all items.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
readonly items: Signal<ArdSimplestStorageItem[]>;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* The currently highlighted item.
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
readonly highlightedItem: Signal<Nullable<ArdSimplestStorageItem>>;
|
|
26
|
+
/**
|
|
27
|
+
* True if at least one item is highlighted, otherwise false.
|
|
28
|
+
*/
|
|
29
|
+
readonly isAnyItemHighlighted: Signal<boolean>;
|
|
25
30
|
/**
|
|
26
31
|
* Sets the component's items. Takes into account the values defined by the parent component for `suggValueFrom` and `suggLabelFrom`.
|
|
27
32
|
* @param items An array of items to be set as the component's items.
|
|
@@ -1,53 +1,49 @@
|
|
|
1
|
+
import { ModelSignal, Signal } from '@angular/core';
|
|
2
|
+
export interface PaginationModelHost {
|
|
3
|
+
readonly componentId: string;
|
|
4
|
+
readonly totalItems: Signal<number>;
|
|
5
|
+
readonly options: Signal<number[] | {
|
|
6
|
+
value: number;
|
|
7
|
+
label: string;
|
|
8
|
+
}[]>;
|
|
9
|
+
readonly itemsPerPage: ModelSignal<number>;
|
|
10
|
+
readonly page: ModelSignal<number>;
|
|
11
|
+
}
|
|
1
12
|
export interface PaginationCurrentItemsContext {
|
|
2
|
-
currentItemsFirst: number;
|
|
3
|
-
currentItemsLast: number;
|
|
4
|
-
totalItems: number;
|
|
5
|
-
totalPages: number;
|
|
6
|
-
page: number;
|
|
13
|
+
readonly currentItemsFirst: number;
|
|
14
|
+
readonly currentItemsLast: number;
|
|
15
|
+
readonly totalItems: number;
|
|
16
|
+
readonly totalPages: number;
|
|
17
|
+
readonly page: number;
|
|
7
18
|
}
|
|
8
19
|
export interface PaginationContext extends PaginationCurrentItemsContext {
|
|
9
|
-
itemsPerPageOptions: number[] | {
|
|
20
|
+
readonly itemsPerPageOptions: number[] | {
|
|
10
21
|
value: number;
|
|
11
22
|
label: string;
|
|
12
23
|
}[];
|
|
13
|
-
itemsPerPage: number;
|
|
14
|
-
onItemsPerPageChange: (newValue: number) => void;
|
|
15
|
-
firstPageDisabled: boolean;
|
|
16
|
-
prevPageDisabled: boolean;
|
|
17
|
-
nextPageDisabled: boolean;
|
|
18
|
-
lastPageDisabled: boolean;
|
|
19
|
-
onPageChange: (newPage: number) => void;
|
|
24
|
+
readonly itemsPerPage: number;
|
|
25
|
+
readonly onItemsPerPageChange: (newValue: number) => void;
|
|
26
|
+
readonly firstPageDisabled: boolean;
|
|
27
|
+
readonly prevPageDisabled: boolean;
|
|
28
|
+
readonly nextPageDisabled: boolean;
|
|
29
|
+
readonly lastPageDisabled: boolean;
|
|
30
|
+
readonly onPageChange: (newPage: number) => void;
|
|
20
31
|
}
|
|
21
32
|
export declare class PaginationModel {
|
|
22
|
-
private
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
label: string;
|
|
31
|
-
}[]): void;
|
|
32
|
-
getItemsPerPageOptions(): number[] | {
|
|
33
|
-
value: number;
|
|
34
|
-
label: string;
|
|
35
|
-
}[];
|
|
36
|
-
setItemsPerPage(v: number): void;
|
|
37
|
-
getItemsPerPage(): number;
|
|
38
|
-
private _itemsOnCurrentPageMemo;
|
|
39
|
-
get itemsOnCurrentPage(): [number, number] | null;
|
|
40
|
-
get firstPageDisabled(): boolean;
|
|
41
|
-
get lastPageDisabled(): boolean;
|
|
42
|
-
private _lastPageNumMemo;
|
|
43
|
-
get lastPageNum(): number | null;
|
|
44
|
-
get isLastPage(): boolean;
|
|
33
|
+
private readonly _ardHostCmp;
|
|
34
|
+
constructor(_ardHostCmp: PaginationModelHost);
|
|
35
|
+
readonly isTotalItemsDefined: Signal<boolean>;
|
|
36
|
+
readonly lastPageNum: Signal<number | null>;
|
|
37
|
+
readonly isLastPage: Signal<boolean>;
|
|
38
|
+
readonly itemsOnCurrentPage: Signal<[number, number] | null>;
|
|
39
|
+
readonly firstPageDisabled: Signal<boolean>;
|
|
40
|
+
readonly lastPageDisabled: Signal<boolean>;
|
|
45
41
|
setPage(v: number): void;
|
|
46
42
|
getPage(): number;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
getCurrentItemsContext
|
|
52
|
-
getPartialContext
|
|
43
|
+
goToFirstPage(): number | null;
|
|
44
|
+
goToPrevPage(): number | null;
|
|
45
|
+
goToNextPage(): number | null;
|
|
46
|
+
goToLastPage(): number | null;
|
|
47
|
+
readonly getCurrentItemsContext: Signal<PaginationCurrentItemsContext>;
|
|
48
|
+
readonly getPartialContext: Signal<Omit<PaginationContext, "onItemsPerPageChange" | "onPageChange">>;
|
|
53
49
|
}
|
|
@@ -18,7 +18,7 @@ export declare abstract class _NgModelComponentBase extends _FocusableComponentB
|
|
|
18
18
|
* Registers a function to handle value change. Required by ControlValueAccessor.
|
|
19
19
|
* @param fn The function to register.
|
|
20
20
|
*/
|
|
21
|
-
registerOnChange(fn: (_: any) =>
|
|
21
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
22
22
|
/**
|
|
23
23
|
* Sets the component's disabled state. Required by ControlValueAccessor.
|
|
24
24
|
* @param isDisabled the new disabled state.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ChangeDetectorRef
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ArdOptionSimple, OptionContext } from '../types/item-storage.types';
|
|
3
|
+
import { ArdOptionSimple, CompareWithFn, OptionContext } from '../types/item-storage.types';
|
|
4
|
+
import { Nullable } from '../types/utility.types';
|
|
4
5
|
import { SimpleItemStorage, SimpleItemStorageHost } from './item-storages/simple-item-storage';
|
|
5
6
|
import { _NgModelComponentBase } from './ngmodel-component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
@@ -14,47 +15,46 @@ export declare abstract class _SelectableListComponentBase extends _NgModelCompo
|
|
|
14
15
|
labelFrom: string;
|
|
15
16
|
disabledFrom: string;
|
|
16
17
|
};
|
|
18
|
+
abstract readonly _componentId: string;
|
|
19
|
+
abstract readonly _componentName: string;
|
|
17
20
|
constructor(_cd: ChangeDetectorRef);
|
|
18
|
-
valueFrom
|
|
19
|
-
labelFrom
|
|
20
|
-
disabledFrom
|
|
21
|
+
readonly valueFrom: import("@angular/core").InputSignal<Nullable<string>>;
|
|
22
|
+
readonly labelFrom: import("@angular/core").InputSignal<Nullable<string>>;
|
|
23
|
+
readonly disabledFrom: import("@angular/core").InputSignal<Nullable<string>>;
|
|
24
|
+
readonly compareWith: import("@angular/core").InputSignal<Nullable<CompareWithFn>>;
|
|
21
25
|
get items(): any[];
|
|
22
26
|
set items(value: any);
|
|
23
27
|
private _printPrimitiveWarnings;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
private _maxSelectedItems;
|
|
33
|
-
get maxSelectedItems(): number | undefined;
|
|
34
|
-
set maxSelectedItems(v: any);
|
|
28
|
+
readonly multiselectable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
29
|
+
get _multiselectableHostAttribute(): boolean;
|
|
30
|
+
readonly singleselectable: import("@angular/core").Signal<boolean>;
|
|
31
|
+
readonly requireValue: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
32
|
+
readonly isValueRequired: import("@angular/core").Signal<boolean>;
|
|
33
|
+
get _requireValueHostAttribute(): boolean;
|
|
34
|
+
readonly invertDisabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
35
|
+
readonly maxSelectedItems: import("@angular/core").InputSignalWithTransform<Nullable<number>, any>;
|
|
35
36
|
setDisabledState(state: boolean): void;
|
|
36
37
|
writeValue(ngModel: any[]): void;
|
|
37
|
-
|
|
38
|
-
get
|
|
39
|
-
protected set touched(state: boolean);
|
|
38
|
+
readonly touched: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
get _touchedHostAttribute(): boolean;
|
|
40
40
|
protected _emitChange(): void;
|
|
41
41
|
protected _onTouched(): void;
|
|
42
|
-
|
|
42
|
+
private readonly lastBlurTimestamp;
|
|
43
43
|
onFocus(event: FocusEvent): void;
|
|
44
44
|
onBlur(event: FocusEvent): void;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
getOptionContext(item: ArdOptionSimple): OptionContext
|
|
45
|
+
readonly highlightedItems: import("@angular/core").Signal<ArdOptionSimple[]>;
|
|
46
|
+
readonly firstHighlightedItem: import("@angular/core").Signal<Nullable<ArdOptionSimple>>;
|
|
47
|
+
readonly isItemLimitReached: import("@angular/core").Signal<boolean>;
|
|
48
|
+
getOptionContext(item: ArdOptionSimple): OptionContext<ArdOptionSimple>;
|
|
49
49
|
set value(newValue: any);
|
|
50
|
-
valueChange:
|
|
51
|
-
changeEvent:
|
|
52
|
-
addEvent:
|
|
53
|
-
removeEvent:
|
|
50
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<any[]>;
|
|
51
|
+
readonly changeEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
52
|
+
readonly addEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
53
|
+
readonly removeEvent: import("@angular/core").OutputEmitterRef<any[]>;
|
|
54
54
|
toggleItem(item: ArdOptionSimple): void;
|
|
55
55
|
selectItem(...items: ArdOptionSimple[]): void;
|
|
56
56
|
unselectItem(...items: ArdOptionSimple[]): void;
|
|
57
|
-
isMouseBeingUsed: boolean
|
|
57
|
+
readonly isMouseBeingUsed: import("@angular/core").WritableSignal<boolean>;
|
|
58
58
|
onMouseMove(): void;
|
|
59
59
|
onItemMouseEnter(option: ArdOptionSimple, event: MouseEvent): void;
|
|
60
60
|
onItemMouseLeave(option: ArdOptionSimple, event: MouseEvent): void;
|
|
@@ -67,5 +67,5 @@ export declare abstract class _SelectableListComponentBase extends _NgModelCompo
|
|
|
67
67
|
private _highlightLast;
|
|
68
68
|
private _highlightAll;
|
|
69
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<_SelectableListComponentBase, never>;
|
|
70
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_SelectableListComponentBase, never, never, { "valueFrom": { "alias": "valueFrom"; "required": false; }; "labelFrom": { "alias": "labelFrom"; "required": false; }; "disabledFrom": { "alias": "disabledFrom"; "required": false; }; "items": { "alias": "items"; "required": false; }; "invertDisabled": { "alias": "invertDisabled"; "required": false; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; "addEvent": "add"; "removeEvent": "remove"; }, never, never, false, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_SelectableListComponentBase, never, never, { "valueFrom": { "alias": "valueFrom"; "required": false; "isSignal": true; }; "labelFrom": { "alias": "labelFrom"; "required": false; "isSignal": true; }; "disabledFrom": { "alias": "disabledFrom"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; }; "multiselectable": { "alias": "multiselectable"; "required": false; "isSignal": true; }; "requireValue": { "alias": "requireValue"; "required": false; "isSignal": true; }; "invertDisabled": { "alias": "invertDisabled"; "required": false; "isSignal": true; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "changeEvent": "change"; "addEvent": "add"; "removeEvent": "remove"; }, never, never, false, never>;
|
|
71
71
|
}
|
|
@@ -1,31 +1,26 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, OnDestroy,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ComponentColor } from '../types/colors.types';
|
|
3
|
-
import { BadgePosition, BadgeSize } from './badge.types';
|
|
4
3
|
import { FormElementVariant } from '../types/theming.types';
|
|
4
|
+
import { BadgePosition, BadgeSize } from './badge.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ArdiumBadgeDirective implements OnChanges, AfterViewInit, OnDestroy {
|
|
7
|
-
private
|
|
7
|
+
private _elRef;
|
|
8
8
|
private _renderer;
|
|
9
|
-
constructor(
|
|
10
|
-
text
|
|
11
|
-
color: ComponentColor
|
|
12
|
-
variant: FormElementVariant
|
|
13
|
-
size: BadgeSize
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
private
|
|
19
|
-
get hidden(): boolean;
|
|
20
|
-
set hidden(v: any);
|
|
21
|
-
private _overlap;
|
|
22
|
-
get overlap(): boolean;
|
|
23
|
-
set overlap(v: any);
|
|
9
|
+
constructor(_elRef: ElementRef, _renderer: Renderer2);
|
|
10
|
+
readonly text: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly color: import("@angular/core").InputSignal<ComponentColor>;
|
|
12
|
+
readonly variant: import("@angular/core").InputSignal<FormElementVariant>;
|
|
13
|
+
readonly size: import("@angular/core").InputSignal<BadgeSize>;
|
|
14
|
+
readonly position: import("@angular/core").InputSignalWithTransform<BadgePosition, BadgePosition>;
|
|
15
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
16
|
+
readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
17
|
+
readonly overlap: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
18
|
+
private readonly _elementClasses;
|
|
24
19
|
private _createBadgeElement;
|
|
25
|
-
private _badgeElement
|
|
20
|
+
private readonly _badgeElement;
|
|
26
21
|
ngOnChanges(): void;
|
|
27
22
|
ngAfterViewInit(): void;
|
|
28
23
|
ngOnDestroy(): void;
|
|
29
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumBadgeDirective, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumBadgeDirective, "[ardBadge]", never, { "text": { "alias": "ardBadge"; "required": false; }; "color": { "alias": "ardBadgeColor"; "required": false; }; "variant": { "alias": "ardBadgeVariant"; "required": false; }; "size": { "alias": "ardBadgeSize"; "required": false; }; "position": { "alias": "ardBadgePosition"; "required": false; }; "ariaLabel": { "alias": "ardBadgeAriaLabel"; "required": false; }; "hidden": { "alias": "ardBadgeHidden"; "required": false; }; "overlap": { "alias": "ardBadgeOverlap"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumBadgeDirective, "[ardBadge]", never, { "text": { "alias": "ardBadge"; "required": false; "isSignal": true; }; "color": { "alias": "ardBadgeColor"; "required": false; "isSignal": true; }; "variant": { "alias": "ardBadgeVariant"; "required": false; "isSignal": true; }; "size": { "alias": "ardBadgeSize"; "required": false; "isSignal": true; }; "position": { "alias": "ardBadgePosition"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ardBadgeAriaLabel"; "required": false; "isSignal": true; }; "hidden": { "alias": "ardBadgeHidden"; "required": false; "isSignal": true; }; "overlap": { "alias": "ardBadgeOverlap"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
31
26
|
}
|