@dso-toolkit/angular 52.0.3 → 53.1.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/esm2020/dso-toolkit-angular.mjs +4 -4
- package/esm2020/lib/component-library.module.mjs +23 -17
- package/esm2020/lib/components/modal-container/modal-container.component.mjs +53 -0
- package/esm2020/lib/components/modal-controller-demo/modal-controller-demo.component.mjs +54 -0
- package/esm2020/lib/controllers/modal/index.mjs +3 -0
- package/esm2020/lib/controllers/modal/modal-ref.mjs +15 -0
- package/esm2020/lib/controllers/modal/modal.controller.mjs +39 -0
- package/esm2020/lib/models/modal.models.mjs +2 -0
- package/esm2020/lib/stencil-generated/angular-component-lib/utils.mjs +71 -71
- package/esm2020/lib/stencil-generated/components.mjs +1294 -1232
- package/esm2020/lib/stencil-generated/index.mjs +46 -44
- package/esm2020/public-api.mjs +10 -7
- package/fesm2015/dso-toolkit-angular.mjs +1524 -1307
- package/fesm2015/dso-toolkit-angular.mjs.map +1 -1
- package/fesm2020/dso-toolkit-angular.mjs +1524 -1307
- package/fesm2020/dso-toolkit-angular.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/component-library.module.d.ts +10 -7
- package/lib/components/modal-container/modal-container.component.d.ts +15 -0
- package/lib/components/modal-controller-demo/modal-controller-demo.component.d.ts +21 -0
- package/lib/controllers/modal/index.d.ts +2 -0
- package/lib/controllers/modal/modal-ref.d.ts +10 -0
- package/lib/controllers/modal/modal.controller.d.ts +13 -0
- package/lib/models/modal.models.d.ts +13 -0
- package/lib/stencil-generated/angular-component-lib/utils.d.ts +10 -10
- package/lib/stencil-generated/components.d.ts +562 -539
- package/lib/stencil-generated/index.d.ts +2 -2
- package/package.json +3 -2
- package/public-api.d.ts +6 -3
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./stencil-generated/components";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stencil-generated/components";
|
|
3
|
+
import * as i2 from "./components/modal-container/modal-container.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/cdk/dialog";
|
|
6
|
+
export declare class DsoToolkitModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DsoToolkitModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DsoToolkitModule, [typeof i1.DsoAccordion, typeof i1.DsoAccordionSection, typeof i1.DsoActionList, typeof i1.DsoActionListItem, typeof i1.DsoAlert, typeof i1.DsoAnnotationButton, typeof i1.DsoAnnotationOutput, typeof i1.DsoAttachmentsCounter, typeof i1.DsoAutosuggest, typeof i1.DsoBadge, typeof i1.DsoBanner, typeof i1.DsoCard, typeof i1.DsoCardContainer, typeof i1.DsoDatePicker, typeof i1.DsoDropdownMenu, typeof i1.DsoExpandable, typeof i1.DsoExpandableHeading, typeof i1.DsoHeader, typeof i1.DsoHelpcenterPanel, typeof i1.DsoHighlightBox, typeof i1.DsoIcon, typeof i1.DsoImageOverlay, typeof i1.DsoInfo, typeof i1.DsoInfoButton, typeof i1.DsoLabel, typeof i1.DsoListButton, typeof i1.DsoMapBaseLayers, typeof i1.DsoMapControls, typeof i1.DsoMapOverlays, typeof i1.DsoModal, typeof i1.DsoOzonContent, typeof i1.DsoPagination, typeof i1.DsoProgressBar, typeof i1.DsoProgressIndicator, typeof i1.DsoResponsiveElement, typeof i1.DsoSelectable, typeof i1.DsoSlideToggle, typeof i1.DsoTable, typeof i1.DsoToggletip, typeof i1.DsoTooltip, typeof i1.DsoTreeView, typeof i1.DsoViewerGrid, typeof i2.DsoModalContainer], [typeof i3.CommonModule, typeof i4.DialogModule], [typeof i1.DsoAccordion, typeof i1.DsoAccordionSection, typeof i1.DsoActionList, typeof i1.DsoActionListItem, typeof i1.DsoAlert, typeof i1.DsoAnnotationButton, typeof i1.DsoAnnotationOutput, typeof i1.DsoAttachmentsCounter, typeof i1.DsoAutosuggest, typeof i1.DsoBadge, typeof i1.DsoBanner, typeof i1.DsoCard, typeof i1.DsoCardContainer, typeof i1.DsoDatePicker, typeof i1.DsoDropdownMenu, typeof i1.DsoExpandable, typeof i1.DsoExpandableHeading, typeof i1.DsoHeader, typeof i1.DsoHelpcenterPanel, typeof i1.DsoHighlightBox, typeof i1.DsoIcon, typeof i1.DsoImageOverlay, typeof i1.DsoInfo, typeof i1.DsoInfoButton, typeof i1.DsoLabel, typeof i1.DsoListButton, typeof i1.DsoMapBaseLayers, typeof i1.DsoMapControls, typeof i1.DsoMapOverlays, typeof i1.DsoModal, typeof i1.DsoOzonContent, typeof i1.DsoPagination, typeof i1.DsoProgressBar, typeof i1.DsoProgressIndicator, typeof i1.DsoResponsiveElement, typeof i1.DsoSelectable, typeof i1.DsoSlideToggle, typeof i1.DsoTable, typeof i1.DsoToggletip, typeof i1.DsoTooltip, typeof i1.DsoTreeView, typeof i1.DsoViewerGrid]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DsoToolkitModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentPortal, TemplatePortal } from "@angular/cdk/portal";
|
|
2
|
+
import { EventEmitter, ViewContainerRef } from "@angular/core";
|
|
3
|
+
import { DsoModalCloseEvent } from "@dso-toolkit/core";
|
|
4
|
+
import { ModalOptions } from "../../models/modal.models";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DsoModalContainer {
|
|
7
|
+
viewContainerRef: ViewContainerRef;
|
|
8
|
+
title?: string;
|
|
9
|
+
options?: ModalOptions;
|
|
10
|
+
bodyPortalRef?: ComponentPortal<unknown> | TemplatePortal<unknown>;
|
|
11
|
+
footerPortalRef?: ComponentPortal<unknown> | TemplatePortal<unknown>;
|
|
12
|
+
dsoClose: EventEmitter<DsoModalCloseEvent>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DsoModalContainer, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DsoModalContainer, "dso-modal-container", never, { "title": "title"; "options": "options"; "bodyPortalRef": "bodyPortalRef"; "footerPortalRef": "footerPortalRef"; }, { "dsoClose": "dsoClose"; }, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef, Type } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** This component is used to demo the DsoModalController for angular */
|
|
4
|
+
export declare class ModalControllerDemo {
|
|
5
|
+
private controller;
|
|
6
|
+
private modalRef?;
|
|
7
|
+
body?: Type<unknown> | TemplateRef<unknown>;
|
|
8
|
+
footer?: Type<unknown> | TemplateRef<unknown>;
|
|
9
|
+
modalTitle?: string;
|
|
10
|
+
showCloseButton: boolean;
|
|
11
|
+
dsoClose: EventEmitter<any>;
|
|
12
|
+
open(): void;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalControllerDemo, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalControllerDemo, "modal-controller-demo", never, { "body": "body"; "footer": "footer"; "modalTitle": "modalTitle"; "showCloseButton": "showCloseButton"; }, { "dsoClose": "dsoClose"; }, never, never, false, never>;
|
|
16
|
+
}
|
|
17
|
+
/** This component is used to demo passing a Type<unknown> as the body for the DsoModalController for angular */
|
|
18
|
+
export declare class ModalDemoContentComponent {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalDemoContentComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalDemoContentComponent, "modal-demo-content-component", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DialogRef } from "@angular/cdk/dialog";
|
|
2
|
+
import { DsoModalContainer } from "../../components/modal-container/modal-container.component";
|
|
3
|
+
import { EventEmitter } from "@angular/core";
|
|
4
|
+
import { DsoModalCloseEvent } from "@dso-toolkit/core";
|
|
5
|
+
export declare class DsoModalRef {
|
|
6
|
+
private dialogRef;
|
|
7
|
+
constructor(dialogRef: DialogRef<unknown, DsoModalContainer>);
|
|
8
|
+
close(): void;
|
|
9
|
+
onDsoClose(): EventEmitter<DsoModalCloseEvent>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModalContent, ModalOptions } from "../../models/modal.models";
|
|
2
|
+
import { DsoModalRef } from "./modal-ref";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ModalConfig {
|
|
5
|
+
data?: Record<string, unknown>;
|
|
6
|
+
options?: ModalOptions;
|
|
7
|
+
}
|
|
8
|
+
export declare class DsoModalController {
|
|
9
|
+
private cdkDialog;
|
|
10
|
+
open({ title, body, footer }: ModalContent, config?: ModalConfig): DsoModalRef;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DsoModalController, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DsoModalController>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TemplateRef, Type } from "@angular/core";
|
|
2
|
+
export declare type ModalRole = "dialog" | "alert" | "alertDialog";
|
|
3
|
+
export declare type AllowedModalContentTypes = Type<unknown> | TemplateRef<unknown>;
|
|
4
|
+
export interface ModalContent {
|
|
5
|
+
title?: string;
|
|
6
|
+
body: AllowedModalContentTypes;
|
|
7
|
+
footer?: AllowedModalContentTypes;
|
|
8
|
+
}
|
|
9
|
+
export interface ModalOptions {
|
|
10
|
+
role?: ModalRole;
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
initialFocus?: string;
|
|
13
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
-
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
-
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
-
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
5
|
-
export declare const clearAngularOutputBindings: (cls: any) => void;
|
|
6
|
-
export declare function ProxyCmp(opts: {
|
|
7
|
-
defineCustomElementFn?: () => void;
|
|
8
|
-
inputs?: any;
|
|
9
|
-
methods?: any;
|
|
10
|
-
}): (cls: any) => any;
|
|
1
|
+
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
+
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
+
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
5
|
+
export declare const clearAngularOutputBindings: (cls: any) => void;
|
|
6
|
+
export declare function ProxyCmp(opts: {
|
|
7
|
+
defineCustomElementFn?: () => void;
|
|
8
|
+
inputs?: any;
|
|
9
|
+
methods?: any;
|
|
10
|
+
}): (cls: any) => any;
|