@ardium-ui/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/esm2022/ardium-ui-ui.mjs +5 -0
- package/esm2022/lib/_internal/boolean-component.mjs +108 -0
- package/esm2022/lib/_internal/clear-button/clear-button.component.mjs +12 -0
- package/esm2022/lib/_internal/clear-button/clear-button.module.mjs +18 -0
- package/esm2022/lib/_internal/disablable-component.mjs +44 -0
- package/esm2022/lib/_internal/focusable-component.mjs +91 -0
- package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +436 -0
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +349 -0
- package/esm2022/lib/_internal/item-storages/simplest-item-storage.mjs +155 -0
- package/esm2022/lib/_internal/models/pagination.model.mjs +124 -0
- package/esm2022/lib/_internal/ngmodel-component.mjs +42 -0
- package/esm2022/lib/_internal/queue.mjs +59 -0
- package/esm2022/lib/_internal/selectable-list-component.mjs +304 -0
- package/esm2022/lib/badge/badge.directive.mjs +123 -0
- package/esm2022/lib/badge/badge.module.mjs +18 -0
- package/esm2022/lib/badge/badge.types.mjs +16 -0
- package/esm2022/lib/buttons/_button-base.mjs +45 -0
- package/esm2022/lib/buttons/button/button.component.mjs +49 -0
- package/esm2022/lib/buttons/button/button.module.mjs +18 -0
- package/esm2022/lib/buttons/fab/fab.component.mjs +40 -0
- package/esm2022/lib/buttons/fab/fab.module.mjs +18 -0
- package/esm2022/lib/buttons/general-button.types.mjs +55 -0
- package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +37 -0
- package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +18 -0
- package/esm2022/lib/calendar/calendar.component.mjs +982 -0
- package/esm2022/lib/calendar/calendar.directives.mjs +107 -0
- package/esm2022/lib/calendar/calendar.helpers.mjs +47 -0
- package/esm2022/lib/calendar/calendar.module.mjs +21 -0
- package/esm2022/lib/calendar/calendar.types.mjs +11 -0
- package/esm2022/lib/card/card.children.mjs +97 -0
- package/esm2022/lib/card/card.component.mjs +40 -0
- package/esm2022/lib/card/card.module.mjs +59 -0
- package/esm2022/lib/card/card.types.mjs +9 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +73 -0
- package/esm2022/lib/checkbox/checkbox.module.mjs +18 -0
- package/esm2022/lib/checkbox/checkbox.types.mjs +6 -0
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +139 -0
- package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +19 -0
- package/esm2022/lib/checkbox-list/checkbox-list.types.mjs +7 -0
- package/esm2022/lib/chip/chip.component.mjs +55 -0
- package/esm2022/lib/chip/chip.module.mjs +21 -0
- package/esm2022/lib/chip/deletable-chip/deletable-chip.component.mjs +80 -0
- package/esm2022/lib/chip/selectable-chip/selectable-chip.component.mjs +77 -0
- package/esm2022/lib/color/color-display/color-display.component.mjs +48 -0
- package/esm2022/lib/color/color-display/color-display.module.mjs +18 -0
- package/esm2022/lib/color/color-display/color-display.types.mjs +9 -0
- package/esm2022/lib/color/color-picker/color-picker.component.mjs +484 -0
- package/esm2022/lib/color/color-picker/color-picker.directives.mjs +55 -0
- package/esm2022/lib/color/color-picker/color-picker.module.mjs +43 -0
- package/esm2022/lib/color/color-picker/color-picker.types.mjs +11 -0
- package/esm2022/lib/dialog/dialog.component.mjs +167 -0
- package/esm2022/lib/dialog/dialog.directives.mjs +14 -0
- package/esm2022/lib/dialog/dialog.module.mjs +21 -0
- package/esm2022/lib/dialog/dialog.types.mjs +6 -0
- package/esm2022/lib/divider/divider.component.mjs +26 -0
- package/esm2022/lib/divider/divider.module.mjs +18 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.component.mjs +130 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.module.mjs +18 -0
- package/esm2022/lib/dropdown-panel/dropdown-panel.types.mjs +10 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +82 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.directives.mjs +42 -0
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.module.mjs +58 -0
- package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +153 -0
- package/esm2022/lib/file-inputs/file-input/file-input.directives.mjs +73 -0
- package/esm2022/lib/file-inputs/file-input/file-input.module.mjs +21 -0
- package/esm2022/lib/file-inputs/file-input-base.mjs +187 -0
- package/esm2022/lib/file-inputs/file-input-types.mjs +2 -0
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +74 -0
- package/esm2022/lib/form-field-frame/form-field-frame.directives.mjs +25 -0
- package/esm2022/lib/form-field-frame/form-field-frame.module.mjs +19 -0
- package/esm2022/lib/icon/icon.component.mjs +85 -0
- package/esm2022/lib/icon/icon.module.mjs +19 -0
- package/esm2022/lib/icon/icon.pipe.mjs +18 -0
- package/esm2022/lib/inputs/color-input/color-input.component.mjs +421 -0
- package/esm2022/lib/inputs/color-input/color-input.directives.mjs +101 -0
- package/esm2022/lib/inputs/color-input/color-input.module.mjs +85 -0
- package/esm2022/lib/inputs/color-input/color-input.types.mjs +2 -0
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +218 -0
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +217 -0
- package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +18 -0
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +15 -0
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +8 -0
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +234 -0
- package/esm2022/lib/inputs/hex-input/hex-input.directives.mjs +36 -0
- package/esm2022/lib/inputs/hex-input/hex-input.module.mjs +21 -0
- package/esm2022/lib/inputs/hex-input.model.mjs +106 -0
- package/esm2022/lib/inputs/input/input.component.mjs +344 -0
- package/esm2022/lib/inputs/input/input.directives.mjs +58 -0
- package/esm2022/lib/inputs/input/input.module.mjs +47 -0
- package/esm2022/lib/inputs/input-transformers.mjs +66 -0
- package/esm2022/lib/inputs/input-types.mjs +6 -0
- package/esm2022/lib/inputs/input-utils.mjs +205 -0
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +289 -0
- package/esm2022/lib/inputs/number-input/number-input.directives.mjs +14 -0
- package/esm2022/lib/inputs/number-input/number-input.module.mjs +21 -0
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +222 -0
- package/esm2022/lib/inputs/password-input/password-input.directives.mjs +49 -0
- package/esm2022/lib/inputs/password-input/password-input.module.mjs +41 -0
- package/esm2022/lib/inputs/password-input/password-input.types.mjs +2 -0
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +219 -0
- package/esm2022/lib/inputs/simple-input/simple-input.directives.mjs +36 -0
- package/esm2022/lib/inputs/simple-input/simple-input.module.mjs +37 -0
- package/esm2022/lib/kbd/kbd.component.mjs +42 -0
- package/esm2022/lib/kbd/kbd.module.mjs +19 -0
- package/esm2022/lib/kbd/kbd.pipe.mjs +17 -0
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.component.mjs +55 -0
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.module.mjs +19 -0
- package/esm2022/lib/modal/modal.component.mjs +120 -0
- package/esm2022/lib/modal/modal.module.mjs +21 -0
- package/esm2022/lib/option/option.component.mjs +77 -0
- package/esm2022/lib/option/option.module.mjs +18 -0
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +95 -0
- package/esm2022/lib/progress-bar/progress-bar.directive.mjs +14 -0
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +19 -0
- package/esm2022/lib/progress-bar/progress-bar.types.mjs +19 -0
- package/esm2022/lib/progress-circle/progress-circle.component.mjs +94 -0
- package/esm2022/lib/progress-circle/progress-circle.directive.mjs +14 -0
- package/esm2022/lib/progress-circle/progress-circle.module.mjs +19 -0
- package/esm2022/lib/progress-circle/progress-circle.types.mjs +10 -0
- package/esm2022/lib/radio/radio/radio.component.mjs +53 -0
- package/esm2022/lib/radio/radio-group.component.mjs +207 -0
- package/esm2022/lib/radio/radio.module.mjs +19 -0
- package/esm2022/lib/search-functions.mjs +64 -0
- package/esm2022/lib/segment/segment.component.mjs +168 -0
- package/esm2022/lib/segment/segment.directives.mjs +14 -0
- package/esm2022/lib/segment/segment.module.mjs +19 -0
- package/esm2022/lib/segment/segment.types.mjs +12 -0
- package/esm2022/lib/select/select.component.mjs +1160 -0
- package/esm2022/lib/select/select.directive.mjs +171 -0
- package/esm2022/lib/select/select.module.mjs +112 -0
- package/esm2022/lib/select/select.types.mjs +2 -0
- package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +46 -0
- package/esm2022/lib/slide-toggle/slide-toggle.module.mjs +18 -0
- package/esm2022/lib/slider/abstract-slider.mjs +330 -0
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +143 -0
- package/esm2022/lib/slider/range-slider/range-slider.module.mjs +18 -0
- package/esm2022/lib/slider/slider.component.mjs +93 -0
- package/esm2022/lib/slider/slider.directive.mjs +16 -0
- package/esm2022/lib/slider/slider.module.mjs +20 -0
- package/esm2022/lib/slider/slider.types.mjs +10 -0
- package/esm2022/lib/snackbar/index.mjs +5 -0
- package/esm2022/lib/snackbar/snackbar-ref.mjs +51 -0
- package/esm2022/lib/snackbar/snackbar.component.mjs +48 -0
- package/esm2022/lib/snackbar/snackbar.service.mjs +227 -0
- package/esm2022/lib/snackbar/snackbar.token.mjs +20 -0
- package/esm2022/lib/snackbar/snackbar.types.mjs +25 -0
- package/esm2022/lib/spinner/spinner.component.mjs +22 -0
- package/esm2022/lib/spinner/spinner.module.mjs +18 -0
- package/esm2022/lib/star/star-button/star-button.component.mjs +53 -0
- package/esm2022/lib/star/star-button/star-button.module.mjs +19 -0
- package/esm2022/lib/star/star-display/star-display.component.mjs +66 -0
- package/esm2022/lib/star/star-display/star-display.module.mjs +19 -0
- package/esm2022/lib/star/star-input/star-input.component.mjs +221 -0
- package/esm2022/lib/star/star-input/star-input.module.mjs +19 -0
- package/esm2022/lib/star/star.component.mjs +28 -0
- package/esm2022/lib/star/star.module.mjs +18 -0
- package/esm2022/lib/star/star.types.mjs +23 -0
- package/esm2022/lib/statebox/statebox.component.mjs +158 -0
- package/esm2022/lib/statebox/statebox.module.mjs +18 -0
- package/esm2022/lib/statebox/statebox.types.mjs +2 -0
- package/esm2022/lib/table/table-item-storage.mjs +560 -0
- package/esm2022/lib/table/table.component.mjs +468 -0
- package/esm2022/lib/table/table.directives.mjs +64 -0
- package/esm2022/lib/table/table.module.mjs +46 -0
- package/esm2022/lib/table/table.types.mjs +30 -0
- package/esm2022/lib/table/utils.mjs +18 -0
- package/esm2022/lib/table-from-csv/table-from-csv.component.mjs +64 -0
- package/esm2022/lib/table-from-csv/table-from-csv.module.mjs +19 -0
- package/esm2022/lib/table-pagination/table-pagination.component.mjs +172 -0
- package/esm2022/lib/table-pagination/table-pagination.module.mjs +21 -0
- package/esm2022/lib/table-pagination/table-pagination.types.mjs +7 -0
- package/esm2022/lib/types/alignment.types.mjs +10 -0
- package/esm2022/lib/types/colors.types.mjs +43 -0
- package/esm2022/lib/types/item-storage.types.mjs +6 -0
- package/esm2022/lib/types/theming.types.mjs +48 -0
- package/esm2022/lib/types/utility.types.mjs +5 -0
- package/esm2022/public-api.mjs +194 -0
- package/fesm2022/ardium-ui-ui.mjs +14316 -0
- package/fesm2022/ardium-ui-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/_internal/boolean-component.d.ts +50 -0
- package/lib/_internal/clear-button/clear-button.component.d.ts +6 -0
- package/lib/_internal/clear-button/clear-button.module.d.ts +8 -0
- package/lib/_internal/disablable-component.d.ts +11 -0
- package/lib/_internal/focusable-component.d.ts +52 -0
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +87 -0
- package/lib/_internal/item-storages/simple-item-storage.d.ts +159 -0
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +70 -0
- package/lib/_internal/models/pagination.model.d.ts +53 -0
- package/lib/_internal/ngmodel-component.d.ts +42 -0
- package/lib/_internal/queue.d.ts +21 -0
- package/lib/_internal/selectable-list-component.d.ts +71 -0
- package/lib/badge/badge.directive.d.ts +31 -0
- package/lib/badge/badge.module.d.ts +8 -0
- package/lib/badge/badge.types.d.ts +17 -0
- package/lib/buttons/_button-base.d.ts +18 -0
- package/lib/buttons/button/button.component.d.ts +15 -0
- package/lib/buttons/button/button.module.d.ts +8 -0
- package/lib/buttons/fab/fab.component.d.ts +12 -0
- package/lib/buttons/fab/fab.module.d.ts +8 -0
- package/lib/buttons/general-button.types.d.ts +57 -0
- package/lib/buttons/icon-button/icon-button.component.d.ts +13 -0
- package/lib/buttons/icon-button/icon-button.module.d.ts +8 -0
- package/lib/calendar/calendar.component.d.ts +155 -0
- package/lib/calendar/calendar.directives.d.ts +51 -0
- package/lib/calendar/calendar.helpers.d.ts +15 -0
- package/lib/calendar/calendar.module.d.ts +11 -0
- package/lib/calendar/calendar.types.d.ts +80 -0
- package/lib/card/card.children.d.ts +43 -0
- package/lib/card/card.component.d.ts +13 -0
- package/lib/card/card.module.d.ts +9 -0
- package/lib/card/card.types.d.ts +10 -0
- package/lib/checkbox/checkbox.component.d.ts +21 -0
- package/lib/checkbox/checkbox.module.d.ts +8 -0
- package/lib/checkbox/checkbox.types.d.ts +6 -0
- package/lib/checkbox-list/checkbox-list.component.d.ts +50 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +9 -0
- package/lib/checkbox-list/checkbox-list.types.d.ts +7 -0
- package/lib/chip/chip.component.d.ts +18 -0
- package/lib/chip/chip.module.d.ts +11 -0
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +24 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +24 -0
- package/lib/color/color-display/color-display.component.d.ts +17 -0
- package/lib/color/color-display/color-display.module.d.ts +8 -0
- package/lib/color/color-display/color-display.types.d.ts +9 -0
- package/lib/color/color-picker/color-picker.component.d.ts +125 -0
- package/lib/color/color-picker/color-picker.directives.d.ts +27 -0
- package/lib/color/color-picker/color-picker.module.d.ts +13 -0
- package/lib/color/color-picker/color-picker.types.d.ts +21 -0
- package/lib/dialog/dialog.component.d.ts +44 -0
- package/lib/dialog/dialog.directives.d.ts +9 -0
- package/lib/dialog/dialog.module.d.ts +11 -0
- package/lib/dialog/dialog.types.d.ts +28 -0
- package/lib/divider/divider.component.d.ts +8 -0
- package/lib/divider/divider.module.d.ts +8 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +37 -0
- package/lib/dropdown-panel/dropdown-panel.module.d.ts +8 -0
- package/lib/dropdown-panel/dropdown-panel.types.d.ts +12 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.component.d.ts +22 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.directives.d.ts +21 -0
- package/lib/file-inputs/file-drop-area/file-drop-area.module.d.ts +12 -0
- package/lib/file-inputs/file-input/file-input.component.d.ts +41 -0
- package/lib/file-inputs/file-input/file-input.directives.d.ts +39 -0
- package/lib/file-inputs/file-input/file-input.module.d.ts +11 -0
- package/lib/file-inputs/file-input-base.d.ts +43 -0
- package/lib/file-inputs/file-input-types.d.ts +10 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +32 -0
- package/lib/form-field-frame/form-field-frame.directives.d.ts +14 -0
- package/lib/form-field-frame/form-field-frame.module.d.ts +9 -0
- package/lib/icon/icon.component.d.ts +32 -0
- package/lib/icon/icon.module.d.ts +9 -0
- package/lib/icon/icon.pipe.d.ts +7 -0
- package/lib/inputs/color-input/color-input.component.d.ts +147 -0
- package/lib/inputs/color-input/color-input.directives.d.ts +52 -0
- package/lib/inputs/color-input/color-input.module.d.ts +16 -0
- package/lib/inputs/color-input/color-input.types.d.ts +5 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +50 -0
- package/lib/inputs/digit-input/digit-input.model.d.ts +26 -0
- package/lib/inputs/digit-input/digit-input.module.d.ts +8 -0
- package/lib/inputs/digit-input/digit-input.types.d.ts +27 -0
- package/lib/inputs/digit-input/digit-input.utils.d.ts +17 -0
- package/lib/inputs/hex-input/hex-input.component.d.ts +60 -0
- package/lib/inputs/hex-input/hex-input.directives.d.ts +20 -0
- package/lib/inputs/hex-input/hex-input.module.d.ts +11 -0
- package/lib/inputs/hex-input.model.d.ts +27 -0
- package/lib/inputs/input/input.component.d.ts +79 -0
- package/lib/inputs/input/input.directives.d.ts +33 -0
- package/lib/inputs/input/input.module.d.ts +13 -0
- package/lib/inputs/input-transformers.d.ts +24 -0
- package/lib/inputs/input-types.d.ts +6 -0
- package/lib/inputs/input-utils.d.ts +58 -0
- package/lib/inputs/number-input/number-input.component.d.ts +70 -0
- package/lib/inputs/number-input/number-input.directives.d.ts +8 -0
- package/lib/inputs/number-input/number-input.module.d.ts +11 -0
- package/lib/inputs/password-input/password-input.component.d.ts +54 -0
- package/lib/inputs/password-input/password-input.directives.d.ts +27 -0
- package/lib/inputs/password-input/password-input.module.d.ts +11 -0
- package/lib/inputs/password-input/password-input.types.d.ts +3 -0
- package/lib/inputs/simple-input/simple-input.component.d.ts +58 -0
- package/lib/inputs/simple-input/simple-input.directives.d.ts +20 -0
- package/lib/inputs/simple-input/simple-input.module.d.ts +11 -0
- package/lib/kbd/kbd.component.d.ts +15 -0
- package/lib/kbd/kbd.module.d.ts +9 -0
- package/lib/kbd/kbd.pipe.d.ts +7 -0
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +18 -0
- package/lib/kbd-shortcut/kbd-shortcut.module.d.ts +9 -0
- package/lib/modal/modal.component.d.ts +36 -0
- package/lib/modal/modal.module.d.ts +11 -0
- package/lib/option/option.component.d.ts +29 -0
- package/lib/option/option.module.d.ts +8 -0
- package/lib/progress-bar/progress-bar.component.d.ts +26 -0
- package/lib/progress-bar/progress-bar.directive.d.ts +9 -0
- package/lib/progress-bar/progress-bar.module.d.ts +9 -0
- package/lib/progress-bar/progress-bar.types.d.ts +26 -0
- package/lib/progress-circle/progress-circle.component.d.ts +28 -0
- package/lib/progress-circle/progress-circle.directive.d.ts +9 -0
- package/lib/progress-circle/progress-circle.module.d.ts +9 -0
- package/lib/progress-circle/progress-circle.types.d.ts +17 -0
- package/lib/radio/radio/radio.component.d.ts +23 -0
- package/lib/radio/radio-group.component.d.ts +43 -0
- package/lib/radio/radio.module.d.ts +9 -0
- package/lib/search-functions.d.ts +10 -0
- package/lib/segment/segment.component.d.ts +48 -0
- package/lib/segment/segment.directives.d.ts +9 -0
- package/lib/segment/segment.module.d.ts +9 -0
- package/lib/segment/segment.types.d.ts +16 -0
- package/lib/select/select.component.d.ts +255 -0
- package/lib/select/select.directive.d.ts +94 -0
- package/lib/select/select.module.d.ts +14 -0
- package/lib/select/select.types.d.ts +109 -0
- package/lib/slide-toggle/slide-toggle.component.d.ts +14 -0
- package/lib/slide-toggle/slide-toggle.module.d.ts +8 -0
- package/lib/slider/abstract-slider.d.ts +88 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +29 -0
- package/lib/slider/range-slider/range-slider.module.d.ts +8 -0
- package/lib/slider/slider.component.d.ts +18 -0
- package/lib/slider/slider.directive.d.ts +9 -0
- package/lib/slider/slider.module.d.ts +10 -0
- package/lib/slider/slider.types.d.ts +28 -0
- package/lib/snackbar/index.d.ts +4 -0
- package/lib/snackbar/snackbar-ref.d.ts +37 -0
- package/lib/snackbar/snackbar.component.d.ts +16 -0
- package/lib/snackbar/snackbar.service.d.ts +31 -0
- package/lib/snackbar/snackbar.token.d.ts +5 -0
- package/lib/snackbar/snackbar.types.d.ts +48 -0
- package/lib/spinner/spinner.component.d.ts +8 -0
- package/lib/spinner/spinner.module.d.ts +8 -0
- package/lib/star/star-button/star-button.component.d.ts +16 -0
- package/lib/star/star-button/star-button.module.d.ts +9 -0
- package/lib/star/star-display/star-display.component.d.ts +16 -0
- package/lib/star/star-display/star-display.module.d.ts +9 -0
- package/lib/star/star-input/star-input.component.d.ts +51 -0
- package/lib/star/star-input/star-input.module.d.ts +9 -0
- package/lib/star/star.component.d.ts +10 -0
- package/lib/star/star.module.d.ts +8 -0
- package/lib/star/star.types.d.ts +30 -0
- package/lib/statebox/statebox.component.d.ts +31 -0
- package/lib/statebox/statebox.module.d.ts +8 -0
- package/lib/statebox/statebox.types.d.ts +22 -0
- package/lib/table/table-item-storage.d.ts +266 -0
- package/lib/table/table.component.d.ts +127 -0
- package/lib/table/table.directives.d.ts +35 -0
- package/lib/table/table.module.d.ts +12 -0
- package/lib/table/table.types.d.ts +83 -0
- package/lib/table/utils.d.ts +4 -0
- package/lib/table-from-csv/table-from-csv.component.d.ts +16 -0
- package/lib/table-from-csv/table-from-csv.module.d.ts +9 -0
- package/lib/table-pagination/table-pagination.component.d.ts +48 -0
- package/lib/table-pagination/table-pagination.module.d.ts +11 -0
- package/lib/table-pagination/table-pagination.types.d.ts +9 -0
- package/lib/types/alignment.types.d.ts +11 -0
- package/lib/types/colors.types.d.ts +71 -0
- package/lib/types/item-storage.types.d.ts +98 -0
- package/lib/types/theming.types.d.ts +61 -0
- package/lib/types/utility.types.d.ts +11 -0
- package/package.json +36 -0
- package/prebuilt-themes/default/badge.css +208 -0
- package/prebuilt-themes/default/badge.css.map +1 -0
- package/prebuilt-themes/default/buttons/button.css +290 -0
- package/prebuilt-themes/default/buttons/button.css.map +1 -0
- package/prebuilt-themes/default/buttons/fab.css +307 -0
- package/prebuilt-themes/default/buttons/fab.css.map +1 -0
- package/prebuilt-themes/default/buttons/icon-button.css +288 -0
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -0
- package/prebuilt-themes/default/calendar.css +293 -0
- package/prebuilt-themes/default/calendar.css.map +1 -0
- package/prebuilt-themes/default/card.css +122 -0
- package/prebuilt-themes/default/card.css.map +1 -0
- package/prebuilt-themes/default/checkbox-list.css +65 -0
- package/prebuilt-themes/default/checkbox-list.css.map +1 -0
- package/prebuilt-themes/default/checkbox.css +365 -0
- package/prebuilt-themes/default/checkbox.css.map +1 -0
- package/prebuilt-themes/default/chips.css +367 -0
- package/prebuilt-themes/default/chips.css.map +1 -0
- package/prebuilt-themes/default/color-display.css +29 -0
- package/prebuilt-themes/default/color-display.css.map +1 -0
- package/prebuilt-themes/default/color-picker.css +106 -0
- package/prebuilt-themes/default/color-picker.css.map +1 -0
- package/prebuilt-themes/default/core.css +84 -0
- package/prebuilt-themes/default/core.css.map +1 -0
- package/prebuilt-themes/default/dialog.css +18 -0
- package/prebuilt-themes/default/dialog.css.map +1 -0
- package/prebuilt-themes/default/divider.css +11 -0
- package/prebuilt-themes/default/divider.css.map +1 -0
- package/prebuilt-themes/default/dropdown-panel.css +37 -0
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -0
- package/prebuilt-themes/default/file-drop-area.css +279 -0
- package/prebuilt-themes/default/file-drop-area.css.map +1 -0
- package/prebuilt-themes/default/form-field-frame.css +84 -0
- package/prebuilt-themes/default/form-field-frame.css.map +1 -0
- package/prebuilt-themes/default/inputs/color-input.css +139 -0
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/digit-input.css +45 -0
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/file-input.css +169 -0
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/hex-input.css +119 -0
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/input.css +139 -0
- package/prebuilt-themes/default/inputs/input.css.map +1 -0
- package/prebuilt-themes/default/inputs/number-input.css +150 -0
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/password-input.css +73 -0
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -0
- package/prebuilt-themes/default/inputs/search-bar.css +114 -0
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -0
- package/prebuilt-themes/default/inputs/simple-input.css +114 -0
- package/prebuilt-themes/default/inputs/simple-input.css.map +1 -0
- package/prebuilt-themes/default/kbd-shortcut.css +12 -0
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -0
- package/prebuilt-themes/default/kbd.css +17 -0
- package/prebuilt-themes/default/kbd.css.map +1 -0
- package/prebuilt-themes/default/modal.css +73 -0
- package/prebuilt-themes/default/modal.css.map +1 -0
- package/prebuilt-themes/default/progress-bar.css +267 -0
- package/prebuilt-themes/default/progress-bar.css.map +1 -0
- package/prebuilt-themes/default/progress-circle.css +167 -0
- package/prebuilt-themes/default/progress-circle.css.map +1 -0
- package/prebuilt-themes/default/radio.css +226 -0
- package/prebuilt-themes/default/radio.css.map +1 -0
- package/prebuilt-themes/default/segment.css +391 -0
- package/prebuilt-themes/default/segment.css.map +1 -0
- package/prebuilt-themes/default/select.css +275 -0
- package/prebuilt-themes/default/select.css.map +1 -0
- package/prebuilt-themes/default/slide-toggle.css +264 -0
- package/prebuilt-themes/default/slide-toggle.css.map +1 -0
- package/prebuilt-themes/default/slider.css +354 -0
- package/prebuilt-themes/default/slider.css.map +1 -0
- package/prebuilt-themes/default/snackbar.css +183 -0
- package/prebuilt-themes/default/snackbar.css.map +1 -0
- package/prebuilt-themes/default/spinner.css +151 -0
- package/prebuilt-themes/default/spinner.css.map +1 -0
- package/prebuilt-themes/default/stars.css +291 -0
- package/prebuilt-themes/default/stars.css.map +1 -0
- package/prebuilt-themes/default/statebox.css +235 -0
- package/prebuilt-themes/default/statebox.css.map +1 -0
- package/prebuilt-themes/default/table-pagination.css +48 -0
- package/prebuilt-themes/default/table-pagination.css.map +1 -0
- package/prebuilt-themes/default/table.css +418 -0
- package/prebuilt-themes/default/table.css.map +1 -0
- package/public-api.d.ts +145 -0
- package/themes/_variables.scss +121 -0
- package/themes/default/_clear-button.scss +73 -0
- package/themes/default/_coloring.scss +137 -0
- package/themes/default/_dropdown-arrow.scss +12 -0
- package/themes/default/_mixins.scss +70 -0
- package/themes/default/badge.scss +94 -0
- package/themes/default/buttons/_button-mixins.scss +144 -0
- package/themes/default/buttons/button.scss +62 -0
- package/themes/default/buttons/fab.scss +72 -0
- package/themes/default/buttons/icon-button.scss +59 -0
- package/themes/default/calendar.scss +182 -0
- package/themes/default/card.scss +126 -0
- package/themes/default/checkbox-list.scss +83 -0
- package/themes/default/checkbox.scss +109 -0
- package/themes/default/chips.scss +206 -0
- package/themes/default/color-display.scss +41 -0
- package/themes/default/color-picker.scss +111 -0
- package/themes/default/core.scss +96 -0
- package/themes/default/dialog.scss +16 -0
- package/themes/default/divider.scss +13 -0
- package/themes/default/dropdown-panel.scss +45 -0
- package/themes/default/file-drop-area.scss +162 -0
- package/themes/default/form-field-frame.scss +78 -0
- package/themes/default/inputs/_shared.scss +46 -0
- package/themes/default/inputs/color-input.scss +46 -0
- package/themes/default/inputs/digit-input.scss +56 -0
- package/themes/default/inputs/file-input.scss +78 -0
- package/themes/default/inputs/hex-input.scss +27 -0
- package/themes/default/inputs/input.scss +52 -0
- package/themes/default/inputs/number-input.scss +121 -0
- package/themes/default/inputs/password-input.scss +43 -0
- package/themes/default/inputs/search-bar.scss +19 -0
- package/themes/default/inputs/simple-input.scss +19 -0
- package/themes/default/kbd-shortcut.scss +13 -0
- package/themes/default/kbd.scss +20 -0
- package/themes/default/modal.scss +93 -0
- package/themes/default/progress-bar.scss +166 -0
- package/themes/default/progress-circle.scss +56 -0
- package/themes/default/radio.scss +112 -0
- package/themes/default/segment.scss +339 -0
- package/themes/default/select.scss +253 -0
- package/themes/default/slide-toggle.scss +151 -0
- package/themes/default/slider.scss +224 -0
- package/themes/default/snackbar.scss +60 -0
- package/themes/default/spinner.scss +21 -0
- package/themes/default/stars.scss +122 -0
- package/themes/default/statebox.scss +109 -0
- package/themes/default/table-pagination.scss +56 -0
- package/themes/default/table.scss +403 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
@use './mixins' as defaultMixins;
|
|
2
|
+
@use './coloring' as coloringMixins;
|
|
3
|
+
@import '../variables';
|
|
4
|
+
|
|
5
|
+
.ard-segment-container {
|
|
6
|
+
@include coloringMixins.typeColors();
|
|
7
|
+
--ard-_segment-padding: 0.15rem;
|
|
8
|
+
padding: var(--ard-_segment-padding);
|
|
9
|
+
font-family: 'Roboto', sans-serif;
|
|
10
|
+
margin: 2px;
|
|
11
|
+
border: 1px solid transparent;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
width: max-content;
|
|
14
|
+
height: max-content;
|
|
15
|
+
gap: var(--ard-_segment-padding);
|
|
16
|
+
overflow: hidden; //hide click indicator overflowing rounded corners on touchscreens
|
|
17
|
+
|
|
18
|
+
@include defaultMixins.formAppearances();
|
|
19
|
+
@include defaultMixins.formVariants();
|
|
20
|
+
|
|
21
|
+
//! button focus inficator
|
|
22
|
+
.ard-focus-overlay {
|
|
23
|
+
@include defaultMixins.focus-overlay;
|
|
24
|
+
background-color: var(--ard-cmpcl--content);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//! row & option styling
|
|
28
|
+
.ard-segment-row {
|
|
29
|
+
gap: var(--ard-_segment-padding);
|
|
30
|
+
--ard-_font-size: 0.85em;
|
|
31
|
+
height: calc(2.42em + 1px);
|
|
32
|
+
font-size: var(--ard-_font-size);
|
|
33
|
+
|
|
34
|
+
.ard-segment-option {
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0 1em;
|
|
37
|
+
height: 100%;
|
|
38
|
+
font-size: 1em;
|
|
39
|
+
min-width: 2.42em;
|
|
40
|
+
border: 1px solid transparent;
|
|
41
|
+
background: transparent;
|
|
42
|
+
position: relative;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition:
|
|
45
|
+
color 0.1s $timing-fn,
|
|
46
|
+
border-color 0.1s $timing-fn,
|
|
47
|
+
background-color 0.1s $timing-fn;
|
|
48
|
+
outline: none;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
|
|
52
|
+
&.ard-option-selected {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.ard-option-disabled {
|
|
58
|
+
opacity: 60%;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ard-button-content {
|
|
63
|
+
position: relative;
|
|
64
|
+
z-index: 1;
|
|
65
|
+
width: max-content;
|
|
66
|
+
|
|
67
|
+
.ard-option-label {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//! highlighted/selected styling
|
|
75
|
+
.ard-segment-option {
|
|
76
|
+
&.ard-option-highlighted {
|
|
77
|
+
.ard-focus-overlay {
|
|
78
|
+
opacity: 4%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&:active {
|
|
82
|
+
.ard-focus-overlay {
|
|
83
|
+
opacity: 12%;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
&.ard-option-selected {
|
|
87
|
+
.ard-focus-overlay {
|
|
88
|
+
opacity: 16%;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&.ard-using-keyboard {
|
|
93
|
+
.ard-segment-option {
|
|
94
|
+
&.ard-option-highlighted {
|
|
95
|
+
.ard-focus-overlay {
|
|
96
|
+
opacity: 28%;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&:active {
|
|
100
|
+
.ard-focus-overlay {
|
|
101
|
+
opacity: 34%;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//! appearances
|
|
108
|
+
&.ard-appearance-transparent {
|
|
109
|
+
background: transparent;
|
|
110
|
+
|
|
111
|
+
.ard-segment-row {
|
|
112
|
+
.ard-segment-option {
|
|
113
|
+
.ard-focus-overlay {
|
|
114
|
+
background-color: var(--ard-cmpcl--content);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.ard-option-selected {
|
|
118
|
+
color: var(--ard-cmpcl--content);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&.ard-appearance-outlined,
|
|
124
|
+
&.ard-appearance-outlined-strong {
|
|
125
|
+
background: $bg;
|
|
126
|
+
padding: 0;
|
|
127
|
+
|
|
128
|
+
.ard-segment-option {
|
|
129
|
+
border: 1px solid $border-light;
|
|
130
|
+
|
|
131
|
+
&.ard-option-selected {
|
|
132
|
+
border-color: var(--ard-cmpcl--border);
|
|
133
|
+
color: var(--ard-cmpcl--content);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
&.ard-variant-rounded-connected,
|
|
137
|
+
&.ard-variant-sharp-connected {
|
|
138
|
+
gap: 0;
|
|
139
|
+
|
|
140
|
+
.ard-segment-row {
|
|
141
|
+
gap: 0;
|
|
142
|
+
|
|
143
|
+
&:not(:first-child) {
|
|
144
|
+
margin-top: -1px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ard-segment-option:not(:first-child) {
|
|
148
|
+
margin-left: -1px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&.ard-variant-rounded-connected {
|
|
153
|
+
.ard-segment-row {
|
|
154
|
+
.ard-segment-option {
|
|
155
|
+
border-radius: 0 !important;
|
|
156
|
+
}
|
|
157
|
+
&:first-child {
|
|
158
|
+
.ard-segment-option {
|
|
159
|
+
&:first-child {
|
|
160
|
+
border-top-left-radius: var(--ard-variant-border-radius) !important;
|
|
161
|
+
}
|
|
162
|
+
&:last-child {
|
|
163
|
+
border-top-right-radius: var(--ard-variant-border-radius) !important;
|
|
164
|
+
}
|
|
165
|
+
&:first-child:last-child {
|
|
166
|
+
border-top-right-radius: var(--ard-variant-border-radius) !important;
|
|
167
|
+
border-top-left-radius: var(--ard-variant-border-radius) !important;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&:last-child {
|
|
172
|
+
.ard-segment-option {
|
|
173
|
+
&:first-child {
|
|
174
|
+
border-bottom-left-radius: var(--ard-variant-border-radius) !important;
|
|
175
|
+
}
|
|
176
|
+
&:last-child {
|
|
177
|
+
border-bottom-right-radius: var(--ard-variant-border-radius) !important;
|
|
178
|
+
}
|
|
179
|
+
&:first-child:last-child {
|
|
180
|
+
border-bottom-right-radius: var(--ard-variant-border-radius) !important;
|
|
181
|
+
border-bottom-left-radius: var(--ard-variant-border-radius) !important;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
&:first-child:last-child {
|
|
186
|
+
.ard-segment-option {
|
|
187
|
+
&:first-child {
|
|
188
|
+
border-top-left-radius: var(--ard-variant-border-radius) !important;
|
|
189
|
+
border-bottom-left-radius: var(--ard-variant-border-radius) !important;
|
|
190
|
+
}
|
|
191
|
+
&:last-child {
|
|
192
|
+
border-top-right-radius: var(--ard-variant-border-radius) !important;
|
|
193
|
+
border-bottom-right-radius: var(--ard-variant-border-radius) !important;
|
|
194
|
+
}
|
|
195
|
+
&:first-child:last-child {
|
|
196
|
+
border-radius: var(--ard-variant-border-radius) !important;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
&.ard-appearance-outlined-strong {
|
|
204
|
+
.ard-segment-option.ard-option-selected {
|
|
205
|
+
background-color: var(--ard-cmpcl--bg);
|
|
206
|
+
color: var(--ard-cmpcl--on-bg);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
&.ard-appearance-filled {
|
|
210
|
+
position: relative;
|
|
211
|
+
|
|
212
|
+
&::before {
|
|
213
|
+
content: '';
|
|
214
|
+
position: absolute;
|
|
215
|
+
top: 0;
|
|
216
|
+
bottom: 0;
|
|
217
|
+
left: 0;
|
|
218
|
+
right: 0;
|
|
219
|
+
border-radius: inherit;
|
|
220
|
+
background: var(--ard-cmpcl--bg);
|
|
221
|
+
opacity: 15%;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ard-segment-option {
|
|
225
|
+
&.ard-option-highlighted {
|
|
226
|
+
.ard-focus-overlay {
|
|
227
|
+
opacity: 8%;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
&.ard-option-selected {
|
|
231
|
+
.ard-focus-overlay {
|
|
232
|
+
opacity: 20%;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
&.ard-appearance-filled-strong {
|
|
238
|
+
background: var(--ard-cmpcl--bg);
|
|
239
|
+
border-radius: var(--ard-variant-border-radius);
|
|
240
|
+
|
|
241
|
+
.ard-segment-row {
|
|
242
|
+
.ard-segment-option {
|
|
243
|
+
color: var(--ard-cmpcl--on-bg);
|
|
244
|
+
|
|
245
|
+
.ard-focus-overlay {
|
|
246
|
+
background-color: var(--ard-cmpcl--on-bg);
|
|
247
|
+
}
|
|
248
|
+
&.ard-option-highlighted {
|
|
249
|
+
.ard-focus-overlay {
|
|
250
|
+
opacity: 16%;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
&.ard-option-selected {
|
|
254
|
+
color: var(--ard-cmpcl--content);
|
|
255
|
+
background: var(--ard-cmpcl--on-bg);
|
|
256
|
+
|
|
257
|
+
.ard-focus-overlay {
|
|
258
|
+
opacity: 0;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
//! variants
|
|
266
|
+
&.ard-variant-pill {
|
|
267
|
+
border-radius: 16px;
|
|
268
|
+
|
|
269
|
+
.ard-segment-row {
|
|
270
|
+
.ard-segment-option {
|
|
271
|
+
border-radius: var(--ard-variant-border-radius);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
&.ard-variant-rounded,
|
|
276
|
+
&.ard-variant-rounded-connected {
|
|
277
|
+
--ard-variant-border-radius: 8px;
|
|
278
|
+
border-radius: var(--ard-variant-border-radius);
|
|
279
|
+
|
|
280
|
+
.ard-segment-row {
|
|
281
|
+
.ard-segment-option {
|
|
282
|
+
border-radius: max(1px, calc(var(--ard-variant-border-radius) - var(--ard-_segment-padding)));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
&.ard-variant-sharp,
|
|
287
|
+
&.ard-variant-sharp-connected {
|
|
288
|
+
border-radius: var(--ard-variant-border-radius);
|
|
289
|
+
|
|
290
|
+
.ard-segment-row {
|
|
291
|
+
.ard-segment-option {
|
|
292
|
+
border-radius: calc(var(--ard-variant-border-radius));
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
//! compact
|
|
298
|
+
&.ard-compact {
|
|
299
|
+
.ard-segment-row {
|
|
300
|
+
--ard-_font-size: 0.85em;
|
|
301
|
+
height: calc(1.85em + 1px);
|
|
302
|
+
|
|
303
|
+
.ard-segment-option {
|
|
304
|
+
padding: 0 0.5em;
|
|
305
|
+
min-width: 1.85em;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&.ard-icon-based {
|
|
311
|
+
.ard-segment-row .ard-segment-option {
|
|
312
|
+
padding: 0;
|
|
313
|
+
min-width: unset;
|
|
314
|
+
aspect-ratio: 1;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
//! disabled styling
|
|
320
|
+
&.ard-disabled {
|
|
321
|
+
pointer-events: none;
|
|
322
|
+
opacity: 50%;
|
|
323
|
+
|
|
324
|
+
.ard-focus-overlay {
|
|
325
|
+
opacity: 10%;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
//edge case for no coloring
|
|
329
|
+
&.ard-color-none {
|
|
330
|
+
.ard-button-icon,
|
|
331
|
+
.ard-button-content {
|
|
332
|
+
opacity: 60%;
|
|
333
|
+
}
|
|
334
|
+
.ard-focus-overlay {
|
|
335
|
+
background: var(--ard-cmpcl--overlay);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
@use './clear-button' as CB;
|
|
2
|
+
@use './mixins' as defaultMixins;
|
|
3
|
+
@import '../variables';
|
|
4
|
+
|
|
5
|
+
.ard-select {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-height: 100%;
|
|
9
|
+
display: grid;
|
|
10
|
+
align-items: center;
|
|
11
|
+
grid-template-columns: 1fr max-content;
|
|
12
|
+
gap: 0.625em;
|
|
13
|
+
padding: 0 1em 0 0.375em;
|
|
14
|
+
font-family: 'Roboto', sans-serif;
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
|
|
17
|
+
@include CB.clearButton();
|
|
18
|
+
|
|
19
|
+
//! variants
|
|
20
|
+
&.ard-variant-pill {
|
|
21
|
+
padding-left: 0.8125em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//! value container
|
|
25
|
+
.ard-select-value-container {
|
|
26
|
+
position: relative;
|
|
27
|
+
height: 2em;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
font-size: 1em;
|
|
31
|
+
text-size-adjust: 100%;
|
|
32
|
+
flex-grow: 1;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
|
|
35
|
+
.ard-placeholder {
|
|
36
|
+
font: inherit;
|
|
37
|
+
position: absolute;
|
|
38
|
+
color: $text3;
|
|
39
|
+
width: max-content;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ard-search-input {
|
|
44
|
+
width: 100%;
|
|
45
|
+
max-width: 100%;
|
|
46
|
+
|
|
47
|
+
input {
|
|
48
|
+
border: none;
|
|
49
|
+
background: transparent;
|
|
50
|
+
outline: none;
|
|
51
|
+
font: inherit;
|
|
52
|
+
padding-left: 1px;
|
|
53
|
+
display: block;
|
|
54
|
+
width: 100%;
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.ard-select-controls {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 0.625em;
|
|
63
|
+
width: max-content;
|
|
64
|
+
}
|
|
65
|
+
//! single/multiselect
|
|
66
|
+
&.ard-singleselect {
|
|
67
|
+
.ard-value {
|
|
68
|
+
width: max-content;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&:not(.ard-searchable),
|
|
73
|
+
&.ard-singleselect {
|
|
74
|
+
.ard-search-input {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 50%;
|
|
77
|
+
left: 0;
|
|
78
|
+
transform: translateY(-50%) translateX(-1px);
|
|
79
|
+
width: max-content;
|
|
80
|
+
|
|
81
|
+
input {
|
|
82
|
+
width: max-content;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
&:not(.ard-searchable) .ard-search-input {
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
}
|
|
89
|
+
&.ard-multiselect {
|
|
90
|
+
height: max-content;
|
|
91
|
+
|
|
92
|
+
.ard-select-value-container {
|
|
93
|
+
height: max-content;
|
|
94
|
+
min-height: 1.5625em;
|
|
95
|
+
padding: 0.25em 0;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
flex-wrap: wrap;
|
|
98
|
+
gap: 0.375em;
|
|
99
|
+
justify-content: stretch;
|
|
100
|
+
|
|
101
|
+
.ard-chip-wrapper {
|
|
102
|
+
margin: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.ard-search-input {
|
|
106
|
+
flex-grow: 1;
|
|
107
|
+
width: unset !important;
|
|
108
|
+
min-width: 10ch;
|
|
109
|
+
|
|
110
|
+
input {
|
|
111
|
+
width: 10ch !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.ard-chip-wrapper {
|
|
115
|
+
margin: 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//! dropdown arrow
|
|
119
|
+
.ard-dropdown-arrow-wrapper {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
height: max-content;
|
|
123
|
+
width: max-content;
|
|
124
|
+
|
|
125
|
+
.ard-dropdown-arrow {
|
|
126
|
+
border: calc($dropdown-button-size / 2) solid transparent;
|
|
127
|
+
position: relative;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
border-bottom-color: $detail;
|
|
130
|
+
border-right-color: $detail;
|
|
131
|
+
transform: rotate(45deg) translate(-17.67771%, -17.67771%);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
&.ard-dropdown-open .ard-dropdown-arrow {
|
|
135
|
+
transform: rotate(45deg) translate(17.67771%, 17.67771%) scaleX(-1) scaleY(-1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
//! compact
|
|
139
|
+
&.ard-compact {
|
|
140
|
+
font-size: 0.85rem;
|
|
141
|
+
height: 1.5625rem;
|
|
142
|
+
padding-right: 0.625em;
|
|
143
|
+
|
|
144
|
+
.ard-dropdown-arrow-wrapper .ard-dropdown-arrow {
|
|
145
|
+
border-width: calc($dropdown-button-size / 2.4);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
//! optgroups & options, divider
|
|
151
|
+
.ard-select-dropdown-panel {
|
|
152
|
+
right: 0;
|
|
153
|
+
width: max-content;
|
|
154
|
+
max-width: max(25em, 100%);
|
|
155
|
+
min-width: 100%;
|
|
156
|
+
font-size: 1rem;
|
|
157
|
+
|
|
158
|
+
.ard-dropdown-panel-content {
|
|
159
|
+
padding: 0.375em 0;
|
|
160
|
+
max-height: 15em;
|
|
161
|
+
overflow: hidden auto;
|
|
162
|
+
}
|
|
163
|
+
.ard-optgroup {
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
}
|
|
168
|
+
.ard-optgroup-children {
|
|
169
|
+
cursor: unset;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.ard-optgroup-label {
|
|
173
|
+
font-size: 0.875em;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
letter-spacing: 0.25px;
|
|
176
|
+
padding: 0.375em 0.625em 0.0625em 0.625em;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ard-option {
|
|
180
|
+
padding: 0.375em 0.625em;
|
|
181
|
+
color: $text2;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
|
|
184
|
+
&.ard-option-highlighted {
|
|
185
|
+
background: $darken-overlay-light;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.ard-option-selected {
|
|
189
|
+
font-weight: 500;
|
|
190
|
+
background: $darken-overlay-medium;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&.ard-option-disabled {
|
|
194
|
+
pointer-events: none;
|
|
195
|
+
opacity: 50%;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
//divider
|
|
199
|
+
hr.ard-divider {
|
|
200
|
+
width: calc(100% - 1.25em);
|
|
201
|
+
margin: 0.375em 0.625em;
|
|
202
|
+
border: none;
|
|
203
|
+
border-bottom: 1px solid $darken-overlay-strong;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ard-optgroup:first-child > hr.ard-divider {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
//! custom option
|
|
210
|
+
.ard-add-custom {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: flex-end;
|
|
213
|
+
gap: 0.375rem;
|
|
214
|
+
|
|
215
|
+
.ard-add-custom-label {
|
|
216
|
+
font-size: 85%;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
//! compact
|
|
221
|
+
> .ard-compact {
|
|
222
|
+
font-size: 0.85rem;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
//! spinner
|
|
227
|
+
.ard-simple-spinner {
|
|
228
|
+
border-radius: 999px;
|
|
229
|
+
border: 0.5em solid var(--ard-spinner-color);
|
|
230
|
+
border-top-color: transparent;
|
|
231
|
+
animation: spinner-anim 1s linear infinite;
|
|
232
|
+
position: relative;
|
|
233
|
+
|
|
234
|
+
&::after {
|
|
235
|
+
content: '';
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 50%;
|
|
238
|
+
left: 50%;
|
|
239
|
+
transform: translate(-50%, -50%);
|
|
240
|
+
border-radius: 999px;
|
|
241
|
+
border: 0.35em solid var(--ard-bg);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@keyframes spinner-anim {
|
|
246
|
+
0% {
|
|
247
|
+
transform: rotate(0deg);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
100% {
|
|
251
|
+
transform: rotate(360deg);
|
|
252
|
+
}
|
|
253
|
+
}
|