@sarasanalytics-com/design-system 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -34
- package/esm2022/interfaces/avatar-interface.mjs +2 -0
- package/esm2022/interfaces/button-interface.mjs +10 -0
- package/esm2022/interfaces/card-carousel-interface.mjs +2 -0
- package/esm2022/interfaces/chip-interface.mjs +2 -0
- package/esm2022/interfaces/grid-interface.mjs +2 -0
- package/esm2022/interfaces/guide-card-interface.mjs +2 -0
- package/esm2022/interfaces/icon-interface.mjs +16 -0
- package/esm2022/interfaces/message-banner.mjs +2 -0
- package/esm2022/interfaces/option-interface.mjs +2 -0
- package/esm2022/interfaces/select-interface.mjs +2 -0
- package/esm2022/interfaces/tab-interface.mjs +2 -0
- package/esm2022/interfaces/toast-interface.mjs +2 -0
- package/esm2022/lib/accordion/accordion.component.mjs +115 -0
- package/esm2022/lib/avatar/avatar.component.mjs +56 -0
- package/esm2022/lib/button/button.component.mjs +100 -0
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +168 -0
- package/esm2022/lib/card/card-body/card-body.component.mjs +11 -0
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +11 -0
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +11 -0
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +11 -0
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +11 -0
- package/esm2022/lib/card/card.component.mjs +111 -0
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +41 -0
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +19 -0
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +87 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +38 -0
- package/esm2022/lib/chips/chips.component.mjs +62 -0
- package/esm2022/lib/component-library.component.mjs +19 -0
- package/esm2022/lib/component-library.service.mjs +14 -0
- package/esm2022/lib/datepicker/datepicker.component.mjs +40 -0
- package/esm2022/lib/form-input/form-input.component.mjs +219 -0
- package/esm2022/lib/form-select/form-select.component.mjs +77 -0
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
- package/esm2022/lib/header/header.component.mjs +37 -0
- package/esm2022/lib/icon/icon.component.mjs +73 -0
- package/esm2022/lib/icon/icon.service.mjs +28 -0
- package/esm2022/lib/left-nav/left-nav.component.mjs +146 -0
- package/esm2022/lib/list/list.component.mjs +23 -0
- package/esm2022/lib/message-banner/message-banner.component.mjs +43 -0
- package/esm2022/lib/page-layout/page-layout.component.mjs +21 -0
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +29 -0
- package/esm2022/lib/radio-button/radio-button.component.mjs +33 -0
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +59 -0
- package/esm2022/lib/spinner/spinner.component.mjs +22 -0
- package/esm2022/lib/stepper/stepper.component.mjs +64 -0
- package/esm2022/lib/tabs/tabs.component.mjs +38 -0
- package/esm2022/lib/toast/toast.component.mjs +100 -0
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
- package/esm2022/utils/validators.mjs +97 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs +2001 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/interfaces/avatar-interface.d.ts +6 -0
- package/interfaces/button-interface.d.ts +22 -0
- package/{projects/component-library/src/interfaces/card-carousel-interface.ts → interfaces/card-carousel-interface.d.ts} +1 -2
- package/interfaces/chip-interface.d.ts +11 -0
- package/interfaces/grid-interface.d.ts +24 -0
- package/interfaces/icon-interface.d.ts +4 -0
- package/interfaces/select-interface.d.ts +20 -0
- package/interfaces/tab-interface.d.ts +6 -0
- package/{projects/component-library/src/interfaces/toast-interface.ts → interfaces/toast-interface.d.ts} +1 -1
- package/lib/accordion/accordion.component.d.ts +25 -0
- package/lib/avatar/avatar.component.d.ts +18 -0
- package/lib/button/button.component.d.ts +32 -0
- package/lib/calendar-header/calendar-header.component.d.ts +31 -0
- package/lib/card/card-body/card-body.component.d.ts +5 -0
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +5 -0
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +5 -0
- package/lib/card/card-icon/card-icon.component.d.ts +5 -0
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +5 -0
- package/lib/card/card.component.d.ts +31 -0
- package/lib/card/checkbox-card/checkbox-card.component.d.ts +12 -0
- package/lib/card/guide-card/guide-card.component.d.ts +8 -0
- package/lib/card-carousel/card-carousel.component.d.ts +27 -0
- package/lib/checkbox/checkbox.component.d.ts +9 -0
- package/lib/chips/chips.component.d.ts +22 -0
- package/lib/component-library.component.d.ts +5 -0
- package/lib/component-library.service.d.ts +6 -0
- package/lib/datepicker/datepicker.component.d.ts +9 -0
- package/lib/form-input/form-input.component.d.ts +67 -0
- package/lib/form-select/form-select.component.d.ts +18 -0
- package/lib/grid-cell/grid-cell.component.d.ts +20 -0
- package/lib/header/header.component.d.ts +14 -0
- package/lib/icon/icon.component.d.ts +24 -0
- package/lib/icon/icon.service.d.ts +12 -0
- package/lib/left-nav/left-nav.component.d.ts +47 -0
- package/lib/list/list.component.d.ts +10 -0
- package/lib/message-banner/message-banner.component.d.ts +19 -0
- package/lib/page-layout/page-layout.component.d.ts +8 -0
- package/lib/progress-bar/progress-bar.component.d.ts +13 -0
- package/lib/radio-button/radio-button.component.d.ts +12 -0
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +36 -0
- package/lib/spinner/spinner.component.d.ts +7 -0
- package/lib/stepper/stepper.component.d.ts +17 -0
- package/lib/tabs/tabs.component.d.ts +15 -0
- package/lib/toast/toast.component.d.ts +33 -0
- package/lib/tool-tip/tool-tip.component.d.ts +15 -0
- package/package.json +19 -74
- package/{projects/component-library/src/public-api.ts → public-api.d.ts} +0 -12
- package/utils/validators.d.ts +6 -0
- package/.editorconfig +0 -16
- package/.eslintrc.json +0 -23
- package/.storybook/main.ts +0 -21
- package/.storybook/manager.ts +0 -17
- package/.storybook/preview-head.html +0 -5
- package/.storybook/preview.ts +0 -66
- package/.storybook/tsconfig.doc.json +0 -10
- package/.storybook/tsconfig.json +0 -11
- package/.storybook/typings.d.ts +0 -4
- package/.vscode/extensions.json +0 -7
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -13
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -195
- package/build-storybook.log +0 -45
- package/documentation.json +0 -0
- package/generate-public-api.js +0 -59
- package/projects/component-library/README.md +0 -24
- package/projects/component-library/ng-package.json +0 -8
- package/projects/component-library/package.json +0 -12
- package/projects/component-library/src/interfaces/avatar-interface.ts +0 -6
- package/projects/component-library/src/interfaces/button-interface.ts +0 -37
- package/projects/component-library/src/interfaces/chip-interface.ts +0 -11
- package/projects/component-library/src/interfaces/grid-interface.ts +0 -24
- package/projects/component-library/src/interfaces/icon-interface.ts +0 -21
- package/projects/component-library/src/interfaces/select-interface.ts +0 -20
- package/projects/component-library/src/interfaces/tab-interface.ts +0 -6
- package/projects/component-library/src/lib/accordion/accordion.component.css +0 -188
- package/projects/component-library/src/lib/accordion/accordion.component.html +0 -151
- package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +0 -23
- package/projects/component-library/src/lib/accordion/accordion.component.ts +0 -129
- package/projects/component-library/src/lib/avatar/avatar.component.css +0 -48
- package/projects/component-library/src/lib/avatar/avatar.component.html +0 -5
- package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +0 -23
- package/projects/component-library/src/lib/avatar/avatar.component.ts +0 -50
- package/projects/component-library/src/lib/button/button.component.css +0 -145
- package/projects/component-library/src/lib/button/button.component.html +0 -25
- package/projects/component-library/src/lib/button/button.component.spec.ts +0 -23
- package/projects/component-library/src/lib/button/button.component.ts +0 -82
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +0 -67
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +0 -20
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +0 -191
- package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
- package/projects/component-library/src/lib/card/card-body/card-body.component.html +0 -1
- package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-body/card-body.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +0 -70
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +0 -1
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +0 -13
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +0 -4
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +0 -3
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +0 -1
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +0 -12
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +0 -3
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +0 -1
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +0 -12
- package/projects/component-library/src/lib/card/card.component.css +0 -149
- package/projects/component-library/src/lib/card/card.component.html +0 -46
- package/projects/component-library/src/lib/card/card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/card.component.ts +0 -47
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +0 -79
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +0 -55
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +0 -44
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +0 -80
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +0 -24
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +0 -19
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +0 -91
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +0 -54
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +0 -23
- package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +0 -89
- package/projects/component-library/src/lib/checkbox/checkbox.component.css +0 -79
- package/projects/component-library/src/lib/checkbox/checkbox.component.html +0 -27
- package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +0 -23
- package/projects/component-library/src/lib/checkbox/checkbox.component.ts +0 -38
- package/projects/component-library/src/lib/chips/chips.component.css +0 -129
- package/projects/component-library/src/lib/chips/chips.component.html +0 -17
- package/projects/component-library/src/lib/chips/chips.component.spec.ts +0 -23
- package/projects/component-library/src/lib/chips/chips.component.ts +0 -54
- package/projects/component-library/src/lib/component-library.component.spec.ts +0 -23
- package/projects/component-library/src/lib/component-library.component.ts +0 -16
- package/projects/component-library/src/lib/component-library.service.spec.ts +0 -16
- package/projects/component-library/src/lib/component-library.service.ts +0 -9
- package/projects/component-library/src/lib/datepicker/datepicker.component.css +0 -33
- package/projects/component-library/src/lib/datepicker/datepicker.component.html +0 -11
- package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +0 -23
- package/projects/component-library/src/lib/datepicker/datepicker.component.ts +0 -36
- package/projects/component-library/src/lib/form-input/form-input.component.css +0 -164
- package/projects/component-library/src/lib/form-input/form-input.component.html +0 -55
- package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +0 -23
- package/projects/component-library/src/lib/form-input/form-input.component.ts +0 -282
- package/projects/component-library/src/lib/form-select/form-select.component.css +0 -158
- package/projects/component-library/src/lib/form-select/form-select.component.html +0 -38
- package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +0 -23
- package/projects/component-library/src/lib/form-select/form-select.component.ts +0 -72
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +0 -78
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +0 -31
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
- package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +0 -89
- package/projects/component-library/src/lib/header/header.component.css +0 -62
- package/projects/component-library/src/lib/header/header.component.html +0 -23
- package/projects/component-library/src/lib/header/header.component.spec.ts +0 -23
- package/projects/component-library/src/lib/header/header.component.ts +0 -28
- package/projects/component-library/src/lib/icon/icon.component.css +0 -65
- package/projects/component-library/src/lib/icon/icon.component.html +0 -9
- package/projects/component-library/src/lib/icon/icon.component.ts +0 -64
- package/projects/component-library/src/lib/icon/icon.service.ts +0 -26
- package/projects/component-library/src/lib/left-nav/left-nav.component.css +0 -109
- package/projects/component-library/src/lib/left-nav/left-nav.component.html +0 -51
- package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +0 -23
- package/projects/component-library/src/lib/left-nav/left-nav.component.ts +0 -180
- package/projects/component-library/src/lib/list/list.component.css +0 -28
- package/projects/component-library/src/lib/list/list.component.html +0 -10
- package/projects/component-library/src/lib/list/list.component.spec.ts +0 -23
- package/projects/component-library/src/lib/list/list.component.ts +0 -15
- package/projects/component-library/src/lib/message-banner/message-banner.component.css +0 -52
- package/projects/component-library/src/lib/message-banner/message-banner.component.html +0 -15
- package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +0 -23
- package/projects/component-library/src/lib/message-banner/message-banner.component.ts +0 -31
- package/projects/component-library/src/lib/page-layout/page-layout.component.css +0 -76
- package/projects/component-library/src/lib/page-layout/page-layout.component.html +0 -30
- package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +0 -23
- package/projects/component-library/src/lib/page-layout/page-layout.component.ts +0 -14
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +0 -30
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +0 -4
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +0 -23
- package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +0 -24
- package/projects/component-library/src/lib/radio-button/radio-button.component.css +0 -128
- package/projects/component-library/src/lib/radio-button/radio-button.component.html +0 -28
- package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +0 -23
- package/projects/component-library/src/lib/radio-button/radio-button.component.ts +0 -35
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +0 -118
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +0 -11
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +0 -23
- package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +0 -74
- package/projects/component-library/src/lib/spinner/spinner.component.css +0 -41
- package/projects/component-library/src/lib/spinner/spinner.component.html +0 -1
- package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +0 -23
- package/projects/component-library/src/lib/spinner/spinner.component.ts +0 -15
- package/projects/component-library/src/lib/stepper/stepper.component.css +0 -96
- package/projects/component-library/src/lib/stepper/stepper.component.html +0 -14
- package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +0 -23
- package/projects/component-library/src/lib/stepper/stepper.component.ts +0 -61
- package/projects/component-library/src/lib/tabs/tabs.component.css +0 -100
- package/projects/component-library/src/lib/tabs/tabs.component.html +0 -16
- package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +0 -23
- package/projects/component-library/src/lib/tabs/tabs.component.ts +0 -37
- package/projects/component-library/src/lib/toast/toast.component.css +0 -115
- package/projects/component-library/src/lib/toast/toast.component.html +0 -29
- package/projects/component-library/src/lib/toast/toast.component.spec.ts +0 -23
- package/projects/component-library/src/lib/toast/toast.component.ts +0 -87
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +0 -144
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +0 -31
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
- package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +0 -37
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +0 -22
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +0 -23
- package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +0 -13
- package/projects/component-library/src/utils/validators.ts +0 -100
- package/projects/component-library/tsconfig.lib.json +0 -14
- package/projects/component-library/tsconfig.lib.prod.json +0 -10
- package/projects/component-library/tsconfig.spec.json +0 -14
- package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
- package/src/Saras-logo.svg +0 -15
- package/src/app/app.component.css +0 -82
- package/src/app/app.component.html +0 -663
- package/src/app/app.component.spec.ts +0 -29
- package/src/app/app.component.ts +0 -1341
- package/src/app/app.config.ts +0 -56
- package/src/app/app.routes.ts +0 -3
- package/src/app/data.ts +0 -52
- package/src/app/kitchen-sink/kitchen-sink.component.css +0 -30
- package/src/app/kitchen-sink/kitchen-sink.component.html +0 -7
- package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +0 -23
- package/src/app/kitchen-sink/kitchen-sink.component.ts +0 -92
- package/src/assets/.gitkeep +0 -0
- package/src/assets/analysis.svg +0 -1
- package/src/assets/arrowRightOutlined.svg +0 -1
- package/src/assets/avatar.svg +0 -1
- package/src/assets/bpn.svg +0 -1
- package/src/assets/businessStatsFilled.svg +0 -1
- package/src/assets/channelkey.svg +0 -1
- package/src/assets/chatHelpOutlined.svg +0 -1
- package/src/assets/checkCircleFilled.svg +0 -1
- package/src/assets/checkCircleOutlined.svg +0 -1
- package/src/assets/checkOutlined.svg +0 -1
- package/src/assets/circleFilled.svg +0 -1
- package/src/assets/closeBlueOutlined.svg +0 -1
- package/src/assets/closeCircleFilled.svg +0 -1
- package/src/assets/closeOutlined.svg +0 -1
- package/src/assets/dataonavatar.svg +0 -1
- package/src/assets/datonAvatar.png +0 -0
- package/src/assets/desktopSpeakerOutlined.svg +0 -1
- package/src/assets/disabledCheckboxFilled.svg +0 -1
- package/src/assets/doubleDownOutlined.svg +0 -1
- package/src/assets/downChevronOutlined.svg +0 -3
- package/src/assets/downOutlined.svg +0 -1
- package/src/assets/errorCircleOutlined.svg +0 -1
- package/src/assets/errorCrossOutlined.svg +0 -3
- package/src/assets/eyeFilled.svg +0 -1
- package/src/assets/eyeOff.svg +0 -3
- package/src/assets/eyeOutlined.svg +0 -1
- package/src/assets/formDetailsOutlined.svg +0 -1
- package/src/assets/gridViewOutlined.svg +0 -1
- package/src/assets/headsetOutlined.svg +0 -3
- package/src/assets/homeOutlined.svg +0 -1
- package/src/assets/icons/analysis1.svg +0 -1
- package/src/assets/infoCircleOutlined.svg +0 -3
- package/src/assets/infoTriangleFilled.svg +0 -1
- package/src/assets/infoTriangleOutlined.svg +0 -1
- package/src/assets/innosupps.svg +0 -1
- package/src/assets/leftChevronCircle.svg +0 -2
- package/src/assets/locationOutlined.svg +0 -1
- package/src/assets/loginDashboard.png +0 -0
- package/src/assets/mailOutlined.svg +0 -1
- package/src/assets/multiConnectionHub.svg +0 -1
- package/src/assets/murad.svg +0 -1
- package/src/assets/personOutlined.svg +0 -1
- package/src/assets/pricingIcon.svg +0 -3
- package/src/assets/rightChevronCircle.svg +0 -1
- package/src/assets/rightChevronOutlined.svg +0 -1
- package/src/assets/sarasFullLogo.svg +0 -13
- package/src/assets/sarasWhite.svg +0 -1
- package/src/assets/settingsOutlined.svg +0 -1
- package/src/assets/sourcesOutlined.svg +0 -1
- package/src/assets/tabDesktopArrowClockwiseOutlined.svg +0 -1
- package/src/assets/targetScanOutlined.svg +0 -1
- package/src/assets/timerOutlined.svg +0 -5
- package/src/assets/upwardTriangleFilled.svg +0 -1
- package/src/custom-theme.scss +0 -37
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -23
- package/src/main.ts +0 -6
- package/src/stories/GettingStarted.mdx +0 -233
- package/src/stories/KitchenSink.stories.ts +0 -109
- package/src/stories/accordion.stories.ts +0 -234
- package/src/stories/avatar.stories.ts +0 -45
- package/src/stories/card-carousel.stories.ts +0 -136
- package/src/stories/card.stories.ts +0 -242
- package/src/stories/checkbox.stories.ts +0 -238
- package/src/stories/chips.stories.ts +0 -61
- package/src/stories/custom-button.stories.ts +0 -89
- package/src/stories/datepicker.stories.ts +0 -78
- package/src/stories/form-input.stories.ts +0 -166
- package/src/stories/gridCell.stories.ts +0 -234
- package/src/stories/header.stories.ts +0 -61
- package/src/stories/icon.stories.ts +0 -65
- package/src/stories/leftnav.stories.ts +0 -67
- package/src/stories/message-banner.stories.ts +0 -116
- package/src/stories/page-layout.stories.ts +0 -200
- package/src/stories/progress-bar.stories.ts +0 -40
- package/src/stories/radio-button.stories.ts +0 -80
- package/src/stories/scrolling-card.stories.ts +0 -36
- package/src/stories/selectInput.stories.ts +0 -176
- package/src/stories/stepper.stories.ts +0 -92
- package/src/stories/tabs.stories.ts +0 -97
- package/src/stories/toast.stories.ts +0 -74
- package/src/stories/tool-tip.stories.ts +0 -45
- package/src/svg.d.ts +0 -1
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -42
- package/tsconfig.spec.json +0 -14
- /package/{projects/component-library/src/interfaces/guide-card-interface.ts → interfaces/guide-card-interface.d.ts} +0 -0
- /package/{projects/component-library/src/interfaces/message-banner.ts → interfaces/message-banner.d.ts} +0 -0
- /package/{projects/component-library/src/interfaces/option-interface.ts → interfaces/option-interface.d.ts} +0 -0
- /package/{src → styles}/styles.css +0 -0
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
// page-layout.component.stories.ts
|
|
2
|
-
|
|
3
|
-
import { Meta, StoryObj, moduleMetadata } from '@storybook/angular';
|
|
4
|
-
import { PageLayoutComponent } from '../../projects/component-library/src/lib/page-layout/page-layout.component';
|
|
5
|
-
import { ProgressBarComponent } from '../../projects/component-library/src/lib/progress-bar/progress-bar.component';
|
|
6
|
-
|
|
7
|
-
const meta: Meta<PageLayoutComponent> = {
|
|
8
|
-
title: 'Layouts/Page Layout',
|
|
9
|
-
component: PageLayoutComponent,
|
|
10
|
-
decorators: [
|
|
11
|
-
moduleMetadata({
|
|
12
|
-
imports: [ProgressBarComponent],
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
15
|
-
tags: ['autodocs'],
|
|
16
|
-
argTypes: {
|
|
17
|
-
showRightContent: {
|
|
18
|
-
control: { type: 'boolean' },
|
|
19
|
-
description: 'Show/Hide Right Section',
|
|
20
|
-
defaultValue: true
|
|
21
|
-
},
|
|
22
|
-
showFooterContent: {
|
|
23
|
-
control: { type: 'boolean' },
|
|
24
|
-
description: 'Show/Hide Footer Section',
|
|
25
|
-
defaultValue: true
|
|
26
|
-
},
|
|
27
|
-
showProgressBarContent: {
|
|
28
|
-
control: { type: 'boolean' },
|
|
29
|
-
description: 'Show/Hide Progress Bar Section',
|
|
30
|
-
defaultValue: true
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default meta;
|
|
36
|
-
type Story = StoryObj<PageLayoutComponent>;
|
|
37
|
-
|
|
38
|
-
export const Default: Story = {
|
|
39
|
-
args: {
|
|
40
|
-
showRightContent: true,
|
|
41
|
-
showFooterContent: true,
|
|
42
|
-
showProgressBarContent: true
|
|
43
|
-
},
|
|
44
|
-
render: (args) => ({
|
|
45
|
-
props: {
|
|
46
|
-
...args
|
|
47
|
-
},
|
|
48
|
-
template: `
|
|
49
|
-
<div style="height: 600px;">
|
|
50
|
-
<sa-page-layout [showRightContent]="showRightContent" [showFooterContent]="showFooterContent" [showProgressBarContent]="showProgressBarContent">
|
|
51
|
-
<div progress-bar-content>
|
|
52
|
-
<div class="progress-bar">
|
|
53
|
-
<sa-progress-bar [progressValue]="50" [borderRadius]="'10px'" [height]="'8px'"></sa-progress-bar>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div top-content>
|
|
57
|
-
<sa-icon size='100' icon='sarasFullLogo' altText='S'></sa-icon>
|
|
58
|
-
</div>
|
|
59
|
-
<div left-content>
|
|
60
|
-
<h2>Left Content</h2>
|
|
61
|
-
<p>This is the main content area.</p>
|
|
62
|
-
</div>
|
|
63
|
-
<div right-content>
|
|
64
|
-
<h3>Right Sidebar</h3>
|
|
65
|
-
<p>Additional information or navigation can go here.</p>
|
|
66
|
-
</div>
|
|
67
|
-
<div footer-content>
|
|
68
|
-
<p>Footer Content</p>
|
|
69
|
-
</div>
|
|
70
|
-
</sa-page-layout>
|
|
71
|
-
</div>
|
|
72
|
-
`
|
|
73
|
-
})
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const WithoutRightSection: Story = {
|
|
77
|
-
args: {
|
|
78
|
-
showRightContent: false,
|
|
79
|
-
showFooterContent: false,
|
|
80
|
-
showProgressBarContent: true
|
|
81
|
-
},
|
|
82
|
-
render: (args) => ({
|
|
83
|
-
props: {
|
|
84
|
-
...args,
|
|
85
|
-
},
|
|
86
|
-
template: `
|
|
87
|
-
<div style="height: 600px;">
|
|
88
|
-
<sa-page-layout [showRightContent]="showRightContent" [showFooterContent]="showFooterContent" [showProgressBarContent]="showProgressBarContent">
|
|
89
|
-
<div progress-bar-content>
|
|
90
|
-
<div class="progress-bar">
|
|
91
|
-
<sa-progress-bar [progressValue]="50" [borderRadius]="'10px'" [height]="'8px'"></sa-progress-bar>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
<div top-content>
|
|
95
|
-
<sa-icon size='100' icon='sarasFullLogo' altText='S'></sa-icon>
|
|
96
|
-
</div>
|
|
97
|
-
<div left-content>
|
|
98
|
-
<h2>Full Width Content</h2>
|
|
99
|
-
<p>This content takes up the full width when there's no right section.</p>
|
|
100
|
-
</div>
|
|
101
|
-
<div footer-content>
|
|
102
|
-
<p>Footer Content</p>
|
|
103
|
-
</div>
|
|
104
|
-
</sa-page-layout>
|
|
105
|
-
</div>
|
|
106
|
-
`,
|
|
107
|
-
}),
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const CustomContent: Story = {
|
|
111
|
-
args: {
|
|
112
|
-
showRightContent: true,
|
|
113
|
-
showFooterContent: true,
|
|
114
|
-
showProgressBarContent: true
|
|
115
|
-
},
|
|
116
|
-
render: (args) => ({
|
|
117
|
-
props: {
|
|
118
|
-
...args,
|
|
119
|
-
},
|
|
120
|
-
template: `
|
|
121
|
-
<div style="height: 600px;">
|
|
122
|
-
<sa-page-layout [showRightContent]="showRightContent" [showFooterContent]="showFooterContent" [showProgressBarContent]="showProgressBarContent">
|
|
123
|
-
<div progress-bar-content>
|
|
124
|
-
<div class="progress-bar">
|
|
125
|
-
<sa-progress-bar [progressValue]="50" [borderRadius]="'10px'" [height]="'8px'"></sa-progress-bar>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
<div top-content>
|
|
129
|
-
<sa-icon size='100' icon='sarasFullLogo' altText='S'></sa-icon>
|
|
130
|
-
</div>
|
|
131
|
-
<div left-content>
|
|
132
|
-
<h2>Custom Left Content</h2>
|
|
133
|
-
<ul>
|
|
134
|
-
<li>Item 1</li>
|
|
135
|
-
<li>Item 2</li>
|
|
136
|
-
<li>Item 3</li>
|
|
137
|
-
</ul>
|
|
138
|
-
</div>
|
|
139
|
-
<div right-content>
|
|
140
|
-
<h3>Custom Right Content</h3>
|
|
141
|
-
<button>Action Button</button>
|
|
142
|
-
</div>
|
|
143
|
-
<div footer-content>
|
|
144
|
-
<p>Footer Content</p>
|
|
145
|
-
</div>
|
|
146
|
-
</sa-page-layout>
|
|
147
|
-
</div>
|
|
148
|
-
`,
|
|
149
|
-
}),
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
export const WithoutProgressSection: Story = {
|
|
154
|
-
args: {
|
|
155
|
-
showRightContent: true,
|
|
156
|
-
showFooterContent: true,
|
|
157
|
-
showProgressBarContent: false
|
|
158
|
-
},
|
|
159
|
-
render: (args) => ({
|
|
160
|
-
props: {
|
|
161
|
-
...args,
|
|
162
|
-
},
|
|
163
|
-
template: `
|
|
164
|
-
<div style="height: 100vh; padding: 2rem;">
|
|
165
|
-
<div
|
|
166
|
-
style="position: relative;border: 1px solid var(--grey-100, #EAECF0);background: var(--structural-white);box-shadow: 3px 4px 16px 4px rgba(0, 0, 0, 0.08);border-radius: var(--small-16px, 16px);overflow: hidden;">
|
|
167
|
-
<div style="position: absolute;top: 0;width: 100%;">
|
|
168
|
-
<sa-progress-bar [progressValue]="50" [borderRadius]="'10px'" [height]="'8px'"></sa-progress-bar>
|
|
169
|
-
</div>
|
|
170
|
-
<sa-page-layout [showRightContent]="showRightContent" [showFooterContent]="showFooterContent" [showProgressBarContent]="showProgressBarContent">
|
|
171
|
-
<div progress-bar-content>
|
|
172
|
-
<div class="progress-bar">
|
|
173
|
-
<sa-progress-bar [progressValue]="50" [borderRadius]="'10px'" [height]="'8px'"></sa-progress-bar>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
<div top-content>
|
|
177
|
-
<sa-icon size='100' icon='sarasFullLogo' altText='S'></sa-icon>
|
|
178
|
-
</div>
|
|
179
|
-
<div left-content>
|
|
180
|
-
<h2>Custom Left Content</h2>
|
|
181
|
-
<ul>
|
|
182
|
-
<li>Item 1</li>
|
|
183
|
-
<li>Item 2</li>
|
|
184
|
-
<li>Item 3</li>
|
|
185
|
-
</ul>
|
|
186
|
-
</div>
|
|
187
|
-
<div right-content>
|
|
188
|
-
<h3>Custom Right Content</h3>
|
|
189
|
-
<button>Action Button</button>
|
|
190
|
-
</div>
|
|
191
|
-
<div footer-content>
|
|
192
|
-
<p>Footer Content</p>
|
|
193
|
-
</div>
|
|
194
|
-
</sa-page-layout>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
`,
|
|
199
|
-
}),
|
|
200
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// src/app/stories/ProgressBar.stories.ts
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
4
|
-
import { argsToTemplate } from '@storybook/angular';
|
|
5
|
-
import { ProgressBarComponent } from '../../projects/component-library/src/lib/progress-bar/progress-bar.component';
|
|
6
|
-
|
|
7
|
-
const meta: Meta<ProgressBarComponent> = {
|
|
8
|
-
title: 'Progress Bar',
|
|
9
|
-
component: ProgressBarComponent,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
argTypes: {
|
|
12
|
-
progressValue: {
|
|
13
|
-
control: { type: 'range', min: 0, max: 100 },
|
|
14
|
-
description: 'Percentage completion from 0 to 100',
|
|
15
|
-
defaultValue: 10,
|
|
16
|
-
},
|
|
17
|
-
borderRadius: {
|
|
18
|
-
control: { type: 'text' },
|
|
19
|
-
description: 'Border radius of the bar',
|
|
20
|
-
defaultValue: '10px',
|
|
21
|
-
},
|
|
22
|
-
height: {
|
|
23
|
-
control: { type: 'text' },
|
|
24
|
-
description: 'Height of the bar',
|
|
25
|
-
defaultValue: '8px',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export default meta;
|
|
32
|
-
type Story = StoryObj<ProgressBarComponent>;
|
|
33
|
-
|
|
34
|
-
export const ProgressBar: Story = {
|
|
35
|
-
args: {
|
|
36
|
-
progressValue: 50,
|
|
37
|
-
borderRadius: '10px',
|
|
38
|
-
height: '8px',
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { RadioButtonComponent } from '../../projects/component-library/src/lib/radio-button/radio-button.component';
|
|
3
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { FormlyForm, FormlyModule } from '@ngx-formly/core';
|
|
5
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
6
|
-
|
|
7
|
-
const meta: Meta<RadioButtonComponent> = {
|
|
8
|
-
title: 'Radio Button',
|
|
9
|
-
component: RadioButtonComponent,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
argTypes: {
|
|
12
|
-
options: {
|
|
13
|
-
control: { type: 'object' },
|
|
14
|
-
},
|
|
15
|
-
field: {
|
|
16
|
-
control: { type: 'object' },
|
|
17
|
-
},
|
|
18
|
-
model: {
|
|
19
|
-
control: { type: 'object' },
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
decorators: [
|
|
23
|
-
moduleMetadata({
|
|
24
|
-
imports: [ReactiveFormsModule,
|
|
25
|
-
FormlyModule.forRoot({
|
|
26
|
-
types: [
|
|
27
|
-
{
|
|
28
|
-
name: 'sa-radio-button',
|
|
29
|
-
component: RadioButtonComponent,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
})
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
|
|
37
|
-
],
|
|
38
|
-
render: (args) => ({
|
|
39
|
-
props: {
|
|
40
|
-
...args,
|
|
41
|
-
modelChangeHandler: (event: any) => {
|
|
42
|
-
console.log(event);
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
template: ` <form>
|
|
46
|
-
<formly-form
|
|
47
|
-
[form]="form"
|
|
48
|
-
[fields]="fields"
|
|
49
|
-
[model]="model"
|
|
50
|
-
(modelChange)="modelChangeHandler($event)">
|
|
51
|
-
</formly-form>
|
|
52
|
-
</form>`
|
|
53
|
-
}),
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export default meta;
|
|
57
|
-
type Story = StoryObj<FormlyForm>;
|
|
58
|
-
|
|
59
|
-
export const RadioButton: Story = {
|
|
60
|
-
args: {
|
|
61
|
-
fields: [
|
|
62
|
-
{
|
|
63
|
-
key: 'radio-select',
|
|
64
|
-
type: 'sa-radio-button',
|
|
65
|
-
props: {
|
|
66
|
-
options: [
|
|
67
|
-
{ value: 'option1', label: 'We are a Brand' },
|
|
68
|
-
{ value: 'option2', label: 'Option 2' },
|
|
69
|
-
{ value: 'option3', label: 'We are an Agency' },
|
|
70
|
-
],
|
|
71
|
-
label: 'Select an Option',
|
|
72
|
-
column: false,
|
|
73
|
-
description: 'Description here',
|
|
74
|
-
helpText: 'HelpText here',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
model: { 'radio-select': 'option2' },
|
|
79
|
-
},
|
|
80
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { ScrollingCardsComponent } from "../../projects/component-library/src/lib/scrolling-cards/scrolling-cards.component";
|
|
3
|
-
|
|
4
|
-
const meta: Meta<ScrollingCardsComponent> = {
|
|
5
|
-
title: 'Interactive Components/Scrolling Cards',
|
|
6
|
-
component: ScrollingCardsComponent,
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
argTypes: {
|
|
9
|
-
direction: {
|
|
10
|
-
control: 'select',
|
|
11
|
-
options: ['up', 'down', 'left', 'right'],
|
|
12
|
-
},
|
|
13
|
-
duration: {
|
|
14
|
-
control: 'number',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default meta;
|
|
20
|
-
|
|
21
|
-
type Story = StoryObj<ScrollingCardsComponent>;
|
|
22
|
-
|
|
23
|
-
export const ScrollingCards: Story = {
|
|
24
|
-
args: {
|
|
25
|
-
cards: [
|
|
26
|
-
{ title: 'Acquisition Marketer', body: 'Analyse channels have the most profitable customers & optimise our marketing ROI', icon: 'avatar' },
|
|
27
|
-
{ title: 'Marketing Head', body: 'Analyse channels have the most profitable customers & optimise our marketing ROI', icon: 'avatar' },
|
|
28
|
-
{ title: 'eCommerce Head', body: 'Analyse channels have the most profitable customers & optimise our marketing ROI', icon: 'avatar' },
|
|
29
|
-
// ... add more cards as needed
|
|
30
|
-
],
|
|
31
|
-
duration: 30,
|
|
32
|
-
direction: 'up',
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
ScrollingCards.storyName = 'Scrolling Cards';
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { argsToTemplate } from '@storybook/angular';
|
|
3
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
4
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { FormlyForm, FormlyModule } from '@ngx-formly/core';
|
|
6
|
-
import { FormSelectComponent } from '../../projects/component-library/src/lib/form-select/form-select.component';
|
|
7
|
-
import { ButtonComponent } from '../../projects/component-library/src/public-api';
|
|
8
|
-
import { SelectInterface } from '../../projects/component-library/src/interfaces/select-interface';
|
|
9
|
-
|
|
10
|
-
const meta: Meta<FormlyForm> = {
|
|
11
|
-
title: 'Select Input',
|
|
12
|
-
component: FormlyForm,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
decorators: [
|
|
15
|
-
moduleMetadata({
|
|
16
|
-
imports: [
|
|
17
|
-
FormlyModule,
|
|
18
|
-
FormSelectComponent,
|
|
19
|
-
ReactiveFormsModule,
|
|
20
|
-
ButtonComponent,
|
|
21
|
-
FormlyModule.forRoot({
|
|
22
|
-
types: [
|
|
23
|
-
{
|
|
24
|
-
name: 'sa-select', // always use this `name` to reference component, otherwise storybook breaks.
|
|
25
|
-
component: FormSelectComponent,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
})
|
|
29
|
-
],
|
|
30
|
-
}),
|
|
31
|
-
],
|
|
32
|
-
argTypes: {
|
|
33
|
-
fields: {
|
|
34
|
-
description: [
|
|
35
|
-
"**This component is expected to be used with formly form.**",
|
|
36
|
-
"`Fields` is an array of objects. Each object (lets say `fieldObj`) represents a field in the form.",
|
|
37
|
-
"To use this component as a form field, set `type: 'sa-select'` in `fieldObj`.",
|
|
38
|
-
"`Key` represents the name of this field.",
|
|
39
|
-
"`props` is an object that will be used to pass data and configure this component.",
|
|
40
|
-
"**Please use `SelectInterface` to pass props.**"
|
|
41
|
-
].join(" ")
|
|
42
|
-
},
|
|
43
|
-
model: {
|
|
44
|
-
description: [
|
|
45
|
-
"It is an object, each `key-value` pair represents a field.",
|
|
46
|
-
"`key` for the name of the field",
|
|
47
|
-
"`value` for default selections of that field."
|
|
48
|
-
].join(" ")
|
|
49
|
-
},
|
|
50
|
-
modelChange: {
|
|
51
|
-
action: 'modelChange'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
render: (args) => ({
|
|
55
|
-
props: {
|
|
56
|
-
...args,
|
|
57
|
-
},
|
|
58
|
-
template: `
|
|
59
|
-
<form>
|
|
60
|
-
<formly-form ${argsToTemplate(args)}>
|
|
61
|
-
</formly-form>
|
|
62
|
-
</form>
|
|
63
|
-
`
|
|
64
|
-
}),
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const default_props: SelectInterface = {
|
|
70
|
-
options: [
|
|
71
|
-
{ id: 1, name: 'One' },
|
|
72
|
-
{ id: 2, name: 'Two' },
|
|
73
|
-
{ id: 3, name: 'Three' },
|
|
74
|
-
{ id: 4, name: 'Four' },
|
|
75
|
-
{ id: 5, name: 'Five' },
|
|
76
|
-
],
|
|
77
|
-
disabled: false,
|
|
78
|
-
params: {
|
|
79
|
-
label: 'Label',
|
|
80
|
-
supportText: "Supporting text",
|
|
81
|
-
dropIcon: '../assets/downChevronOutlined.svg',
|
|
82
|
-
dropIconPosition: "both",
|
|
83
|
-
multiple: true,
|
|
84
|
-
iconPath: "../assets/closeBlueOutlined.svg",
|
|
85
|
-
type: "regular",
|
|
86
|
-
state: "primary",
|
|
87
|
-
filling: "filled",
|
|
88
|
-
iconPosition: "left"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export default meta;
|
|
93
|
-
type Story = StoryObj<FormlyForm>;
|
|
94
|
-
export const Regular: Story = {
|
|
95
|
-
args: {
|
|
96
|
-
fields: [
|
|
97
|
-
{
|
|
98
|
-
key: 'Test',
|
|
99
|
-
type: 'sa-select', // storybook breaks (change in params won't reflect in component) if `FormSelectComponent` is used.
|
|
100
|
-
props: {
|
|
101
|
-
...default_props,
|
|
102
|
-
searchable: true
|
|
103
|
-
},
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
model: {},
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
export const Non_Searchable_dropdown: Story = {
|
|
110
|
-
args: {
|
|
111
|
-
fields: [
|
|
112
|
-
{
|
|
113
|
-
key: 'Test',
|
|
114
|
-
type: 'sa-select',
|
|
115
|
-
props: {
|
|
116
|
-
...default_props,
|
|
117
|
-
searchable: false
|
|
118
|
-
},
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
model: {},
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export const Disabled: Story = {
|
|
126
|
-
args: {
|
|
127
|
-
fields: [{
|
|
128
|
-
key: 'Test',
|
|
129
|
-
type: 'sa-select',
|
|
130
|
-
props: {
|
|
131
|
-
...default_props,
|
|
132
|
-
disabled: true
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
model: {}
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
export const Regular_Default_Value: Story = {
|
|
141
|
-
args: {
|
|
142
|
-
fields: [
|
|
143
|
-
{
|
|
144
|
-
key: 'Test',
|
|
145
|
-
type: 'sa-select',
|
|
146
|
-
props: default_props,
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
model: {
|
|
150
|
-
"Test": [{
|
|
151
|
-
"id": 1,
|
|
152
|
-
"name": "One"
|
|
153
|
-
}]
|
|
154
|
-
},
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export const Disabled_Default_Value: Story = {
|
|
159
|
-
args: {
|
|
160
|
-
fields: [{
|
|
161
|
-
key: 'Test',
|
|
162
|
-
type: 'sa-select',
|
|
163
|
-
props: {
|
|
164
|
-
...default_props,
|
|
165
|
-
disabled: true
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
model: {
|
|
170
|
-
"Test": [{
|
|
171
|
-
"id": 1,
|
|
172
|
-
"name": "One"
|
|
173
|
-
}]
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { argsToTemplate } from '@storybook/angular';
|
|
3
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
4
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { FormlyForm, FormlyModule } from '@ngx-formly/core';
|
|
6
|
-
import { StepperComponent } from '../../projects/component-library/src/lib/stepper/stepper.component';
|
|
7
|
-
|
|
8
|
-
const meta: Meta<FormlyForm> = {
|
|
9
|
-
title: 'Stepper',
|
|
10
|
-
component: FormlyForm,
|
|
11
|
-
tags: ['autodocs'],
|
|
12
|
-
decorators: [
|
|
13
|
-
moduleMetadata({
|
|
14
|
-
imports: [
|
|
15
|
-
FormlyModule,
|
|
16
|
-
StepperComponent,
|
|
17
|
-
ReactiveFormsModule,
|
|
18
|
-
FormlyModule.forRoot({
|
|
19
|
-
types: [
|
|
20
|
-
{
|
|
21
|
-
name: 'sa-stepper', // always use this `name` to reference component, otherwise storybook breaks.
|
|
22
|
-
component: StepperComponent,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
],
|
|
27
|
-
}),
|
|
28
|
-
],
|
|
29
|
-
argTypes: {
|
|
30
|
-
modelChange: {
|
|
31
|
-
action: 'modelChange'
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
render: (args) => ({
|
|
35
|
-
props: {
|
|
36
|
-
...args,
|
|
37
|
-
},
|
|
38
|
-
template: `
|
|
39
|
-
<form>
|
|
40
|
-
<formly-form ${argsToTemplate(args)}>
|
|
41
|
-
</formly-form>
|
|
42
|
-
</form>
|
|
43
|
-
`
|
|
44
|
-
}),
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const default_props = {
|
|
49
|
-
disabled: false,
|
|
50
|
-
options: [
|
|
51
|
-
{ id: 0, name: 'Zero' },
|
|
52
|
-
{ id: 1, name: 'One' },
|
|
53
|
-
{ id: 2, name: 'Two' },
|
|
54
|
-
{ id: 3, name: 'Three' },
|
|
55
|
-
],
|
|
56
|
-
params: {
|
|
57
|
-
editable: true,
|
|
58
|
-
doneIcon: "../assets/checkOutlined.svg"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export default meta;
|
|
63
|
-
type Story = StoryObj<FormlyForm>;
|
|
64
|
-
export const Default: Story = {
|
|
65
|
-
args: {
|
|
66
|
-
model: {},
|
|
67
|
-
fields: [
|
|
68
|
-
{
|
|
69
|
-
key: 'Test-stepper',
|
|
70
|
-
type: 'sa-stepper', // storybook breaks (change in params won't reflect in component) if `StepperComponent` is used.
|
|
71
|
-
props: default_props,
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const Default_selection: Story = {
|
|
78
|
-
args: {
|
|
79
|
-
model: {
|
|
80
|
-
"Test-stepper": {
|
|
81
|
-
"id": 2,
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
fields: [
|
|
85
|
-
{
|
|
86
|
-
key: 'Test-stepper',
|
|
87
|
-
type: 'sa-stepper',
|
|
88
|
-
props: default_props,
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
};
|