@sitecore-jss/sitecore-jss-angular 13.2.4 → 13.2.5-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -202
- package/README.md +5 -5
- package/dist/README.md +5 -5
- package/dist/bundles/sitecore-jss-sitecore-jss-angular.umd.js +1158 -1158
- package/dist/components/date.directive.d.ts +17 -17
- package/dist/components/file.directive.d.ts +14 -14
- package/dist/components/generic-link.directive.d.ts +14 -14
- package/dist/components/image.directive.d.ts +20 -20
- package/dist/components/link.directive.d.ts +18 -18
- package/dist/components/missing-component.component.d.ts +3 -3
- package/dist/components/placeholder-loading.directive.d.ts +5 -5
- package/dist/components/placeholder.component.d.ts +45 -45
- package/dist/components/placeholder.token.d.ts +24 -24
- package/dist/components/raw.component.d.ts +9 -9
- package/dist/components/render-component.component.d.ts +29 -29
- package/dist/components/render-each.directive.d.ts +5 -5
- package/dist/components/render-empty.directive.d.ts +5 -5
- package/dist/components/rendering-field.d.ts +20 -20
- package/dist/components/rendering.d.ts +2 -2
- package/dist/components/rich-text.directive.d.ts +12 -12
- package/dist/components/router-link.directive.d.ts +12 -12
- package/dist/components/text.directive.d.ts +13 -13
- package/dist/esm2015/components/date.directive.js +63 -63
- package/dist/esm2015/components/file.directive.js +44 -44
- package/dist/esm2015/components/generic-link.directive.js +67 -67
- package/dist/esm2015/components/image.directive.js +131 -131
- package/dist/esm2015/components/link.directive.js +92 -92
- package/dist/esm2015/components/missing-component.component.js +14 -14
- package/dist/esm2015/components/placeholder-loading.directive.js +16 -16
- package/dist/esm2015/components/placeholder.component.js +205 -205
- package/dist/esm2015/components/placeholder.token.js +14 -14
- package/dist/esm2015/components/raw.component.js +37 -37
- package/dist/esm2015/components/render-component.component.js +93 -93
- package/dist/esm2015/components/render-each.directive.js +17 -17
- package/dist/esm2015/components/render-empty.directive.js +17 -17
- package/dist/esm2015/components/rendering.js +3 -3
- package/dist/esm2015/components/rich-text.directive.js +45 -45
- package/dist/esm2015/components/router-link.directive.js +51 -51
- package/dist/esm2015/components/text.directive.js +61 -61
- package/dist/esm2015/jss-component-factory.service.js +85 -85
- package/dist/esm2015/layout-service-error.js +2 -2
- package/dist/esm2015/layout.service.js +32 -32
- package/dist/esm2015/lib.module.js +115 -115
- package/dist/esm2015/public_api.js +15 -15
- package/dist/esm2015/sitecore-jss-sitecore-jss-angular.js +12 -12
- package/dist/esm5/components/date.directive.js +65 -65
- package/dist/esm5/components/file.directive.js +45 -45
- package/dist/esm5/components/generic-link.directive.js +72 -72
- package/dist/esm5/components/image.directive.js +139 -139
- package/dist/esm5/components/link.directive.js +101 -101
- package/dist/esm5/components/missing-component.component.js +17 -17
- package/dist/esm5/components/placeholder-loading.directive.js +17 -17
- package/dist/esm5/components/placeholder.component.js +216 -216
- package/dist/esm5/components/placeholder.token.js +18 -18
- package/dist/esm5/components/raw.component.js +38 -38
- package/dist/esm5/components/render-component.component.js +103 -103
- package/dist/esm5/components/render-each.directive.js +18 -18
- package/dist/esm5/components/render-empty.directive.js +18 -18
- package/dist/esm5/components/rendering.js +3 -3
- package/dist/esm5/components/rich-text.directive.js +46 -46
- package/dist/esm5/components/router-link.directive.js +56 -56
- package/dist/esm5/components/text.directive.js +62 -62
- package/dist/esm5/jss-component-factory.service.js +89 -89
- package/dist/esm5/layout-service-error.js +6 -6
- package/dist/esm5/layout.service.js +36 -36
- package/dist/esm5/lib.module.js +118 -118
- package/dist/esm5/public_api.js +15 -15
- package/dist/esm5/sitecore-jss-sitecore-jss-angular.js +12 -12
- package/dist/fesm2015/sitecore-jss-sitecore-jss-angular.js +1083 -1083
- package/dist/fesm5/sitecore-jss-sitecore-jss-angular.js +1160 -1160
- package/dist/jss-component-factory.service.d.ts +19 -19
- package/dist/layout-service-error.d.ts +8 -8
- package/dist/layout.service.d.ts +8 -8
- package/dist/lib.module.d.ts +16 -16
- package/dist/package.json +2 -2
- package/dist/public_api.d.ts +16 -16
- package/dist/sitecore-jss-sitecore-jss-angular.d.ts +12 -12
- package/package.json +3 -3
- package/typings/README.md +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { DatePipe } from '@angular/common';
|
|
2
|
-
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import { TextField } from './rendering-field';
|
|
4
|
-
export declare class DateDirective implements OnChanges {
|
|
5
|
-
private viewContainer;
|
|
6
|
-
private templateRef;
|
|
7
|
-
private datePipe;
|
|
8
|
-
private viewRef;
|
|
9
|
-
format?: string;
|
|
10
|
-
timezone?: string;
|
|
11
|
-
locale?: string;
|
|
12
|
-
editable: boolean;
|
|
13
|
-
field: TextField;
|
|
14
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, datePipe: DatePipe);
|
|
15
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
-
private updateView;
|
|
17
|
-
}
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { TextField } from './rendering-field';
|
|
4
|
+
export declare class DateDirective implements OnChanges {
|
|
5
|
+
private viewContainer;
|
|
6
|
+
private templateRef;
|
|
7
|
+
private datePipe;
|
|
8
|
+
private viewRef;
|
|
9
|
+
format?: string;
|
|
10
|
+
timezone?: string;
|
|
11
|
+
locale?: string;
|
|
12
|
+
editable: boolean;
|
|
13
|
+
field: TextField;
|
|
14
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, datePipe: DatePipe);
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
private updateView;
|
|
17
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FileField } from './rendering-field';
|
|
3
|
-
/**
|
|
4
|
-
* File fields cannot be managed via the EE. We never output "editable."
|
|
5
|
-
*/
|
|
6
|
-
export declare class FileDirective implements OnChanges {
|
|
7
|
-
private viewContainer;
|
|
8
|
-
private templateRef;
|
|
9
|
-
private viewRef;
|
|
10
|
-
field: FileField;
|
|
11
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
|
|
12
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
-
private updateView;
|
|
14
|
-
}
|
|
1
|
+
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FileField } from './rendering-field';
|
|
3
|
+
/**
|
|
4
|
+
* File fields cannot be managed via the EE. We never output "editable."
|
|
5
|
+
*/
|
|
6
|
+
export declare class FileDirective implements OnChanges {
|
|
7
|
+
private viewContainer;
|
|
8
|
+
private templateRef;
|
|
9
|
+
private viewRef;
|
|
10
|
+
field: FileField;
|
|
11
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
|
|
12
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
+
private updateView;
|
|
14
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Router, NavigationExtras } from '@angular/router';
|
|
3
|
-
import { LinkDirective } from './link.directive';
|
|
4
|
-
import { LinkField } from './rendering-field';
|
|
5
|
-
export declare class GenericLinkDirective extends LinkDirective {
|
|
6
|
-
private router;
|
|
7
|
-
editable: boolean;
|
|
8
|
-
attrs: any;
|
|
9
|
-
field: LinkField;
|
|
10
|
-
extras?: NavigationExtras;
|
|
11
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef, router: Router);
|
|
12
|
-
protected renderTemplate(props: any, linkText: string): void;
|
|
13
|
-
private isAbsoluteUrl;
|
|
14
|
-
}
|
|
1
|
+
import { ElementRef, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Router, NavigationExtras } from '@angular/router';
|
|
3
|
+
import { LinkDirective } from './link.directive';
|
|
4
|
+
import { LinkField } from './rendering-field';
|
|
5
|
+
export declare class GenericLinkDirective extends LinkDirective {
|
|
6
|
+
private router;
|
|
7
|
+
editable: boolean;
|
|
8
|
+
attrs: any;
|
|
9
|
+
field: LinkField;
|
|
10
|
+
extras?: NavigationExtras;
|
|
11
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef, router: Router);
|
|
12
|
+
protected renderTemplate(props: any, linkText: string): void;
|
|
13
|
+
private isAbsoluteUrl;
|
|
14
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ImageField } from './rendering-field';
|
|
3
|
-
export declare class ImageDirective implements OnChanges {
|
|
4
|
-
private viewContainer;
|
|
5
|
-
private templateRef;
|
|
6
|
-
private renderer;
|
|
7
|
-
private elementRef;
|
|
8
|
-
private inlineRef;
|
|
9
|
-
field: ImageField | '';
|
|
10
|
-
editable: boolean;
|
|
11
|
-
urlParams: {};
|
|
12
|
-
attrs: {};
|
|
13
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef);
|
|
14
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
-
private updateView;
|
|
16
|
-
private getImageAttrs;
|
|
17
|
-
private renderTemplate;
|
|
18
|
-
private getElementAttrs;
|
|
19
|
-
private renderInlineWrapper;
|
|
20
|
-
}
|
|
1
|
+
import { ElementRef, OnChanges, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ImageField } from './rendering-field';
|
|
3
|
+
export declare class ImageDirective implements OnChanges {
|
|
4
|
+
private viewContainer;
|
|
5
|
+
private templateRef;
|
|
6
|
+
private renderer;
|
|
7
|
+
private elementRef;
|
|
8
|
+
private inlineRef;
|
|
9
|
+
field: ImageField | '';
|
|
10
|
+
editable: boolean;
|
|
11
|
+
urlParams: {};
|
|
12
|
+
attrs: {};
|
|
13
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef);
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
private updateView;
|
|
16
|
+
private getImageAttrs;
|
|
17
|
+
private renderTemplate;
|
|
18
|
+
private getElementAttrs;
|
|
19
|
+
private renderInlineWrapper;
|
|
20
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { LinkField } from './rendering-field';
|
|
3
|
-
export declare class LinkDirective implements OnChanges {
|
|
4
|
-
protected viewContainer: ViewContainerRef;
|
|
5
|
-
protected templateRef: TemplateRef<any>;
|
|
6
|
-
protected renderer: Renderer2;
|
|
7
|
-
private elementRef;
|
|
8
|
-
private inlineRef;
|
|
9
|
-
editable: boolean;
|
|
10
|
-
attrs: any;
|
|
11
|
-
field: LinkField;
|
|
12
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef);
|
|
13
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
private updateView;
|
|
15
|
-
protected renderTemplate(props: any, linkText: string): void;
|
|
16
|
-
private renderInlineWrapper;
|
|
17
|
-
private getElementAttrs;
|
|
18
|
-
}
|
|
1
|
+
import { ElementRef, OnChanges, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { LinkField } from './rendering-field';
|
|
3
|
+
export declare class LinkDirective implements OnChanges {
|
|
4
|
+
protected viewContainer: ViewContainerRef;
|
|
5
|
+
protected templateRef: TemplateRef<any>;
|
|
6
|
+
protected renderer: Renderer2;
|
|
7
|
+
private elementRef;
|
|
8
|
+
private inlineRef;
|
|
9
|
+
editable: boolean;
|
|
10
|
+
attrs: any;
|
|
11
|
+
field: LinkField;
|
|
12
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef);
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
private updateView;
|
|
15
|
+
protected renderTemplate(props: any, linkText: string): void;
|
|
16
|
+
private renderInlineWrapper;
|
|
17
|
+
private getElementAttrs;
|
|
18
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class MissingComponentComponent {
|
|
2
|
-
rendering: any;
|
|
3
|
-
}
|
|
1
|
+
export declare class MissingComponentComponent {
|
|
2
|
+
rendering: any;
|
|
3
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export declare class PlaceholderLoadingDirective {
|
|
3
|
-
templateRef: TemplateRef<any>;
|
|
4
|
-
constructor(templateRef: TemplateRef<any>);
|
|
5
|
-
}
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
export declare class PlaceholderLoadingDirective {
|
|
3
|
+
templateRef: TemplateRef<any>;
|
|
4
|
+
constructor(templateRef: TemplateRef<any>);
|
|
5
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ComponentFactoryResolver, DoCheck, ElementRef, EventEmitter, KeyValueDiffers, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, Type } from '@angular/core';
|
|
2
|
-
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
3
|
-
import { JssComponentFactoryService } from '../jss-component-factory.service';
|
|
4
|
-
import { PlaceholderLoadingDirective } from './placeholder-loading.directive';
|
|
5
|
-
import { RenderEachDirective } from './render-each.directive';
|
|
6
|
-
import { RenderEmptyDirective } from './render-empty.directive';
|
|
7
|
-
export declare class PlaceholderComponent implements OnInit, OnChanges, DoCheck, OnDestroy {
|
|
8
|
-
private componentFactoryResolver;
|
|
9
|
-
private differs;
|
|
10
|
-
private componentFactory;
|
|
11
|
-
private changeDetectorRef;
|
|
12
|
-
private elementRef;
|
|
13
|
-
private renderer;
|
|
14
|
-
private missingComponentComponent;
|
|
15
|
-
private _inputs;
|
|
16
|
-
private _differ;
|
|
17
|
-
private _componentInstances;
|
|
18
|
-
private destroyed;
|
|
19
|
-
private parentStyleAttribute;
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
name?: string;
|
|
22
|
-
rendering: ComponentRendering;
|
|
23
|
-
renderings?: Array<ComponentRendering | HtmlElementRendering>;
|
|
24
|
-
outputs: {
|
|
25
|
-
[k: string]: (eventType: any) => void;
|
|
26
|
-
};
|
|
27
|
-
loaded: EventEmitter<string>;
|
|
28
|
-
private view;
|
|
29
|
-
renderEachTemplate: RenderEachDirective;
|
|
30
|
-
renderEmptyTemplate: RenderEmptyDirective;
|
|
31
|
-
placeholderLoading?: PlaceholderLoadingDirective;
|
|
32
|
-
inputs: {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
};
|
|
35
|
-
constructor(componentFactoryResolver: ComponentFactoryResolver, differs: KeyValueDiffers, componentFactory: JssComponentFactoryService, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, renderer: Renderer2, missingComponentComponent: Type<any>);
|
|
36
|
-
ngOnInit(): void;
|
|
37
|
-
ngOnDestroy(): void;
|
|
38
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
-
ngDoCheck(): void;
|
|
40
|
-
private _setComponentInputs;
|
|
41
|
-
private _subscribeComponentOutputs;
|
|
42
|
-
private _render;
|
|
43
|
-
private _renderTemplatedComponent;
|
|
44
|
-
private _renderEmbeddedComponent;
|
|
45
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, ComponentFactoryResolver, DoCheck, ElementRef, EventEmitter, KeyValueDiffers, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, Type } from '@angular/core';
|
|
2
|
+
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
3
|
+
import { JssComponentFactoryService } from '../jss-component-factory.service';
|
|
4
|
+
import { PlaceholderLoadingDirective } from './placeholder-loading.directive';
|
|
5
|
+
import { RenderEachDirective } from './render-each.directive';
|
|
6
|
+
import { RenderEmptyDirective } from './render-empty.directive';
|
|
7
|
+
export declare class PlaceholderComponent implements OnInit, OnChanges, DoCheck, OnDestroy {
|
|
8
|
+
private componentFactoryResolver;
|
|
9
|
+
private differs;
|
|
10
|
+
private componentFactory;
|
|
11
|
+
private changeDetectorRef;
|
|
12
|
+
private elementRef;
|
|
13
|
+
private renderer;
|
|
14
|
+
private missingComponentComponent;
|
|
15
|
+
private _inputs;
|
|
16
|
+
private _differ;
|
|
17
|
+
private _componentInstances;
|
|
18
|
+
private destroyed;
|
|
19
|
+
private parentStyleAttribute;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
name?: string;
|
|
22
|
+
rendering: ComponentRendering;
|
|
23
|
+
renderings?: Array<ComponentRendering | HtmlElementRendering>;
|
|
24
|
+
outputs: {
|
|
25
|
+
[k: string]: (eventType: any) => void;
|
|
26
|
+
};
|
|
27
|
+
loaded: EventEmitter<string>;
|
|
28
|
+
private view;
|
|
29
|
+
renderEachTemplate: RenderEachDirective;
|
|
30
|
+
renderEmptyTemplate: RenderEmptyDirective;
|
|
31
|
+
placeholderLoading?: PlaceholderLoadingDirective;
|
|
32
|
+
inputs: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, differs: KeyValueDiffers, componentFactory: JssComponentFactoryService, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, renderer: Renderer2, missingComponentComponent: Type<any>);
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
+
ngDoCheck(): void;
|
|
40
|
+
private _setComponentInputs;
|
|
41
|
+
private _subscribeComponentOutputs;
|
|
42
|
+
private _render;
|
|
43
|
+
private _renderTemplatedComponent;
|
|
44
|
+
private _renderEmbeddedComponent;
|
|
45
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { InjectionToken, Type } from '@angular/core';
|
|
2
|
-
/** Registers a statically loaded component */
|
|
3
|
-
export declare class ComponentNameAndType {
|
|
4
|
-
name: string;
|
|
5
|
-
type: Type<any>;
|
|
6
|
-
}
|
|
7
|
-
/** Registers a lazily loaded component by name and module to lazy load when it's needed */
|
|
8
|
-
export interface ComponentNameAndModule {
|
|
9
|
-
/** Name of the component */
|
|
10
|
-
path: string;
|
|
11
|
-
/**
|
|
12
|
-
* Dynamic import of the component,
|
|
13
|
-
* e.g. () => import('./path/to/lazyloadedcomponent.module').then(m => m.LazyLoadedComponentModuleExportName)
|
|
14
|
-
*/
|
|
15
|
-
loadChildren: () => Promise<any>;
|
|
16
|
-
}
|
|
17
|
-
export declare function instanceOfComponentNameAndType(object: any): object is ComponentNameAndType;
|
|
18
|
-
export declare function instanceOfComponentNameAndModule(object: any): object is ComponentNameAndModule;
|
|
19
|
-
export declare const PLACEHOLDER_COMPONENTS: InjectionToken<ComponentNameAndType[]>;
|
|
20
|
-
export declare const PLACEHOLDER_LAZY_COMPONENTS: InjectionToken<ComponentNameAndType[]>;
|
|
21
|
-
export declare const PLACEHOLDER_MISSING_COMPONENT_COMPONENT: InjectionToken<Type<any>>;
|
|
22
|
-
export declare const DYNAMIC_COMPONENT: InjectionToken<Type<any> | {
|
|
23
|
-
[s: string]: any;
|
|
24
|
-
}>;
|
|
1
|
+
import { InjectionToken, Type } from '@angular/core';
|
|
2
|
+
/** Registers a statically loaded component */
|
|
3
|
+
export declare class ComponentNameAndType {
|
|
4
|
+
name: string;
|
|
5
|
+
type: Type<any>;
|
|
6
|
+
}
|
|
7
|
+
/** Registers a lazily loaded component by name and module to lazy load when it's needed */
|
|
8
|
+
export interface ComponentNameAndModule {
|
|
9
|
+
/** Name of the component */
|
|
10
|
+
path: string;
|
|
11
|
+
/**
|
|
12
|
+
* Dynamic import of the component,
|
|
13
|
+
* e.g. () => import('./path/to/lazyloadedcomponent.module').then(m => m.LazyLoadedComponentModuleExportName)
|
|
14
|
+
*/
|
|
15
|
+
loadChildren: () => Promise<any>;
|
|
16
|
+
}
|
|
17
|
+
export declare function instanceOfComponentNameAndType(object: any): object is ComponentNameAndType;
|
|
18
|
+
export declare function instanceOfComponentNameAndModule(object: any): object is ComponentNameAndModule;
|
|
19
|
+
export declare const PLACEHOLDER_COMPONENTS: InjectionToken<ComponentNameAndType[]>;
|
|
20
|
+
export declare const PLACEHOLDER_LAZY_COMPONENTS: InjectionToken<ComponentNameAndType[]>;
|
|
21
|
+
export declare const PLACEHOLDER_MISSING_COMPONENT_COMPONENT: InjectionToken<Type<any>>;
|
|
22
|
+
export declare const DYNAMIC_COMPONENT: InjectionToken<Type<any> | {
|
|
23
|
+
[s: string]: any;
|
|
24
|
+
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import { HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
3
|
-
export declare class RawComponent implements OnInit {
|
|
4
|
-
private renderer;
|
|
5
|
-
private elementRef;
|
|
6
|
-
rendering: HtmlElementRendering;
|
|
7
|
-
constructor(renderer: Renderer2, elementRef: ElementRef);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
}
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
3
|
+
export declare class RawComponent implements OnInit {
|
|
4
|
+
private renderer;
|
|
5
|
+
private elementRef;
|
|
6
|
+
rendering: HtmlElementRendering;
|
|
7
|
+
constructor(renderer: Renderer2, elementRef: ElementRef);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, KeyValueDiffers, OnChanges, SimpleChanges, Type } from '@angular/core';
|
|
2
|
-
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
3
|
-
import { JssComponentFactoryService } from '../jss-component-factory.service';
|
|
4
|
-
/**
|
|
5
|
-
* Renders a single JSS component given a rendering definition.
|
|
6
|
-
* Useful inside templated placeholders.
|
|
7
|
-
*/
|
|
8
|
-
export declare class RenderComponentComponent implements OnChanges {
|
|
9
|
-
private componentFactoryResolver;
|
|
10
|
-
private differs;
|
|
11
|
-
private componentFactory;
|
|
12
|
-
private missingComponentComponent;
|
|
13
|
-
private _inputs;
|
|
14
|
-
private _differ;
|
|
15
|
-
private destroyed;
|
|
16
|
-
rendering: ComponentRendering | HtmlElementRendering;
|
|
17
|
-
outputs: {
|
|
18
|
-
[k: string]: (eventType: any) => void;
|
|
19
|
-
};
|
|
20
|
-
private view;
|
|
21
|
-
inputs: {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
|
-
constructor(componentFactoryResolver: ComponentFactoryResolver, differs: KeyValueDiffers, componentFactory: JssComponentFactoryService, missingComponentComponent: Type<any>);
|
|
25
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
26
|
-
private _setComponentInputs;
|
|
27
|
-
private _subscribeComponentOutputs;
|
|
28
|
-
private _render;
|
|
29
|
-
}
|
|
1
|
+
import { ComponentFactoryResolver, KeyValueDiffers, OnChanges, SimpleChanges, Type } from '@angular/core';
|
|
2
|
+
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
3
|
+
import { JssComponentFactoryService } from '../jss-component-factory.service';
|
|
4
|
+
/**
|
|
5
|
+
* Renders a single JSS component given a rendering definition.
|
|
6
|
+
* Useful inside templated placeholders.
|
|
7
|
+
*/
|
|
8
|
+
export declare class RenderComponentComponent implements OnChanges {
|
|
9
|
+
private componentFactoryResolver;
|
|
10
|
+
private differs;
|
|
11
|
+
private componentFactory;
|
|
12
|
+
private missingComponentComponent;
|
|
13
|
+
private _inputs;
|
|
14
|
+
private _differ;
|
|
15
|
+
private destroyed;
|
|
16
|
+
rendering: ComponentRendering | HtmlElementRendering;
|
|
17
|
+
outputs: {
|
|
18
|
+
[k: string]: (eventType: any) => void;
|
|
19
|
+
};
|
|
20
|
+
private view;
|
|
21
|
+
inputs: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, differs: KeyValueDiffers, componentFactory: JssComponentFactoryService, missingComponentComponent: Type<any>);
|
|
25
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
26
|
+
private _setComponentInputs;
|
|
27
|
+
private _subscribeComponentOutputs;
|
|
28
|
+
private _render;
|
|
29
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export declare class RenderEachDirective {
|
|
3
|
-
templateRef: TemplateRef<any>;
|
|
4
|
-
constructor(templateRef: TemplateRef<any>);
|
|
5
|
-
}
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
export declare class RenderEachDirective {
|
|
3
|
+
templateRef: TemplateRef<any>;
|
|
4
|
+
constructor(templateRef: TemplateRef<any>);
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export declare class RenderEmptyDirective {
|
|
3
|
-
templateRef: TemplateRef<any>;
|
|
4
|
-
constructor(templateRef: TemplateRef<any>);
|
|
5
|
-
}
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
export declare class RenderEmptyDirective {
|
|
3
|
+
templateRef: TemplateRef<any>;
|
|
4
|
+
constructor(templateRef: TemplateRef<any>);
|
|
5
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface RenderingField {
|
|
2
|
-
value?: any;
|
|
3
|
-
editable?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface FileField extends RenderingField {
|
|
6
|
-
src?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ImageField extends RenderingField {
|
|
9
|
-
src?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface LinkField extends RenderingField {
|
|
12
|
-
href?: string;
|
|
13
|
-
text?: string;
|
|
14
|
-
editableFirstPart?: string;
|
|
15
|
-
editableLastPart?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface RichTextField extends RenderingField {
|
|
18
|
-
}
|
|
19
|
-
export interface TextField extends RenderingField {
|
|
20
|
-
}
|
|
1
|
+
export interface RenderingField {
|
|
2
|
+
value?: any;
|
|
3
|
+
editable?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface FileField extends RenderingField {
|
|
6
|
+
src?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ImageField extends RenderingField {
|
|
9
|
+
src?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LinkField extends RenderingField {
|
|
12
|
+
href?: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
editableFirstPart?: string;
|
|
15
|
+
editableLastPart?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface RichTextField extends RenderingField {
|
|
18
|
+
}
|
|
19
|
+
export interface TextField extends RenderingField {
|
|
20
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
2
|
-
export declare function isRawRendering(rendering: HtmlElementRendering | ComponentRendering): rendering is HtmlElementRendering;
|
|
1
|
+
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
|
|
2
|
+
export declare function isRawRendering(rendering: HtmlElementRendering | ComponentRendering): rendering is HtmlElementRendering;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { RichTextField } from './rendering-field';
|
|
3
|
-
export declare class RichTextDirective implements OnChanges {
|
|
4
|
-
private viewContainer;
|
|
5
|
-
private templateRef;
|
|
6
|
-
private viewRef;
|
|
7
|
-
editable: boolean;
|
|
8
|
-
field: RichTextField;
|
|
9
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
|
|
10
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
11
|
-
private updateView;
|
|
12
|
-
}
|
|
1
|
+
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { RichTextField } from './rendering-field';
|
|
3
|
+
export declare class RichTextDirective implements OnChanges {
|
|
4
|
+
private viewContainer;
|
|
5
|
+
private templateRef;
|
|
6
|
+
private viewRef;
|
|
7
|
+
editable: boolean;
|
|
8
|
+
field: RichTextField;
|
|
9
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
|
|
10
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
11
|
+
private updateView;
|
|
12
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { LinkDirective } from './link.directive';
|
|
4
|
-
import { LinkField } from './rendering-field';
|
|
5
|
-
export declare class RouterLinkDirective extends LinkDirective {
|
|
6
|
-
private router;
|
|
7
|
-
editable: boolean;
|
|
8
|
-
attrs: any;
|
|
9
|
-
field: LinkField;
|
|
10
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef, router: Router);
|
|
11
|
-
protected renderTemplate(props: any, linkText: string): void;
|
|
12
|
-
}
|
|
1
|
+
import { ElementRef, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { LinkDirective } from './link.directive';
|
|
4
|
+
import { LinkField } from './rendering-field';
|
|
5
|
+
export declare class RouterLinkDirective extends LinkDirective {
|
|
6
|
+
private router;
|
|
7
|
+
editable: boolean;
|
|
8
|
+
attrs: any;
|
|
9
|
+
field: LinkField;
|
|
10
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, renderer: Renderer2, elementRef: ElementRef, router: Router);
|
|
11
|
+
protected renderTemplate(props: any, linkText: string): void;
|
|
12
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { TextField } from './rendering-field';
|
|
3
|
-
export declare class TextDirective implements OnChanges {
|
|
4
|
-
private viewContainer;
|
|
5
|
-
private templateRef;
|
|
6
|
-
private viewRef;
|
|
7
|
-
editable: boolean;
|
|
8
|
-
encode: boolean;
|
|
9
|
-
field: TextField;
|
|
10
|
-
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
|
|
11
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
-
private updateView;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TextField } from './rendering-field';
|
|
3
|
+
export declare class TextDirective implements OnChanges {
|
|
4
|
+
private viewContainer;
|
|
5
|
+
private templateRef;
|
|
6
|
+
private viewRef;
|
|
7
|
+
editable: boolean;
|
|
8
|
+
encode: boolean;
|
|
9
|
+
field: TextField;
|
|
10
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
private updateView;
|
|
13
|
+
}
|