@design-factory/design-factory 15.2.0
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/LICENSE +26 -0
- package/README.md +47 -0
- package/assets/.gitkeep +0 -0
- package/assets/fonts/amadeus-bold/amadeus-bold.svg +5131 -0
- package/assets/fonts/amadeus-bold/amadeus-bold.ttf +0 -0
- package/assets/fonts/amadeus-bold/amadeus-bold.woff +0 -0
- package/assets/fonts/amadeus-bold/amadeus-bold.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-bold.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-bold.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-bolditalic.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-bolditalic.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-italic.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-italic.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-light.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-light.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-lightitalic.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-lightitalic.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-regular.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-regular.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-thin.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-thin.woff2 +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-thinitalic.woff +0 -0
- package/assets/fonts/amadeus-full/amadeus-full-thinitalic.woff2 +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.svg +8658 -0
- package/assets/fonts/amadeus-light/amadeus-light.ttf +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.woff +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.woff2 +0 -0
- package/assets/fonts/amadeus-regular/amadeus-regular.svg +5131 -0
- package/assets/fonts/amadeus-regular/amadeus-regular.ttf +0 -0
- package/assets/fonts/amadeus-regular/amadeus-regular.woff +0 -0
- package/assets/fonts/amadeus-regular/amadeus-regular.woff2 +0 -0
- package/assets/fonts/amadeus-thin/amadeus-thin.svg +5131 -0
- package/assets/fonts/amadeus-thin/amadeus-thin.ttf +0 -0
- package/assets/fonts/amadeus-thin/amadeus-thin.woff +0 -0
- package/assets/fonts/amadeus-thin/amadeus-thin.woff2 +0 -0
- package/assets/fonts/icon-font/light/df-light-300.svg +1709 -0
- package/assets/fonts/icon-font/light/df-light-300.ttf +0 -0
- package/assets/fonts/icon-font/light/df-light-300.woff +0 -0
- package/assets/fonts/icon-font/light/df-light-300.woff2 +0 -0
- package/assets/fonts/icon-font/solid/df-solid-900.svg +1709 -0
- package/assets/fonts/icon-font/solid/df-solid-900.ttf +0 -0
- package/assets/fonts/icon-font/solid/df-solid-900.woff +0 -0
- package/assets/fonts/icon-font/solid/df-solid-900.woff2 +0 -0
- package/assets/fonts/noto/notosans-bold.woff +0 -0
- package/assets/fonts/noto/notosans-bold.woff2 +0 -0
- package/assets/fonts/noto/notosans-bolditalic.woff +0 -0
- package/assets/fonts/noto/notosans-bolditalic.woff2 +0 -0
- package/assets/fonts/noto/notosans-italic.woff +0 -0
- package/assets/fonts/noto/notosans-italic.woff2 +0 -0
- package/assets/fonts/noto/notosans-light.woff +0 -0
- package/assets/fonts/noto/notosans-light.woff2 +0 -0
- package/assets/fonts/noto/notosans-lightitalic.woff +0 -0
- package/assets/fonts/noto/notosans-lightitalic.woff2 +0 -0
- package/assets/fonts/noto/notosans-regular.woff +0 -0
- package/assets/fonts/noto/notosans-regular.woff2 +0 -0
- package/assets/fonts/noto/notosans-thin.woff +0 -0
- package/assets/fonts/noto/notosans-thin.woff2 +0 -0
- package/assets/fonts/noto/notosans-thinitalic.woff +0 -0
- package/assets/fonts/noto/notosans-thinitalic.woff2 +0 -0
- package/assets/fonts/noto/notosansarabic-bold.woff +0 -0
- package/assets/fonts/noto/notosansarabic-bold.woff2 +0 -0
- package/assets/fonts/noto/notosansarabic-light.woff +0 -0
- package/assets/fonts/noto/notosansarabic-light.woff2 +0 -0
- package/assets/fonts/noto/notosansarabic-regular.woff +0 -0
- package/assets/fonts/noto/notosansarabic-regular.woff2 +0 -0
- package/assets/fonts/noto/notosansarabic-thin.woff +0 -0
- package/assets/fonts/noto/notosansarabic-thin.woff2 +0 -0
- package/assets/fonts/noto/notosansgeorgian-bold.woff +0 -0
- package/assets/fonts/noto/notosansgeorgian-bold.woff2 +0 -0
- package/assets/fonts/noto/notosansgeorgian-light.woff +0 -0
- package/assets/fonts/noto/notosansgeorgian-light.woff2 +0 -0
- package/assets/fonts/noto/notosansgeorgian-regular.woff +0 -0
- package/assets/fonts/noto/notosansgeorgian-regular.woff2 +0 -0
- package/assets/fonts/noto/notosansgeorgian-thin.woff +0 -0
- package/assets/fonts/noto/notosansgeorgian-thin.woff2 +0 -0
- package/assets/fonts/noto/notosanshebrew-bold.woff +0 -0
- package/assets/fonts/noto/notosanshebrew-bold.woff2 +0 -0
- package/assets/fonts/noto/notosanshebrew-light.woff +0 -0
- package/assets/fonts/noto/notosanshebrew-light.woff2 +0 -0
- package/assets/fonts/noto/notosanshebrew-regular.woff +0 -0
- package/assets/fonts/noto/notosanshebrew-regular.woff2 +0 -0
- package/assets/fonts/noto/notosanshebrew-thin.woff +0 -0
- package/assets/fonts/noto/notosanshebrew-thin.woff2 +0 -0
- package/assets/fonts/source-sans-pro-bold/source-sans-pro-bold.svg +19926 -0
- package/assets/fonts/source-sans-pro-bold/source-sans-pro-bold.ttf +0 -0
- package/assets/fonts/source-sans-pro-bold/source-sans-pro-bold.woff +0 -0
- package/assets/fonts/source-sans-pro-bold/source-sans-pro-bold.woff2 +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-bold.woff +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-bold.woff2 +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-bolditalic.woff +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-bolditalic.woff2 +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-italic.woff +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-italic.woff2 +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-light.woff +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-light.woff2 +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-lightitalic.woff +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-lightitalic.woff2 +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-regular.woff +0 -0
- package/assets/fonts/source-sans-pro-full/sourcesanspro-full-regular.woff2 +0 -0
- package/assets/fonts/source-sans-pro-light/source-sans-pro-light.svg +19165 -0
- package/assets/fonts/source-sans-pro-light/source-sans-pro-light.ttf +0 -0
- package/assets/fonts/source-sans-pro-light/source-sans-pro-light.woff +0 -0
- package/assets/fonts/source-sans-pro-light/source-sans-pro-light.woff2 +0 -0
- package/assets/fonts/source-sans-pro-regular/source-sans-pro-regular.svg +20412 -0
- package/assets/fonts/source-sans-pro-regular/source-sans-pro-regular.ttf +0 -0
- package/assets/fonts/source-sans-pro-regular/source-sans-pro-regular.woff +0 -0
- package/assets/fonts/source-sans-pro-regular/source-sans-pro-regular.woff2 +0 -0
- package/assets/fonts/source-sans-pro-semibold/source-sans-pro-semibold.svg +20019 -0
- package/assets/fonts/source-sans-pro-semibold/source-sans-pro-semibold.ttf +0 -0
- package/assets/fonts/source-sans-pro-semibold/source-sans-pro-semibold.woff +0 -0
- package/assets/fonts/source-sans-pro-semibold/source-sans-pro-semibold.woff2 +0 -0
- package/assets/icon-amadeus.svg +1 -0
- package/assets/readme.png +0 -0
- package/design-factory-utilities.scss +5 -0
- package/design-factory.css +3 -0
- package/design-factory.scss +1 -0
- package/environment.d.ts +4 -0
- package/esm2022/design-factory.mjs +5 -0
- package/esm2022/environment.mjs +5 -0
- package/esm2022/index.mjs +5 -0
- package/esm2022/lib/angular/accessibility/accessibility.module.mjs +19 -0
- package/esm2022/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.mjs +32 -0
- package/esm2022/lib/angular/accessibility/directives/skip-link.directive.mjs +64 -0
- package/esm2022/lib/angular/alert/alert.module.mjs +17 -0
- package/esm2022/lib/angular/animation/ngbTransition.mjs +76 -0
- package/esm2022/lib/angular/animation/util.mjs +30 -0
- package/esm2022/lib/angular/card/card-advanced.module.mjs +17 -0
- package/esm2022/lib/angular/card/manage-card-selection.directive.mjs +47 -0
- package/esm2022/lib/angular/datepicker/closedatepicker.directive.mjs +38 -0
- package/esm2022/lib/angular/datepicker/datepicker-keyboard-nav.service.mjs +39 -0
- package/esm2022/lib/angular/datepicker/datepicker-range.directive.mjs +101 -0
- package/esm2022/lib/angular/datepicker/datepicker-range.service.mjs +97 -0
- package/esm2022/lib/angular/datepicker/datepicker.module.mjs +42 -0
- package/esm2022/lib/angular/footer/footer.module.mjs +17 -0
- package/esm2022/lib/angular/icon/amadeus-icon.mjs +79 -0
- package/esm2022/lib/angular/icon/icon.module.mjs +17 -0
- package/esm2022/lib/angular/icon/insert/insert-icon.directive.mjs +47 -0
- package/esm2022/lib/angular/icon/insert/insert-icon.module.mjs +17 -0
- package/esm2022/lib/angular/inputs/click/trigger-click.directive.mjs +28 -0
- package/esm2022/lib/angular/inputs/icon/inputicon.directive.mjs +95 -0
- package/esm2022/lib/angular/inputs/input-advanced.module.mjs +19 -0
- package/esm2022/lib/angular/mediaqueries/ifMedia.directive.mjs +52 -0
- package/esm2022/lib/angular/mediaqueries/media.module.mjs +17 -0
- package/esm2022/lib/angular/mediaqueries/media.service.mjs +46 -0
- package/esm2022/lib/angular/mediaqueries/mediaUtils.service.mjs +185 -0
- package/esm2022/lib/angular/modal/modal.service.mjs +36 -0
- package/esm2022/lib/angular/popover/config/popover.config.mjs +16 -0
- package/esm2022/lib/angular/popover/popover.module.mjs +17 -0
- package/esm2022/lib/angular/progressbar/progressbar.component.mjs +158 -0
- package/esm2022/lib/angular/progressbar/progressbar.module.mjs +18 -0
- package/esm2022/lib/angular/progressindicator/default/default-spinner.component.mjs +23 -0
- package/esm2022/lib/angular/progressindicator/progressindicator-backdrop.component.mjs +29 -0
- package/esm2022/lib/angular/progressindicator/progressindicator-config.mjs +25 -0
- package/esm2022/lib/angular/progressindicator/progressindicator-container.component.mjs +52 -0
- package/esm2022/lib/angular/progressindicator/progressindicator-ref.mjs +8 -0
- package/esm2022/lib/angular/progressindicator/progressindicator.directive.mjs +39 -0
- package/esm2022/lib/angular/progressindicator/progressindicator.module.mjs +45 -0
- package/esm2022/lib/angular/progressindicator/progressindicator.service.mjs +170 -0
- package/esm2022/lib/angular/right-to-left/directionDetection.service.mjs +32 -0
- package/esm2022/lib/angular/selects/events/manage-badge-events.directive.mjs +65 -0
- package/esm2022/lib/angular/selects/nav/manage-nav-select.directive.mjs +108 -0
- package/esm2022/lib/angular/selects/option-highlight.directive.mjs +59 -0
- package/esm2022/lib/angular/selects/select.model.mjs +2 -0
- package/esm2022/lib/angular/selects/select.module.mjs +22 -0
- package/esm2022/lib/angular/sidenav/dfSideNavAnimation.mjs +73 -0
- package/esm2022/lib/angular/sidenav/dfSideNavCollapse.mjs +94 -0
- package/esm2022/lib/angular/sidenav/dfSideNavCollapse.module.mjs +18 -0
- package/esm2022/lib/angular/sidenav/dfSideNavCollapse.service.mjs +37 -0
- package/esm2022/lib/angular/sidenav/dfSideNavCollapseConfig.mjs +27 -0
- package/esm2022/lib/angular/sidenav/excludeTrap.directive.mjs +55 -0
- package/esm2022/lib/angular/sidenav/manage-sidenav.directive.mjs +26 -0
- package/esm2022/lib/angular/sidenav/sidenav-config.mjs +25 -0
- package/esm2022/lib/angular/sidenav/sidenav.component.mjs +86 -0
- package/esm2022/lib/angular/sidenav/sidenav.module.mjs +52 -0
- package/esm2022/lib/angular/sidenav/sidenav.service.mjs +315 -0
- package/esm2022/lib/angular/sidenav/sidenavlist.component.mjs +50 -0
- package/esm2022/lib/angular/slider/direction/sliderdirection.directive.mjs +33 -0
- package/esm2022/lib/angular/slider/lib/change-context.mjs +3 -0
- package/esm2022/lib/angular/slider/lib/compatibility-helper.mjs +15 -0
- package/esm2022/lib/angular/slider/lib/event-listener-helper.mjs +77 -0
- package/esm2022/lib/angular/slider/lib/event-listener.mjs +3 -0
- package/esm2022/lib/angular/slider/lib/math-helper.mjs +15 -0
- package/esm2022/lib/angular/slider/lib/options.mjs +123 -0
- package/esm2022/lib/angular/slider/lib/pointer-type.mjs +9 -0
- package/esm2022/lib/angular/slider/lib/slider-element.directive.mjs +187 -0
- package/esm2022/lib/angular/slider/lib/slider-handle.directive.mjs +62 -0
- package/esm2022/lib/angular/slider/lib/slider-label.directive.mjs +38 -0
- package/esm2022/lib/angular/slider/lib/slider.component.mjs +2020 -0
- package/esm2022/lib/angular/slider/lib/tooltip-wrapper.component.mjs +20 -0
- package/esm2022/lib/angular/slider/lib/value-helper.mjs +50 -0
- package/esm2022/lib/angular/slider/slider.module.mjs +29 -0
- package/esm2022/lib/angular/toast/toast.module.mjs +17 -0
- package/esm2022/lib/angular/tooltip/tooltip.module.mjs +18 -0
- package/esm2022/lib/angular/tooltip/truncate/tooltipTruncate.directive.mjs +33 -0
- package/esm2022/lib/angular/utils/scrollbar.service.mjs +79 -0
- package/esm2022/lib/index.mjs +172 -0
- package/fesm2022/design-factory.mjs +5664 -0
- package/fesm2022/design-factory.mjs.map +1 -0
- package/index.d.ts +4 -0
- package/lib/angular/accessibility/accessibility.module.d.ts +10 -0
- package/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.d.ts +13 -0
- package/lib/angular/accessibility/directives/skip-link.directive.d.ts +15 -0
- package/lib/angular/alert/alert.module.d.ts +8 -0
- package/lib/angular/animation/ngbTransition.d.ts +16 -0
- package/lib/angular/animation/util.d.ts +14 -0
- package/lib/angular/card/card-advanced.module.d.ts +8 -0
- package/lib/angular/card/manage-card-selection.directive.d.ts +13 -0
- package/lib/angular/datepicker/closedatepicker.directive.d.ts +10 -0
- package/lib/angular/datepicker/datepicker-keyboard-nav.service.d.ts +7 -0
- package/lib/angular/datepicker/datepicker-range.directive.d.ts +31 -0
- package/lib/angular/datepicker/datepicker-range.service.d.ts +32 -0
- package/lib/angular/datepicker/datepicker.module.d.ts +12 -0
- package/lib/angular/footer/footer.module.d.ts +8 -0
- package/lib/angular/icon/amadeus-icon.d.ts +5 -0
- package/lib/angular/icon/icon.module.d.ts +8 -0
- package/lib/angular/icon/insert/insert-icon.directive.d.ts +12 -0
- package/lib/angular/icon/insert/insert-icon.module.d.ts +8 -0
- package/lib/angular/inputs/click/trigger-click.directive.d.ts +9 -0
- package/lib/angular/inputs/icon/inputicon.directive.d.ts +28 -0
- package/lib/angular/inputs/input-advanced.module.d.ts +10 -0
- package/lib/angular/mediaqueries/ifMedia.directive.d.ts +26 -0
- package/lib/angular/mediaqueries/media.module.d.ts +8 -0
- package/lib/angular/mediaqueries/media.service.d.ts +24 -0
- package/lib/angular/mediaqueries/mediaUtils.service.d.ts +75 -0
- package/lib/angular/modal/modal.service.d.ts +13 -0
- package/lib/angular/popover/config/popover.config.d.ts +8 -0
- package/lib/angular/popover/popover.module.d.ts +7 -0
- package/lib/angular/progressbar/progressbar.component.d.ts +71 -0
- package/lib/angular/progressbar/progressbar.module.d.ts +9 -0
- package/lib/angular/progressindicator/default/default-spinner.component.d.ts +8 -0
- package/lib/angular/progressindicator/progressindicator-backdrop.component.d.ts +8 -0
- package/lib/angular/progressindicator/progressindicator-config.d.ts +54 -0
- package/lib/angular/progressindicator/progressindicator-container.component.d.ts +13 -0
- package/lib/angular/progressindicator/progressindicator-ref.d.ts +9 -0
- package/lib/angular/progressindicator/progressindicator.directive.d.ts +18 -0
- package/lib/angular/progressindicator/progressindicator.module.d.ts +15 -0
- package/lib/angular/progressindicator/progressindicator.service.d.ts +33 -0
- package/lib/angular/right-to-left/directionDetection.service.d.ts +12 -0
- package/lib/angular/selects/events/manage-badge-events.directive.d.ts +16 -0
- package/lib/angular/selects/nav/manage-nav-select.directive.d.ts +20 -0
- package/lib/angular/selects/option-highlight.directive.d.ts +19 -0
- package/lib/angular/selects/select.model.d.ts +1 -0
- package/lib/angular/selects/select.module.d.ts +13 -0
- package/lib/angular/sidenav/dfSideNavAnimation.d.ts +7 -0
- package/lib/angular/sidenav/dfSideNavCollapse.d.ts +48 -0
- package/lib/angular/sidenav/dfSideNavCollapse.module.d.ts +9 -0
- package/lib/angular/sidenav/dfSideNavCollapse.service.d.ts +24 -0
- package/lib/angular/sidenav/dfSideNavCollapseConfig.d.ts +17 -0
- package/lib/angular/sidenav/excludeTrap.directive.d.ts +30 -0
- package/lib/angular/sidenav/manage-sidenav.directive.d.ts +10 -0
- package/lib/angular/sidenav/sidenav-config.d.ts +17 -0
- package/lib/angular/sidenav/sidenav.component.d.ts +43 -0
- package/lib/angular/sidenav/sidenav.module.d.ts +14 -0
- package/lib/angular/sidenav/sidenav.service.d.ts +178 -0
- package/lib/angular/sidenav/sidenavlist.component.d.ts +25 -0
- package/lib/angular/slider/direction/sliderdirection.directive.d.ts +12 -0
- package/lib/angular/slider/lib/change-context.d.ts +6 -0
- package/lib/angular/slider/lib/compatibility-helper.d.ts +7 -0
- package/lib/angular/slider/lib/event-listener-helper.d.ts +13 -0
- package/lib/angular/slider/lib/event-listener.d.ts +7 -0
- package/lib/angular/slider/lib/math-helper.d.ts +6 -0
- package/lib/angular/slider/lib/options.d.ts +241 -0
- package/lib/angular/slider/lib/pointer-type.d.ts +7 -0
- package/lib/angular/slider/lib/slider-element.directive.d.ts +47 -0
- package/lib/angular/slider/lib/slider-handle.directive.d.ts +19 -0
- package/lib/angular/slider/lib/slider-label.directive.d.ts +11 -0
- package/lib/angular/slider/lib/slider.component.d.ts +190 -0
- package/lib/angular/slider/lib/tooltip-wrapper.component.d.ts +10 -0
- package/lib/angular/slider/lib/value-helper.d.ts +13 -0
- package/lib/angular/slider/slider.module.d.ts +12 -0
- package/lib/angular/toast/toast.module.d.ts +8 -0
- package/lib/angular/tooltip/tooltip.module.d.ts +9 -0
- package/lib/angular/tooltip/truncate/tooltipTruncate.directive.d.ts +17 -0
- package/lib/angular/utils/scrollbar.service.d.ts +46 -0
- package/lib/index.d.ts +82 -0
- package/package.json +44 -0
- package/schematics/collection.json +10 -0
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.d.ts +2 -0
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js +113 -0
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js.map +1 -0
- package/schematics/migrations/helpers.d.ts +13 -0
- package/schematics/migrations/helpers.js +33 -0
- package/schematics/migrations/helpers.js.map +1 -0
- package/schematics/migrations/migration.json +10 -0
- package/schematics/migrations/utils/project_tsconfig_paths.d.ts +16 -0
- package/schematics/migrations/utils/project_tsconfig_paths.js +91 -0
- package/schematics/migrations/utils/project_tsconfig_paths.js.map +1 -0
- package/schematics/migrations/utils/typescript/compiler_host.d.ts +44 -0
- package/schematics/migrations/utils/typescript/compiler_host.js +86 -0
- package/schematics/migrations/utils/typescript/compiler_host.js.map +1 -0
- package/schematics/migrations/utils/typescript/parse_tsconfig.d.ts +9 -0
- package/schematics/migrations/utils/typescript/parse_tsconfig.js +30 -0
- package/schematics/migrations/utils/typescript/parse_tsconfig.js.map +1 -0
- package/schematics/ng-add/index.d.ts +3 -0
- package/schematics/ng-add/index.js +84 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.d.ts +6 -0
- package/schematics/ng-add/schema.js +3 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/schema.json +15 -0
- package/styles/scss/_common.mixins.scss +19 -0
- package/styles/scss/_common.scss +57 -0
- package/styles/scss/_common.variables.scss +62 -0
- package/styles/scss/_variables.scss +56 -0
- package/styles/scss/bootstrap/_maps.scss +50 -0
- package/styles/scss/bootstrap/_mixins-override.scss +69 -0
- package/styles/scss/bootstrap/_rtl-styles-override.scss +125 -0
- package/styles/scss/bootstrap/_utilities-override.scss +19 -0
- package/styles/scss/bootstrap/_variables.scss +1684 -0
- package/styles/scss/components/.gitkeep +0 -0
- package/styles/scss/components/accordion/_accordion.scss +87 -0
- package/styles/scss/components/accordion/_accordion.variables.scss +8 -0
- package/styles/scss/components/alert/_alert.scss +301 -0
- package/styles/scss/components/alert/_alert.variables.scss +70 -0
- package/styles/scss/components/badge/_badge.scss +160 -0
- package/styles/scss/components/badge/_badge.variables.scss +10 -0
- package/styles/scss/components/brand-color/_brand-color.mixins.scss +11 -0
- package/styles/scss/components/brand-color/_brand-color.scss +18 -0
- package/styles/scss/components/brand-color/_brand-color.variables.scss +158 -0
- package/styles/scss/components/breadcrumbs/_breadcrumbs.scss +91 -0
- package/styles/scss/components/breadcrumbs/_breadcrumbs.variables.scss +13 -0
- package/styles/scss/components/button/_button.scss +249 -0
- package/styles/scss/components/button/_button.utils.scss +16 -0
- package/styles/scss/components/button/_button.variables.scss +27 -0
- package/styles/scss/components/button/_button_container.scss +66 -0
- package/styles/scss/components/card/_card.scss +73 -0
- package/styles/scss/components/card/_card.variables.scss +22 -0
- package/styles/scss/components/carousel/_carousel.scss +52 -0
- package/styles/scss/components/carousel/_carousel.variables.scss +11 -0
- package/styles/scss/components/checkbox/_checkbox.scss +37 -0
- package/styles/scss/components/checkbox/_checkbox.variables.scss +6 -0
- package/styles/scss/components/collapse/_collapse.scss +35 -0
- package/styles/scss/components/collapse/_collapse.variables.scss +7 -0
- package/styles/scss/components/datepicker/_datepicker.scss +251 -0
- package/styles/scss/components/datepicker/_datepicker.variables.scss +52 -0
- package/styles/scss/components/dropdown/_dropdown.mixins.scss +26 -0
- package/styles/scss/components/dropdown/_dropdown.scss +81 -0
- package/styles/scss/components/dropdown/_dropdown.variables.scss +18 -0
- package/styles/scss/components/fieldset/_fieldset.scss +6 -0
- package/styles/scss/components/fieldset/_fieldset.variables.scss +2 -0
- package/styles/scss/components/fonts/_font-faces.mixins.scss +525 -0
- package/styles/scss/components/fonts/_fonts-family.scss +98 -0
- package/styles/scss/components/fonts/_fonts.scss +83 -0
- package/styles/scss/components/fonts/_fonts.variables.scss +31 -0
- package/styles/scss/components/fonts/_icon-font.scss +5107 -0
- package/styles/scss/components/fonts/_icon-font.variables.scss +14 -0
- package/styles/scss/components/fonts/_multi-lang.mixins.scss +8 -0
- package/styles/scss/components/fonts/multi-lang/_arabic.mixins.scss +8 -0
- package/styles/scss/components/fonts/multi-lang/_chinese.mixins.scss +12 -0
- package/styles/scss/components/fonts/multi-lang/_cyrillic-extended.mixins.scss +11 -0
- package/styles/scss/components/fonts/multi-lang/_cyrillic.mixins.scss +10 -0
- package/styles/scss/components/fonts/multi-lang/_georgian.mixins.scss +9 -0
- package/styles/scss/components/fonts/multi-lang/_hebrew.mixins.scss +9 -0
- package/styles/scss/components/fonts/multi-lang/_japanese.mixins.scss +23 -0
- package/styles/scss/components/fonts/multi-lang/_korean.mixins.scss +10 -0
- package/styles/scss/components/footer/_footer.scss +23 -0
- package/styles/scss/components/footer/_footer.variables.scss +13 -0
- package/styles/scss/components/form/_form.scss +104 -0
- package/styles/scss/components/form/_form.variables.scss +23 -0
- package/styles/scss/components/icon/_amadeus-icon.scss +39 -0
- package/styles/scss/components/icon/_amadeus-icon.variables.scss +3 -0
- package/styles/scss/components/inputs/_inputs.mixin.scss +51 -0
- package/styles/scss/components/inputs/_inputs.scss +290 -0
- package/styles/scss/components/inputs/_inputs.variables.scss +41 -0
- package/styles/scss/components/link/_link.mixins.scss +190 -0
- package/styles/scss/components/link/_link.scss +88 -0
- package/styles/scss/components/link/_link.variables.scss +55 -0
- package/styles/scss/components/list/_list.scss +15 -0
- package/styles/scss/components/list/_list.variables.scss +4 -0
- package/styles/scss/components/list-group/_list-group.scss +61 -0
- package/styles/scss/components/list-group/_list-group.variables.scss +14 -0
- package/styles/scss/components/media/_media.scss +42 -0
- package/styles/scss/components/media/_media.variables.scss +7 -0
- package/styles/scss/components/modal/_modal.scss +147 -0
- package/styles/scss/components/modal/_modal.variables.scss +23 -0
- package/styles/scss/components/navbar/_navbar.scss +253 -0
- package/styles/scss/components/navbar/_navbar.variables.scss +62 -0
- package/styles/scss/components/pagination/_pagination.scss +195 -0
- package/styles/scss/components/pagination/_pagination.variables.scss +27 -0
- package/styles/scss/components/pagination/_pagination_container.scss +14 -0
- package/styles/scss/components/popover/_popover.mixin.scss +57 -0
- package/styles/scss/components/popover/_popover.scss +25 -0
- package/styles/scss/components/popover/_popover.variables.scss +18 -0
- package/styles/scss/components/popover/_popover_container.scss +156 -0
- package/styles/scss/components/progressbar/_progressbar.scss +74 -0
- package/styles/scss/components/progressbar/_progressbar.variables.scss +13 -0
- package/styles/scss/components/radio/_radio.scss +25 -0
- package/styles/scss/components/radio/_radio.variables.scss +3 -0
- package/styles/scss/components/rating/_rating.scss +81 -0
- package/styles/scss/components/rating/_rating.variables.scss +20 -0
- package/styles/scss/components/scrollspy/_scrollspy.scss +34 -0
- package/styles/scss/components/scrollspy/_scrollspy.variables.scss +11 -0
- package/styles/scss/components/select/_select.scss +734 -0
- package/styles/scss/components/select/_select.variables.scss +85 -0
- package/styles/scss/components/separator/_separator.scss +8 -0
- package/styles/scss/components/separator/_separator.variables.scss +1 -0
- package/styles/scss/components/sidenav/_sidenav.scss +259 -0
- package/styles/scss/components/sidenav/_sidenav.variables.scss +87 -0
- package/styles/scss/components/skip-links/_skip-links.scss +24 -0
- package/styles/scss/components/skip-links/_skip-links.variables.scss +7 -0
- package/styles/scss/components/slider/_slider.scss +407 -0
- package/styles/scss/components/slider/_slider.variables.scss +58 -0
- package/styles/scss/components/speechbubble/_speechbubble.scss +127 -0
- package/styles/scss/components/speechbubble/_speechbubble.variables.scss +19 -0
- package/styles/scss/components/spinner/_spinner.scss +88 -0
- package/styles/scss/components/spinner/_spinner.variables.scss +21 -0
- package/styles/scss/components/spinner/_spinner_container.scss +43 -0
- package/styles/scss/components/stepper/_stepper.mixins.scss +193 -0
- package/styles/scss/components/stepper/_stepper.scss +130 -0
- package/styles/scss/components/stepper/_stepper.variables.scss +63 -0
- package/styles/scss/components/table/_advancedtables.scss +229 -0
- package/styles/scss/components/table/_table.scss +7 -0
- package/styles/scss/components/table/_table.variables.scss +24 -0
- package/styles/scss/components/tabs/_tabs.scss +123 -0
- package/styles/scss/components/tabs/_tabs.variables.scss +32 -0
- package/styles/scss/components/toast/_toast.scss +189 -0
- package/styles/scss/components/toast/_toast.variables.scss +13 -0
- package/styles/scss/components/toggle/_toggle.scss +93 -0
- package/styles/scss/components/toggle/_toggle.variables.scss +17 -0
- package/styles/scss/components/tooltip/_tooltip.scss +3 -0
- package/styles/scss/components/tooltip/_tooltip.variables.scss +5 -0
- package/styles/scss/components/tooltip/_tooltip_container.scss +112 -0
- package/styles/scss/components/typeahead/_typeahead.scss +45 -0
- package/styles/scss/components/typeahead/_typeahead.variables.scss +10 -0
- package/styles/scss/df-styles-namespace.scss +160 -0
- package/styles/scss/df-styles.scss +107 -0
- package/styles/scss/utilities/_common.utilities.scss +70 -0
- package/styles/scss/utilities/_form.mixins.scss +26 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./truncate/tooltipTruncate.directive";
|
|
3
|
+
import * as i2 from "@ng-bootstrap/ng-bootstrap";
|
|
4
|
+
export { DfTooltipTruncateDirective } from './truncate/tooltipTruncate.directive';
|
|
5
|
+
export declare class DfTooltipModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfTooltipModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfTooltipModule, never, [typeof i1.DfTooltipTruncateDirective], [typeof i1.DfTooltipTruncateDirective, typeof i2.NgbTooltipModule]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfTooltipModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DoCheck, ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* My dfTooltipTruncate directive
|
|
6
|
+
*/
|
|
7
|
+
export declare class DfTooltipTruncateDirective implements OnInit, DoCheck {
|
|
8
|
+
private readonly tooltip;
|
|
9
|
+
private readonly elementRef;
|
|
10
|
+
private readonly renderer;
|
|
11
|
+
constructor(tooltip: NgbTooltip, elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngDoCheck(): void;
|
|
14
|
+
private hasOverflow;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfTooltipTruncateDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTooltipTruncateDirective, "[dfTooltipTruncate]", ["dfTooltipTruncate"], {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Type for the callback used to revert the scrollbar compensation. */
|
|
3
|
+
export type CompensationReverter = () => void;
|
|
4
|
+
/**
|
|
5
|
+
* Utility to handle the scrollbar.
|
|
6
|
+
*
|
|
7
|
+
* It allows to compensate the lack of a vertical scrollbar by adding an
|
|
8
|
+
* equivalent padding on the right of the body, and to remove this compensation.
|
|
9
|
+
*
|
|
10
|
+
* It is a copy of https://github.com/ng-bootstrap/ng-bootstrap/blob/master/src/util/scrollbar.ts
|
|
11
|
+
*/
|
|
12
|
+
export declare class ScrollBar {
|
|
13
|
+
private readonly _document;
|
|
14
|
+
constructor(_document: any);
|
|
15
|
+
/**
|
|
16
|
+
* To be called right before a potential vertical scrollbar would be removed:
|
|
17
|
+
*
|
|
18
|
+
* - if there was a scrollbar, adds some compensation padding to the body
|
|
19
|
+
* to keep the same layout as when the scrollbar is there
|
|
20
|
+
* - if there was none, there is nothing to do
|
|
21
|
+
*
|
|
22
|
+
* @return a callback used to revert the compensation (noop if there was none,
|
|
23
|
+
* otherwise a function removing the padding)
|
|
24
|
+
*/
|
|
25
|
+
compensate(): CompensationReverter;
|
|
26
|
+
/**
|
|
27
|
+
* Adds a padding of the given width on the right of the body.
|
|
28
|
+
*
|
|
29
|
+
* @return a callback used to revert the padding to its previous value
|
|
30
|
+
*/
|
|
31
|
+
private _adjustBody;
|
|
32
|
+
/**
|
|
33
|
+
* Tells whether a scrollbar is currently present on the body.
|
|
34
|
+
*
|
|
35
|
+
* @return true if scrollbar is present, false otherwise
|
|
36
|
+
*/
|
|
37
|
+
private _isPresent;
|
|
38
|
+
/**
|
|
39
|
+
* Calculates and returns the width of a scrollbar.
|
|
40
|
+
*
|
|
41
|
+
* @return the width of a scrollbar on this page
|
|
42
|
+
*/
|
|
43
|
+
private _getWidth;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollBar, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollBar>;
|
|
46
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./angular/alert/alert.module";
|
|
3
|
+
import * as i2 from "./angular/datepicker/datepicker.module";
|
|
4
|
+
import * as i3 from "./angular/selects/select.module";
|
|
5
|
+
import * as i4 from "./angular/progressbar/progressbar.module";
|
|
6
|
+
import * as i5 from "./angular/progressindicator/progressindicator.module";
|
|
7
|
+
import * as i6 from "./angular/inputs/input-advanced.module";
|
|
8
|
+
import * as i7 from "./angular/accessibility/accessibility.module";
|
|
9
|
+
import * as i8 from "./angular/slider/slider.module";
|
|
10
|
+
import * as i9 from "./angular/popover/popover.module";
|
|
11
|
+
import * as i10 from "./angular/icon/icon.module";
|
|
12
|
+
import * as i11 from "./angular/tooltip/tooltip.module";
|
|
13
|
+
import * as i12 from "./angular/sidenav/sidenav.module";
|
|
14
|
+
import * as i13 from "./angular/sidenav/dfSideNavCollapse.module";
|
|
15
|
+
import * as i14 from "./angular/card/card-advanced.module";
|
|
16
|
+
import * as i15 from "./angular/footer/footer.module";
|
|
17
|
+
import * as i16 from "./angular/toast/toast.module";
|
|
18
|
+
export { DfAccessibilityModule } from './angular/accessibility/accessibility.module';
|
|
19
|
+
export { SkipLinkDirective } from './angular/accessibility/directives/skip-link.directive';
|
|
20
|
+
export { SkipLinksContainerComponent } from './angular/accessibility/components/skip-links-container/skip-links-container.component';
|
|
21
|
+
export { DfToastModule } from './angular/toast/toast.module';
|
|
22
|
+
export { DfAlertModule } from './angular/alert/alert.module';
|
|
23
|
+
export { CloseInputDatePickerDirective } from './angular/datepicker/closedatepicker.directive';
|
|
24
|
+
export { DfDatePickerModule } from './angular/datepicker/datepicker.module';
|
|
25
|
+
export { DfDatepickerRangeDirective } from './angular/datepicker/datepicker-range.directive';
|
|
26
|
+
export { DfDatepickerRangeService } from './angular/datepicker/datepicker-range.service';
|
|
27
|
+
export { DfFooterModule } from './angular/footer/footer.module';
|
|
28
|
+
export { DfIconModule } from './angular/icon/icon.module';
|
|
29
|
+
export { DfInsertIconModule } from './angular/icon/insert/insert-icon.module';
|
|
30
|
+
export { DfAmadeusIconComponent } from './angular/icon/amadeus-icon';
|
|
31
|
+
export { DfInsertIconDirective } from './angular/icon/insert/insert-icon.directive';
|
|
32
|
+
export { DfTriggerClickDirective } from './angular/inputs/click/trigger-click.directive';
|
|
33
|
+
export { DfInputIconDirective, DfDirection } from './angular/inputs/icon/inputicon.directive';
|
|
34
|
+
export { DfAdvancedInputModule } from './angular/inputs/input-advanced.module';
|
|
35
|
+
export { DfModalService } from './angular/modal/modal.service';
|
|
36
|
+
export { DfPopoverModule } from './angular/popover/popover.module';
|
|
37
|
+
export { DfPopoverConfig } from './angular/popover/config/popover.config';
|
|
38
|
+
export { DfProgressbarModule } from './angular/progressbar/progressbar.module';
|
|
39
|
+
export { DfProgressbarComponent } from './angular/progressbar/progressbar.component';
|
|
40
|
+
export { DfProgressIndicatorModule } from './angular/progressindicator/progressindicator.module';
|
|
41
|
+
export { DfProgressIndicatorService, DfProgressIndicatorContent } from './angular/progressindicator/progressindicator.service';
|
|
42
|
+
export { DfProgressIndicatorDirective } from './angular/progressindicator/progressindicator.directive';
|
|
43
|
+
export { DfProgressIndicatorOptions, DfProgressIndicatorContentType, DfProgressIndicatorContentSpinner, DfProgressIndicatorContentProgressBar, DfProgressIndicatorContentPosition } from './angular/progressindicator/progressindicator-config';
|
|
44
|
+
export { DfProgressIndicatorRef } from './angular/progressindicator/progressindicator-ref';
|
|
45
|
+
export { DfProgressIndicatorContainerComponent } from './angular/progressindicator/progressindicator-container.component';
|
|
46
|
+
export { DfProgressIndicatorBackdropComponent } from './angular/progressindicator/progressindicator-backdrop.component';
|
|
47
|
+
export { DfDefaultSpinnerComponent } from './angular/progressindicator/default/default-spinner.component';
|
|
48
|
+
export { DfDirectionDetectionService, RightToLeftDirectionEnum } from './angular/right-to-left/directionDetection.service';
|
|
49
|
+
export { DfSliderModule } from './angular/slider/slider.module';
|
|
50
|
+
export { DfSliderDirectionDirective } from './angular/slider/direction/sliderdirection.directive';
|
|
51
|
+
export { DfSideNavHeaderDirective, DfSideNavItemDirective, DfSideNavIconDirective } from './angular/sidenav/sidenav.component';
|
|
52
|
+
export { DfManageSideNavDirective } from './angular/sidenav/manage-sidenav.directive';
|
|
53
|
+
export { DfExcludeTrapDirective } from './angular/sidenav/excludeTrap.directive';
|
|
54
|
+
export { ChangeContext } from './angular/slider/lib/change-context';
|
|
55
|
+
export { PointerType } from './angular/slider/lib/pointer-type';
|
|
56
|
+
export * from './angular/slider/lib/options';
|
|
57
|
+
export { SliderComponent } from './angular/slider/lib/slider.component';
|
|
58
|
+
export { DfManageNavSelectDirective } from './angular/selects/nav/manage-nav-select.directive';
|
|
59
|
+
export { DfOptionHighlightDirective } from './angular/selects/option-highlight.directive';
|
|
60
|
+
export { DfManageBadgeEventsDirective } from './angular/selects/events/manage-badge-events.directive';
|
|
61
|
+
export { DfSelectModule } from './angular/selects/select.module';
|
|
62
|
+
export { DfTooltipTruncateDirective } from './angular/tooltip/truncate/tooltipTruncate.directive';
|
|
63
|
+
export { DfTooltipModule } from './angular/tooltip/tooltip.module';
|
|
64
|
+
export { DfSideNavItem } from './angular/sidenav/sidenav.service';
|
|
65
|
+
export { DfSideNavService } from './angular/sidenav/sidenav.service';
|
|
66
|
+
export { DfIfMediaDirective } from './angular/mediaqueries/ifMedia.directive';
|
|
67
|
+
export { DfSideNavModule } from './angular/sidenav/sidenav.module';
|
|
68
|
+
export { DfSideNavComponent } from './angular/sidenav/sidenav.component';
|
|
69
|
+
export { DfNavItemType } from './angular/sidenav/sidenav.service';
|
|
70
|
+
export { DfSideNavCollapseModule } from './angular/sidenav/dfSideNavCollapse.module';
|
|
71
|
+
export { DfSideNavCollapseDirective } from './angular/sidenav/dfSideNavCollapse';
|
|
72
|
+
export { DfSideNavCollapseService } from './angular/sidenav/dfSideNavCollapse.service';
|
|
73
|
+
export { BREAKPOINTS_VARS, DF_BREAKPOINTS_VAR_DEFAULT, DfBreakpoints, DfMediaQuery, DfMediaObserver } from './angular/mediaqueries/mediaUtils.service';
|
|
74
|
+
export { DfMedia } from './angular/mediaqueries/media.service';
|
|
75
|
+
export { DfMediaModule } from './angular/mediaqueries/media.module';
|
|
76
|
+
export { DfManageCardSelectionDirective } from './angular/card/manage-card-selection.directive';
|
|
77
|
+
export { DfAdvancedCardModule } from './angular/card/card-advanced.module';
|
|
78
|
+
export declare class DfModule {
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfModule, never>;
|
|
80
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfModule, never, [typeof i1.DfAlertModule, typeof i2.DfDatePickerModule, typeof i3.DfSelectModule, typeof i4.DfProgressbarModule, typeof i5.DfProgressIndicatorModule, typeof i6.DfAdvancedInputModule, typeof i7.DfAccessibilityModule, typeof i8.DfSliderModule, typeof i9.DfPopoverModule, typeof i10.DfIconModule, typeof i11.DfTooltipModule, typeof i12.DfSideNavModule, typeof i13.DfSideNavCollapseModule, typeof i14.DfAdvancedCardModule, typeof i15.DfFooterModule, typeof i16.DfToastModule], [typeof i1.DfAlertModule, typeof i2.DfDatePickerModule, typeof i3.DfSelectModule, typeof i4.DfProgressbarModule, typeof i5.DfProgressIndicatorModule, typeof i6.DfAdvancedInputModule, typeof i7.DfAccessibilityModule, typeof i8.DfSliderModule, typeof i9.DfPopoverModule, typeof i10.DfIconModule, typeof i11.DfTooltipModule, typeof i12.DfSideNavModule, typeof i13.DfSideNavCollapseModule, typeof i14.DfAdvancedCardModule, typeof i15.DfFooterModule, typeof i16.DfToastModule]>;
|
|
81
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfModule>;
|
|
82
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@design-factory/design-factory",
|
|
3
|
+
"description": "Amadeus design system",
|
|
4
|
+
"license": "BSD-3-Clause",
|
|
5
|
+
"version": "15.2.0",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"tslib": "^2.0.0"
|
|
8
|
+
},
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"@angular/common": "^16.0.0",
|
|
11
|
+
"@angular/core": "^16.0.0",
|
|
12
|
+
"@angular/localize": "^16.0.0",
|
|
13
|
+
"@ng-bootstrap/ng-bootstrap": "~15.1.0",
|
|
14
|
+
"@ng-select/ng-select": "~11.0.0",
|
|
15
|
+
"ag-grid-angular": "~29.3.5",
|
|
16
|
+
"ag-grid-community": "~29.3.5",
|
|
17
|
+
"bootstrap": "5.2.0"
|
|
18
|
+
},
|
|
19
|
+
"schematics": "./schematics/collection.json",
|
|
20
|
+
"ng-add": {
|
|
21
|
+
"save": true
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
"./assets/*": "./assets/*",
|
|
25
|
+
"./package.json": {
|
|
26
|
+
"default": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./index.d.ts",
|
|
30
|
+
"esm2022": "./esm2022/design-factory.mjs",
|
|
31
|
+
"esm": "./esm2022/design-factory.mjs",
|
|
32
|
+
"default": "./fesm2022/design-factory.mjs"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"ng-update": {
|
|
36
|
+
"requirements": {
|
|
37
|
+
"@design-factory/design-factory": ">= 14"
|
|
38
|
+
},
|
|
39
|
+
"migrations": "./schematics/migrations/migration.json"
|
|
40
|
+
},
|
|
41
|
+
"module": "fesm2022/design-factory.mjs",
|
|
42
|
+
"typings": "index.d.ts",
|
|
43
|
+
"sideEffects": false
|
|
44
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Add design factory to the project and install dependencies.",
|
|
6
|
+
"factory": "./ng-add/index",
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
|
+
const ts = require("typescript");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
const project_tsconfig_paths_1 = require("../../utils/project_tsconfig_paths");
|
|
8
|
+
const compiler_host_1 = require("../../utils/typescript/compiler_host");
|
|
9
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
10
|
+
function removeNgxSlider() {
|
|
11
|
+
return async (tree) => {
|
|
12
|
+
const { buildPaths, testPaths } = await (0, project_tsconfig_paths_1.getProjectTsConfigPaths)(tree);
|
|
13
|
+
const basePath = process.cwd();
|
|
14
|
+
const allPaths = [...buildPaths, ...testPaths];
|
|
15
|
+
if (!allPaths.length) {
|
|
16
|
+
throw new schematics_1.SchematicsException('Could not find any tsconfig file. Cannot run the `RemoveModuleId` migration.');
|
|
17
|
+
}
|
|
18
|
+
return (0, schematics_1.chain)([renameNgxSliderModules(basePath, allPaths), renameNgxSliderImports(basePath, allPaths), removeNgxSliderDependencies()]);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
exports.default = removeNgxSlider;
|
|
22
|
+
// rename all references of NgxSliderModule to DfSliderModule
|
|
23
|
+
function renameNgxSliderModules(basePath, tsconfigPaths) {
|
|
24
|
+
return (tree) => {
|
|
25
|
+
for (const tsconfigPath of tsconfigPaths) {
|
|
26
|
+
renameNgxSliderModule(tree, tsconfigPath, basePath);
|
|
27
|
+
}
|
|
28
|
+
return tree;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function renameNgxSliderModule(tree, tsconfigPath, basePath) {
|
|
32
|
+
const program = (0, compiler_host_1.createMigrationProgram)(tree, tsconfigPath, basePath);
|
|
33
|
+
const sourceFiles = program.getSourceFiles().filter(sourceFile => (0, compiler_host_1.canMigrateFile)(basePath, sourceFile, program));
|
|
34
|
+
for (const sourceFile of sourceFiles) {
|
|
35
|
+
if (sourceFile.text.includes('NgxSliderModule')) {
|
|
36
|
+
const update = tree.beginUpdate((0, path_1.relative)(basePath, sourceFile.fileName));
|
|
37
|
+
let index = sourceFile.text.indexOf('NgxSliderModule');
|
|
38
|
+
while (index >= 0) {
|
|
39
|
+
update.remove(index, 15);
|
|
40
|
+
update.insertRight(index, 'DfSliderModule');
|
|
41
|
+
index = sourceFile.text.indexOf('NgxSliderModule', index + 15);
|
|
42
|
+
}
|
|
43
|
+
tree.commitUpdate(update);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// rename all `import { ... } from '@angular-slider/ngx-slider'` to `import { ... } from '@design-factory/design-factory'`
|
|
48
|
+
function renameNgxSliderImports(basePath, tsconfigPaths) {
|
|
49
|
+
return (tree) => {
|
|
50
|
+
for (const tsconfigPath of tsconfigPaths) {
|
|
51
|
+
renameNgxSliderImport(tree, tsconfigPath, basePath);
|
|
52
|
+
}
|
|
53
|
+
return tree;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function renameNgxSliderImport(tree, tsconfigPath, basePath) {
|
|
57
|
+
const program = (0, compiler_host_1.createMigrationProgram)(tree, tsconfigPath, basePath);
|
|
58
|
+
const sourceFiles = program.getSourceFiles().filter(sourceFile => (0, compiler_host_1.canMigrateFile)(basePath, sourceFile, program));
|
|
59
|
+
for (const sourceFile of sourceFiles) {
|
|
60
|
+
const nodesToRewrite = [];
|
|
61
|
+
for (const node of sourceFile.statements) {
|
|
62
|
+
if (ts.isImportDeclaration(node) && ts.isStringLiteral(node.moduleSpecifier) && node.moduleSpecifier.text === '@angular-slider/ngx-slider') {
|
|
63
|
+
nodesToRewrite.push(node);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (nodesToRewrite.length !== 0) {
|
|
67
|
+
const update = tree.beginUpdate((0, path_1.relative)(basePath, sourceFile.fileName));
|
|
68
|
+
for (const node of nodesToRewrite) {
|
|
69
|
+
const start = node.getFullStart();
|
|
70
|
+
update.remove(start, node.getFullWidth());
|
|
71
|
+
update.insertRight(start, node.getFullText().replace('@angular-slider/ngx-slider', '@design-factory/design-factory'));
|
|
72
|
+
}
|
|
73
|
+
tree.commitUpdate(update);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// remove ngx-slider from all project package.json, scheduling an install task to also clean the lock files
|
|
78
|
+
function removeNgxSliderDependencies() {
|
|
79
|
+
return async (tree, context) => {
|
|
80
|
+
removeNgxSliderDependencyFromPackage('/package.json', tree);
|
|
81
|
+
const workspace = await (0, workspace_1.getWorkspace)(tree);
|
|
82
|
+
for (const [_projectKey, projectDefinition] of workspace.projects) {
|
|
83
|
+
if (projectDefinition.root && tree.exists(`${projectDefinition.root}/package.json`)) {
|
|
84
|
+
removeNgxSliderDependencyFromPackage(`${projectDefinition.root}/package.json`, tree);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function removeNgxSliderDependencyFromPackage(pathToPkg, tree) {
|
|
91
|
+
const buffer = tree.read(pathToPkg);
|
|
92
|
+
if (buffer === null) {
|
|
93
|
+
throw new schematics_1.SchematicsException('Could not read package.json');
|
|
94
|
+
}
|
|
95
|
+
const content = buffer.toString();
|
|
96
|
+
const pkg = JSON.parse(content);
|
|
97
|
+
if (pkg === null || typeof pkg !== 'object' || Array.isArray(pkg)) {
|
|
98
|
+
throw new schematics_1.SchematicsException('Error reading package.json');
|
|
99
|
+
}
|
|
100
|
+
const dependencyCategories = ['dependencies', 'devDependencies', 'peerDependencies'];
|
|
101
|
+
dependencyCategories.forEach((category) => {
|
|
102
|
+
if (pkg[category] && pkg[category]['@angular-slider/ngx-slider']) {
|
|
103
|
+
if (Object.keys(pkg[category]).length === 1) {
|
|
104
|
+
delete pkg[category];
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
delete pkg[category]['@angular-slider/ngx-slider'];
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
tree.overwrite(pathToPkg, JSON.stringify(pkg, null, 2));
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../projects/design-factory/schematics/migrations/15_0_0/remove-ngx-slider/index.ts"],"names":[],"mappings":";;AAAA,2DAMsC;AACpC,4DAA0E;AAC5E,iCAAiC;AACjC,+BAA8B;AAC9B,+EAA2E;AAC3E,wEAA4F;AAC5F,qEAAqE;AAErE,SAAwB,eAAe;IACrC,OAAO,KAAK,EAAE,IAAU,EAAE,EAA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 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Template string function that can be used to dedent the resulting
|
|
10
|
+
* string literal. The smallest common indentation will be omitted.
|
|
11
|
+
* Additionally, whitespace in empty lines is removed.
|
|
12
|
+
*/
|
|
13
|
+
export declare function dedent(strings: TemplateStringsArray, ...values: any[]): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.dedent = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* Template string function that can be used to dedent the resulting
|
|
13
|
+
* string literal. The smallest common indentation will be omitted.
|
|
14
|
+
* Additionally, whitespace in empty lines is removed.
|
|
15
|
+
*/
|
|
16
|
+
function dedent(strings, ...values) {
|
|
17
|
+
let joinedString = '';
|
|
18
|
+
for (let i = 0; i < values.length; i++) {
|
|
19
|
+
joinedString += `${strings[i]}${values[i]}`;
|
|
20
|
+
}
|
|
21
|
+
joinedString += strings[strings.length - 1];
|
|
22
|
+
const matches = joinedString.match(/^[ \t]*(?=\S)/gm);
|
|
23
|
+
if (matches === null) {
|
|
24
|
+
return joinedString;
|
|
25
|
+
}
|
|
26
|
+
const minLineIndent = Math.min(...matches.map(el => el.length));
|
|
27
|
+
const omitMinIndentRegex = new RegExp(`^[ \\t]{${minLineIndent}}`, 'gm');
|
|
28
|
+
const omitEmptyLineWhitespaceRegex = /^[ \t]+$/gm;
|
|
29
|
+
const result = minLineIndent > 0 ? joinedString.replace(omitMinIndentRegex, '') : joinedString;
|
|
30
|
+
return result.replace(omitEmptyLineWhitespaceRegex, '');
|
|
31
|
+
}
|
|
32
|
+
exports.dedent = dedent;
|
|
33
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../projects/design-factory/schematics/migrations/helpers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH;;;;GAIG;AACH,SAAgB,MAAM,CAAC,OAA6B,EAAE,GAAG,MAAa;IAClE,IAAI,YAAY,GAAG,EAAE,CAAC;IACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,YAAY,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7C;IACD,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtD,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,OAAO,YAAY,CAAC;KACrB;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAC,WAAW,aAAa,GAAG,EAAE,IAAI,CAAC,CAAC;IACzE,MAAM,4BAA4B,GAAG,YAAY,CAAC;IAClD,MAAM,MAAM,GAAG,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IAC/F,OAAO,MAAM,CAAC,OAAO,CAAC,4BAA4B,EAAE,EAAE,CAAC,CAAC;AAC1D,CAAC;AAjBH,wBAiBG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"remove-ngx-slider": {
|
|
5
|
+
"description": "As of Design Factory version 15, ngx-slider is included as part of the library.",
|
|
6
|
+
"version": "15.0.0",
|
|
7
|
+
"factory": "./15_0_0/remove-ngx-slider"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
9
|
+
/**
|
|
10
|
+
* Gets all tsconfig paths from a CLI project by reading the workspace configuration
|
|
11
|
+
* and looking for common tsconfig locations.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getProjectTsConfigPaths(tree: Tree): Promise<{
|
|
14
|
+
buildPaths: string[];
|
|
15
|
+
testPaths: string[];
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getProjectTsConfigPaths = void 0;
|
|
11
|
+
const core_1 = require("@angular-devkit/core");
|
|
12
|
+
/**
|
|
13
|
+
* Gets all tsconfig paths from a CLI project by reading the workspace configuration
|
|
14
|
+
* and looking for common tsconfig locations.
|
|
15
|
+
*/
|
|
16
|
+
async function getProjectTsConfigPaths(tree) {
|
|
17
|
+
// Start with some tsconfig paths that are generally used within CLI projects. Note
|
|
18
|
+
// that we are not interested in IDE-specific tsconfig files (e.g. /tsconfig.json)
|
|
19
|
+
const buildPaths = new Set();
|
|
20
|
+
const testPaths = new Set();
|
|
21
|
+
const workspace = await getWorkspace(tree);
|
|
22
|
+
for (const [, project] of workspace.projects) {
|
|
23
|
+
for (const [name, target] of project.targets) {
|
|
24
|
+
if (name !== 'build' && name !== 'test') {
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
for (const [, options] of allTargetOptions(target)) {
|
|
28
|
+
const tsConfig = options['tsConfig'];
|
|
29
|
+
// Filter out tsconfig files that don't exist in the CLI project.
|
|
30
|
+
if (typeof tsConfig !== 'string' || !tree.exists(tsConfig)) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
if (name === 'build') {
|
|
34
|
+
buildPaths.add((0, core_1.normalize)(tsConfig));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
testPaths.add((0, core_1.normalize)(tsConfig));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
buildPaths: [...buildPaths],
|
|
44
|
+
testPaths: [...testPaths]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.getProjectTsConfigPaths = getProjectTsConfigPaths;
|
|
48
|
+
/** Get options for all configurations for the passed builder target. */
|
|
49
|
+
function* allTargetOptions(target) {
|
|
50
|
+
if (target.options) {
|
|
51
|
+
yield [undefined, target.options];
|
|
52
|
+
}
|
|
53
|
+
if (!target.configurations) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
for (const [name, options] of Object.entries(target.configurations)) {
|
|
57
|
+
if (options) {
|
|
58
|
+
yield [name, options];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function createHost(tree) {
|
|
63
|
+
return {
|
|
64
|
+
async readFile(path) {
|
|
65
|
+
const data = tree.read(path);
|
|
66
|
+
if (!data) {
|
|
67
|
+
throw new Error('File not found.');
|
|
68
|
+
}
|
|
69
|
+
return core_1.virtualFs.fileBufferToString(data);
|
|
70
|
+
},
|
|
71
|
+
async writeFile(path, data) {
|
|
72
|
+
return tree.overwrite(path, data);
|
|
73
|
+
},
|
|
74
|
+
async isDirectory(path) {
|
|
75
|
+
// Approximate a directory check.
|
|
76
|
+
// We don't need to consider empty directories and hence this is a good enough approach.
|
|
77
|
+
// This is also per documentation, see:
|
|
78
|
+
// https://angular.io/guide/schematics-for-libraries#get-the-project-configuration
|
|
79
|
+
return !tree.exists(path) && tree.getDir(path).subfiles.length > 0;
|
|
80
|
+
},
|
|
81
|
+
async isFile(path) {
|
|
82
|
+
return tree.exists(path);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
async function getWorkspace(tree) {
|
|
87
|
+
const host = createHost(tree);
|
|
88
|
+
const { workspace } = await core_1.workspaces.readWorkspace('/', host);
|
|
89
|
+
return workspace;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=project_tsconfig_paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project_tsconfig_paths.js","sourceRoot":"","sources":["../../../../../projects/design-factory/schematics/migrations/utils/project_tsconfig_paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,+CAA4E;AAG5E;;;GAGG;AACI,KAAK,UAAU,uBAAuB,CAAC,IAAU;IAEtD,mFAAmF;IACnF,kFAAkF;IAClF,MAAM,UAAU,GAAG,IAAI,GAAG,EAAU,CAAC;IACrC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IAEpC,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3C,KAAK,MAA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AC,CAAC;SACvB;KACF;AACH,CAAC;AAED,SAAS,UAAU,CAAC,IAAU;IAC5B,OAAO;QACL,KAAK,CAAC,QAAQ,CAAC,IAAY;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7B,IAAI,CAAC,IAAI,EAAE;gBACT,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;aACpC;YAED,OAAO,gBAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,CAAC,SAAS,CAAC,IAAY,EAAE,IAAY;YACxC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,WAAW,CAAC,IAAY;YAC5B,iCAAiC;YACjC,wFAAwF;YACxF,uCAAuC;YACvC,kFAAkF;YAClF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QACrE,CAAC;QACD,KAAK,CAAC,MAAM,CAAC,IAAY;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;KACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,IAAU;IACpC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,iBAAU,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAE9D,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
9
|
+
import * as ts from 'typescript';
|
|
10
|
+
type FakeReadFileFn = (fileName: string) => string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a TypeScript program instance for a TypeScript project within
|
|
13
|
+
* the virtual file system tree.
|
|
14
|
+
* @param tree Virtual file system tree that contains the source files.
|
|
15
|
+
* @param tsconfigPath Virtual file system path that resolves to the TypeScript project.
|
|
16
|
+
* @param basePath Base path for the virtual file system tree.
|
|
17
|
+
* @param fakeFileRead Optional file reader function. Can be used to overwrite files in
|
|
18
|
+
* the TypeScript program, or to add in-memory files (e.g. to add global types).
|
|
19
|
+
* @param additionalFiles Additional file paths that should be added to the program.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createMigrationProgram(tree: Tree, tsconfigPath: string, basePath: string, fakeFileRead?: FakeReadFileFn, additionalFiles?: string[]): ts.Program;
|
|
22
|
+
/**
|
|
23
|
+
* Creates the options necessary to instantiate a TypeScript program.
|
|
24
|
+
* @param tree Virtual file system tree that contains the source files.
|
|
25
|
+
* @param tsconfigPath Virtual file system path that resolves to the TypeScript project.
|
|
26
|
+
* @param basePath Base path for the virtual file system tree.
|
|
27
|
+
* @param fakeFileRead Optional file reader function. Can be used to overwrite files in
|
|
28
|
+
* the TypeScript program, or to add in-memory files (e.g. to add global types).
|
|
29
|
+
* @param additionalFiles Additional file paths that should be added to the program.
|
|
30
|
+
* @param optionOverrides Overrides of the parsed compiler options.
|
|
31
|
+
*/
|
|
32
|
+
export declare function createProgramOptions(tree: Tree, tsconfigPath: string, basePath: string, fakeFileRead?: FakeReadFileFn, additionalFiles?: string[], optionOverrides?: ts.CompilerOptions): {
|
|
33
|
+
rootNames: string[];
|
|
34
|
+
options: ts.CompilerOptions;
|
|
35
|
+
host: ts.CompilerHost;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Checks whether a file can be migrate by our automated migrations.
|
|
39
|
+
* @param basePath Absolute path to the project.
|
|
40
|
+
* @param sourceFile File being checked.
|
|
41
|
+
* @param program Program that includes the source file.
|
|
42
|
+
*/
|
|
43
|
+
export declare function canMigrateFile(basePath: string, sourceFile: ts.SourceFile, program: ts.Program): boolean;
|
|
44
|
+
export {};
|