@sitecore-jss/sitecore-jss-angular 23.0.0-canary.8 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -202
- package/README.md +10 -10
- package/angular.json +47 -47
- package/dist/README.md +10 -10
- package/dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs +55 -501
- package/dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs.map +1 -1
- package/dist/index.d.ts +17 -158
- package/ng-package.json +13 -13
- package/package.json +3 -4
- package/tsconfig.json +10 -10
- package/tsconfig.spec.json +18 -18
- package/typings/README.md +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, SimpleChanges, ViewContainerRef, EmbeddedViewRef, TemplateRef,
|
|
3
|
-
import { GenericFieldValue,
|
|
4
|
-
export { ComponentFields, ComponentParams, ComponentRendering,
|
|
5
|
-
import { MetadataKind, EditFrameDataSource, EditButtonTypes } from '@sitecore-jss/sitecore-jss/editing';
|
|
6
|
-
export { DefaultEditFrameButton, DefaultEditFrameButtons, EditFrameDataSource, FieldEditButton, WebEditButton, handleEditorAnchors, isEditorActive, resetEditorChromes } from '@sitecore-jss/sitecore-jss/editing';
|
|
2
|
+
import { OnChanges, SimpleChanges, ViewContainerRef, EmbeddedViewRef, TemplateRef, Renderer2, Type, InjectionToken, OnInit, DoCheck, OnDestroy, EventEmitter, TransferState, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { GenericFieldValue, ComponentRendering, HtmlElementRendering, LayoutServiceContextData, RouteData } from '@sitecore-jss/sitecore-jss/layout';
|
|
4
|
+
export { ComponentFields, ComponentParams, ComponentRendering, Field, GraphQLLayoutService, HtmlElementRendering, LayoutService, LayoutServiceContext, LayoutServiceContextData, LayoutServiceData, LayoutServicePageState, PlaceholdersData, RestLayoutService, RouteData, getChildPlaceholder, getFieldValue } from '@sitecore-jss/sitecore-jss/layout';
|
|
7
5
|
import { NavigationExtras, ActivatedRouteSnapshot, RouterStateSnapshot, Router, UrlTree, RedirectCommand } from '@angular/router';
|
|
6
|
+
import { EditFrameDataSource, EditButtonTypes } from '@sitecore-jss/sitecore-jss/editing';
|
|
7
|
+
export { DefaultEditFrameButton, DefaultEditFrameButtons, EditFrameDataSource, FieldEditButton, WebEditButton, handleEditorAnchors, isEditorActive, resetEditorChromes } from '@sitecore-jss/sitecore-jss/editing';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import * as i1 from '@angular/common';
|
|
10
10
|
export { mediaApi } from '@sitecore-jss/sitecore-jss/media';
|
|
11
11
|
export { DictionaryPhrases, DictionaryService, GraphQLDictionaryService, RestDictionaryService } from '@sitecore-jss/sitecore-jss/i18n';
|
|
12
|
-
export { DefaultRetryStrategy, GraphQLClientError, GraphQLRequestClient, GraphQLRequestClientFactoryConfig, RetryStrategy
|
|
12
|
+
export { DefaultRetryStrategy, GraphQLClientError, GraphQLRequestClient, GraphQLRequestClientFactoryConfig, RetryStrategy } from '@sitecore-jss/sitecore-jss/graphql';
|
|
13
13
|
export { CacheClient, CacheOptions, ClientError, HTMLLink, HttpDataFetcher, HttpResponse, MemoryCacheClient, NativeDataFetcher, NativeDataFetcherConfig, NativeDataFetcherError, NativeDataFetcherResponse, constants, debug, enableDebug } from '@sitecore-jss/sitecore-jss';
|
|
14
|
-
export { CdpHelper, DEFAULT_VARIANT, GraphQLPersonalizeService, GraphQLPersonalizeServiceConfig, PersonalizeInfo, getGroomedVariantIds, personalizeLayout } from '@sitecore-jss/sitecore-jss/personalize';
|
|
15
14
|
export { isServer } from '@sitecore-jss/sitecore-jss/utils';
|
|
16
15
|
export { CampaignInstance, EventInstance, GoalInstance, OutcomeInstance, PageViewInstance, TrackingRequestOptions, trackingApi } from '@sitecore-jss/sitecore-jss/tracking';
|
|
17
16
|
|
|
18
|
-
interface RenderingField<V = GenericFieldValue>
|
|
17
|
+
interface RenderingField<V = GenericFieldValue> {
|
|
19
18
|
value?: V;
|
|
20
19
|
editable?: string;
|
|
21
20
|
}
|
|
@@ -76,28 +75,11 @@ declare abstract class BaseFieldDirective {
|
|
|
76
75
|
protected viewRef: EmbeddedViewRef<unknown>;
|
|
77
76
|
protected abstract field: RenderingField<GenericFieldValue>;
|
|
78
77
|
protected abstract editable: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
81
|
-
*/
|
|
82
|
-
protected abstract emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
83
|
-
/**
|
|
84
|
-
* Default component to render in Pages in Metadata edit mode if field value is empty and emptyFieldEditingTemplate is not provided
|
|
85
|
-
*/
|
|
86
|
-
protected abstract defaultFieldEditingComponent: Type<unknown>;
|
|
87
78
|
/**
|
|
88
79
|
* Determines if directive should render the field as is
|
|
89
80
|
* Returns true if we are in edit mode 'chromes' (field.editable is present) or field is not empty
|
|
90
81
|
*/
|
|
91
82
|
protected shouldRender(): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Renders the empty field markup which is required by Pages in editMode 'metadata' in case field is empty.
|
|
94
|
-
*/
|
|
95
|
-
protected renderEmpty(): void;
|
|
96
|
-
/**
|
|
97
|
-
* Renders a metadata chrome marker for the field. Required by Pages in editMode 'metadata'.
|
|
98
|
-
* @param {string} kind - 'open' or 'close' to indicate the start or end of the metadata chrome
|
|
99
|
-
*/
|
|
100
|
-
protected renderMetadata(kind: MetadataKind): void;
|
|
101
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFieldDirective, never>;
|
|
102
84
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFieldDirective, never, never, {}, {}, never, never, true, never>;
|
|
103
85
|
}
|
|
@@ -119,14 +101,6 @@ declare class ImageDirective extends BaseFieldDirective implements OnChanges {
|
|
|
119
101
|
attrs: {
|
|
120
102
|
[param: string]: unknown;
|
|
121
103
|
};
|
|
122
|
-
/**
|
|
123
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
124
|
-
*/
|
|
125
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
126
|
-
/**
|
|
127
|
-
* Default component to render in Pages in Metadata edit mode if field value is empty and emptyFieldEditingTemplate is not provided
|
|
128
|
-
*/
|
|
129
|
-
protected defaultFieldEditingComponent: Type<unknown>;
|
|
130
104
|
private inlineRef;
|
|
131
105
|
private templateRef;
|
|
132
106
|
private renderer;
|
|
@@ -138,7 +112,7 @@ declare class ImageDirective extends BaseFieldDirective implements OnChanges {
|
|
|
138
112
|
private getElementAttrs;
|
|
139
113
|
private renderInlineWrapper;
|
|
140
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageDirective, never>;
|
|
141
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageDirective, "[scImage]", never, { "field": { "alias": "scImage"; "required": false; }; "editable": { "alias": "scImageEditable"; "required": false; }; "mediaUrlPrefix": { "alias": "scImageMediaUrlPrefix"; "required": false; }; "urlParams": { "alias": "scImageUrlParams"; "required": false; }; "attrs": { "alias": "scImageAttrs"; "required": false; };
|
|
115
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageDirective, "[scImage]", never, { "field": { "alias": "scImage"; "required": false; }; "editable": { "alias": "scImageEditable"; "required": false; }; "mediaUrlPrefix": { "alias": "scImageMediaUrlPrefix"; "required": false; }; "urlParams": { "alias": "scImageUrlParams"; "required": false; }; "attrs": { "alias": "scImageAttrs"; "required": false; }; }, {}, never, never, true, never>;
|
|
142
116
|
}
|
|
143
117
|
|
|
144
118
|
declare class LinkDirective extends BaseFieldDirective implements OnChanges {
|
|
@@ -147,14 +121,6 @@ declare class LinkDirective extends BaseFieldDirective implements OnChanges {
|
|
|
147
121
|
[attr: string]: string;
|
|
148
122
|
};
|
|
149
123
|
field: LinkField;
|
|
150
|
-
/**
|
|
151
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
152
|
-
*/
|
|
153
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
154
|
-
/**
|
|
155
|
-
* Default component to render in Pages in Metadata edit mode if field value is empty and emptyFieldEditingTemplate is not provided
|
|
156
|
-
*/
|
|
157
|
-
protected defaultFieldEditingComponent: Type<unknown>;
|
|
158
124
|
protected templateRef: TemplateRef<any>;
|
|
159
125
|
protected renderer: Renderer2;
|
|
160
126
|
private inlineRef;
|
|
@@ -167,7 +133,7 @@ declare class LinkDirective extends BaseFieldDirective implements OnChanges {
|
|
|
167
133
|
/**
|
|
168
134
|
* Determines if directive should render the field as is
|
|
169
135
|
* Returns true if we are in edit mode 'chromes' (field.editable is present) or field is not empty
|
|
170
|
-
* or link field text is present
|
|
136
|
+
* or link field text is present.
|
|
171
137
|
* The right side of the expression was added to preserve existing functionality
|
|
172
138
|
*/
|
|
173
139
|
protected shouldRender(): boolean;
|
|
@@ -175,7 +141,7 @@ declare class LinkDirective extends BaseFieldDirective implements OnChanges {
|
|
|
175
141
|
private renderInlineWrapper;
|
|
176
142
|
private getElementAttrs;
|
|
177
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkDirective, never>;
|
|
178
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LinkDirective, "[scLink]", never, { "editable": { "alias": "scLinkEditable"; "required": false; }; "attrs": { "alias": "scLinkAttrs"; "required": false; }; "field": { "alias": "scLink"; "required": false; };
|
|
144
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LinkDirective, "[scLink]", never, { "editable": { "alias": "scLinkEditable"; "required": false; }; "attrs": { "alias": "scLinkAttrs"; "required": false; }; "field": { "alias": "scLink"; "required": false; }; }, {}, never, never, true, never>;
|
|
179
145
|
}
|
|
180
146
|
|
|
181
147
|
declare class RouterLinkDirective extends LinkDirective {
|
|
@@ -184,16 +150,12 @@ declare class RouterLinkDirective extends LinkDirective {
|
|
|
184
150
|
[attr: string]: string;
|
|
185
151
|
};
|
|
186
152
|
field: LinkField;
|
|
187
|
-
/**
|
|
188
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
189
|
-
*/
|
|
190
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
191
153
|
private router;
|
|
192
154
|
protected renderTemplate(props: {
|
|
193
155
|
[prop: string]: string;
|
|
194
156
|
}, linkText: string): void;
|
|
195
157
|
static ɵfac: i0.ɵɵFactoryDeclaration<RouterLinkDirective, never>;
|
|
196
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkDirective, "[scRouterLink]", never, { "editable": { "alias": "scRouterLinkEditable"; "required": false; }; "attrs": { "alias": "scRouterLinkAttrs"; "required": false; }; "field": { "alias": "scRouterLink"; "required": false; };
|
|
158
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkDirective, "[scRouterLink]", never, { "editable": { "alias": "scRouterLinkEditable"; "required": false; }; "attrs": { "alias": "scRouterLinkAttrs"; "required": false; }; "field": { "alias": "scRouterLink"; "required": false; }; }, {}, never, never, true, never>;
|
|
197
159
|
}
|
|
198
160
|
|
|
199
161
|
declare class GenericLinkDirective extends LinkDirective {
|
|
@@ -203,16 +165,12 @@ declare class GenericLinkDirective extends LinkDirective {
|
|
|
203
165
|
};
|
|
204
166
|
field: LinkField;
|
|
205
167
|
extras?: NavigationExtras;
|
|
206
|
-
/**
|
|
207
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
208
|
-
*/
|
|
209
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
210
168
|
private router;
|
|
211
169
|
protected renderTemplate(props: {
|
|
212
170
|
[key: string]: string;
|
|
213
171
|
}, linkText: string): void;
|
|
214
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericLinkDirective, never>;
|
|
215
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GenericLinkDirective, "[scGenericLink]", never, { "editable": { "alias": "scGenericLinkEditable"; "required": false; }; "attrs": { "alias": "scGenericLinkAttrs"; "required": false; }; "field": { "alias": "scGenericLink"; "required": false; }; "extras": { "alias": "scGenericLinkExtras"; "required": false; };
|
|
173
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GenericLinkDirective, "[scGenericLink]", never, { "editable": { "alias": "scGenericLinkEditable"; "required": false; }; "attrs": { "alias": "scGenericLinkAttrs"; "required": false; }; "field": { "alias": "scGenericLink"; "required": false; }; "extras": { "alias": "scGenericLinkExtras"; "required": false; }; }, {}, never, never, true, never>;
|
|
216
174
|
}
|
|
217
175
|
|
|
218
176
|
/** Registers a statically loaded component */
|
|
@@ -289,9 +247,7 @@ declare class PlaceholderComponent implements OnInit, OnChanges, DoCheck, OnDest
|
|
|
289
247
|
renderEmptyTemplate: RenderEmptyDirective;
|
|
290
248
|
placeholderLoading?: PlaceholderLoadingDirective;
|
|
291
249
|
private view;
|
|
292
|
-
private metadataNode;
|
|
293
250
|
isLoading: boolean;
|
|
294
|
-
metadataMode: boolean;
|
|
295
251
|
chromeType: string;
|
|
296
252
|
private _inputs;
|
|
297
253
|
private _differ;
|
|
@@ -299,7 +255,6 @@ declare class PlaceholderComponent implements OnInit, OnChanges, DoCheck, OnDest
|
|
|
299
255
|
private placeholderData?;
|
|
300
256
|
private destroyed;
|
|
301
257
|
private parentStyleAttribute;
|
|
302
|
-
private contextSubscription;
|
|
303
258
|
private differs;
|
|
304
259
|
private componentFactory;
|
|
305
260
|
private changeDetectorRef;
|
|
@@ -311,8 +266,6 @@ declare class PlaceholderComponent implements OnInit, OnChanges, DoCheck, OnDest
|
|
|
311
266
|
private guardResolver;
|
|
312
267
|
private dataResolver;
|
|
313
268
|
private platformId;
|
|
314
|
-
private jssState;
|
|
315
|
-
constructor();
|
|
316
269
|
set inputs(value: {
|
|
317
270
|
[key: string]: unknown;
|
|
318
271
|
});
|
|
@@ -320,15 +273,6 @@ declare class PlaceholderComponent implements OnInit, OnChanges, DoCheck, OnDest
|
|
|
320
273
|
ngOnDestroy(): void;
|
|
321
274
|
ngOnChanges(changes: SimpleChanges): void;
|
|
322
275
|
ngDoCheck(): void;
|
|
323
|
-
/**
|
|
324
|
-
* Gets id for Metadata code blocks, in specific format
|
|
325
|
-
* Metadata code blocks will wrap be added around placeholder content and each rendering component
|
|
326
|
-
* to allow for editing integration in Pages.
|
|
327
|
-
* @param {string} kind code block type ("open" or "close"). "open" is added before an element, and "close" added after one.
|
|
328
|
-
* @param {string?} renderingId rendering uid to apply as id to code block
|
|
329
|
-
* @returns {string} formatted id value for code HTML node
|
|
330
|
-
*/
|
|
331
|
-
getCodeBlockId: (kind: string, renderingId?: string) => string | undefined;
|
|
332
276
|
/**
|
|
333
277
|
* Get renderings/components to be rendered for current placeholder name
|
|
334
278
|
* Can modify the inner placeholders collection to adjust to using SXA dynamic placeholders
|
|
@@ -383,20 +327,12 @@ declare class DateDirective extends BaseFieldDirective implements OnChanges {
|
|
|
383
327
|
locale?: string;
|
|
384
328
|
editable: boolean;
|
|
385
329
|
field: DateField;
|
|
386
|
-
/**
|
|
387
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
388
|
-
*/
|
|
389
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
390
|
-
/**
|
|
391
|
-
* Default component to render in Pages in Metadata edit mode if field value is empty and emptyFieldEditingTemplate is not provided
|
|
392
|
-
*/
|
|
393
|
-
protected defaultFieldEditingComponent: Type<unknown>;
|
|
394
330
|
private templateRef;
|
|
395
331
|
private datePipe;
|
|
396
332
|
ngOnChanges(changes: SimpleChanges): void;
|
|
397
333
|
private updateView;
|
|
398
334
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateDirective, never>;
|
|
399
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateDirective, "[scDate]", never, { "format": { "alias": "scDateFormat"; "required": false; }; "timezone": { "alias": "scDateTimezone"; "required": false; }; "locale": { "alias": "scDateLocale"; "required": false; }; "editable": { "alias": "scDateEditable"; "required": false; }; "field": { "alias": "scDate"; "required": false; };
|
|
335
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateDirective, "[scDate]", never, { "format": { "alias": "scDateFormat"; "required": false; }; "timezone": { "alias": "scDateTimezone"; "required": false; }; "locale": { "alias": "scDateLocale"; "required": false; }; "editable": { "alias": "scDateEditable"; "required": false; }; "field": { "alias": "scDate"; "required": false; }; }, {}, never, never, true, never>;
|
|
400
336
|
}
|
|
401
337
|
|
|
402
338
|
declare class EditFrameComponent implements OnChanges {
|
|
@@ -418,67 +354,6 @@ declare class EditFrameComponent implements OnChanges {
|
|
|
418
354
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditFrameComponent, "sc-edit-frame,[sc-edit-frame]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "title": { "alias": "title"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "sitecore": { "alias": "sitecore"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
419
355
|
}
|
|
420
356
|
|
|
421
|
-
/**
|
|
422
|
-
* Component that renders editing scripts and client data for the current page in Sitecore Editor.
|
|
423
|
-
* Only renders scripts when Metadata mode is used.
|
|
424
|
-
*/
|
|
425
|
-
declare class EditingScriptsComponent implements OnInit {
|
|
426
|
-
private renderer;
|
|
427
|
-
private stateService;
|
|
428
|
-
private document;
|
|
429
|
-
ngOnInit(): void;
|
|
430
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditingScriptsComponent, never>;
|
|
431
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditingScriptsComponent, "sc-editing-scripts", never, {}, {}, never, never, true, never>;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Shape of the Form component rendering data.
|
|
436
|
-
* FormId is the rendering parameter that specifies the ID of the Sitecore Form to render.
|
|
437
|
-
*/
|
|
438
|
-
type FormRendering = {
|
|
439
|
-
params: {
|
|
440
|
-
FormId: string;
|
|
441
|
-
styles?: string;
|
|
442
|
-
};
|
|
443
|
-
} & ComponentRendering;
|
|
444
|
-
/**
|
|
445
|
-
* A component that renders a Sitecore Form.
|
|
446
|
-
* It fetches the form markup from the Sitecore Edge service and renders it in the component's template.
|
|
447
|
-
*/
|
|
448
|
-
declare class FormComponent implements OnInit, OnDestroy {
|
|
449
|
-
/**
|
|
450
|
-
* The rendering data for the component
|
|
451
|
-
*/
|
|
452
|
-
rendering: FormRendering;
|
|
453
|
-
hasError: boolean;
|
|
454
|
-
isEditing: boolean;
|
|
455
|
-
private contextSubscription;
|
|
456
|
-
private edgeConfig;
|
|
457
|
-
private platformId;
|
|
458
|
-
private elRef;
|
|
459
|
-
private jssState;
|
|
460
|
-
ngOnInit(): void;
|
|
461
|
-
ngOnDestroy(): void;
|
|
462
|
-
/**
|
|
463
|
-
* Fetches the form markup from the Sitecore Edge service and renders it in the component's template.
|
|
464
|
-
*/
|
|
465
|
-
loadForm(): Promise<void>;
|
|
466
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
467
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "app-form", never, { "rendering": { "alias": "rendering"; "required": false; }; }, {}, never, never, true, never>;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Shape of the Sitecore Edge configuration.
|
|
472
|
-
*/
|
|
473
|
-
type EdgeConfigToken = {
|
|
474
|
-
sitecoreEdgeUrl?: string;
|
|
475
|
-
sitecoreEdgeContextId: string;
|
|
476
|
-
};
|
|
477
|
-
/**
|
|
478
|
-
* Injection token for the Sitecore Edge configuration.
|
|
479
|
-
*/
|
|
480
|
-
declare const EDGE_CONFIG: InjectionToken<EdgeConfigToken>;
|
|
481
|
-
|
|
482
357
|
declare class BaseJssState {
|
|
483
358
|
sitecore?: LayoutServiceContextData & {
|
|
484
359
|
route: RouteData | null;
|
|
@@ -559,40 +434,24 @@ interface SxaTitleFields {
|
|
|
559
434
|
declare class RichTextDirective extends BaseFieldDirective implements OnChanges {
|
|
560
435
|
editable: boolean;
|
|
561
436
|
field: RichTextField;
|
|
562
|
-
/**
|
|
563
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
564
|
-
*/
|
|
565
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
566
|
-
/**
|
|
567
|
-
* Default component to render in Pages in Metadata edit mode if field value is empty and emptyFieldEditingTemplate is not provided
|
|
568
|
-
*/
|
|
569
|
-
protected defaultFieldEditingComponent: Type<unknown>;
|
|
570
437
|
private templateRef;
|
|
571
438
|
private renderer;
|
|
572
439
|
private router;
|
|
573
440
|
ngOnChanges(changes: SimpleChanges): void;
|
|
574
441
|
private updateView;
|
|
575
442
|
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextDirective, never>;
|
|
576
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RichTextDirective, "[scRichText]", never, { "editable": { "alias": "scRichTextEditable"; "required": false; }; "field": { "alias": "scRichText"; "required": false; };
|
|
443
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RichTextDirective, "[scRichText]", never, { "editable": { "alias": "scRichTextEditable"; "required": false; }; "field": { "alias": "scRichText"; "required": false; }; }, {}, never, never, true, never>;
|
|
577
444
|
}
|
|
578
445
|
|
|
579
446
|
declare class TextDirective extends BaseFieldDirective implements OnChanges {
|
|
580
447
|
editable: boolean;
|
|
581
448
|
encode: boolean;
|
|
582
449
|
field: TextField;
|
|
583
|
-
/**
|
|
584
|
-
* Custom template to render in Pages in Metadata edit mode if field value is empty
|
|
585
|
-
*/
|
|
586
|
-
emptyFieldEditingTemplate: TemplateRef<unknown>;
|
|
587
|
-
/**
|
|
588
|
-
* Default component to render in Pages in Metadata edit mode if field value is empty and emptyFieldEditingTemplate is not provided
|
|
589
|
-
*/
|
|
590
|
-
protected defaultFieldEditingComponent: Type<unknown>;
|
|
591
450
|
private templateRef;
|
|
592
451
|
ngOnChanges(changes: SimpleChanges): void;
|
|
593
452
|
private updateView;
|
|
594
453
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, never>;
|
|
595
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "[scText]", never, { "editable": { "alias": "scTextEditable"; "required": false; }; "encode": { "alias": "scTextEncode"; "required": false; }; "field": { "alias": "scText"; "required": false; };
|
|
454
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "[scText]", never, { "editable": { "alias": "scTextEditable"; "required": false; }; "encode": { "alias": "scTextEncode"; "required": false; }; "field": { "alias": "scText"; "required": false; }; }, {}, never, never, true, never>;
|
|
596
455
|
}
|
|
597
456
|
|
|
598
457
|
declare class RawComponent implements OnInit {
|
|
@@ -634,9 +493,9 @@ declare class JssModule {
|
|
|
634
493
|
*/
|
|
635
494
|
static withComponents(components: ComponentNameAndType[], lazyComponents?: ComponentNameAndModule[]): ModuleWithProviders<JssModule>;
|
|
636
495
|
static ɵfac: i0.ɵɵFactoryDeclaration<JssModule, never>;
|
|
637
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<JssModule, never, [typeof i1.CommonModule, typeof FileDirective, typeof ImageDirective, typeof LinkDirective, typeof RouterLinkDirective, typeof GenericLinkDirective, typeof TextDirective, typeof DateDirective, typeof RenderEachDirective, typeof RenderEmptyDirective, typeof PlaceholderLoadingDirective, typeof RenderComponentComponent, typeof PlaceholderComponent, typeof RawComponent, typeof RichTextDirective, typeof MissingComponentComponent, typeof HiddenRenderingComponent, typeof EditFrameComponent
|
|
496
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<JssModule, never, [typeof i1.CommonModule, typeof FileDirective, typeof ImageDirective, typeof LinkDirective, typeof RouterLinkDirective, typeof GenericLinkDirective, typeof TextDirective, typeof DateDirective, typeof RenderEachDirective, typeof RenderEmptyDirective, typeof PlaceholderLoadingDirective, typeof RenderComponentComponent, typeof PlaceholderComponent, typeof RawComponent, typeof RichTextDirective, typeof MissingComponentComponent, typeof HiddenRenderingComponent, typeof EditFrameComponent], [typeof FileDirective, typeof ImageDirective, typeof DateDirective, typeof LinkDirective, typeof RouterLinkDirective, typeof GenericLinkDirective, typeof RenderEachDirective, typeof RenderEmptyDirective, typeof RenderComponentComponent, typeof PlaceholderComponent, typeof HiddenRenderingComponent, typeof PlaceholderLoadingDirective, typeof RichTextDirective, typeof TextDirective, typeof EditFrameComponent]>;
|
|
638
497
|
static ɵinj: i0.ɵɵInjectorDeclaration<JssModule>;
|
|
639
498
|
}
|
|
640
499
|
|
|
641
|
-
export { BaseJssState, ComponentNameAndType, DYNAMIC_COMPONENT, DateDirective,
|
|
500
|
+
export { BaseJssState, ComponentNameAndType, DYNAMIC_COMPONENT, DateDirective, EditFrameComponent, FileDirective, GenericLinkDirective, HiddenRenderingComponent, ImageDirective, JssModule, JssStateService, LinkDirective, PlaceholderComponent, PlaceholderLoadingDirective, RenderComponentComponent, RenderEachDirective, RenderEmptyDirective, RichTextDirective, RouterLinkDirective, TextDirective, isRawRendering };
|
|
642
501
|
export type { ComponentNameAndModule, FileField, GuardInput, ImageField, ImageFieldValue, JssCanActivate, JssCanActivateFn, JssResolve, LinkField, LinkFieldValue, RenderingField, RichTextField, SxaLinkListFields, SxaTitleFields, TextField };
|
package/ng-package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
-
"dest": "dist",
|
|
4
|
-
"lib": {
|
|
5
|
-
"entryFile": "./src/public_api.ts"
|
|
6
|
-
},
|
|
7
|
-
"allowedNonPeerDependencies": [
|
|
8
|
-
"sitecore-jss",
|
|
9
|
-
"@angular/common",
|
|
10
|
-
"@angular/core",
|
|
11
|
-
"@angular/router"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "dist",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "./src/public_api.ts"
|
|
6
|
+
},
|
|
7
|
+
"allowedNonPeerDependencies": [
|
|
8
|
+
"sitecore-jss",
|
|
9
|
+
"@angular/common",
|
|
10
|
+
"@angular/core",
|
|
11
|
+
"@angular/router"
|
|
12
|
+
]
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-angular",
|
|
3
|
-
"version": "23.0.0
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "ng-packagr -p ng-package.json",
|
|
@@ -57,12 +57,11 @@
|
|
|
57
57
|
"zone.js": "~0.15.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@sitecore-cloudsdk/events": "^0.5.2",
|
|
61
60
|
"@types/debug": "^4.1.12",
|
|
62
61
|
"rxjs": "~7.8.1"
|
|
63
62
|
},
|
|
64
63
|
"dependencies": {
|
|
65
|
-
"@sitecore-jss/sitecore-jss": "23.0.0
|
|
64
|
+
"@sitecore-jss/sitecore-jss": "23.0.0"
|
|
66
65
|
},
|
|
67
66
|
"main": "dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs",
|
|
68
67
|
"module": "dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs",
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
"esm2022": "dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs",
|
|
73
72
|
"fesm2022": "dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs",
|
|
74
73
|
"sideEffects": false,
|
|
75
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "df3fb1582d7a53c14a3e3901d3561436f5110130",
|
|
76
75
|
"files": [
|
|
77
76
|
"dist",
|
|
78
77
|
"typings",
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es2022",
|
|
5
|
-
"module": "es2022",
|
|
6
|
-
"strictPropertyInitialization": false,
|
|
7
|
-
"typeRoots": ["./node_modules/@types", "./typings"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es2022",
|
|
5
|
+
"module": "es2022",
|
|
6
|
+
"strictPropertyInitialization": false,
|
|
7
|
+
"typeRoots": ["./node_modules/@types", "./typings"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
}
|
|
10
|
+
}
|
package/tsconfig.spec.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"lib": ["ES2022", "dom"],
|
|
5
|
-
"skipLibCheck": true,
|
|
6
|
-
"outDir": "./dist/out-tsc",
|
|
7
|
-
"types": [
|
|
8
|
-
"jasmine"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"./src/test.ts"
|
|
13
|
-
],
|
|
14
|
-
"include": [
|
|
15
|
-
"**/*.spec.ts",
|
|
16
|
-
"**/*.d.ts"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"lib": ["ES2022", "dom"],
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"outDir": "./dist/out-tsc",
|
|
7
|
+
"types": [
|
|
8
|
+
"jasmine"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"./src/test.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"**/*.spec.ts",
|
|
16
|
+
"**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
19
|
|
package/typings/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
This folder is not a TypeScript v1 typings folder (which was a generated folder of typings).
|
|
2
|
-
This is a manually maintained typings folder.
|
|
1
|
+
This folder is not a TypeScript v1 typings folder (which was a generated folder of typings).
|
|
2
|
+
This is a manually maintained typings folder.
|