@sarasanalytics-com/design-system 0.0.43 → 0.0.44
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 +97 -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 +1987 -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 +28 -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,91 +0,0 @@
|
|
|
1
|
-
/* card-carousel.component.css */
|
|
2
|
-
.carousel-container {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.controls {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
margin: 0 0 var(--medium-20px) 0;
|
|
12
|
-
width: 100%;
|
|
13
|
-
min-height: var(--medium-32px);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dots {
|
|
17
|
-
display: inline-flex;
|
|
18
|
-
gap: var(--small-4px);
|
|
19
|
-
align-items: center;
|
|
20
|
-
width: 17rem;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.arrow-controls {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
margin-top: var(--small-4px);
|
|
28
|
-
gap: var(--small-12px);
|
|
29
|
-
margin-left: auto;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.arrow-controls sa-icon {
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.dot {
|
|
37
|
-
width: var(--small-6px);
|
|
38
|
-
height: var(--small-6px);
|
|
39
|
-
min-width: var(--small-6px);
|
|
40
|
-
min-height: var(--small-6px);
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
background-color: var(--grey-200);
|
|
43
|
-
margin: 0 var(--small-6px);
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
display: block;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.dot.active {
|
|
49
|
-
background-color: var(--primary-500);
|
|
50
|
-
width: var(--small-8px);
|
|
51
|
-
height: var(--small-8px);
|
|
52
|
-
min-width: var(--small-8px);
|
|
53
|
-
min-height: var(--small-8px);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.brand-logos-container {
|
|
57
|
-
width: 100%; /* Adjust as needed */
|
|
58
|
-
margin-top: var(--medium-32px);
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
max-width: 28.9375rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.brand-logos {
|
|
64
|
-
display: flex;
|
|
65
|
-
gap: var(--medium-24px);
|
|
66
|
-
transition: transform 0.3s ease;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
align-items: center;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.brand-logos sa-icon {
|
|
72
|
-
flex: 0 0 60px;
|
|
73
|
-
opacity: 0.5;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
height: var(--medium-32px);
|
|
80
|
-
max-height: var(--medium-32px);
|
|
81
|
-
min-height: var(--medium-32px);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.brand-logos sa-icon.active {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.sa-icon.logo-style > svg {
|
|
89
|
-
width: fit-content;
|
|
90
|
-
height: fit-content;
|
|
91
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- card-carousel.component.html -->
|
|
2
|
-
<div class="carousel-container">
|
|
3
|
-
<div class="carousel-top-wrapper">
|
|
4
|
-
<div class="controls">
|
|
5
|
-
@if (showIndicators) {
|
|
6
|
-
<div class="dots">
|
|
7
|
-
@for (card of cards; track card.id; let i = $index) {
|
|
8
|
-
<span class="dot" [class.active]="i === currentIndex" (click)="selectCard(i)"></span>
|
|
9
|
-
}
|
|
10
|
-
</div>
|
|
11
|
-
}
|
|
12
|
-
@if (showNavigationArrows) {
|
|
13
|
-
<div class="arrow-controls">
|
|
14
|
-
<sa-icon [icon]="'leftChevronCircle'" size="24" (click)="prev()"></sa-icon>
|
|
15
|
-
<sa-icon [icon]="'rightChevronCircle'" size="24" (click)="next()"></sa-icon>
|
|
16
|
-
</div>
|
|
17
|
-
}
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="card-container">
|
|
21
|
-
<sa-card [customWrapperClass]="'sa-card-custom-wrapper'" [width]="'24.063rem'" [column]="false"
|
|
22
|
-
[showCardHeader]="true" [showCardBody]="true" [body]="cards[currentIndex].body"
|
|
23
|
-
[showHeaderBodyDivider]="true">
|
|
24
|
-
<sa-card-title-header>
|
|
25
|
-
<div class="sa-card-custom-header-container">
|
|
26
|
-
<sa-icon [icon]="cards[currentIndex].avatarIcon" size="50"></sa-icon>
|
|
27
|
-
<div class="sa-card-title-subtitle-container">
|
|
28
|
-
<div class="sa-card-custom-title">{{ cards[currentIndex].title }}</div>
|
|
29
|
-
<div class="sa-card-subtitle">{{ cards[currentIndex].subtitle }}</div>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="sa-card-titleIcon">
|
|
32
|
-
<sa-icon [icon]="cards[currentIndex].logoIcon" customClass="logo-style"></sa-icon>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</sa-card-title-header>
|
|
36
|
-
</sa-card>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
@if (showBrandFooter) {
|
|
41
|
-
<div class="brand-logos-container">
|
|
42
|
-
<div class="brand-logos">
|
|
43
|
-
@for (logo of visibleLogos; track $index) {
|
|
44
|
-
<sa-icon [icon]="logo.logoIcon" [class.active]="$index === 1" (click)="selectCard(logo.index)"
|
|
45
|
-
[customClass]="'logo-style'">
|
|
46
|
-
</sa-icon>
|
|
47
|
-
}
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { CardCarouselComponent } from './card-carousel.component';
|
|
4
|
-
|
|
5
|
-
describe('CardCarouselComponent', () => {
|
|
6
|
-
let component: CardCarouselComponent;
|
|
7
|
-
let fixture: ComponentFixture<CardCarouselComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [CardCarouselComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(CardCarouselComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit, Input, OnDestroy, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { CardComponent } from '../card/card.component';
|
|
3
|
-
import { IconComponent } from '../icon/icon.component';
|
|
4
|
-
import { CardCustomHeaderComponent } from '../card/card-custom-header/card-custom-header.component';
|
|
5
|
-
import { CardCarousel } from '../../interfaces/card-carousel-interface';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'sa-card-carousel',
|
|
10
|
-
standalone: true,
|
|
11
|
-
imports: [CardComponent, IconComponent, CardCustomHeaderComponent],
|
|
12
|
-
templateUrl: './card-carousel.component.html',
|
|
13
|
-
styleUrl: './card-carousel.component.css',
|
|
14
|
-
encapsulation: ViewEncapsulation.None
|
|
15
|
-
})
|
|
16
|
-
export class CardCarouselComponent implements OnInit, OnDestroy {
|
|
17
|
-
@Input() cards: CardCarousel[] = [];
|
|
18
|
-
@Input() interval: number = 5000;
|
|
19
|
-
@Input() autoPlay: boolean = true;
|
|
20
|
-
@Input() showNavigationArrows: boolean = true;
|
|
21
|
-
@Input() showIndicators: boolean = true;
|
|
22
|
-
@Input() showBrandFooter: boolean = true;
|
|
23
|
-
|
|
24
|
-
visibleLogos: (CardCarousel & { index: number })[] = [];
|
|
25
|
-
|
|
26
|
-
currentIndex: number = 0;
|
|
27
|
-
private timer: any;
|
|
28
|
-
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
this.updateVisibleLogos();
|
|
31
|
-
if (this.autoPlay) {
|
|
32
|
-
this.startTimer();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
ngOnDestroy() {
|
|
37
|
-
this.stopTimer();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
startTimer() {
|
|
42
|
-
this.stopTimer();
|
|
43
|
-
this.timer = setInterval(() => {
|
|
44
|
-
this.next();
|
|
45
|
-
}, this.interval);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
stopTimer() {
|
|
49
|
-
if (this.timer) {
|
|
50
|
-
clearInterval(this.timer);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
resetTimer() {
|
|
55
|
-
clearInterval(this.timer);
|
|
56
|
-
if (this.autoPlay) {
|
|
57
|
-
this.startTimer();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
selectCard(index: number) {
|
|
62
|
-
this.currentIndex = index;
|
|
63
|
-
this.resetTimer();
|
|
64
|
-
this.updateVisibleLogos();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
next() {
|
|
68
|
-
this.currentIndex = (this.currentIndex + 1) % this.cards.length;
|
|
69
|
-
this.resetTimer();
|
|
70
|
-
this.updateVisibleLogos();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
prev() {
|
|
74
|
-
this.currentIndex = (this.currentIndex - 1 + this.cards.length) % this.cards.length;
|
|
75
|
-
this.resetTimer();
|
|
76
|
-
this.updateVisibleLogos();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
updateVisibleLogos() {
|
|
80
|
-
this.visibleLogos = [];
|
|
81
|
-
for (let i = -1; i <= 4; i++) {
|
|
82
|
-
const index = (this.currentIndex + i + this.cards.length) % this.cards.length;
|
|
83
|
-
this.visibleLogos.push({
|
|
84
|
-
...this.cards[index],
|
|
85
|
-
index: index
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
.checkbox-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--medium-20px);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.mat-mdc-radio-button~.mat-mdc-radio-button {
|
|
8
|
-
margin-left: var(--small-16px);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
::ng-deep .checkbox-container .custom-chip.mat-chip.mat-chip-selected::after {
|
|
12
|
-
content: none;
|
|
13
|
-
/* Remove the tick mark */
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
::ng-deep .checkbox-container .mat-mdc-standard-chip .mdc-evolution-chip__graphic {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
::ng-deep .checkbox-container .mat-mdc-standard-chip .mdc-evolution-chip__text-label:not(:only-child) {
|
|
21
|
-
padding-left: var(--small-12px);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
::ng-deep .checkbox-container mat-chip-option.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) {
|
|
25
|
-
border-radius: var(--large-64px, 64px);
|
|
26
|
-
border: 1.3px solid var(--primary-500);
|
|
27
|
-
background-color: var(--structural-white, #FFF);
|
|
28
|
-
padding: 0.125rem 0.625rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
::ng-deep .checkbox-container mat-chip-option.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
|
|
32
|
-
border-radius: var(--large-64px, 64px);
|
|
33
|
-
border: 1.3px solid var(--grey-100, #EAECF0);
|
|
34
|
-
background-color: var(--structural-white, #FFF);
|
|
35
|
-
padding: 0.125rem 0.625rem;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
::ng-deep .checkbox-container .mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before {
|
|
39
|
-
border: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
::ng-deep .checkbox-container mat-chip-option.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
43
|
-
color: var(--primary-500);
|
|
44
|
-
font-family: var(--font);
|
|
45
|
-
font-size: var(--small-14px);
|
|
46
|
-
font-style: normal;
|
|
47
|
-
font-weight: 500;
|
|
48
|
-
line-height: var(--medium-20px);
|
|
49
|
-
letter-spacing: 0.2px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
::ng-deep .checkbox-container mat-chip-option.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
|
|
53
|
-
background-color: var(--structural-white, #FFF);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
::ng-deep .checkbox-container .mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,
|
|
57
|
-
::ng-deep .checkbox-container.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before {
|
|
58
|
-
background-color: var(--structural-white, #FFF);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
::ng-deep .checkbox-container .mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
62
|
-
opacity: 0;
|
|
63
|
-
background: var(--structural-white, #FFF);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* to remove ripple effect */
|
|
67
|
-
/* ::ng-deep .checkbox-container .mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
|
|
68
|
-
background-color: white;
|
|
69
|
-
} */
|
|
70
|
-
|
|
71
|
-
::ng-deep .checkbox-container .mat-mdc-chip.mat-mdc-chip-option:hover {
|
|
72
|
-
background-color: var(--structural-neutral1);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.checkbox-container .form-field {
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: column;
|
|
78
|
-
gap: var(--small-8px);
|
|
79
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<div class="checkbox-container">
|
|
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-chip-listbox selectable multiple [disabled]="props.disabled" aria-label="Select options">
|
|
16
|
-
<mat-chip-option *ngFor="let option of options$ | async" class="custom-chip" [value]="option.value"
|
|
17
|
-
(click)="toggleSelection(option)" [selected]="isSelected(option)">
|
|
18
|
-
{{ option.label }}
|
|
19
|
-
</mat-chip-option>
|
|
20
|
-
</mat-chip-listbox>
|
|
21
|
-
</div>
|
|
22
|
-
@if(props['helpText']){
|
|
23
|
-
<div class="form-field-helpText">
|
|
24
|
-
<span>{{ props['helpText'] }}</span>
|
|
25
|
-
</div>
|
|
26
|
-
}
|
|
27
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { CheckboxComponent } from './checkbox.component';
|
|
4
|
-
|
|
5
|
-
describe('CheckboxComponent', () => {
|
|
6
|
-
let component: CheckboxComponent;
|
|
7
|
-
let fixture: ComponentFixture<CheckboxComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [CheckboxComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(CheckboxComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { FormControl, FormsModule } from '@angular/forms';
|
|
5
|
-
import { FieldType } from '@ngx-formly/core';
|
|
6
|
-
import { isObservable, of } from 'rxjs';
|
|
7
|
-
import { includes as _includes } from 'lodash'
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'sa-checkbox',
|
|
11
|
-
standalone: true,
|
|
12
|
-
imports: [MatChipsModule, CommonModule, FormsModule],
|
|
13
|
-
templateUrl: './checkbox.component.html',
|
|
14
|
-
styleUrl: './checkbox.component.css'
|
|
15
|
-
})
|
|
16
|
-
export class CheckboxComponent extends FieldType {
|
|
17
|
-
toggleSelection(option: any): void {
|
|
18
|
-
const selected = this.formControl.value || [];
|
|
19
|
-
const index = selected.indexOf(option.value);
|
|
20
|
-
if (index === -1) {
|
|
21
|
-
selected.push(option.value);
|
|
22
|
-
} else {
|
|
23
|
-
selected.splice(index, 1);
|
|
24
|
-
}
|
|
25
|
-
this.formControl.setValue([...selected]);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Checks if an option is selected
|
|
29
|
-
isSelected(option: any): boolean {
|
|
30
|
-
return _includes((this.formControl.value || []), option.value);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
get options$() {
|
|
34
|
-
const options = this.props?.options;
|
|
35
|
-
return isObservable(options) ? options : of(options || []);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
.regular {
|
|
2
|
-
--chip-height: var(--medium-24px);
|
|
3
|
-
--chip-padding: var(--small-4px) var(--small-8px);
|
|
4
|
-
--chip-gap: var(--small-4px);
|
|
5
|
-
--border-radius: var(--small-16px);
|
|
6
|
-
--font-weight: 500;
|
|
7
|
-
--line-height: 16px;
|
|
8
|
-
--font-size: 12px
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.small {
|
|
12
|
-
--chip-height: var(--small-18px);
|
|
13
|
-
--chip-padding: var(--small-4px) var(--small-8px);
|
|
14
|
-
--chip-gap: var(--small-4px);
|
|
15
|
-
--border-radius: var(--small-4px);
|
|
16
|
-
--font-weight: 500;
|
|
17
|
-
--line-height: 16px;
|
|
18
|
-
--font-size: 11px
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.large {
|
|
22
|
-
--chip-height: 40px;
|
|
23
|
-
--chip-padding: var(--small-12px) var(--medium-24px) var(--small-12px) var(--small-16px);
|
|
24
|
-
--chip-gap: var(--small-8px);
|
|
25
|
-
--border-radius: var(--small-16px) 0px;
|
|
26
|
-
--font-weight: 600;
|
|
27
|
-
--line-height: 20px;
|
|
28
|
-
--font-size: 14px;
|
|
29
|
-
background-color: var(--light-color) !important;
|
|
30
|
-
color: var(--dark-color) !important;
|
|
31
|
-
border: 1px solid transparent !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.primary {
|
|
35
|
-
--light-color: var(--primary-50);
|
|
36
|
-
--dark-color: var(--primary-500);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.secondary {
|
|
40
|
-
--light-color: var(--secondary-50);
|
|
41
|
-
--dark-color: var(--secondary-500);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.neutral {
|
|
45
|
-
--light-color: var(--grey-50);
|
|
46
|
-
--dark-color: var(--text-mediumemphasis);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.success {
|
|
50
|
-
--light-color: var(--semantic-success-50);
|
|
51
|
-
--dark-color: var(--semantic-success-500);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.error {
|
|
55
|
-
--light-color: var(--semantic-error-50);
|
|
56
|
-
--dark-color: var(--semantic-error-500);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.warning {
|
|
60
|
-
--light-color: var(--semantic-yellow-50);
|
|
61
|
-
--dark-color: var(--semantic-yellow-500);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.filled {
|
|
65
|
-
--background-color: var(--light-color);
|
|
66
|
-
--color: var(--dark-color);
|
|
67
|
-
--border: 1px solid transparent;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.outline {
|
|
71
|
-
--background-color: none;
|
|
72
|
-
--color: var(--dark-color);
|
|
73
|
-
--border: 1px solid var(--dark-color);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.chip {
|
|
77
|
-
display: flex;
|
|
78
|
-
width: max-content;
|
|
79
|
-
height: var(--chip-height);
|
|
80
|
-
padding: var(--chip-padding);
|
|
81
|
-
|
|
82
|
-
justify-content: center;
|
|
83
|
-
align-items: center;
|
|
84
|
-
|
|
85
|
-
gap: var(--chip-gap);
|
|
86
|
-
flex-shrink: 0;
|
|
87
|
-
letter-spacing: 0.5px;
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
|
|
90
|
-
font-family: var(--font);
|
|
91
|
-
font-size: var(--font-size);
|
|
92
|
-
font-weight: var(--font-weight);
|
|
93
|
-
line-height: var(--line-height);
|
|
94
|
-
|
|
95
|
-
background-color: var(--background-color);
|
|
96
|
-
color: var(--color);
|
|
97
|
-
border-radius: var(--border-radius);
|
|
98
|
-
border: var(--border);
|
|
99
|
-
|
|
100
|
-
-webkit-user-select: none;
|
|
101
|
-
-khtml-user-select: none;
|
|
102
|
-
-moz-user-select: none;
|
|
103
|
-
-o-user-select: none;
|
|
104
|
-
user-select: none;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.svg-icon {
|
|
108
|
-
width: 16px;
|
|
109
|
-
height: 16px;
|
|
110
|
-
mask-size: contain;
|
|
111
|
-
background-color: var(--dark-color);
|
|
112
|
-
mask-repeat: no-repeat;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.svg-icon:hover {
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.second-svg-icon {
|
|
120
|
-
width: 18px;
|
|
121
|
-
height: 18px;
|
|
122
|
-
mask-size: contain;
|
|
123
|
-
background-color: var(--dark-color);
|
|
124
|
-
mask-repeat: no-repeat;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.btn_hide {
|
|
128
|
-
display: none;
|
|
129
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<div class="chip {{type}} {{state}} {{filling}}">
|
|
2
|
-
<button type="button" (click)="buttonClicked($event)" id="icon-button_{{uuid}}" class="btn_hide"></button>
|
|
3
|
-
<!-- (click)="buttonClicked()" on button instead of label breaks whole thing -->
|
|
4
|
-
<label for="icon-button_{{uuid}}" class="svg-icon" [style]="svgStyle"
|
|
5
|
-
[style.display]="((iconPosition == 'left' || iconPosition == 'both') && type != 'large') ? 'block' : 'none'">
|
|
6
|
-
</label>
|
|
7
|
-
|
|
8
|
-
{{text}}
|
|
9
|
-
|
|
10
|
-
<div class="second-svg-icon" [style]="secondSvgStyle" [style.display]="(type == 'large') ? 'block' : 'none'"></div>
|
|
11
|
-
|
|
12
|
-
{{type == 'large' ? largeStateText : ""}}
|
|
13
|
-
|
|
14
|
-
<label for="icon-button_{{uuid}}" class="svg-icon" [style]="svgStyle"
|
|
15
|
-
[style.display]="((iconPosition == 'right' || iconPosition == 'both') && type != 'large') ? 'block' : 'none'">
|
|
16
|
-
</label>
|
|
17
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ChipsComponent } from './chips.component';
|
|
4
|
-
|
|
5
|
-
describe('ChipsComponent', () => {
|
|
6
|
-
let component: ChipsComponent;
|
|
7
|
-
let fixture: ComponentFixture<ChipsComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ChipsComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(ChipsComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
import { Input } from '@angular/core';
|
|
4
|
-
import { Output } from '@angular/core';
|
|
5
|
-
import { EventEmitter } from '@angular/core';
|
|
6
|
-
|
|
7
|
-
let nextId = 0; // used to give unique ids to inputs used in html
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'sa-chip',
|
|
11
|
-
standalone: true,
|
|
12
|
-
imports: [CommonModule],
|
|
13
|
-
templateUrl: './chips.component.html',
|
|
14
|
-
styleUrl: './chips.component.css'
|
|
15
|
-
})
|
|
16
|
-
export class ChipsComponent {
|
|
17
|
-
@Input() id: string | number;
|
|
18
|
-
@Input() iconPath: string;
|
|
19
|
-
@Input() text: string | number;
|
|
20
|
-
@Input() type: string;
|
|
21
|
-
@Input() state: string;
|
|
22
|
-
@Input() filling: string;
|
|
23
|
-
@Input() iconPosition: string;
|
|
24
|
-
@Input() largeStateIcon: string;
|
|
25
|
-
@Input() largeStateText: string;
|
|
26
|
-
|
|
27
|
-
@Output() onClickEvent = new EventEmitter();
|
|
28
|
-
|
|
29
|
-
svgStyle = {}
|
|
30
|
-
secondSvgStyle = {}
|
|
31
|
-
eventEmitObject = {}
|
|
32
|
-
uuid: number = nextId++;
|
|
33
|
-
|
|
34
|
-
ngOnChanges(): void {
|
|
35
|
-
this.svgStyle = {
|
|
36
|
-
'-webkit-mask-image': `url(${this.iconPath})`,
|
|
37
|
-
'mask-image': `url(${this.iconPath})`,
|
|
38
|
-
}
|
|
39
|
-
this.secondSvgStyle = {
|
|
40
|
-
'-webkit-mask-image': `url(${this.largeStateIcon})`,
|
|
41
|
-
'mask-image': `url(${this.largeStateIcon})`,
|
|
42
|
-
}
|
|
43
|
-
this.eventEmitObject = {
|
|
44
|
-
id: this.id
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
buttonClicked(evt: Event) {
|
|
49
|
-
this.onClickEvent.emit({
|
|
50
|
-
...this.eventEmitObject,
|
|
51
|
-
evt
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { TestLibraryComponent } from './component-library.component';
|
|
4
|
-
|
|
5
|
-
describe('TestLibraryComponent', () => {
|
|
6
|
-
let component: TestLibraryComponent;
|
|
7
|
-
let fixture: ComponentFixture<TestLibraryComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [TestLibraryComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(TestLibraryComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'lib-component-library',
|
|
5
|
-
standalone: true,
|
|
6
|
-
imports: [],
|
|
7
|
-
template: `
|
|
8
|
-
<p>
|
|
9
|
-
component-library works!
|
|
10
|
-
</p>
|
|
11
|
-
`,
|
|
12
|
-
styles: ``
|
|
13
|
-
})
|
|
14
|
-
export class TestLibraryComponent {
|
|
15
|
-
|
|
16
|
-
}
|