@sarasanalytics-com/design-system 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -34
- package/esm2022/interfaces/avatar-interface.mjs +2 -0
- package/esm2022/interfaces/button-interface.mjs +10 -0
- package/esm2022/interfaces/card-carousel-interface.mjs +2 -0
- package/esm2022/interfaces/chip-interface.mjs +2 -0
- package/esm2022/interfaces/grid-interface.mjs +2 -0
- package/esm2022/interfaces/guide-card-interface.mjs +2 -0
- package/esm2022/interfaces/icon-interface.mjs +16 -0
- package/esm2022/interfaces/message-banner.mjs +2 -0
- package/esm2022/interfaces/option-interface.mjs +2 -0
- package/esm2022/interfaces/select-interface.mjs +2 -0
- package/esm2022/interfaces/tab-interface.mjs +2 -0
- package/esm2022/interfaces/toast-interface.mjs +2 -0
- package/esm2022/lib/accordion/accordion.component.mjs +115 -0
- package/esm2022/lib/avatar/avatar.component.mjs +56 -0
- package/esm2022/lib/button/button.component.mjs +100 -0
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +168 -0
- package/esm2022/lib/card/card-body/card-body.component.mjs +11 -0
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +11 -0
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +11 -0
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +11 -0
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +11 -0
- package/esm2022/lib/card/card.component.mjs +111 -0
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +41 -0
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +19 -0
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +87 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +38 -0
- package/esm2022/lib/chips/chips.component.mjs +62 -0
- package/esm2022/lib/component-library.component.mjs +19 -0
- package/esm2022/lib/component-library.service.mjs +14 -0
- package/esm2022/lib/datepicker/datepicker.component.mjs +40 -0
- package/esm2022/lib/form-input/form-input.component.mjs +219 -0
- package/esm2022/lib/form-select/form-select.component.mjs +77 -0
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
- package/esm2022/lib/header/header.component.mjs +37 -0
- package/esm2022/lib/icon/icon.component.mjs +73 -0
- package/esm2022/lib/icon/icon.service.mjs +28 -0
- package/esm2022/lib/left-nav/left-nav.component.mjs +146 -0
- package/esm2022/lib/list/list.component.mjs +23 -0
- package/esm2022/lib/message-banner/message-banner.component.mjs +43 -0
- package/esm2022/lib/page-layout/page-layout.component.mjs +21 -0
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +29 -0
- package/esm2022/lib/radio-button/radio-button.component.mjs +33 -0
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +59 -0
- package/esm2022/lib/spinner/spinner.component.mjs +22 -0
- package/esm2022/lib/stepper/stepper.component.mjs +64 -0
- package/esm2022/lib/tabs/tabs.component.mjs +38 -0
- package/esm2022/lib/toast/toast.component.mjs +100 -0
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
- package/esm2022/utils/validators.mjs +97 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs +2001 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/interfaces/avatar-interface.d.ts +6 -0
- package/interfaces/button-interface.d.ts +22 -0
- package/{projects/component-library/src/interfaces/card-carousel-interface.ts → interfaces/card-carousel-interface.d.ts} +1 -2
- package/interfaces/chip-interface.d.ts +11 -0
- package/interfaces/grid-interface.d.ts +24 -0
- package/interfaces/icon-interface.d.ts +4 -0
- package/interfaces/select-interface.d.ts +20 -0
- package/interfaces/tab-interface.d.ts +6 -0
- package/{projects/component-library/src/interfaces/toast-interface.ts → interfaces/toast-interface.d.ts} +1 -1
- package/lib/accordion/accordion.component.d.ts +25 -0
- package/lib/avatar/avatar.component.d.ts +18 -0
- package/lib/button/button.component.d.ts +32 -0
- package/lib/calendar-header/calendar-header.component.d.ts +31 -0
- package/lib/card/card-body/card-body.component.d.ts +5 -0
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +5 -0
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +5 -0
- package/lib/card/card-icon/card-icon.component.d.ts +5 -0
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +5 -0
- package/lib/card/card.component.d.ts +31 -0
- package/lib/card/checkbox-card/checkbox-card.component.d.ts +12 -0
- package/lib/card/guide-card/guide-card.component.d.ts +8 -0
- package/lib/card-carousel/card-carousel.component.d.ts +27 -0
- package/lib/checkbox/checkbox.component.d.ts +9 -0
- package/lib/chips/chips.component.d.ts +22 -0
- package/lib/component-library.component.d.ts +5 -0
- package/lib/component-library.service.d.ts +6 -0
- package/lib/datepicker/datepicker.component.d.ts +9 -0
- package/lib/form-input/form-input.component.d.ts +67 -0
- package/lib/form-select/form-select.component.d.ts +18 -0
- package/lib/grid-cell/grid-cell.component.d.ts +20 -0
- package/lib/header/header.component.d.ts +14 -0
- package/lib/icon/icon.component.d.ts +24 -0
- package/lib/icon/icon.service.d.ts +12 -0
- package/lib/left-nav/left-nav.component.d.ts +47 -0
- package/lib/list/list.component.d.ts +10 -0
- package/lib/message-banner/message-banner.component.d.ts +19 -0
- package/lib/page-layout/page-layout.component.d.ts +8 -0
- package/lib/progress-bar/progress-bar.component.d.ts +13 -0
- package/lib/radio-button/radio-button.component.d.ts +12 -0
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +36 -0
- package/lib/spinner/spinner.component.d.ts +7 -0
- package/lib/stepper/stepper.component.d.ts +17 -0
- package/lib/tabs/tabs.component.d.ts +15 -0
- package/lib/toast/toast.component.d.ts +33 -0
- package/lib/tool-tip/tool-tip.component.d.ts +15 -0
- package/package.json +19 -74
- package/{projects/component-library/src/public-api.ts → public-api.d.ts} +0 -12
- package/utils/validators.d.ts +6 -0
- package/.editorconfig +0 -16
- package/.eslintrc.json +0 -23
- package/.storybook/main.ts +0 -21
- package/.storybook/manager.ts +0 -17
- package/.storybook/preview-head.html +0 -5
- package/.storybook/preview.ts +0 -66
- package/.storybook/tsconfig.doc.json +0 -10
- package/.storybook/tsconfig.json +0 -11
- package/.storybook/typings.d.ts +0 -4
- package/.vscode/extensions.json +0 -7
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -13
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -195
- package/build-storybook.log +0 -45
- package/documentation.json +0 -0
- package/generate-public-api.js +0 -59
- package/projects/component-library/README.md +0 -24
- package/projects/component-library/ng-package.json +0 -8
- package/projects/component-library/package.json +0 -12
- package/projects/component-library/src/interfaces/avatar-interface.ts +0 -6
- package/projects/component-library/src/interfaces/button-interface.ts +0 -37
- package/projects/component-library/src/interfaces/chip-interface.ts +0 -11
- package/projects/component-library/src/interfaces/grid-interface.ts +0 -24
- package/projects/component-library/src/interfaces/icon-interface.ts +0 -21
- package/projects/component-library/src/interfaces/select-interface.ts +0 -20
- package/projects/component-library/src/interfaces/tab-interface.ts +0 -6
- package/projects/component-library/src/lib/accordion/accordion.component.css +0 -188
- package/projects/component-library/src/lib/accordion/accordion.component.html +0 -151
- package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +0 -23
- package/projects/component-library/src/lib/accordion/accordion.component.ts +0 -129
- package/projects/component-library/src/lib/avatar/avatar.component.css +0 -48
- package/projects/component-library/src/lib/avatar/avatar.component.html +0 -5
- package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +0 -23
- package/projects/component-library/src/lib/avatar/avatar.component.ts +0 -50
- package/projects/component-library/src/lib/button/button.component.css +0 -145
- package/projects/component-library/src/lib/button/button.component.html +0 -25
- package/projects/component-library/src/lib/button/button.component.spec.ts +0 -23
- package/projects/component-library/src/lib/button/button.component.ts +0 -82
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +0 -67
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +0 -20
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +0 -191
- 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 +0 -1
- package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-body/card-body.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +0 -70
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +0 -1
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +0 -13
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +0 -4
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +0 -3
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +0 -12
- 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 +0 -1
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +0 -3
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +0 -1
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +0 -12
- package/projects/component-library/src/lib/card/card.component.css +0 -149
- package/projects/component-library/src/lib/card/card.component.html +0 -46
- package/projects/component-library/src/lib/card/card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card.component.ts +0 -47
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +0 -79
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +0 -55
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +0 -44
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +0 -80
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +0 -24
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +0 -19
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +0 -91
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +0 -54
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +0 -89
- package/projects/component-library/src/lib/checkbox/checkbox.component.css +0 -79
- package/projects/component-library/src/lib/checkbox/checkbox.component.html +0 -27
- package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +0 -23
- package/projects/component-library/src/lib/checkbox/checkbox.component.ts +0 -38
- package/projects/component-library/src/lib/chips/chips.component.css +0 -129
- package/projects/component-library/src/lib/chips/chips.component.html +0 -17
- package/projects/component-library/src/lib/chips/chips.component.spec.ts +0 -23
- package/projects/component-library/src/lib/chips/chips.component.ts +0 -54
- package/projects/component-library/src/lib/component-library.component.spec.ts +0 -23
- package/projects/component-library/src/lib/component-library.component.ts +0 -16
- package/projects/component-library/src/lib/component-library.service.spec.ts +0 -16
- package/projects/component-library/src/lib/component-library.service.ts +0 -9
- package/projects/component-library/src/lib/datepicker/datepicker.component.css +0 -33
- package/projects/component-library/src/lib/datepicker/datepicker.component.html +0 -11
- package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +0 -23
- package/projects/component-library/src/lib/datepicker/datepicker.component.ts +0 -36
- package/projects/component-library/src/lib/form-input/form-input.component.css +0 -164
- package/projects/component-library/src/lib/form-input/form-input.component.html +0 -55
- package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +0 -23
- package/projects/component-library/src/lib/form-input/form-input.component.ts +0 -282
- package/projects/component-library/src/lib/form-select/form-select.component.css +0 -158
- package/projects/component-library/src/lib/form-select/form-select.component.html +0 -38
- package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +0 -23
- package/projects/component-library/src/lib/form-select/form-select.component.ts +0 -72
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +0 -78
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +0 -31
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +0 -89
- package/projects/component-library/src/lib/header/header.component.css +0 -62
- package/projects/component-library/src/lib/header/header.component.html +0 -23
- package/projects/component-library/src/lib/header/header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/header/header.component.ts +0 -28
- package/projects/component-library/src/lib/icon/icon.component.css +0 -65
- package/projects/component-library/src/lib/icon/icon.component.html +0 -9
- package/projects/component-library/src/lib/icon/icon.component.ts +0 -64
- package/projects/component-library/src/lib/icon/icon.service.ts +0 -26
- package/projects/component-library/src/lib/left-nav/left-nav.component.css +0 -109
- package/projects/component-library/src/lib/left-nav/left-nav.component.html +0 -51
- package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +0 -23
- package/projects/component-library/src/lib/left-nav/left-nav.component.ts +0 -180
- package/projects/component-library/src/lib/list/list.component.css +0 -28
- package/projects/component-library/src/lib/list/list.component.html +0 -10
- package/projects/component-library/src/lib/list/list.component.spec.ts +0 -23
- package/projects/component-library/src/lib/list/list.component.ts +0 -15
- package/projects/component-library/src/lib/message-banner/message-banner.component.css +0 -52
- package/projects/component-library/src/lib/message-banner/message-banner.component.html +0 -15
- package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +0 -23
- package/projects/component-library/src/lib/message-banner/message-banner.component.ts +0 -31
- package/projects/component-library/src/lib/page-layout/page-layout.component.css +0 -76
- package/projects/component-library/src/lib/page-layout/page-layout.component.html +0 -30
- package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +0 -23
- package/projects/component-library/src/lib/page-layout/page-layout.component.ts +0 -14
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +0 -30
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +0 -4
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +0 -23
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +0 -24
- package/projects/component-library/src/lib/radio-button/radio-button.component.css +0 -128
- package/projects/component-library/src/lib/radio-button/radio-button.component.html +0 -28
- package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +0 -23
- package/projects/component-library/src/lib/radio-button/radio-button.component.ts +0 -35
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +0 -118
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +0 -11
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +0 -23
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +0 -74
- package/projects/component-library/src/lib/spinner/spinner.component.css +0 -41
- package/projects/component-library/src/lib/spinner/spinner.component.html +0 -1
- package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +0 -23
- package/projects/component-library/src/lib/spinner/spinner.component.ts +0 -15
- package/projects/component-library/src/lib/stepper/stepper.component.css +0 -96
- package/projects/component-library/src/lib/stepper/stepper.component.html +0 -14
- package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +0 -23
- package/projects/component-library/src/lib/stepper/stepper.component.ts +0 -61
- package/projects/component-library/src/lib/tabs/tabs.component.css +0 -100
- package/projects/component-library/src/lib/tabs/tabs.component.html +0 -16
- package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +0 -23
- package/projects/component-library/src/lib/tabs/tabs.component.ts +0 -37
- package/projects/component-library/src/lib/toast/toast.component.css +0 -115
- package/projects/component-library/src/lib/toast/toast.component.html +0 -29
- package/projects/component-library/src/lib/toast/toast.component.spec.ts +0 -23
- package/projects/component-library/src/lib/toast/toast.component.ts +0 -87
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +0 -144
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +0 -31
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +0 -37
- 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 +0 -22
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +0 -23
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +0 -13
- package/projects/component-library/src/utils/validators.ts +0 -100
- package/projects/component-library/tsconfig.lib.json +0 -14
- package/projects/component-library/tsconfig.lib.prod.json +0 -10
- package/projects/component-library/tsconfig.spec.json +0 -14
- package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
- package/src/Saras-logo.svg +0 -15
- package/src/app/app.component.css +0 -82
- package/src/app/app.component.html +0 -663
- package/src/app/app.component.spec.ts +0 -29
- package/src/app/app.component.ts +0 -1341
- package/src/app/app.config.ts +0 -56
- package/src/app/app.routes.ts +0 -3
- package/src/app/data.ts +0 -52
- package/src/app/kitchen-sink/kitchen-sink.component.css +0 -30
- package/src/app/kitchen-sink/kitchen-sink.component.html +0 -7
- package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +0 -23
- package/src/app/kitchen-sink/kitchen-sink.component.ts +0 -92
- package/src/assets/.gitkeep +0 -0
- package/src/assets/analysis.svg +0 -1
- package/src/assets/arrowRightOutlined.svg +0 -1
- package/src/assets/avatar.svg +0 -1
- package/src/assets/bpn.svg +0 -1
- package/src/assets/businessStatsFilled.svg +0 -1
- package/src/assets/channelkey.svg +0 -1
- package/src/assets/chatHelpOutlined.svg +0 -1
- package/src/assets/checkCircleFilled.svg +0 -1
- package/src/assets/checkCircleOutlined.svg +0 -1
- package/src/assets/checkOutlined.svg +0 -1
- package/src/assets/circleFilled.svg +0 -1
- package/src/assets/closeBlueOutlined.svg +0 -1
- package/src/assets/closeCircleFilled.svg +0 -1
- package/src/assets/closeOutlined.svg +0 -1
- package/src/assets/dataonavatar.svg +0 -1
- package/src/assets/datonAvatar.png +0 -0
- package/src/assets/desktopSpeakerOutlined.svg +0 -1
- package/src/assets/disabledCheckboxFilled.svg +0 -1
- package/src/assets/doubleDownOutlined.svg +0 -1
- package/src/assets/downChevronOutlined.svg +0 -3
- package/src/assets/downOutlined.svg +0 -1
- package/src/assets/errorCircleOutlined.svg +0 -1
- package/src/assets/errorCrossOutlined.svg +0 -3
- package/src/assets/eyeFilled.svg +0 -1
- package/src/assets/eyeOff.svg +0 -3
- package/src/assets/eyeOutlined.svg +0 -1
- package/src/assets/formDetailsOutlined.svg +0 -1
- package/src/assets/gridViewOutlined.svg +0 -1
- package/src/assets/headsetOutlined.svg +0 -3
- package/src/assets/homeOutlined.svg +0 -1
- package/src/assets/icons/analysis1.svg +0 -1
- package/src/assets/infoCircleOutlined.svg +0 -3
- package/src/assets/infoTriangleFilled.svg +0 -1
- package/src/assets/infoTriangleOutlined.svg +0 -1
- package/src/assets/innosupps.svg +0 -1
- package/src/assets/leftChevronCircle.svg +0 -2
- package/src/assets/locationOutlined.svg +0 -1
- package/src/assets/loginDashboard.png +0 -0
- package/src/assets/mailOutlined.svg +0 -1
- package/src/assets/multiConnectionHub.svg +0 -1
- package/src/assets/murad.svg +0 -1
- package/src/assets/personOutlined.svg +0 -1
- package/src/assets/pricingIcon.svg +0 -3
- package/src/assets/rightChevronCircle.svg +0 -1
- package/src/assets/rightChevronOutlined.svg +0 -1
- package/src/assets/sarasFullLogo.svg +0 -13
- package/src/assets/sarasWhite.svg +0 -1
- package/src/assets/settingsOutlined.svg +0 -1
- package/src/assets/sourcesOutlined.svg +0 -1
- package/src/assets/tabDesktopArrowClockwiseOutlined.svg +0 -1
- package/src/assets/targetScanOutlined.svg +0 -1
- package/src/assets/timerOutlined.svg +0 -5
- package/src/assets/upwardTriangleFilled.svg +0 -1
- package/src/custom-theme.scss +0 -37
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -23
- package/src/main.ts +0 -6
- package/src/stories/GettingStarted.mdx +0 -233
- package/src/stories/KitchenSink.stories.ts +0 -109
- package/src/stories/accordion.stories.ts +0 -234
- package/src/stories/avatar.stories.ts +0 -45
- package/src/stories/card-carousel.stories.ts +0 -136
- package/src/stories/card.stories.ts +0 -242
- package/src/stories/checkbox.stories.ts +0 -238
- package/src/stories/chips.stories.ts +0 -61
- package/src/stories/custom-button.stories.ts +0 -89
- package/src/stories/datepicker.stories.ts +0 -78
- package/src/stories/form-input.stories.ts +0 -166
- package/src/stories/gridCell.stories.ts +0 -234
- package/src/stories/header.stories.ts +0 -61
- package/src/stories/icon.stories.ts +0 -65
- package/src/stories/leftnav.stories.ts +0 -67
- package/src/stories/message-banner.stories.ts +0 -116
- package/src/stories/page-layout.stories.ts +0 -200
- package/src/stories/progress-bar.stories.ts +0 -40
- package/src/stories/radio-button.stories.ts +0 -80
- package/src/stories/scrolling-card.stories.ts +0 -36
- package/src/stories/selectInput.stories.ts +0 -176
- package/src/stories/stepper.stories.ts +0 -92
- package/src/stories/tabs.stories.ts +0 -97
- package/src/stories/toast.stories.ts +0 -74
- package/src/stories/tool-tip.stories.ts +0 -45
- package/src/svg.d.ts +0 -1
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -42
- package/tsconfig.spec.json +0 -14
- /package/{projects/component-library/src/interfaces/guide-card-interface.ts → interfaces/guide-card-interface.d.ts} +0 -0
- /package/{projects/component-library/src/interfaces/message-banner.ts → interfaces/message-banner.d.ts} +0 -0
- /package/{projects/component-library/src/interfaces/option-interface.ts → interfaces/option-interface.d.ts} +0 -0
- /package/{src → styles}/styles.css +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { PageLayoutComponent } from './page-layout.component';
|
|
4
|
-
|
|
5
|
-
describe('PageLayoutComponent', () => {
|
|
6
|
-
let component: PageLayoutComponent;
|
|
7
|
-
let fixture: ComponentFixture<PageLayoutComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [PageLayoutComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(PageLayoutComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'sa-page-layout',
|
|
5
|
-
standalone: true,
|
|
6
|
-
imports: [],
|
|
7
|
-
templateUrl: './page-layout.component.html',
|
|
8
|
-
styleUrl: './page-layout.component.css'
|
|
9
|
-
})
|
|
10
|
-
export class PageLayoutComponent {
|
|
11
|
-
@Input() showRightContent: boolean = false;
|
|
12
|
-
@Input() showFooterContent: boolean = false;
|
|
13
|
-
@Input() showProgressBarContent;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.progress-bar {
|
|
2
|
-
height: var(--dynamic-height, 8px);
|
|
3
|
-
border-radius: var(--dynamic-border-radius, 20px);
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
--mdc-linear-progress-active-indicator-color: var(--primary-500, #7F56D9);
|
|
7
|
-
--mdc-linear-progress-track-color: white;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
::ng-deep .progress-bar .mdc-linear-progress__primary-bar {
|
|
11
|
-
background-color: var(--mdc-linear-progress-active-indicator-color);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
::ng-deep .progress-bar .mdc-linear-progress__bar {
|
|
15
|
-
height: var(--dynamic-height, 8px);
|
|
16
|
-
border-radius: var(--dynamic-border-radius, 20px);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
::ng-deep .progress-bar .mdc-linear-progress__bar-inner {
|
|
20
|
-
border-top-style: none;
|
|
21
|
-
border-radius: var(--dynamic-border-radius, 20px);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
::ng-deep .progress-bar .mdc-linear-progress__secondary-bar {
|
|
25
|
-
background-color: var(--mdc-linear-progress-track-color);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
::ng-deep .progress-bar .mdc-linear-progress__buffer-bar {
|
|
29
|
-
background-color: transparent;
|
|
30
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ProgressBarComponent } from './progress-bar.component';
|
|
4
|
-
|
|
5
|
-
describe('ProgressBarComponent', () => {
|
|
6
|
-
let component: ProgressBarComponent;
|
|
7
|
-
let fixture: ComponentFixture<ProgressBarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ProgressBarComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(ProgressBarComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
3
|
-
import { NgStyle } from '@angular/common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'sa-progress-bar',
|
|
8
|
-
standalone: true,
|
|
9
|
-
templateUrl: './progress-bar.component.html',
|
|
10
|
-
styleUrl: './progress-bar.component.css',
|
|
11
|
-
imports: [MatProgressBarModule, NgStyle],
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
export class ProgressBarComponent implements OnInit {
|
|
15
|
-
@Input() progressValue: number = 10;
|
|
16
|
-
@Input() borderRadius: string = '10px';
|
|
17
|
-
@Input() height: string = '8px';
|
|
18
|
-
|
|
19
|
-
constructor(private el: ElementRef, private renderer: Renderer2) { }
|
|
20
|
-
|
|
21
|
-
ngOnInit(): void {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
.radio-group-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 20px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.radio-group-container .mat-mdc-radio-group {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
justify-content: flex-start;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: var(--small-8px, 8px);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.radio-group-container.column .mat-mdc-radio-group {
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
align-items: flex-start;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
::ng-deep.radio-group-container .mdc-form-field,
|
|
21
|
-
::ng-deep.radio-group-container .mdc-form-field.mat-internal-form-field {
|
|
22
|
-
border-radius: var(--large-64px, 64px);
|
|
23
|
-
border: 1px solid var(--grey-100, #EAECF0);
|
|
24
|
-
padding: 0 1.75rem 0 0.75rem;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
display: flex;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,
|
|
30
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,
|
|
31
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,
|
|
32
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,
|
|
33
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,
|
|
34
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,
|
|
35
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,
|
|
36
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,
|
|
37
|
-
::ng-deep .radio-group-container .mat-mdc-radio-checked .mdc-form-field,
|
|
38
|
-
::ng-deep .radio-group-container .mat-mdc-radio-checked .mdc-form-field.mat-internal-form-field {
|
|
39
|
-
border-color: var(--primary-500);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* for radio button size */
|
|
43
|
-
::ng-deep .radio-group-container .mdc-radio__background {
|
|
44
|
-
height: 1rem;
|
|
45
|
-
width: 1rem;
|
|
46
|
-
top: 0.125rem;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
::ng-deep .radio-group-container .mat-radio-outer-circle {
|
|
50
|
-
height: 0.625rem;
|
|
51
|
-
width: 0.625rem;
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
::ng-deep .radio-group-container .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle {
|
|
56
|
-
transform: scale(0.4);
|
|
57
|
-
top: -2px;
|
|
58
|
-
left: -2px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* end */
|
|
62
|
-
|
|
63
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio .mdc-radio__background::before {
|
|
64
|
-
background-color: #FFF;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
::ng-deep .radio-group-container .radio-box:hover {
|
|
68
|
-
border-radius: var(--large-64px);
|
|
69
|
-
background: var(--structural-neutral1);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
::ng-deep .radio-group-container .mdc-label {
|
|
73
|
-
padding-left: 0;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
color: var(--text-highemphasis, #1C1B20);
|
|
76
|
-
font-family: var(--font);
|
|
77
|
-
font-size: 0.875rem;
|
|
78
|
-
font-style: normal;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
line-height: 1.25rem;
|
|
81
|
-
letter-spacing: 0.25px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
::ng-deep .radio-group-container .radio-box {
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle {
|
|
89
|
-
border-color: var(--icon-grey1, #757575);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio {
|
|
93
|
-
padding: var(--small-8px) var(--small-8px) var(--small-8px) var(--small-12px);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
::ng-deep .radio-group-container .mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle {
|
|
97
|
-
border-width: 1.5px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
::ng-deep .radio-group-container .mat-mdc-radio-checked .mdc-label {
|
|
101
|
-
color: var(--primary-500);
|
|
102
|
-
font-family: var(--font);
|
|
103
|
-
font-size: 0.875rem;
|
|
104
|
-
font-style: normal;
|
|
105
|
-
font-weight: 600;
|
|
106
|
-
letter-spacing: 0.15px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
::ng-deep .radio-group-container .mdc-label {
|
|
110
|
-
color: var(--Text-High-Emphasis, #1C1B20);
|
|
111
|
-
font-family: var(--font);
|
|
112
|
-
font-weight: 400;
|
|
113
|
-
line-height: 1.25rem;
|
|
114
|
-
letter-spacing: 0.25px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.title-container {
|
|
118
|
-
display: flex;
|
|
119
|
-
flex-direction: column;
|
|
120
|
-
gap: var(--small-8px);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.radio-group-container .form-field {
|
|
125
|
-
display: flex;
|
|
126
|
-
flex-direction: column;
|
|
127
|
-
gap: var(--small-8px);
|
|
128
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<div class="radio-group-container" [ngClass]="[props['column'] ? 'column' : '']">
|
|
2
|
-
<div class="title-container">
|
|
3
|
-
@if(props['label']){
|
|
4
|
-
<div class="form-field-title">
|
|
5
|
-
<span>{{ props['label'] }}</span>
|
|
6
|
-
</div>
|
|
7
|
-
}
|
|
8
|
-
@if(props['description']){
|
|
9
|
-
<div class="form-field-description">
|
|
10
|
-
<span>{{ props['description'] }}</span>
|
|
11
|
-
</div>
|
|
12
|
-
}
|
|
13
|
-
</div>
|
|
14
|
-
<div class="form-field">
|
|
15
|
-
<mat-radio-group [formControl]="formControl" name="radioButtons">
|
|
16
|
-
<div *ngFor="let option of options$ | async" class="radio-box" (click)="selectRadio(option.value, radio)">
|
|
17
|
-
<mat-radio-button [disableRipple]="true" #radio [value]="option.value">
|
|
18
|
-
{{ option.label }}
|
|
19
|
-
</mat-radio-button>
|
|
20
|
-
</div>
|
|
21
|
-
</mat-radio-group>
|
|
22
|
-
</div>
|
|
23
|
-
@if(props['helpText']){
|
|
24
|
-
<div class="form-field-helpText">
|
|
25
|
-
<span>{{ props['helpText'] }}</span>
|
|
26
|
-
</div>
|
|
27
|
-
}
|
|
28
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { RadioButtonComponent } from './radio-button.component';
|
|
4
|
-
|
|
5
|
-
describe('RadioButtonComponent', () => {
|
|
6
|
-
let component: RadioButtonComponent;
|
|
7
|
-
let fixture: ComponentFixture<RadioButtonComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [RadioButtonComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(RadioButtonComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { MatRadioButton, MatRadioModule } from '@angular/material/radio';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { FieldType } from '@ngx-formly/core';
|
|
6
|
-
import { isObservable, of } from 'rxjs';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'sa-radio-button',
|
|
10
|
-
standalone: true,
|
|
11
|
-
imports: [MatRadioButton, MatRadioModule, CommonModule, FormsModule, ReactiveFormsModule],
|
|
12
|
-
templateUrl: './radio-button.component.html',
|
|
13
|
-
styleUrl: './radio-button.component.css'
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
export class RadioButtonComponent extends FieldType {
|
|
17
|
-
|
|
18
|
-
ngOnInit() {
|
|
19
|
-
// console.log(this)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
get options$() {
|
|
23
|
-
const options = this.props?.options;
|
|
24
|
-
return isObservable(options) ? options : of(options || []);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
override get formControl(): FormControl {
|
|
28
|
-
return super.formControl as FormControl;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
selectRadio(value: any, radio: MatRadioButton): void {
|
|
32
|
-
this.formControl.setValue(value);
|
|
33
|
-
radio.checked = true;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
.scrolling-cards-container {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
width: fit-content;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.scrolling-cards-container.vertical {
|
|
9
|
-
height: 100%;
|
|
10
|
-
position: relative;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.scrolling-cards-container.vertical::before,
|
|
14
|
-
.scrolling-cards-container.vertical::after {
|
|
15
|
-
content: "";
|
|
16
|
-
position: absolute;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: var(--medium-36px);
|
|
19
|
-
z-index: 1;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.scrolling-cards-container.vertical::before {
|
|
23
|
-
background: rgb(251, 250, 255);
|
|
24
|
-
background: -moz-linear-gradient(180deg, var(--structural-primarytint) 10%, rgba(255, 255, 255, 0.12) 100%);
|
|
25
|
-
background: -webkit-linear-gradient(180deg, var(--structural-primarytint) 10%, rgba(255, 255, 255, 0.12) 100%);
|
|
26
|
-
background: linear-gradient(180deg, var(--structural-primarytint) 10%, rgba(255, 255, 255, 0.12) 100%);
|
|
27
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="var(--structural-primarytint)", endColorstr="#ffffff", GradientType=1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.scrolling-cards-container.vertical::after {
|
|
31
|
-
bottom: 0;
|
|
32
|
-
background: rgb(251,250,255);
|
|
33
|
-
background: -moz-linear-gradient(360deg, var(--structural-primarytint) 10%, rgba(255,255,255,0.12) 100%);
|
|
34
|
-
background: -webkit-linear-gradient(360deg, var(--structural-primarytint) 10%, rgba(255,255,255,0.12) 100%);
|
|
35
|
-
background: linear-gradient(360deg, var(--structural-primarytint) 10%, rgba(255,255,255,0.12) 100%);
|
|
36
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="var(--structural-primarytint)",endColorstr="#ffffff",GradientType=1);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.card-container {
|
|
40
|
-
display: flex;
|
|
41
|
-
gap: var(--small-16px);
|
|
42
|
-
animation-duration: var(--scroll-duration, 30s);
|
|
43
|
-
/* animation-timing-function: linear(-0.25 54.94%, 1.2 63.4%); */
|
|
44
|
-
animation-timing-function: linear;
|
|
45
|
-
|
|
46
|
-
animation-iteration-count: infinite;
|
|
47
|
-
animation-direction: var(--scroll-direction, normal);
|
|
48
|
-
width: fit-content;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.card-container.vertical {
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
animation-name: scroll-vertical;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.card-container.horizontal {
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
animation-name: scroll-horizontal;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* @keyframes scroll-vertical {
|
|
62
|
-
0% {
|
|
63
|
-
transform: translateY(0);
|
|
64
|
-
}
|
|
65
|
-
100% {
|
|
66
|
-
transform: translateY(-50%);
|
|
67
|
-
}
|
|
68
|
-
} */
|
|
69
|
-
|
|
70
|
-
@keyframes scroll-vertical {
|
|
71
|
-
0% {
|
|
72
|
-
transform: translateY(0);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
100% {
|
|
76
|
-
transform: translateY(calc(-50% - var(--small-16px)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* @keyframes scroll-horizontal {
|
|
81
|
-
0% {
|
|
82
|
-
transform: translateX(0);
|
|
83
|
-
}
|
|
84
|
-
100% {
|
|
85
|
-
transform: translateX(-50%);
|
|
86
|
-
}
|
|
87
|
-
} */
|
|
88
|
-
|
|
89
|
-
@keyframes scroll-horizontal {
|
|
90
|
-
0% {
|
|
91
|
-
transform: translateX(0);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
100% {
|
|
95
|
-
transform: translateX(calc(-50% - var(--small-16px)));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
sa-card {
|
|
100
|
-
flex-shrink: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.card-container.vertical {
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
animation-name: scroll-vertical;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@keyframes scroll-continuous {
|
|
109
|
-
0% {
|
|
110
|
-
transform: translateX(100%);
|
|
111
|
-
/* Start from the right edge */
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
100% {
|
|
115
|
-
transform: translateX(-100%);
|
|
116
|
-
/* Move completely to the left */
|
|
117
|
-
}
|
|
118
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<div class="scrolling-cards-container {{this.isVertical ? 'vertical': 'horizontal'}}" (mouseenter)="pauseScroll()"
|
|
2
|
-
(mouseleave)="resumeScroll()">
|
|
3
|
-
<div #cardContainer class="card-container">
|
|
4
|
-
@for (card of displayCards; track card.title) {
|
|
5
|
-
<sa-card [title]="card.title" [body]="card.body" [icon]="card.icon" [iconSize]="'54'"
|
|
6
|
-
[customWrapperClass]="'sa-card-secondary-wrapper'" [width]="'24.063rem'" [column]="false"
|
|
7
|
-
[showCardBody]="true">
|
|
8
|
-
</sa-card>
|
|
9
|
-
}
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ScrollingCardsComponent } from './scrolling-cards.component';
|
|
4
|
-
|
|
5
|
-
describe('ScrollingCardsComponent', () => {
|
|
6
|
-
let component: ScrollingCardsComponent;
|
|
7
|
-
let fixture: ComponentFixture<ScrollingCardsComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ScrollingCardsComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(ScrollingCardsComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|