@stratusjs/angular 0.10.0 → 0.10.1
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/angular.bundle.js +810 -800
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/selector/selector-autocomplete.component.html +4 -4
- package/src/selector/selector-autocomplete.component.min.html +1 -1
- package/src/selector/selector.component.html +12 -12
- package/src/selector/selector.component.js +11 -1
- package/src/selector/selector.component.js.map +1 -1
- package/src/selector/selector.component.min.html +1 -1
- package/src/selector/selector.component.min.js +1 -1
- package/src/selector/selector.component.ts +12 -0
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-dialog.component.ts +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<!-- data-ng-disabled="itemDisabled = isSelected(model)" -->
|
|
8
8
|
<div class="autocomplete-option"
|
|
9
|
-
[class]="model
|
|
9
|
+
[class]="getString(model, 'contentType.class')"
|
|
10
10
|
[class.selected]="isSelected(model)">
|
|
11
11
|
<div class="autocomplete-row clearfix">
|
|
12
12
|
<div class="column-image st-grid column20">
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
<!-- Icon for items with no image -->
|
|
37
37
|
<div class="no-image-icon position-all"
|
|
38
38
|
*ngIf="!model.version.images.length && !model.version.videos.length && !model.version.shellImages.length"
|
|
39
|
-
[class]="[model
|
|
39
|
+
[class]="[getString(model, 'contentType.class') + '-background-color', getString(model, 'version.meta.backgroundColor')]">
|
|
40
40
|
<div *ngIf="!isSelected(model) && model.contentType.iconResource">
|
|
41
41
|
<mat-icon class="content-type-icon position-center"
|
|
42
42
|
aria-hidden="true"
|
|
43
|
-
[svgIcon]="getSvg(Stratus.BaseUrl + model
|
|
43
|
+
[svgIcon]="getSvg(Stratus.BaseUrl + getString(model, 'contentType.iconResourcePath')) | async">
|
|
44
44
|
ContentType Icon
|
|
45
45
|
</mat-icon>
|
|
46
46
|
</div>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
-->
|
|
64
64
|
<h3 class="title">
|
|
65
|
-
{{model
|
|
65
|
+
{{getString(model, 'version.title') || (getString(model, 'contentType.class') === 'sitetheory-core-bundle-content-module' ? getString(model, 'version.bestIdentifier') : ('Untitled ' + getString(model, 'contentType.name') + ' (' + model.id + ')'))}}
|
|
66
66
|
</h3>
|
|
67
67
|
<div>
|
|
68
68
|
<div class="routing" *ngIf="model.routing.length">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<div class="autocomplete-option" [class]="model
|
|
1
|
+
<div class="autocomplete-option" [class]="getString(model, 'contentType.class')" [class.selected]="isSelected(model)"><div class="autocomplete-row clearfix"><div class="column-image st-grid column20"><div class="image-container background-dark position-anchor"><div class="image position-all" style="background-size: cover" *ngIf="model.version.images.length || model.version.shellImages.length" [style.background]="'url(' + (model.version.images.length ? model.version.images[0].src : model.version.shellImages.length ? model.version.shellImages[0].src : '') + ') no-repeat center center'"></div><div class="image position-all" style="background-size: cover" *ngIf="!model.version.images.length && !model.version.shellImages.length && model.version.videos.length" [style.background]="'url(' + (model.version.videos[0].src) + ') no-repeat center center'"></div><div class="no-image-icon position-all" *ngIf="!model.version.images.length && !model.version.videos.length && !model.version.shellImages.length" [class]="[getString(model, 'contentType.class') + '-background-color', getString(model, 'version.meta.backgroundColor')]"><div *ngIf="!isSelected(model) && model.contentType.iconResource"><mat-icon class="content-type-icon position-center" aria-hidden="true" [svgIcon]="getSvg(Stratus.BaseUrl + getString(model, 'contentType.iconResourcePath')) | async">ContentType Icon</mat-icon></div></div><img class="shapeholder" [src]="Stratus.BaseUrl + 'sitetheorycore/images/shapeholder-square.png'"></div></div><div class="column-title st-grid column80"><h3 class="title">{{getString(model, 'version.title') || (getString(model, 'contentType.class') === 'sitetheory-core-bundle-content-module' ? getString(model, 'version.bestIdentifier') : ('Untitled ' + getString(model, 'contentType.name') + ' (' + model.id + ')'))}}</h3><div><div class="routing" *ngIf="model.routing.length">{{'/' + model.routing[0].url}}</div></div></div></div></div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
<mat-form-field class="full-width">
|
|
3
|
-
<input matInput [placeholder]="'Add ' + (
|
|
3
|
+
<input matInput [placeholder]="'Add ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ': Not Connected Yet!'" aria-label="Selector AutoComplete" [matAutocomplete]="auto" [formControl]="selectCtrl">
|
|
4
4
|
<mat-autocomplete #auto="matAutocomplete">
|
|
5
5
|
<mat-option *ngFor="let selectModel of filteredModels | async" [value]="selectModel">
|
|
6
6
|
{{ selectModel.version.title }}
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
<div class="image position-all"
|
|
53
53
|
*ngIf="has(selectedModel, 'version.bestImage._thumbnailUrl')"
|
|
54
54
|
[attr.data-stratus-src]="!get(selectedModel, 'version.bestImage.service') ? true : false"
|
|
55
|
-
[ngStyle]="{'background': 'url(' +
|
|
55
|
+
[ngStyle]="{'background': 'url(' + getString(selectedModel, 'version.bestImage._thumbnailUrl') + ') no-repeat center center', 'background-size': 'cover'}">
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
58
|
<!-- Icon for items with no image -->
|
|
59
59
|
<div class="no-image-icon position-all"
|
|
60
60
|
*ngIf="!has(selectedModel, 'version.bestImage._thumbnailUrl')"
|
|
61
|
-
[ngClass]="
|
|
61
|
+
[ngClass]="getString(selectedModel, 'contentType.class') + '-background-color'">
|
|
62
62
|
|
|
63
63
|
<mat-icon class="content-type-icon position-center"
|
|
64
|
-
[svgIcon]="getSvg(Stratus.BaseUrl + (
|
|
64
|
+
[svgIcon]="getSvg(Stratus.BaseUrl + (getString(selectedModel, 'contentType.iconResourcePath') || getString(selectedModel, 'iconResourcePath'))) | async">
|
|
65
65
|
Icon
|
|
66
66
|
</mat-icon>
|
|
67
67
|
</div>
|
|
@@ -78,32 +78,32 @@
|
|
|
78
78
|
to break away from the div and float to the top of the selector container
|
|
79
79
|
-->
|
|
80
80
|
<mat-icon class="content-type-icon"
|
|
81
|
-
[svgIcon]="getSvg(Stratus.BaseUrl +
|
|
81
|
+
[svgIcon]="getSvg(Stratus.BaseUrl + getString(selectedModel, 'contentType.iconResourcePath')) | async">
|
|
82
82
|
ContentType Icon
|
|
83
83
|
</mat-icon>
|
|
84
84
|
<span class="comment content-type-name font-body"
|
|
85
|
-
[ngClass]="((
|
|
86
|
-
[textContent]="(
|
|
85
|
+
[ngClass]="((getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) | lowercase) + '-color'"
|
|
86
|
+
[textContent]="(getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ((get(selectedModel, 'status') !== 1) ? ' (hidden)' : '') + ((get(selectedModel, 'version.published') !== 1) ? ' (unpublished)' : '')">
|
|
87
87
|
</span>
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
90
|
<!-- This include fallbacks in case a version is not present -->
|
|
91
|
-
<h3 [innerHTML]="
|
|
91
|
+
<h3 [innerHTML]="getString(selectedModel, 'version.bestIdentifier') || getString(selectedModel, 'name') || (get(selectedModel, 'contentType.controller') === 'Content\\Module' ? getString(selectedModel, 'version.internalIdentifier') : 'Untitled ' + getString(selectedModel, 'contentType.name') + ' (' + get(selectedModel, 'id') + ')')"></h3>
|
|
92
92
|
<!-- TODO: make this clickable in new window -->
|
|
93
93
|
<span class="routing"
|
|
94
|
-
[textContent]="(has(selectedModel, 'routing') ? '/' +
|
|
94
|
+
[textContent]="(has(selectedModel, 'routing') ? '/' + getString(selectedModel, 'routing[0].url') : null) || getString(selectedModel, 'description') || ''">
|
|
95
95
|
</span>
|
|
96
96
|
</div>
|
|
97
97
|
<div class="column-action">
|
|
98
98
|
<a mat-button
|
|
99
|
-
[matTooltip]="'Delete ' + (
|
|
99
|
+
[matTooltip]="'Delete ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ' [THIS COLLECTION ONLY]'"
|
|
100
100
|
aria-label="Delete Item"
|
|
101
101
|
class="btn btn-delete"
|
|
102
102
|
(click)="remove(selectedModel)">
|
|
103
103
|
<mat-icon svgIcon="selector_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon>
|
|
104
104
|
</a>
|
|
105
105
|
<a mat-button
|
|
106
|
-
[matTooltip]="'Toggle ' + (
|
|
106
|
+
[matTooltip]="'Toggle ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ' Status ' + (get(selectedModel, 'status') ? 'Off' : 'On') + ' [ALL CONTEXTS]'"
|
|
107
107
|
aria-label="Toggle Status"
|
|
108
108
|
class="btn btn-status"
|
|
109
109
|
(click)="toggleStatus(selectedModel)">
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
</a>
|
|
112
112
|
<a mat-button
|
|
113
113
|
*ngIf="has(selectedModel, 'contentType.editUrl')"
|
|
114
|
-
[matTooltip]="'Edit ' + (
|
|
114
|
+
[matTooltip]="'Edit ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name'))"
|
|
115
115
|
aria-label="Edit Item in New Window"
|
|
116
116
|
class="btn btn-edit"
|
|
117
117
|
(click)="goToUrl(selectedModel, '_blank');">
|
|
@@ -96,7 +96,7 @@ System.register(["@angular/core", "@angular/forms", "@angular/cdk/drag-drop", "r
|
|
|
96
96
|
this.styled = true;
|
|
97
97
|
this.refresh().then();
|
|
98
98
|
});
|
|
99
|
-
this.hydrate(elementRef, sanitizer, ["title", "uid", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "endpoint", "ignorePriority", "get", "has", "log", "Stratus", "selectCtrl", "registry", "fetched", "data", "collection", "model", "dataSub", "onChange", "subscriber", "svgIcons", "styled", "empty", "iconRegistry", "sanitizer", "ref", "elementRef", "drop", "goToUrl", "toggleStatus", "remove", "fetchData", "dataDefer", "dataRef", "onDataChange", "prioritize", "getSvg", "addSvgIcon", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
99
|
+
this.hydrate(elementRef, sanitizer, ["title", "uid", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "endpoint", "ignorePriority", "get", "has", "log", "Stratus", "selectCtrl", "registry", "fetched", "data", "collection", "model", "dataSub", "onChange", "subscriber", "svgIcons", "styled", "empty", "iconRegistry", "sanitizer", "ref", "elementRef", "drop", "goToUrl", "toggleStatus", "remove", "fetchData", "dataDefer", "dataRef", "getString", "onDataChange", "prioritize", "getSvg", "addSvgIcon", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
|
|
100
100
|
this.fetchData()
|
|
101
101
|
.then(data => {
|
|
102
102
|
if (!data || !(data instanceof eventManager_1.EventManager)) {
|
|
@@ -221,6 +221,16 @@ System.register(["@angular/core", "@angular/forms", "@angular/cdk/drag-drop", "r
|
|
|
221
221
|
}
|
|
222
222
|
return models;
|
|
223
223
|
}
|
|
224
|
+
getString(object, property) {
|
|
225
|
+
if (!lodash_1.isObject(object)) {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
const variable = lodash_1.get(object, property);
|
|
229
|
+
if (!lodash_1.isString(variable)) {
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
return variable;
|
|
233
|
+
}
|
|
224
234
|
onDataChange() {
|
|
225
235
|
this.prioritize();
|
|
226
236
|
this.dataDefer(this.subscriber);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["selector.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["selector.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiEM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,UAAU,CAAA;YAGvB,GAAG,GAAG,CAAC,oBAAM,C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B,+BAAY;oBAChB,wBAAiB;oBACZ,iBAAU;eA9DzB,iBAAiB,CAka7B;;QACD,CAAC","file":"selector.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<mat-progress-bar mode="indeterminate" *ngIf="!styled"></mat-progress-bar><ng-template #emptyList><div class="selected-list-header border-default border-default-bottom"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3></div><div class="selected-message-box">Nothing has been selected.</div></ng-template><div class="selected-list" *ngIf="styled"><div class="selected-list-header border-default border-default-bottom" *ngIf="!empty; else emptyList"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3><p class="note">Drag to reorder</p></div><div cdkDropList (cdkDropListDropped)="drop($event)"><div cdkDrag class="selected-list-row selected-box" [ngClass]="{'active': get(selectedModel, 'status') === 1, 'inactive' : get(selectedModel, 'status') !== 1, 'published': get(selectedModel, 'version.published') === 1, 'unpublished': get(selectedModel, 'version.published') !== 1}" *ngFor="let selectedModel of dataSub | async"><div class="custom-ghost-placeholder" *cdkDragPlaceholder></div><div class="selected-list-container"><div class="column-image position-anchor"><div class="image position-all" *ngIf="has(selectedModel, 'version.bestImage._thumbnailUrl')" [attr.data-stratus-src]="!get(selectedModel, 'version.bestImage.service') ? true : false" [ngStyle]="{'background': 'url(' +
|
|
1
|
+
<mat-progress-bar mode="indeterminate" *ngIf="!styled"></mat-progress-bar><ng-template #emptyList><div class="selected-list-header border-default border-default-bottom"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3></div><div class="selected-message-box">Nothing has been selected.</div></ng-template><div class="selected-list" *ngIf="styled"><div class="selected-list-header border-default border-default-bottom" *ngIf="!empty; else emptyList"><h3 [textContent]="'Selected ' + (type || 'Items')"></h3><p class="note">Drag to reorder</p></div><div cdkDropList (cdkDropListDropped)="drop($event)"><div cdkDrag class="selected-list-row selected-box" [ngClass]="{'active': get(selectedModel, 'status') === 1, 'inactive' : get(selectedModel, 'status') !== 1, 'published': get(selectedModel, 'version.published') === 1, 'unpublished': get(selectedModel, 'version.published') !== 1}" *ngFor="let selectedModel of dataSub | async"><div class="custom-ghost-placeholder" *cdkDragPlaceholder></div><div class="selected-list-container"><div class="column-image position-anchor"><div class="image position-all" *ngIf="has(selectedModel, 'version.bestImage._thumbnailUrl')" [attr.data-stratus-src]="!get(selectedModel, 'version.bestImage.service') ? true : false" [ngStyle]="{'background': 'url(' + getString(selectedModel, 'version.bestImage._thumbnailUrl') + ') no-repeat center center', 'background-size': 'cover'}"></div><div class="no-image-icon position-all" *ngIf="!has(selectedModel, 'version.bestImage._thumbnailUrl')" [ngClass]="getString(selectedModel, 'contentType.class') + '-background-color'"><mat-icon class="content-type-icon position-center" [svgIcon]="getSvg(Stratus.BaseUrl + (getString(selectedModel, 'contentType.iconResourcePath') || getString(selectedModel, 'iconResourcePath'))) | async">Icon</mat-icon></div><img class="shapeholder" [src]="Stratus.BaseUrl + 'sitetheorycore/images/shapeholder-square.png'"></div><div class="column-title"><div class="content-type" *ngIf="has(selectedModel, 'contentType.iconResourcePath')"><mat-icon class="content-type-icon" [svgIcon]="getSvg(Stratus.BaseUrl + getString(selectedModel, 'contentType.iconResourcePath')) | async">ContentType Icon</mat-icon><span class="comment content-type-name font-body" [ngClass]="((getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) | lowercase) + '-color'" [textContent]="(getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ((get(selectedModel, 'status') !== 1) ? ' (hidden)' : '') + ((get(selectedModel, 'version.published') !== 1) ? ' (unpublished)' : '')"></span></div><h3 [innerHTML]="getString(selectedModel, 'version.bestIdentifier') || getString(selectedModel, 'name') || (get(selectedModel, 'contentType.controller') === 'Content\\Module' ? getString(selectedModel, 'version.internalIdentifier') : 'Untitled ' + getString(selectedModel, 'contentType.name') + ' (' + get(selectedModel, 'id') + ')')"></h3><span class="routing" [textContent]="(has(selectedModel, 'routing') ? '/' + getString(selectedModel, 'routing[0].url') : null) || getString(selectedModel, 'description') || ''"></span></div><div class="column-action"><a mat-button [matTooltip]="'Delete ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ' [THIS COLLECTION ONLY]'" aria-label="Delete Item" class="btn btn-delete" (click)="remove(selectedModel)"><mat-icon svgIcon="selector_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button [matTooltip]="'Toggle ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name')) + ' Status ' + (get(selectedModel, 'status') ? 'Off' : 'On') + ' [ALL CONTEXTS]'" aria-label="Toggle Status" class="btn btn-status" (click)="toggleStatus(selectedModel)"><mat-icon svgIcon="selector_status" aria-hidden="false" aria-label="Toggle Status">Toggle Status</mat-icon></a><a mat-button *ngIf="has(selectedModel, 'contentType.editUrl')" [matTooltip]="'Edit ' + (getString(selectedModel, 'contentType.name') || getString(selectedModel, 'name'))" aria-label="Edit Item in New Window" class="btn btn-edit" (click)="goToUrl(selectedModel, '_blank');"><mat-icon svgIcon="selector_edit" aria-hidden="false" aria-label="Edit">Edit</mat-icon></a></div></div></div></div></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/forms","@angular/cdk/drag-drop","rxjs","@angular/platform-browser","@angular/material/icon","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component","@stratusjs/angularjs/services/registry","@stratusjs/core/events/eventManager","@stratusjs/core/datastore/xhr"],function(t,e){"use strict";var r,s,o,i,n,a,c,d,h,u,l,g,p,f,y,m,v,S,b=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},I=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){r=t},function(t){s=t},function(t){o=t},function(t){i=t},function(t){n=t},function(t){a=t},function(t){c=t},function(t){d=t},function(t){h=t},function(t){u=t},function(t){l=t},function(t){g=t},function(t){p=t}],execute:function(){"@stratusjs/angular",f="selector",y=h.cookie("env")?"":".min",m=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=(t,e)=>d.has(t,e)&&!d.isEmpty(d.get(t,e)),S=class extends u.RootComponent{constructor(t,e,r,o){super(),this.iconRegistry=t,this.sanitizer=e,this.ref=r,this.elementRef=o,this.title=f+"_component",this.get=d.get,this.has=v,this.log=console.log,this.Stratus=c.Stratus,this.selectCtrl=new s.FormControl,this.registry=new l.Registry,this.onChange=new i.Subject,this.svgIcons={},this.styled=!1,this.empty=!1,this.uid=d.uniqueId(`sa_${d.snakeCase(f)}_component_`),c.Stratus.Instances[this.uid]=this,this.dataSub=new i.Observable(t=>this.dataDefer(t)),d.forEach({selector_delete:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,selector_status:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`,selector_edit:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`},(r,s)=>t.addSvgIcon(s,e.bypassSecurityTrustResourceUrl(r)).getNamedSvgIcon(s)),c.Stratus.Internals.CssLoader(`${m}${f}/${f}.component${y}.css`).then(()=>{this.styled=!0,this.refresh().then()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.styled=!0,this.refresh().then()}),this.hydrate(o,e,["title","uid","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","ignorePriority","get","has","log","Stratus","selectCtrl","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","styled","empty","iconRegistry","sanitizer","ref","elementRef","drop","goToUrl","toggleStatus","remove","fetchData","dataDefer","dataRef","onDataChange","prioritize","getSvg","addSvgIcon","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(t=>{if(!(t&&t instanceof g.EventManager))return void console.warn("Unable to bind data from Registry!");const e=()=>{t.completed&&(this.dataDefer(this.subscriber),this.prioritize(),this.refresh().then())};t.on("change",e),e()})}drop(t){const e=this.dataRef();if(e&&e.length){if(o.moveItemInArray(e,t.previousIndex,t.currentIndex),!this.ignorePriority){let t=0;d.forEach(e,e=>e.priority=t++)}this.model.trigger("change")}}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}toggleStatus(t){let e={};d.isUndefined(this.data)||(e=d.get(this.data,"meta.data.api"));const r=t.status;t.status=1===r?0:1;new p.XHR({method:"PUT",url:"/Api/Content/"+t.id,data:{route:{},meta:e,payload:{status:t.status}},type:"application/json"}).send().then(e=>{if(!d.isObject(e)||"SUCCESS"!==d.get(e,"meta.status[0].code"))return console.error("error[toggleStatus]:",e),t.status=r,void this.refresh().then()}).catch(e=>{console.error("error[toggleStatus]:",e),t.status=r,this.refresh().then()})}remove(t){const e=this.dataRef();if(!e||!e.length)return console.error("unable to remove model from selection:",e),void this.refresh().then();let r=e.indexOf(t);if(-1===r){const s=e.map(e=>t.id===e.id?e:null).filter(t=>t);d.isArray(s)&&s.length&&(r=e.indexOf(d.head(s)))}-1!==r?(e.splice(r,1),this.model.trigger("change")):console.error("unable to find model:",t,"in selection:",e)}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(c.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(t){if(this.subscriber=this.subscriber||t,!this.subscriber||!this.model||!this.model.completed)return void setTimeout(()=>{this.dataDefer(t)},500);const e=this.dataRef();this.empty=!e.length,this.subscriber.next(e),this.refresh().then()}dataRef(){if(!this.model)return[];const t=this.model.get(this.property);return t&&d.isArray(t)?t:[]}onDataChange(){this.prioritize(),this.dataDefer(this.subscriber),this.refresh().then()}prioritize(){const t=this.dataRef();if(t&&t.length&&!this.ignorePriority){let e=0;d.forEach(t,t=>t.priority=e++)}}getSvg(t,e){const r=this.addSvgIcon(t,e);return new i.Observable(e=>{this.iconRegistry.getNamedSvgIcon(r).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(r)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const r=this.svgIcons[t]=d.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(r,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),r}},b([r.Input(),I("design:type",String)],S.prototype,"target",void 0),b([r.Input(),I("design:type",String)],S.prototype,"targetSuffix",void 0),b([r.Input(),I("design:type",Number)],S.prototype,"id",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"manifest",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"decouple",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"direct",void 0),b([r.Input(),I("design:type",Object)],S.prototype,"api",void 0),b([r.Input(),I("design:type",String)],S.prototype,"urlRoot",void 0),b([r.Input(),I("design:type",String)],S.prototype,"type",void 0),b([r.Input(),I("design:type",String)],S.prototype,"property",void 0),b([r.Input(),I("design:type",String)],S.prototype,"endpoint",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"ignorePriority",void 0),S=b([r.Component({selector:`sa-${f}`,templateUrl:`${m}/${f}/${f}.component${y}.html`}),I("design:paramtypes",[a.MatIconRegistry,n.DomSanitizer,r.ChangeDetectorRef,r.ElementRef])],S),t("SelectorComponent",S)}}});
|
|
1
|
+
System.register(["@angular/core","@angular/forms","@angular/cdk/drag-drop","rxjs","@angular/platform-browser","@angular/material/icon","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component","@stratusjs/angularjs/services/registry","@stratusjs/core/events/eventManager","@stratusjs/core/datastore/xhr"],function(t,e){"use strict";var r,s,o,i,n,a,c,d,h,u,l,g,p,f,y,m,v,S,b=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},I=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){r=t},function(t){s=t},function(t){o=t},function(t){i=t},function(t){n=t},function(t){a=t},function(t){c=t},function(t){d=t},function(t){h=t},function(t){u=t},function(t){l=t},function(t){g=t},function(t){p=t}],execute:function(){"@stratusjs/angular",f="selector",y=h.cookie("env")?"":".min",m=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=(t,e)=>d.has(t,e)&&!d.isEmpty(d.get(t,e)),S=class extends u.RootComponent{constructor(t,e,r,o){super(),this.iconRegistry=t,this.sanitizer=e,this.ref=r,this.elementRef=o,this.title=f+"_component",this.get=d.get,this.has=v,this.log=console.log,this.Stratus=c.Stratus,this.selectCtrl=new s.FormControl,this.registry=new l.Registry,this.onChange=new i.Subject,this.svgIcons={},this.styled=!1,this.empty=!1,this.uid=d.uniqueId(`sa_${d.snakeCase(f)}_component_`),c.Stratus.Instances[this.uid]=this,this.dataSub=new i.Observable(t=>this.dataDefer(t)),d.forEach({selector_delete:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,selector_status:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`,selector_edit:`${c.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`},(r,s)=>t.addSvgIcon(s,e.bypassSecurityTrustResourceUrl(r)).getNamedSvgIcon(s)),c.Stratus.Internals.CssLoader(`${m}${f}/${f}.component${y}.css`).then(()=>{this.styled=!0,this.refresh().then()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.styled=!0,this.refresh().then()}),this.hydrate(o,e,["title","uid","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","ignorePriority","get","has","log","Stratus","selectCtrl","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","styled","empty","iconRegistry","sanitizer","ref","elementRef","drop","goToUrl","toggleStatus","remove","fetchData","dataDefer","dataRef","getString","onDataChange","prioritize","getSvg","addSvgIcon","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(t=>{if(!(t&&t instanceof g.EventManager))return void console.warn("Unable to bind data from Registry!");const e=()=>{t.completed&&(this.dataDefer(this.subscriber),this.prioritize(),this.refresh().then())};t.on("change",e),e()})}drop(t){const e=this.dataRef();if(e&&e.length){if(o.moveItemInArray(e,t.previousIndex,t.currentIndex),!this.ignorePriority){let t=0;d.forEach(e,e=>e.priority=t++)}this.model.trigger("change")}}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}toggleStatus(t){let e={};d.isUndefined(this.data)||(e=d.get(this.data,"meta.data.api"));const r=t.status;t.status=1===r?0:1;new p.XHR({method:"PUT",url:"/Api/Content/"+t.id,data:{route:{},meta:e,payload:{status:t.status}},type:"application/json"}).send().then(e=>{if(!d.isObject(e)||"SUCCESS"!==d.get(e,"meta.status[0].code"))return console.error("error[toggleStatus]:",e),t.status=r,void this.refresh().then()}).catch(e=>{console.error("error[toggleStatus]:",e),t.status=r,this.refresh().then()})}remove(t){const e=this.dataRef();if(!e||!e.length)return console.error("unable to remove model from selection:",e),void this.refresh().then();let r=e.indexOf(t);if(-1===r){const s=e.map(e=>t.id===e.id?e:null).filter(t=>t);d.isArray(s)&&s.length&&(r=e.indexOf(d.head(s)))}-1!==r?(e.splice(r,1),this.model.trigger("change")):console.error("unable to find model:",t,"in selection:",e)}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(c.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(t){if(this.subscriber=this.subscriber||t,!this.subscriber||!this.model||!this.model.completed)return void setTimeout(()=>{this.dataDefer(t)},500);const e=this.dataRef();this.empty=!e.length,this.subscriber.next(e),this.refresh().then()}dataRef(){if(!this.model)return[];const t=this.model.get(this.property);return t&&d.isArray(t)?t:[]}getString(t,e){if(!d.isObject(t))return null;const r=d.get(t,e);return d.isString(r)?r:null}onDataChange(){this.prioritize(),this.dataDefer(this.subscriber),this.refresh().then()}prioritize(){const t=this.dataRef();if(t&&t.length&&!this.ignorePriority){let e=0;d.forEach(t,t=>t.priority=e++)}}getSvg(t,e){const r=this.addSvgIcon(t,e);return new i.Observable(e=>{this.iconRegistry.getNamedSvgIcon(r).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(r)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const r=this.svgIcons[t]=d.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(r,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),r}},b([r.Input(),I("design:type",String)],S.prototype,"target",void 0),b([r.Input(),I("design:type",String)],S.prototype,"targetSuffix",void 0),b([r.Input(),I("design:type",Number)],S.prototype,"id",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"manifest",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"decouple",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"direct",void 0),b([r.Input(),I("design:type",Object)],S.prototype,"api",void 0),b([r.Input(),I("design:type",String)],S.prototype,"urlRoot",void 0),b([r.Input(),I("design:type",String)],S.prototype,"type",void 0),b([r.Input(),I("design:type",String)],S.prototype,"property",void 0),b([r.Input(),I("design:type",String)],S.prototype,"endpoint",void 0),b([r.Input(),I("design:type",Boolean)],S.prototype,"ignorePriority",void 0),S=b([r.Component({selector:`sa-${f}`,templateUrl:`${m}/${f}/${f}.component${y}.html`}),I("design:paramtypes",[a.MatIconRegistry,n.DomSanitizer,r.ChangeDetectorRef,r.ElementRef])],S),t("SelectorComponent",S)}}});
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
isArray,
|
|
38
38
|
isEmpty,
|
|
39
39
|
isObject,
|
|
40
|
+
isString,
|
|
40
41
|
isUndefined,
|
|
41
42
|
snakeCase,
|
|
42
43
|
uniqueId
|
|
@@ -393,6 +394,17 @@ export class SelectorComponent extends RootComponent { // implements OnInit, OnC
|
|
|
393
394
|
return models
|
|
394
395
|
}
|
|
395
396
|
|
|
397
|
+
getString(object: unknown, property: string): string|null {
|
|
398
|
+
if (!isObject(object)) {
|
|
399
|
+
return null
|
|
400
|
+
}
|
|
401
|
+
const variable = get(object, property)
|
|
402
|
+
if (!isString(variable)) {
|
|
403
|
+
return null
|
|
404
|
+
}
|
|
405
|
+
return variable
|
|
406
|
+
}
|
|
407
|
+
|
|
396
408
|
// selectedModel (observer: any) : any {
|
|
397
409
|
// if (!this.data) {
|
|
398
410
|
// this.fetchData().then(function (data: any) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tree-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuGM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,aAAa,CAAA;YAC1B,gBAAgB,GAAG,MAAM,CAAA;YAGzB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,E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IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;wBACvB,OAAO,IAAI,CAAA;qBACd;oBACD,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;wBAC3B,OAAO,IAAI,CAAA;qBACd;oBACD,MAAM,WAAW,GAAG,cAAK,CAAC,IAAI,CAAC,CAAA;oBAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,EAAE,CAAC,CAAA;oBACzD,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;wBAEd,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;wBAC7B,OAAO,WAAW,CAAA;qBACrB;oBACD,2BAAe,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;oBACtC,OAAO,WAAW,CAAA;gBACtB,CAAC;aACJ,CAAA;YA/VY,mBAAmB;gBAL/B,gBAAS,CAAC;oBACP,QAAQ,EAAE,MAAM,UAAU,EAAE;oBAC5B,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBA6DO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBAER,wBAAiB;eA/D3B,mBAAmB,CA+V/B;;QACD,CAAC","file":"tree-dialog.component.js"}
|
|
@@ -160,7 +160,7 @@ export class TreeDialogComponent extends ResponsiveComponent implements OnInit,
|
|
|
160
160
|
basicContentQueryAttributes = 'options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true'
|
|
161
161
|
*/
|
|
162
162
|
basicContentQueryAttributesObject: LooseObject = {
|
|
163
|
-
isContent:true,
|
|
163
|
+
isContent: true,
|
|
164
164
|
isCollection: null,
|
|
165
165
|
showRoutable: true,
|
|
166
166
|
showRouting: true
|