@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,149 +0,0 @@
|
|
|
1
|
-
* {
|
|
2
|
-
font-family: var(--font);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.sa-card-wrapper {
|
|
6
|
-
display: flex;
|
|
7
|
-
border: 1px solid var(--grey-50);
|
|
8
|
-
border-radius: 6px;
|
|
9
|
-
/* width: inherit; */
|
|
10
|
-
height: inherit;
|
|
11
|
-
min-height: max-content;
|
|
12
|
-
padding: 12px;
|
|
13
|
-
background: var(--structural-white);
|
|
14
|
-
gap: var(--small-12px);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.sa-card-wrapper.column {
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.sa-card-wrapper.sa-card-secondary-wrapper {
|
|
22
|
-
gap: var(--medium-20px, 20px);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.sa-card-wrapper.sa-card-custom-wrapper {
|
|
26
|
-
gap: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.column .sa-card-img,
|
|
30
|
-
.column .sa-card-icon {
|
|
31
|
-
/* margin: 0 0 12px 0; */
|
|
32
|
-
display: flex;
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.sa-card-img img {
|
|
37
|
-
height: auto;
|
|
38
|
-
/* width: 200px; */
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.sa-card-icon span {
|
|
42
|
-
background-repeat: no-repeat;
|
|
43
|
-
background-size: cover;
|
|
44
|
-
background-position: center;
|
|
45
|
-
display: block;
|
|
46
|
-
height: 24px;
|
|
47
|
-
width: 24px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sa-card-container {
|
|
51
|
-
/* margin-left: 12px; */
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
width: -webkit-fill-available;
|
|
56
|
-
gap: 0.188rem;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.sa-card-title-container {
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.column .sa-card-title-container {
|
|
65
|
-
flex-direction: column;
|
|
66
|
-
margin-bottom: 8px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.sa-card-title {
|
|
70
|
-
/* font-family: var(--font-family); */
|
|
71
|
-
font-size: 16px;
|
|
72
|
-
font-weight: 600;
|
|
73
|
-
line-height: 24px;
|
|
74
|
-
margin-bottom: 4px;
|
|
75
|
-
/* letter-spacing: 0.15000000596046448px;
|
|
76
|
-
text-align: left; */
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.sa-card-body {
|
|
80
|
-
/* font-family: var(--font-family); */
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
font-weight: 400;
|
|
83
|
-
line-height: 20px;
|
|
84
|
-
letter-spacing: 0.25px;
|
|
85
|
-
text-align: left;
|
|
86
|
-
color: var(--grey-300);
|
|
87
|
-
flex: 1;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.sa-card-container .custom-divider {
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 0.063rem;
|
|
93
|
-
background-color: #ccc;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.sa-card-custom-container {
|
|
97
|
-
gap: var(--medium-20px, 20px);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.sa-card-custom-wrapper {
|
|
101
|
-
padding: 1.25rem;
|
|
102
|
-
border-radius: var(--small-8px, 8px);
|
|
103
|
-
border: 1px solid var(--grey-100, #EAECF0);
|
|
104
|
-
background: #FFF;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.sa-card-secondary-wrapper .sa-card-icon {
|
|
108
|
-
margin: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.sa-card-secondary-wrapper {
|
|
112
|
-
gap: var(--medium-20px, 20px);
|
|
113
|
-
padding: var(--medium-20px, 20px);
|
|
114
|
-
border-radius: var(--small-8px, 8px);
|
|
115
|
-
border: 1px solid var(--grey-100, #EAECF0);
|
|
116
|
-
background: #FFF;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.sa-card-checkbox-wrapper {
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
border-radius: var(--small-8px, 8px);
|
|
122
|
-
border: 1px solid var(--grey-100, #EAECF0);
|
|
123
|
-
display: flex;
|
|
124
|
-
padding: var(--medium-20px);
|
|
125
|
-
flex-direction: column;
|
|
126
|
-
align-items: flex-start;
|
|
127
|
-
gap: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.sa-card-accordion-wrapper {
|
|
131
|
-
display: flex;
|
|
132
|
-
padding: var(--small-6px) var(--small-16px) var(--small-6px) var(--small-6px);
|
|
133
|
-
height: 3.25rem;
|
|
134
|
-
align-items: center;
|
|
135
|
-
gap: var(--small-12px);
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
::ng-deep.card-selected .sa-card-checkbox-wrapper {
|
|
140
|
-
border: 1px solid var(--primary-500);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
::ng-deep.card-selected .sa-card-checkbox-wrapper {
|
|
144
|
-
border: 1px solid var(--primary-500);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
::ng-deep.sa-document-action {
|
|
148
|
-
color: var(--text-lowemphasis, #989DA3);
|
|
149
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<div class="sa-card" [ngStyle]="cardStyles">
|
|
2
|
-
<div class="sa-card-wrapper" [ngClass]="[column ? 'column' : '', customWrapperClass]">
|
|
3
|
-
<div class="" [ngClass]="avatar || image ? 'sa-card-img' : 'sa-card-icon'">
|
|
4
|
-
@if(avatar){
|
|
5
|
-
<sa-avatar [imagePath]="avatar" [size]="avatarSize"></sa-avatar>
|
|
6
|
-
<!-- <img [src]="avatar" /> -->
|
|
7
|
-
}@else if(image){
|
|
8
|
-
<img [src]="image" [width]="imageWidth" />
|
|
9
|
-
}@else if(icon){
|
|
10
|
-
<sa-icon [icon]="icon" [size]="iconSize"></sa-icon>
|
|
11
|
-
}@else{
|
|
12
|
-
<ng-content select="sa-card-icon"></ng-content>
|
|
13
|
-
}
|
|
14
|
-
@if(column){
|
|
15
|
-
<ng-content select="sa-card-title-actions"></ng-content>
|
|
16
|
-
}
|
|
17
|
-
</div>
|
|
18
|
-
<div class="sa-card-container" [ngClass]="showCardHeader ? 'sa-card-custom-container' : ''">
|
|
19
|
-
@if(showCardHeader){
|
|
20
|
-
<ng-content select="sa-card-title-header"></ng-content>
|
|
21
|
-
@if (showHeaderBodyDivider && body) {
|
|
22
|
-
<div class="custom-divider"></div>
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
@else if(title){
|
|
26
|
-
<div class="sa-card-title-container">
|
|
27
|
-
<div class="sa-card-title">{{title}}</div>
|
|
28
|
-
@if(chip){
|
|
29
|
-
<sa-chip [text]="chip.text" [type]="chip.type" [state]="chip.state" [filling]="chip.filling"></sa-chip>
|
|
30
|
-
}
|
|
31
|
-
<ng-content select="sa-card-title-actions"></ng-content>
|
|
32
|
-
|
|
33
|
-
</div>
|
|
34
|
-
}
|
|
35
|
-
@if (showCustomCardBody) {
|
|
36
|
-
<ng-content select="sa-card-custom-body"></ng-content>
|
|
37
|
-
}
|
|
38
|
-
@if(showCardBody && body){
|
|
39
|
-
<div class="sa-card-body">
|
|
40
|
-
{{body}}
|
|
41
|
-
</div>
|
|
42
|
-
}
|
|
43
|
-
<ng-content select="sa-card-footer-actions"></ng-content>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { CardComponent } from './card.component';
|
|
4
|
-
|
|
5
|
-
describe('CardComponent', () => {
|
|
6
|
-
let component: CardComponent;
|
|
7
|
-
let fixture: ComponentFixture<CardComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [CardComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(CardComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, Input, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { ChipsComponent } from '../chips/chips.component';
|
|
4
|
-
import { ChipInterface } from '../../interfaces/chip-interface';
|
|
5
|
-
import { IconComponent } from '../icon/icon.component';
|
|
6
|
-
import { AvatarComponent } from "../avatar/avatar.component";
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'sa-card',
|
|
10
|
-
standalone: true,
|
|
11
|
-
imports: [CommonModule, ChipsComponent, IconComponent, AvatarComponent],
|
|
12
|
-
templateUrl: './card.component.html',
|
|
13
|
-
styleUrl: './card.component.css'
|
|
14
|
-
})
|
|
15
|
-
export class CardComponent {
|
|
16
|
-
@Input('title') title: string = '';
|
|
17
|
-
@Input('showCardHeader') showCardHeader: boolean = false;
|
|
18
|
-
@Input('showCardBody') showCardBody: boolean = false;
|
|
19
|
-
@Input('showHeaderBodyDivider') showHeaderBodyDivider: boolean = false;
|
|
20
|
-
@Input('showCustomCardBody') showCustomCardBody: boolean = false;
|
|
21
|
-
@Input('customWrapperClass') customWrapperClass: string = '';
|
|
22
|
-
@Input('chip') chip: ChipInterface | null = null;
|
|
23
|
-
@Input('body') body: string = '';
|
|
24
|
-
@Input('avatar') avatar: string = '';
|
|
25
|
-
@Input('image') image: string = '';
|
|
26
|
-
@Input('imageWidth') imageWidth: string = '';
|
|
27
|
-
@Input('avatarSize') avatarSize: string;
|
|
28
|
-
|
|
29
|
-
@Input('icon') icon: string = '';
|
|
30
|
-
@Input('iconSize') iconSize: string;
|
|
31
|
-
|
|
32
|
-
@Input('subtitle') subtitle: string = '';
|
|
33
|
-
@Input('logoIcon') logoIcon: string = '';
|
|
34
|
-
|
|
35
|
-
@Input('width') width: string | number;
|
|
36
|
-
@Input('height') height: string | number;
|
|
37
|
-
@Input('column') column: boolean = false;
|
|
38
|
-
|
|
39
|
-
cardStyles: any = {};
|
|
40
|
-
|
|
41
|
-
ngOnChanges(changes: SimpleChanges) {
|
|
42
|
-
if (changes['width']?.currentValue || changes['height']?.currentValue) {
|
|
43
|
-
this.cardStyles['width'] = typeof changes['width']?.currentValue === 'string' ? changes['width']?.currentValue : changes['width']?.currentValue + '%';
|
|
44
|
-
this.cardStyles['height'] = typeof changes['height']?.currentValue === 'string' ? changes['height']?.currentValue : changes['height']?.currentValue + '%';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
.sa-card-title-logo-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
gap: var(--small-8px);
|
|
4
|
-
align-items: center;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.sa-card-title-logo sa-icon {
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
::ng-deep.checkbox-style .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
|
|
12
|
-
::ng-deep.checkbox-style .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,
|
|
13
|
-
::ng-deep.checkbox-style .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,
|
|
14
|
-
::ng-deep.checkbox-style.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
|
|
15
|
-
::ng-deep.checkbox-style .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,
|
|
16
|
-
::ng-deep.checkbox-style .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,
|
|
17
|
-
::ng-deep.checkbox-style .mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,
|
|
18
|
-
::ng-deep.checkbox-style .mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background,
|
|
19
|
-
::ng-deep.checkbox-style .mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple,
|
|
20
|
-
::ng-deep.checkbox-style .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
|
|
21
|
-
::ng-deep.checkbox-style .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,
|
|
22
|
-
::ng-deep.checkbox-style .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,
|
|
23
|
-
::ng-deep.checkbox-style .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
|
|
24
|
-
::ng-deep.checkbox-style .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,
|
|
25
|
-
::ng-deep.checkbox-style .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,
|
|
26
|
-
::ng-deep.checkbox-style .mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple {
|
|
27
|
-
border-color: var(--primary-500);
|
|
28
|
-
background-color: var(--primary-500);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.checkbox-card {
|
|
32
|
-
display: block;
|
|
33
|
-
height: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.buttons-container {
|
|
37
|
-
display: flex;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
align-items: center;
|
|
40
|
-
height: 100%;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Button Wrapper */
|
|
44
|
-
.button-wrapper {
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.button-content {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
align-items: flex-start;
|
|
54
|
-
gap: var(--medium-20px, 20px);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.description-container {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
gap: var(--small-12px);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.description-style {
|
|
64
|
-
color: var(--text-mediumemphasis, #6D6979);
|
|
65
|
-
font-family: var(--font);
|
|
66
|
-
font-size: var(--small-14px);
|
|
67
|
-
font-style: normal;
|
|
68
|
-
font-weight: 500;
|
|
69
|
-
line-height: var(--medium-20px);
|
|
70
|
-
letter-spacing: 0.1px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.description-icon {
|
|
74
|
-
display: flex;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
::ng-deep .sa-card {
|
|
78
|
-
height: 100%;
|
|
79
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<sa-card [width]="props['width']" [customWrapperClass]="props['customWrapperClass']"
|
|
2
|
-
(click)="!props['disabled'] && onCardClick($event)" [showCardBody]="false" [showCardHeader]="true"
|
|
3
|
-
[showCustomCardBody]="true" class="checkbox-card {{props['isCardSelected'] ? 'card-selected': ''}}"
|
|
4
|
-
[style.width]="props['width']">
|
|
5
|
-
<sa-card-title-header>
|
|
6
|
-
<div class="sa-card-custom-header-container">
|
|
7
|
-
<div class="sa-card-title-logo-container">
|
|
8
|
-
<div class="sa-card-title-logo {{props['disabled'] ? 'disabled-card': ''}}"><sa-icon
|
|
9
|
-
[icon]="props['featureIcon']" customClass="auto-dimensions colored-icon"></sa-icon>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="sa-card-custom-title">{{props['title']}}</div>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="sa-card-titleIcon">
|
|
14
|
-
<sa-card-title-actions>
|
|
15
|
-
<div class="sa-document-action">
|
|
16
|
-
@if(props['disabled']){
|
|
17
|
-
<sa-icon icon="disabledCheckboxFilled"
|
|
18
|
-
customClass="auto-dimensions disabled-checkbox-icon"></sa-icon>
|
|
19
|
-
}@else{
|
|
20
|
-
<mat-checkbox class="checkbox-style" [formControl]="formControl"
|
|
21
|
-
(click)="onCheckboxClick($event)" [disabled]="props['disabled']"></mat-checkbox>
|
|
22
|
-
}
|
|
23
|
-
</div>
|
|
24
|
-
</sa-card-title-actions>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</sa-card-title-header>
|
|
28
|
-
<sa-card-custom-body>
|
|
29
|
-
@if(props['listItems']){
|
|
30
|
-
<lib-list [listData]="props['listItems']" [featuresIcon]="props['listIcon']"></lib-list>
|
|
31
|
-
}@else if(props['showButtons']){
|
|
32
|
-
<div class="buttons-container">
|
|
33
|
-
<ng-container *ngFor="let button of props['showButtons']">
|
|
34
|
-
<ng-container *ngIf="button.type === 'submit'">
|
|
35
|
-
<div class="button-content">
|
|
36
|
-
@if(props['description']){
|
|
37
|
-
@if(props['descriptionIcon']){
|
|
38
|
-
<div class="description-container">
|
|
39
|
-
<sa-icon [icon]="props['descriptionIcon']" customClass="auto-dimensions disabled-icon"
|
|
40
|
-
class="description-icon"></sa-icon>
|
|
41
|
-
<span class="description-style">{{props['description']}}</span>
|
|
42
|
-
</div>
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
<sa-button (click)="actionHandler(button)" [text]="button.label" [type]="button.buttonType"
|
|
46
|
-
[size]="button.size" [state]="button.state" [icon]="button.icon"
|
|
47
|
-
[iconPosition]='button.iconPosition' class="checkbox-card-action-button"
|
|
48
|
-
[buttonIconSize]="button.iconSize"></sa-button>
|
|
49
|
-
</div>
|
|
50
|
-
</ng-container>
|
|
51
|
-
</ng-container>
|
|
52
|
-
</div>
|
|
53
|
-
}
|
|
54
|
-
</sa-card-custom-body>
|
|
55
|
-
</sa-card>
|
package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { CheckboxCardComponent } from './checkbox-card.component';
|
|
4
|
-
|
|
5
|
-
describe('CheckboxCardComponent', () => {
|
|
6
|
-
let component: CheckboxCardComponent;
|
|
7
|
-
let fixture: ComponentFixture<CheckboxCardComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [CheckboxCardComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(CheckboxCardComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { CardComponent } from '../card.component';
|
|
3
|
-
import { IconComponent } from '../../icon/icon.component';
|
|
4
|
-
import { ListComponent } from '../../list/list.component';
|
|
5
|
-
import { CardBodyComponent } from '../card-body/card-body.component';
|
|
6
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { CardTitleActionsComponent } from '../card-title-actions/card-title-actions.component';
|
|
9
|
-
import { CardCustomHeaderComponent } from '../card-custom-header/card-custom-header.component';
|
|
10
|
-
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
import { FieldType } from '@ngx-formly/core';
|
|
12
|
-
import { ButtonComponent } from '../../button/button.component';
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'sa-checkbox-card',
|
|
16
|
-
standalone: true,
|
|
17
|
-
imports: [CardComponent, IconComponent, ListComponent, CardBodyComponent, MatCheckboxModule, CommonModule, CardTitleActionsComponent, CardCustomHeaderComponent, FormsModule, ReactiveFormsModule, ButtonComponent],
|
|
18
|
-
templateUrl: './checkbox-card.component.html',
|
|
19
|
-
styleUrl: './checkbox-card.component.css'
|
|
20
|
-
})
|
|
21
|
-
export class CheckboxCardComponent extends FieldType {
|
|
22
|
-
|
|
23
|
-
ngOnInit() {
|
|
24
|
-
// console.log(this)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
onCardClick(event: MouseEvent): void {
|
|
28
|
-
this.props['isCardSelected'] = !this.props['isCardSelected'];
|
|
29
|
-
this.formControl.setValue(!this.formControl.value);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
onCheckboxClick(event: Event): void {
|
|
33
|
-
event.stopPropagation();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
override get formControl(): FormControl {
|
|
38
|
-
return super.formControl as FormControl;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
actionHandler(button: any) {
|
|
42
|
-
this.field.props['onButtonClick'](this.field);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
.guide-container {
|
|
2
|
-
background-color: var(--structural-white);
|
|
3
|
-
border: 0.0625rem solid var(--grey-100, #eaecf0);
|
|
4
|
-
border-radius: 0.5rem;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
padding: 1.75rem 1.875rem 1.75rem 1.875rem;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
gap: 2.25rem;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.guide-header {
|
|
13
|
-
border-bottom: 0.0625rem solid var(--grey-100, #eaecf0);
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.guide-header h1 {
|
|
18
|
-
font-size: 1.5rem;
|
|
19
|
-
color: var(--text-highemphasis, #1C1B20);
|
|
20
|
-
margin: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.guide-content {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: var(--large-42px);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.step {
|
|
30
|
-
display: flex;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.guide-header .guide-header-title,
|
|
34
|
-
.step-content .step-title {
|
|
35
|
-
color: var(--text-highemphasis, #1C1B20);
|
|
36
|
-
font-family: var(--font-roboto, 'Roboto');
|
|
37
|
-
font-size: var(--small-16px);
|
|
38
|
-
font-style: normal;
|
|
39
|
-
font-weight: 400;
|
|
40
|
-
line-height: 1.5rem;
|
|
41
|
-
letter-spacing: 0.03125rem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.step-content .step-description {
|
|
46
|
-
color: var(--text-lowemphasis, #98A2A3)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.step-indicator {
|
|
50
|
-
margin-right: 1.1575rem;
|
|
51
|
-
margin-top: 0.125rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.step-circle {
|
|
55
|
-
width: 1rem;
|
|
56
|
-
height: 1rem;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
border: 0.25rem solid var(--primary-500);
|
|
59
|
-
margin: 0.125rem auto 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.step-line {
|
|
63
|
-
width: 0.125rem;
|
|
64
|
-
height: calc(100% + 1.75rem);
|
|
65
|
-
background-color: var(--primary-500);
|
|
66
|
-
margin: 0 auto 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.step-content h2 {
|
|
70
|
-
font-size: 1.125rem;
|
|
71
|
-
color: var(--text-highemphasis, #1C1B20);
|
|
72
|
-
margin: 0 0 0.625rem 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.step-content p {
|
|
76
|
-
font-size: 0.875rem;
|
|
77
|
-
color: var(--text-highemphasis, #1C1B20);
|
|
78
|
-
margin: 0;
|
|
79
|
-
line-height: 1.5;
|
|
80
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<div class="guide-container">
|
|
2
|
-
<div class="guide-header">
|
|
3
|
-
<p class="guide-header-title">{{ title }}</p>
|
|
4
|
-
</div>
|
|
5
|
-
<div class="guide-content">
|
|
6
|
-
@for (step of steps; track step; let last = $last) {
|
|
7
|
-
<div class="step">
|
|
8
|
-
<div class="step-indicator">
|
|
9
|
-
<div class="step-circle"></div>
|
|
10
|
-
|
|
11
|
-
@if (!last) {
|
|
12
|
-
<div class="step-line"></div>
|
|
13
|
-
}
|
|
14
|
-
</div>
|
|
15
|
-
<div class="step-content">
|
|
16
|
-
<p class="step-title">{{ step.title }}</p>
|
|
17
|
-
@if (step?.description) {
|
|
18
|
-
<p class="step-description">{{ step.description }}</p>
|
|
19
|
-
}
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
}
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { GuideCardComponent } from './guide-card.component';
|
|
4
|
-
|
|
5
|
-
describe('GuideCardComponent', () => {
|
|
6
|
-
let component: GuideCardComponent;
|
|
7
|
-
let fixture: ComponentFixture<GuideCardComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [GuideCardComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(GuideCardComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { GuideStep } from '../../../interfaces/guide-card-interface';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'sa-guide-card',
|
|
8
|
-
standalone: true,
|
|
9
|
-
imports: [],
|
|
10
|
-
templateUrl: './guide-card.component.html',
|
|
11
|
-
styleUrl: './guide-card.component.css',
|
|
12
|
-
encapsulation: ViewEncapsulation.None
|
|
13
|
-
})
|
|
14
|
-
export class GuideCardComponent {
|
|
15
|
-
@Input() title: string = '';
|
|
16
|
-
@Input() steps: GuideStep[] = []
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|