@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
package/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { _NgModelComponentBase } from './ngmodel-component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Common code for components, which only operate on the "selected" state.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class _BooleanComponentBase extends _NgModelComponentBase implements ControlValueAccessor {
|
|
9
|
+
writeValue(v: any): void;
|
|
10
|
+
/**
|
|
11
|
+
* Emits all select-state-related events.
|
|
12
|
+
*/
|
|
13
|
+
protected _emitChange(): void;
|
|
14
|
+
/**
|
|
15
|
+
* The event emitter responsible for firing `select` events. Fired when the `selected` state is set to true.
|
|
16
|
+
*/
|
|
17
|
+
selectEvent: EventEmitter<null>;
|
|
18
|
+
/**
|
|
19
|
+
* The event emitter responsible for firing `unselect` events. Fired when the `selected` state is set to false.
|
|
20
|
+
*/
|
|
21
|
+
unselectEvent: EventEmitter<null>;
|
|
22
|
+
/**
|
|
23
|
+
* The event emitter responsible for firing `change` events. Fired when the `selected` state is changed.
|
|
24
|
+
*/
|
|
25
|
+
changeEvent: EventEmitter<boolean>;
|
|
26
|
+
protected _selected: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The selection state of the component. Coercible into a boolean.
|
|
29
|
+
*/
|
|
30
|
+
get selected(): boolean;
|
|
31
|
+
set selected(v: any);
|
|
32
|
+
/**
|
|
33
|
+
* The event emitter responsible for firing `selectedChange` events. Fired when the `selected` state is changed.
|
|
34
|
+
*/
|
|
35
|
+
selectedChange: EventEmitter<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* Toggles the selected state. Emits all appropriate events.
|
|
38
|
+
*/
|
|
39
|
+
toggleSelected(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the state to "selected". Emits all appropriate events only if the state changes.
|
|
42
|
+
*/
|
|
43
|
+
select(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the state to "unselected". Emits all appropriate events only if the state changes.
|
|
46
|
+
*/
|
|
47
|
+
unselect(): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_BooleanComponentBase, never>;
|
|
49
|
+
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { _FocusableComponentBase } from './../focusable-component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class _ClearButtonComponent extends _FocusableComponentBase {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_ClearButtonComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<_ClearButtonComponent, "ard-_clear-button", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./clear-button.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class _ClearButtonModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_ClearButtonModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<_ClearButtonModule, [typeof i1._ClearButtonComponent], [typeof i2.CommonModule], [typeof i1._ClearButtonComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<_ClearButtonModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare abstract class _DisablableComponentBase {
|
|
3
|
+
protected _readonly: boolean;
|
|
4
|
+
get readonly(): boolean;
|
|
5
|
+
set readonly(v: any);
|
|
6
|
+
protected _disabled: boolean;
|
|
7
|
+
get disabled(): boolean;
|
|
8
|
+
set disabled(v: any);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_DisablableComponentBase, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_DisablableComponentBase, never, never, { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { _DisablableComponentBase } from './disablable-component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class _FocusableComponentBase extends _DisablableComponentBase {
|
|
5
|
+
private readonly _focusableElement;
|
|
6
|
+
/**
|
|
7
|
+
* Focuses the correct element in the component.
|
|
8
|
+
*/
|
|
9
|
+
focus(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Focuses the first of all available elements in the component.
|
|
12
|
+
*/
|
|
13
|
+
focusFirst(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Focuses the last of all available elements in the component.
|
|
16
|
+
*/
|
|
17
|
+
focusLast(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Blurs all focusable elements in the component.
|
|
20
|
+
*/
|
|
21
|
+
blur(): void;
|
|
22
|
+
protected _tabIndex: number;
|
|
23
|
+
/**
|
|
24
|
+
* The component's overall tab index. If the component is disabled, it is always `-1`. Coercible into a number, defaults to `0`.
|
|
25
|
+
*/
|
|
26
|
+
get tabIndex(): number;
|
|
27
|
+
set tabIndex(v: any);
|
|
28
|
+
/**
|
|
29
|
+
* The event emitter responsible for firing `focus` events.
|
|
30
|
+
*/
|
|
31
|
+
focusEvent: EventEmitter<FocusEvent>;
|
|
32
|
+
/**
|
|
33
|
+
* The event emitter responsible for firing `blur` events.
|
|
34
|
+
*/
|
|
35
|
+
blurEvent: EventEmitter<FocusEvent>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the component is currently focused.
|
|
38
|
+
*/
|
|
39
|
+
isFocused: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Function to handle when an element is focused. Sets `isFocused` and fires the `focus` event.
|
|
42
|
+
* @param event The focus event to emit.
|
|
43
|
+
*/
|
|
44
|
+
onFocus(event: FocusEvent): void;
|
|
45
|
+
/**
|
|
46
|
+
* Function to handle when an element is blurred. Sets `isFocused` and fires the `blur` event.
|
|
47
|
+
* @param event The focus event to emit.
|
|
48
|
+
*/
|
|
49
|
+
onBlur(event: FocusEvent): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_FocusableComponentBase, never>;
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_FocusableComponentBase, never, never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "focusEvent": "focus"; "blurEvent": "blur"; }, never, never, false, never>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ArdOptionGroup, ArdOption, GroupByFn, SearchFn, CompareWithFn } from '../../types/item-storage.types';
|
|
2
|
+
import { AddCustomFn } from '../../select/select.types';
|
|
3
|
+
export interface ItemStorageHostDefaults {
|
|
4
|
+
valueFrom: string;
|
|
5
|
+
labelFrom: string;
|
|
6
|
+
disabledFrom: string;
|
|
7
|
+
groupLabelFrom: string;
|
|
8
|
+
groupDisabledFrom: string;
|
|
9
|
+
childrenFrom: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface ItemStorageHost {
|
|
13
|
+
valueFrom?: string;
|
|
14
|
+
labelFrom?: string;
|
|
15
|
+
disabledFrom?: string;
|
|
16
|
+
invertDisabled?: boolean;
|
|
17
|
+
groupLabelFrom?: string | GroupByFn;
|
|
18
|
+
groupDisabledFrom?: string;
|
|
19
|
+
childrenFrom?: string;
|
|
20
|
+
readonly DEFAULTS: ItemStorageHostDefaults;
|
|
21
|
+
groupItems?: boolean;
|
|
22
|
+
itemsAlreadyGrouped?: boolean;
|
|
23
|
+
hideSelected: boolean;
|
|
24
|
+
searchCaseSensitive: boolean;
|
|
25
|
+
searchFn: SearchFn;
|
|
26
|
+
compareWith?: CompareWithFn;
|
|
27
|
+
multiselectable: boolean;
|
|
28
|
+
sortMultipleValues: boolean;
|
|
29
|
+
maxSelectedItems?: number;
|
|
30
|
+
addCustom: boolean | AddCustomFn<any> | AddCustomFn<Promise<any>>;
|
|
31
|
+
}
|
|
32
|
+
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;
|
|
41
|
+
constructor(_ardParentComp: ItemStorageHost);
|
|
42
|
+
get groups(): ArdOptionGroup[];
|
|
43
|
+
get items(): ArdOption[];
|
|
44
|
+
get filteredItems(): ArdOption[];
|
|
45
|
+
get selectedItems(): ArdOption[];
|
|
46
|
+
get highlightedItems(): ArdOption[];
|
|
47
|
+
get lastSelectedItem(): ArdOption;
|
|
48
|
+
get value(): any[];
|
|
49
|
+
private _itemsToValue;
|
|
50
|
+
get isNoItemsToSelect(): boolean;
|
|
51
|
+
get isNoItemsFound(): boolean;
|
|
52
|
+
get isAnyItemSelected(): boolean;
|
|
53
|
+
get isAnyItemHighlighted(): boolean;
|
|
54
|
+
get isItemLimitReached(): boolean;
|
|
55
|
+
setItems(items: any[]): boolean;
|
|
56
|
+
private _addSingleItem;
|
|
57
|
+
private _primitiveItemsMapFn;
|
|
58
|
+
private _ungroupAlreadyGroupedItems;
|
|
59
|
+
private _setItemsMapFn;
|
|
60
|
+
private _populateGroups;
|
|
61
|
+
private _addToGroup;
|
|
62
|
+
private _createEmptyGroupMap;
|
|
63
|
+
private _isWriteValueValid;
|
|
64
|
+
private _valueToWriteAfterItemsLoad;
|
|
65
|
+
private _wasValueWriteDeferred;
|
|
66
|
+
handleWriteValue(ngModel: any[]): void;
|
|
67
|
+
findItemByValue(valueToFind: any): ArdOption | undefined;
|
|
68
|
+
addCustomOption(value: string, fn: AddCustomFn<any> | AddCustomFn<Promise<any>>): Promise<ArdOption>;
|
|
69
|
+
clearAllSelected(repopulateGroups?: boolean): any[];
|
|
70
|
+
clearLastSelected(): ArdOption;
|
|
71
|
+
selectItem(...items: ArdOption[]): [any[], any[], any[]];
|
|
72
|
+
unselectItem(...items: ArdOption[]): any[];
|
|
73
|
+
clearAllHighlights(): void;
|
|
74
|
+
highlightGroup(group: ArdOptionGroup): ArdOption;
|
|
75
|
+
highlightSingleItem(item: ArdOption): ArdOption | null;
|
|
76
|
+
highlightItem(...items: ArdOption[]): ArdOption;
|
|
77
|
+
unhighlightItem(...items: ArdOption[]): void;
|
|
78
|
+
highlightFirstItem(): ArdOption | null;
|
|
79
|
+
highlightLastItem(): ArdOption | null;
|
|
80
|
+
private _getHiglightableItems;
|
|
81
|
+
highlightAllItems(): void;
|
|
82
|
+
private _clearRecentlyHighlighted;
|
|
83
|
+
setRecentlyHighlighted(item: ArdOption): void;
|
|
84
|
+
highlightNextItem(offset: number, hasShift?: boolean): ArdOption | null;
|
|
85
|
+
filter(filterTerm: string): any[];
|
|
86
|
+
resetFiltered(): void;
|
|
87
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { ArdOptionSimple, CompareWithFn } from '../../types/item-storage.types';
|
|
2
|
+
export interface ItemStorageHostDefaults {
|
|
3
|
+
valueFrom: string;
|
|
4
|
+
labelFrom: string;
|
|
5
|
+
disabledFrom: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SimpleItemStorageHost {
|
|
8
|
+
valueFrom?: string;
|
|
9
|
+
labelFrom?: string;
|
|
10
|
+
disabledFrom?: string;
|
|
11
|
+
invertDisabled?: boolean;
|
|
12
|
+
readonly DEFAULTS: ItemStorageHostDefaults;
|
|
13
|
+
compareWith?: CompareWithFn;
|
|
14
|
+
multiselectable: boolean;
|
|
15
|
+
requireValue: boolean;
|
|
16
|
+
maxSelectedItems?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare class SimpleItemStorage {
|
|
19
|
+
private _ardParentComp;
|
|
20
|
+
private _items;
|
|
21
|
+
private _highlightedItems;
|
|
22
|
+
private _selectedItems;
|
|
23
|
+
constructor(_ardParentComp: SimpleItemStorageHost);
|
|
24
|
+
/**
|
|
25
|
+
* Gets all items.
|
|
26
|
+
*/
|
|
27
|
+
get items(): ArdOptionSimple[];
|
|
28
|
+
/**
|
|
29
|
+
* Gets all currently selected items.
|
|
30
|
+
*/
|
|
31
|
+
get selectedItems(): ArdOptionSimple[];
|
|
32
|
+
/**
|
|
33
|
+
* Gets all currently highlighted items.
|
|
34
|
+
*/
|
|
35
|
+
get highlightedItems(): ArdOptionSimple[];
|
|
36
|
+
/**
|
|
37
|
+
* Gets the values of the currently selected items.
|
|
38
|
+
*/
|
|
39
|
+
get value(): any[];
|
|
40
|
+
/**
|
|
41
|
+
* Maps an array of items into their values.
|
|
42
|
+
* @param items The items to convert to value.
|
|
43
|
+
* @returns An array of item values.
|
|
44
|
+
*/
|
|
45
|
+
private _itemsToValue;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if at least one item is highlighted, otherwise false.
|
|
48
|
+
*/
|
|
49
|
+
get isAnyItemHighlighted(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 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
|
+
*
|
|
53
|
+
* **TLDR**: true if `maxSelectedItems` is defined and the number of selected items matches that value.
|
|
54
|
+
*/
|
|
55
|
+
get isItemLimitReached(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the component's items. Takes into account the values defined by the parent component for `valueFrom`, `labelFrom`, and `disabledFrom`.
|
|
58
|
+
* @param items An array of items to be set as the component's items.
|
|
59
|
+
* @returns true if at least one of the items is of primitive type, otherwise false.
|
|
60
|
+
*/
|
|
61
|
+
setItems(items: any[]): boolean;
|
|
62
|
+
private _primitiveItemsMapFn;
|
|
63
|
+
private _setItemsMapFn;
|
|
64
|
+
/**
|
|
65
|
+
* 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.
|
|
66
|
+
* @param ngModel The value of the ngModel to set.
|
|
67
|
+
*/
|
|
68
|
+
writeValue(ngModel: any[]): void;
|
|
69
|
+
/**
|
|
70
|
+
* Validates that all values of the value to be written are able to be accurately compared against the storage items.
|
|
71
|
+
*
|
|
72
|
+
* An item from the ngModel array is considered valid if it is a primitive value, or if all of the below points are met:
|
|
73
|
+
* 1. The parent component defines the `compareWith` property.
|
|
74
|
+
* 2. The ngModel value item is an object (or array).
|
|
75
|
+
* 3. The parent component has a defined `valueFrom` property.
|
|
76
|
+
* @param ngModel The value of ngModel to validate.
|
|
77
|
+
* @returns true if all items are valid, otherwise false.
|
|
78
|
+
*/
|
|
79
|
+
private _validateWriteValue;
|
|
80
|
+
findItemByValue(valueToFind: any): ArdOptionSimple | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Unselects all selected items.
|
|
83
|
+
*
|
|
84
|
+
* If the parent component requires at least one value to be selected at all times, the first selected items is left selected.
|
|
85
|
+
* @returns An array of items cleared, mapped to only their values.
|
|
86
|
+
*/
|
|
87
|
+
unselectAll(): any[];
|
|
88
|
+
/**
|
|
89
|
+
* Unselects all selected items, no matter what the component settings are.
|
|
90
|
+
* @returns An array of items cleared, mapped to only their values.
|
|
91
|
+
*/
|
|
92
|
+
private _forceUnselectAll;
|
|
93
|
+
/**
|
|
94
|
+
* Selects one or multiple items.
|
|
95
|
+
*
|
|
96
|
+
* Accounts for the limit of concurrently selected items defined by the parent component.
|
|
97
|
+
* @param items A rest operator array of item objects to be selected.
|
|
98
|
+
* @returns A tuple containing three arrays, all mapped to only their values:
|
|
99
|
+
* * An array of items selected,
|
|
100
|
+
* * An array of items unselected,
|
|
101
|
+
* * An array of items failed to select due to the limit.
|
|
102
|
+
*/
|
|
103
|
+
selectItem(...items: ArdOptionSimple[]): [any[], any[], any[]];
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @param items A rest operator array of item objects to be unselected.
|
|
107
|
+
* @returns An array of items unselected, mapped to only their values.
|
|
108
|
+
*/
|
|
109
|
+
unselectItem(...items: ArdOptionSimple[]): any[];
|
|
110
|
+
/**
|
|
111
|
+
* Unhighlights all currently highlighted items.
|
|
112
|
+
*/
|
|
113
|
+
unhighlightAll(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Highlights the given item, while unhighlighting all other items. Does nothing when the item is disabled.
|
|
116
|
+
* @param item The item to be highlighted.
|
|
117
|
+
* @returns The highlighted item.
|
|
118
|
+
*/
|
|
119
|
+
highlightSingleItem(item: ArdOptionSimple): ArdOptionSimple | null;
|
|
120
|
+
/**
|
|
121
|
+
* Highlights all given items.
|
|
122
|
+
* @param items A rest operator array of items to be highlighted.
|
|
123
|
+
* @returns The last highlighted item.
|
|
124
|
+
*/
|
|
125
|
+
highlightItem(...items: ArdOptionSimple[]): ArdOptionSimple;
|
|
126
|
+
/**
|
|
127
|
+
* Unhighlights all given items.
|
|
128
|
+
* @param items A rest operator array of items to be unhighlighted.
|
|
129
|
+
*/
|
|
130
|
+
unhighlightItem(...items: ArdOptionSimple[]): void;
|
|
131
|
+
/**
|
|
132
|
+
* Highlights the first item out of all items.
|
|
133
|
+
* @returns The highlighted item.
|
|
134
|
+
*/
|
|
135
|
+
highlightFirstItem(): ArdOptionSimple | null;
|
|
136
|
+
/**
|
|
137
|
+
* Highlights the last item out of all items.
|
|
138
|
+
* @returns The highlighted item.
|
|
139
|
+
*/
|
|
140
|
+
highlightLastItem(): ArdOptionSimple | null;
|
|
141
|
+
/**
|
|
142
|
+
* Highlights all non-disabled items.
|
|
143
|
+
*/
|
|
144
|
+
highlightAllItems(): void;
|
|
145
|
+
/**
|
|
146
|
+
* Highlights the next non-disabled item defined by the offset amount.
|
|
147
|
+
*
|
|
148
|
+
* If `hasShift` is set to true, all originally highlighted items are kept. Otherwise, all original items are unselected.
|
|
149
|
+
* @param offset The amount of items to offset the highlight by.
|
|
150
|
+
* @param hasShift Whether the user has the shift key pressed.
|
|
151
|
+
* @returns The item highlighted.
|
|
152
|
+
*/
|
|
153
|
+
highlightNextItem(offset: number, hasShift?: boolean): ArdOptionSimple | null;
|
|
154
|
+
/**
|
|
155
|
+
* Finds all highlightable items. An item is considered highlightable if it is **not** disabled.
|
|
156
|
+
* @returns An array of all highlightable items.
|
|
157
|
+
*/
|
|
158
|
+
private _getHiglightableItems;
|
|
159
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ArdSimplestStorageItem } from '../../types/item-storage.types';
|
|
2
|
+
export interface SimplestItemStorageHostDefaults {
|
|
3
|
+
valueFrom: string;
|
|
4
|
+
labelFrom: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SimplestItemStorageHost {
|
|
7
|
+
valueFrom?: string;
|
|
8
|
+
labelFrom?: string;
|
|
9
|
+
readonly DEFAULTS: SimplestItemStorageHostDefaults;
|
|
10
|
+
}
|
|
11
|
+
export declare class SimplestItemStorage {
|
|
12
|
+
private _ardParentComp;
|
|
13
|
+
private _items;
|
|
14
|
+
private _highlightedItem;
|
|
15
|
+
get highlightedItem(): ArdSimplestStorageItem | null;
|
|
16
|
+
constructor(_ardParentComp: SimplestItemStorageHost);
|
|
17
|
+
/**
|
|
18
|
+
* Gets all items.
|
|
19
|
+
*/
|
|
20
|
+
get items(): ArdSimplestStorageItem[];
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if at least one item is highlighted, otherwise false.
|
|
23
|
+
*/
|
|
24
|
+
get isAnyItemHighlighted(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the component's items. Takes into account the values defined by the parent component for `suggValueFrom` and `suggLabelFrom`.
|
|
27
|
+
* @param items An array of items to be set as the component's items.
|
|
28
|
+
* @returns true if at least one of the items is of primitive type, otherwise false.
|
|
29
|
+
*/
|
|
30
|
+
setItems(items: any[]): boolean;
|
|
31
|
+
private _primitiveItemsMapFn;
|
|
32
|
+
private _setItemsMapFn;
|
|
33
|
+
/**
|
|
34
|
+
* Selects the given item.
|
|
35
|
+
* @param items The item to select.
|
|
36
|
+
* @returns The value of the selected item.
|
|
37
|
+
*/
|
|
38
|
+
selectItem(item: ArdSimplestStorageItem): any;
|
|
39
|
+
selectCurrent(): any;
|
|
40
|
+
/**
|
|
41
|
+
* Unhighlights all currently highlighted items.
|
|
42
|
+
*/
|
|
43
|
+
unhighlightCurrent(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Highlights a given item.
|
|
46
|
+
* @param item The item to be highlighted.
|
|
47
|
+
*/
|
|
48
|
+
highlightItem(item: ArdSimplestStorageItem): void;
|
|
49
|
+
/**
|
|
50
|
+
* Unhighlights a given item.
|
|
51
|
+
* @param item The item to be unhighlighted.
|
|
52
|
+
*/
|
|
53
|
+
unhighlightItem(item: ArdSimplestStorageItem): void;
|
|
54
|
+
/**
|
|
55
|
+
* Highlights the first item out of all items.
|
|
56
|
+
* @returns The highlighted item.
|
|
57
|
+
*/
|
|
58
|
+
highlightFirstItem(): ArdSimplestStorageItem | null;
|
|
59
|
+
/**
|
|
60
|
+
* Highlights the last item out of all items.
|
|
61
|
+
* @returns The highlighted item.
|
|
62
|
+
*/
|
|
63
|
+
highlightLastItem(): ArdSimplestStorageItem | null;
|
|
64
|
+
/**
|
|
65
|
+
* Highlights the next non-disabled item defined by the offset amount.
|
|
66
|
+
* @param offset The amount of items to offset the highlight by.
|
|
67
|
+
* @returns The item highlighted.
|
|
68
|
+
*/
|
|
69
|
+
highlightNextItem(offset: number): ArdSimplestStorageItem | null;
|
|
70
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface PaginationCurrentItemsContext {
|
|
2
|
+
currentItemsFirst: number;
|
|
3
|
+
currentItemsLast: number;
|
|
4
|
+
totalItems: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
page: number;
|
|
7
|
+
}
|
|
8
|
+
export interface PaginationContext extends PaginationCurrentItemsContext {
|
|
9
|
+
itemsPerPageOptions: number[] | {
|
|
10
|
+
value: number;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
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;
|
|
20
|
+
}
|
|
21
|
+
export declare class PaginationModel {
|
|
22
|
+
private _totalItems?;
|
|
23
|
+
private _itemsPerPageOptions;
|
|
24
|
+
private _itemsPerPage;
|
|
25
|
+
private _page;
|
|
26
|
+
setTotalItems(v: number): void;
|
|
27
|
+
get isTotalItemsDefined(): boolean;
|
|
28
|
+
setItemsPerPageOptions(v: number[] | {
|
|
29
|
+
value: number;
|
|
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;
|
|
45
|
+
setPage(v: number): void;
|
|
46
|
+
getPage(): number;
|
|
47
|
+
firstPage(): number | null;
|
|
48
|
+
prevPage(): number | null;
|
|
49
|
+
nextPage(): number | null;
|
|
50
|
+
lastPage(): number | null;
|
|
51
|
+
getCurrentItemsContext(): PaginationCurrentItemsContext;
|
|
52
|
+
getPartialContext(): Omit<PaginationContext, 'onItemsPerPageChange' | 'onPageChange'>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { _FocusableComponentBase } from './focusable-component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Common code for components, which implement the ControlValueAccessor.
|
|
6
|
+
*
|
|
7
|
+
* **Warning**: `writeValue` function should be implemented on the child component!
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class _NgModelComponentBase extends _FocusableComponentBase implements ControlValueAccessor {
|
|
10
|
+
protected _onChangeRegistered: (_: any) => void;
|
|
11
|
+
protected _onTouchedRegistered: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Registers a function to handle touched state. Required by ControlValueAccessor.
|
|
14
|
+
* @param fn The function to register.
|
|
15
|
+
*/
|
|
16
|
+
registerOnTouched(fn: () => void): void;
|
|
17
|
+
/**
|
|
18
|
+
* Registers a function to handle value change. Required by ControlValueAccessor.
|
|
19
|
+
* @param fn The function to register.
|
|
20
|
+
*/
|
|
21
|
+
registerOnChange(fn: (_: any) => {}): void;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the component's disabled state. Required by ControlValueAccessor.
|
|
24
|
+
* @param isDisabled the new disabled state.
|
|
25
|
+
*/
|
|
26
|
+
setDisabledState(isDisabled: boolean): void;
|
|
27
|
+
/**
|
|
28
|
+
* Writes the a new value into the component. Required by ControlValueAccessor.
|
|
29
|
+
* @abstract
|
|
30
|
+
* @param v The new value to write.
|
|
31
|
+
*/
|
|
32
|
+
abstract writeValue(v: any): void;
|
|
33
|
+
/**
|
|
34
|
+
* Writes the a new value into the component. Required by ControlValueAccessor.
|
|
35
|
+
* @abstract
|
|
36
|
+
* @param v The new value to write.
|
|
37
|
+
*/
|
|
38
|
+
protected abstract _emitChange(): void;
|
|
39
|
+
onBlur(event: FocusEvent): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_NgModelComponentBase, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, {}, {}, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface IQueue {
|
|
2
|
+
readonly length: number;
|
|
3
|
+
}
|
|
4
|
+
export declare class Queue<T = unknown> implements IQueue {
|
|
5
|
+
private head?;
|
|
6
|
+
private tail?;
|
|
7
|
+
push(item: T): void;
|
|
8
|
+
pushFront(item: T): void;
|
|
9
|
+
pop(): T | undefined;
|
|
10
|
+
peek(): T | undefined;
|
|
11
|
+
clear(): void;
|
|
12
|
+
get length(): number;
|
|
13
|
+
isEmpty(): boolean;
|
|
14
|
+
toArray(): T[];
|
|
15
|
+
}
|
|
16
|
+
export declare class QueueItem<T> {
|
|
17
|
+
value: T;
|
|
18
|
+
next?: QueueItem<T> | undefined;
|
|
19
|
+
constructor(value: T, next?: QueueItem<T> | undefined);
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { ArdOptionSimple, OptionContext } from '../types/item-storage.types';
|
|
4
|
+
import { SimpleItemStorage, SimpleItemStorageHost } from './item-storages/simple-item-storage';
|
|
5
|
+
import { _NgModelComponentBase } from './ngmodel-component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare abstract class _SelectableListComponentBase extends _NgModelComponentBase implements ControlValueAccessor, SimpleItemStorageHost {
|
|
8
|
+
private _cd;
|
|
9
|
+
readonly itemStorage: SimpleItemStorage;
|
|
10
|
+
readonly htmlId: `${string}-${string}-${string}-${string}-${string}`;
|
|
11
|
+
readonly element: HTMLElement;
|
|
12
|
+
readonly DEFAULTS: {
|
|
13
|
+
valueFrom: string;
|
|
14
|
+
labelFrom: string;
|
|
15
|
+
disabledFrom: string;
|
|
16
|
+
};
|
|
17
|
+
constructor(_cd: ChangeDetectorRef);
|
|
18
|
+
valueFrom?: string;
|
|
19
|
+
labelFrom?: string;
|
|
20
|
+
disabledFrom?: string;
|
|
21
|
+
get items(): any[];
|
|
22
|
+
set items(value: any);
|
|
23
|
+
private _printPrimitiveWarnings;
|
|
24
|
+
protected _multiselectable: boolean;
|
|
25
|
+
abstract multiselectable: any;
|
|
26
|
+
get singleselectable(): boolean;
|
|
27
|
+
protected _requireValue: boolean | undefined;
|
|
28
|
+
abstract requireValue: any;
|
|
29
|
+
private _invertDisabled;
|
|
30
|
+
get invertDisabled(): boolean;
|
|
31
|
+
set invertDisabled(v: any);
|
|
32
|
+
private _maxSelectedItems;
|
|
33
|
+
get maxSelectedItems(): number | undefined;
|
|
34
|
+
set maxSelectedItems(v: any);
|
|
35
|
+
setDisabledState(state: boolean): void;
|
|
36
|
+
writeValue(ngModel: any[]): void;
|
|
37
|
+
private _touched;
|
|
38
|
+
get touched(): boolean;
|
|
39
|
+
protected set touched(state: boolean);
|
|
40
|
+
protected _emitChange(): void;
|
|
41
|
+
protected _onTouched(): void;
|
|
42
|
+
lastBlurTimestamp: number | null;
|
|
43
|
+
onFocus(event: FocusEvent): void;
|
|
44
|
+
onBlur(event: FocusEvent): void;
|
|
45
|
+
get firstHighlightedItem(): ArdOptionSimple | undefined;
|
|
46
|
+
get highlightedItems(): ArdOptionSimple[];
|
|
47
|
+
get isItemLimitReached(): boolean;
|
|
48
|
+
getOptionContext(item: ArdOptionSimple): OptionContext;
|
|
49
|
+
set value(newValue: any);
|
|
50
|
+
valueChange: EventEmitter<any[]>;
|
|
51
|
+
changeEvent: EventEmitter<any[]>;
|
|
52
|
+
addEvent: EventEmitter<any[]>;
|
|
53
|
+
removeEvent: EventEmitter<any[]>;
|
|
54
|
+
toggleItem(item: ArdOptionSimple): void;
|
|
55
|
+
selectItem(...items: ArdOptionSimple[]): void;
|
|
56
|
+
unselectItem(...items: ArdOptionSimple[]): void;
|
|
57
|
+
isMouseBeingUsed: boolean;
|
|
58
|
+
onMouseMove(): void;
|
|
59
|
+
onItemMouseEnter(option: ArdOptionSimple, event: MouseEvent): void;
|
|
60
|
+
onItemMouseLeave(option: ArdOptionSimple, event: MouseEvent): void;
|
|
61
|
+
onItemClick(option: ArdOptionSimple, event: MouseEvent): void;
|
|
62
|
+
onKeyPress(event: KeyboardEvent): void;
|
|
63
|
+
private _toggleHighlightedItems;
|
|
64
|
+
private _highlightPrevious;
|
|
65
|
+
private _highlightNext;
|
|
66
|
+
private _highlightFirst;
|
|
67
|
+
private _highlightLast;
|
|
68
|
+
private _highlightAll;
|
|
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>;
|
|
71
|
+
}
|