@sarasanalytics-com/design-system 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -0
- package/.eslintrc.json +23 -0
- package/.storybook/main.ts +21 -0
- package/.storybook/manager.ts +17 -0
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.ts +66 -0
- package/.storybook/tsconfig.doc.json +10 -0
- package/.storybook/tsconfig.json +11 -0
- package/.storybook/typings.d.ts +4 -0
- package/.vscode/extensions.json +7 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/settings.json +13 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +34 -13
- package/angular.json +195 -0
- package/build-storybook.log +45 -0
- package/documentation.json +0 -0
- package/generate-public-api.js +59 -0
- package/package.json +73 -18
- package/projects/component-library/README.md +24 -0
- package/projects/component-library/ng-package.json +8 -0
- package/projects/component-library/package.json +12 -0
- package/projects/component-library/src/interfaces/avatar-interface.ts +6 -0
- package/projects/component-library/src/interfaces/button-interface.ts +37 -0
- package/{interfaces/card-carousel-interface.d.ts → projects/component-library/src/interfaces/card-carousel-interface.ts} +2 -1
- package/projects/component-library/src/interfaces/chip-interface.ts +11 -0
- package/projects/component-library/src/interfaces/grid-interface.ts +24 -0
- package/projects/component-library/src/interfaces/icon-interface.ts +21 -0
- package/projects/component-library/src/interfaces/select-interface.ts +20 -0
- package/projects/component-library/src/interfaces/tab-interface.ts +6 -0
- package/{interfaces/toast-interface.d.ts → projects/component-library/src/interfaces/toast-interface.ts} +1 -1
- package/projects/component-library/src/lib/accordion/accordion.component.css +188 -0
- package/projects/component-library/src/lib/accordion/accordion.component.html +151 -0
- package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +23 -0
- package/projects/component-library/src/lib/accordion/accordion.component.ts +129 -0
- package/projects/component-library/src/lib/avatar/avatar.component.css +48 -0
- package/projects/component-library/src/lib/avatar/avatar.component.html +5 -0
- package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +23 -0
- package/projects/component-library/src/lib/avatar/avatar.component.ts +50 -0
- package/projects/component-library/src/lib/button/button.component.css +145 -0
- package/projects/component-library/src/lib/button/button.component.html +25 -0
- package/projects/component-library/src/lib/button/button.component.spec.ts +23 -0
- package/projects/component-library/src/lib/button/button.component.ts +82 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +67 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +20 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +191 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.html +1 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +70 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +1 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +13 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +4 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +3 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +1 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +12 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +3 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +1 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +12 -0
- package/projects/component-library/src/lib/card/card.component.css +149 -0
- package/projects/component-library/src/lib/card/card.component.html +46 -0
- package/projects/component-library/src/lib/card/card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/card.component.ts +47 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +79 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +55 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +44 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +80 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +24 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +19 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +91 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +54 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +23 -0
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +89 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.css +79 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.html +27 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +23 -0
- package/projects/component-library/src/lib/checkbox/checkbox.component.ts +38 -0
- package/projects/component-library/src/lib/chips/chips.component.css +129 -0
- package/projects/component-library/src/lib/chips/chips.component.html +17 -0
- package/projects/component-library/src/lib/chips/chips.component.spec.ts +23 -0
- package/projects/component-library/src/lib/chips/chips.component.ts +54 -0
- package/projects/component-library/src/lib/component-library.component.spec.ts +23 -0
- package/projects/component-library/src/lib/component-library.component.ts +16 -0
- package/projects/component-library/src/lib/component-library.service.spec.ts +16 -0
- package/projects/component-library/src/lib/component-library.service.ts +9 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.css +33 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.html +11 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +23 -0
- package/projects/component-library/src/lib/datepicker/datepicker.component.ts +36 -0
- package/projects/component-library/src/lib/form-input/form-input.component.css +164 -0
- package/projects/component-library/src/lib/form-input/form-input.component.html +55 -0
- package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +23 -0
- package/projects/component-library/src/lib/form-input/form-input.component.ts +282 -0
- package/projects/component-library/src/lib/form-select/form-select.component.css +158 -0
- package/projects/component-library/src/lib/form-select/form-select.component.html +38 -0
- package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +23 -0
- package/projects/component-library/src/lib/form-select/form-select.component.ts +72 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +78 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +31 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +23 -0
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +89 -0
- package/projects/component-library/src/lib/header/header.component.css +62 -0
- package/projects/component-library/src/lib/header/header.component.html +23 -0
- package/projects/component-library/src/lib/header/header.component.spec.ts +23 -0
- package/projects/component-library/src/lib/header/header.component.ts +28 -0
- package/projects/component-library/src/lib/icon/icon.component.css +65 -0
- package/projects/component-library/src/lib/icon/icon.component.html +9 -0
- package/projects/component-library/src/lib/icon/icon.component.ts +64 -0
- package/projects/component-library/src/lib/icon/icon.service.ts +26 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.css +109 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.html +51 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +23 -0
- package/projects/component-library/src/lib/left-nav/left-nav.component.ts +180 -0
- package/projects/component-library/src/lib/list/list.component.css +28 -0
- package/projects/component-library/src/lib/list/list.component.html +10 -0
- package/projects/component-library/src/lib/list/list.component.spec.ts +23 -0
- package/projects/component-library/src/lib/list/list.component.ts +15 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.css +52 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.html +15 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +23 -0
- package/projects/component-library/src/lib/message-banner/message-banner.component.ts +31 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.css +76 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.html +30 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +23 -0
- package/projects/component-library/src/lib/page-layout/page-layout.component.ts +14 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +30 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +4 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +23 -0
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +24 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.css +128 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.html +28 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +23 -0
- package/projects/component-library/src/lib/radio-button/radio-button.component.ts +35 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +118 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +11 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +23 -0
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +74 -0
- package/projects/component-library/src/lib/spinner/spinner.component.css +41 -0
- package/projects/component-library/src/lib/spinner/spinner.component.html +1 -0
- package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +23 -0
- package/projects/component-library/src/lib/spinner/spinner.component.ts +15 -0
- package/projects/component-library/src/lib/stepper/stepper.component.css +96 -0
- package/projects/component-library/src/lib/stepper/stepper.component.html +14 -0
- package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +23 -0
- package/projects/component-library/src/lib/stepper/stepper.component.ts +61 -0
- package/projects/component-library/src/lib/tabs/tabs.component.css +100 -0
- package/projects/component-library/src/lib/tabs/tabs.component.html +16 -0
- package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +23 -0
- package/projects/component-library/src/lib/tabs/tabs.component.ts +37 -0
- package/projects/component-library/src/lib/toast/toast.component.css +115 -0
- package/projects/component-library/src/lib/toast/toast.component.html +29 -0
- package/projects/component-library/src/lib/toast/toast.component.spec.ts +23 -0
- package/projects/component-library/src/lib/toast/toast.component.ts +87 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +144 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +31 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +23 -0
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +37 -0
- package/{public-api.d.ts → projects/component-library/src/public-api.ts} +13 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +22 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +23 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +13 -0
- package/projects/component-library/src/utils/validators.ts +100 -0
- package/projects/component-library/tsconfig.lib.json +14 -0
- package/projects/component-library/tsconfig.lib.prod.json +10 -0
- package/projects/component-library/tsconfig.spec.json +14 -0
- package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
- package/src/Saras-logo.svg +15 -0
- package/src/app/app.component.css +82 -0
- package/src/app/app.component.html +663 -0
- package/src/app/app.component.spec.ts +29 -0
- package/src/app/app.component.ts +1341 -0
- package/src/app/app.config.ts +56 -0
- package/src/app/app.routes.ts +3 -0
- package/src/app/data.ts +52 -0
- package/src/app/kitchen-sink/kitchen-sink.component.css +30 -0
- package/src/app/kitchen-sink/kitchen-sink.component.html +7 -0
- package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +23 -0
- package/src/app/kitchen-sink/kitchen-sink.component.ts +92 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/analysis.svg +1 -0
- package/src/assets/arrowRightOutlined.svg +1 -0
- package/src/assets/avatar.svg +1 -0
- package/src/assets/bpn.svg +1 -0
- package/src/assets/businessStatsFilled.svg +1 -0
- package/src/assets/channelkey.svg +1 -0
- package/src/assets/chatHelpOutlined.svg +1 -0
- package/src/assets/checkCircleFilled.svg +1 -0
- package/src/assets/checkCircleOutlined.svg +1 -0
- package/src/assets/checkOutlined.svg +1 -0
- package/src/assets/circleFilled.svg +1 -0
- package/src/assets/closeBlueOutlined.svg +1 -0
- package/src/assets/closeCircleFilled.svg +1 -0
- package/src/assets/closeOutlined.svg +1 -0
- package/src/assets/dataonavatar.svg +1 -0
- package/src/assets/datonAvatar.png +0 -0
- package/src/assets/desktopSpeakerOutlined.svg +1 -0
- package/src/assets/disabledCheckboxFilled.svg +1 -0
- package/src/assets/doubleDownOutlined.svg +1 -0
- package/src/assets/downChevronOutlined.svg +3 -0
- package/src/assets/downOutlined.svg +1 -0
- package/src/assets/errorCircleOutlined.svg +1 -0
- package/src/assets/errorCrossOutlined.svg +3 -0
- package/src/assets/eyeFilled.svg +1 -0
- package/src/assets/eyeOff.svg +3 -0
- package/src/assets/eyeOutlined.svg +1 -0
- package/src/assets/formDetailsOutlined.svg +1 -0
- package/src/assets/gridViewOutlined.svg +1 -0
- package/src/assets/headsetOutlined.svg +3 -0
- package/src/assets/homeOutlined.svg +1 -0
- package/src/assets/icons/analysis1.svg +1 -0
- package/src/assets/infoCircleOutlined.svg +3 -0
- package/src/assets/infoTriangleFilled.svg +1 -0
- package/src/assets/infoTriangleOutlined.svg +1 -0
- package/src/assets/innosupps.svg +1 -0
- package/src/assets/leftChevronCircle.svg +2 -0
- package/src/assets/locationOutlined.svg +1 -0
- package/src/assets/loginDashboard.png +0 -0
- package/src/assets/mailOutlined.svg +1 -0
- package/src/assets/multiConnectionHub.svg +1 -0
- package/src/assets/murad.svg +1 -0
- package/src/assets/personOutlined.svg +1 -0
- package/src/assets/pricingIcon.svg +3 -0
- package/src/assets/rightChevronCircle.svg +1 -0
- package/src/assets/rightChevronOutlined.svg +1 -0
- package/src/assets/sarasFullLogo.svg +13 -0
- package/src/assets/sarasWhite.svg +1 -0
- package/src/assets/settingsOutlined.svg +1 -0
- package/src/assets/sourcesOutlined.svg +1 -0
- package/src/assets/tabDesktopArrowClockwiseOutlined.svg +1 -0
- package/src/assets/targetScanOutlined.svg +1 -0
- package/src/assets/timerOutlined.svg +5 -0
- package/src/assets/upwardTriangleFilled.svg +1 -0
- package/src/custom-theme.scss +37 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +23 -0
- package/src/main.ts +6 -0
- package/src/stories/GettingStarted.mdx +233 -0
- package/src/stories/KitchenSink.stories.ts +109 -0
- package/src/stories/accordion.stories.ts +234 -0
- package/src/stories/avatar.stories.ts +45 -0
- package/src/stories/card-carousel.stories.ts +136 -0
- package/src/stories/card.stories.ts +242 -0
- package/src/stories/checkbox.stories.ts +238 -0
- package/src/stories/chips.stories.ts +61 -0
- package/src/stories/custom-button.stories.ts +89 -0
- package/src/stories/datepicker.stories.ts +78 -0
- package/src/stories/form-input.stories.ts +166 -0
- package/src/stories/gridCell.stories.ts +234 -0
- package/src/stories/header.stories.ts +61 -0
- package/src/stories/icon.stories.ts +65 -0
- package/src/stories/leftnav.stories.ts +67 -0
- package/src/stories/message-banner.stories.ts +116 -0
- package/src/stories/page-layout.stories.ts +200 -0
- package/src/stories/progress-bar.stories.ts +40 -0
- package/src/stories/radio-button.stories.ts +80 -0
- package/src/stories/scrolling-card.stories.ts +36 -0
- package/src/stories/selectInput.stories.ts +176 -0
- package/src/stories/stepper.stories.ts +92 -0
- package/src/stories/tabs.stories.ts +97 -0
- package/src/stories/toast.stories.ts +74 -0
- package/src/stories/tool-tip.stories.ts +45 -0
- package/{styles → src}/styles.css +27 -0
- package/src/svg.d.ts +1 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +42 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/interfaces/avatar-interface.mjs +0 -2
- package/esm2022/interfaces/button-interface.mjs +0 -10
- package/esm2022/interfaces/card-carousel-interface.mjs +0 -2
- package/esm2022/interfaces/chip-interface.mjs +0 -2
- package/esm2022/interfaces/grid-interface.mjs +0 -2
- package/esm2022/interfaces/guide-card-interface.mjs +0 -2
- package/esm2022/interfaces/icon-interface.mjs +0 -16
- package/esm2022/interfaces/message-banner.mjs +0 -2
- package/esm2022/interfaces/option-interface.mjs +0 -2
- package/esm2022/interfaces/select-interface.mjs +0 -2
- package/esm2022/interfaces/tab-interface.mjs +0 -2
- package/esm2022/interfaces/toast-interface.mjs +0 -2
- package/esm2022/lib/avatar/avatar.component.mjs +0 -56
- package/esm2022/lib/button/button.component.mjs +0 -100
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +0 -168
- package/esm2022/lib/card/card-body/card-body.component.mjs +0 -11
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +0 -11
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +0 -11
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +0 -11
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +0 -11
- package/esm2022/lib/card/card.component.mjs +0 -97
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +0 -41
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +0 -19
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +0 -87
- package/esm2022/lib/checkbox/checkbox.component.mjs +0 -38
- package/esm2022/lib/chips/chips.component.mjs +0 -62
- package/esm2022/lib/component-library.component.mjs +0 -19
- package/esm2022/lib/component-library.service.mjs +0 -14
- package/esm2022/lib/datepicker/datepicker.component.mjs +0 -40
- package/esm2022/lib/form-input/form-input.component.mjs +0 -219
- package/esm2022/lib/form-select/form-select.component.mjs +0 -77
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +0 -84
- package/esm2022/lib/header/header.component.mjs +0 -37
- package/esm2022/lib/icon/icon.component.mjs +0 -73
- package/esm2022/lib/icon/icon.service.mjs +0 -28
- package/esm2022/lib/left-nav/left-nav.component.mjs +0 -146
- package/esm2022/lib/list/list.component.mjs +0 -23
- package/esm2022/lib/message-banner/message-banner.component.mjs +0 -43
- package/esm2022/lib/page-layout/page-layout.component.mjs +0 -21
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -29
- package/esm2022/lib/radio-button/radio-button.component.mjs +0 -33
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +0 -59
- package/esm2022/lib/spinner/spinner.component.mjs +0 -22
- package/esm2022/lib/stepper/stepper.component.mjs +0 -64
- package/esm2022/lib/tabs/tabs.component.mjs +0 -38
- package/esm2022/lib/toast/toast.component.mjs +0 -100
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +0 -41
- package/esm2022/public-api.mjs +0 -55
- package/esm2022/sarasanalytics-com-design-system.mjs +0 -5
- package/esm2022/utils/validators.mjs +0 -97
- package/fesm2022/sarasanalytics-com-design-system.mjs +0 -1891
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/interfaces/avatar-interface.d.ts +0 -6
- package/interfaces/button-interface.d.ts +0 -22
- package/interfaces/chip-interface.d.ts +0 -11
- package/interfaces/grid-interface.d.ts +0 -24
- package/interfaces/icon-interface.d.ts +0 -4
- package/interfaces/select-interface.d.ts +0 -20
- package/interfaces/tab-interface.d.ts +0 -6
- package/lib/avatar/avatar.component.d.ts +0 -18
- package/lib/button/button.component.d.ts +0 -32
- package/lib/calendar-header/calendar-header.component.d.ts +0 -31
- package/lib/card/card-body/card-body.component.d.ts +0 -5
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +0 -5
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +0 -5
- package/lib/card/card-icon/card-icon.component.d.ts +0 -5
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +0 -5
- package/lib/card/card.component.d.ts +0 -28
- package/lib/card/checkbox-card/checkbox-card.component.d.ts +0 -12
- package/lib/card/guide-card/guide-card.component.d.ts +0 -8
- package/lib/card-carousel/card-carousel.component.d.ts +0 -27
- package/lib/checkbox/checkbox.component.d.ts +0 -9
- package/lib/chips/chips.component.d.ts +0 -22
- package/lib/component-library.component.d.ts +0 -5
- package/lib/component-library.service.d.ts +0 -6
- package/lib/datepicker/datepicker.component.d.ts +0 -9
- package/lib/form-input/form-input.component.d.ts +0 -67
- package/lib/form-select/form-select.component.d.ts +0 -18
- package/lib/grid-cell/grid-cell.component.d.ts +0 -20
- package/lib/header/header.component.d.ts +0 -14
- package/lib/icon/icon.component.d.ts +0 -24
- package/lib/icon/icon.service.d.ts +0 -12
- package/lib/left-nav/left-nav.component.d.ts +0 -47
- package/lib/list/list.component.d.ts +0 -10
- package/lib/message-banner/message-banner.component.d.ts +0 -19
- package/lib/page-layout/page-layout.component.d.ts +0 -8
- package/lib/progress-bar/progress-bar.component.d.ts +0 -13
- package/lib/radio-button/radio-button.component.d.ts +0 -12
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +0 -36
- package/lib/spinner/spinner.component.d.ts +0 -7
- package/lib/stepper/stepper.component.d.ts +0 -17
- package/lib/tabs/tabs.component.d.ts +0 -15
- package/lib/toast/toast.component.d.ts +0 -33
- package/lib/tool-tip/tool-tip.component.d.ts +0 -15
- package/utils/validators.d.ts +0 -6
- /package/{interfaces/guide-card-interface.d.ts → projects/component-library/src/interfaces/guide-card-interface.ts} +0 -0
- /package/{interfaces/message-banner.d.ts → projects/component-library/src/interfaces/message-banner.ts} +0 -0
- /package/{interfaces/option-interface.d.ts → projects/component-library/src/interfaces/option-interface.ts} +0 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
max_line_length = off
|
|
16
|
+
trim_trailing_whitespace = false
|
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2021": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"eslint:recommended",
|
|
8
|
+
"plugin:@typescript-eslint/recommended"
|
|
9
|
+
],
|
|
10
|
+
"parser": "@typescript-eslint/parser",
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"ecmaVersion": "latest",
|
|
13
|
+
"sourceType": "module"
|
|
14
|
+
},
|
|
15
|
+
"plugins": [
|
|
16
|
+
"@typescript-eslint"
|
|
17
|
+
],
|
|
18
|
+
"rules": {
|
|
19
|
+
"@angular-eslint/template/accessibility-valid-aria": ["error"],
|
|
20
|
+
"@angular-eslint/template/accessibility-role-has-required-aria": ["error"],
|
|
21
|
+
"@typescript-eslint/no-explicit-any": "off"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StorybookConfig } from "@storybook/angular";
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
stories: ['../src/stories/*.stories.ts', '../src/stories/*.mdx'],
|
|
5
|
+
staticDirs: ['../src'],
|
|
6
|
+
addons: [
|
|
7
|
+
"@storybook/addon-links",
|
|
8
|
+
"@storybook/addon-essentials",
|
|
9
|
+
"@storybook/addon-interactions",
|
|
10
|
+
'@storybook/addon-docs',
|
|
11
|
+
'@storybook/addon-actions'
|
|
12
|
+
],
|
|
13
|
+
framework: {
|
|
14
|
+
name: "@storybook/angular",
|
|
15
|
+
options: {},
|
|
16
|
+
},
|
|
17
|
+
docs: {
|
|
18
|
+
autodocs: "tag",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default config;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// .storybook/manager.js
|
|
2
|
+
import { addons } from '@storybook/manager-api';
|
|
3
|
+
import { create } from '@storybook/theming/create';
|
|
4
|
+
|
|
5
|
+
addons.setConfig({
|
|
6
|
+
theme: create({
|
|
7
|
+
base: 'light', // or 'dark'
|
|
8
|
+
brandTitle: 'Saras',
|
|
9
|
+
brandUrl: 'https://sarasanalytics.com',
|
|
10
|
+
brandImage: '../Saras-logo.svg', // Path to your logo image
|
|
11
|
+
colorSecondary: '#1B77E4',
|
|
12
|
+
|
|
13
|
+
appBg: '#ffffff',
|
|
14
|
+
appContentBg: '#ffffff',
|
|
15
|
+
appPreviewBg: '#ffffff',
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
2
|
+
<link
|
|
3
|
+
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
|
|
4
|
+
rel="stylesheet">
|
|
5
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Preview } from "@storybook/angular";
|
|
2
|
+
import { componentWrapperDecorator } from "@storybook/angular";
|
|
3
|
+
|
|
4
|
+
const preview: Preview = {
|
|
5
|
+
parameters: {
|
|
6
|
+
options: {
|
|
7
|
+
storySort: {
|
|
8
|
+
order: [
|
|
9
|
+
'Getting started',
|
|
10
|
+
'*',
|
|
11
|
+
'Kitchen Sink'
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
globalTypes: {
|
|
17
|
+
theme: {
|
|
18
|
+
description: 'Global theme for components',
|
|
19
|
+
defaultValue: 'saras-theme',
|
|
20
|
+
toolbar: {
|
|
21
|
+
title: 'Theme',
|
|
22
|
+
icon: 'circlehollow',
|
|
23
|
+
items: ['saras-theme', 'insights-theme', 'purple-theme'],
|
|
24
|
+
dynamicTitle: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
decorators: [
|
|
29
|
+
componentWrapperDecorator(
|
|
30
|
+
(story) => {
|
|
31
|
+
return `
|
|
32
|
+
${story}
|
|
33
|
+
`
|
|
34
|
+
},
|
|
35
|
+
({ globals }) => {
|
|
36
|
+
document.body.classList.remove("saras-theme"); // remove if this theme already exists in classlist
|
|
37
|
+
document.body.classList.remove("insights-theme"); // Since we don't know which one already exists, we try all
|
|
38
|
+
document.body.classList.remove("purple-theme"); // Since we don't know which one already exists, we try all
|
|
39
|
+
document.body.classList.add(globals['theme']); // append the most recent class selection here.
|
|
40
|
+
return { myTheme: globals['theme'] };
|
|
41
|
+
},
|
|
42
|
+
),
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default preview;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// storySort: {
|
|
50
|
+
// order: [
|
|
51
|
+
// 'Avatar',
|
|
52
|
+
// 'Button',
|
|
53
|
+
// 'Chips',
|
|
54
|
+
// 'Datepicker',
|
|
55
|
+
// 'GridCell',
|
|
56
|
+
// 'Header',
|
|
57
|
+
// 'Select Input',
|
|
58
|
+
// 'Stepper',
|
|
59
|
+
// 'Tabs',
|
|
60
|
+
// 'Toast',
|
|
61
|
+
// 'ToolTip',
|
|
62
|
+
// 'Avatar Sink',
|
|
63
|
+
// 'Button Sink',
|
|
64
|
+
// 'Chip Sink'
|
|
65
|
+
// ]
|
|
66
|
+
// }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This tsconfig is used by Compodoc to generate the documentation for the project.
|
|
2
|
+
// If Compodoc is not used, this file can be deleted.
|
|
3
|
+
{
|
|
4
|
+
"extends": "./tsconfig.json",
|
|
5
|
+
// Exclude all files that are not needed for documentation generation.
|
|
6
|
+
"exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../src/**/*.stories.ts"],
|
|
7
|
+
// Please make sure to include all files from which Compodoc should generate documentation.
|
|
8
|
+
"include": ["../src/**/*"],
|
|
9
|
+
"files": ["./typings.d.ts"]
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.app.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"types": ["node"],
|
|
5
|
+
"allowSyntheticDefaultImports": true,
|
|
6
|
+
"resolveJsonModule": true
|
|
7
|
+
},
|
|
8
|
+
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
|
|
9
|
+
"include": ["../src/**/*.stories.*", "./preview.ts"],
|
|
10
|
+
"files": ["./typings.d.ts"]
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"configurations": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ng serve",
|
|
7
|
+
"type": "chrome",
|
|
8
|
+
"request": "launch",
|
|
9
|
+
"preLaunchTask": "npm: start",
|
|
10
|
+
"url": "http://localhost:4200/"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "ng test",
|
|
14
|
+
"type": "chrome",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"preLaunchTask": "npm: test",
|
|
17
|
+
"url": "http://localhost:9876/debug.html"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"type": "npm",
|
|
7
|
+
"script": "start",
|
|
8
|
+
"isBackground": true,
|
|
9
|
+
"problemMatcher": {
|
|
10
|
+
"owner": "typescript",
|
|
11
|
+
"pattern": "$tsc",
|
|
12
|
+
"background": {
|
|
13
|
+
"activeOnStart": true,
|
|
14
|
+
"beginsPattern": {
|
|
15
|
+
"regexp": "(.*?)"
|
|
16
|
+
},
|
|
17
|
+
"endsPattern": {
|
|
18
|
+
"regexp": "bundle generation complete"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "npm",
|
|
25
|
+
"script": "test",
|
|
26
|
+
"isBackground": true,
|
|
27
|
+
"problemMatcher": {
|
|
28
|
+
"owner": "typescript",
|
|
29
|
+
"pattern": "$tsc",
|
|
30
|
+
"background": {
|
|
31
|
+
"activeOnStart": true,
|
|
32
|
+
"beginsPattern": {
|
|
33
|
+
"regexp": "(.*?)"
|
|
34
|
+
},
|
|
35
|
+
"endsPattern": {
|
|
36
|
+
"regexp": "bundle generation complete"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
package/README.md
CHANGED
|
@@ -1,24 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
**Welcome to the saras-design-system wiki!**
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
***
|
|
4
4
|
|
|
5
|
-
## Code scaffolding
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
> Note: Don't forget to add `--project component-library` or else it will be added to the default project in your `angular.json` file.
|
|
6
|
+
### Installation
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
`npm i @sarasanalytics-com/design-system`
|
|
9
|
+
***
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
### Helpful Commands:
|
|
12
|
+
Once you clone this repository, these commands might be helpful to get you started.
|
|
13
|
+
1. `ng serve` or `npm run start`
|
|
14
|
+
This will run the demo application on localhost. This page has implementation examples for all components in the design system along with kitchen sinks for Chips, Buttons, and Avatars.
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
2. `ng run sadlc:storybook`
|
|
17
|
+
To run storybook on localhost.
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
3. `ng run sadlc:build-storybook`
|
|
20
|
+
To build storybook.
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
4. `npm run chromatic`
|
|
23
|
+
To host a storybook with chromatic.
|
|
19
24
|
|
|
20
|
-
Run `ng test component-library` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
To publish the NPM package.
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
1. take a pull from dev branch
|
|
29
|
+
|
|
30
|
+
2. do `npm login` in your terminal
|
|
31
|
+
|
|
32
|
+
3. do `ng build component-library`
|
|
33
|
+
Run this command from root before you publish to NPM. Make sure you add any new components to [public-api.ts](https://github.com/sarasanalytics-com/saras-design-system/blob/v1/projects/component-library/src/public-api.ts#L7).
|
|
34
|
+
|
|
35
|
+
4. do `cd dist/component-library/`
|
|
36
|
+
|
|
37
|
+
5. change the version to next value in the `package.json` inside `dist/component-library/package.json`
|
|
38
|
+
|
|
39
|
+
6. do `npm publish --access public`
|
|
40
|
+
|
|
41
|
+
Run this command from root before you publish to NPM. Make sure you add any new components to [public-api.ts](https://github.com/sarasanalytics-com/saras-design-system/blob/v1/projects/component-library/src/public-api.ts#L7).
|
|
42
|
+
|
|
43
|
+
Make sure that theme classes are present in `styles.css` of your project and `index.html` has at-least one of these classes in it's body tag.
|
|
44
|
+
|
|
45
|
+
***
|
package/angular.json
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"sadlc": {
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"schematics": {},
|
|
9
|
+
"root": "",
|
|
10
|
+
"sourceRoot": "src",
|
|
11
|
+
"prefix": "app",
|
|
12
|
+
"architect": {
|
|
13
|
+
"build": {
|
|
14
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
15
|
+
"options": {
|
|
16
|
+
"outputPath": "dist/sadlc",
|
|
17
|
+
"index": "src/index.html",
|
|
18
|
+
"browser": "src/main.ts",
|
|
19
|
+
"polyfills": [
|
|
20
|
+
"zone.js"
|
|
21
|
+
],
|
|
22
|
+
"tsConfig": "tsconfig.app.json",
|
|
23
|
+
"assets": [
|
|
24
|
+
"src/favicon.ico",
|
|
25
|
+
"src/assets"
|
|
26
|
+
],
|
|
27
|
+
"styles": [
|
|
28
|
+
"src/custom-theme.scss",
|
|
29
|
+
"src/styles.css",
|
|
30
|
+
"ag-grid-community/styles/ag-grid.css",
|
|
31
|
+
"ag-grid-community/styles/ag-theme-alpine.css",
|
|
32
|
+
"@ng-select/ng-select/themes/default.theme.css"
|
|
33
|
+
],
|
|
34
|
+
"scripts": []
|
|
35
|
+
},
|
|
36
|
+
"configurations": {
|
|
37
|
+
"production": {
|
|
38
|
+
"budgets": [
|
|
39
|
+
{
|
|
40
|
+
"type": "initial",
|
|
41
|
+
"maximumWarning": "2mb",
|
|
42
|
+
"maximumError": "4mb"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "anyComponentStyle",
|
|
46
|
+
"maximumWarning": "4kb",
|
|
47
|
+
"maximumError": "6kb"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"outputHashing": "all"
|
|
51
|
+
},
|
|
52
|
+
"development": {
|
|
53
|
+
"optimization": false,
|
|
54
|
+
"extractLicenses": false,
|
|
55
|
+
"sourceMap": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"defaultConfiguration": "production"
|
|
59
|
+
},
|
|
60
|
+
"serve": {
|
|
61
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
62
|
+
"configurations": {
|
|
63
|
+
"production": {
|
|
64
|
+
"buildTarget": "sadlc:build:production"
|
|
65
|
+
},
|
|
66
|
+
"development": {
|
|
67
|
+
"buildTarget": "sadlc:build:development"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"defaultConfiguration": "development"
|
|
71
|
+
},
|
|
72
|
+
"extract-i18n": {
|
|
73
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
74
|
+
"options": {
|
|
75
|
+
"buildTarget": "sadlc:build"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"test": {
|
|
79
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
80
|
+
"options": {
|
|
81
|
+
"polyfills": [
|
|
82
|
+
"zone.js",
|
|
83
|
+
"zone.js/testing"
|
|
84
|
+
],
|
|
85
|
+
"tsConfig": "tsconfig.spec.json",
|
|
86
|
+
"assets": [
|
|
87
|
+
"src/favicon.ico",
|
|
88
|
+
"src/assets"
|
|
89
|
+
],
|
|
90
|
+
"styles": [
|
|
91
|
+
"src/styles.css"
|
|
92
|
+
],
|
|
93
|
+
"scripts": []
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"storybook": {
|
|
97
|
+
"builder": "@storybook/angular:start-storybook",
|
|
98
|
+
"options": {
|
|
99
|
+
"configDir": ".storybook",
|
|
100
|
+
"browserTarget": "sadlc:build",
|
|
101
|
+
"compodoc": false,
|
|
102
|
+
"port": 6006
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"build-storybook": {
|
|
106
|
+
"builder": "@storybook/angular:build-storybook",
|
|
107
|
+
"options": {
|
|
108
|
+
"configDir": ".storybook",
|
|
109
|
+
"browserTarget": "sadlc:build",
|
|
110
|
+
"compodoc": false,
|
|
111
|
+
"outputDir": "dist/storybook/sadlc",
|
|
112
|
+
"styles": ["src/styles.css", "src/custom-theme.scss", "ag-grid-community/styles/ag-grid.css",
|
|
113
|
+
"ag-grid-community/styles/ag-theme-alpine.css",
|
|
114
|
+
"@ng-select/ng-select/themes/default.theme.css"]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"component-library": {
|
|
120
|
+
"projectType": "library",
|
|
121
|
+
"root": "projects/component-library",
|
|
122
|
+
"sourceRoot": "projects/component-library/src",
|
|
123
|
+
"prefix": "sa",
|
|
124
|
+
"architect": {
|
|
125
|
+
"build": {
|
|
126
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
127
|
+
"options": {
|
|
128
|
+
"project": "projects/component-library/ng-package.json"
|
|
129
|
+
},
|
|
130
|
+
"configurations": {
|
|
131
|
+
"production": {
|
|
132
|
+
"tsConfig": "projects/component-library/tsconfig.lib.prod.json"
|
|
133
|
+
},
|
|
134
|
+
"development": {
|
|
135
|
+
"tsConfig": "projects/component-library/tsconfig.lib.json"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"defaultConfiguration": "production"
|
|
139
|
+
},
|
|
140
|
+
"test": {
|
|
141
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
142
|
+
"options": {
|
|
143
|
+
"tsConfig": "projects/component-library/tsconfig.spec.json",
|
|
144
|
+
"polyfills": [
|
|
145
|
+
"zone.js",
|
|
146
|
+
"zone.js/testing"
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"lint": {
|
|
151
|
+
"builder": "@angular-eslint/builder:lint",
|
|
152
|
+
"options": {
|
|
153
|
+
"lintFilePatterns":[
|
|
154
|
+
"src/**/*.ts",
|
|
155
|
+
"src/**/*/*.html"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"storybook": {
|
|
160
|
+
"builder": "@storybook/angular:start-storybook",
|
|
161
|
+
"options": {
|
|
162
|
+
"configDir": "projects/component-library/.storybook",
|
|
163
|
+
"browserTarget": "component-library:build",
|
|
164
|
+
"compodoc": true,
|
|
165
|
+
"port": 6006,
|
|
166
|
+
"compodocArgs": [
|
|
167
|
+
"-e",
|
|
168
|
+
"json",
|
|
169
|
+
"-d",
|
|
170
|
+
"."
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"build-storybook": {
|
|
175
|
+
"builder": "@storybook/angular:build-storybook",
|
|
176
|
+
"options": {
|
|
177
|
+
"configDir": "projects/component-library/.storybook",
|
|
178
|
+
"browserTarget": "component-library:build",
|
|
179
|
+
"compodoc": true,
|
|
180
|
+
"compodocArgs": [
|
|
181
|
+
"-e",
|
|
182
|
+
"json",
|
|
183
|
+
"-d",
|
|
184
|
+
"."
|
|
185
|
+
],
|
|
186
|
+
"outputDir": "dist/storybook/component-library"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"cli": {
|
|
193
|
+
"analytics": false
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
> @sarasanalytics-com/design-system@0.0.21 build-storybook
|
|
3
|
+
> ng run sadlc:build-storybook --output-dir /var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
|
|
4
|
+
|
|
5
|
+
info => Cleaning outputDir: ../../../../../var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
|
|
6
|
+
info => Loading presets
|
|
7
|
+
info Found existing addon "@storybook/addon-docs", skipping.
|
|
8
|
+
info Found existing addon "@storybook/addon-actions", skipping.
|
|
9
|
+
info Found existing addon "@storybook/addon-docs", skipping.
|
|
10
|
+
info Found existing addon "@storybook/addon-actions", skipping.
|
|
11
|
+
info => Building manager..
|
|
12
|
+
info => Manager built (112 ms)
|
|
13
|
+
info => Building preview..
|
|
14
|
+
info Addon-docs: using MDX3
|
|
15
|
+
info => Using implicit CSS loaders
|
|
16
|
+
info => Using angular browser target options from "sadlc:build"
|
|
17
|
+
info => Using angular project with "tsConfig:/Users/saras/Documents/workspace/saras-design-system/.storybook/tsconfig.json"
|
|
18
|
+
info => Using default Webpack5 setup
|
|
19
|
+
info => Copying static files: src at ../../../../../var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
|
|
20
|
+
WARN export 'EmptyTabContent' (imported as 'EmptyTabContent') was not found in '@storybook/components' (possible exports: A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, ClipboardCode, Code, DL, Div, DocumentWrapper, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, Img, LI, Link, ListItem, Loader, OL, P, Placeholder, Pre, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, icons, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset)
|
|
21
|
+
WARN Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
|
|
22
|
+
WARN (3:5) from "autoprefixer" plugin: end value has mixed support, consider using flex-end instead
|
|
23
|
+
WARN
|
|
24
|
+
WARN Code:
|
|
25
|
+
WARN justify-content: end
|
|
26
|
+
WARN
|
|
27
|
+
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
28
|
+
WARN This can impact web performance.
|
|
29
|
+
WARN Assets:
|
|
30
|
+
WARN 1280.b1dee8b620464854ffea.css (290 KiB)
|
|
31
|
+
WARN 56.2655bb94.iframe.bundle.js (1.32 MiB)
|
|
32
|
+
WARN 6568.0b8f7d0f.iframe.bundle.js (478 KiB)
|
|
33
|
+
WARN 1144.ac4580a6.iframe.bundle.js (897 KiB)
|
|
34
|
+
WARN 1280.e0d1b79a.iframe.bundle.js (3.46 MiB)
|
|
35
|
+
WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
36
|
+
WARN Entrypoints:
|
|
37
|
+
WARN main (3.86 MiB)
|
|
38
|
+
WARN runtime~main.475591f7.iframe.bundle.js
|
|
39
|
+
WARN 1280.b1dee8b620464854ffea.css
|
|
40
|
+
WARN 1280.e0d1b79a.iframe.bundle.js
|
|
41
|
+
WARN main.e3879df2f74772d13833.css
|
|
42
|
+
WARN main.1dd44b25.iframe.bundle.js
|
|
43
|
+
WARN
|
|
44
|
+
info => Preview built (17 s)
|
|
45
|
+
info => Output directory: /var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const srcPath = path.join(__dirname, 'projects', 'component-library', 'src');
|
|
5
|
+
const libPath = path.join(srcPath, 'lib');
|
|
6
|
+
const interfacesPath = path.join(srcPath, 'interfaces');
|
|
7
|
+
const publicApiPath = path.join(srcPath, 'public-api.ts');
|
|
8
|
+
|
|
9
|
+
function getFiles(dir, extensions) {
|
|
10
|
+
const files = fs.readdirSync(dir, { withFileTypes: true });
|
|
11
|
+
let targetFiles = [];
|
|
12
|
+
|
|
13
|
+
for (const file of files) {
|
|
14
|
+
if (file.isDirectory()) {
|
|
15
|
+
targetFiles = targetFiles.concat(getFiles(path.join(dir, file.name), extensions));
|
|
16
|
+
} else if (extensions.some(ext => file.name.endsWith(ext))) {
|
|
17
|
+
targetFiles.push(path.relative(srcPath, path.join(dir, file.name)));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return targetFiles;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function generatePublicApi() {
|
|
25
|
+
const componentFiles = getFiles(libPath, ['.component.ts']);
|
|
26
|
+
const serviceFiles = getFiles(libPath, ['.service.ts']);
|
|
27
|
+
const interfaceFiles = getFiles(interfacesPath, ['.ts']);
|
|
28
|
+
|
|
29
|
+
let content = `/*
|
|
30
|
+
* Public API Surface of component-library
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
// ... existing code ...
|
|
34
|
+
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
content += '\n// Components\n';
|
|
38
|
+
componentFiles.forEach(file => {
|
|
39
|
+
const importPath = file.replace(/\.ts$/, '');
|
|
40
|
+
content += `export * from './${importPath}';\n`;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
content += '\n// Services\n';
|
|
44
|
+
serviceFiles.forEach(file => {
|
|
45
|
+
const importPath = file.replace(/\.ts$/, '');
|
|
46
|
+
content += `export * from './${importPath}';\n`;
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
content += '\n// Interfaces\n';
|
|
50
|
+
interfaceFiles.forEach(file => {
|
|
51
|
+
const importPath = file.replace(/\.ts$/, '');
|
|
52
|
+
content += `export * from './${importPath}';\n`;
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
fs.writeFileSync(publicApiPath, content);
|
|
56
|
+
console.log('public-api.ts has been updated with all component, service, and interface exports.');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
generatePublicApi();
|