cmat 0.0.3
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 +3 -0
- package/animations/defaults.d.ts +11 -0
- package/animations/drop.d.ts +2 -0
- package/animations/expand-collapse.d.ts +2 -0
- package/animations/fade.d.ts +11 -0
- package/animations/index.d.ts +5 -0
- package/animations/public-api.d.ts +1 -0
- package/animations/shake.d.ts +2 -0
- package/animations/slide.d.ts +9 -0
- package/animations/transform.d.ts +2 -0
- package/animations/zoom.d.ts +3 -0
- package/components/adapter/datetime-adapter.d.ts +45 -0
- package/components/adapter/datetime-formats.d.ts +22 -0
- package/components/adapter/dayjs-date-adapter.d.ts +63 -0
- package/components/adapter/dayjs-date-formats.d.ts +2 -0
- package/components/adapter/dayjs-datetime-adapter.d.ts +22 -0
- package/components/adapter/dayjs-datetime-formats.d.ts +2 -0
- package/components/adapter/index.d.ts +5 -0
- package/components/adapter/native-datetime-adapter.d.ts +31 -0
- package/components/adapter/native-datetime-formats.d.ts +2 -0
- package/components/adapter/public-api.d.ts +8 -0
- package/components/breadcrumb/breadcrumb-item.directive.d.ts +10 -0
- package/components/breadcrumb/breadcrumb.component.d.ts +57 -0
- package/components/breadcrumb/breadcrumb.component.scss +18 -0
- package/components/breadcrumb/breadcrumb.service.d.ts +126 -0
- package/components/breadcrumb/index.d.ts +5 -0
- package/components/breadcrumb/public-api.d.ts +3 -0
- package/components/breadcrumb/types/breadcrumb.config.d.ts +33 -0
- package/components/breadcrumb/types/breadcrumb.d.ts +23 -0
- package/components/card/card.component.d.ts +20 -0
- package/components/card/card.component.scss +63 -0
- package/components/card/card.types.d.ts +1 -0
- package/components/card/index.d.ts +5 -0
- package/components/card/public-api.d.ts +1 -0
- package/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.d.ts +14 -0
- package/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.scss +43 -0
- package/components/cascade/cascade-list/cascade-list.component.d.ts +52 -0
- package/components/cascade/cascade-list/cascade-list.component.scss +22 -0
- package/components/cascade/cascade-menu/cascade-menu.component.d.ts +10 -0
- package/components/cascade/cascade-menu/cascade-menu.component.scss +48 -0
- package/components/cascade/index.d.ts +5 -0
- package/components/cascade/options.interface.d.ts +8 -0
- package/components/cascade/public-api.d.ts +2 -0
- package/components/date-range/date-range.component.d.ts +134 -0
- package/components/date-range/date-range.component.scss +232 -0
- package/components/date-range/index.d.ts +5 -0
- package/components/date-range/public-api.d.ts +1 -0
- package/components/drawer/drawer.component.d.ts +75 -0
- package/components/drawer/drawer.component.scss +133 -0
- package/components/drawer/drawer.service.d.ts +26 -0
- package/components/drawer/drawer.types.d.ts +2 -0
- package/components/drawer/index.d.ts +5 -0
- package/components/drawer/public-api.d.ts +3 -0
- package/components/fullscreen/fullscreen.component.d.ts +18 -0
- package/components/fullscreen/fullscreen.types.d.ts +13 -0
- package/components/fullscreen/index.d.ts +5 -0
- package/components/fullscreen/public-api.d.ts +2 -0
- package/components/highlight/highlight.component.d.ts +21 -0
- package/components/highlight/highlight.component.scss +3 -0
- package/components/highlight/highlight.service.d.ts +7 -0
- package/components/highlight/index.d.ts +5 -0
- package/components/highlight/public-api.d.ts +2 -0
- package/components/masonry/index.d.ts +5 -0
- package/components/masonry/masonry.component.d.ts +13 -0
- package/components/masonry/public-api.d.ts +1 -0
- package/components/material-color-picker/base-color.d.ts +1 -0
- package/components/material-color-picker/index.d.ts +5 -0
- package/components/material-color-picker/material-color-picker.component.d.ts +35 -0
- package/components/material-color-picker/material-color-picker.component.scss +5 -0
- package/components/material-color-picker/public-api.d.ts +2 -0
- package/components/material-color-picker/selected-color.d.ts +5 -0
- package/components/material-datetimepicker/calendar-body.d.ts +43 -0
- package/components/material-datetimepicker/calendar-body.scss +58 -0
- package/components/material-datetimepicker/calendar.d.ts +146 -0
- package/components/material-datetimepicker/calendar.scss +194 -0
- package/components/material-datetimepicker/clock.d.ts +74 -0
- package/components/material-datetimepicker/clock.scss +90 -0
- package/components/material-datetimepicker/datetimepicker-animations.d.ts +4 -0
- package/components/material-datetimepicker/datetimepicker-content.scss +151 -0
- package/components/material-datetimepicker/datetimepicker-errors.d.ts +1 -0
- package/components/material-datetimepicker/datetimepicker-filtertype.d.ts +5 -0
- package/components/material-datetimepicker/datetimepicker-input.d.ts +106 -0
- package/components/material-datetimepicker/datetimepicker-intl.d.ts +51 -0
- package/components/material-datetimepicker/datetimepicker-toggle.d.ts +40 -0
- package/components/material-datetimepicker/datetimepicker-types.d.ts +13 -0
- package/components/material-datetimepicker/datetimepicker.d.ts +195 -0
- package/components/material-datetimepicker/datetimepicker.scss +145 -0
- package/components/material-datetimepicker/index.d.ts +5 -0
- package/components/material-datetimepicker/month-view.d.ts +64 -0
- package/components/material-datetimepicker/multi-year-view.d.ts +74 -0
- package/components/material-datetimepicker/public-api.d.ts +9 -0
- package/components/material-datetimepicker/time.d.ts +129 -0
- package/components/material-datetimepicker/time.scss +82 -0
- package/components/material-datetimepicker/year-view.d.ts +56 -0
- package/components/navigation/horizontal/components/basic/basic.component.d.ts +27 -0
- package/components/navigation/horizontal/components/branch/branch.component.d.ts +39 -0
- package/components/navigation/horizontal/components/divider/divider.component.d.ts +23 -0
- package/components/navigation/horizontal/components/spacer/spacer.component.d.ts +23 -0
- package/components/navigation/horizontal/horizontal.component.d.ts +43 -0
- package/components/navigation/horizontal/horizontal.component.scss +167 -0
- package/components/navigation/index.d.ts +5 -0
- package/components/navigation/navigation.service.d.ts +71 -0
- package/components/navigation/navigation.types.d.ts +34 -0
- package/components/navigation/public-api.d.ts +4 -0
- package/components/navigation/vertical/components/aside/aside.component.d.ts +63 -0
- package/components/navigation/vertical/components/basic/basic.component.d.ts +30 -0
- package/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +74 -0
- package/components/navigation/vertical/components/divider/divider.component.d.ts +26 -0
- package/components/navigation/vertical/components/group/group.component.d.ts +36 -0
- package/components/navigation/vertical/components/spacer/spacer.component.d.ts +26 -0
- package/components/navigation/vertical/styles/appearances/compact.scss +103 -0
- package/components/navigation/vertical/styles/appearances/default.scss +550 -0
- package/components/navigation/vertical/styles/appearances/dense.scss +171 -0
- package/components/navigation/vertical/styles/appearances/thin.scss +91 -0
- package/components/navigation/vertical/vertical.component.d.ts +176 -0
- package/components/navigation/vertical/vertical.component.scss +4 -0
- package/components/pagination/index.d.ts +5 -0
- package/components/pagination/pagination.component.d.ts +24 -0
- package/components/pagination/pagination.directive.d.ts +40 -0
- package/components/pagination/pagination.instance.d.ts +11 -0
- package/components/pagination/pagination.pipe.d.ts +29 -0
- package/components/pagination/pagination.service.d.ts +20 -0
- package/components/pagination/public-api.d.ts +4 -0
- package/components/password-strength/animations/index.d.ts +4 -0
- package/components/password-strength/enum.d.ts +13 -0
- package/components/password-strength/index.d.ts +5 -0
- package/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.d.ts +11 -0
- package/components/password-strength/mat-password-strength/mat-password-strength.component.d.ts +52 -0
- package/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.d.ts +16 -0
- package/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.scss +19 -0
- package/components/password-strength/mat-password-strength-validator.d.ts +6 -0
- package/components/password-strength/public-api.d.ts +3 -0
- package/components/password-strength/regexp.class.d.ts +6 -0
- package/components/popover/index.d.ts +5 -0
- package/components/popover/popover.component.d.ts +139 -0
- package/components/popover/popover.component.scss +174 -0
- package/components/popover/popover.errors.d.ts +14 -0
- package/components/popover/popover.interfaces.d.ts +44 -0
- package/components/popover/popover.type.d.ts +5 -0
- package/components/popover/public-api.d.ts +1 -0
- package/components/progress-bar/index.d.ts +5 -0
- package/components/progress-bar/progress-bar.component.d.ts +17 -0
- package/components/progress-bar/progress-bar.component.scss +7 -0
- package/components/progress-bar/public-api.d.ts +1 -0
- package/components/rating/index.d.ts +5 -0
- package/components/rating/public-api.d.ts +1 -0
- package/components/rating/rating.component.d.ts +28 -0
- package/components/rating/rating.component.scss +33 -0
- package/components/select-search/default-options.d.ts +8 -0
- package/components/select-search/index.d.ts +5 -0
- package/components/select-search/public-api.d.ts +2 -0
- package/components/select-search/select-no-entries-found.directive.d.ts +5 -0
- package/components/select-search/select-search-clear.directive.d.ts +5 -0
- package/components/select-search/select-search.component.d.ts +91 -0
- package/components/select-search/select-search.component.scss +126 -0
- package/components/select-tree/index.d.ts +5 -0
- package/components/select-tree/public-api.d.ts +1 -0
- package/components/select-tree/select-tree.component.d.ts +85 -0
- package/components/select-tree/select-tree.component.scss +54 -0
- package/components/select-tree/select-tree.flatnode.d.ts +6 -0
- package/components/select-tree/select-tree.node.d.ts +5 -0
- package/components/timeline/index.d.ts +5 -0
- package/components/timeline/public-api.d.ts +2 -0
- package/components/timeline/timeline-item/timeline-item.component.d.ts +25 -0
- package/components/timeline/timeline-item/timeline-item.component.scss +329 -0
- package/components/timeline/timeline.component.d.ts +32 -0
- package/components/timeline/timeline.component.scss +42 -0
- package/components/toast/index.d.ts +5 -0
- package/components/toast/models/global-config.model.d.ts +12 -0
- package/components/toast/models/toast.model.d.ts +6 -0
- package/components/toast/models/type.model.d.ts +12 -0
- package/components/toast/public-api.d.ts +2 -0
- package/components/toast/toast-modal.component.d.ts +18 -0
- package/components/toast/toast-modal.component.scss +119 -0
- package/components/toast/toast.component.d.ts +17 -0
- package/components/toast/toast.component.scss +62 -0
- package/components/toast/toast.service.d.ts +26 -0
- package/components/transfer-picker/filter/filter.component.d.ts +24 -0
- package/components/transfer-picker/filter/filter.component.scss +40 -0
- package/components/transfer-picker/index.d.ts +5 -0
- package/components/transfer-picker/interface.d.ts +42 -0
- package/components/transfer-picker/public-api.d.ts +7 -0
- package/components/transfer-picker/search/search.component.d.ts +14 -0
- package/components/transfer-picker/search/search.component.scss +7 -0
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +49 -0
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.scss +25 -0
- package/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.d.ts +12 -0
- package/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.scss +27 -0
- package/components/transfer-picker/transfer-picker.component.d.ts +28 -0
- package/components/transfer-picker/transfer-picker.component.scss +8 -0
- package/components/transfer-picker/transfer-picker.service.d.ts +31 -0
- package/directives/animate-on-scroll/animate-on-scroll.directive.d.ts +29 -0
- package/directives/animate-on-scroll/index.d.ts +5 -0
- package/directives/animate-on-scroll/public-api.d.ts +1 -0
- package/directives/animate-on-scroll/scroll.service.d.ts +15 -0
- package/directives/autofocus/autofocus.directive.d.ts +10 -0
- package/directives/autofocus/index.d.ts +5 -0
- package/directives/autofocus/public-api.d.ts +1 -0
- package/directives/debounce/abstract-debounce.directive.d.ts +15 -0
- package/directives/debounce/debounce-click.directive.d.ts +8 -0
- package/directives/debounce/debounce-keyup.directive.d.ts +8 -0
- package/directives/debounce/index.d.ts +5 -0
- package/directives/debounce/public-api.d.ts +2 -0
- package/directives/digit-only/digit-only.directive.d.ts +34 -0
- package/directives/digit-only/index.d.ts +5 -0
- package/directives/digit-only/mask.directive.d.ts +14 -0
- package/directives/digit-only/public-api.d.ts +2 -0
- package/directives/equal-validator/equal-validator.directive.d.ts +14 -0
- package/directives/equal-validator/index.d.ts +5 -0
- package/directives/equal-validator/public-api.d.ts +1 -0
- package/esm2022/animations/cmat-animations.mjs +5 -0
- package/esm2022/animations/defaults.mjs +12 -0
- package/esm2022/animations/drop.mjs +26 -0
- package/esm2022/animations/expand-collapse.mjs +17 -0
- package/esm2022/animations/fade.mjs +170 -0
- package/esm2022/animations/public-api.mjs +19 -0
- package/esm2022/animations/shake.mjs +59 -0
- package/esm2022/animations/slide.mjs +124 -0
- package/esm2022/animations/transform.mjs +16 -0
- package/esm2022/animations/zoom.mjs +38 -0
- package/esm2022/cmat.mjs +5 -0
- package/esm2022/components/adapter/cmat-components-adapter.mjs +5 -0
- package/esm2022/components/adapter/datetime-adapter.mjs +127 -0
- package/esm2022/components/adapter/datetime-formats.mjs +3 -0
- package/esm2022/components/adapter/dayjs-date-adapter.mjs +198 -0
- package/esm2022/components/adapter/dayjs-date-formats.mjs +12 -0
- package/esm2022/components/adapter/dayjs-datetime-adapter.mjs +100 -0
- package/esm2022/components/adapter/dayjs-datetime-formats.mjs +21 -0
- package/esm2022/components/adapter/native-datetime-adapter.mjs +130 -0
- package/esm2022/components/adapter/native-datetime-formats.mjs +15 -0
- package/esm2022/components/adapter/public-api.mjs +9 -0
- package/esm2022/components/breadcrumb/breadcrumb-item.directive.mjs +19 -0
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +95 -0
- package/esm2022/components/breadcrumb/breadcrumb.service.mjs +336 -0
- package/esm2022/components/breadcrumb/cmat-components-breadcrumb.mjs +5 -0
- package/esm2022/components/breadcrumb/public-api.mjs +4 -0
- package/esm2022/components/breadcrumb/types/breadcrumb.config.mjs +2 -0
- package/esm2022/components/breadcrumb/types/breadcrumb.mjs +2 -0
- package/esm2022/components/card/card.component.mjs +58 -0
- package/esm2022/components/card/card.types.mjs +2 -0
- package/esm2022/components/card/cmat-components-card.mjs +5 -0
- package/esm2022/components/card/public-api.mjs +2 -0
- package/esm2022/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.mjs +53 -0
- package/esm2022/components/cascade/cascade-list/cascade-list.component.mjs +263 -0
- package/esm2022/components/cascade/cascade-menu/cascade-menu.component.mjs +29 -0
- package/esm2022/components/cascade/cmat-components-cascade.mjs +5 -0
- package/esm2022/components/cascade/options.interface.mjs +2 -0
- package/esm2022/components/cascade/public-api.mjs +3 -0
- package/esm2022/components/date-range/cmat-components-date-range.mjs +5 -0
- package/esm2022/components/date-range/date-range.component.mjs +540 -0
- package/esm2022/components/date-range/public-api.mjs +2 -0
- package/esm2022/components/drawer/cmat-components-drawer.mjs +5 -0
- package/esm2022/components/drawer/drawer.component.mjs +301 -0
- package/esm2022/components/drawer/drawer.service.mjs +41 -0
- package/esm2022/components/drawer/drawer.types.mjs +2 -0
- package/esm2022/components/drawer/public-api.mjs +4 -0
- package/esm2022/components/fullscreen/cmat-components-fullscreen.mjs +5 -0
- package/esm2022/components/fullscreen/fullscreen.component.mjs +101 -0
- package/esm2022/components/fullscreen/fullscreen.types.mjs +2 -0
- package/esm2022/components/fullscreen/public-api.mjs +3 -0
- package/esm2022/components/highlight/cmat-components-highlight.mjs +5 -0
- package/esm2022/components/highlight/highlight.component.mjs +80 -0
- package/esm2022/components/highlight/highlight.service.mjs +47 -0
- package/esm2022/components/highlight/public-api.mjs +3 -0
- package/esm2022/components/masonry/cmat-components-masonry.mjs +5 -0
- package/esm2022/components/masonry/masonry.component.mjs +54 -0
- package/esm2022/components/masonry/public-api.mjs +2 -0
- package/esm2022/components/material-color-picker/base-color.mjs +13 -0
- package/esm2022/components/material-color-picker/cmat-components-material-color-picker.mjs +5 -0
- package/esm2022/components/material-color-picker/material-color-picker.component.mjs +138 -0
- package/esm2022/components/material-color-picker/public-api.mjs +3 -0
- package/esm2022/components/material-color-picker/selected-color.mjs +3 -0
- package/esm2022/components/material-datetimepicker/calendar-body.mjs +80 -0
- package/esm2022/components/material-datetimepicker/calendar.mjs +678 -0
- package/esm2022/components/material-datetimepicker/clock.mjs +293 -0
- package/esm2022/components/material-datetimepicker/cmat-components-material-datetimepicker.mjs +5 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-animations.mjs +34 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-errors.mjs +6 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-filtertype.mjs +8 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-input.mjs +340 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-intl.mjs +63 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-toggle.mjs +88 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-types.mjs +2 -0
- package/esm2022/components/material-datetimepicker/datetimepicker.mjs +534 -0
- package/esm2022/components/material-datetimepicker/month-view.mjs +146 -0
- package/esm2022/components/material-datetimepicker/multi-year-view.mjs +198 -0
- package/esm2022/components/material-datetimepicker/public-api.mjs +10 -0
- package/esm2022/components/material-datetimepicker/time.mjs +456 -0
- package/esm2022/components/material-datetimepicker/year-view.mjs +125 -0
- package/esm2022/components/navigation/cmat-components-navigation.mjs +5 -0
- package/esm2022/components/navigation/horizontal/components/basic/basic.component.mjs +70 -0
- package/esm2022/components/navigation/horizontal/components/branch/branch.component.mjs +83 -0
- package/esm2022/components/navigation/horizontal/components/divider/divider.component.mjs +47 -0
- package/esm2022/components/navigation/horizontal/components/spacer/spacer.component.mjs +47 -0
- package/esm2022/components/navigation/horizontal/horizontal.component.mjs +88 -0
- package/esm2022/components/navigation/navigation.service.mjs +140 -0
- package/esm2022/components/navigation/navigation.types.mjs +3 -0
- package/esm2022/components/navigation/public-api.mjs +5 -0
- package/esm2022/components/navigation/vertical/components/aside/aside.component.mjs +162 -0
- package/esm2022/components/navigation/vertical/components/basic/basic.component.mjs +76 -0
- package/esm2022/components/navigation/vertical/components/collapsable/collapsable.component.mjs +279 -0
- package/esm2022/components/navigation/vertical/components/divider/divider.component.mjs +56 -0
- package/esm2022/components/navigation/vertical/components/group/group.component.mjs +79 -0
- package/esm2022/components/navigation/vertical/components/spacer/spacer.component.mjs +56 -0
- package/esm2022/components/navigation/vertical/vertical.component.mjs +586 -0
- package/esm2022/components/pagination/cmat-components-pagination.mjs +5 -0
- package/esm2022/components/pagination/pagination.component.mjs +71 -0
- package/esm2022/components/pagination/pagination.directive.mjs +197 -0
- package/esm2022/components/pagination/pagination.instance.mjs +2 -0
- package/esm2022/components/pagination/pagination.pipe.mjs +100 -0
- package/esm2022/components/pagination/pagination.service.mjs +90 -0
- package/esm2022/components/pagination/public-api.mjs +5 -0
- package/esm2022/components/password-strength/animations/index.mjs +48 -0
- package/esm2022/components/password-strength/cmat-components-password-strength.mjs +5 -0
- package/esm2022/components/password-strength/enum.mjs +17 -0
- package/esm2022/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.mjs +27 -0
- package/esm2022/components/password-strength/mat-password-strength/mat-password-strength.component.mjs +206 -0
- package/esm2022/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.mjs +151 -0
- package/esm2022/components/password-strength/mat-password-strength-validator.mjs +36 -0
- package/esm2022/components/password-strength/public-api.mjs +4 -0
- package/esm2022/components/password-strength/regexp.class.mjs +8 -0
- package/esm2022/components/popover/cmat-components-popover.mjs +5 -0
- package/esm2022/components/popover/popover.component.mjs +350 -0
- package/esm2022/components/popover/popover.errors.mjs +27 -0
- package/esm2022/components/popover/popover.interfaces.mjs +2 -0
- package/esm2022/components/popover/popover.type.mjs +2 -0
- package/esm2022/components/popover/public-api.mjs +2 -0
- package/esm2022/components/progress-bar/cmat-components-progress-bar.mjs +5 -0
- package/esm2022/components/progress-bar/progress-bar.component.mjs +55 -0
- package/esm2022/components/progress-bar/public-api.mjs +2 -0
- package/esm2022/components/rating/cmat-components-rating.mjs +5 -0
- package/esm2022/components/rating/public-api.mjs +2 -0
- package/esm2022/components/rating/rating.component.mjs +91 -0
- package/esm2022/components/select-search/cmat-components-select-search.mjs +5 -0
- package/esm2022/components/select-search/default-options.mjs +16 -0
- package/esm2022/components/select-search/public-api.mjs +3 -0
- package/esm2022/components/select-search/select-no-entries-found.directive.mjs +14 -0
- package/esm2022/components/select-search/select-search-clear.directive.mjs +14 -0
- package/esm2022/components/select-search/select-search.component.mjs +488 -0
- package/esm2022/components/select-tree/cmat-components-select-tree.mjs +5 -0
- package/esm2022/components/select-tree/public-api.mjs +2 -0
- package/esm2022/components/select-tree/select-tree.component.mjs +458 -0
- package/esm2022/components/select-tree/select-tree.flatnode.mjs +3 -0
- package/esm2022/components/select-tree/select-tree.node.mjs +3 -0
- package/esm2022/components/timeline/cmat-components-timeline.mjs +5 -0
- package/esm2022/components/timeline/public-api.mjs +3 -0
- package/esm2022/components/timeline/timeline-item/timeline-item.component.mjs +68 -0
- package/esm2022/components/timeline/timeline.component.mjs +114 -0
- package/esm2022/components/toast/cmat-components-toast.mjs +5 -0
- package/esm2022/components/toast/models/global-config.model.mjs +2 -0
- package/esm2022/components/toast/models/toast.model.mjs +2 -0
- package/esm2022/components/toast/models/type.model.mjs +2 -0
- package/esm2022/components/toast/public-api.mjs +3 -0
- package/esm2022/components/toast/toast-modal.component.mjs +53 -0
- package/esm2022/components/toast/toast.component.mjs +30 -0
- package/esm2022/components/toast/toast.service.mjs +122 -0
- package/esm2022/components/transfer-picker/cmat-components-transfer-picker.mjs +5 -0
- package/esm2022/components/transfer-picker/filter/filter.component.mjs +85 -0
- package/esm2022/components/transfer-picker/interface.mjs +17 -0
- package/esm2022/components/transfer-picker/public-api.mjs +8 -0
- package/esm2022/components/transfer-picker/search/search.component.mjs +34 -0
- package/esm2022/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.mjs +178 -0
- package/esm2022/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.mjs +34 -0
- package/esm2022/components/transfer-picker/transfer-picker.component.mjs +82 -0
- package/esm2022/components/transfer-picker/transfer-picker.service.mjs +134 -0
- package/esm2022/directives/animate-on-scroll/animate-on-scroll.directive.mjs +126 -0
- package/esm2022/directives/animate-on-scroll/cmat-directives-animate-on-scroll.mjs +5 -0
- package/esm2022/directives/animate-on-scroll/public-api.mjs +2 -0
- package/esm2022/directives/animate-on-scroll/scroll.service.mjs +38 -0
- package/esm2022/directives/autofocus/autofocus.directive.mjs +20 -0
- package/esm2022/directives/autofocus/cmat-directives-autofocus.mjs +5 -0
- package/esm2022/directives/autofocus/public-api.mjs +2 -0
- package/esm2022/directives/debounce/abstract-debounce.directive.mjs +34 -0
- package/esm2022/directives/debounce/cmat-directives-debounce.mjs +5 -0
- package/esm2022/directives/debounce/debounce-click.directive.mjs +25 -0
- package/esm2022/directives/debounce/debounce-keyup.directive.mjs +25 -0
- package/esm2022/directives/debounce/public-api.mjs +3 -0
- package/esm2022/directives/digit-only/cmat-directives-digit-only.mjs +5 -0
- package/esm2022/directives/digit-only/digit-only.directive.mjs +282 -0
- package/esm2022/directives/digit-only/mask.directive.mjs +69 -0
- package/esm2022/directives/digit-only/public-api.mjs +3 -0
- package/esm2022/directives/equal-validator/cmat-directives-equal-validator.mjs +5 -0
- package/esm2022/directives/equal-validator/equal-validator.directive.mjs +54 -0
- package/esm2022/directives/equal-validator/public-api.mjs +2 -0
- package/esm2022/lib/mock-api/cmat-lib-mock-api.mjs +5 -0
- package/esm2022/lib/mock-api/mock-api.constants.mjs +3 -0
- package/esm2022/lib/mock-api/mock-api.interceptor.mjs +73 -0
- package/esm2022/lib/mock-api/mock-api.request-handler.mjs +48 -0
- package/esm2022/lib/mock-api/mock-api.service.mjs +93 -0
- package/esm2022/lib/mock-api/mock-api.types.mjs +2 -0
- package/esm2022/lib/mock-api/mock-api.utils.mjs +17 -0
- package/esm2022/lib/mock-api/public-api.mjs +6 -0
- package/esm2022/pipes/bytes/bytes.pipe.mjs +25 -0
- package/esm2022/pipes/bytes/cmat-pipes-bytes.mjs +5 -0
- package/esm2022/pipes/bytes/public-api.mjs +2 -0
- package/esm2022/pipes/date-format/cmat-pipes-date-format.mjs +5 -0
- package/esm2022/pipes/date-format/date-format.pipe.mjs +18 -0
- package/esm2022/pipes/date-format/public-api.mjs +2 -0
- package/esm2022/pipes/find-by-key/cmat-pipes-find-by-key.mjs +5 -0
- package/esm2022/pipes/find-by-key/find-by-key.pipe.mjs +23 -0
- package/esm2022/pipes/find-by-key/public-api.mjs +2 -0
- package/esm2022/pipes/group-by/cmat-pipes-group-by.mjs +5 -0
- package/esm2022/pipes/group-by/group-by.pipe.mjs +29 -0
- package/esm2022/pipes/group-by/public-api.mjs +2 -0
- package/esm2022/pipes/keys/cmat-pipes-keys.mjs +5 -0
- package/esm2022/pipes/keys/keys.pipe.mjs +26 -0
- package/esm2022/pipes/keys/public-api.mjs +2 -0
- package/esm2022/pipes/secure/cmat-pipes-secure.mjs +5 -0
- package/esm2022/pipes/secure/public-api.mjs +2 -0
- package/esm2022/pipes/secure/secure-pipe.mjs +43 -0
- package/esm2022/pipes/uppercase/cmat-pipes-uppercase.mjs +5 -0
- package/esm2022/pipes/uppercase/public-api.mjs +2 -0
- package/esm2022/pipes/uppercase/uppercase.pipe.mjs +17 -0
- package/esm2022/public-api.mjs +2 -0
- package/esm2022/services/alert/alert.dialog.mjs +12 -0
- package/esm2022/services/alert/alert.message.mjs +9 -0
- package/esm2022/services/alert/alert.service.mjs +165 -0
- package/esm2022/services/alert/cmat-services-alert.mjs +5 -0
- package/esm2022/services/alert/enum.mjs +15 -0
- package/esm2022/services/alert/public-api.mjs +5 -0
- package/esm2022/services/config/cmat-services-config.mjs +5 -0
- package/esm2022/services/config/config.constants.mjs +3 -0
- package/esm2022/services/config/config.service.mjs +35 -0
- package/esm2022/services/config/public-api.mjs +4 -0
- package/esm2022/services/config/urlStateConfig.service.mjs +30 -0
- package/esm2022/services/confirmation/cmat-services-confirmation.mjs +5 -0
- package/esm2022/services/confirmation/confirmation.service.mjs +51 -0
- package/esm2022/services/confirmation/confirmation.types.mjs +2 -0
- package/esm2022/services/confirmation/dialog/dialog.component.mjs +25 -0
- package/esm2022/services/confirmation/public-api.mjs +3 -0
- package/esm2022/services/data/cmat-services-data.mjs +5 -0
- package/esm2022/services/data/data.service.mjs +169 -0
- package/esm2022/services/data/public-api.mjs +2 -0
- package/esm2022/services/loading/cmat-services-loading.mjs +5 -0
- package/esm2022/services/loading/loading.interceptor.mjs +29 -0
- package/esm2022/services/loading/loading.service.mjs +72 -0
- package/esm2022/services/loading/public-api.mjs +3 -0
- package/esm2022/services/local-storage/cmat-services-local-storage.mjs +5 -0
- package/esm2022/services/local-storage/local-storage.service.mjs +22 -0
- package/esm2022/services/local-storage/public-api.mjs +2 -0
- package/esm2022/services/media-watcher/cmat-services-media-watcher.mjs +5 -0
- package/esm2022/services/media-watcher/media-watcher.service.mjs +55 -0
- package/esm2022/services/media-watcher/public-api.mjs +2 -0
- package/esm2022/services/platform/cmat-services-platform.mjs +5 -0
- package/esm2022/services/platform/platform.service.mjs +46 -0
- package/esm2022/services/platform/public-api.mjs +2 -0
- package/esm2022/services/splash-screen/cmat-services-splash-screen.mjs +5 -0
- package/esm2022/services/splash-screen/public-api.mjs +2 -0
- package/esm2022/services/splash-screen/splash-screen.service.mjs +42 -0
- package/esm2022/services/title/cmat-services-title.mjs +5 -0
- package/esm2022/services/title/public-api.mjs +2 -0
- package/esm2022/services/title/title.service.mjs +46 -0
- package/esm2022/services/translation/cmat-services-translation.mjs +5 -0
- package/esm2022/services/translation/public-api.mjs +2 -0
- package/esm2022/services/translation/translation.service.mjs +62 -0
- package/esm2022/services/utils/cmat-services-utils.mjs +5 -0
- package/esm2022/services/utils/public-api.mjs +2 -0
- package/esm2022/services/utils/utils.service.mjs +391 -0
- package/esm2022/validators/cmat-validators.mjs +5 -0
- package/esm2022/validators/public-api.mjs +2 -0
- package/esm2022/validators/validators.mjs +33 -0
- package/esm2022/version/cmat-version.mjs +5 -0
- package/esm2022/version/public-api.mjs +2 -0
- package/esm2022/version/version.mjs +11 -0
- package/fesm2022/cmat-animations.mjs +466 -0
- package/fesm2022/cmat-animations.mjs.map +1 -0
- package/fesm2022/cmat-components-adapter.mjs +600 -0
- package/fesm2022/cmat-components-adapter.mjs.map +1 -0
- package/fesm2022/cmat-components-breadcrumb.mjs +449 -0
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/cmat-components-card.mjs +65 -0
- package/fesm2022/cmat-components-card.mjs.map +1 -0
- package/fesm2022/cmat-components-cascade.mjs +334 -0
- package/fesm2022/cmat-components-cascade.mjs.map +1 -0
- package/fesm2022/cmat-components-date-range.mjs +547 -0
- package/fesm2022/cmat-components-date-range.mjs.map +1 -0
- package/fesm2022/cmat-components-drawer.mjs +346 -0
- package/fesm2022/cmat-components-drawer.mjs.map +1 -0
- package/fesm2022/cmat-components-fullscreen.mjs +108 -0
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -0
- package/fesm2022/cmat-components-highlight.mjs +131 -0
- package/fesm2022/cmat-components-highlight.mjs.map +1 -0
- package/fesm2022/cmat-components-masonry.mjs +61 -0
- package/fesm2022/cmat-components-masonry.mjs.map +1 -0
- package/fesm2022/cmat-components-material-color-picker.mjs +160 -0
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -0
- package/fesm2022/cmat-components-material-datetimepicker.mjs +2976 -0
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -0
- package/fesm2022/cmat-components-navigation.mjs +1656 -0
- package/fesm2022/cmat-components-navigation.mjs.map +1 -0
- package/fesm2022/cmat-components-pagination.mjs +455 -0
- package/fesm2022/cmat-components-pagination.mjs.map +1 -0
- package/fesm2022/cmat-components-password-strength.mjs +489 -0
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -0
- package/fesm2022/cmat-components-popover.mjs +383 -0
- package/fesm2022/cmat-components-popover.mjs.map +1 -0
- package/fesm2022/cmat-components-progress-bar.mjs +62 -0
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -0
- package/fesm2022/cmat-components-rating.mjs +98 -0
- package/fesm2022/cmat-components-rating.mjs.map +1 -0
- package/fesm2022/cmat-components-select-search.mjs +531 -0
- package/fesm2022/cmat-components-select-search.mjs.map +1 -0
- package/fesm2022/cmat-components-select-tree.mjs +467 -0
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -0
- package/fesm2022/cmat-components-timeline.mjs +186 -0
- package/fesm2022/cmat-components-timeline.mjs.map +1 -0
- package/fesm2022/cmat-components-toast.mjs +205 -0
- package/fesm2022/cmat-components-toast.mjs.map +1 -0
- package/fesm2022/cmat-components-transfer-picker.mjs +536 -0
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -0
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +166 -0
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -0
- package/fesm2022/cmat-directives-autofocus.mjs +27 -0
- package/fesm2022/cmat-directives-autofocus.mjs.map +1 -0
- package/fesm2022/cmat-directives-debounce.mjs +85 -0
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -0
- package/fesm2022/cmat-directives-digit-only.mjs +356 -0
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -0
- package/fesm2022/cmat-directives-equal-validator.mjs +61 -0
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -0
- package/fesm2022/cmat-lib-mock-api.mjs +232 -0
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -0
- package/fesm2022/cmat-pipes-bytes.mjs +32 -0
- package/fesm2022/cmat-pipes-bytes.mjs.map +1 -0
- package/fesm2022/cmat-pipes-date-format.mjs +25 -0
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -0
- package/fesm2022/cmat-pipes-find-by-key.mjs +30 -0
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -0
- package/fesm2022/cmat-pipes-group-by.mjs +36 -0
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -0
- package/fesm2022/cmat-pipes-keys.mjs +33 -0
- package/fesm2022/cmat-pipes-keys.mjs.map +1 -0
- package/fesm2022/cmat-pipes-secure.mjs +50 -0
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -0
- package/fesm2022/cmat-pipes-uppercase.mjs +24 -0
- package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -0
- package/fesm2022/cmat-services-alert.mjs +207 -0
- package/fesm2022/cmat-services-alert.mjs.map +1 -0
- package/fesm2022/cmat-services-config.mjs +69 -0
- package/fesm2022/cmat-services-config.mjs.map +1 -0
- package/fesm2022/cmat-services-confirmation.mjs +79 -0
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -0
- package/fesm2022/cmat-services-data.mjs +176 -0
- package/fesm2022/cmat-services-data.mjs.map +1 -0
- package/fesm2022/cmat-services-loading.mjs +104 -0
- package/fesm2022/cmat-services-loading.mjs.map +1 -0
- package/fesm2022/cmat-services-local-storage.mjs +29 -0
- package/fesm2022/cmat-services-local-storage.mjs.map +1 -0
- package/fesm2022/cmat-services-media-watcher.mjs +62 -0
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -0
- package/fesm2022/cmat-services-platform.mjs +53 -0
- package/fesm2022/cmat-services-platform.mjs.map +1 -0
- package/fesm2022/cmat-services-splash-screen.mjs +49 -0
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -0
- package/fesm2022/cmat-services-title.mjs +53 -0
- package/fesm2022/cmat-services-title.mjs.map +1 -0
- package/fesm2022/cmat-services-translation.mjs +69 -0
- package/fesm2022/cmat-services-translation.mjs.map +1 -0
- package/fesm2022/cmat-services-utils.mjs +398 -0
- package/fesm2022/cmat-services-utils.mjs.map +1 -0
- package/fesm2022/cmat-validators.mjs +39 -0
- package/fesm2022/cmat-validators.mjs.map +1 -0
- package/fesm2022/cmat-version.mjs +17 -0
- package/fesm2022/cmat-version.mjs.map +1 -0
- package/fesm2022/cmat.mjs +4 -0
- package/fesm2022/cmat.mjs.map +1 -0
- package/icons/CSV.svg +3 -0
- package/icons/EXCEL.svg +3 -0
- package/icons/FILE.svg +3 -0
- package/icons/GIF.svg +3 -0
- package/icons/JPG.svg +3 -0
- package/icons/PDF.svg +3 -0
- package/icons/PNG.svg +3 -0
- package/icons/PPT.svg +3 -0
- package/icons/TEXT.svg +3 -0
- package/icons/VIDEO.svg +3 -0
- package/icons/WORD.svg +3 -0
- package/icons/ZIP.svg +3 -0
- package/icons/arrow-cursor.svg +3 -0
- package/icons/material-icons/heroicons-outline.svg +893 -0
- package/icons/material-icons/heroicons-solid.svg +958 -0
- package/icons/material-icons/material-outline.svg +3586 -0
- package/icons/material-icons/material-solid.svg +3586 -0
- package/index.d.ts +5 -0
- package/lib/mock-api/index.d.ts +5 -0
- package/lib/mock-api/mock-api.constants.d.ts +2 -0
- package/lib/mock-api/mock-api.interceptor.d.ts +12 -0
- package/lib/mock-api/mock-api.request-handler.d.ts +18 -0
- package/lib/mock-api/mock-api.service.d.ts +22 -0
- package/lib/mock-api/mock-api.types.d.ts +9 -0
- package/lib/mock-api/mock-api.utils.d.ts +3 -0
- package/lib/mock-api/public-api.d.ts +5 -0
- package/package.json +344 -0
- package/pipes/bytes/bytes.pipe.d.ts +7 -0
- package/pipes/bytes/index.d.ts +5 -0
- package/pipes/bytes/public-api.d.ts +1 -0
- package/pipes/date-format/date-format.pipe.d.ts +7 -0
- package/pipes/date-format/index.d.ts +5 -0
- package/pipes/date-format/public-api.d.ts +1 -0
- package/pipes/find-by-key/find-by-key.pipe.d.ts +7 -0
- package/pipes/find-by-key/index.d.ts +5 -0
- package/pipes/find-by-key/public-api.d.ts +1 -0
- package/pipes/group-by/group-by.pipe.d.ts +7 -0
- package/pipes/group-by/index.d.ts +5 -0
- package/pipes/group-by/public-api.d.ts +1 -0
- package/pipes/keys/index.d.ts +5 -0
- package/pipes/keys/keys.pipe.d.ts +7 -0
- package/pipes/keys/public-api.d.ts +1 -0
- package/pipes/secure/index.d.ts +5 -0
- package/pipes/secure/public-api.d.ts +1 -0
- package/pipes/secure/secure-pipe.d.ts +18 -0
- package/pipes/uppercase/index.d.ts +5 -0
- package/pipes/uppercase/public-api.d.ts +1 -0
- package/pipes/uppercase/uppercase.pipe.d.ts +7 -0
- package/public-api.d.ts +1 -0
- package/services/alert/alert.dialog.d.ts +11 -0
- package/services/alert/alert.message.d.ts +8 -0
- package/services/alert/alert.service.d.ts +37 -0
- package/services/alert/enum.d.ts +12 -0
- package/services/alert/index.d.ts +5 -0
- package/services/alert/public-api.d.ts +4 -0
- package/services/config/config.constants.d.ts +6 -0
- package/services/config/config.service.d.ts +11 -0
- package/services/config/index.d.ts +5 -0
- package/services/config/public-api.d.ts +3 -0
- package/services/config/urlStateConfig.service.d.ts +10 -0
- package/services/confirmation/confirmation.service.d.ts +12 -0
- package/services/confirmation/confirmation.types.d.ts +21 -0
- package/services/confirmation/dialog/dialog.component.d.ts +10 -0
- package/services/confirmation/index.d.ts +5 -0
- package/services/confirmation/public-api.d.ts +2 -0
- package/services/data/data.service.d.ts +20 -0
- package/services/data/index.d.ts +5 -0
- package/services/data/public-api.d.ts +1 -0
- package/services/loading/index.d.ts +5 -0
- package/services/loading/loading.interceptor.d.ts +12 -0
- package/services/loading/loading.service.d.ts +24 -0
- package/services/loading/public-api.d.ts +2 -0
- package/services/local-storage/index.d.ts +5 -0
- package/services/local-storage/local-storage.service.d.ts +8 -0
- package/services/local-storage/public-api.d.ts +1 -0
- package/services/media-watcher/index.d.ts +5 -0
- package/services/media-watcher/media-watcher.service.d.ts +20 -0
- package/services/media-watcher/public-api.d.ts +1 -0
- package/services/platform/index.d.ts +5 -0
- package/services/platform/platform.service.d.ts +9 -0
- package/services/platform/public-api.d.ts +1 -0
- package/services/splash-screen/index.d.ts +5 -0
- package/services/splash-screen/public-api.d.ts +1 -0
- package/services/splash-screen/splash-screen.service.d.ts +14 -0
- package/services/title/index.d.ts +5 -0
- package/services/title/public-api.d.ts +1 -0
- package/services/title/title.service.d.ts +13 -0
- package/services/translation/index.d.ts +5 -0
- package/services/translation/public-api.d.ts +1 -0
- package/services/translation/translation.service.d.ts +20 -0
- package/services/utils/index.d.ts +5 -0
- package/services/utils/public-api.d.ts +1 -0
- package/services/utils/utils.service.d.ts +57 -0
- package/styles/components/input.scss +42 -0
- package/styles/main.scss +9 -0
- package/styles/overrides/angular-material.scss +1403 -0
- package/styles/overrides/fullcalendar.scss +550 -0
- package/styles/overrides/highlightjs.scss +81 -0
- package/styles/styles.scss +3 -0
- package/styles/tailwind.scss +86 -0
- package/styles/themes.scss +164 -0
- package/styles/user-themes.scss +1 -0
- package/tailwind/plugins/icon-size.js +49 -0
- package/tailwind/plugins/theming.js +256 -0
- package/tailwind/plugins/utilities.js +66 -0
- package/tailwind/utils/generate-contrasts.js +29 -0
- package/tailwind/utils/generate-palette.js +100 -0
- package/tailwind/utils/json-to-sass-map.js +67 -0
- package/validators/index.d.ts +5 -0
- package/validators/public-api.d.ts +1 -0
- package/validators/validators.d.ts +5 -0
- package/version/index.d.ts +5 -0
- package/version/public-api.d.ts +1 -0
- package/version/version.d.ts +9 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
|
|
5
|
+
* {
|
|
6
|
+
text-rendering: optimizeLegibility;
|
|
7
|
+
-o-text-rendering: optimizeLegibility;
|
|
8
|
+
-ms-text-rendering: optimizeLegibility;
|
|
9
|
+
-moz-text-rendering: optimizeLegibility;
|
|
10
|
+
-webkit-text-rendering: optimizeLegibility;
|
|
11
|
+
-webkit-tap-highlight-color: transparent;
|
|
12
|
+
|
|
13
|
+
&:focus {
|
|
14
|
+
outline: none !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html,
|
|
19
|
+
body {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
flex: 1 1 auto;
|
|
23
|
+
width: 100%;
|
|
24
|
+
min-height: 100%;
|
|
25
|
+
-webkit-font-smoothing: antialiased;
|
|
26
|
+
-moz-osx-font-smoothing: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
html {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body {
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body {
|
|
38
|
+
font-feature-settings: 'salt';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
hr {
|
|
42
|
+
margin: 32px 0;
|
|
43
|
+
border-bottom-width: 1px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input[disabled] {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
-webkit-text-fill-color: currentColor;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
body, .dark, .light {
|
|
53
|
+
@apply text-default bg-default #{!important};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
*, *::before, *::after {
|
|
58
|
+
--tw-border-opacity: 1 !important;
|
|
59
|
+
border-color: rgba(var(--cmat-border-rgb), var(--tw-border-opacity));
|
|
60
|
+
|
|
61
|
+
.dark & {
|
|
62
|
+
--tw-border-opacity: 0.12 !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[disabled] * {
|
|
67
|
+
@apply text-disabled #{!important};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media print {
|
|
71
|
+
|
|
72
|
+
html {
|
|
73
|
+
font-size: 12px !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
body, .dark, .light {
|
|
77
|
+
background: none !important;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.scrollbar-custom {
|
|
82
|
+
@apply transition-colors scrollbar-thin scrollbar-thumb-primary-300 scrollbar-track-gray-300 scrollbar-thumb-rounded-md hover:scrollbar-thumb-primary-600 dark:scrollbar-track-gray-600;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@tailwind components;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use "user-themes" as userThemes;
|
|
4
|
+
|
|
5
|
+
/* Set the base colors for light themes */
|
|
6
|
+
$light-base: (
|
|
7
|
+
foreground: (
|
|
8
|
+
base: #000000,
|
|
9
|
+
divider: #E2E8F0, /* slate.200 */
|
|
10
|
+
dividers: #E2E8F0, /* slate.200 */
|
|
11
|
+
disabled: #94A3B8, /* slate.400 */
|
|
12
|
+
disabled-button: #94A3B8, /* slate.400 */
|
|
13
|
+
disabled-text: #94A3B8, /* slate.400 */
|
|
14
|
+
elevation: #000000,
|
|
15
|
+
hint-text: #94A3B8, /* slate.400 */
|
|
16
|
+
secondary-text: #64748B, /* slate.500 */
|
|
17
|
+
icon: #64748B, /* slate.500 */
|
|
18
|
+
icons: #64748B, /* slate.500 */
|
|
19
|
+
mat-icon: #64748B, /* slate.500 */
|
|
20
|
+
text: #1E293B, /* slate.800 */
|
|
21
|
+
slider-min: #1E293B, /* slate.800 */
|
|
22
|
+
slider-off: #CBD5E1, /* slate.300 */
|
|
23
|
+
slider-off-active: #94A3B8 /* slate.400 */
|
|
24
|
+
),
|
|
25
|
+
background: (
|
|
26
|
+
status-bar: #CBD5E1, /* slate.300 */
|
|
27
|
+
app-bar: #FFFFFF,
|
|
28
|
+
background: #F1F5F9, /* slate.100 */
|
|
29
|
+
hover: rgba(148, 163, 184, 0.12), /* slate.400 + opacity */
|
|
30
|
+
card: #FFFFFF,
|
|
31
|
+
dialog: #FFFFFF,
|
|
32
|
+
disabled-button: rgba(148, 163, 184, 0.38), /* slate.400 + opacity */
|
|
33
|
+
raised-button: #FFFFFF,
|
|
34
|
+
focused-button: #64748B, /* slate.500 */
|
|
35
|
+
selected-button: #E2E8F0, /* slate.200 */
|
|
36
|
+
selected-disabled-button: #E2E8F0, /* slate.200 */
|
|
37
|
+
disabled-button-toggle: #CBD5E1, /* slate.300 */
|
|
38
|
+
unselected-chip: #E2E8F0, /* slate.200 */
|
|
39
|
+
disabled-list-option: #CBD5E1, /* slate.300 */
|
|
40
|
+
tooltip: #1E293B /* slate.800 */
|
|
41
|
+
)
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
/* Set the base colors for dark themes */
|
|
45
|
+
$dark-base: (
|
|
46
|
+
foreground: (
|
|
47
|
+
base: #FFFFFF,
|
|
48
|
+
divider: rgba(241, 245, 249, 0.12), /* slate.100 + opacity */
|
|
49
|
+
dividers: rgba(241, 245, 249, 0.12), /* slate.100 + opacity */
|
|
50
|
+
disabled: #475569, /* slate.600 */
|
|
51
|
+
disabled-button: #1E293B, /* slate.800 */
|
|
52
|
+
disabled-text: #475569, /* slate.600 */
|
|
53
|
+
elevation: #000000,
|
|
54
|
+
hint-text: #64748B, /* slate.500 */
|
|
55
|
+
secondary-text: #94A3B8, /* slate.400 */
|
|
56
|
+
icon: #F1F5F9, /* slate.100 */
|
|
57
|
+
icons: #F1F5F9, /* slate.100 */
|
|
58
|
+
mat-icon: #94A3B8, /* slate.400 */
|
|
59
|
+
text: #FFFFFF,
|
|
60
|
+
slider-min: #FFFFFF,
|
|
61
|
+
slider-off: #64748B, /* slate.500 */
|
|
62
|
+
slider-off-active: #94A3B8 /* slate.400 */
|
|
63
|
+
),
|
|
64
|
+
background: (
|
|
65
|
+
status-bar: #0F172A, /* slate.900 */
|
|
66
|
+
app-bar: #0F172A, /* slate.900 */
|
|
67
|
+
background: #0F172A, /* slate.900 */
|
|
68
|
+
hover: rgba(255, 255, 255, 0.05),
|
|
69
|
+
card: #1E293B, /* slate.800 */
|
|
70
|
+
dialog: #1E293B, /* slate.800 */
|
|
71
|
+
disabled-button: rgba(15, 23, 42, 0.38), /* slate.900 + opacity */
|
|
72
|
+
raised-button: #0F172A, /* slate.900 */
|
|
73
|
+
focused-button: #E2E8F0, /* slate.200 */
|
|
74
|
+
selected-button: rgba(255, 255, 255, 0.05),
|
|
75
|
+
selected-disabled-button: #1E293B, /* slate.800 */
|
|
76
|
+
disabled-button-toggle: #0F172A, /* slate.900 */
|
|
77
|
+
unselected-chip: #475569, /* slate.600 */
|
|
78
|
+
disabled-list-option: #E2E8F0, /* slate.200 */
|
|
79
|
+
tooltip: #64748B /* slate.500 */
|
|
80
|
+
)
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
/* Include the core Angular Material styles */
|
|
84
|
+
@include mat.core();
|
|
85
|
+
|
|
86
|
+
/* Create a base theme without any color to set the density and typography */
|
|
87
|
+
@include mat.all-component-themes((
|
|
88
|
+
color: null,
|
|
89
|
+
density: 0,
|
|
90
|
+
typography: mat.define-typography-config(
|
|
91
|
+
$font-family: theme('fontFamily.sans'),
|
|
92
|
+
$headline-1: mat.define-typography-level(1.875rem, 2.25rem, 800, theme('fontFamily.sans')),
|
|
93
|
+
$headline-2: mat.define-typography-level(1.25rem, 1.75rem, 700, theme('fontFamily.sans')),
|
|
94
|
+
$headline-3: mat.define-typography-level(1.125rem, 1.75rem, 600, theme('fontFamily.sans')),
|
|
95
|
+
$headline-4: mat.define-typography-level(0.875rem, 1.25rem, 600, theme('fontFamily.sans')),
|
|
96
|
+
$headline-5: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
|
|
97
|
+
$headline-6: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
|
|
98
|
+
$subtitle-1: mat.define-typography-level(1rem, 1.75rem, 400, theme('fontFamily.sans')),
|
|
99
|
+
$subtitle-2: mat.define-typography-level(0.875rem, 1.25rem, 600, theme('fontFamily.sans')),
|
|
100
|
+
$body-1: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
|
|
101
|
+
$body-2: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
|
|
102
|
+
$caption: mat.define-typography-level(0.75rem, 1rem, 400, theme('fontFamily.sans')),
|
|
103
|
+
$button: mat.define-typography-level(0.875rem, 0.875rem, 500, theme('fontFamily.sans')),
|
|
104
|
+
$overline: mat.define-typography-level(0.75rem, 2rem, 500, theme('fontFamily.sans'))
|
|
105
|
+
)
|
|
106
|
+
));
|
|
107
|
+
|
|
108
|
+
/* Loop through user themes and generate Angular Material themes */
|
|
109
|
+
@each $name, $theme in userThemes.$user-themes {
|
|
110
|
+
|
|
111
|
+
/* Generate the palettes */
|
|
112
|
+
$palettes: ();
|
|
113
|
+
@each $name in (primary, accent, warn) {
|
|
114
|
+
|
|
115
|
+
/* Define the Angular Material theme */
|
|
116
|
+
$palette: mat.define-palette(map.get($theme, $name));
|
|
117
|
+
|
|
118
|
+
/* Replace the default colors on the defined Material palette */
|
|
119
|
+
$palette: map.merge($palette, (
|
|
120
|
+
default: map.get(map.get($theme, $name), DEFAULT),
|
|
121
|
+
lighter: map.get(map.get($theme, $name), 100),
|
|
122
|
+
darker: map.get(map.get($theme, $name), 700),
|
|
123
|
+
text: map.get(map.get($theme, $name), DEFAULT),
|
|
124
|
+
default-contrast: map.get(map.get(map.get($theme, $name), contrast), DEFAULT),
|
|
125
|
+
lighter-contrast: map.get(map.get(map.get($theme, $name), contrast), 100),
|
|
126
|
+
darker-contrast: map.get(map.get(map.get($theme, $name), contrast), 700)
|
|
127
|
+
));
|
|
128
|
+
|
|
129
|
+
$palettes: map.merge($palettes, (#{$name}: $palette));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Define a light & dark Angular Material theme with the generated palettes */
|
|
133
|
+
$light-theme: mat.define-light-theme((
|
|
134
|
+
color: ($palettes)
|
|
135
|
+
));
|
|
136
|
+
|
|
137
|
+
$dark-theme: mat.define-dark-theme((
|
|
138
|
+
color: ($palettes)
|
|
139
|
+
));
|
|
140
|
+
|
|
141
|
+
/* Merge the custom base colors with the generated themes */
|
|
142
|
+
$light-theme-colors: map.merge(map.get($light-theme, color), $light-base);
|
|
143
|
+
$light-theme: map.merge(
|
|
144
|
+
(color: $light-theme-colors),
|
|
145
|
+
$light-theme-colors
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
$dark-theme-colors: map.merge(map.get($dark-theme, color), $dark-base);
|
|
149
|
+
$dark-theme: map.merge(
|
|
150
|
+
(color: $dark-theme-colors),
|
|
151
|
+
$dark-theme-colors
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
/* Generate and encapsulate Angular Material themes */
|
|
155
|
+
#{map.get($theme, selector)} .light,
|
|
156
|
+
#{map.get($theme, selector)}.light {
|
|
157
|
+
@include mat.all-component-colors($light-theme);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
#{map.get($theme, selector)} .dark,
|
|
161
|
+
#{map.get($theme, selector)}.dark {
|
|
162
|
+
@include mat.all-component-colors($dark-theme);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$user-themes: (default: (selector: ".theme-default", primary: (50: #eef2ff, 100: #e0e7ff, 200: #c7d2fe, 300: #a5b4fc, 400: #818cf8, 500: #6366f1, 600: #4f46e5, 700: #4338ca, 800: #3730a3, 900: #312e81, 950: #1e1b4b, DEFAULT: #6366f1, contrast: (50: #1e1b4b, 100: #1e1b4b, 200: #1e1b4b, 300: #1e1b4b, 400: #1e1b4b, 500: #FFFFFF, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF)), accent: (50: #fdf2f8, 100: #fce7f3, 200: #fbcfe8, 300: #f9a8d4, 400: #f472b6, 500: #ec4899, 600: #db2777, 700: #be185d, 800: #9d174d, 900: #831843, 950: #500724, DEFAULT: #ec4899, contrast: (50: #500724, 100: #500724, 200: #500724, 300: #500724, 400: #500724, 500: #500724, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #500724)), warn: (50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 950: #450a0a, DEFAULT: #dc2626, contrast: (50: #450a0a, 100: #450a0a, 200: #450a0a, 300: #450a0a, 400: #450a0a, 500: #fef2f2, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF))), sky: (selector: ".theme-sky", primary: (50: #f0f9ff, 100: #e0f2fe, 200: #bae6fd, 300: #7dd3fc, 400: #38bdf8, 500: #0ea5e9, 600: #0284c7, 700: #0369a1, 800: #075985, 900: #0c4a6e, 950: #082f49, DEFAULT: #0ea5e9, contrast: (50: #082f49, 100: #082f49, 200: #082f49, 300: #082f49, 400: #082f49, 500: #082f49, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #082f49)), accent: (50: #f8fafc, 100: #f1f5f9, 200: #e2e8f0, 300: #cbd5e1, 400: #94a3b8, 500: #64748b, 600: #475569, 700: #334155, 800: #1e293b, 900: #0f172a, 950: #020617, DEFAULT: #475569, contrast: (50: #020617, 100: #020617, 200: #020617, 300: #020617, 400: #020617, 500: #FFFFFF, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF)), warn: (50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 950: #450a0a, DEFAULT: #dc2626, contrast: (50: #450a0a, 100: #450a0a, 200: #450a0a, 300: #450a0a, 400: #450a0a, 500: #fef2f2, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF))), teal: (selector: ".theme-teal", primary: (50: #f0fdfa, 100: #ccfbf1, 200: #99f6e4, 300: #5eead4, 400: #2dd4bf, 500: #14b8a6, 600: #0d9488, 700: #0f766e, 800: #115e59, 900: #134e4a, 950: #042f2e, DEFAULT: #0d9488, contrast: (50: #042f2e, 100: #042f2e, 200: #042f2e, 300: #042f2e, 400: #042f2e, 500: #042f2e, 600: #042f2e, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #042f2e)), accent: (50: #fff7ed, 100: #ffedd5, 200: #fed7aa, 300: #fdba74, 400: #fb923c, 500: #f97316, 600: #ea580c, 700: #c2410c, 800: #9a3412, 900: #7c2d12, 950: #431407, DEFAULT: #ea580c, contrast: (50: #431407, 100: #431407, 200: #431407, 300: #431407, 400: #431407, 500: #431407, 600: #431407, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #431407)), warn: (50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 950: #450a0a, DEFAULT: #dc2626, contrast: (50: #450a0a, 100: #450a0a, 200: #450a0a, 300: #450a0a, 400: #450a0a, 500: #fef2f2, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF))), rose: (selector: ".theme-rose", primary: (50: #fff1f2, 100: #ffe4e6, 200: #fecdd3, 300: #fda4af, 400: #fb7185, 500: #f43f5e, 600: #e11d48, 700: #be123c, 800: #9f1239, 900: #881337, 950: #4c0519, DEFAULT: #f43f5e, contrast: (50: #4c0519, 100: #4c0519, 200: #4c0519, 300: #4c0519, 400: #4c0519, 500: #4c0519, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #4c0519)), accent: (50: #eef2ff, 100: #e0e7ff, 200: #c7d2fe, 300: #a5b4fc, 400: #818cf8, 500: #6366f1, 600: #4f46e5, 700: #4338ca, 800: #3730a3, 900: #312e81, 950: #1e1b4b, DEFAULT: #6366f1, contrast: (50: #1e1b4b, 100: #1e1b4b, 200: #1e1b4b, 300: #1e1b4b, 400: #1e1b4b, 500: #FFFFFF, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF)), warn: (50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 950: #450a0a, DEFAULT: #dc2626, contrast: (50: #450a0a, 100: #450a0a, 200: #450a0a, 300: #450a0a, 400: #450a0a, 500: #fef2f2, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF))), violet: (selector: ".theme-violet", primary: (50: #f5f3ff, 100: #ede9fe, 200: #ddd6fe, 300: #c4b5fd, 400: #a78bfa, 500: #8b5cf6, 600: #7c3aed, 700: #6d28d9, 800: #5b21b6, 900: #4c1d95, 950: #2e1065, DEFAULT: #7c3aed, contrast: (50: #2e1065, 100: #2e1065, 200: #2e1065, 300: #2e1065, 400: #2e1065, 500: #FFFFFF, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF)), accent: (50: #ecfdf5, 100: #d1fae5, 200: #a7f3d0, 300: #6ee7b7, 400: #34d399, 500: #10b981, 600: #059669, 700: #047857, 800: #065f46, 900: #064e3b, 950: #022c22, DEFAULT: #059669, contrast: (50: #022c22, 100: #022c22, 200: #022c22, 300: #022c22, 400: #022c22, 500: #022c22, 600: #022c22, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #022c22)), warn: (50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 950: #450a0a, DEFAULT: #dc2626, contrast: (50: #450a0a, 100: #450a0a, 200: #450a0a, 300: #450a0a, 400: #450a0a, 500: #fef2f2, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF))), amber: (selector: ".theme-amber", primary: (50: #fffbeb, 100: #fef3c7, 200: #fde68a, 300: #fcd34d, 400: #fbbf24, 500: #f59e0b, 600: #d97706, 700: #b45309, 800: #92400e, 900: #78350f, 950: #451a03, DEFAULT: #f59e0b, contrast: (50: #451a03, 100: #451a03, 200: #451a03, 300: #451a03, 400: #451a03, 500: #451a03, 600: #451a03, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #451a03)), accent: (50: #f5f3ff, 100: #ede9fe, 200: #ddd6fe, 300: #c4b5fd, 400: #a78bfa, 500: #8b5cf6, 600: #7c3aed, 700: #6d28d9, 800: #5b21b6, 900: #4c1d95, 950: #2e1065, DEFAULT: #8b5cf6, contrast: (50: #2e1065, 100: #2e1065, 200: #2e1065, 300: #2e1065, 400: #2e1065, 500: #FFFFFF, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF)), warn: (50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 950: #450a0a, DEFAULT: #dc2626, contrast: (50: #450a0a, 100: #450a0a, 200: #450a0a, 300: #450a0a, 400: #450a0a, 500: #fef2f2, 600: #FFFFFF, 700: #FFFFFF, 800: #FFFFFF, 900: #FFFFFF, 950: #FFFFFF, DEFAULT: #FFFFFF))));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const plugin = require('tailwindcss/plugin');
|
|
2
|
+
|
|
3
|
+
module.exports = plugin(
|
|
4
|
+
({
|
|
5
|
+
matchUtilities,
|
|
6
|
+
theme
|
|
7
|
+
}) => {
|
|
8
|
+
matchUtilities(
|
|
9
|
+
{
|
|
10
|
+
'icon-size': (value) => ({
|
|
11
|
+
width: value,
|
|
12
|
+
height: value,
|
|
13
|
+
minWidth: value,
|
|
14
|
+
minHeight: value,
|
|
15
|
+
fontSize: value,
|
|
16
|
+
lineHeight: value,
|
|
17
|
+
[`svg`]: {
|
|
18
|
+
width: value,
|
|
19
|
+
height: value
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
values: theme('iconSize')
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
theme: {
|
|
29
|
+
iconSize: {
|
|
30
|
+
3: '0.75rem',
|
|
31
|
+
3.5: '0.875rem',
|
|
32
|
+
4: '1rem',
|
|
33
|
+
4.5: '1.125rem',
|
|
34
|
+
5: '1.25rem',
|
|
35
|
+
6: '1.5rem',
|
|
36
|
+
7: '1.75rem',
|
|
37
|
+
8: '2rem',
|
|
38
|
+
10: '2.5rem',
|
|
39
|
+
12: '3rem',
|
|
40
|
+
14: '3.5rem',
|
|
41
|
+
16: '4rem',
|
|
42
|
+
18: '4.5rem',
|
|
43
|
+
20: '5rem',
|
|
44
|
+
22: '5.5rem',
|
|
45
|
+
24: '6rem'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
);
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
const chroma = require('chroma-js');
|
|
2
|
+
const _ = require('lodash');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const colors = require('tailwindcss/colors');
|
|
6
|
+
const plugin = require('tailwindcss/plugin');
|
|
7
|
+
const flattenColorPalette = require('tailwindcss/lib/util/flattenColorPalette').default;
|
|
8
|
+
const generateContrasts = require(path.resolve(__dirname, ('../utils/generate-contrasts')));
|
|
9
|
+
const jsonToSassMap = require(path.resolve(__dirname, ('../utils/json-to-sass-map')));
|
|
10
|
+
|
|
11
|
+
// -----------------------------------------------------------------------------------------------------
|
|
12
|
+
// @ Utilities
|
|
13
|
+
// -----------------------------------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Normalizes the provided theme by omitting empty values and values that
|
|
17
|
+
* start with "on" from each palette. Also sets the correct DEFAULT value
|
|
18
|
+
* of each palette.
|
|
19
|
+
*
|
|
20
|
+
* @param theme
|
|
21
|
+
*/
|
|
22
|
+
const normalizeTheme = (theme) => {
|
|
23
|
+
return _.fromPairs(_.map(_.omitBy(theme, (palette, paletteName) => paletteName.startsWith('on') || _.isEmpty(palette)),
|
|
24
|
+
(palette, paletteName) => [
|
|
25
|
+
paletteName,
|
|
26
|
+
{
|
|
27
|
+
...palette,
|
|
28
|
+
DEFAULT: palette['DEFAULT'] || palette[500]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// -----------------------------------------------------------------------------------------------------
|
|
35
|
+
// @ cmat TailwindCSS Main Plugin
|
|
36
|
+
// -----------------------------------------------------------------------------------------------------
|
|
37
|
+
const theming = plugin.withOptions((options) => ({
|
|
38
|
+
addComponents,
|
|
39
|
+
e,
|
|
40
|
+
theme
|
|
41
|
+
}) => {
|
|
42
|
+
/**
|
|
43
|
+
* Create user themes object by going through the provided themes and
|
|
44
|
+
* merging them with the provided "default" so, we can have a complete
|
|
45
|
+
* set of color palettes for each user theme.
|
|
46
|
+
*/
|
|
47
|
+
const userThemes = _.fromPairs(_.map(options.themes, (theme, themeName) => [
|
|
48
|
+
themeName,
|
|
49
|
+
_.defaults({}, theme, options.themes['default'])
|
|
50
|
+
]));
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Normalize the themes and assign it to the themes object. This will
|
|
54
|
+
* be the final object that we create a SASS map from
|
|
55
|
+
*/
|
|
56
|
+
let themes = _.fromPairs(_.map(userThemes, (theme, themeName) => [
|
|
57
|
+
themeName,
|
|
58
|
+
normalizeTheme(theme)
|
|
59
|
+
]));
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Go through the themes to generate the contrasts and filter the
|
|
63
|
+
* palettes to only have "primary", "accent" and "warn" objects.
|
|
64
|
+
*/
|
|
65
|
+
themes = _.fromPairs(_.map(themes, (theme, themeName) => [
|
|
66
|
+
themeName,
|
|
67
|
+
_.pick(
|
|
68
|
+
_.fromPairs(_.map(theme, (palette, paletteName) => [
|
|
69
|
+
paletteName,
|
|
70
|
+
{
|
|
71
|
+
...palette,
|
|
72
|
+
contrast: _.fromPairs(_.map(generateContrasts(palette), (color, hue) => [
|
|
73
|
+
hue,
|
|
74
|
+
_.get(userThemes[themeName], [`on-${paletteName}`, hue]) || color
|
|
75
|
+
]))
|
|
76
|
+
}
|
|
77
|
+
])),
|
|
78
|
+
['primary', 'accent', 'warn']
|
|
79
|
+
)
|
|
80
|
+
]));
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Go through the themes and attach appropriate class selectors so,
|
|
84
|
+
* we can use them to encapsulate each theme.
|
|
85
|
+
*/
|
|
86
|
+
themes = _.fromPairs(_.map(themes, (theme, themeName) => [
|
|
87
|
+
themeName,
|
|
88
|
+
{
|
|
89
|
+
selector: `".theme-${themeName}"`,
|
|
90
|
+
...theme
|
|
91
|
+
}
|
|
92
|
+
]));
|
|
93
|
+
|
|
94
|
+
/* Generate the SASS map using the themes object */
|
|
95
|
+
const sassMap = jsonToSassMap(JSON.stringify({ 'user-themes': themes }));
|
|
96
|
+
|
|
97
|
+
/* Get the file path */
|
|
98
|
+
const filename = path.resolve(__dirname, ('../../styles/user-themes.scss'));
|
|
99
|
+
|
|
100
|
+
/* Read the file and get its data */
|
|
101
|
+
let data;
|
|
102
|
+
try {
|
|
103
|
+
data = fs.readFileSync(filename, { encoding: 'utf8' });
|
|
104
|
+
}
|
|
105
|
+
catch (err) {
|
|
106
|
+
console.error(err);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Write the file if the map has been changed */
|
|
110
|
+
if (data !== sassMap) {
|
|
111
|
+
try {
|
|
112
|
+
fs.writeFileSync(filename, sassMap, { encoding: 'utf8' });
|
|
113
|
+
}
|
|
114
|
+
catch (err) {
|
|
115
|
+
console.error(err);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Iterate through the user's themes and build Tailwind components containing
|
|
121
|
+
* CSS Custom Properties using the colors from them. This allows switching
|
|
122
|
+
* themes by simply replacing a class name as well as nesting them.
|
|
123
|
+
*/
|
|
124
|
+
addComponents(
|
|
125
|
+
_.fromPairs(_.map(options.themes, (theme, themeName) => [
|
|
126
|
+
themeName === 'default' ? 'body, .theme-default' : `.theme-${e(themeName)}`,
|
|
127
|
+
_.fromPairs(_.flatten(_.map(flattenColorPalette(_.fromPairs(_.flatten(_.map(normalizeTheme(theme), (palette, paletteName) => [
|
|
128
|
+
[
|
|
129
|
+
e(paletteName),
|
|
130
|
+
palette
|
|
131
|
+
],
|
|
132
|
+
[
|
|
133
|
+
`on-${e(paletteName)}`,
|
|
134
|
+
_.fromPairs(_.map(generateContrasts(palette), (color, hue) => [hue, _.get(theme, [`on-${paletteName}`, hue]) || color]))
|
|
135
|
+
]
|
|
136
|
+
])
|
|
137
|
+
))), (value, key) => [[`--cmat-${e(key)}`, value], [`--cmat-${e(key)}-rgb`, chroma(value).rgb().join(',')]])))
|
|
138
|
+
]))
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Generate scheme based css custom properties and utility classes
|
|
143
|
+
*/
|
|
144
|
+
const schemeCustomProps = _.map(['light', 'dark'], (colorScheme) => {
|
|
145
|
+
const isDark = colorScheme === 'dark';
|
|
146
|
+
const background = theme(`cmat.customProps.background.${colorScheme}`);
|
|
147
|
+
const foreground = theme(`cmat.customProps.foreground.${colorScheme}`);
|
|
148
|
+
const lightSchemeSelectors = 'body.light, .light, .dark .light';
|
|
149
|
+
const darkSchemeSelectors = 'body.dark, .dark, .light .dark';
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
[(isDark ? darkSchemeSelectors : lightSchemeSelectors)]: {
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* If a custom property is not available, browsers will use
|
|
156
|
+
* the fallback value. In this case, we want to use '--is-dark'
|
|
157
|
+
* as the indicator of a dark theme so, we can use it like this:
|
|
158
|
+
* background-color: var(--is-dark, red);
|
|
159
|
+
*
|
|
160
|
+
* If we set '--is-dark' as "true" on dark themes, the above rule
|
|
161
|
+
* won't work because of the said "fallback value" logic. Therefore,
|
|
162
|
+
* we set the '--is-dark' to "false" on light themes and not set it
|
|
163
|
+
* at all on dark themes so that the fallback value can be used on
|
|
164
|
+
* dark themes.
|
|
165
|
+
*
|
|
166
|
+
* On light themes, since '--is-dark' exists, the above rule will be
|
|
167
|
+
* interpolated as:
|
|
168
|
+
* "background-color: false"
|
|
169
|
+
*
|
|
170
|
+
* On dark themes, since '--is-dark' doesn't exist, the fallback value
|
|
171
|
+
* will be used ('red' in this case) and the rule will be interpolated as:
|
|
172
|
+
* "background-color: red"
|
|
173
|
+
*
|
|
174
|
+
* It's easier to understand and remember like this.
|
|
175
|
+
*/
|
|
176
|
+
...(!isDark ? { '--is-dark': 'false' } : {}),
|
|
177
|
+
|
|
178
|
+
/* Generate custom properties from customProps */
|
|
179
|
+
..._.fromPairs(_.flatten(_.map(background, (value, key) => [[`--cmat-${e(key)}`, value], [`--cmat-${e(key)}-rgb`, chroma(value).rgb().join(',')]]))),
|
|
180
|
+
..._.fromPairs(_.flatten(_.map(foreground, (value, key) => [[`--cmat-${e(key)}`, value], [`--cmat-${e(key)}-rgb`, chroma(value).rgb().join(',')]])))
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
const schemeUtilities = (() => {
|
|
186
|
+
/* Generate general styles & utilities */
|
|
187
|
+
return {};
|
|
188
|
+
})();
|
|
189
|
+
|
|
190
|
+
addComponents(schemeCustomProps);
|
|
191
|
+
addComponents(schemeUtilities);
|
|
192
|
+
},
|
|
193
|
+
(options) => {
|
|
194
|
+
return {
|
|
195
|
+
theme: {
|
|
196
|
+
extend: {
|
|
197
|
+
/**
|
|
198
|
+
* Add 'Primary', 'Accent' and 'Warn' palettes as colors so all color utilities
|
|
199
|
+
* are generated for them; "bg-primary", "text-on-primary", "bg-accent-600" etc.
|
|
200
|
+
* This will also allow using arbitrary values with them such as opacity and such.
|
|
201
|
+
*/
|
|
202
|
+
colors: _.fromPairs(_.flatten(_.map(_.keys(flattenColorPalette(normalizeTheme(options.themes.default))), (name) => [
|
|
203
|
+
[name, `rgba(var(--cmat-${name}-rgb), <alpha-value>)`],
|
|
204
|
+
[`on-${name}`, `rgba(var(--cmat-on-${name}-rgb), <alpha-value>)`]
|
|
205
|
+
])))
|
|
206
|
+
},
|
|
207
|
+
cmat: {
|
|
208
|
+
customProps: {
|
|
209
|
+
background: {
|
|
210
|
+
light: {
|
|
211
|
+
'bg-app-bar': '#FFFFFF',
|
|
212
|
+
'bg-card': '#FFFFFF',
|
|
213
|
+
'bg-default': colors.slate[100],
|
|
214
|
+
'bg-dialog': '#FFFFFF',
|
|
215
|
+
'bg-hover': chroma(colors.slate[400]).alpha(0.12).css(),
|
|
216
|
+
'bg-status-bar': colors.slate[300]
|
|
217
|
+
},
|
|
218
|
+
dark: {
|
|
219
|
+
'bg-app-bar': colors.slate[900],
|
|
220
|
+
'bg-card': colors.slate[800],
|
|
221
|
+
'bg-default': colors.slate[900],
|
|
222
|
+
'bg-dialog': colors.slate[800],
|
|
223
|
+
'bg-hover': 'rgba(255, 255, 255, 0.05)',
|
|
224
|
+
'bg-status-bar': colors.slate[900]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
foreground: {
|
|
228
|
+
light: {
|
|
229
|
+
'text-default': colors.slate[800],
|
|
230
|
+
'text-secondary': colors.slate[500],
|
|
231
|
+
'text-hint': colors.slate[400],
|
|
232
|
+
'text-disabled': colors.slate[400],
|
|
233
|
+
'border': colors.slate[200],
|
|
234
|
+
'divider': colors.slate[200],
|
|
235
|
+
'icon': colors.slate[500],
|
|
236
|
+
'mat-icon': colors.slate[500]
|
|
237
|
+
},
|
|
238
|
+
dark: {
|
|
239
|
+
'text-default': '#FFFFFF',
|
|
240
|
+
'text-secondary': colors.slate[400],
|
|
241
|
+
'text-hint': colors.slate[500],
|
|
242
|
+
'text-disabled': colors.slate[600],
|
|
243
|
+
'border': chroma(colors.slate[100]).alpha(0.12).css(),
|
|
244
|
+
'divider': chroma(colors.slate[100]).alpha(0.12).css(),
|
|
245
|
+
'icon': colors.slate[400],
|
|
246
|
+
'mat-icon': colors.slate[400]
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
module.exports = theming;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const plugin = require('tailwindcss/plugin');
|
|
2
|
+
|
|
3
|
+
module.exports = plugin(({
|
|
4
|
+
addComponents
|
|
5
|
+
}) => {
|
|
6
|
+
/*
|
|
7
|
+
* Add base components. These are very important for everything to look
|
|
8
|
+
* correct. We are adding these to the 'components' layer because they must
|
|
9
|
+
* be defined before pretty much everything else.
|
|
10
|
+
*/
|
|
11
|
+
addComponents(
|
|
12
|
+
{
|
|
13
|
+
'.mat-icon': {
|
|
14
|
+
'--tw-text-opacity': '1',
|
|
15
|
+
color: 'rgba(var(--cmat-icon-rgb), var(--tw-text-opacity))'
|
|
16
|
+
},
|
|
17
|
+
'.text-default': {
|
|
18
|
+
'--tw-text-opacity': '1 !important',
|
|
19
|
+
color: 'rgba(var(--cmat-text-default-rgb), var(--tw-text-opacity)) !important'
|
|
20
|
+
},
|
|
21
|
+
'.text-secondary': {
|
|
22
|
+
'--tw-text-opacity': '1 !important',
|
|
23
|
+
color: 'rgba(var(--cmat-text-secondary-rgb), var(--tw-text-opacity)) !important'
|
|
24
|
+
},
|
|
25
|
+
'.text-hint': {
|
|
26
|
+
'--tw-text-opacity': '1 !important',
|
|
27
|
+
color: 'rgba(var(--cmat-text-hint-rgb), var(--tw-text-opacity)) !important'
|
|
28
|
+
},
|
|
29
|
+
'.text-disabled': {
|
|
30
|
+
'--tw-text-opacity': '0.5 !important',
|
|
31
|
+
color: 'rgba(var(--cmat-text-disabled-rgb), var(--tw-text-opacity)) !important'
|
|
32
|
+
},
|
|
33
|
+
'.divider': {
|
|
34
|
+
color: 'var(--cmat-divider) !important'
|
|
35
|
+
},
|
|
36
|
+
'.bg-card': {
|
|
37
|
+
'--tw-bg-opacity': '1 !important',
|
|
38
|
+
backgroundColor: 'rgba(var(--cmat-bg-card-rgb), var(--tw-bg-opacity)) !important'
|
|
39
|
+
},
|
|
40
|
+
'.bg-default': {
|
|
41
|
+
'--tw-bg-opacity': '1 !important',
|
|
42
|
+
backgroundColor: 'rgba(var(--cmat-bg-default-rgb), var(--tw-bg-opacity)) !important'
|
|
43
|
+
},
|
|
44
|
+
'.bg-dialog': {
|
|
45
|
+
'--tw-bg-opacity': '1 !important',
|
|
46
|
+
backgroundColor: 'rgba(var(--cmat-bg-dialog-rgb), var(--tw-bg-opacity)) !important'
|
|
47
|
+
},
|
|
48
|
+
'.ring-bg-default': {
|
|
49
|
+
'--tw-ring-opacity': '1 !important',
|
|
50
|
+
'--tw-ring-color': 'rgba(var(--cmat-bg-default-rgb), var(--tw-ring-opacity)) !important'
|
|
51
|
+
},
|
|
52
|
+
'.ring-bg-card': {
|
|
53
|
+
'--tw-ring-opacity': '1 !important',
|
|
54
|
+
'--tw-ring-color': 'rgba(var(--cmat-bg-card-rgb), var(--tw-ring-opacity)) !important'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
addComponents(
|
|
60
|
+
{
|
|
61
|
+
'.bg-hover': {
|
|
62
|
+
backgroundColor: 'var(--cmat-bg-hover) !important'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const chroma = require('chroma-js');
|
|
2
|
+
const _ = require('lodash');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Generates contrasting counterparts of the given palette.
|
|
6
|
+
* The provided palette must be in the same format with
|
|
7
|
+
* default Tailwind color palettes.
|
|
8
|
+
*
|
|
9
|
+
* @param palette
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
const generateContrasts = (palette) => {
|
|
13
|
+
const lightColor = '#FFFFFF';
|
|
14
|
+
let darkColor = '#FFFFFF';
|
|
15
|
+
|
|
16
|
+
// Iterate through the palette to find the darkest color
|
|
17
|
+
_.forEach(palette, ((color) => {
|
|
18
|
+
darkColor = chroma.contrast(color, '#FFFFFF') > chroma.contrast(darkColor, '#FFFFFF') ? color : darkColor;
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
// Generate the contrasting colors
|
|
22
|
+
return _.fromPairs(_.map(palette, ((color, hue) => [
|
|
23
|
+
hue,
|
|
24
|
+
chroma.contrast(color, darkColor) > chroma.contrast(color, lightColor) ? darkColor : lightColor
|
|
25
|
+
]
|
|
26
|
+
)));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
module.exports = generateContrasts;
|