@flywheel-io/vision 1.17.0 → 2.0.0-beta-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/components/alert/alert.component.d.ts +1 -1
- package/components/app-icon/app-icon.component.d.ts +1 -1
- package/components/avatar/avatar.component.d.ts +1 -1
- package/components/badge/badge.component.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/components/breadcrumbs/crumb.component.d.ts +1 -1
- package/components/button/button.component.d.ts +1 -1
- package/components/button/button.directives.d.ts +5 -5
- package/components/button-group/button-group.component.d.ts +1 -1
- package/components/button-toggle/button-toggle-item/button-toggle-item.component.d.ts +1 -1
- package/components/button-toggle/button-toggle.component.d.ts +1 -1
- package/components/card/card-attribute/card-attribute.component.d.ts +1 -1
- package/components/card/card-author/card-author.component.d.ts +1 -1
- package/components/card/card-content/card-content.component.d.ts +1 -1
- package/components/card/card-footer/card-footer.component.d.ts +1 -1
- package/components/card/card-header/card-header.component.d.ts +1 -1
- package/components/card/card.component.d.ts +1 -1
- package/components/checkbox/checkbox.component.d.ts +1 -1
- package/components/chip/chip.component.d.ts +1 -1
- package/components/contained-input/contained-input.component.d.ts +1 -1
- package/components/date-input/date-input.component.d.ts +1 -1
- package/components/dialog/dialog-actions.component.d.ts +1 -1
- package/components/dialog/dialog-confirm.component.d.ts +1 -1
- package/components/dialog/dialog-content.component.d.ts +1 -1
- package/components/dialog/dialog-header.component.d.ts +1 -1
- package/components/dialog/dialog-simple.component.d.ts +1 -1
- package/components/dialog/dialog.component.d.ts +1 -1
- package/components/form-heading/form-heading.component.d.ts +1 -1
- package/components/icon/icon.component.d.ts +1 -1
- package/components/icon-button/icon-button.component.d.ts +1 -1
- package/components/layouts/context/context.component.d.ts +1 -1
- package/components/layouts/grid/grid.component.d.ts +2 -2
- package/components/layouts/layout-group.component.d.ts +1 -1
- package/components/layouts/panel/panel.component.d.ts +1 -1
- package/components/layouts/sidebar/sidebar.component.d.ts +1 -1
- package/components/layouts/toolbar/toolbar.component.d.ts +1 -1
- package/components/menu/menu-close-triggers.directive.d.ts +1 -1
- package/components/menu/menu-container/menu-container.component.d.ts +1 -1
- package/components/menu/menu-header/menu-header.component.d.ts +1 -1
- package/components/menu/menu-item/menu-item.component.d.ts +1 -1
- package/components/menu/menu-item-group/menu-item-group.component.d.ts +1 -1
- package/components/menu/menu-separator/menu-separator.component.d.ts +1 -1
- package/components/menu/menu-sub-item/menu-sub-item.component.d.ts +1 -1
- package/components/menu/menu.component.d.ts +1 -1
- package/components/navbar/navbar-header/navbar-header.component.d.ts +1 -1
- package/components/navbar/navbar-item/navbar-item.component.d.ts +1 -1
- package/components/navbar/navbar-sub-item/navbar-sub-item.component.d.ts +1 -1
- package/components/navbar/navbar.component.d.ts +1 -1
- package/components/number-input/number-input.component.d.ts +1 -1
- package/components/paginator/paginator-advanced/paginator-advanced.component.d.ts +1 -1
- package/components/paginator/paginator.component.d.ts +1 -1
- package/components/phone-input/phone-input.component.d.ts +1 -1
- package/components/popover/popover-panel/popover-panel.component.d.ts +1 -1
- package/components/popover/popover.component.d.ts +1 -1
- package/components/progress/bar/bar.component.d.ts +1 -1
- package/components/progress/spinner/spinner.component.d.ts +1 -1
- package/components/radio/radio-group.component.d.ts +1 -1
- package/components/radio/radio.component.d.ts +1 -1
- package/components/section-heading/back-button/back-button.component.d.ts +1 -1
- package/components/section-heading/section-heading.component.d.ts +1 -1
- package/components/section-heading/subsection-heading/subsection-heading.component.d.ts +1 -1
- package/components/select-menu/multi-select-menu/multi-select-menu.component.d.ts +1 -1
- package/components/select-menu/select-menu.component.d.ts +1 -1
- package/components/snackbar/snackbar/snackbar.component.d.ts +1 -1
- package/components/snackbar/snackbar-container/snackbar-container.component.d.ts +1 -1
- package/components/snackbar/snackbar.module.d.ts +3 -5
- package/components/stepper/step.component.d.ts +2 -2
- package/components/stepper/stepper.component.d.ts +1 -1
- package/components/switch/switch.component.d.ts +1 -1
- package/components/table/cell.d.ts +7 -7
- package/components/table/row.d.ts +7 -7
- package/components/table/table-dense.component.d.ts +1 -1
- package/components/table/table.component.d.ts +1 -1
- package/components/tabs/tab/tab.component.d.ts +1 -1
- package/components/tabs/tab-panel/tab-panel.component.d.ts +1 -1
- package/components/tabs/tabs.component.d.ts +1 -1
- package/components/text-input/text-input.component.d.ts +1 -1
- package/components/textarea-input/textarea-input.component.d.ts +1 -1
- package/components/tooltip/tooltip-panel/tooltip-panel.component.d.ts +1 -1
- package/components/tooltip/tooltip.component.d.ts +1 -1
- package/components/wrapped-input/wrapped-input.component.d.ts +1 -1
- package/esm2020/components/alert/alert.component.mjs +4 -4
- package/esm2020/components/alert/alert.module.mjs +5 -5
- package/esm2020/components/app-icon/app-icon.component.mjs +4 -4
- package/esm2020/components/app-icon/app-icon.module.mjs +5 -5
- package/esm2020/components/avatar/avatar.component.mjs +4 -4
- package/esm2020/components/avatar/avatar.module.mjs +5 -5
- package/esm2020/components/badge/badge.component.mjs +5 -5
- package/esm2020/components/badge/badge.module.mjs +5 -5
- package/esm2020/components/breadcrumbs/breadcrumbs.component.mjs +4 -4
- package/esm2020/components/breadcrumbs/breadcrumbs.module.mjs +5 -5
- package/esm2020/components/breadcrumbs/crumb.component.mjs +4 -4
- package/esm2020/components/button/button.component.mjs +4 -4
- package/esm2020/components/button/button.directives.mjs +16 -16
- package/esm2020/components/button/button.module.mjs +5 -5
- package/esm2020/components/button-group/button-group.component.mjs +4 -4
- package/esm2020/components/button-group/button-group.module.mjs +5 -5
- package/esm2020/components/button-toggle/button-toggle-item/button-toggle-item.component.mjs +4 -4
- package/esm2020/components/button-toggle/button-toggle.component.mjs +4 -4
- package/esm2020/components/button-toggle/button-toggle.module.mjs +5 -5
- package/esm2020/components/card/card-attribute/card-attribute.component.mjs +4 -4
- package/esm2020/components/card/card-author/card-author.component.mjs +4 -4
- package/esm2020/components/card/card-content/card-content.component.mjs +4 -4
- package/esm2020/components/card/card-footer/card-footer.component.mjs +4 -4
- package/esm2020/components/card/card-header/card-header.component.mjs +4 -4
- package/esm2020/components/card/card.component.mjs +4 -4
- package/esm2020/components/card/card.module.mjs +5 -5
- package/esm2020/components/checkbox/checkbox.component.mjs +6 -6
- package/esm2020/components/checkbox/checkbox.module.mjs +5 -5
- package/esm2020/components/chip/chip.component.mjs +4 -4
- package/esm2020/components/chip/chip.module.mjs +5 -5
- package/esm2020/components/contained-input/contained-input.component.mjs +4 -4
- package/esm2020/components/contained-input/contained-input.module.mjs +5 -5
- package/esm2020/components/date-input/date-input.component.mjs +4 -4
- package/esm2020/components/date-input/date-input.module.mjs +5 -5
- package/esm2020/components/dialog/dialog-actions.component.mjs +4 -4
- package/esm2020/components/dialog/dialog-confirm.component.mjs +4 -4
- package/esm2020/components/dialog/dialog-content.component.mjs +4 -4
- package/esm2020/components/dialog/dialog-header.component.mjs +4 -4
- package/esm2020/components/dialog/dialog-simple.component.mjs +4 -4
- package/esm2020/components/dialog/dialog.component.mjs +4 -4
- package/esm2020/components/dialog/dialog.service.mjs +4 -4
- package/esm2020/components/dialog/dialogs.module.mjs +5 -5
- package/esm2020/components/form-heading/form-heading.component.mjs +4 -4
- package/esm2020/components/form-heading/form-heading.module.mjs +5 -5
- package/esm2020/components/icon/icon.component.mjs +4 -4
- package/esm2020/components/icon/icon.module.mjs +5 -5
- package/esm2020/components/icon-button/icon-button.component.mjs +4 -4
- package/esm2020/components/icon-button/icon-button.module.mjs +5 -5
- package/esm2020/components/layouts/context/context.component.mjs +4 -4
- package/esm2020/components/layouts/grid/grid.component.mjs +7 -7
- package/esm2020/components/layouts/layout-group.component.mjs +4 -4
- package/esm2020/components/layouts/layouts.module.mjs +5 -5
- package/esm2020/components/layouts/panel/panel.component.mjs +4 -4
- package/esm2020/components/layouts/sidebar/sidebar.component.mjs +4 -4
- package/esm2020/components/layouts/toolbar/toolbar.component.mjs +4 -4
- package/esm2020/components/menu/menu-close-triggers.directive.mjs +4 -4
- package/esm2020/components/menu/menu-container/menu-container.component.mjs +4 -4
- package/esm2020/components/menu/menu-header/menu-header.component.mjs +4 -4
- package/esm2020/components/menu/menu-item/menu-item.component.mjs +4 -4
- package/esm2020/components/menu/menu-item-group/menu-item-group.component.mjs +4 -4
- package/esm2020/components/menu/menu-separator/menu-separator.component.mjs +4 -4
- package/esm2020/components/menu/menu-sub-item/menu-sub-item.component.mjs +4 -4
- package/esm2020/components/menu/menu.component.mjs +4 -4
- package/esm2020/components/menu/menu.module.mjs +5 -5
- package/esm2020/components/navbar/navbar-header/navbar-header.component.mjs +4 -4
- package/esm2020/components/navbar/navbar-item/navbar-item.component.mjs +4 -4
- package/esm2020/components/navbar/navbar-sub-item/navbar-sub-item.component.mjs +4 -4
- package/esm2020/components/navbar/navbar.component.mjs +4 -4
- package/esm2020/components/navbar/navbar.module.mjs +5 -5
- package/esm2020/components/number-input/number-input.component.mjs +4 -4
- package/esm2020/components/number-input/number-input.module.mjs +5 -5
- package/esm2020/components/paginator/paginator-advanced/paginator-advanced.component.mjs +4 -4
- package/esm2020/components/paginator/paginator.component.mjs +4 -4
- package/esm2020/components/paginator/paginator.module.mjs +5 -5
- package/esm2020/components/phone-input/phone-input.component.mjs +5 -5
- package/esm2020/components/phone-input/phone-input.module.mjs +5 -5
- package/esm2020/components/popover/popover-panel/popover-panel.component.mjs +4 -4
- package/esm2020/components/popover/popover.component.mjs +4 -4
- package/esm2020/components/popover/popover.module.mjs +5 -5
- package/esm2020/components/progress/bar/bar.component.mjs +5 -5
- package/esm2020/components/progress/progress.module.mjs +5 -5
- package/esm2020/components/progress/spinner/spinner.component.mjs +4 -4
- package/esm2020/components/radio/radio-group.component.mjs +4 -4
- package/esm2020/components/radio/radio.component.mjs +5 -5
- package/esm2020/components/radio/radio.module.mjs +5 -5
- package/esm2020/components/section-heading/back-button/back-button.component.mjs +4 -4
- package/esm2020/components/section-heading/section-heading.component.mjs +4 -4
- package/esm2020/components/section-heading/section-heading.module.mjs +5 -5
- package/esm2020/components/section-heading/subsection-heading/subsection-heading.component.mjs +4 -4
- package/esm2020/components/select-menu/multi-select-menu/multi-select-menu.component.mjs +5 -5
- package/esm2020/components/select-menu/select-menu.component.mjs +4 -4
- package/esm2020/components/select-menu/select-menu.module.mjs +5 -5
- package/esm2020/components/shared/pipes/pipes.module.mjs +5 -5
- package/esm2020/components/shared/pipes/translate.pipe.mjs +4 -4
- package/esm2020/components/shared/pipes/trusthtml.pipe.mjs +4 -4
- package/esm2020/components/shared/translation.service.mjs +4 -4
- package/esm2020/components/snackbar/snackbar/snackbar.component.mjs +4 -4
- package/esm2020/components/snackbar/snackbar-container/snackbar-container.component.mjs +4 -4
- package/esm2020/components/snackbar/snackbar.module.mjs +5 -13
- package/esm2020/components/snackbar/snackbar.service.mjs +4 -4
- package/esm2020/components/stepper/step.component.mjs +7 -7
- package/esm2020/components/stepper/stepper.component.mjs +4 -4
- package/esm2020/components/stepper/stepper.module.mjs +5 -5
- package/esm2020/components/switch/switch.component.mjs +4 -4
- package/esm2020/components/switch/switch.module.mjs +5 -5
- package/esm2020/components/table/cell.mjs +22 -22
- package/esm2020/components/table/row.mjs +22 -22
- package/esm2020/components/table/table-dense.component.mjs +6 -6
- package/esm2020/components/table/table.component.mjs +6 -6
- package/esm2020/components/table/table.module.mjs +5 -5
- package/esm2020/components/tabs/tab/tab.component.mjs +4 -4
- package/esm2020/components/tabs/tab-panel/tab-panel.component.mjs +4 -4
- package/esm2020/components/tabs/tabs.component.mjs +4 -4
- package/esm2020/components/tabs/tabs.module.mjs +5 -5
- package/esm2020/components/text-input/text-input.component.mjs +4 -4
- package/esm2020/components/text-input/text-input.module.mjs +5 -5
- package/esm2020/components/textarea-input/textarea-input.component.mjs +4 -4
- package/esm2020/components/textarea-input/textarea-input.module.mjs +5 -5
- package/esm2020/components/tooltip/tooltip-panel/tooltip-panel.component.mjs +4 -4
- package/esm2020/components/tooltip/tooltip.component.mjs +5 -5
- package/esm2020/components/tooltip/tooltip.module.mjs +5 -5
- package/esm2020/components/wrapped-input/wrapped-input.component.mjs +4 -4
- package/esm2020/components/wrapped-input/wrapped-input.module.mjs +5 -5
- package/esm2020/public-api.mjs +1 -12
- package/fesm2015/flywheel-io-vision.mjs +482 -1207
- package/fesm2015/flywheel-io-vision.mjs.map +1 -1
- package/fesm2020/flywheel-io-vision.mjs +482 -1199
- package/fesm2020/flywheel-io-vision.mjs.map +1 -1
- package/flywheel-io-vision-2.0.0-beta-0.tgz +0 -0
- package/global.scss +0 -4
- package/package.json +3 -4
- package/public-api.d.ts +0 -11
- package/public-api.scss +0 -1
- package/scss/atoms/scrollbar.scss +1 -1
- package/scss/config/colors.scss +0 -5
- package/scss/icons/_icon-font-face.scss +1 -1
- package/scss/icons/_icon-glyphs.scss +2 -0
- package/scss/icons/_icon-variables.scss +2 -0
- package/styles.css +990 -8042
- package/components/legacy/dialog/choice-dialog.component.d.ts +0 -35
- package/components/legacy/dialog/confirm-dialog.component.d.ts +0 -20
- package/components/legacy/dialog/dialog.module.d.ts +0 -19
- package/components/legacy/dialog/dialog.service.d.ts +0 -25
- package/components/legacy/dialog/error-dialog.component.d.ts +0 -18
- package/components/legacy/dialog/portal-dialog.component.d.ts +0 -33
- package/components/legacy/notification/notification/notification.component.d.ts +0 -20
- package/components/legacy/notification/notification/notification.model.d.ts +0 -14
- package/components/legacy/notification/notification-container/notification-container.component.d.ts +0 -25
- package/components/legacy/notification/notification-timer.service.d.ts +0 -10
- package/components/legacy/notification/notification.module.d.ts +0 -12
- package/components/legacy/notification/notification.service.d.ts +0 -13
- package/esm2020/components/legacy/dialog/choice-dialog.component.mjs +0 -107
- package/esm2020/components/legacy/dialog/confirm-dialog.component.mjs +0 -61
- package/esm2020/components/legacy/dialog/dialog.module.mjs +0 -82
- package/esm2020/components/legacy/dialog/dialog.service.mjs +0 -75
- package/esm2020/components/legacy/dialog/error-dialog.component.mjs +0 -52
- package/esm2020/components/legacy/dialog/portal-dialog.component.mjs +0 -109
- package/esm2020/components/legacy/notification/notification/notification.component.mjs +0 -74
- package/esm2020/components/legacy/notification/notification/notification.model.mjs +0 -9
- package/esm2020/components/legacy/notification/notification-container/notification-container.component.mjs +0 -98
- package/esm2020/components/legacy/notification/notification-timer.service.mjs +0 -29
- package/esm2020/components/legacy/notification/notification.module.mjs +0 -47
- package/esm2020/components/legacy/notification/notification.service.mjs +0 -36
- package/scss/material/theme.scss +0 -243
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ThemePalette } from '@angular/material/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
interface Choice {
|
|
4
|
-
color?: ThemePalette;
|
|
5
|
-
label: string;
|
|
6
|
-
testId?: string;
|
|
7
|
-
value: string;
|
|
8
|
-
variant?: 'raised' | 'stroked' | 'flat';
|
|
9
|
-
}
|
|
10
|
-
export interface FwChoiceDialogData {
|
|
11
|
-
alignActions?: 'start' | 'center' | 'end';
|
|
12
|
-
choices: Choice[];
|
|
13
|
-
closeValue?: string;
|
|
14
|
-
content: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogComponent
|
|
19
|
-
*/
|
|
20
|
-
export declare class FwLegacyChoiceDialogComponent {
|
|
21
|
-
private data;
|
|
22
|
-
class: string;
|
|
23
|
-
'test-id': string;
|
|
24
|
-
readonly alignActions: 'start' | 'center' | 'end';
|
|
25
|
-
readonly choices: Choice[];
|
|
26
|
-
readonly closeValue: string;
|
|
27
|
-
readonly content: string;
|
|
28
|
-
readonly title: string;
|
|
29
|
-
constructor(data: FwChoiceDialogData);
|
|
30
|
-
get showCloseButton(): boolean;
|
|
31
|
-
getTestId(choice: Choice): string;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwLegacyChoiceDialogComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwLegacyChoiceDialogComponent, "fw-legacy-dialog-choice-dialog", never, {}, {}, never, never, false>;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export interface FwConfirmDialogData {
|
|
3
|
-
title?: string;
|
|
4
|
-
content?: string;
|
|
5
|
-
html?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogConfirmComponent
|
|
9
|
-
*/
|
|
10
|
-
export declare class FwLegacyConfirmDialogComponent {
|
|
11
|
-
private data;
|
|
12
|
-
class: string;
|
|
13
|
-
'test-id': string;
|
|
14
|
-
title: string;
|
|
15
|
-
content: string;
|
|
16
|
-
html: string;
|
|
17
|
-
constructor(data: FwConfirmDialogData);
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwLegacyConfirmDialogComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwLegacyConfirmDialogComponent, "fw-dialog-confirm-dialog", never, {}, {}, never, never, false>;
|
|
20
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./choice-dialog.component";
|
|
3
|
-
import * as i2 from "./confirm-dialog.component";
|
|
4
|
-
import * as i3 from "./error-dialog.component";
|
|
5
|
-
import * as i4 from "./portal-dialog.component";
|
|
6
|
-
import * as i5 from "@angular/common";
|
|
7
|
-
import * as i6 from "@angular/material/button";
|
|
8
|
-
import * as i7 from "@angular/material/dialog";
|
|
9
|
-
import * as i8 from "@angular/material/icon";
|
|
10
|
-
import * as i9 from "../../shared/pipes/pipes.module";
|
|
11
|
-
import * as i10 from "@angular/cdk/portal";
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogsModule
|
|
14
|
-
*/
|
|
15
|
-
export declare class FwLegacyDialogModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwLegacyDialogModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FwLegacyDialogModule, [typeof i1.FwLegacyChoiceDialogComponent, typeof i2.FwLegacyConfirmDialogComponent, typeof i3.FwLegacyErrorDialogComponent, typeof i4.FwLegacyPortalDialogComponent], [typeof i5.CommonModule, typeof i6.MatButtonModule, typeof i7.MatDialogModule, typeof i8.MatIconModule, typeof i9.PipesModule, typeof i10.PortalModule], [typeof i1.FwLegacyChoiceDialogComponent, typeof i2.FwLegacyConfirmDialogComponent, typeof i3.FwLegacyErrorDialogComponent, typeof i4.FwLegacyPortalDialogComponent]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FwLegacyDialogModule>;
|
|
19
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare type StackingStrategy = 'allow' | 'replace' | 'ignore';
|
|
5
|
-
export interface DialogConfig<T> extends MatDialogConfig<T> {
|
|
6
|
-
multi: StackingStrategy;
|
|
7
|
-
}
|
|
8
|
-
export interface OpenDialog<T> {
|
|
9
|
-
component: Type<T>;
|
|
10
|
-
ref: MatDialogRef<T>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Legacy Vision: Please upgrade to the newer CdkDialogService
|
|
14
|
-
*/
|
|
15
|
-
export declare class FwLegacyDialogService {
|
|
16
|
-
private matDialog;
|
|
17
|
-
readonly dialogs: OpenDialog<unknown>[];
|
|
18
|
-
private config;
|
|
19
|
-
constructor(matDialog: MatDialog);
|
|
20
|
-
closeAll(component?: Type<unknown>): void;
|
|
21
|
-
open<T, D, R>(component: Type<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
22
|
-
registerDialog(component: Type<unknown>, config: DialogConfig<unknown>): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwLegacyDialogService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FwLegacyDialogService>;
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface FwErrorDialogData {
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogConfirmComponent
|
|
8
|
-
*/
|
|
9
|
-
export declare class FwLegacyErrorDialogComponent {
|
|
10
|
-
private data;
|
|
11
|
-
private ref;
|
|
12
|
-
class: string;
|
|
13
|
-
'test-id': string;
|
|
14
|
-
message: string;
|
|
15
|
-
constructor(data: FwErrorDialogData, ref: MatDialogRef<FwLegacyErrorDialogComponent>);
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwLegacyErrorDialogComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwLegacyErrorDialogComponent, "fw-dialog-error-dialog", never, {}, {}, never, never, false>;
|
|
18
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { CdkPortalOutletAttachedRef, ComponentType, Portal } from '@angular/cdk/portal';
|
|
2
|
-
import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
interface ComponentSpec {
|
|
5
|
-
type: ComponentType<unknown>;
|
|
6
|
-
inputs?: Record<string, unknown>;
|
|
7
|
-
outputs?: Record<string, (value: unknown) => void>;
|
|
8
|
-
}
|
|
9
|
-
export interface FwPortalDialogData {
|
|
10
|
-
component?: ComponentSpec;
|
|
11
|
-
content?: string;
|
|
12
|
-
template?: TemplateRef<unknown>;
|
|
13
|
-
title?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogComponent
|
|
17
|
-
*/
|
|
18
|
-
export declare class FwLegacyPortalDialogComponent implements OnDestroy {
|
|
19
|
-
private data;
|
|
20
|
-
private viewContainerRef;
|
|
21
|
-
class: string;
|
|
22
|
-
'test-id': string;
|
|
23
|
-
content: string;
|
|
24
|
-
portal: Portal<unknown>;
|
|
25
|
-
title: string;
|
|
26
|
-
private destroyed$;
|
|
27
|
-
constructor(data: FwPortalDialogData, viewContainerRef: ViewContainerRef);
|
|
28
|
-
ngOnDestroy(): void;
|
|
29
|
-
attached(ref: CdkPortalOutletAttachedRef): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwLegacyPortalDialogComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwLegacyPortalDialogComponent, "fw-dialog-portal-dialog", never, {}, {}, never, never, false>;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { FwNotificationTimerService } from '../notification-timer.service';
|
|
3
|
-
import { Notification } from './notification.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FwNotificationComponent implements AfterViewInit {
|
|
6
|
-
private cdr;
|
|
7
|
-
private timerService;
|
|
8
|
-
notification: Notification;
|
|
9
|
-
notificationDuration: number;
|
|
10
|
-
ready: EventEmitter<FwNotificationComponent>;
|
|
11
|
-
dismiss: EventEmitter<string>;
|
|
12
|
-
get cssClass(): string;
|
|
13
|
-
onClickDismiss(): void;
|
|
14
|
-
constructor(cdr: ChangeDetectorRef, timerService: FwNotificationTimerService);
|
|
15
|
-
ngAfterViewInit(): void;
|
|
16
|
-
startTimer(): void;
|
|
17
|
-
stopTimer(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwNotificationComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwNotificationComponent, "fw-notification", never, { "notification": "notification"; "notificationDuration": "notificationDuration"; }, { "ready": "ready"; "dismiss": "dismiss"; }, never, never, false>;
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FwNotificationComponent } from './notification.component';
|
|
2
|
-
export declare enum FwNotificationType {
|
|
3
|
-
Error = "error",
|
|
4
|
-
Info = "info",
|
|
5
|
-
Success = "success",
|
|
6
|
-
Wait = "wait",
|
|
7
|
-
Warning = "warning"
|
|
8
|
-
}
|
|
9
|
-
export interface Notification {
|
|
10
|
-
id?: string;
|
|
11
|
-
message: string;
|
|
12
|
-
type: FwNotificationType;
|
|
13
|
-
ref?: FwNotificationComponent;
|
|
14
|
-
}
|
package/components/legacy/notification/notification-container/notification-container.component.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { FwNotificationService } from '../notification.service';
|
|
3
|
-
import { FwNotificationComponent } from '../notification/notification.component';
|
|
4
|
-
import { Notification } from '../notification/notification.model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FwNotificationContainerComponent implements OnDestroy {
|
|
7
|
-
private cdr;
|
|
8
|
-
private notificationService;
|
|
9
|
-
get classes(): string;
|
|
10
|
-
limit: number;
|
|
11
|
-
notifications: Notification[];
|
|
12
|
-
expanded: boolean;
|
|
13
|
-
private subscriptions;
|
|
14
|
-
constructor(cdr: ChangeDetectorRef, notificationService: FwNotificationService);
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
notificationClass(index: number): string;
|
|
17
|
-
getEmptyNotification(notification: Notification): Notification;
|
|
18
|
-
onReady(notification: FwNotificationComponent): void;
|
|
19
|
-
onDismiss(notificationId: string): void;
|
|
20
|
-
clearAll(): void;
|
|
21
|
-
onShowMore(): void;
|
|
22
|
-
onShowLess(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwNotificationContainerComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FwNotificationContainerComponent, "fw-notification-container", never, {}, {}, never, never, false>;
|
|
25
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./notification/notification.component";
|
|
3
|
-
import * as i2 from "./notification-container/notification-container.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "../../button/button.module";
|
|
6
|
-
import * as i5 from "@angular/material/button";
|
|
7
|
-
import * as i6 from "../../icon/icon.module";
|
|
8
|
-
export declare class FwNotificationModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwNotificationModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FwNotificationModule, [typeof i1.FwNotificationComponent, typeof i2.FwNotificationContainerComponent], [typeof i3.CommonModule, typeof i4.FwButtonModule, typeof i5.MatButtonModule, typeof i6.FwIconModule], [typeof i1.FwNotificationComponent, typeof i2.FwNotificationContainerComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FwNotificationModule>;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { Notification } from './notification/notification.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare function genId(): string;
|
|
5
|
-
export declare class FwNotificationService {
|
|
6
|
-
readonly notifications$: BehaviorSubject<Notification[]>;
|
|
7
|
-
private notificationQueue;
|
|
8
|
-
show(notification: Notification): void;
|
|
9
|
-
dismiss(notificationId: string): void;
|
|
10
|
-
dismissAll(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FwNotificationService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FwNotificationService>;
|
|
13
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Inject } from '@angular/core';
|
|
2
|
-
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@angular/material/button";
|
|
6
|
-
import * as i3 from "@angular/material/dialog";
|
|
7
|
-
import * as i4 from "@angular/material/icon";
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogComponent
|
|
10
|
-
*/
|
|
11
|
-
export class FwLegacyChoiceDialogComponent {
|
|
12
|
-
constructor(data) {
|
|
13
|
-
this.data = data;
|
|
14
|
-
this.class = 'mat-dialog-component';
|
|
15
|
-
this['test-id'] = 'choice-dialog';
|
|
16
|
-
this.alignActions = this.data.alignActions || 'start';
|
|
17
|
-
this.choices = this.data.choices;
|
|
18
|
-
this.closeValue = this.data.closeValue;
|
|
19
|
-
this.content = this.data.content;
|
|
20
|
-
this.title = this.data.title;
|
|
21
|
-
}
|
|
22
|
-
get showCloseButton() {
|
|
23
|
-
return 'closeValue' in this.data;
|
|
24
|
-
}
|
|
25
|
-
getTestId(choice) {
|
|
26
|
-
return choice.testId || `${String(choice.label ?? choice.value).toLowerCase()}-button`;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
FwLegacyChoiceDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyChoiceDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
FwLegacyChoiceDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FwLegacyChoiceDialogComponent, selector: "fw-legacy-dialog-choice-dialog", host: { properties: { "attr.class": "this.class", "attr.test-id": "this['test-id']" } }, ngImport: i0, template: `
|
|
31
|
-
<h1 mat-dialog-title *ngIf="title">{{ title }}</h1>
|
|
32
|
-
<button *ngIf="showCloseButton" test-id="dialog-close-corner" mat-icon-button
|
|
33
|
-
[mat-dialog-close]="closeValue" [class]="{'mat-dialog-close-button': true, 'no-title': !title}">
|
|
34
|
-
<mat-icon>close</mat-icon>
|
|
35
|
-
</button>
|
|
36
|
-
<div mat-dialog-content>{{ content }}</div>
|
|
37
|
-
<div mat-dialog-actions [align]="alignActions">
|
|
38
|
-
<ng-container *ngFor="let choice of choices" [ngSwitch]="choice.variant">
|
|
39
|
-
<button *ngSwitchCase="'raised'" mat-raised-button [color]="choice.color"
|
|
40
|
-
[attr.test-id]="getTestId(choice)"
|
|
41
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
42
|
-
</button>
|
|
43
|
-
<button *ngSwitchCase="'stroked'" mat-stroked-button [color]="choice.color"
|
|
44
|
-
[attr.test-id]="getTestId(choice)"
|
|
45
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
46
|
-
</button>
|
|
47
|
-
<button *ngSwitchCase="'flat'" mat-flat-button [color]="choice.color" [attr.test-id]="getTestId(choice)"
|
|
48
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
49
|
-
</button>
|
|
50
|
-
<ng-container *ngSwitchDefault>
|
|
51
|
-
<button *ngIf="choice.color" mat-flat-button [color]="choice.color" [attr.test-id]="getTestId(choice)"
|
|
52
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
53
|
-
</button>
|
|
54
|
-
<button *ngIf="!choice.color" mat-stroked-button [attr.test-id]="getTestId(choice)"
|
|
55
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
56
|
-
</button>
|
|
57
|
-
</ng-container>
|
|
58
|
-
</ng-container>
|
|
59
|
-
</div>
|
|
60
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyChoiceDialogComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{
|
|
64
|
-
selector: 'fw-legacy-dialog-choice-dialog',
|
|
65
|
-
template: `
|
|
66
|
-
<h1 mat-dialog-title *ngIf="title">{{ title }}</h1>
|
|
67
|
-
<button *ngIf="showCloseButton" test-id="dialog-close-corner" mat-icon-button
|
|
68
|
-
[mat-dialog-close]="closeValue" [class]="{'mat-dialog-close-button': true, 'no-title': !title}">
|
|
69
|
-
<mat-icon>close</mat-icon>
|
|
70
|
-
</button>
|
|
71
|
-
<div mat-dialog-content>{{ content }}</div>
|
|
72
|
-
<div mat-dialog-actions [align]="alignActions">
|
|
73
|
-
<ng-container *ngFor="let choice of choices" [ngSwitch]="choice.variant">
|
|
74
|
-
<button *ngSwitchCase="'raised'" mat-raised-button [color]="choice.color"
|
|
75
|
-
[attr.test-id]="getTestId(choice)"
|
|
76
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
77
|
-
</button>
|
|
78
|
-
<button *ngSwitchCase="'stroked'" mat-stroked-button [color]="choice.color"
|
|
79
|
-
[attr.test-id]="getTestId(choice)"
|
|
80
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
81
|
-
</button>
|
|
82
|
-
<button *ngSwitchCase="'flat'" mat-flat-button [color]="choice.color" [attr.test-id]="getTestId(choice)"
|
|
83
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
84
|
-
</button>
|
|
85
|
-
<ng-container *ngSwitchDefault>
|
|
86
|
-
<button *ngIf="choice.color" mat-flat-button [color]="choice.color" [attr.test-id]="getTestId(choice)"
|
|
87
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
88
|
-
</button>
|
|
89
|
-
<button *ngIf="!choice.color" mat-stroked-button [attr.test-id]="getTestId(choice)"
|
|
90
|
-
[mat-dialog-close]="choice.value">{{ choice.label }}
|
|
91
|
-
</button>
|
|
92
|
-
</ng-container>
|
|
93
|
-
</ng-container>
|
|
94
|
-
</div>
|
|
95
|
-
`,
|
|
96
|
-
}]
|
|
97
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
98
|
-
type: Inject,
|
|
99
|
-
args: [MAT_DIALOG_DATA]
|
|
100
|
-
}] }]; }, propDecorators: { class: [{
|
|
101
|
-
type: HostBinding,
|
|
102
|
-
args: ['attr.class']
|
|
103
|
-
}], 'test-id': [{
|
|
104
|
-
type: HostBinding,
|
|
105
|
-
args: ['attr.test-id']
|
|
106
|
-
}] } });
|
|
107
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvaWNlLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIi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pcy5kYXRhLnRpdGxlO1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoTUFUX0RJQUxPR19EQVRBKSBwcml2YXRlIGRhdGE6IEZ3Q2hvaWNlRGlhbG9nRGF0YSxcbiAgKSB7XG4gIH1cblxuICBnZXQgc2hvd0Nsb3NlQnV0dG9uKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiAnY2xvc2VWYWx1ZScgaW4gdGhpcy5kYXRhO1xuICB9XG5cbiAgZ2V0VGVzdElkKGNob2ljZTogQ2hvaWNlKTogc3RyaW5nIHtcbiAgICByZXR1cm4gY2hvaWNlLnRlc3RJZCB8fCBgJHsgU3RyaW5nKGNob2ljZS5sYWJlbCA/PyBjaG9pY2UudmFsdWUpLnRvTG93ZXJDYXNlKCkgfS1idXR0b25gO1xuICB9XG59XG4iXX0=
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Inject } from '@angular/core';
|
|
2
|
-
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@angular/material/button";
|
|
6
|
-
import * as i3 from "@angular/material/dialog";
|
|
7
|
-
import * as i4 from "../../shared/pipes/translate.pipe";
|
|
8
|
-
import * as i5 from "../../shared/pipes/trusthtml.pipe";
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogConfirmComponent
|
|
11
|
-
*/
|
|
12
|
-
export class FwLegacyConfirmDialogComponent {
|
|
13
|
-
constructor(data) {
|
|
14
|
-
this.data = data;
|
|
15
|
-
this.class = 'mat-dialog-component';
|
|
16
|
-
this['test-id'] = 'confirm-dialog';
|
|
17
|
-
this.title = this.data.title;
|
|
18
|
-
this.content = this.data.content;
|
|
19
|
-
this.html = this.data.html;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
FwLegacyConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyConfirmDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
FwLegacyConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FwLegacyConfirmDialogComponent, selector: "fw-dialog-confirm-dialog", host: { properties: { "attr.class": "this.class", "attr.test-id": "this['test-id']" } }, ngImport: i0, template: `
|
|
24
|
-
<h1 mat-dialog-title *ngIf="title">{{ title }}</h1>
|
|
25
|
-
<div mat-dialog-content *ngIf="html" class="markup" [innerHTML]="html | trusthtml"></div>
|
|
26
|
-
<div mat-dialog-content *ngIf="!html">{{ content || ('confirmDialog.body' | translate) }}</div>
|
|
27
|
-
<div mat-dialog-actions align="center">
|
|
28
|
-
<button test-id="no-button" mat-stroked-button
|
|
29
|
-
[mat-dialog-close]="false">{{ 'confirmDialog.no' | translate }}
|
|
30
|
-
</button>
|
|
31
|
-
<button test-id="yes-button" mat-flat-button color="primary"
|
|
32
|
-
[mat-dialog-close]="true">{{ 'confirmDialog.yes' | translate }}
|
|
33
|
-
</button>
|
|
34
|
-
</div>
|
|
35
|
-
`, isInline: true, styles: ["[mat-dialog-content]{text-align:center}[mat-dialog-content].markup{text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: i5.TrustHtmlPipe, name: "trusthtml" }] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyConfirmDialogComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{ selector: 'fw-dialog-confirm-dialog', template: `
|
|
39
|
-
<h1 mat-dialog-title *ngIf="title">{{ title }}</h1>
|
|
40
|
-
<div mat-dialog-content *ngIf="html" class="markup" [innerHTML]="html | trusthtml"></div>
|
|
41
|
-
<div mat-dialog-content *ngIf="!html">{{ content || ('confirmDialog.body' | translate) }}</div>
|
|
42
|
-
<div mat-dialog-actions align="center">
|
|
43
|
-
<button test-id="no-button" mat-stroked-button
|
|
44
|
-
[mat-dialog-close]="false">{{ 'confirmDialog.no' | translate }}
|
|
45
|
-
</button>
|
|
46
|
-
<button test-id="yes-button" mat-flat-button color="primary"
|
|
47
|
-
[mat-dialog-close]="true">{{ 'confirmDialog.yes' | translate }}
|
|
48
|
-
</button>
|
|
49
|
-
</div>
|
|
50
|
-
`, styles: ["[mat-dialog-content]{text-align:center}[mat-dialog-content].markup{text-align:inherit}\n"] }]
|
|
51
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
52
|
-
type: Inject,
|
|
53
|
-
args: [MAT_DIALOG_DATA]
|
|
54
|
-
}] }]; }, propDecorators: { class: [{
|
|
55
|
-
type: HostBinding,
|
|
56
|
-
args: ['attr.class']
|
|
57
|
-
}], 'test-id': [{
|
|
58
|
-
type: HostBinding,
|
|
59
|
-
args: ['attr.test-id']
|
|
60
|
-
}] } });
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LFxuICApIHtcbiAgfVxufVxuIl19
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { PortalModule } from '@angular/cdk/portal';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NgModule } from '@angular/core';
|
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
-
import { MAT_DIALOG_DEFAULT_OPTIONS, MatDialogModule } from '@angular/material/dialog';
|
|
6
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
7
|
-
import { PipesModule } from '../../shared/pipes/pipes.module';
|
|
8
|
-
import { FwLegacyChoiceDialogComponent } from './choice-dialog.component';
|
|
9
|
-
import { FwLegacyConfirmDialogComponent } from './confirm-dialog.component';
|
|
10
|
-
import { FwLegacyDialogService } from './dialog.service';
|
|
11
|
-
import { FwLegacyErrorDialogComponent } from './error-dialog.component';
|
|
12
|
-
import { FwLegacyPortalDialogComponent } from './portal-dialog.component';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Legacy Vision: Please upgrade to the newer FwDialogsModule
|
|
16
|
-
*/
|
|
17
|
-
export class FwLegacyDialogModule {
|
|
18
|
-
}
|
|
19
|
-
FwLegacyDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
-
FwLegacyDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogModule, declarations: [FwLegacyChoiceDialogComponent,
|
|
21
|
-
FwLegacyConfirmDialogComponent,
|
|
22
|
-
FwLegacyErrorDialogComponent,
|
|
23
|
-
FwLegacyPortalDialogComponent], imports: [CommonModule,
|
|
24
|
-
MatButtonModule,
|
|
25
|
-
MatDialogModule,
|
|
26
|
-
MatIconModule,
|
|
27
|
-
PipesModule,
|
|
28
|
-
PortalModule], exports: [FwLegacyChoiceDialogComponent,
|
|
29
|
-
FwLegacyConfirmDialogComponent,
|
|
30
|
-
FwLegacyErrorDialogComponent,
|
|
31
|
-
FwLegacyPortalDialogComponent] });
|
|
32
|
-
FwLegacyDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogModule, providers: [
|
|
33
|
-
FwLegacyDialogService,
|
|
34
|
-
{
|
|
35
|
-
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
|
36
|
-
useValue: {
|
|
37
|
-
disableClose: true,
|
|
38
|
-
hasBackdrop: true,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
], imports: [CommonModule,
|
|
42
|
-
MatButtonModule,
|
|
43
|
-
MatDialogModule,
|
|
44
|
-
MatIconModule,
|
|
45
|
-
PipesModule,
|
|
46
|
-
PortalModule] });
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogModule, decorators: [{
|
|
48
|
-
type: NgModule,
|
|
49
|
-
args: [{
|
|
50
|
-
declarations: [
|
|
51
|
-
FwLegacyChoiceDialogComponent,
|
|
52
|
-
FwLegacyConfirmDialogComponent,
|
|
53
|
-
FwLegacyErrorDialogComponent,
|
|
54
|
-
FwLegacyPortalDialogComponent,
|
|
55
|
-
],
|
|
56
|
-
imports: [
|
|
57
|
-
CommonModule,
|
|
58
|
-
MatButtonModule,
|
|
59
|
-
MatDialogModule,
|
|
60
|
-
MatIconModule,
|
|
61
|
-
PipesModule,
|
|
62
|
-
PortalModule,
|
|
63
|
-
],
|
|
64
|
-
providers: [
|
|
65
|
-
FwLegacyDialogService,
|
|
66
|
-
{
|
|
67
|
-
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
|
68
|
-
useValue: {
|
|
69
|
-
disableClose: true,
|
|
70
|
-
hasBackdrop: true,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
exports: [
|
|
75
|
-
FwLegacyChoiceDialogComponent,
|
|
76
|
-
FwLegacyConfirmDialogComponent,
|
|
77
|
-
FwLegacyErrorDialogComponent,
|
|
78
|
-
FwLegacyPortalDialogComponent,
|
|
79
|
-
],
|
|
80
|
-
}]
|
|
81
|
-
}] });
|
|
82
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2xlZ2FjeS9kaWFsb2cvZGlhbG9nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUN2RixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFdkQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzlELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzVFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ3pELE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFN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xcbiAgICBGd0xlZ2FjeUNvbmZpcm1EaWFsb2dDb21wb25lbnQsXG4gICAgRndMZWdhY3lFcnJvckRpYWxvZ0NvbXBvbmVudCxcbiAgICBGd0xlZ2FjeVBvcnRhbERpYWxvZ0NvbXBvbmVudCxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRndMZWdhY3lEaWFsb2dNb2R1bGUge1xufVxuIl19
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/material/dialog";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Legacy Vision: Please upgrade to the newer CdkDialogService
|
|
6
|
-
*/
|
|
7
|
-
export class FwLegacyDialogService {
|
|
8
|
-
constructor(matDialog) {
|
|
9
|
-
this.matDialog = matDialog;
|
|
10
|
-
this.dialogs = [];
|
|
11
|
-
this.config = new Map();
|
|
12
|
-
}
|
|
13
|
-
closeAll(component) {
|
|
14
|
-
if (component) {
|
|
15
|
-
this.dialogs
|
|
16
|
-
.filter((el) => el.component === component)
|
|
17
|
-
.forEach((el) => el.ref.close());
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
this.matDialog.closeAll();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
open(component, config) {
|
|
24
|
-
const index = this.dialogs.findIndex(el => el.component === component);
|
|
25
|
-
let ref = null;
|
|
26
|
-
const baseConfig = {
|
|
27
|
-
multi: 'allow',
|
|
28
|
-
...this.config.get(component),
|
|
29
|
-
};
|
|
30
|
-
switch (baseConfig.multi) {
|
|
31
|
-
case 'ignore':
|
|
32
|
-
// if an existing dialog of the same type doesn't exist, open one
|
|
33
|
-
if (index === -1) {
|
|
34
|
-
ref = this.matDialog.open(component, { ...baseConfig, ...config });
|
|
35
|
-
this.dialogs.push({ component, ref });
|
|
36
|
-
}
|
|
37
|
-
break;
|
|
38
|
-
case 'replace':
|
|
39
|
-
// if an existing dialog of the same type exists, replace it.
|
|
40
|
-
if (index > -1) {
|
|
41
|
-
this.dialogs[index].ref.close();
|
|
42
|
-
ref = this.matDialog.open(component, { ...baseConfig, ...config });
|
|
43
|
-
this.dialogs.splice(index, 1, { component, ref });
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
ref = this.matDialog.open(component, { ...baseConfig, ...config });
|
|
47
|
-
this.dialogs.push({ component, ref });
|
|
48
|
-
}
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
ref = this.matDialog.open(component, { ...baseConfig, ...config });
|
|
52
|
-
this.dialogs.push({ component, ref });
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
if (ref) {
|
|
56
|
-
ref.afterClosed().subscribe(() => {
|
|
57
|
-
// clean up open dialog reference
|
|
58
|
-
const index = this.dialogs.findIndex(el => el.ref === ref);
|
|
59
|
-
if (index >= 0) {
|
|
60
|
-
this.dialogs.splice(index, 1);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return ref;
|
|
65
|
-
}
|
|
66
|
-
registerDialog(component, config) {
|
|
67
|
-
this.config.set(component, config);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
FwLegacyDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogService, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
71
|
-
FwLegacyDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogService });
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FwLegacyDialogService, decorators: [{
|
|
73
|
-
type: Injectable
|
|
74
|
-
}], ctorParameters: function () { return [{ type: i1.MatDialog }]; } });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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