@design-factory/design-factory 15.2.3 → 16.0.1
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 +17 -1
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.ttf +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.woff +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.woff2 +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.ttf +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.woff +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.woff2 +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.ttf +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.woff +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.woff2 +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.ttf +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.woff +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.woff2 +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.woff2 +0 -0
- package/design-factory-initial-branding.css +1 -0
- package/design-factory-initial-branding.scss +1 -0
- package/design-factory.css +1 -3
- package/design-factory.scss +1 -0
- package/esm2022/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.mjs +3 -3
- package/esm2022/lib/angular/df.module.mjs +102 -0
- package/esm2022/lib/angular/icon/amadeus-icon.mjs +2 -2
- package/esm2022/lib/angular/sidenav/sidenavlist.component.mjs +3 -12
- package/esm2022/lib/angular/stepper/stepper.component.mjs +65 -0
- package/esm2022/lib/angular/stepper/stepper.directive.mjs +174 -0
- package/esm2022/lib/angular/stepper/stepper.module.mjs +17 -0
- package/esm2022/lib/angular/stepper/stepper.service.mjs +213 -0
- package/esm2022/lib/angular/tooltip/truncate/tooltipTruncate.directive.mjs +5 -3
- package/esm2022/lib/index.mjs +9 -96
- package/fesm2022/design-factory.mjs +1838 -1427
- package/fesm2022/design-factory.mjs.map +1 -1
- package/lib/angular/df.module.d.ts +26 -0
- package/lib/angular/stepper/stepper.component.d.ts +31 -0
- package/lib/angular/stepper/stepper.directive.d.ts +37 -0
- package/lib/angular/stepper/stepper.module.d.ts +8 -0
- package/lib/angular/stepper/stepper.service.d.ts +126 -0
- package/lib/angular/tooltip/truncate/tooltipTruncate.directive.d.ts +1 -0
- package/lib/index.d.ts +7 -23
- package/package.json +23 -4
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js +0 -1
- package/schematics/migrations/16_0_0/navbar-logo-dark/index.d.ts +9 -0
- package/schematics/migrations/16_0_0/navbar-logo-dark/index.js +43 -0
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.d.ts +7 -0
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.js +115 -0
- package/schematics/migrations/16_0_0/scss-var/files/removed.json +55 -0
- package/schematics/migrations/16_0_0/scss-var/files/renames.json +76 -0
- package/schematics/migrations/16_0_0/scss-var/index.d.ts +7 -0
- package/schematics/migrations/16_0_0/scss-var/index.js +57 -0
- package/schematics/migrations/16_0_0/stepper-classes/index.d.ts +13 -0
- package/schematics/migrations/16_0_0/stepper-classes/index.js +63 -0
- package/schematics/migrations/helpers.js +0 -1
- package/schematics/migrations/migration.json +23 -1
- package/schematics/migrations/utils/component-resource-collector.d.ts +44 -0
- package/schematics/migrations/utils/component-resource-collector.js +166 -0
- package/schematics/migrations/utils/project_tsconfig_paths.js +0 -1
- package/schematics/migrations/utils/style-updater.d.ts +9 -0
- package/schematics/migrations/utils/style-updater.js +38 -0
- package/schematics/migrations/utils/template-updater.d.ts +9 -0
- package/schematics/migrations/utils/template-updater.js +38 -0
- package/schematics/migrations/utils/typescript/compiler_host.js +0 -1
- package/schematics/migrations/utils/typescript/decorators.d.ts +22 -0
- package/schematics/migrations/utils/typescript/decorators.js +41 -0
- package/schematics/migrations/utils/typescript/functions.d.ts +14 -0
- package/schematics/migrations/utils/typescript/functions.js +20 -0
- package/schematics/migrations/utils/typescript/imports.d.ts +17 -0
- package/schematics/migrations/utils/typescript/imports.js +110 -0
- package/schematics/migrations/utils/typescript/line-mappings.d.ts +21 -0
- package/schematics/migrations/utils/typescript/line-mappings.js +75 -0
- package/schematics/migrations/utils/typescript/parse_tsconfig.js +0 -1
- package/schematics/migrations/utils/typescript/property-name.d.ts +18 -0
- package/schematics/migrations/utils/typescript/property-name.js +27 -0
- package/schematics/ng-add/index.js +0 -1
- package/schematics/ng-add/schema.js +0 -1
- package/styles/scss/_common.root.scss +37 -0
- package/styles/scss/_common.scss +3 -9
- package/styles/scss/_common.variables.scss +16 -6
- package/styles/scss/_variables.scss +0 -1
- package/styles/scss/bootstrap/_maps.scss +10 -9
- package/styles/scss/bootstrap/_mixins-override.scss +26 -0
- package/styles/scss/bootstrap/_variables.scss +927 -267
- package/styles/scss/components/accordion/_accordion.scss +31 -14
- package/styles/scss/components/accordion/_accordion.variables.scss +5 -5
- package/styles/scss/components/alert/_alert.scss +130 -228
- package/styles/scss/components/alert/_alert.variables.scss +22 -33
- package/styles/scss/components/badge/_badge.scss +130 -118
- package/styles/scss/components/badge/_badge.variables.scss +14 -8
- package/styles/scss/components/brand-color/_brand-color.mixins.scss +19 -4
- package/styles/scss/components/brand-color/_brand-color.scss +4 -6
- package/styles/scss/components/brand-color/_brand-color.variables.scss +1 -7
- package/styles/scss/components/brand-color/_brand-color_container.scss +28 -0
- package/styles/scss/components/breadcrumbs/_breadcrumbs.scss +77 -65
- package/styles/scss/components/breadcrumbs/_breadcrumbs.variables.scss +6 -4
- package/styles/scss/components/button/_button.scss +120 -55
- package/styles/scss/components/button/_button.variables.scss +18 -4
- package/styles/scss/components/button/_button_container.scss +9 -45
- package/styles/scss/components/card/_card.scss +90 -58
- package/styles/scss/components/card/_card.variables.scss +13 -13
- package/styles/scss/components/carousel/_carousel.scss +22 -23
- package/styles/scss/components/carousel/_carousel.variables.scss +2 -1
- package/styles/scss/components/checkbox/_checkbox.scss +14 -8
- package/styles/scss/components/checkbox/_checkbox.variables.scss +2 -2
- package/styles/scss/components/collapse/_collapse.scss +15 -7
- package/styles/scss/components/collapse/_collapse.variables.scss +3 -3
- package/styles/scss/components/datepicker/_datepicker.scss +178 -122
- package/styles/scss/components/datepicker/_datepicker.variables.scss +22 -15
- package/styles/scss/components/dropdown/_dropdown.mixins.scss +4 -4
- package/styles/scss/components/dropdown/_dropdown.scss +39 -19
- package/styles/scss/components/dropdown/_dropdown.variables.scss +4 -4
- package/styles/scss/components/fieldset/_fieldset.scss +4 -2
- package/styles/scss/components/fonts/_fonts-family.scss +112 -29
- package/styles/scss/components/fonts/_fonts.root.scss +27 -0
- package/styles/scss/components/fonts/_fonts.scss +25 -26
- package/styles/scss/components/fonts/_fonts.variables.scss +2 -2
- package/styles/scss/components/footer/_footer.scss +48 -18
- package/styles/scss/components/footer/_footer.variables.scss +4 -2
- package/styles/scss/components/form/_form.scss +69 -16
- package/styles/scss/components/form/_form.variables.scss +23 -3
- package/styles/scss/components/icon/_amadeus-icon.scss +2 -2
- package/styles/scss/components/icon/_amadeus-icon.variables.scss +1 -0
- package/styles/scss/components/inputs/_inputs.mixin.scss +8 -4
- package/styles/scss/components/inputs/_inputs.root.scss +8 -0
- package/styles/scss/components/inputs/_inputs.scss +159 -118
- package/styles/scss/components/inputs/_inputs.variables.scss +2 -1
- package/styles/scss/components/link/_link.mixins.scss +49 -49
- package/styles/scss/components/link/_link.scss +84 -22
- package/styles/scss/components/link/_link.variables.scss +6 -6
- package/styles/scss/components/list/_list.scss +10 -5
- package/styles/scss/components/list-group/_list-group.scss +54 -48
- package/styles/scss/components/list-group/_list-group.variables.scss +6 -14
- package/styles/scss/components/media/_media.scss +17 -9
- package/styles/scss/components/media/_media.variables.scss +2 -1
- package/styles/scss/components/modal/_modal.scss +88 -39
- package/styles/scss/components/modal/_modal.variables.scss +4 -5
- package/styles/scss/components/navbar/_navbar.scss +298 -115
- package/styles/scss/components/navbar/_navbar.variables.scss +29 -18
- package/styles/scss/components/pagination/_pagination.scss +68 -82
- package/styles/scss/components/pagination/_pagination.variables.scss +5 -8
- package/styles/scss/components/pagination/_pagination_container.scss +3 -0
- package/styles/scss/components/popover/_popover.mixin.scss +20 -33
- package/styles/scss/components/popover/_popover.scss +25 -7
- package/styles/scss/components/popover/_popover_container.scss +123 -74
- package/styles/scss/components/progressbar/_progressbar.scss +15 -7
- package/styles/scss/components/progressbar/_progressbar.variables.scss +3 -2
- package/styles/scss/components/radio/_radio.scss +19 -14
- package/styles/scss/components/rating/_rating.scss +41 -22
- package/styles/scss/components/rating/_rating.variables.scss +5 -5
- package/styles/scss/components/scrollspy/_scrollspy.scss +30 -13
- package/styles/scss/components/scrollspy/_scrollspy.variables.scss +2 -1
- package/styles/scss/components/select/_select.scss +232 -166
- package/styles/scss/components/select/_select.variables.scss +15 -15
- package/styles/scss/components/separator/_separator.scss +2 -1
- package/styles/scss/components/sidenav/_sidenav.scss +208 -135
- package/styles/scss/components/sidenav/_sidenav.variables.scss +19 -20
- package/styles/scss/components/skip-links/_skip-links.scss +31 -16
- package/styles/scss/components/skip-links/_skip-links.variables.scss +6 -6
- package/styles/scss/components/slider/_slider.scss +11 -10
- package/styles/scss/components/slider/_slider.variables.scss +8 -8
- package/styles/scss/components/speechbubble/_speechbubble.scss +50 -30
- package/styles/scss/components/speechbubble/_speechbubble.variables.scss +4 -2
- package/styles/scss/components/spinner/_spinner.scss +34 -29
- package/styles/scss/components/stepper/_stepper.mixins.scss +111 -151
- package/styles/scss/components/stepper/_stepper.scss +163 -69
- package/styles/scss/components/stepper/_stepper.variables.scss +23 -17
- package/styles/scss/components/table/_advancedtables.scss +50 -31
- package/styles/scss/components/table/_table.variables.scss +3 -2
- package/styles/scss/components/tabs/_tabs.scss +98 -49
- package/styles/scss/components/tabs/_tabs.variables.scss +11 -10
- package/styles/scss/components/toast/_toast.scss +136 -68
- package/styles/scss/components/toast/_toast.variables.scss +4 -4
- package/styles/scss/components/toggle/_toggle.scss +90 -44
- package/styles/scss/components/toggle/_toggle.variables.scss +7 -5
- package/styles/scss/components/typeahead/_typeahead.scss +18 -8
- package/styles/scss/components/typeahead/_typeahead.variables.scss +1 -1
- package/styles/scss/df-styles-namespace.scss +8 -11
- package/styles/scss/df-styles.scss +6 -3
- package/styles/scss/themes/brand2023/_variables.scss +588 -0
- package/styles/scss/utilities/_common.utilities.scss +112 -32
- package/assets/fonts/amadeus-light/amadeus-light.svg +0 -8658
- 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/icon-amadeus.svg +0 -1
- package/esm2022/lib/angular/utils/html-element-helper.mjs +0 -8
- package/esm2022/lib/angular/utils/titleTruncate.directive.mjs +0 -39
- package/lib/angular/utils/html-element-helper.d.ts +0 -5
- package/lib/angular/utils/titleTruncate.directive.d.ts +0 -16
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js.map +0 -1
- package/schematics/migrations/helpers.js.map +0 -1
- package/schematics/migrations/utils/project_tsconfig_paths.js.map +0 -1
- package/schematics/migrations/utils/typescript/compiler_host.js.map +0 -1
- package/schematics/migrations/utils/typescript/parse_tsconfig.js.map +0 -1
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js.map +0 -1
- package/styles/scss/components/tooltip/_tooltip.scss +0 -3
- package/styles/scss/components/tooltip/_tooltip.variables.scss +0 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./alert/alert.module";
|
|
3
|
+
import * as i2 from "./datepicker/datepicker.module";
|
|
4
|
+
import * as i3 from "./selects/select.module";
|
|
5
|
+
import * as i4 from "./progressbar/progressbar.module";
|
|
6
|
+
import * as i5 from "./progressindicator/progressindicator.module";
|
|
7
|
+
import * as i6 from "./inputs/input-advanced.module";
|
|
8
|
+
import * as i7 from "./accessibility/accessibility.module";
|
|
9
|
+
import * as i8 from "./slider/slider.module";
|
|
10
|
+
import * as i9 from "./popover/popover.module";
|
|
11
|
+
import * as i10 from "./icon/icon.module";
|
|
12
|
+
import * as i11 from "./tooltip/tooltip.module";
|
|
13
|
+
import * as i12 from "./sidenav/sidenav.module";
|
|
14
|
+
import * as i13 from "./sidenav/dfSideNavCollapse.module";
|
|
15
|
+
import * as i14 from "./card/card-advanced.module";
|
|
16
|
+
import * as i15 from "./footer/footer.module";
|
|
17
|
+
import * as i16 from "./toast/toast.module";
|
|
18
|
+
import * as i17 from "./stepper/stepper.module";
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Import only the needed modules or use standalone components instead of DfModule
|
|
21
|
+
*/
|
|
22
|
+
export declare class DfModule {
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfModule, never>;
|
|
24
|
+
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 i17.DfStepperModule], [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 i17.DfStepperModule]>;
|
|
25
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfModule>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TemplateRef, QueryList, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { DfStepperNormalizedState, DfStepperService } from './stepper.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./stepper.directive";
|
|
5
|
+
export declare class DfStepperStepContentDirective {
|
|
6
|
+
templateRef: TemplateRef<any>;
|
|
7
|
+
/**
|
|
8
|
+
* The step index
|
|
9
|
+
* -1 means that the input index is not set
|
|
10
|
+
*/
|
|
11
|
+
dfStepperStepContent: number;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperStepContentDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfStepperStepContentDirective, "ng-template[dfStepperStepContent]", never, { "dfStepperStepContent": { "alias": "dfStepperStepContent"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
static ngAcceptInputType_dfStepperStepContent: unknown;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Stepper component is a component to provide a step by step navigation
|
|
18
|
+
* You have two ways to navigate through the steps:
|
|
19
|
+
* - Using the linear navigation, where you can only go to the next step
|
|
20
|
+
* - Using the non-linear navigation, where you can go to any step
|
|
21
|
+
*/
|
|
22
|
+
export declare class DfStepperComponent implements AfterContentInit {
|
|
23
|
+
stepperService: DfStepperService;
|
|
24
|
+
mapStepToContent: Map<number, TemplateRef<any>>;
|
|
25
|
+
tplStepsContent: QueryList<DfStepperStepContentDirective>;
|
|
26
|
+
state: DfStepperNormalizedState | undefined;
|
|
27
|
+
constructor();
|
|
28
|
+
ngAfterContentInit(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfStepperComponent, "[dfStepper]", never, {}, {}, ["tplStepsContent"], never, true, [{ directive: typeof i1.DfStepperDirective; inputs: {}; outputs: {}; }]>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AfterViewChecked, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DfStepperService } from './stepper.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const DF_STEP_CLASS = "df-stepper-step";
|
|
5
|
+
export declare class DfStepperStepDirective implements OnInit, OnDestroy {
|
|
6
|
+
private readonly unlistener;
|
|
7
|
+
private readonly renderer2;
|
|
8
|
+
private readonly element;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
handleFocusTabIndex(): void;
|
|
11
|
+
handleBlurTabIndex(event: FocusEvent): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperStepDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfStepperStepDirective, "[dfStepperStep]", ["dfStepperStep"], {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
export declare class DfStepperDirective implements OnInit, AfterViewChecked {
|
|
17
|
+
private direction;
|
|
18
|
+
stepperService: DfStepperService;
|
|
19
|
+
private readonly element;
|
|
20
|
+
private readonly rtlDirectionService;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
handleEnterDown(): void;
|
|
23
|
+
handleSpaceDown(): void;
|
|
24
|
+
private handleGoPrevious;
|
|
25
|
+
private handleGoNext;
|
|
26
|
+
handleKeyDownRight(event: KeyboardEvent): void;
|
|
27
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
28
|
+
handleKeyDownUp(event: KeyboardEvent): void;
|
|
29
|
+
handleKeyDownDown(event: KeyboardEvent): void;
|
|
30
|
+
getSteps(): HTMLButtonElement[];
|
|
31
|
+
private handleSelect;
|
|
32
|
+
private arrowRightInnerHandler;
|
|
33
|
+
private arrowLeftInnerHandler;
|
|
34
|
+
ngAfterViewChecked(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperDirective, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfStepperDirective, "[dfStepperLogic]", ["dfStepperLogic"], {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stepper.directive";
|
|
3
|
+
import * as i2 from "./stepper.component";
|
|
4
|
+
export declare class DfStepperModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfStepperModule, never, [typeof i1.DfStepperDirective, typeof i1.DfStepperStepDirective, typeof i2.DfStepperComponent, typeof i2.DfStepperStepContentDirective], [typeof i1.DfStepperDirective, typeof i1.DfStepperStepDirective, typeof i2.DfStepperComponent, typeof i2.DfStepperStepContentDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfStepperModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface DfStepperStep {
|
|
4
|
+
warning: boolean;
|
|
5
|
+
completed: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
ariaControl: string;
|
|
8
|
+
warningLabel?: string;
|
|
9
|
+
optionalLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
export type DfStepType = 'warning' | 'current' | 'completed' | 'future';
|
|
12
|
+
export interface DfStepperNormalizedStep extends DfStepperStep {
|
|
13
|
+
type: DfStepType;
|
|
14
|
+
}
|
|
15
|
+
export interface DfStepperState {
|
|
16
|
+
steps: DfStepperStep[];
|
|
17
|
+
active: number;
|
|
18
|
+
isLinear: boolean;
|
|
19
|
+
isInline: boolean;
|
|
20
|
+
isVertical: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface DfStepperNormalizedState {
|
|
23
|
+
steps: DfStepperNormalizedStep[];
|
|
24
|
+
active: number;
|
|
25
|
+
isLinear: boolean;
|
|
26
|
+
isInline: boolean;
|
|
27
|
+
isVertical: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare class DfStepperService {
|
|
30
|
+
setFocus: boolean;
|
|
31
|
+
private readonly _stepperState$;
|
|
32
|
+
private _state;
|
|
33
|
+
private _completedLabel;
|
|
34
|
+
private _warningLabel;
|
|
35
|
+
private _stepperAriaLabel;
|
|
36
|
+
get stepperState$(): Observable<DfStepperNormalizedState>;
|
|
37
|
+
get state(): DfStepperNormalizedState;
|
|
38
|
+
private dispatchStepperState;
|
|
39
|
+
private updateStepperState;
|
|
40
|
+
/**
|
|
41
|
+
* Use this to init the list of Elements from your stepper
|
|
42
|
+
*
|
|
43
|
+
* Here we are not deep copying the array --> the function will change it
|
|
44
|
+
*/
|
|
45
|
+
initStepperState(state: DfStepperState): void;
|
|
46
|
+
/**
|
|
47
|
+
* Use this to normalize the state of the stepper (completed, warning, current, future)
|
|
48
|
+
* @param state
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
normalizeState(state: DfStepperState): DfStepperNormalizedState;
|
|
52
|
+
/**
|
|
53
|
+
* Internal to get the stepper aria label in the template
|
|
54
|
+
*/
|
|
55
|
+
get stepperAriaLabel(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Use this to set the stepper aria label (i18n)
|
|
58
|
+
*/
|
|
59
|
+
set stepperAriaLabel(label: string);
|
|
60
|
+
/**
|
|
61
|
+
* Internal to get the completed label in the template
|
|
62
|
+
*/
|
|
63
|
+
get completedLabel(): string;
|
|
64
|
+
/**
|
|
65
|
+
* Internal to get the waring label in the template
|
|
66
|
+
*/
|
|
67
|
+
get warningLabel(): string;
|
|
68
|
+
/**
|
|
69
|
+
* Use this to set the completed label (i18n)
|
|
70
|
+
*/
|
|
71
|
+
set completedLabel(label: string);
|
|
72
|
+
/**
|
|
73
|
+
* Use this to set the warning label (i18n)
|
|
74
|
+
*/
|
|
75
|
+
set warningLabel(label: string);
|
|
76
|
+
/**
|
|
77
|
+
* TODO make it customizable
|
|
78
|
+
* @param index - index of the step
|
|
79
|
+
* @returns - string of the step number to display
|
|
80
|
+
*/
|
|
81
|
+
getStepNumberLabel(index: number): string;
|
|
82
|
+
resetFocus(): void;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @param isLinear - true if the stepper is linear
|
|
86
|
+
*/
|
|
87
|
+
setLinear(isLinear: boolean): void;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param isInline - true if the stepper is inline
|
|
91
|
+
*/
|
|
92
|
+
setInline(isInline: boolean): void;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param index - index of the step to select start at 0
|
|
96
|
+
*/
|
|
97
|
+
selectStep(index: number): void;
|
|
98
|
+
/**
|
|
99
|
+
* Same as selectStep but with focus on the step selected
|
|
100
|
+
* @param index - index of the step to select start at 0
|
|
101
|
+
*/
|
|
102
|
+
selectWithFocus(index: number): void;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @param index - index of the step to complete start at 0
|
|
106
|
+
*/
|
|
107
|
+
completeStep(index: number): void;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @param index - index of the step to complete start at 0
|
|
111
|
+
*/
|
|
112
|
+
completeStepAndGoNext(index: number): void;
|
|
113
|
+
/**
|
|
114
|
+
* Attention if the step was completed it will be uncompleted after.
|
|
115
|
+
* @param index - index of the step to make Warning start at 0
|
|
116
|
+
* @param warningLabel - label to display in the warning by default it will take the warningLabel if it exists or the label
|
|
117
|
+
*/
|
|
118
|
+
makeWarning(index: number, warningLabel?: string): void;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @param index - index of the step to remove Warning start at 0
|
|
122
|
+
*/
|
|
123
|
+
removeWarning(index: number): void;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperService, never>;
|
|
125
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfStepperService>;
|
|
126
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class DfTooltipTruncateDirective implements OnInit, DoCheck {
|
|
|
11
11
|
constructor(tooltip: NgbTooltip, elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
ngDoCheck(): void;
|
|
14
|
+
private hasOverflow;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DfTooltipTruncateDirective, never>;
|
|
15
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTooltipTruncateDirective, "[dfTooltipTruncate]", ["dfTooltipTruncate"], {}, {}, never, never, true, never>;
|
|
16
17
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
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
1
|
export { DfAccessibilityModule } from './angular/accessibility/accessibility.module';
|
|
19
2
|
export { SkipLinkDirective } from './angular/accessibility/directives/skip-link.directive';
|
|
20
3
|
export { SkipLinksContainerComponent } from './angular/accessibility/components/skip-links-container/skip-links-container.component';
|
|
@@ -59,6 +42,12 @@ export { DfManageNavSelectDirective } from './angular/selects/nav/manage-nav-sel
|
|
|
59
42
|
export { DfOptionHighlightDirective } from './angular/selects/option-highlight.directive';
|
|
60
43
|
export { DfManageBadgeEventsDirective } from './angular/selects/events/manage-badge-events.directive';
|
|
61
44
|
export { DfSelectModule } from './angular/selects/select.module';
|
|
45
|
+
export { DfStepperDirective } from './angular/stepper/stepper.directive';
|
|
46
|
+
export { DfStepperStepContentDirective, DfStepperComponent } from './angular/stepper/stepper.component';
|
|
47
|
+
export { DfStepperStepDirective } from './angular/stepper/stepper.directive';
|
|
48
|
+
export type { DfStepperStep, DfStepperState, DfStepperNormalizedState, DfStepperNormalizedStep } from './angular/stepper/stepper.service';
|
|
49
|
+
export { DfStepperModule } from './angular/stepper/stepper.module';
|
|
50
|
+
export { DfStepperService, DfStepType } from './angular/stepper/stepper.service';
|
|
62
51
|
export { DfTooltipTruncateDirective } from './angular/tooltip/truncate/tooltipTruncate.directive';
|
|
63
52
|
export { DfTooltipModule } from './angular/tooltip/tooltip.module';
|
|
64
53
|
export { DfSideNavItem } from './angular/sidenav/sidenav.service';
|
|
@@ -75,9 +64,4 @@ export { DfMedia } from './angular/mediaqueries/media.service';
|
|
|
75
64
|
export { DfMediaModule } from './angular/mediaqueries/media.module';
|
|
76
65
|
export { DfManageCardSelectionDirective } from './angular/card/manage-card-selection.directive';
|
|
77
66
|
export { DfAdvancedCardModule } from './angular/card/card-advanced.module';
|
|
78
|
-
export
|
|
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
|
-
}
|
|
83
|
-
export { DfTitleTruncateDirective } from './angular/utils/titleTruncate.directive';
|
|
67
|
+
export { DfModule } from './angular/df.module';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@design-factory/design-factory",
|
|
3
3
|
"description": "Amadeus design system",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "16.0.1",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"tslib": "^2.0.0"
|
|
8
8
|
},
|
|
@@ -10,12 +10,27 @@
|
|
|
10
10
|
"@angular/common": "^16.0.0",
|
|
11
11
|
"@angular/core": "^16.0.0",
|
|
12
12
|
"@angular/localize": "^16.0.0",
|
|
13
|
+
"@angular/router": "^16.0.0",
|
|
13
14
|
"@ng-bootstrap/ng-bootstrap": "~15.1.0",
|
|
14
|
-
"@ng-select/ng-select": "~11.
|
|
15
|
-
"ag-grid-angular": "~
|
|
16
|
-
"ag-grid-community": "~
|
|
15
|
+
"@ng-select/ng-select": "~11.2.0",
|
|
16
|
+
"ag-grid-angular": "~30.2.1",
|
|
17
|
+
"ag-grid-community": "~30.2.1",
|
|
17
18
|
"bootstrap": "5.2.0"
|
|
18
19
|
},
|
|
20
|
+
"peerDependenciesMeta": {
|
|
21
|
+
"@angular/router": {
|
|
22
|
+
"optional": true
|
|
23
|
+
},
|
|
24
|
+
"@ng-select/ng-select": {
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
"@angular/localize": {
|
|
28
|
+
"optional": true
|
|
29
|
+
},
|
|
30
|
+
"@ng-bootstrap/ng-bootstrap": {
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
19
34
|
"schematics": "./schematics/collection.json",
|
|
20
35
|
"ng-add": {
|
|
21
36
|
"save": true
|
|
@@ -30,6 +45,10 @@
|
|
|
30
45
|
"esm": "./esm2022/design-factory.mjs",
|
|
31
46
|
"default": "./fesm2022/design-factory.mjs"
|
|
32
47
|
},
|
|
48
|
+
"./themes/initial-branding": {
|
|
49
|
+
"sass": "./design-factory-initial-branding.scss",
|
|
50
|
+
"style": "./design-factory-initial-branding.css"
|
|
51
|
+
},
|
|
33
52
|
"./package.json": {
|
|
34
53
|
"default": "./package.json"
|
|
35
54
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* This optional migration migrates:
|
|
4
|
+
* - any nav element containing the classes navbar-dark and bg-primary into bg-dark-primary
|
|
5
|
+
* - any div element containing the class df-amadeus-primary into df-amadeus-dark-primary
|
|
6
|
+
*
|
|
7
|
+
* @returns the Rule to migrate the classes
|
|
8
|
+
*/
|
|
9
|
+
export default function navbarLogoUpdate(): Rule;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
const project_tsconfig_paths_1 = require("../../utils/project_tsconfig_paths");
|
|
5
|
+
const compiler_host_1 = require("../../utils/typescript/compiler_host");
|
|
6
|
+
const template_updater_1 = require("../../utils/template-updater");
|
|
7
|
+
const regexNavbar = /(<nav\s[^>]*\sclass="|<nav\sclass=")([^"]*(bg-primary)[^"]*(navbar-dark)[^"]*|[^"]*(navbar-dark)[^"]*(bg-primary)[^"]*)"/g;
|
|
8
|
+
const regexLogo = /(<div\s[^>]*\sclass="|<div\sclass=")([^"]*df-amadeuslogo-primary[^"]*)"/g;
|
|
9
|
+
function replaceHtmlContent(content) {
|
|
10
|
+
return content
|
|
11
|
+
.replace(regexNavbar, (_match, g1, g2) => {
|
|
12
|
+
return `${g1}${g2.replace('bg-primary', 'bg-dark-primary').replace('navbar-dark', '')}"`;
|
|
13
|
+
})
|
|
14
|
+
.replace(regexLogo, (_match, g1, g2) => `${g1}${g2.replace('df-amadeuslogo-primary', 'df-amadeuslogo-dark-primary')}"`);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* This optional migration migrates:
|
|
18
|
+
* - any nav element containing the classes navbar-dark and bg-primary into bg-dark-primary
|
|
19
|
+
* - any div element containing the class df-amadeus-primary into df-amadeus-dark-primary
|
|
20
|
+
*
|
|
21
|
+
* @returns the Rule to migrate the classes
|
|
22
|
+
*/
|
|
23
|
+
function navbarLogoUpdate() {
|
|
24
|
+
return async (tree) => {
|
|
25
|
+
const { buildPaths, testPaths } = await (0, project_tsconfig_paths_1.getProjectTsConfigPaths)(tree);
|
|
26
|
+
const basePath = process.cwd();
|
|
27
|
+
const allPaths = [...buildPaths, ...testPaths];
|
|
28
|
+
if (!allPaths.length) {
|
|
29
|
+
throw new schematics_1.SchematicsException('Could not find any tsconfig file. Cannot run the `NavbarUpdate` migration.');
|
|
30
|
+
}
|
|
31
|
+
const templateUpdater = new template_updater_1.TemplateUpdater(tree, replaceHtmlContent);
|
|
32
|
+
for (const tsconfigPath of allPaths) {
|
|
33
|
+
const program = (0, compiler_host_1.createMigrationProgram)(tree, tsconfigPath, basePath);
|
|
34
|
+
const sourceFiles = program
|
|
35
|
+
.getSourceFiles()
|
|
36
|
+
.filter((sourceFile) => (0, compiler_host_1.canMigrateFile)(basePath, sourceFile, program));
|
|
37
|
+
for (const sourceFile of sourceFiles) {
|
|
38
|
+
templateUpdater.update(sourceFile, program.getTypeChecker());
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.default = navbarLogoUpdate;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* This optional migration tries to find the import of the styles and replace it with the old-brand import.
|
|
4
|
+
*
|
|
5
|
+
* @returns the Rule to revert to the old branding
|
|
6
|
+
*/
|
|
7
|
+
export default function revertToOldBranding(): Rule;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
4
|
+
const regexMainStyleImport = /\@import\s('|")\@design-factory\/design-factory\/design-factory(\.|'|")/g;
|
|
5
|
+
/**
|
|
6
|
+
* Goes through the styles imports declared in the styles options of a build target, trying to update to use the old branding styles.
|
|
7
|
+
*
|
|
8
|
+
* @param buildOptions the build options of the build target of a workspace project
|
|
9
|
+
* @returns true if we found a style option to update
|
|
10
|
+
*/
|
|
11
|
+
function updateImportInBuildOptions(buildOptions) {
|
|
12
|
+
for (let i = 0; i < (buildOptions.styles?.length ?? 0); i++) {
|
|
13
|
+
const style = buildOptions.styles?.[i];
|
|
14
|
+
if (style) {
|
|
15
|
+
if (typeof style === 'string') {
|
|
16
|
+
if (style.includes('@design-factory/design-factory/design-factory.scss')) {
|
|
17
|
+
buildOptions.styles[i] = style.replace('/design-factory.scss', '/design-factory-initial-branding.scss');
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
if (style.includes('@design-factory/design-factory/design-factory.css')) {
|
|
21
|
+
buildOptions.styles[i] = style.replace('/design-factory.css', '/design-factory-initial-branding.css');
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
const styleObj = style;
|
|
27
|
+
if (styleObj.input?.includes('@design-factory/design-factory/design-factory.scss')) {
|
|
28
|
+
buildOptions.styles[i] = {
|
|
29
|
+
...styleObj,
|
|
30
|
+
input: styleObj.input.replace('/design-factory.scss', '/design-factory-initial-branding.scss')
|
|
31
|
+
};
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (styleObj.input?.includes('@design-factory/design-factory/design-factory.css')) {
|
|
35
|
+
buildOptions.styles[i] = {
|
|
36
|
+
...styleObj,
|
|
37
|
+
input: styleObj.input.replace('/design-factory.css', '/design-factory-initial-branding.css')
|
|
38
|
+
};
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Parses every main styles file and tries to update imports of the DF styles to use the old branding.
|
|
48
|
+
*
|
|
49
|
+
* @param buildOptions the build options of the build target of a workspace project
|
|
50
|
+
* @param tree the schematics tree
|
|
51
|
+
* @returns true if we found an import to update
|
|
52
|
+
*/
|
|
53
|
+
function updateImportInMainStyles(buildOptions, tree) {
|
|
54
|
+
for (const style of buildOptions.styles ?? []) {
|
|
55
|
+
if (style) {
|
|
56
|
+
let path = '';
|
|
57
|
+
if (typeof style === 'string') {
|
|
58
|
+
if (tree.exists(style)) {
|
|
59
|
+
path = style;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const styleObj = style;
|
|
67
|
+
if (styleObj.input && tree.exists(styleObj.input)) {
|
|
68
|
+
path = styleObj.input;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const content = tree.readText(path);
|
|
75
|
+
const index = content.search(regexMainStyleImport);
|
|
76
|
+
if (index >= 0) {
|
|
77
|
+
const recorder = tree.beginUpdate(path);
|
|
78
|
+
recorder.insertRight(index + 54, '-initial-branding');
|
|
79
|
+
tree.commitUpdate(recorder);
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* This optional migration tries to find the import of the styles and replace it with the old-brand import.
|
|
88
|
+
*
|
|
89
|
+
* @returns the Rule to revert to the old branding
|
|
90
|
+
*/
|
|
91
|
+
function revertToOldBranding() {
|
|
92
|
+
return async (tree, context) => {
|
|
93
|
+
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
94
|
+
workspace.projects.forEach((project, projectName) => {
|
|
95
|
+
if (project.extensions['projectType'] === 'application') {
|
|
96
|
+
const buildTarget = project.targets.get('build');
|
|
97
|
+
if (buildTarget) {
|
|
98
|
+
const buildOptions = (buildTarget.options || {});
|
|
99
|
+
const couldReplaceImport = updateImportInBuildOptions(buildOptions) || updateImportInMainStyles(buildOptions, tree);
|
|
100
|
+
if (!couldReplaceImport) {
|
|
101
|
+
context.logger.warn(`Could not replace styles import in project ${projectName}.`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
context.logger.info(`Skipping project ${projectName} as it does not include a build target.`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
context.logger.info(`Skipping project ${projectName} as not application.`);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
exports.default = revertToOldBranding;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[
|
|
2
|
+
"df-alert-collapse-size-lg-icon-margin",
|
|
3
|
+
"df-alert-collapse-size-sm-icon-margin",
|
|
4
|
+
"df-alert-size-lg-padding-bottom",
|
|
5
|
+
"df-alert-size-lg-padding-left",
|
|
6
|
+
"df-alert-size-lg-padding-right",
|
|
7
|
+
"df-alert-size-lg-padding-top",
|
|
8
|
+
"df-alert-size-sm-padding-bottom",
|
|
9
|
+
"df-alert-size-sm-padding-left",
|
|
10
|
+
"df-alert-size-sm-padding-right",
|
|
11
|
+
"df-alert-size-sm-padding-top",
|
|
12
|
+
"df-badge-close-font-size",
|
|
13
|
+
"df-breadcrumb-item-padding",
|
|
14
|
+
"df-card-alert-border-highlight-color-alpha",
|
|
15
|
+
"df-danger-background",
|
|
16
|
+
"df-danger-border-color",
|
|
17
|
+
"df-info-background",
|
|
18
|
+
"df-info-border-color",
|
|
19
|
+
"df-link-color",
|
|
20
|
+
"df-link-hover-color",
|
|
21
|
+
"df-listgroup-border-color",
|
|
22
|
+
"df-listgroup-disabled-bg-color",
|
|
23
|
+
"df-listgroup-disabled-color",
|
|
24
|
+
"df-listgroup-disabled-opacity",
|
|
25
|
+
"df-listgroup-item-action-color",
|
|
26
|
+
"df-listgroup-item-action-margin-top",
|
|
27
|
+
"df-listgroup-item-active-color",
|
|
28
|
+
"df-listgroup-item-hover-color",
|
|
29
|
+
"df-modal-alert-header-button-close-margin-top",
|
|
30
|
+
"df-modal-header-icon-font-color",
|
|
31
|
+
"df-navbar-background-hover-color",
|
|
32
|
+
"df-navbarbrand-border-bottom-hover",
|
|
33
|
+
"df-select-input-invalid-feedback-focus-box-shadow",
|
|
34
|
+
"df-select-input-valid-feedback-focus-box-shadow",
|
|
35
|
+
"df-select-input-warning-feedback-focus-box-shadow",
|
|
36
|
+
"df-sidenav-item-box-shadow-zindex",
|
|
37
|
+
"df-sidenav-item-focus-box-shadow-start",
|
|
38
|
+
"df-stepper-icon-only-border-radius",
|
|
39
|
+
"df-stepper-icon-only-font-size",
|
|
40
|
+
"df-stepper-icon-only-font-size-lg",
|
|
41
|
+
"df-stepper-icon-only-font-size-sm",
|
|
42
|
+
"df-stepper-line-zindex",
|
|
43
|
+
"df-stepper-number-font-size",
|
|
44
|
+
"df-success-background",
|
|
45
|
+
"df-success-border-color",
|
|
46
|
+
"df-tabs-color",
|
|
47
|
+
"df-tabs-disabled-cursor",
|
|
48
|
+
"df-text-color",
|
|
49
|
+
"df-toast-btn-close-hover-color",
|
|
50
|
+
"df-toast-btn-link-hover-color",
|
|
51
|
+
"df-tooltip-font-size-default",
|
|
52
|
+
"df-tooltip-size-default",
|
|
53
|
+
"df-warning-background",
|
|
54
|
+
"df-warning-border-color"
|
|
55
|
+
]
|