@liquid-js/lyr-core 0.0.0-stage → 22.0.0-alpha.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/LICENSE.txt +23 -0
- package/README.md +78 -2
- package/components/accordion/_accordion.component.theme.scss +106 -0
- package/components/accordion/accordion-item-body.component.html +7 -0
- package/components/accordion/accordion-item-body.component.scss +8 -0
- package/components/accordion/accordion-item-header.component.html +8 -0
- package/components/accordion/accordion-item-header.component.scss +23 -0
- package/components/accordion/accordion-item.component.html +2 -0
- package/components/accordion/accordion-item.component.scss +4 -0
- package/components/actions/_actions.component.theme.scss +46 -0
- package/components/actions/action.component.scss +68 -0
- package/components/actions/actions.component.html +45 -0
- package/components/actions/actions.component.scss +4 -0
- package/components/alert/_alert.component.theme.scss +68 -0
- package/components/alert/alert.component.html +15 -0
- package/components/alert/alert.component.scss +13 -0
- package/components/autocomplete/autocomplete.component.html +10 -0
- package/components/autocomplete/autocomplete.component.scss +7 -0
- package/components/badge/_badge.component.theme.scss +24 -0
- package/components/badge/badge.component.scss +48 -0
- package/components/breadcrumbs/_breadcrumbs.component.theme.scss +53 -0
- package/components/breadcrumbs/breadcrumbs.component.scss +12 -0
- package/components/button/_button-look.scss +198 -0
- package/components/button/_button.component.theme.scss +166 -0
- package/components/button-group/_button-group.component.theme.scss +105 -0
- package/components/button-group/_button-toggle.component.theme.scss +5 -0
- package/components/calendar/_calendar.component.theme.scss +68 -0
- package/components/calendar/base-calendar.component.html +52 -0
- package/components/calendar/calendar-range-month-cell.component.html +3 -0
- package/components/calendar/calendar-range-year-cell.component.html +3 -0
- package/components/calendar/calendar-range.component.html +17 -0
- package/components/calendar/calendar.component.html +18 -0
- package/components/calendar-kit/_calendar-kit.theme.scss +15 -0
- package/components/calendar-kit/components/_calendar-cell.theme.scss +231 -0
- package/components/calendar-kit/components/calendar-actions/calendar-actions.component.html +16 -0
- package/components/calendar-kit/components/calendar-actions/calendar-actions.component.scss +11 -0
- package/components/calendar-kit/components/calendar-day-picker/_calendar-day-picker.component.theme.scss +9 -0
- package/components/calendar-kit/components/calendar-day-picker/calendar-day-cell.component.html +3 -0
- package/components/calendar-kit/components/calendar-day-picker/calendar-day-picker.component.html +19 -0
- package/components/calendar-kit/components/calendar-day-picker/calendar-day-picker.component.scss +7 -0
- package/components/calendar-kit/components/calendar-days-names/_calendar-days-names.component.theme.scss +38 -0
- package/components/calendar-kit/components/calendar-days-names/calendar-days-names.component.html +4 -0
- package/components/calendar-kit/components/calendar-days-names/calendar-days-names.component.scss +10 -0
- package/components/calendar-kit/components/calendar-month-picker/calendar-month-cell.component.html +3 -0
- package/components/calendar-kit/components/calendar-month-picker/calendar-month-picker.component.html +10 -0
- package/components/calendar-kit/components/calendar-navigation/_calendar-navigation.theme.scss +91 -0
- package/components/calendar-kit/components/calendar-navigation/calendar-pageable-navigation.component.html +22 -0
- package/components/calendar-kit/components/calendar-navigation/calendar-pageable-navigation.component.scss +5 -0
- package/components/calendar-kit/components/calendar-navigation/calendar-view-mode.component.html +14 -0
- package/components/calendar-kit/components/calendar-picker/_calendar-picker.component.theme.scss +18 -0
- package/components/calendar-kit/components/calendar-picker/calendar-picker.component.html +11 -0
- package/components/calendar-kit/components/calendar-week-number/_calendar-week-number.component.theme.scss +39 -0
- package/components/calendar-kit/components/calendar-week-number/calendar-week-number.component.html +6 -0
- package/components/calendar-kit/components/calendar-week-number/calendar-week-number.component.scss +4 -0
- package/components/calendar-kit/components/calendar-year-picker/calendar-year-cell.component.html +3 -0
- package/components/calendar-kit/components/calendar-year-picker/calendar-year-picker.component.html +10 -0
- package/components/card/_card.component.theme.scss +276 -0
- package/components/card/card.component.html +6 -0
- package/components/card/card.component.scss +4 -0
- package/components/card/flip-card/_flip-card.component.theme.scss +17 -0
- package/components/card/flip-card/flip-card.component.html +34 -0
- package/components/card/flip-card/flip-card.component.scss +69 -0
- package/components/card/reveal-card/_reveal-card.component.theme.scss +22 -0
- package/components/card/reveal-card/reveal-card.component.html +18 -0
- package/components/card/reveal-card/reveal-card.component.scss +61 -0
- package/components/cdk/overlay/_overlay.theme.scss +54 -0
- package/components/cdk/overlay/overlay-container.html +5 -0
- package/components/chat/_chat.component.theme.scss +425 -0
- package/components/chat/chat-avatar.component.html +3 -0
- package/components/chat/chat-form.component.html +55 -0
- package/components/chat/chat-message-file.component.html +36 -0
- package/components/chat/chat-message-map.component.html +5 -0
- package/components/chat/chat-message-quote.component.html +8 -0
- package/components/chat/chat-message-text.component.html +8 -0
- package/components/chat/chat-message.component.html +51 -0
- package/components/chat/chat-message.component.scss +28 -0
- package/components/chat/chat.component.html +26 -0
- package/components/chat/chat.component.scss +6 -0
- package/components/checkbox/_checkbox.component.theme.scss +148 -0
- package/components/checkbox/checkbox.component.html +33 -0
- package/components/checkbox/checkbox.component.scss +25 -0
- package/components/context-menu/_context-menu.component.theme.scss +32 -0
- package/components/datepicker/_datepicker-container.component.theme.scss +57 -0
- package/components/datepicker/calendar-with-time-container.component.scss +32 -0
- package/components/datepicker/calendar-with-time.component.html +43 -0
- package/components/divider/_divider.component.theme.scss +60 -0
- package/components/file-drop/_file-drop.component.theme.scss +166 -0
- package/components/file-drop/file-drop.component.html +60 -0
- package/components/file-drop/file-drop.component.scss +105 -0
- package/components/form-field/_form-field.component.theme.scss +104 -0
- package/components/form-field/form-field.component.html +19 -0
- package/components/form-field/form-field.component.scss +12 -0
- package/components/icon/_icon.component.theme.scss +20 -0
- package/components/icon/icon.component.scss +3 -0
- package/components/input/_input-look.scss +118 -0
- package/components/input/_input.directive.theme.scss +91 -0
- package/components/input-group/_input-group.component.theme.scss +56 -0
- package/components/layout/_layout.component.theme.scss +250 -0
- package/components/layout/layout-footer.component.html +3 -0
- package/components/layout/layout-header.component.html +3 -0
- package/components/layout/layout.component.html +19 -0
- package/components/layout/layout.component.scss +114 -0
- package/components/list/_list.component.theme.scss +98 -0
- package/components/list/list-item.component.scss +5 -0
- package/components/list/list.component.scss +6 -0
- package/components/menu/_menu.component.theme.scss +256 -0
- package/components/menu/menu-item.component.html +188 -0
- package/components/menu/menu.component.html +16 -0
- package/components/menu/menu.component.scss +91 -0
- package/components/option/_option-list-look.scss +27 -0
- package/components/option/_option-list.component.theme.scss +281 -0
- package/components/option/option-group.component.html +3 -0
- package/components/option/option-group.component.scss +16 -0
- package/components/option/option-list.component.html +8 -0
- package/components/option/option-nested.component.html +17 -0
- package/components/option/option-nested.component.scss +42 -0
- package/components/option/option.component.html +8 -0
- package/components/option/option.component.scss +34 -0
- package/components/page-indicator/_page-indicator.component.theme.scss +38 -0
- package/components/page-indicator/page-indicator.component.scss +28 -0
- package/components/pagination/_pagination.component.theme.scss +36 -0
- package/components/pagination/pagination.component.html +84 -0
- package/components/pagination/pagination.component.scss +42 -0
- package/components/popover/_popover-look.scss +18 -0
- package/components/popover/_popover.component.theme.scss +138 -0
- package/components/popover/popover.component.html +2 -0
- package/components/popover/popover.component.scss +7 -0
- package/components/progress-bar/_progress-bar.component.theme.scss +72 -0
- package/components/progress-bar/progress-bar.component.html +23 -0
- package/components/progress-bar/progress-bar.component.scss +55 -0
- package/components/radio/_radio.component.theme.scss +134 -0
- package/components/radio/radio.component.html +15 -0
- package/components/radio/radio.component.scss +29 -0
- package/components/route-tabset/_route-tabset.component.theme.scss +105 -0
- package/components/route-tabset/route-tabset.component.html +49 -0
- package/components/route-tabset/route-tabset.component.scss +54 -0
- package/components/search/_search.component.theme.scss +90 -0
- package/components/search/search-field.component.html +34 -0
- package/components/search/search.component.html +19 -0
- package/components/search/styles/search.component.column-curtain.scss +100 -0
- package/components/search/styles/search.component.curtain.scss +98 -0
- package/components/search/styles/search.component.layout-rotate.scss +95 -0
- package/components/search/styles/search.component.modal-drop.scss +169 -0
- package/components/search/styles/search.component.modal-half.scss +99 -0
- package/components/search/styles/search.component.modal-move.scss +88 -0
- package/components/search/styles/search.component.modal-zoomin.scss +152 -0
- package/components/search/styles/search.component.scss +20 -0
- package/components/select/_select-filled.scss +64 -0
- package/components/select/_select-hero.scss +73 -0
- package/components/select/_select-outline.scss +98 -0
- package/components/select/_select.component.theme.scss +115 -0
- package/components/select/select.component.html +92 -0
- package/components/select/select.component.scss +82 -0
- package/components/sidebar/_sidebar.component.theme.scss +225 -0
- package/components/sidebar/sidebar.component.html +8 -0
- package/components/sidebar/sidebar.component.scss +88 -0
- package/components/skeleton/_skeleton.directive.theme.scss +81 -0
- package/components/slider/_slider.component.theme.scss +151 -0
- package/components/slider/slider.component.html +53 -0
- package/components/slider/slider.component.scss +141 -0
- package/components/spinner/_spinner.component.theme.scss +48 -0
- package/components/spinner/spinner.component.html +5 -0
- package/components/spinner/spinner.component.scss +28 -0
- package/components/stepper/_stepper.component.theme.scss +130 -0
- package/components/stepper/step.component.html +3 -0
- package/components/stepper/stepper.component.html +47 -0
- package/components/stepper/stepper.component.scss +86 -0
- package/components/table/_table.component.theme.scss +182 -0
- package/components/table/table.component.scss +18 -0
- package/components/tabset/_tabset.component.theme.scss +151 -0
- package/components/tabset/tab.component.html +8 -0
- package/components/tabset/tabset.component.html +44 -0
- package/components/tabset/tabset.component.scss +70 -0
- package/components/tag/_tag-filled.scss +28 -0
- package/components/tag/_tag-hero.scss +48 -0
- package/components/tag/_tag-input.scss +55 -0
- package/components/tag/_tag-list.scss +102 -0
- package/components/tag/_tag-outline.scss +31 -0
- package/components/tag/_tag.component.theme.scss +9 -0
- package/components/tag/_tag.scss +73 -0
- package/components/tag/tag-list.component.html +10 -0
- package/components/tag/tag.component.html +20 -0
- package/components/timepicker/_timepicker.component.theme.scss +101 -0
- package/components/timepicker/timepicker-cell.component.scss +13 -0
- package/components/timepicker/timepicker.component.html +126 -0
- package/components/timepicker/timepicker.component.scss +51 -0
- package/components/toastr/_toast.component.theme.scss +72 -0
- package/components/toastr/toast.component.html +39 -0
- package/components/toastr/toast.component.scss +64 -0
- package/components/toc/_toc.component.theme.scss +49 -0
- package/components/toc/toc.component.html +23 -0
- package/components/toc/toc.component.scss +14 -0
- package/components/toggle/_toggle.component.theme.scss +159 -0
- package/components/toggle/toggle.component.html +29 -0
- package/components/toggle/toggle.component.scss +68 -0
- package/components/tooltip/_tooltip.component.theme.scss +58 -0
- package/components/tooltip/tooltip.component.html +14 -0
- package/components/tooltip/tooltip.component.scss +217 -0
- package/components/tree-grid/_tree-grid-sort.component.theme.scss +14 -0
- package/components/tree-grid/_tree-grid.component.theme.scss +187 -0
- package/components/tree-grid/sort-header.component.html +12 -0
- package/components/tree-grid/sort-icon.component.html +12 -0
- package/components/tree-grid/tree-grid-row-toggle.component.html +9 -0
- package/components/tree-grid/tree-grid.component.scss +14 -0
- package/components/user/_user.component.theme.scss +66 -0
- package/components/user/user.component.html +41 -0
- package/components/user/user.component.scss +48 -0
- package/components/validation/_validation-errors.component.theme.scss +32 -0
- package/components/validation/validation-errors.component.scss +24 -0
- package/components/window/_window.component.theme.scss +12 -0
- package/components/window/window.component.html +52 -0
- package/components/window/window.component.scss +62 -0
- package/components/window/windows-container.component.scss +9 -0
- package/fesm2022/liquid-js-lyr-core-accordion.mjs +459 -0
- package/fesm2022/liquid-js-lyr-core-accordion.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-actions.mjs +413 -0
- package/fesm2022/liquid-js-lyr-core-actions.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-alert.mjs +276 -0
- package/fesm2022/liquid-js-lyr-core-alert.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-badge.mjs +190 -0
- package/fesm2022/liquid-js-lyr-core-badge.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-base.mjs +1573 -0
- package/fesm2022/liquid-js-lyr-core-base.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-breadcrumbs.mjs +301 -0
- package/fesm2022/liquid-js-lyr-core-breadcrumbs.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-button.mjs +1087 -0
- package/fesm2022/liquid-js-lyr-core-button.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-calendar-kit.mjs +3163 -0
- package/fesm2022/liquid-js-lyr-core-calendar-kit.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-calendar.mjs +2121 -0
- package/fesm2022/liquid-js-lyr-core-calendar.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-card.mjs +768 -0
- package/fesm2022/liquid-js-lyr-core-card.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-cdk-table.mjs +1238 -0
- package/fesm2022/liquid-js-lyr-core-cdk-table.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-cdk.mjs +2321 -0
- package/fesm2022/liquid-js-lyr-core-cdk.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-chat.mjs +2020 -0
- package/fesm2022/liquid-js-lyr-core-chat.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-checkbox.mjs +267 -0
- package/fesm2022/liquid-js-lyr-core-checkbox.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-context-menu.mjs +459 -0
- package/fesm2022/liquid-js-lyr-core-context-menu.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-datepicker.mjs +2105 -0
- package/fesm2022/liquid-js-lyr-core-datepicker.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-dialog.mjs +558 -0
- package/fesm2022/liquid-js-lyr-core-dialog.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-divider.mjs +119 -0
- package/fesm2022/liquid-js-lyr-core-divider.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-file-drop.mjs +635 -0
- package/fesm2022/liquid-js-lyr-core-file-drop.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-form-field.mjs +382 -0
- package/fesm2022/liquid-js-lyr-core-form-field.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-icon.mjs +449 -0
- package/fesm2022/liquid-js-lyr-core-icon.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-input-group.mjs +87 -0
- package/fesm2022/liquid-js-lyr-core-input-group.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-input.mjs +459 -0
- package/fesm2022/liquid-js-lyr-core-input.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-layout.mjs +799 -0
- package/fesm2022/liquid-js-lyr-core-layout.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-list.mjs +674 -0
- package/fesm2022/liquid-js-lyr-core-list.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-menu.mjs +905 -0
- package/fesm2022/liquid-js-lyr-core-menu.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-page-indicator.mjs +251 -0
- package/fesm2022/liquid-js-lyr-core-page-indicator.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-pagination.mjs +439 -0
- package/fesm2022/liquid-js-lyr-core-pagination.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-popover.mjs +476 -0
- package/fesm2022/liquid-js-lyr-core-popover.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-progress-bar.mjs +234 -0
- package/fesm2022/liquid-js-lyr-core-progress-bar.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-radio.mjs +458 -0
- package/fesm2022/liquid-js-lyr-core-radio.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-route-tabset.mjs +274 -0
- package/fesm2022/liquid-js-lyr-core-route-tabset.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-search.mjs +676 -0
- package/fesm2022/liquid-js-lyr-core-search.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-select.mjs +4180 -0
- package/fesm2022/liquid-js-lyr-core-select.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-sidebar.mjs +647 -0
- package/fesm2022/liquid-js-lyr-core-sidebar.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-skeleton.mjs +196 -0
- package/fesm2022/liquid-js-lyr-core-skeleton.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-slider.mjs +835 -0
- package/fesm2022/liquid-js-lyr-core-slider.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-spinner.mjs +312 -0
- package/fesm2022/liquid-js-lyr-core-spinner.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-stepper.mjs +624 -0
- package/fesm2022/liquid-js-lyr-core-stepper.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-table.mjs +967 -0
- package/fesm2022/liquid-js-lyr-core-table.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-tabset.mjs +633 -0
- package/fesm2022/liquid-js-lyr-core-tabset.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-theme-select.mjs +364 -0
- package/fesm2022/liquid-js-lyr-core-theme-select.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-theme.mjs +82 -0
- package/fesm2022/liquid-js-lyr-core-theme.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-timepicker.mjs +1294 -0
- package/fesm2022/liquid-js-lyr-core-timepicker.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-toastr.mjs +808 -0
- package/fesm2022/liquid-js-lyr-core-toastr.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-toc.mjs +335 -0
- package/fesm2022/liquid-js-lyr-core-toc.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-toggle.mjs +270 -0
- package/fesm2022/liquid-js-lyr-core-toggle.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-tooltip.mjs +538 -0
- package/fesm2022/liquid-js-lyr-core-tooltip.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-tree-grid.mjs +2568 -0
- package/fesm2022/liquid-js-lyr-core-tree-grid.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-user.mjs +380 -0
- package/fesm2022/liquid-js-lyr-core-user.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-validation.mjs +956 -0
- package/fesm2022/liquid-js-lyr-core-validation.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core-window.mjs +690 -0
- package/fesm2022/liquid-js-lyr-core-window.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-core.mjs +52 -0
- package/package.json +317 -3
- package/schematics/collection.json +19 -0
- package/schematics/ng-add/index.js +30 -0
- package/schematics/ng-add/post-install.js +11 -0
- package/schematics/ng-add/register-modules/app-routing-module-content.js +12 -0
- package/schematics/ng-add/register-modules/index.js +77 -0
- package/schematics/ng-add/register-theme/index.js +68 -0
- package/schematics/ng-add/register-theme/theme-content.js +30 -0
- package/schematics/ng-add/schema.js +0 -0
- package/schematics/ng-add/schema.json +38 -0
- package/schematics/ng-add/setup.js +15 -0
- package/schematics/ng-add/wrap-in-layout/index.js +45 -0
- package/schematics/ng-add/wrap-in-layout/layout-content.js +38 -0
- package/schematics/util/ast.js +38 -0
- package/schematics/util/component.js +119 -0
- package/schematics/util/devkit-tasks.js +7 -0
- package/schematics/util/file.js +23 -0
- package/schematics/util/index.js +5 -0
- package/schematics/util/package.js +109 -0
- package/schematics/util/project.js +7 -0
- package/styles/_all.scss +3 -0
- package/styles/_globals.scss +21 -0
- package/styles/_looks.scss +25 -0
- package/styles/_themes.scss +6 -0
- package/styles/_theming-variables.scss +31 -0
- package/styles/_theming.scss +12 -0
- package/styles/core/_functions.scss +31 -0
- package/styles/core/_look.scss +20 -0
- package/styles/core/_mixins.scss +345 -0
- package/styles/core/_variants.scss +18 -0
- package/styles/core/theming/_get-value.scss +83 -0
- package/styles/core/theming/_install.scss +118 -0
- package/styles/core/theming/_palette.scss +110 -0
- package/styles/core/theming/_register.scss +64 -0
- package/styles/core/theming/_scale.scss +50 -0
- package/styles/global/_breakpoints.scss +82 -0
- package/styles/global/_components.scss +164 -0
- package/styles/global/_normalize.scss +345 -0
- package/styles/global/_overrides.scss +5 -0
- package/styles/global/_styles.scss +17 -0
- package/styles/global/typography/_typography.scss +167 -0
- package/styles/prebuilt/components-custom-properties.css +1 -0
- package/styles/prebuilt/components-custom-properties.scss +8 -0
- package/styles/prebuilt/corporate-custom-properties.css +1 -0
- package/styles/prebuilt/corporate-custom-properties.scss +5 -0
- package/styles/prebuilt/corporate.css +1 -0
- package/styles/prebuilt/corporate.scss +7 -0
- package/styles/prebuilt/cosmic-custom-properties.css +1 -0
- package/styles/prebuilt/cosmic-custom-properties.scss +5 -0
- package/styles/prebuilt/cosmic.css +1 -0
- package/styles/prebuilt/cosmic.scss +7 -0
- package/styles/prebuilt/dark-custom-properties.css +1 -0
- package/styles/prebuilt/dark-custom-properties.scss +5 -0
- package/styles/prebuilt/dark.css +1 -0
- package/styles/prebuilt/dark.scss +7 -0
- package/styles/prebuilt/default-custom-properties.css +1 -0
- package/styles/prebuilt/default-custom-properties.scss +5 -0
- package/styles/prebuilt/default.css +1 -0
- package/styles/prebuilt/default.scss +7 -0
- package/styles/prebuilt/material-dark-custom-properties.css +1 -0
- package/styles/prebuilt/material-dark-custom-properties.scss +5 -0
- package/styles/prebuilt/material-dark.css +1 -0
- package/styles/prebuilt/material-dark.scss +7 -0
- package/styles/prebuilt/material-light-custom-properties.css +1 -0
- package/styles/prebuilt/material-light-custom-properties.scss +5 -0
- package/styles/prebuilt/material-light.css +1 -0
- package/styles/prebuilt/material-light.scss +7 -0
- package/styles/themes/_corporate.scss +26 -0
- package/styles/themes/_cosmic.scss +46 -0
- package/styles/themes/_dark.scss +50 -0
- package/styles/themes/_default.scss +428 -0
- package/styles/themes/_mapping.scss +3457 -0
- package/styles/themes/_material-dark.scss +112 -0
- package/styles/themes/_material-light.scss +115 -0
- package/styles/themes/_material-shared.scss +68 -0
- package/types/liquid-js-lyr-core-accordion.d.ts +216 -0
- package/types/liquid-js-lyr-core-actions.d.ts +210 -0
- package/types/liquid-js-lyr-core-alert.d.ts +221 -0
- package/types/liquid-js-lyr-core-badge.d.ts +149 -0
- package/types/liquid-js-lyr-core-base.d.ts +1036 -0
- package/types/liquid-js-lyr-core-breadcrumbs.d.ts +95 -0
- package/types/liquid-js-lyr-core-button.d.ts +1046 -0
- package/types/liquid-js-lyr-core-calendar-kit.d.ts +1135 -0
- package/types/liquid-js-lyr-core-calendar.d.ts +1074 -0
- package/types/liquid-js-lyr-core-card.d.ts +500 -0
- package/types/liquid-js-lyr-core-cdk-table.d.ts +244 -0
- package/types/liquid-js-lyr-core-cdk.d.ts +720 -0
- package/types/liquid-js-lyr-core-chat.d.ts +1032 -0
- package/types/liquid-js-lyr-core-checkbox.d.ts +370 -0
- package/types/liquid-js-lyr-core-context-menu.d.ts +259 -0
- package/types/liquid-js-lyr-core-datepicker.d.ts +1070 -0
- package/types/liquid-js-lyr-core-dialog.d.ts +387 -0
- package/types/liquid-js-lyr-core-divider.d.ts +56 -0
- package/types/liquid-js-lyr-core-file-drop.d.ts +294 -0
- package/types/liquid-js-lyr-core-form-field.d.ts +146 -0
- package/types/liquid-js-lyr-core-icon.d.ts +277 -0
- package/types/liquid-js-lyr-core-input-group.d.ts +26 -0
- package/types/liquid-js-lyr-core-input.d.ts +387 -0
- package/types/liquid-js-lyr-core-layout.d.ts +331 -0
- package/types/liquid-js-lyr-core-list.d.ts +279 -0
- package/types/liquid-js-lyr-core-menu.d.ts +482 -0
- package/types/liquid-js-lyr-core-page-indicator.d.ts +93 -0
- package/types/liquid-js-lyr-core-pagination.d.ts +169 -0
- package/types/liquid-js-lyr-core-popover.d.ts +247 -0
- package/types/liquid-js-lyr-core-progress-bar.d.ts +181 -0
- package/types/liquid-js-lyr-core-radio.d.ts +483 -0
- package/types/liquid-js-lyr-core-route-tabset.d.ts +153 -0
- package/types/liquid-js-lyr-core-search.d.ts +241 -0
- package/types/liquid-js-lyr-core-select.d.ts +2570 -0
- package/types/liquid-js-lyr-core-sidebar.d.ts +335 -0
- package/types/liquid-js-lyr-core-skeleton.d.ts +67 -0
- package/types/liquid-js-lyr-core-slider.d.ts +389 -0
- package/types/liquid-js-lyr-core-spinner.d.ts +167 -0
- package/types/liquid-js-lyr-core-stepper.d.ts +285 -0
- package/types/liquid-js-lyr-core-table.d.ts +357 -0
- package/types/liquid-js-lyr-core-tabset.d.ts +311 -0
- package/types/liquid-js-lyr-core-theme-select.d.ts +120 -0
- package/types/liquid-js-lyr-core-theme.d.ts +26 -0
- package/types/liquid-js-lyr-core-timepicker.d.ts +638 -0
- package/types/liquid-js-lyr-core-toastr.d.ts +453 -0
- package/types/liquid-js-lyr-core-toc.d.ts +114 -0
- package/types/liquid-js-lyr-core-toggle.d.ts +357 -0
- package/types/liquid-js-lyr-core-tooltip.d.ts +270 -0
- package/types/liquid-js-lyr-core-tree-grid.d.ts +790 -0
- package/types/liquid-js-lyr-core-user.d.ts +263 -0
- package/types/liquid-js-lyr-core-validation.d.ts +452 -0
- package/types/liquid-js-lyr-core-window.d.ts +376 -0
- package/types/liquid-js-lyr-core.d.ts +55 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Akveo.
|
|
4
|
+
Copyright (c) 2026 Liquid-JS and contributors.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Lyra
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/Liquid-JS/lyra/blob/master/LICENSE.txt)
|
|
4
|
+
[](https://www.npmjs.com/package/@liquid-js/lyr-core)
|
|
5
|
+
[](https://www.npmjs.com/package/@liquid-js/lyr-core)
|
|
6
|
+
|
|
7
|
+
Customizable Angular UI components: over 50 components, a layout, and a theming system with six built-in themes.
|
|
8
|
+
|
|
9
|
+
## Quick links
|
|
10
|
+
|
|
11
|
+
- [Documentation](https://liquid-js.github.io/lyra/)
|
|
12
|
+
- [Getting started](https://liquid-js.github.io/lyra/docs/guides/install-lyra/)
|
|
13
|
+
- [Components](https://liquid-js.github.io/lyra/components/all-components/)
|
|
14
|
+
- [Theme editor](https://liquid-js.github.io/lyra/theme/theme-editor/)
|
|
15
|
+
|
|
16
|
+
### Installing
|
|
17
|
+
|
|
18
|
+
The Angular CLI schematic installs Lyra with its icons and sets up the theme:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
ng add @liquid-js/lyr-core
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or by hand:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm install --save @liquid-js/lyr-core @liquid-js/lyr-icons @angular/cdk
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Provide the theme
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { provideRouter } from '@angular/router'
|
|
34
|
+
import { provideNbTheme } from '@liquid-js/lyr-core'
|
|
35
|
+
import { provideNbIcons } from '@liquid-js/lyr-icons'
|
|
36
|
+
|
|
37
|
+
bootstrapApplication(AppComponent, {
|
|
38
|
+
providers: [
|
|
39
|
+
provideRouter(routes),
|
|
40
|
+
provideNbTheme(),
|
|
41
|
+
provideNbIcons()
|
|
42
|
+
]
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Add a prebuilt theme to the `styles` in `angular.json`, or install a
|
|
47
|
+
[customizable theme](https://liquid-js.github.io/lyra/theme/customization/enable-customizable-theme/):
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
"styles": [
|
|
51
|
+
"node_modules/@liquid-js/lyr-core/styles/prebuilt/default.css"
|
|
52
|
+
]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Import components
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import { NbButtonComponent, NbLayoutColumnComponent, NbLayoutComponent } from '@liquid-js/lyr-core'
|
|
59
|
+
|
|
60
|
+
@Component({
|
|
61
|
+
...
|
|
62
|
+
imports: [
|
|
63
|
+
...
|
|
64
|
+
NbLayoutComponent,
|
|
65
|
+
NbLayoutColumnComponent,
|
|
66
|
+
NbButtonComponent
|
|
67
|
+
]
|
|
68
|
+
})
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Include them in HTML template
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<nb-layout>
|
|
75
|
+
<nb-layout-column>
|
|
76
|
+
<button nbButton status="primary">Save</button>
|
|
77
|
+
</nb-layout-column>
|
|
78
|
+
</nb-layout>
|
|
79
|
+
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
@mixin nb-accordion-item-header() {
|
|
4
|
+
border-bottom-width: nb-theme(accordion-header-border-width);
|
|
5
|
+
border-bottom-style: nb-theme(accordion-header-border-style);
|
|
6
|
+
border-bottom-color: nb-theme(accordion-header-border-color);
|
|
7
|
+
color: nb-theme(accordion-header-text-color);
|
|
8
|
+
font-family: nb-theme(accordion-header-text-font-family);
|
|
9
|
+
font-size: nb-theme(accordion-header-text-font-size);
|
|
10
|
+
font-weight: nb-theme(accordion-header-text-font-weight);
|
|
11
|
+
line-height: nb-theme(accordion-header-text-line-height);
|
|
12
|
+
padding: nb-theme(accordion-padding);
|
|
13
|
+
|
|
14
|
+
@include nb-headings;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin nb-accordion-theme() {
|
|
18
|
+
nb-accordion {
|
|
19
|
+
display: block;
|
|
20
|
+
border: nb-theme(accordion-border-width) nb-theme(accordion-border-style) nb-theme(accordion-border-color);
|
|
21
|
+
box-shadow: nb-theme(accordion-shadow);
|
|
22
|
+
border-radius: nb-theme(accordion-border-radius);
|
|
23
|
+
|
|
24
|
+
// Over the page, a shadow stands for the border, as on a floating card.
|
|
25
|
+
&.appearance-floating {
|
|
26
|
+
border-color: transparent;
|
|
27
|
+
box-shadow: nb-theme(accordion-floating-shadow);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
nb-accordion-item-header {
|
|
32
|
+
@include nb-accordion-item-header;
|
|
33
|
+
|
|
34
|
+
column-gap: 1rem;
|
|
35
|
+
|
|
36
|
+
// At the end of the header, where its text would end.
|
|
37
|
+
.expansion-indicator {
|
|
38
|
+
flex: none;
|
|
39
|
+
margin-inline-start: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// A button: it shows the pointer over it, and the keyboard's focus with a ring inside the accordion's edges.
|
|
43
|
+
&:not([aria-disabled=true]):hover {
|
|
44
|
+
background-color: nb-theme(accordion-header-hover-background-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus-visible {
|
|
48
|
+
box-shadow: inset 0 0 0 nb-theme(accordion-header-outline-width) nb-theme(accordion-header-outline-color);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
nb-accordion-item {
|
|
53
|
+
background-color: nb-theme(accordion-item-background-color);
|
|
54
|
+
color: nb-theme(accordion-item-text-color);
|
|
55
|
+
font-family: nb-theme(accordion-item-text-font-family);
|
|
56
|
+
font-size: nb-theme(accordion-item-text-font-size);
|
|
57
|
+
font-weight: nb-theme(accordion-item-text-font-weight);
|
|
58
|
+
line-height: nb-theme(accordion-item-text-line-height);
|
|
59
|
+
|
|
60
|
+
&.disabled nb-accordion-item-header {
|
|
61
|
+
color: nb-theme(accordion-header-disabled-text-color);
|
|
62
|
+
cursor: default;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// The accordion's corners, inside its border.
|
|
66
|
+
$inner-radius: max(0px, calc(#{nb-theme(accordion-border-radius)} - #{nb-theme(accordion-border-width)}));
|
|
67
|
+
|
|
68
|
+
&:first-child {
|
|
69
|
+
border-start-start-radius: $inner-radius;
|
|
70
|
+
border-start-end-radius: $inner-radius;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:last-child {
|
|
74
|
+
border-end-start-radius: $inner-radius;
|
|
75
|
+
border-end-end-radius: $inner-radius;
|
|
76
|
+
|
|
77
|
+
&.collapsed nb-accordion-item-header {
|
|
78
|
+
border-bottom: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// The header's hover and focus keep to the accordion's corners.
|
|
83
|
+
&:first-child > nb-accordion-item-header {
|
|
84
|
+
border-start-start-radius: $inner-radius;
|
|
85
|
+
border-start-end-radius: $inner-radius;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:last-child.collapsed > nb-accordion-item-header {
|
|
89
|
+
border-end-start-radius: $inner-radius;
|
|
90
|
+
border-end-end-radius: $inner-radius;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
nb-accordion-item:not(.collapsed) + nb-accordion-item nb-accordion-item-header {
|
|
95
|
+
border-top-color: nb-theme(accordion-header-border-color);
|
|
96
|
+
border-top-style: nb-theme(accordion-header-border-style);
|
|
97
|
+
border-top-width: nb-theme(accordion-header-border-width);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
nb-accordion-item-body .item-body {
|
|
101
|
+
flex: 1;
|
|
102
|
+
overflow: auto;
|
|
103
|
+
padding: nb-theme(accordion-padding);
|
|
104
|
+
position: relative;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
|
|
6
|
+
&:focus {
|
|
7
|
+
outline: 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Turns over as the item expands, and back as it collapses; the timing function is the entered state's.
|
|
12
|
+
.expansion-indicator {
|
|
13
|
+
transition: transform 150ms ease-out;
|
|
14
|
+
|
|
15
|
+
:host(.accordion-item-header-expanded) & {
|
|
16
|
+
transform: rotate(180deg);
|
|
17
|
+
transition-timing-function: ease-in;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (prefers-reduced-motion: reduce) {
|
|
21
|
+
transition: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
@mixin nb-actions-theme() {
|
|
4
|
+
nb-actions {
|
|
5
|
+
background-color: nb-theme(actions-background-color);
|
|
6
|
+
color: nb-theme(actions-text-color);
|
|
7
|
+
font-family: nb-theme(actions-text-font-family);
|
|
8
|
+
font-weight: nb-theme(actions-text-font-weight);
|
|
9
|
+
line-height: nb-theme(actions-text-line-height);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@each $size in nb-get-sizes() {
|
|
13
|
+
nb-actions.size-#{$size} nb-action {
|
|
14
|
+
font-size: nb-theme(actions-#{$size}-text-font-size);
|
|
15
|
+
height: nb-theme(actions-#{$size}-height);
|
|
16
|
+
padding: nb-theme(actions-#{$size}-padding);
|
|
17
|
+
|
|
18
|
+
nb-icon {
|
|
19
|
+
font-size: nb-theme(actions-#{$size}-icon-height);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
nb-action {
|
|
25
|
+
$divider: nb-theme(actions-divider-width) nb-theme(actions-divider-style) nb-theme(actions-divider-color);
|
|
26
|
+
@include nb-ltr(border-left, $divider);
|
|
27
|
+
@include nb-rtl(border-right, $divider);
|
|
28
|
+
|
|
29
|
+
&:first-child {
|
|
30
|
+
@include nb-ltr(border-left, none !important);
|
|
31
|
+
@include nb-rtl(border-right, none !important);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
nb-icon {
|
|
35
|
+
color: nb-theme(actions-icon-color);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.disabled {
|
|
39
|
+
color: nb-theme(actions-disabled-text-color);
|
|
40
|
+
|
|
41
|
+
nb-icon {
|
|
42
|
+
color: nb-theme(actions-disabled-icon-color);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
background: transparent;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host(.disabled) {
|
|
11
|
+
cursor: not-allowed;
|
|
12
|
+
|
|
13
|
+
a,
|
|
14
|
+
nb-icon {
|
|
15
|
+
cursor: not-allowed;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host-context(nb-actions.full-width) {
|
|
20
|
+
justify-content: center;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a.icon-container {
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
// A badge on the icon sits over its corner, so it covers only that corner, e.g. of a bell.
|
|
28
|
+
nb-badge {
|
|
29
|
+
translate: var(--nb-action-badge-x, 0) var(--nb-action-badge-y, 0);
|
|
30
|
+
|
|
31
|
+
&.position-top {
|
|
32
|
+
--nb-action-badge-y: -50%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.position-bottom {
|
|
36
|
+
--nb-action-badge-y: 50%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.position-right {
|
|
40
|
+
--nb-action-badge-x: 50%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.position-left {
|
|
44
|
+
--nb-action-badge-x: -50%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.position-end {
|
|
48
|
+
--nb-action-badge-x: 50%;
|
|
49
|
+
|
|
50
|
+
@include nb-rtl(--nb-action-badge-x, -50%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.position-start {
|
|
54
|
+
--nb-action-badge-x: -50%;
|
|
55
|
+
|
|
56
|
+
@include nb-rtl(--nb-action-badge-x, 50%);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover,
|
|
61
|
+
&:focus {
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
nb-icon:hover {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@if (icon()) {
|
|
2
|
+
@if (link()) {
|
|
3
|
+
<a class="icon-container"
|
|
4
|
+
[attr.tabindex]="disabled() ? -1 : 0"
|
|
5
|
+
[attr.aria-disabled]="disabled() || null"
|
|
6
|
+
[routerLink]="link()"
|
|
7
|
+
[title]="title()">
|
|
8
|
+
<nb-icon [config]="icon()" />
|
|
9
|
+
<ng-container [ngTemplateOutlet]="badgeTemplate" />
|
|
10
|
+
</a>
|
|
11
|
+
}
|
|
12
|
+
@if (href() && !link()) {
|
|
13
|
+
<a class="icon-container"
|
|
14
|
+
[attr.tabindex]="disabled() ? -1 : 0"
|
|
15
|
+
[attr.aria-disabled]="disabled() || null"
|
|
16
|
+
[href]="href()"
|
|
17
|
+
[title]="title()">
|
|
18
|
+
<nb-icon [config]="icon()" />
|
|
19
|
+
<ng-container [ngTemplateOutlet]="badgeTemplate" />
|
|
20
|
+
</a>
|
|
21
|
+
}
|
|
22
|
+
@if (!href() && !link()) {
|
|
23
|
+
<a class="icon-container"
|
|
24
|
+
[attr.tabindex]="disabled() ? -1 : 0"
|
|
25
|
+
[attr.aria-disabled]="disabled() || null"
|
|
26
|
+
href="#"
|
|
27
|
+
[title]="title()"
|
|
28
|
+
(click)="$event.preventDefault()">
|
|
29
|
+
<nb-icon [config]="icon()" />
|
|
30
|
+
<ng-container [ngTemplateOutlet]="badgeTemplate" />
|
|
31
|
+
</a>
|
|
32
|
+
}
|
|
33
|
+
} @else {
|
|
34
|
+
<ng-content />
|
|
35
|
+
<ng-container [ngTemplateOutlet]="badgeTemplate" />
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
<ng-template #badgeTemplate>
|
|
39
|
+
@if (badgeText() || badgeDot()) {
|
|
40
|
+
<nb-badge [text]="badgeText()"
|
|
41
|
+
[dotMode]="badgeDot()"
|
|
42
|
+
[status]="badgeStatus()"
|
|
43
|
+
[position]="badgePosition()" />
|
|
44
|
+
}
|
|
45
|
+
</ng-template>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
@mixin nb-alert-theme() {
|
|
4
|
+
nb-alert {
|
|
5
|
+
border-radius: nb-theme(alert-border-radius);
|
|
6
|
+
box-shadow: nb-theme(alert-shadow);
|
|
7
|
+
font-family: nb-theme(alert-text-font-family);
|
|
8
|
+
font-size: nb-theme(alert-text-font-size);
|
|
9
|
+
font-weight: nb-theme(alert-text-font-weight);
|
|
10
|
+
line-height: nb-theme(alert-text-line-height);
|
|
11
|
+
padding: nb-theme(alert-padding);
|
|
12
|
+
margin-bottom: nb-theme(alert-bottom-margin);
|
|
13
|
+
|
|
14
|
+
@include nb-scrollbars(
|
|
15
|
+
nb-theme(alert-scrollbar-color),
|
|
16
|
+
nb-theme(alert-scrollbar-background-color),
|
|
17
|
+
nb-theme(alert-scrollbar-width)
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
&.closable {
|
|
21
|
+
@include nb-ltr(padding-right, nb-theme(alert-closable-start-padding));
|
|
22
|
+
@include nb-rtl(padding-left, nb-theme(alert-closable-start-padding));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@each $size in nb-get-sizes() {
|
|
27
|
+
nb-alert.size-#{$size} {
|
|
28
|
+
height: nb-theme(alert-#{$size}-height);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@each $status in nb-get-statuses() {
|
|
33
|
+
nb-alert.status-#{$status} {
|
|
34
|
+
&.appearance-filled {
|
|
35
|
+
color: nb-theme(alert-#{$status}-text-color);
|
|
36
|
+
background-color: nb-theme(alert-#{$status}-background-color);
|
|
37
|
+
|
|
38
|
+
a,
|
|
39
|
+
a:hover {
|
|
40
|
+
color: nb-theme(alert-#{$status}-text-color);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Tinted, with the alert's own text colour, so it reads as a message rather than an outline button.
|
|
45
|
+
&.appearance-outline {
|
|
46
|
+
color: nb-theme(alert-outline-#{$status}-text-color);
|
|
47
|
+
background-color: nb-theme(alert-outline-#{$status}-background-color);
|
|
48
|
+
border: nb-theme(alert-outline-width) solid nb-theme(alert-outline-#{$status}-color);
|
|
49
|
+
|
|
50
|
+
a,
|
|
51
|
+
a:hover {
|
|
52
|
+
color: nb-theme(alert-outline-#{$status}-text-color);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.appearance-accent {
|
|
57
|
+
color: nb-theme(alert-basic-text-color);
|
|
58
|
+
background-color: nb-theme(alert-basic-background-color);
|
|
59
|
+
border-top: nb-theme(alert-border-radius) solid nb-theme(alert-accent-#{$status}-color);
|
|
60
|
+
|
|
61
|
+
a,
|
|
62
|
+
a:hover {
|
|
63
|
+
color: nb-theme(alert-basic-text-color);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@if (closable()) {
|
|
2
|
+
<!-- Chrome, as a window's close button: ghost, light on a filled colour. -->
|
|
3
|
+
<button type="button"
|
|
4
|
+
nbButton
|
|
5
|
+
ghost
|
|
6
|
+
size="small"
|
|
7
|
+
class="close"
|
|
8
|
+
[status]="closeStatus()"
|
|
9
|
+
[attr.aria-label]="texts().close"
|
|
10
|
+
(click)="onClose()">
|
|
11
|
+
<nb-icon icon="close-outline"
|
|
12
|
+
pack="essentials" />
|
|
13
|
+
</button>
|
|
14
|
+
}
|
|
15
|
+
<ng-content />
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<nb-option-list *nbPortal
|
|
2
|
+
[size]="size()"
|
|
3
|
+
[position]="overlayPosition()"
|
|
4
|
+
[style.width.px]="optionsWidth() ?? hostWidth"
|
|
5
|
+
role="listbox"
|
|
6
|
+
[id]="id"
|
|
7
|
+
[class.empty]="!options().length"
|
|
8
|
+
[class]="optionsListClass()">
|
|
9
|
+
<ng-content select="nb-option, nb-option-group" />
|
|
10
|
+
</nb-option-list>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
@mixin nb-badge-theme() {
|
|
4
|
+
nb-badge {
|
|
5
|
+
border-radius: nb-theme(badge-border-radius);
|
|
6
|
+
font-family: nb-theme(badge-text-font-family);
|
|
7
|
+
font-size: nb-theme(badge-text-font-size);
|
|
8
|
+
font-weight: nb-theme(badge-text-font-weight);
|
|
9
|
+
line-height: nb-theme(badge-text-line-height);
|
|
10
|
+
padding: nb-theme(badge-padding);
|
|
11
|
+
|
|
12
|
+
&.dot-mode {
|
|
13
|
+
padding: nb-theme(badge-dot-mode-padding);
|
|
14
|
+
border-radius: nb-theme(badge-dot-mode-border-radius);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@each $status in nb-get-statuses() {
|
|
19
|
+
nb-badge.status-#{$status} {
|
|
20
|
+
color: nb-theme(badge-#{$status}-text-color);
|
|
21
|
+
background-color: nb-theme(badge-#{$status}-background-color);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
position: absolute;
|
|
5
|
+
text-align: center;
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
vertical-align: baseline;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host(.position-top) {
|
|
11
|
+
top: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(.position-right) {
|
|
15
|
+
right: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host(.position-bottom) {
|
|
19
|
+
bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host(.position-left) {
|
|
23
|
+
left: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host(.position-center) {
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host(.position-start) {
|
|
32
|
+
@include nb-ltr(left, 0);
|
|
33
|
+
@include nb-rtl(right, 0);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(.position-end) {
|
|
37
|
+
@include nb-ltr(right, 0);
|
|
38
|
+
@include nb-rtl(left, 0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(.position-inline) {
|
|
42
|
+
position: static;
|
|
43
|
+
display: inline-block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host(.position-inline.dot-mode) {
|
|
47
|
+
vertical-align: middle;
|
|
48
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use "../../styles/theming" as *;
|
|
2
|
+
|
|
3
|
+
@mixin nb-breadcrumbs-theme() {
|
|
4
|
+
nb-breadcrumbs {
|
|
5
|
+
color: nb-theme(breadcrumbs-text-color);
|
|
6
|
+
font-family: nb-theme(breadcrumbs-text-font-family);
|
|
7
|
+
font-size: nb-theme(breadcrumbs-text-font-size);
|
|
8
|
+
font-weight: nb-theme(breadcrumbs-text-font-weight);
|
|
9
|
+
line-height: nb-theme(breadcrumbs-text-line-height);
|
|
10
|
+
|
|
11
|
+
ol {
|
|
12
|
+
gap: 0 nb-theme(breadcrumbs-gap);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
nb-breadcrumb {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: nb-theme(breadcrumbs-gap);
|
|
20
|
+
|
|
21
|
+
a {
|
|
22
|
+
color: nb-theme(breadcrumbs-link-text-color);
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
border-radius: nb-theme(breadcrumbs-link-border-radius);
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
color: nb-theme(breadcrumbs-link-hover-text-color);
|
|
28
|
+
text-decoration: underline;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:focus {
|
|
32
|
+
color: nb-theme(breadcrumbs-link-text-color);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// The ring shows what has focus; the text takes the basic colour, as primary text is hard to read on the ring
|
|
36
|
+
// in the dark themes.
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
outline: none;
|
|
39
|
+
color: nb-theme(breadcrumbs-link-focus-text-color);
|
|
40
|
+
@include nb-outline(nb-theme(breadcrumbs-link-outline-width), nb-theme(breadcrumbs-link-outline-color));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.current {
|
|
45
|
+
color: nb-theme(breadcrumbs-current-text-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.separator {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
color: nb-theme(breadcrumbs-separator-text-color);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|