create-sitecore-jss 22.2.0-canary.45 → 22.2.0-canary.47
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/dist/templates/angular/.eslintrc +1 -0
- package/dist/templates/angular-xmcloud/angular.json +0 -1
- package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html +4 -9
- package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html +2 -3
- package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html +15 -17
- package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html +21 -26
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html +3 -5
- package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.html +14 -16
- package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html +7 -12
- package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.ts +6 -1
- package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html +9 -8
- package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/title/title.component.html +8 -10
- package/dist/templates/angular-xmcloud/src/app/components/title/title.component.ts +5 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_header.scss +3 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/main.scss +10 -0
- package/package.json +2 -2
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<div
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
[name]="getPlaceholderName(ph)"
|
|
6
|
-
[rendering]="rendering">
|
|
7
|
-
</sc-placeholder>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
1
|
+
<div *ngFor="let ph of enabledPlaceholders" [ngClass]="getColumnClass(+ph - 1)">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> </sc-placeholder>
|
|
4
|
+
</div>
|
|
10
5
|
</div>
|
|
@@ -4,6 +4,11 @@ import { SxaComponent } from '../sxa.component';
|
|
|
4
4
|
@Component({
|
|
5
5
|
selector: 'app-column-splitter',
|
|
6
6
|
templateUrl: './column-splitter.component.html',
|
|
7
|
+
host: {
|
|
8
|
+
'class': 'row component column-splitter',
|
|
9
|
+
'[class]': 'columnSplitterStyles',
|
|
10
|
+
'[id]' : 'id'
|
|
11
|
+
}
|
|
7
12
|
})
|
|
8
13
|
export class ColumnSplitterComponent extends SxaComponent {
|
|
9
14
|
get columnSplitterStyles(): string {
|
package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html
CHANGED
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
<ng-template #default>
|
|
5
5
|
<div class="component container-default {{ styles }}" [attr.id]="id">
|
|
6
6
|
<div class="component-content" [ngStyle]="backgroundStyle">
|
|
7
|
-
<div class="row">
|
|
8
7
|
<sc-placeholder
|
|
9
8
|
[name]="placeholderName"
|
|
10
|
-
[rendering]="rendering"
|
|
9
|
+
[rendering]="rendering"
|
|
10
|
+
class="row">
|
|
11
11
|
</sc-placeholder>
|
|
12
|
-
</div>
|
|
13
12
|
</div>
|
|
14
13
|
</div>
|
|
15
14
|
</ng-template>
|
package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
<div class="component
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
</ng-template>
|
|
17
|
-
</div>
|
|
1
|
+
<div class="component-content">
|
|
2
|
+
<ng-container *ngIf="title; else defaultTitle">
|
|
3
|
+
<h3 *scText="title"></h3>
|
|
4
|
+
</ng-container>
|
|
5
|
+
<ul>
|
|
6
|
+
<li *ngFor="let fieldLink of fieldLinks; index as i" [ngClass]="getFieldLinkClass(i)">
|
|
7
|
+
<div class="field-link">
|
|
8
|
+
<a *scLink="fieldLink"></a>
|
|
9
|
+
</div>
|
|
10
|
+
</li>
|
|
11
|
+
</ul>
|
|
12
|
+
</div>
|
|
13
|
+
<ng-template #defaultTitle>
|
|
14
|
+
<span class="is-empty-hint">Link list</span>
|
|
15
|
+
</ng-template>
|
|
@@ -5,6 +5,11 @@ import { Field, LinkField, SxaLinkListFields } from '@sitecore-jss/sitecore-jss-
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'app-link-list',
|
|
7
7
|
templateUrl: './link-list.component.html',
|
|
8
|
+
host: {
|
|
9
|
+
'class': 'component link-list',
|
|
10
|
+
'[class]': 'styles',
|
|
11
|
+
'[attr.id]': 'id',
|
|
12
|
+
}
|
|
8
13
|
})
|
|
9
14
|
export class LinkListComponent extends SxaComponent<SxaLinkListFields> implements OnInit {
|
|
10
15
|
title?: Field<string>;
|
package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</ul>
|
|
23
|
-
</nav>
|
|
24
|
-
</div>
|
|
25
|
-
</label>
|
|
26
|
-
</div>
|
|
1
|
+
<label class="menu-mobile-navigate-wrapper">
|
|
2
|
+
<input
|
|
3
|
+
type="checkbox"
|
|
4
|
+
class="menu-mobile-navigate"
|
|
5
|
+
[checked]="isOpenMenu"
|
|
6
|
+
(change)="toggleMenu($event)"
|
|
7
|
+
/>
|
|
8
|
+
<div class="menu-humburger"></div>
|
|
9
|
+
<div class="component-content">
|
|
10
|
+
<nav>
|
|
11
|
+
<ul class="clearfix">
|
|
12
|
+
<app-navigation-item
|
|
13
|
+
*ngFor="let navItemFields of rendering.fields"
|
|
14
|
+
[navItemFields]="navItemFields"
|
|
15
|
+
[relativeLevel]="baseLevel"
|
|
16
|
+
(childLinkClickEvent)="toggleMenu($event, false)"
|
|
17
|
+
></app-navigation-item>
|
|
18
|
+
</ul>
|
|
19
|
+
</nav>
|
|
20
|
+
</div>
|
|
21
|
+
</label>
|
package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.ts
CHANGED
|
@@ -6,6 +6,11 @@ import { JssContextService } from '../../jss-context.service';
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'app-navigation',
|
|
8
8
|
templateUrl: './navigation.component.html',
|
|
9
|
+
host: {
|
|
10
|
+
'class': 'component navigation',
|
|
11
|
+
'[id]': 'id',
|
|
12
|
+
'[class]': 'styles + " " + rendering.params?.GridParameters',
|
|
13
|
+
},
|
|
9
14
|
})
|
|
10
15
|
export class NavigationComponent extends SxaComponent implements OnInit, OnDestroy {
|
|
11
16
|
isEditing = false;
|
package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
<div class="component
|
|
2
|
-
<div class="
|
|
3
|
-
<div
|
|
4
|
-
<div *scRichText="content || contextContent"></div>
|
|
5
|
-
</div>
|
|
1
|
+
<div class="component-content">
|
|
2
|
+
<div class="field-content">
|
|
3
|
+
<div *scRichText="content || contextContent"></div>
|
|
6
4
|
</div>
|
|
7
5
|
</div>
|
package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.ts
CHANGED
|
@@ -7,6 +7,11 @@ import { Subscription } from 'rxjs';
|
|
|
7
7
|
@Component({
|
|
8
8
|
selector: 'app-page-content',
|
|
9
9
|
templateUrl: './page-content.component.html',
|
|
10
|
+
host: {
|
|
11
|
+
'class': 'component content',
|
|
12
|
+
'[class]': 'styles',
|
|
13
|
+
'[id]': 'id',
|
|
14
|
+
}
|
|
10
15
|
})
|
|
11
16
|
export class PageContentComponent extends SxaComponent implements OnInit, OnDestroy {
|
|
12
17
|
content?: RichTextField;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
<div class="component
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<div
|
|
8
|
-
<div>
|
|
9
|
-
<div
|
|
10
|
-
<div *scRichText="rendering.fields.PromoText"></div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="field-promolink">
|
|
14
|
-
<a *scLink="rendering.fields.PromoLink"></a>
|
|
1
|
+
<div class="component-content">
|
|
2
|
+
<ng-container *ngIf="rendering.fields; else empty">
|
|
3
|
+
<div class="field-promoicon">
|
|
4
|
+
<img *scImage="rendering.fields.PromoIcon" />
|
|
5
|
+
</div>
|
|
6
|
+
<div class="promo-text">
|
|
7
|
+
<div>
|
|
8
|
+
<div class="field-promotext">
|
|
9
|
+
<div *scRichText="rendering.fields.PromoText"></div>
|
|
15
10
|
</div>
|
|
16
11
|
</div>
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
<div class="field-promolink">
|
|
13
|
+
<a *scLink="rendering.fields.PromoLink"></a>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</ng-container>
|
|
19
17
|
</div>
|
|
20
18
|
|
|
21
19
|
<ng-template #empty>
|
|
@@ -4,5 +4,10 @@ import { SxaComponent } from '../sxa.component';
|
|
|
4
4
|
@Component({
|
|
5
5
|
selector: 'app-promo',
|
|
6
6
|
templateUrl: './promo.component.html',
|
|
7
|
+
host: {
|
|
8
|
+
'class': 'component promo',
|
|
9
|
+
'[class]': "styles",
|
|
10
|
+
'[id]': "id",
|
|
11
|
+
},
|
|
7
12
|
})
|
|
8
13
|
export class PromoComponent extends SxaComponent {}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
>
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
</ng-container>
|
|
9
|
-
<ng-template #emptyHint>
|
|
10
|
-
<span class="is-empty-hint">Rich text</span>
|
|
11
|
-
</ng-template>
|
|
12
|
-
</div>
|
|
1
|
+
<div class="component-content">
|
|
2
|
+
<ng-container *ngIf="text; else emptyHint">
|
|
3
|
+
<div *scRichText="text"></div>
|
|
4
|
+
</ng-container>
|
|
5
|
+
<ng-template #emptyHint>
|
|
6
|
+
<span class="is-empty-hint">Rich text</span>
|
|
7
|
+
</ng-template>
|
|
13
8
|
</div>
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
2
|
import { Field } from '@sitecore-jss/sitecore-jss-angular';
|
|
3
3
|
import { SxaComponent } from '../sxa.component';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'app-richtext',
|
|
7
7
|
templateUrl: './richtext.component.html',
|
|
8
|
+
host: {
|
|
9
|
+
'class': 'component rich-text',
|
|
10
|
+
'[class]': "styles",
|
|
11
|
+
"[attr.id]": "id"
|
|
12
|
+
},
|
|
8
13
|
})
|
|
9
14
|
export class RichTextComponent extends SxaComponent implements OnInit {
|
|
10
15
|
text?: Field<string>;
|
package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
<div
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
<div
|
|
2
|
+
*ngFor="let ph of enabledPlaceholders"
|
|
3
|
+
class="container-fluid"
|
|
4
|
+
[ngClass]="getRowClass(+ph - 1)"
|
|
5
|
+
>
|
|
6
|
+
<div>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> </sc-placeholder>
|
|
8
9
|
</div>
|
|
9
10
|
</div>
|
|
10
|
-
</div>
|
|
11
|
+
</div>
|
package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.ts
CHANGED
|
@@ -4,6 +4,11 @@ import { SxaComponent } from '../sxa.component';
|
|
|
4
4
|
@Component({
|
|
5
5
|
selector: 'app-row-splitter',
|
|
6
6
|
templateUrl: './row-splitter.component.html',
|
|
7
|
+
host: {
|
|
8
|
+
"class": "component row-splitter",
|
|
9
|
+
"[class]": "rowSplitterStyles",
|
|
10
|
+
"[id]": "id"
|
|
11
|
+
}
|
|
7
12
|
})
|
|
8
13
|
export class RowSplitterComponent extends SxaComponent {
|
|
9
14
|
get rowSplitterStyles(): string {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<div
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
</ng-container>
|
|
7
|
-
</div>
|
|
1
|
+
<div clas="component-content">
|
|
2
|
+
<div class="field-title">
|
|
3
|
+
<ng-container *ngIf="!pageEditing; else textOnly">
|
|
4
|
+
<a *scLink="link"></a>
|
|
5
|
+
</ng-container>
|
|
8
6
|
</div>
|
|
9
|
-
<ng-template #textOnly>
|
|
10
|
-
<span *scText="text"></span>
|
|
11
|
-
</ng-template>
|
|
12
7
|
</div>
|
|
8
|
+
<ng-template #textOnly>
|
|
9
|
+
<span *scText="text"></span>
|
|
10
|
+
</ng-template>
|
|
@@ -7,6 +7,11 @@ import { JssContextService } from '../../jss-context.service';
|
|
|
7
7
|
@Component({
|
|
8
8
|
selector: 'app-title',
|
|
9
9
|
templateUrl: './title.component.html',
|
|
10
|
+
host: {
|
|
11
|
+
'class': 'component title',
|
|
12
|
+
'[class]': 'styles',
|
|
13
|
+
'[id]': 'id',
|
|
14
|
+
}
|
|
10
15
|
})
|
|
11
16
|
export class TitleComponent extends SxaComponent<SxaTitleFields> implements OnInit, OnDestroy {
|
|
12
17
|
text: TextField;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.2.0-canary.
|
|
3
|
+
"version": "22.2.0-canary.47",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"ts-node": "^10.9.1",
|
|
64
64
|
"typescript": "~4.9.5"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "948f99616ad4fd68f3a955adcd7e1e3135162750"
|
|
67
67
|
}
|