@sarasanalytics-com/design-system 0.0.42 → 0.0.43
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/.editorconfig +16 -0
- package/.eslintrc.json +23 -0
- package/.storybook/main.ts +21 -0
- package/.storybook/manager.ts +17 -0
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.ts +66 -0
- package/.storybook/tsconfig.doc.json +10 -0
- package/.storybook/tsconfig.json +11 -0
- package/.storybook/typings.d.ts +4 -0
- package/.vscode/extensions.json +7 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/settings.json +13 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +45 -24
- package/angular.json +195 -0
- package/build-storybook.log +45 -0
- package/documentation.json +0 -0
- package/generate-public-api.js +59 -0
- package/package.json +74 -19
- package/projects/component-library/README.md +24 -0
- package/projects/component-library/ng-package.json +8 -0
- package/projects/component-library/package.json +12 -0
- package/projects/component-library/src/interfaces/avatar-interface.ts +6 -0
- package/projects/component-library/src/interfaces/button-interface.ts +37 -0
- package/{interfaces/card-carousel-interface.d.ts → projects/component-library/src/interfaces/card-carousel-interface.ts} +2 -1
- package/projects/component-library/src/interfaces/chip-interface.ts +11 -0
- package/projects/component-library/src/interfaces/grid-interface.ts +24 -0
- package/projects/component-library/src/interfaces/icon-interface.ts +21 -0
- package/projects/component-library/src/interfaces/select-interface.ts +20 -0
- package/projects/component-library/src/interfaces/tab-interface.ts +6 -0
- package/{interfaces/toast-interface.d.ts → projects/component-library/src/interfaces/toast-interface.ts} +1 -1
- package/projects/component-library/src/lib/accordion/accordion.component.css +188 -0
- package/projects/component-library/src/lib/accordion/accordion.component.html +151 -0
- package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +23 -0
- package/projects/component-library/src/lib/accordion/accordion.component.ts +129 -0
- package/projects/component-library/src/lib/avatar/avatar.component.css +48 -0
- package/projects/component-library/src/lib/avatar/avatar.component.html +5 -0
- package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +23 -0
- package/projects/component-library/src/lib/avatar/avatar.component.ts +50 -0
- package/projects/component-library/src/lib/button/button.component.css +145 -0
- package/projects/component-library/src/lib/button/button.component.html +25 -0
- package/projects/component-library/src/lib/button/button.component.spec.ts +23 -0
- package/projects/component-library/src/lib/button/button.component.ts +82 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +67 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +20 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +191 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.html +1 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +70 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +1 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +13 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +4 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +3 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +1 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +3 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +1 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +12 -0
- package/projects/component-library/src/lib/card/card.component.css +149 -0
- package/projects/component-library/src/lib/card/card.component.html +46 -0
- package/projects/component-library/src/lib/card/card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card.component.ts +47 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +79 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +55 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +44 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +80 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +24 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +19 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +91 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +54 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +89 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.css +79 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.html +27 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +23 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.ts +38 -0
- package/projects/component-library/src/lib/chips/chips.component.css +129 -0
- package/projects/component-library/src/lib/chips/chips.component.html +17 -0
- package/projects/component-library/src/lib/chips/chips.component.spec.ts +23 -0
- package/projects/component-library/src/lib/chips/chips.component.ts +54 -0
- package/projects/component-library/src/lib/component-library.component.spec.ts +23 -0
- package/projects/component-library/src/lib/component-library.component.ts +16 -0
- package/projects/component-library/src/lib/component-library.service.spec.ts +16 -0
- package/projects/component-library/src/lib/component-library.service.ts +9 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.css +33 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.html +11 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +23 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.ts +36 -0
- package/projects/component-library/src/lib/form-input/form-input.component.css +164 -0
- package/projects/component-library/src/lib/form-input/form-input.component.html +55 -0
- package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +23 -0
- package/projects/component-library/src/lib/form-input/form-input.component.ts +282 -0
- package/projects/component-library/src/lib/form-select/form-select.component.css +158 -0
- package/projects/component-library/src/lib/form-select/form-select.component.html +38 -0
- package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +23 -0
- package/projects/component-library/src/lib/form-select/form-select.component.ts +72 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +78 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +31 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +23 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +89 -0
- package/projects/component-library/src/lib/header/header.component.css +62 -0
- package/projects/component-library/src/lib/header/header.component.html +23 -0
- package/projects/component-library/src/lib/header/header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/header/header.component.ts +28 -0
- package/projects/component-library/src/lib/icon/icon.component.css +65 -0
- package/projects/component-library/src/lib/icon/icon.component.html +9 -0
- package/projects/component-library/src/lib/icon/icon.component.ts +64 -0
- package/projects/component-library/src/lib/icon/icon.service.ts +26 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.css +109 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.html +51 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +23 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.ts +180 -0
- package/projects/component-library/src/lib/list/list.component.css +28 -0
- package/projects/component-library/src/lib/list/list.component.html +10 -0
- package/projects/component-library/src/lib/list/list.component.spec.ts +23 -0
- package/projects/component-library/src/lib/list/list.component.ts +15 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.css +52 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.html +15 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +23 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.ts +31 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.css +76 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.html +30 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +23 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.ts +14 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +30 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +4 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +23 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +24 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.css +128 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.html +28 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +23 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.ts +35 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +118 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +11 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +23 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +74 -0
- package/projects/component-library/src/lib/spinner/spinner.component.css +41 -0
- package/projects/component-library/src/lib/spinner/spinner.component.html +1 -0
- package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +23 -0
- package/projects/component-library/src/lib/spinner/spinner.component.ts +15 -0
- package/projects/component-library/src/lib/stepper/stepper.component.css +96 -0
- package/projects/component-library/src/lib/stepper/stepper.component.html +14 -0
- package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +23 -0
- package/projects/component-library/src/lib/stepper/stepper.component.ts +61 -0
- package/projects/component-library/src/lib/tabs/tabs.component.css +100 -0
- package/projects/component-library/src/lib/tabs/tabs.component.html +16 -0
- package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +23 -0
- package/projects/component-library/src/lib/tabs/tabs.component.ts +37 -0
- package/projects/component-library/src/lib/toast/toast.component.css +115 -0
- package/projects/component-library/src/lib/toast/toast.component.html +29 -0
- package/projects/component-library/src/lib/toast/toast.component.spec.ts +23 -0
- package/projects/component-library/src/lib/toast/toast.component.ts +87 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +144 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +31 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +23 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +37 -0
- package/{public-api.d.ts → projects/component-library/src/public-api.ts} +12 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +22 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +23 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +13 -0
- package/projects/component-library/src/utils/validators.ts +100 -0
- package/projects/component-library/tsconfig.lib.json +14 -0
- package/projects/component-library/tsconfig.lib.prod.json +10 -0
- package/projects/component-library/tsconfig.spec.json +14 -0
- package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
- package/src/Saras-logo.svg +15 -0
- package/src/app/app.component.css +82 -0
- package/src/app/app.component.html +663 -0
- package/src/app/app.component.spec.ts +29 -0
- package/src/app/app.component.ts +1341 -0
- package/src/app/app.config.ts +56 -0
- package/src/app/app.routes.ts +3 -0
- package/src/app/data.ts +52 -0
- package/src/app/kitchen-sink/kitchen-sink.component.css +30 -0
- package/src/app/kitchen-sink/kitchen-sink.component.html +7 -0
- package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +23 -0
- package/src/app/kitchen-sink/kitchen-sink.component.ts +92 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/analysis.svg +1 -0
- package/src/assets/arrowRightOutlined.svg +1 -0
- package/src/assets/avatar.svg +1 -0
- package/src/assets/bpn.svg +1 -0
- package/src/assets/businessStatsFilled.svg +1 -0
- package/src/assets/channelkey.svg +1 -0
- package/src/assets/chatHelpOutlined.svg +1 -0
- package/src/assets/checkCircleFilled.svg +1 -0
- package/src/assets/checkCircleOutlined.svg +1 -0
- package/src/assets/checkOutlined.svg +1 -0
- package/src/assets/circleFilled.svg +1 -0
- package/src/assets/closeBlueOutlined.svg +1 -0
- package/src/assets/closeCircleFilled.svg +1 -0
- package/src/assets/closeOutlined.svg +1 -0
- package/src/assets/dataonavatar.svg +1 -0
- package/src/assets/datonAvatar.png +0 -0
- package/src/assets/desktopSpeakerOutlined.svg +1 -0
- package/src/assets/disabledCheckboxFilled.svg +1 -0
- package/src/assets/doubleDownOutlined.svg +1 -0
- package/src/assets/downChevronOutlined.svg +3 -0
- package/src/assets/downOutlined.svg +1 -0
- package/src/assets/errorCircleOutlined.svg +1 -0
- package/src/assets/errorCrossOutlined.svg +3 -0
- package/src/assets/eyeFilled.svg +1 -0
- package/src/assets/eyeOff.svg +3 -0
- package/src/assets/eyeOutlined.svg +1 -0
- package/src/assets/formDetailsOutlined.svg +1 -0
- package/src/assets/gridViewOutlined.svg +1 -0
- package/src/assets/headsetOutlined.svg +3 -0
- package/src/assets/homeOutlined.svg +1 -0
- package/src/assets/icons/analysis1.svg +1 -0
- package/src/assets/infoCircleOutlined.svg +3 -0
- package/src/assets/infoTriangleFilled.svg +1 -0
- package/src/assets/infoTriangleOutlined.svg +1 -0
- package/src/assets/innosupps.svg +1 -0
- package/src/assets/leftChevronCircle.svg +2 -0
- package/src/assets/locationOutlined.svg +1 -0
- package/src/assets/loginDashboard.png +0 -0
- package/src/assets/mailOutlined.svg +1 -0
- package/src/assets/multiConnectionHub.svg +1 -0
- package/src/assets/murad.svg +1 -0
- package/src/assets/personOutlined.svg +1 -0
- package/src/assets/pricingIcon.svg +3 -0
- package/src/assets/rightChevronCircle.svg +1 -0
- package/src/assets/rightChevronOutlined.svg +1 -0
- package/src/assets/sarasFullLogo.svg +13 -0
- package/src/assets/sarasWhite.svg +1 -0
- package/src/assets/settingsOutlined.svg +1 -0
- package/src/assets/sourcesOutlined.svg +1 -0
- package/src/assets/tabDesktopArrowClockwiseOutlined.svg +1 -0
- package/src/assets/targetScanOutlined.svg +1 -0
- package/src/assets/timerOutlined.svg +5 -0
- package/src/assets/upwardTriangleFilled.svg +1 -0
- package/src/custom-theme.scss +37 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +23 -0
- package/src/main.ts +6 -0
- package/src/stories/GettingStarted.mdx +233 -0
- package/src/stories/KitchenSink.stories.ts +109 -0
- package/src/stories/accordion.stories.ts +234 -0
- package/src/stories/avatar.stories.ts +45 -0
- package/src/stories/card-carousel.stories.ts +136 -0
- package/src/stories/card.stories.ts +242 -0
- package/src/stories/checkbox.stories.ts +238 -0
- package/src/stories/chips.stories.ts +61 -0
- package/src/stories/custom-button.stories.ts +89 -0
- package/src/stories/datepicker.stories.ts +78 -0
- package/src/stories/form-input.stories.ts +166 -0
- package/src/stories/gridCell.stories.ts +234 -0
- package/src/stories/header.stories.ts +61 -0
- package/src/stories/icon.stories.ts +65 -0
- package/src/stories/leftnav.stories.ts +67 -0
- package/src/stories/message-banner.stories.ts +116 -0
- package/src/stories/page-layout.stories.ts +200 -0
- package/src/stories/progress-bar.stories.ts +40 -0
- package/src/stories/radio-button.stories.ts +80 -0
- package/src/stories/scrolling-card.stories.ts +36 -0
- package/src/stories/selectInput.stories.ts +176 -0
- package/src/stories/stepper.stories.ts +92 -0
- package/src/stories/tabs.stories.ts +97 -0
- package/src/stories/toast.stories.ts +74 -0
- package/src/stories/tool-tip.stories.ts +45 -0
- package/src/styles.css +388 -0
- package/src/svg.d.ts +1 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +42 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/interfaces/avatar-interface.mjs +0 -2
- package/esm2022/interfaces/button-interface.mjs +0 -10
- package/esm2022/interfaces/card-carousel-interface.mjs +0 -2
- package/esm2022/interfaces/chip-interface.mjs +0 -2
- package/esm2022/interfaces/grid-interface.mjs +0 -2
- package/esm2022/interfaces/guide-card-interface.mjs +0 -2
- package/esm2022/interfaces/icon-interface.mjs +0 -16
- package/esm2022/interfaces/message-banner.mjs +0 -2
- package/esm2022/interfaces/option-interface.mjs +0 -2
- package/esm2022/interfaces/select-interface.mjs +0 -2
- package/esm2022/interfaces/tab-interface.mjs +0 -2
- package/esm2022/interfaces/toast-interface.mjs +0 -2
- package/esm2022/lib/accordion/accordion.component.mjs +0 -115
- package/esm2022/lib/avatar/avatar.component.mjs +0 -56
- package/esm2022/lib/button/button.component.mjs +0 -100
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +0 -168
- package/esm2022/lib/card/card-body/card-body.component.mjs +0 -11
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +0 -11
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +0 -11
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +0 -11
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +0 -11
- package/esm2022/lib/card/card.component.mjs +0 -111
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +0 -41
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +0 -19
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +0 -87
- package/esm2022/lib/checkbox/checkbox.component.mjs +0 -38
- package/esm2022/lib/chips/chips.component.mjs +0 -62
- package/esm2022/lib/component-library.component.mjs +0 -19
- package/esm2022/lib/component-library.service.mjs +0 -14
- package/esm2022/lib/datepicker/datepicker.component.mjs +0 -40
- package/esm2022/lib/form-input/form-input.component.mjs +0 -219
- package/esm2022/lib/form-select/form-select.component.mjs +0 -77
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +0 -84
- package/esm2022/lib/header/header.component.mjs +0 -37
- package/esm2022/lib/icon/icon.component.mjs +0 -73
- package/esm2022/lib/icon/icon.service.mjs +0 -28
- package/esm2022/lib/left-nav/left-nav.component.mjs +0 -146
- package/esm2022/lib/list/list.component.mjs +0 -23
- package/esm2022/lib/message-banner/message-banner.component.mjs +0 -43
- package/esm2022/lib/page-layout/page-layout.component.mjs +0 -21
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -29
- package/esm2022/lib/radio-button/radio-button.component.mjs +0 -33
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +0 -59
- package/esm2022/lib/spinner/spinner.component.mjs +0 -22
- package/esm2022/lib/stepper/stepper.component.mjs +0 -64
- package/esm2022/lib/tabs/tabs.component.mjs +0 -38
- package/esm2022/lib/toast/toast.component.mjs +0 -100
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +0 -41
- package/esm2022/public-api.mjs +0 -56
- package/esm2022/sarasanalytics-com-design-system.mjs +0 -5
- package/esm2022/utils/validators.mjs +0 -97
- package/fesm2022/sarasanalytics-com-design-system.mjs +0 -2001
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/interfaces/avatar-interface.d.ts +0 -6
- package/interfaces/button-interface.d.ts +0 -22
- package/interfaces/chip-interface.d.ts +0 -11
- package/interfaces/grid-interface.d.ts +0 -24
- package/interfaces/icon-interface.d.ts +0 -4
- package/interfaces/select-interface.d.ts +0 -20
- package/interfaces/tab-interface.d.ts +0 -6
- package/lib/accordion/accordion.component.d.ts +0 -25
- package/lib/avatar/avatar.component.d.ts +0 -18
- package/lib/button/button.component.d.ts +0 -32
- package/lib/calendar-header/calendar-header.component.d.ts +0 -31
- package/lib/card/card-body/card-body.component.d.ts +0 -5
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +0 -5
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +0 -5
- package/lib/card/card-icon/card-icon.component.d.ts +0 -5
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +0 -5
- package/lib/card/card.component.d.ts +0 -31
- package/lib/card/checkbox-card/checkbox-card.component.d.ts +0 -12
- package/lib/card/guide-card/guide-card.component.d.ts +0 -8
- package/lib/card-carousel/card-carousel.component.d.ts +0 -27
- package/lib/checkbox/checkbox.component.d.ts +0 -9
- package/lib/chips/chips.component.d.ts +0 -22
- package/lib/component-library.component.d.ts +0 -5
- package/lib/component-library.service.d.ts +0 -6
- package/lib/datepicker/datepicker.component.d.ts +0 -9
- package/lib/form-input/form-input.component.d.ts +0 -67
- package/lib/form-select/form-select.component.d.ts +0 -18
- package/lib/grid-cell/grid-cell.component.d.ts +0 -20
- package/lib/header/header.component.d.ts +0 -14
- package/lib/icon/icon.component.d.ts +0 -24
- package/lib/icon/icon.service.d.ts +0 -12
- package/lib/left-nav/left-nav.component.d.ts +0 -47
- package/lib/list/list.component.d.ts +0 -10
- package/lib/message-banner/message-banner.component.d.ts +0 -19
- package/lib/page-layout/page-layout.component.d.ts +0 -8
- package/lib/progress-bar/progress-bar.component.d.ts +0 -13
- package/lib/radio-button/radio-button.component.d.ts +0 -12
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +0 -36
- package/lib/spinner/spinner.component.d.ts +0 -7
- package/lib/stepper/stepper.component.d.ts +0 -17
- package/lib/tabs/tabs.component.d.ts +0 -15
- package/lib/toast/toast.component.d.ts +0 -33
- package/lib/tool-tip/tool-tip.component.d.ts +0 -15
- package/utils/validators.d.ts +0 -6
- /package/{interfaces/guide-card-interface.d.ts → projects/component-library/src/interfaces/guide-card-interface.ts} +0 -0
- /package/{interfaces/message-banner.d.ts → projects/component-library/src/interfaces/message-banner.ts} +0 -0
- /package/{interfaces/option-interface.d.ts → projects/component-library/src/interfaces/option-interface.ts} +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.sa-left-nav {
|
|
2
|
+
height: calc(100vh - 32px);
|
|
3
|
+
width: calc(100vw - 32px);
|
|
4
|
+
padding: 8px;
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sa-left-nav-logo {
|
|
9
|
+
display: block;
|
|
10
|
+
width: 40px;
|
|
11
|
+
margin: auto;
|
|
12
|
+
padding: 20px 0;
|
|
13
|
+
border-bottom: 1px #fff solid;
|
|
14
|
+
min-height: 40px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sa-logo {
|
|
18
|
+
height: 40px;
|
|
19
|
+
width: 20px;
|
|
20
|
+
display: block;
|
|
21
|
+
margin: auto;
|
|
22
|
+
background-position: center;
|
|
23
|
+
background: url('../../../../../src/assets/sarasWhite.svg') no-repeat;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sa-left-nav-container {
|
|
27
|
+
height: inherit;
|
|
28
|
+
width: 64px;
|
|
29
|
+
background-color: var(--primary-900);
|
|
30
|
+
border-radius: 8px;
|
|
31
|
+
padding: 8px;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
justify-content: space-evenly;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sa-left-nav-items {
|
|
39
|
+
flex: 1;
|
|
40
|
+
overflow-y: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sa-left-nav-items-container {
|
|
44
|
+
padding: 40px 0;
|
|
45
|
+
height: 100%;
|
|
46
|
+
overflow: auto;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sa-left-nav-item,
|
|
51
|
+
.sa-left-nav-footer-item {
|
|
52
|
+
height: 40px;
|
|
53
|
+
width: 40px;
|
|
54
|
+
margin: 8px auto;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::-webkit-scrollbar {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sa-left-nav-footer-item {
|
|
67
|
+
margin: 4px auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sa-left-nav-item:hover,
|
|
71
|
+
.sa-left-nav-item.active,
|
|
72
|
+
.sa-left-nav-footer-item.active,
|
|
73
|
+
.sa-left-nav-footer-item:hover {
|
|
74
|
+
background-color: var(--primary-500);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.sa-left-nav-item-name,
|
|
78
|
+
.sa-left-nav-item-icon,
|
|
79
|
+
.sa-left-nav-footer-icon,
|
|
80
|
+
.sa-left-nav-footer-name {
|
|
81
|
+
/* background-size: 24px;
|
|
82
|
+
background-position: center;
|
|
83
|
+
background-repeat: no-repeat;
|
|
84
|
+
height: 40px;
|
|
85
|
+
width: 40px;
|
|
86
|
+
display: block; */
|
|
87
|
+
height: 24px;
|
|
88
|
+
width: 24px;
|
|
89
|
+
display: block;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.sa-left-nav-item-name,
|
|
93
|
+
mn.sa-left-nav-footer-name {
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
/* replace with avatar */
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.sa-left-nav-footer {
|
|
101
|
+
min-height: fit-content;
|
|
102
|
+
border-top: 1px solid #fff;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sa-left-nav-content {
|
|
106
|
+
width: calc(100% - 64px)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* background: url('../../../../../src/assets/saras_white.svg') no-repeat; */
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<div class="sa-left-nav">
|
|
2
|
+
|
|
3
|
+
<div class="sa-left-nav-container">
|
|
4
|
+
<div class="sa-left-nav-logo">
|
|
5
|
+
<!-- <span class="sa-logo"></span> -->
|
|
6
|
+
<sa-icon icon="sarasWhite" size="40"></sa-icon>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="sa-left-nav-items">
|
|
9
|
+
@if(data && data.items && !!data.items.length){
|
|
10
|
+
<div class="sa-left-nav-items-container">
|
|
11
|
+
<ng-container *ngFor="let item of data.items; let i = index">
|
|
12
|
+
<div class="sa-left-nav-item" [ngClass]="item.active ? 'active' : '' "
|
|
13
|
+
(click)="onNavItemClick(item, i, $event)" (mouseenter)="onNavItemBlur(item,i,$event,tooltip)"
|
|
14
|
+
#tooltip="matTooltip" [matTooltip]="item.tooltip" matTooltipPosition="right">
|
|
15
|
+
|
|
16
|
+
<sa-icon class="sa-left-nav-item-icon" [icon]="item.icon" size="24" color="white"></sa-icon>
|
|
17
|
+
<!-- <span class="sa-left-nav-item-icon"
|
|
18
|
+
[ngStyle]="{ 'background-image': 'url(' + item.icon_url + ')' }"></span> -->
|
|
19
|
+
</div>
|
|
20
|
+
</ng-container>
|
|
21
|
+
</div>
|
|
22
|
+
}
|
|
23
|
+
</div>
|
|
24
|
+
<div class="sa-left-nav-footer">
|
|
25
|
+
@if(data && data.footerItems && !!data.footerItems.length){
|
|
26
|
+
<div class="sa-left-nav-footer-container">
|
|
27
|
+
<ng-container *ngFor="let item of data.footerItems; let i = index">
|
|
28
|
+
<div class="sa-left-nav-footer-item" [ngClass]="item.active ? 'active' : '' "
|
|
29
|
+
(click)="onFooterItemClick(item, i, $event)"
|
|
30
|
+
(mouseenter)="onFooterItemBlur(item,i,$event,tooltip)" #tooltip="matTooltip"
|
|
31
|
+
[matTooltip]="item.tooltip" matTooltipPosition="right">
|
|
32
|
+
@if(item.type === 'AVATAR'){
|
|
33
|
+
<!-- <span class="sa-left-nav-footer-name">ET</span> -->
|
|
34
|
+
<sa-avatar altText="ET" [imagePath]="''" size="extra-small"></sa-avatar>
|
|
35
|
+
}@else{
|
|
36
|
+
<sa-icon class="sa-left-nav-footer-icon" [icon]="item.icon" size="24" color="white"></sa-icon>
|
|
37
|
+
<!-- <span class="sa-left-nav-footer-icon"
|
|
38
|
+
[ngStyle]="{ 'background-image': 'url(' + item.icon_url || '' + ')' }"></span> -->
|
|
39
|
+
}
|
|
40
|
+
</div>
|
|
41
|
+
</ng-container>
|
|
42
|
+
</div>
|
|
43
|
+
}
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div class="sa-left-nav-content">
|
|
48
|
+
<ng-content></ng-content>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { LeftNavComponent } from './left-nav.component';
|
|
4
|
+
|
|
5
|
+
describe('LeftNavComponent', () => {
|
|
6
|
+
let component: LeftNavComponent;
|
|
7
|
+
let fixture: ComponentFixture<LeftNavComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [LeftNavComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(LeftNavComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, inject, Inject, Input, Output } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { AvatarComponent } from '../avatar/avatar.component';
|
|
5
|
+
import { IconComponent } from '../icon/icon.component';
|
|
6
|
+
// import { AvatarComponent } from '../avatar/avatar.component';
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
MatTooltip,
|
|
10
|
+
MatTooltipModule
|
|
11
|
+
} from '@angular/material/tooltip';
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'sa-left-nav',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
AvatarComponent,
|
|
18
|
+
IconComponent,
|
|
19
|
+
MatTooltipModule
|
|
20
|
+
],
|
|
21
|
+
templateUrl: './left-nav.component.html',
|
|
22
|
+
styleUrl: './left-nav.component.css'
|
|
23
|
+
})
|
|
24
|
+
export class LeftNavComponent {
|
|
25
|
+
@Input('data') data: ILeftNav;
|
|
26
|
+
@Output('clickEvent') clickEvent: EventEmitter<ILeftNavClickEvent>;
|
|
27
|
+
@Output('hoverEvent') hoverEvent: EventEmitter<ILeftNavBlurEvent>;
|
|
28
|
+
|
|
29
|
+
// @Inject(ActivatedRoute) activeRouteService: ActivatedRoute;
|
|
30
|
+
// @Inject(Router) routerService: Router;
|
|
31
|
+
|
|
32
|
+
private activeItem: ILeftNavItem | null;
|
|
33
|
+
|
|
34
|
+
constructor(private route: ActivatedRoute, private router: Router) {
|
|
35
|
+
this.clickEvent = new EventEmitter();
|
|
36
|
+
this.hoverEvent = new EventEmitter();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
ngOnInit() {
|
|
40
|
+
console.log(this.data.items);
|
|
41
|
+
if (!this.data.footerItems) {
|
|
42
|
+
this.data.footerItems = data.footerItems;
|
|
43
|
+
}
|
|
44
|
+
if (this.data?.items?.length) {
|
|
45
|
+
this.onNavItemClick(this.data.items[0], 0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
setItemActive(index: number) {
|
|
50
|
+
try {
|
|
51
|
+
if (this.activeItem) {
|
|
52
|
+
this.activeItem.active = false;
|
|
53
|
+
}
|
|
54
|
+
if (this.data?.items?.length) {
|
|
55
|
+
this.activeItem = this.data.items[index];
|
|
56
|
+
this.activeItem.active = true;
|
|
57
|
+
}
|
|
58
|
+
} catch (e) {
|
|
59
|
+
console.log(e);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
onNavItemClick(item: ILeftNavItem, index: number, event: any = null) {
|
|
64
|
+
console.log(item, index);
|
|
65
|
+
|
|
66
|
+
this.clickEvent.emit({
|
|
67
|
+
event,
|
|
68
|
+
type: 'NAV_ITEM_CLICK',
|
|
69
|
+
item
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
if (!item.disable && item.path) {
|
|
73
|
+
this.setItemActive(index);
|
|
74
|
+
this.router.navigate([item.path])
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
onFooterItemClick(item: ILeftNavItem, index: number, event: any = null) {
|
|
79
|
+
this.clickEvent.emit({
|
|
80
|
+
event,
|
|
81
|
+
type: 'FOOTER_ITEM_CLICK',
|
|
82
|
+
item
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
onFooterItemBlur(item: ILeftNavItem, index: number, event: any = null, tooltip: MatTooltip) {
|
|
86
|
+
// console.log("blur", item, index);
|
|
87
|
+
this.hoverEvent.emit({
|
|
88
|
+
event,
|
|
89
|
+
type: 'FOOTER_ITEM_HOVER',
|
|
90
|
+
item
|
|
91
|
+
});
|
|
92
|
+
if (tooltip) {
|
|
93
|
+
tooltip.show();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
onNavItemBlur(item: ILeftNavItem, index: number, event: any = null, tooltip: MatTooltip) {
|
|
97
|
+
// console.log(item, index);
|
|
98
|
+
this.hoverEvent.emit({
|
|
99
|
+
event,
|
|
100
|
+
type: 'NAV_ITEM_HOVER',
|
|
101
|
+
item
|
|
102
|
+
});
|
|
103
|
+
if (tooltip) {
|
|
104
|
+
tooltip.show();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface ILeftNav {
|
|
112
|
+
items?: ILeftNavItem[];
|
|
113
|
+
footerItems?: ILeftNavItem[];
|
|
114
|
+
}
|
|
115
|
+
export interface ILeftNavItem {
|
|
116
|
+
title: string,
|
|
117
|
+
// icon_url?: string,
|
|
118
|
+
icon?: string,
|
|
119
|
+
disable?: boolean,
|
|
120
|
+
tooltip?: string,
|
|
121
|
+
relativePath?: boolean,
|
|
122
|
+
path?: string,
|
|
123
|
+
active?: boolean,
|
|
124
|
+
type?: 'ICON' | 'AVATAR';
|
|
125
|
+
}
|
|
126
|
+
export interface ILeftNavClickEvent {
|
|
127
|
+
type: 'NAV_ITEM_CLICK' | 'FOOTER_ITEM_CLICK' | 'LOGO_CLICK';
|
|
128
|
+
event: any,
|
|
129
|
+
item: ILeftNavItem
|
|
130
|
+
}
|
|
131
|
+
export interface ILeftNavBlurEvent {
|
|
132
|
+
type: 'NAV_ITEM_HOVER' | 'FOOTER_ITEM_HOVER' | 'LOGO_HOVER';
|
|
133
|
+
event: any,
|
|
134
|
+
item: ILeftNavItem
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export enum ILeftNavTypes {
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const data: ILeftNav = {
|
|
142
|
+
items: [{
|
|
143
|
+
title: 'Home',
|
|
144
|
+
icon: '',
|
|
145
|
+
disable: false,
|
|
146
|
+
tooltip: '',
|
|
147
|
+
relativePath: true,
|
|
148
|
+
path: 'home'
|
|
149
|
+
}, {
|
|
150
|
+
title: 'Pricing',
|
|
151
|
+
icon: '',
|
|
152
|
+
disable: true,
|
|
153
|
+
tooltip: '',
|
|
154
|
+
relativePath: true,
|
|
155
|
+
path: ''
|
|
156
|
+
}, {
|
|
157
|
+
title: 'Setting',
|
|
158
|
+
icon: 'settingsOutlined',
|
|
159
|
+
disable: true,
|
|
160
|
+
tooltip: 'coming soon',
|
|
161
|
+
relativePath: true,
|
|
162
|
+
path: ''
|
|
163
|
+
}],
|
|
164
|
+
footerItems: [{
|
|
165
|
+
title: 'Help',
|
|
166
|
+
icon: 'chatHelpOutlined',
|
|
167
|
+
disable: true,
|
|
168
|
+
tooltip: 'coming soon'
|
|
169
|
+
}, {
|
|
170
|
+
title: 'Name',
|
|
171
|
+
disable: false,
|
|
172
|
+
tooltip: '',
|
|
173
|
+
type: 'AVATAR'
|
|
174
|
+
}, {
|
|
175
|
+
title: 'Chevron',
|
|
176
|
+
icon: 'doubleDownOutlined',
|
|
177
|
+
disable: true,
|
|
178
|
+
tooltip: ''
|
|
179
|
+
}]
|
|
180
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.feature-list-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
gap: var(--small-12px, 12px);
|
|
6
|
+
align-self: stretch;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.feature-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--small-8px, 8px);
|
|
13
|
+
align-self: stretch;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.feature-list-container .feature-text {
|
|
17
|
+
color: var(--text-mediumemphasis, #6D6979);
|
|
18
|
+
font-family: var(--font);
|
|
19
|
+
font-size: var(--small-14px);
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
line-height: var(--medium-20px);
|
|
23
|
+
letter-spacing: 0.25px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.feature-icon sa-icon {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<div class="feature-list-container">
|
|
2
|
+
<div class="feature-item" *ngFor="let item of listData">
|
|
3
|
+
<div *ngIf="featuresIcon" class="feature-icon">
|
|
4
|
+
<sa-icon [icon]="featuresIcon" customClass="colored-icon"></sa-icon>
|
|
5
|
+
</div>
|
|
6
|
+
<div>
|
|
7
|
+
<span class="feature-text">{{ item?.text }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ListComponent } from './list.component';
|
|
4
|
+
|
|
5
|
+
describe('ListComponent', () => {
|
|
6
|
+
let component: ListComponent;
|
|
7
|
+
let fixture: ComponentFixture<ListComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [ListComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ListComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IconComponent } from '../icon/icon.component';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'lib-list',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [IconComponent, CommonModule],
|
|
9
|
+
templateUrl: './list.component.html',
|
|
10
|
+
styleUrl: './list.component.css'
|
|
11
|
+
})
|
|
12
|
+
export class ListComponent {
|
|
13
|
+
@Input() listData: { icon?: string; text: string }[] = [];
|
|
14
|
+
@Input('featuresIcon') featuresIcon: string = '';
|
|
15
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.message-banner {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
padding: var(--small-12px, 12px) var(--small-16px, 16px);
|
|
5
|
+
border-radius: var(--small-8px, 8px);
|
|
6
|
+
border: 1px solid var(--grey-100);
|
|
7
|
+
font-family: Arial, sans-serif;
|
|
8
|
+
gap: var(--small-8px, 8px);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.content {
|
|
12
|
+
flex: 1 0 0;
|
|
13
|
+
font-family: var(--font-roboto, Roboto);
|
|
14
|
+
font-size: var(--small-14px);
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
line-height: var(--medium-20px);
|
|
18
|
+
letter-spacing: 0.25px;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.action-button {
|
|
24
|
+
background: none;
|
|
25
|
+
border: none;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
padding: 4px 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.success {
|
|
31
|
+
background-color: #e6f4ea;
|
|
32
|
+
border: 1px solid var(--grey-100, #EAECF0);
|
|
33
|
+
color: #1e8e3e;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.warning {
|
|
37
|
+
color: var(--text-highemphasis, #4D4D4D);
|
|
38
|
+
border: 1px solid var(--grey-50, #E9EBEB);
|
|
39
|
+
background: var(--secondary-50, #FFF3EB);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.info {
|
|
43
|
+
border: 1px solid var(--grey-100, #EAECF0);
|
|
44
|
+
background-color: var(--structural-primarytint, #FBFAFF);
|
|
45
|
+
color: var(--text-mediumemphasis, #6D6979);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.error {
|
|
49
|
+
color: var(--semantic-error-500, #BD271E);
|
|
50
|
+
border: 1px solid var(--grey-100, #EAECF0);
|
|
51
|
+
background: var(--semantic-error-50, #F8E9E9);
|
|
52
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="message-banner" [class]="type">
|
|
2
|
+
@if (bannerIcon) {
|
|
3
|
+
<sa-icon class="icon" [icon]="bannerIcon" [size]="bannerIconSize" [style.height.px]="bannerIconSize"></sa-icon>
|
|
4
|
+
}
|
|
5
|
+
<div class="content">
|
|
6
|
+
<ng-content></ng-content>
|
|
7
|
+
</div>
|
|
8
|
+
@if (actionText) {
|
|
9
|
+
<sa-button class="action-button" [text]="actionText" [icon]="buttonIcon" [size]="buttonSize" [type]="buttonType"
|
|
10
|
+
[iconPosition]="buttonIconPosition" [size]="buttonSize" [buttonIconSize]="buttonIconSize"
|
|
11
|
+
(click)="onAction()">{{
|
|
12
|
+
actionText
|
|
13
|
+
}}</sa-button>
|
|
14
|
+
}
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { MessageBannerComponent } from './message-banner.component';
|
|
4
|
+
|
|
5
|
+
describe('MessageBannerComponent', () => {
|
|
6
|
+
let component: MessageBannerComponent;
|
|
7
|
+
let fixture: ComponentFixture<MessageBannerComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [MessageBannerComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(MessageBannerComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { MessageType } from '../../interfaces/message-banner';
|
|
3
|
+
import { IconComponent } from "../icon/icon.component";
|
|
4
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
5
|
+
import { IconService } from '../icon/icon.service';
|
|
6
|
+
import { ButtonComponent } from '../button/button.component';
|
|
7
|
+
import { IconName } from '../../interfaces/icon-interface';
|
|
8
|
+
import { ButtonIconPosition, ButtonSize, ButtonType } from '../../interfaces/button-interface';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'sa-message-banner',
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [HttpClientModule, IconComponent, ButtonComponent],
|
|
14
|
+
providers: [IconService],
|
|
15
|
+
templateUrl: './message-banner.component.html',
|
|
16
|
+
styleUrl: './message-banner.component.css',
|
|
17
|
+
encapsulation: ViewEncapsulation.None
|
|
18
|
+
})
|
|
19
|
+
export class MessageBannerComponent {
|
|
20
|
+
@Input() type: MessageType = 'info';
|
|
21
|
+
@Input() actionText?: string;
|
|
22
|
+
@Input() content?: string = '';
|
|
23
|
+
@Input() bannerIcon?: IconName;
|
|
24
|
+
@Input() bannerIconSize?: string = '';
|
|
25
|
+
@Input() buttonIcon?: IconName;
|
|
26
|
+
@Input() buttonType?: ButtonType;
|
|
27
|
+
@Input() buttonIconPosition?: ButtonIconPosition;
|
|
28
|
+
@Input() buttonSize?: ButtonSize;
|
|
29
|
+
@Input() buttonIconSize?: string;
|
|
30
|
+
@Input() onAction: () => void = () => { };
|
|
31
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.layout-container {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.layout-container.padding {
|
|
6
|
+
padding: var(--medium-20px);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.layout-inner-container {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
position: relative;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.layout-inner-container.border-radius {
|
|
18
|
+
border: 1px solid var(--grey-100, #EAECF0);
|
|
19
|
+
background: var(--structural-white);
|
|
20
|
+
box-shadow: 3px 4px 16px 4px rgba(0, 0, 0, 0.08);
|
|
21
|
+
border-radius: var(--small-16px, 16px);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.progress-bar-container {
|
|
25
|
+
border-radius: var(--small-16px, 16px);
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.content-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: 1;
|
|
34
|
+
height: 100%;
|
|
35
|
+
-ms-overflow-style: none;
|
|
36
|
+
/* Internet Explorer 10+ */
|
|
37
|
+
scrollbar-width: none;
|
|
38
|
+
/* Firefox */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.content-container::-webkit-scrollbar,
|
|
42
|
+
.left-section::-webkit-scrollbar {
|
|
43
|
+
display: none;
|
|
44
|
+
/* Safari and Chrome */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.left-section {
|
|
48
|
+
flex: 1;
|
|
49
|
+
padding: var(--medium-20px) var(--medium-20px) 0 var(--large-44px);
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.right-section {
|
|
55
|
+
background: var(--structural-primarytint, #FBFAFF);
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: 28.9375rem;
|
|
59
|
+
max-width: 28.9375rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.left-wrapper {
|
|
63
|
+
height: calc(100% - 11.5rem);
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
-ms-overflow-style: none;
|
|
66
|
+
/* Internet Explorer 10+ */
|
|
67
|
+
scrollbar-width: none;
|
|
68
|
+
/* Firefox */
|
|
69
|
+
padding: 1rem 0 1rem 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.footer-section {
|
|
73
|
+
display: flex;
|
|
74
|
+
margin-top: auto;
|
|
75
|
+
margin-bottom: var(--large-40px);
|
|
76
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div class="layout-container" [class]="showProgressBarContent === false ? 'no-padding': 'padding'">
|
|
2
|
+
<div class="layout-inner-container"
|
|
3
|
+
[class]="showProgressBarContent === false ? 'no-border-radius': 'border-radius'">
|
|
4
|
+
@if (showProgressBarContent) {
|
|
5
|
+
<div class="progress-bar-container">
|
|
6
|
+
<ng-content select="[progress-bar-content]"></ng-content>
|
|
7
|
+
</div>
|
|
8
|
+
}
|
|
9
|
+
<div class="content-container">
|
|
10
|
+
<div class="left-section">
|
|
11
|
+
<div class="top-section">
|
|
12
|
+
<ng-content select="[top-content]"></ng-content>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="left-wrapper">
|
|
15
|
+
<ng-content select="[left-content]"></ng-content>
|
|
16
|
+
</div>
|
|
17
|
+
@if (showFooterContent) {
|
|
18
|
+
<div class="footer-section">
|
|
19
|
+
<ng-content select="[footer-content]"></ng-content>
|
|
20
|
+
</div>
|
|
21
|
+
}
|
|
22
|
+
</div>
|
|
23
|
+
@if (showRightContent) {
|
|
24
|
+
<div class="right-section">
|
|
25
|
+
<ng-content select="[right-content]"></ng-content>
|
|
26
|
+
</div>
|
|
27
|
+
}
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|