@stratusjs/angular 0.12.2 → 0.12.4

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.
Files changed (71) hide show
  1. package/dist/angular.bundle.js +25678 -23702
  2. package/dist/angular.bundle.js.map +1 -0
  3. package/dist/angular.bundle.min.js +1 -1
  4. package/package.json +1 -1
  5. package/src/{froala/view/froala-view.module.js → angular.modules.js} +12 -14
  6. package/src/angular.modules.js.map +1 -0
  7. package/src/angular.modules.min.js +1 -0
  8. package/src/base/base.component.min.js +1 -1
  9. package/src/confirm-dialog/confirm-dialog.component.min.js +1 -1
  10. package/src/core/dialog.interface.js.map +1 -0
  11. package/src/editor/citation-dialog.component.min.js +1 -1
  12. package/src/editor/code-view-dialog.component.min.js +1 -1
  13. package/src/editor/editor.component.min.js +1 -1
  14. package/src/editor/link-dialog.component.js +1 -1
  15. package/src/editor/link-dialog.component.js.map +1 -1
  16. package/src/editor/link-dialog.component.min.js +1 -1
  17. package/src/editor/link-dialog.component.ts +1 -1
  18. package/src/editor/media-dialog.component.min.js +1 -1
  19. package/src/froala/plugins/citationManager.min.js +1 -1
  20. package/src/froala/plugins/mediaManager.min.js +1 -1
  21. package/src/froala/plugins/menuButton.min.js +1 -1
  22. package/src/json/json.component.css +2 -0
  23. package/src/json/json.component.css.map +1 -0
  24. package/src/json/json.component.js +257 -0
  25. package/src/json/json.component.js.map +1 -0
  26. package/src/json/json.component.min.css +0 -0
  27. package/src/json/json.component.min.js +1 -0
  28. package/src/material.js +196 -0
  29. package/src/material.js.map +1 -0
  30. package/src/material.min.js +1 -0
  31. package/src/media-selector/media-selector.component.min.js +1 -1
  32. package/src/selector/selector.component.min.js +1 -1
  33. package/src/timezone-selector/timezone-selector.component.min.js +1 -1
  34. package/src/tree/tree-dialog.component.min.js +1 -1
  35. package/src/tree/tree-node.component.min.js +1 -1
  36. package/src/tree/tree.component.min.js +1 -1
  37. package/src/editor/quill-break-blot.plugin.js +0 -38
  38. package/src/editor/quill-break-blot.plugin.js.map +0 -1
  39. package/src/editor/quill-break-blot.plugin.min.js +0 -1
  40. package/src/editor/quill-html-edit.plugin.js +0 -164
  41. package/src/editor/quill-html-edit.plugin.js.map +0 -1
  42. package/src/editor/quill-html-edit.plugin.min.js +0 -1
  43. package/src/editor/quill-image-format.plugin.js +0 -50
  44. package/src/editor/quill-image-format.plugin.js.map +0 -1
  45. package/src/editor/quill-image-format.plugin.min.js +0 -1
  46. package/src/editor/quill-input-button.plugin.js +0 -98
  47. package/src/editor/quill-input-button.plugin.js.map +0 -1
  48. package/src/editor/quill-input-button.plugin.min.js +0 -1
  49. package/src/froala/editor/froala-editor.directive.js +0 -328
  50. package/src/froala/editor/froala-editor.directive.js.map +0 -1
  51. package/src/froala/editor/froala-editor.directive.min.js +0 -1
  52. package/src/froala/editor/froala-editor.module.js +0 -37
  53. package/src/froala/editor/froala-editor.module.js.map +0 -1
  54. package/src/froala/editor/froala-editor.module.min.js +0 -1
  55. package/src/froala/editor/index.js +0 -22
  56. package/src/froala/editor/index.js.map +0 -1
  57. package/src/froala/editor/index.min.js +0 -1
  58. package/src/froala/plugins/image_manager.js +0 -364
  59. package/src/froala/plugins/image_manager.js.map +0 -1
  60. package/src/froala/plugins/image_manager.min.js +0 -1
  61. package/src/froala/view/froala-view.directive.js +0 -49
  62. package/src/froala/view/froala-view.directive.js.map +0 -1
  63. package/src/froala/view/froala-view.directive.min.js +0 -1
  64. package/src/froala/view/froala-view.module.js.map +0 -1
  65. package/src/froala/view/froala-view.module.min.js +0 -1
  66. package/src/froala/view/index.js +0 -22
  67. package/src/froala/view/index.js.map +0 -1
  68. package/src/froala/view/index.min.js +0 -1
  69. package/src/root/root.component.js +0 -43
  70. package/src/root/root.component.js.map +0 -1
  71. package/src/root/root.component.min.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"json.component.css","sourcesContent":[]}
@@ -0,0 +1,257 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ChangeDetectorRef, Component, ElementRef, Input } from '@angular/core';
11
+ import { DomSanitizer } from '@angular/platform-browser';
12
+ import { Stratus } from '@stratusjs/runtime/stratus';
13
+ import _, { has } from 'lodash';
14
+ import { cookie } from '@stratusjs/core/environment';
15
+ import { RootComponent } from '../core/root.component';
16
+ import { Observable, Subject, timer } from 'rxjs';
17
+ import { FormBuilder, FormControl } from '@angular/forms';
18
+ import { MatDialog } from '@angular/material/dialog';
19
+ import { EventManager } from '@stratusjs/core/events/eventManager';
20
+ import { catchError, debounce } from 'rxjs/operators';
21
+ import { Registry } from '@stratusjs/angularjs/services/registry';
22
+ const systemDir = '@stratusjs/angular';
23
+ const moduleName = 'json';
24
+ const min = !cookie('env') ? '.min' : '';
25
+ const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
26
+ let JsonComponent = class JsonComponent extends RootComponent {
27
+ constructor(sanitizer, ref, elementRef, fb, dialog) {
28
+ super();
29
+ this.sanitizer = sanitizer;
30
+ this.ref = ref;
31
+ this.elementRef = elementRef;
32
+ this.fb = fb;
33
+ this.dialog = dialog;
34
+ this.title = `${moduleName}_component`;
35
+ this.dev = !!cookie('env');
36
+ this.debug = !!cookie(`debug_${moduleName}`);
37
+ this._ = _;
38
+ this.has = has;
39
+ this.log = console.log;
40
+ this.Stratus = Stratus;
41
+ this.registry = new Registry();
42
+ this.onChange = new Subject();
43
+ this.svgIcons = {};
44
+ this.initialized = false;
45
+ this.styled = false;
46
+ this.blurred = false;
47
+ this.focused = false;
48
+ this.form = this.fb.group({
49
+ dataString: new FormControl(),
50
+ });
51
+ this.dataChangeLog = [];
52
+ this.incomingData = '';
53
+ this.outgoingData = '';
54
+ this.debounceSave = true;
55
+ this.debounceTime = 5000;
56
+ this.forceSave = false;
57
+ this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName)}_component_`);
58
+ Stratus.Instances[this.uid] = this;
59
+ Stratus.Internals.LoadCss([
60
+ `${localDir}${moduleName}/${moduleName}.component${min}.css`,
61
+ ]).then(() => {
62
+ this.styled = true;
63
+ this.refresh();
64
+ }).catch((e) => {
65
+ console.error(e);
66
+ console.warn('Issue detected in CSS Loader for Component:', this.uid);
67
+ this.styled = true;
68
+ this.refresh();
69
+ });
70
+ this.hydrate(elementRef, sanitizer, ["title", "uid", "dev", "debug", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "endpoint", "_", "has", "log", "Stratus", "registry", "fetched", "data", "collection", "model", "dataSub", "onChange", "subscriber", "svgIcons", "initialized", "styled", "blurred", "focused", "codeViewIsOpen", "form", "dataChangeLog", "incomingData", "outgoingData", "debounceSave", "debounceTime", "forceSave", "sanitizer", "ref", "elementRef", "fb", "dialog", "ngOnInit", "handleError", "fetchData", "dataDefer", "dataRef", "onDataChange", "modelSave", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
71
+ this.fetchData()
72
+ .then(data => {
73
+ if (!data || !(data instanceof EventManager)) {
74
+ console.warn('Unable to bind data from Registry!');
75
+ return;
76
+ }
77
+ const onDataChange = () => {
78
+ if (!data.completed) {
79
+ return;
80
+ }
81
+ this.dataDefer(this.subscriber);
82
+ };
83
+ data.on('change', onDataChange);
84
+ onDataChange();
85
+ });
86
+ this.dataSub = new Observable(subscriber => {
87
+ if (this.dev) {
88
+ console.warn(`[observable] creating subscriber on ${this.uid}`, subscriber);
89
+ }
90
+ return this.dataDefer(subscriber);
91
+ });
92
+ this.dataSub.pipe(debounce(() => timer(250)), catchError(this.handleError)).subscribe(evt => {
93
+ if (this.focused) {
94
+ if (this.dev) {
95
+ console.warn(`[subscriber] waiting on updates due to focus on ${this.uid}`);
96
+ }
97
+ return;
98
+ }
99
+ const dataControl = this.form.get('dataString');
100
+ if (dataControl.value === evt) {
101
+ if (this.initialized) {
102
+ this.refresh();
103
+ }
104
+ return;
105
+ }
106
+ dataControl.patchValue(evt);
107
+ this.refresh();
108
+ });
109
+ }
110
+ ngOnInit() {
111
+ this.initialized = true;
112
+ const dataControl = this.form.get('dataString');
113
+ if (this.debounceSave) {
114
+ dataControl.valueChanges.pipe(debounce(() => timer(this.debounceTime)), catchError(this.handleError)).subscribe((evt) => this.modelSave(evt));
115
+ dataControl.valueChanges.pipe(debounce(() => timer(250)), catchError(this.handleError)).subscribe((evt) => {
116
+ if (this.model.changedExternal) {
117
+ return;
118
+ }
119
+ this.model.changedExternal = true;
120
+ this.model.trigger('change');
121
+ });
122
+ dataControl.valueChanges.forEach((value) => this.outgoingData = value);
123
+ }
124
+ else {
125
+ dataControl.valueChanges.forEach((value) => this.modelSave(value));
126
+ }
127
+ }
128
+ handleError(err) {
129
+ console.error(err);
130
+ return err;
131
+ }
132
+ fetchData() {
133
+ if (this.fetched) {
134
+ return this.fetched;
135
+ }
136
+ return this.fetched = this.registry.fetch(Stratus.Select(this.elementRef.nativeElement), this);
137
+ }
138
+ dataDefer(subscriber) {
139
+ this.subscriber = this.subscriber || subscriber;
140
+ if (!this.subscriber) {
141
+ if (this.dev) {
142
+ console.warn(`[defer] debouncing due to empty subscriber on ${this.uid}`);
143
+ }
144
+ setTimeout(() => {
145
+ if (this.dev) {
146
+ console.warn(`[defer] debounced subscriber returned on ${this.uid}`);
147
+ }
148
+ this.dataDefer(subscriber);
149
+ }, 250);
150
+ return;
151
+ }
152
+ const prevString = _.clone(this.incomingData);
153
+ const dataString = this.dataRef();
154
+ if (prevString === dataString) {
155
+ return;
156
+ }
157
+ if (!dataString && (!this.data || !this.data.completed)) {
158
+ if (this.dev) {
159
+ console.warn(`[defer] debouncing subscriber due to unavailable data on ${this.uid}`, this.data);
160
+ }
161
+ setTimeout(() => {
162
+ if (this.dev) {
163
+ console.warn(`[defer] debounced subscriber returned on ${this.uid}`);
164
+ }
165
+ this.dataDefer(subscriber);
166
+ }, 250);
167
+ return;
168
+ }
169
+ if (prevString === dataString) {
170
+ return;
171
+ }
172
+ if (this.dev) {
173
+ console.warn(`[subscriber] new value submitted on ${this.uid}:`, dataString);
174
+ }
175
+ this.subscriber.next(dataString);
176
+ }
177
+ dataRef() {
178
+ if (!this.model) {
179
+ return '';
180
+ }
181
+ return this.incomingData = this.model.get(this.property);
182
+ }
183
+ onDataChange() {
184
+ this.dataDefer(this.subscriber);
185
+ this.refresh();
186
+ }
187
+ modelSave(value) {
188
+ if (!this.model.completed) {
189
+ return;
190
+ }
191
+ this.model.set(this.property, value);
192
+ if (this.debounceSave) {
193
+ this.model.changedExternal = false;
194
+ }
195
+ if (this.forceSave && !_.isEmpty(this.model.getIdentifier())) {
196
+ this.model.save();
197
+ }
198
+ }
199
+ };
200
+ __decorate([
201
+ Input(),
202
+ __metadata("design:type", String)
203
+ ], JsonComponent.prototype, "target", void 0);
204
+ __decorate([
205
+ Input(),
206
+ __metadata("design:type", String)
207
+ ], JsonComponent.prototype, "targetSuffix", void 0);
208
+ __decorate([
209
+ Input(),
210
+ __metadata("design:type", Number)
211
+ ], JsonComponent.prototype, "id", void 0);
212
+ __decorate([
213
+ Input(),
214
+ __metadata("design:type", Boolean)
215
+ ], JsonComponent.prototype, "manifest", void 0);
216
+ __decorate([
217
+ Input(),
218
+ __metadata("design:type", Boolean)
219
+ ], JsonComponent.prototype, "decouple", void 0);
220
+ __decorate([
221
+ Input(),
222
+ __metadata("design:type", Boolean)
223
+ ], JsonComponent.prototype, "direct", void 0);
224
+ __decorate([
225
+ Input(),
226
+ __metadata("design:type", Object)
227
+ ], JsonComponent.prototype, "api", void 0);
228
+ __decorate([
229
+ Input(),
230
+ __metadata("design:type", String)
231
+ ], JsonComponent.prototype, "urlRoot", void 0);
232
+ __decorate([
233
+ Input(),
234
+ __metadata("design:type", String)
235
+ ], JsonComponent.prototype, "type", void 0);
236
+ __decorate([
237
+ Input(),
238
+ __metadata("design:type", String)
239
+ ], JsonComponent.prototype, "property", void 0);
240
+ __decorate([
241
+ Input(),
242
+ __metadata("design:type", String)
243
+ ], JsonComponent.prototype, "endpoint", void 0);
244
+ JsonComponent = __decorate([
245
+ Component({
246
+ selector: 'sa-json',
247
+ templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
248
+ }),
249
+ __metadata("design:paramtypes", [DomSanitizer,
250
+ ChangeDetectorRef,
251
+ ElementRef,
252
+ FormBuilder,
253
+ MatDialog])
254
+ ], JsonComponent);
255
+ export { JsonComponent };
256
+
257
+ //# sourceMappingURL=json.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["json.component.ts"],"names":[],"mappings":";;;;;;;;;AAWA,OAAO,EAEH,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,KAAK,EAGR,MAAM,eAAe,CAAA;AACtB,OAAO,EACH,YAAY,EACf,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAClD,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAA;AAGlD,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAA;AAIpD,OAAO,EAAC,UAAU,EAAmB,OAAO,EAAc,KAAK,EAAC,MAAM,MAAM,CAAA;AAC5E,OAAO,EAAC,WAAW,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAA;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AQ,EAAE,KAAK,CAAC,CAAA;QAGpC,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAA;SACrC;QAGD,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,EAAE;YAC1D,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;SACpB;IACL,CAAC;CACJ,CAAA;AAnUG;IAAC,KAAK,EAAE;;6CAAe;AACvB;IAAC,KAAK,EAAE;;mDAAqB;AAC7B;IAAC,KAAK,EAAE;;yCAAW;AACnB;IAAC,KAAK,EAAE;;+CAAkB;AAC1B;IAAC,KAAK,EAAE;;+CAAkB;AAC1B;IAAC,KAAK,EAAE;;6CAAgB;AACxB;IAAC,KAAK,EAAE;;0CAAY;AACpB;IAAC,KAAK,EAAE;;8CAAgB;AAGxB;IAAC,KAAK,EAAE;;2CAAa;AACrB;IAAC,KAAK,EAAE;;+CAAiB;AACzB;IAAC,KAAK,EAAE;;+CAAiB;AArBhB,aAAa;IATzB,SAAS,CAAC;QACP,QAAQ,EAAE,SAAS;QAEnB,WAAW,EAAE,GAAG,QAAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;KAI9E,CAAC;qCA2EyB,YAAY;QAChB,iBAAiB;QACZ,UAAU;QAClB,WAAW;QACR,SAAS;GA7EnB,aAAa,CA4UzB;SA5UY,aAAa","file":"json.component.js"}
File without changes
@@ -0,0 +1 @@
1
+ var __decorate=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};import{ChangeDetectorRef,Component,ElementRef,Input}from"@angular/core";import{DomSanitizer}from"@angular/platform-browser";import{Stratus}from"@stratusjs/runtime/stratus";import _,{has}from"lodash";import{cookie}from"@stratusjs/core/environment";import{RootComponent}from"../core/root.component";import{Observable,Subject,timer}from"rxjs";import{FormBuilder,FormControl}from"@angular/forms";import{MatDialog}from"@angular/material/dialog";import{EventManager}from"@stratusjs/core/events/eventManager";import{catchError,debounce}from"rxjs/operators";import{Registry}from"@stratusjs/angularjs/services/registry";const systemDir="@stratusjs/angular",moduleName="json",min=cookie("env")?"":".min",localDir=`${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`;let JsonComponent=class extends RootComponent{constructor(e,t,o,r,i){super(),this.sanitizer=e,this.ref=t,this.elementRef=o,this.fb=r,this.dialog=i,this.title="json_component",this.dev=!!cookie("env"),this.debug=!!cookie("debug_json"),this._=_,this.has=has,this.log=console.log,this.Stratus=Stratus,this.registry=new Registry,this.onChange=new Subject,this.svgIcons={},this.initialized=!1,this.styled=!1,this.blurred=!1,this.focused=!1,this.form=this.fb.group({dataString:new FormControl}),this.dataChangeLog=[],this.incomingData="",this.outgoingData="",this.debounceSave=!0,this.debounceTime=5e3,this.forceSave=!1,this.uid=_.uniqueId(`sa_${_.snakeCase("json")}_component_`),Stratus.Instances[this.uid]=this,Stratus.Internals.LoadCss([`${localDir}json/json.component${min}.css`]).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.error(e),console.warn("Issue detected in CSS Loader for Component:",this.uid),this.styled=!0,this.refresh()}),this.hydrate(o,e,["title","uid","dev","debug","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","initialized","styled","blurred","focused","codeViewIsOpen","form","dataChangeLog","incomingData","outgoingData","debounceSave","debounceTime","forceSave","sanitizer","ref","elementRef","fb","dialog","ngOnInit","handleError","fetchData","dataDefer","dataRef","onDataChange","modelSave","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(e=>{if(!(e&&e instanceof EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&this.dataDefer(this.subscriber)};e.on("change",t),t()}),this.dataSub=new Observable(e=>(this.dev&&console.warn(`[observable] creating subscriber on ${this.uid}`,e),this.dataDefer(e))),this.dataSub.pipe(debounce(()=>timer(250)),catchError(this.handleError)).subscribe(e=>{if(this.focused)return void(this.dev&&console.warn(`[subscriber] waiting on updates due to focus on ${this.uid}`));const t=this.form.get("dataString");t.value!==e?(t.patchValue(e),this.refresh()):this.initialized&&this.refresh()})}ngOnInit(){this.initialized=!0;const e=this.form.get("dataString");this.debounceSave?(e.valueChanges.pipe(debounce(()=>timer(this.debounceTime)),catchError(this.handleError)).subscribe(e=>this.modelSave(e)),e.valueChanges.pipe(debounce(()=>timer(250)),catchError(this.handleError)).subscribe(e=>{this.model.changedExternal||(this.model.changedExternal=!0,this.model.trigger("change"))}),e.valueChanges.forEach(e=>this.outgoingData=e)):e.valueChanges.forEach(e=>this.modelSave(e))}handleError(e){return console.error(e),e}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber)return this.dev&&console.warn(`[defer] debouncing due to empty subscriber on ${this.uid}`),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250);const t=_.clone(this.incomingData),o=this.dataRef();return t!==o?o||this.data&&this.data.completed?void(t!==o&&(this.dev&&console.warn(`[subscriber] new value submitted on ${this.uid}:`,o),this.subscriber.next(o))):(this.dev&&console.warn(`[defer] debouncing subscriber due to unavailable data on ${this.uid}`,this.data),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250)):void 0}dataRef(){return this.model?this.incomingData=this.model.get(this.property):""}onDataChange(){this.dataDefer(this.subscriber),this.refresh()}modelSave(e){this.model.completed&&(this.model.set(this.property,e),this.debounceSave&&(this.model.changedExternal=!1),this.forceSave&&!_.isEmpty(this.model.getIdentifier())&&this.model.save())}};__decorate([Input(),__metadata("design:type",String)],JsonComponent.prototype,"target",void 0),__decorate([Input(),__metadata("design:type",String)],JsonComponent.prototype,"targetSuffix",void 0),__decorate([Input(),__metadata("design:type",Number)],JsonComponent.prototype,"id",void 0),__decorate([Input(),__metadata("design:type",Boolean)],JsonComponent.prototype,"manifest",void 0),__decorate([Input(),__metadata("design:type",Boolean)],JsonComponent.prototype,"decouple",void 0),__decorate([Input(),__metadata("design:type",Boolean)],JsonComponent.prototype,"direct",void 0),__decorate([Input(),__metadata("design:type",Object)],JsonComponent.prototype,"api",void 0),__decorate([Input(),__metadata("design:type",String)],JsonComponent.prototype,"urlRoot",void 0),__decorate([Input(),__metadata("design:type",String)],JsonComponent.prototype,"type",void 0),__decorate([Input(),__metadata("design:type",String)],JsonComponent.prototype,"property",void 0),__decorate([Input(),__metadata("design:type",String)],JsonComponent.prototype,"endpoint",void 0),JsonComponent=__decorate([Component({selector:"sa-json",templateUrl:`${localDir}/json/json.component${min}.html`}),__metadata("design:paramtypes",[DomSanitizer,ChangeDetectorRef,ElementRef,FormBuilder,MatDialog])],JsonComponent);export{JsonComponent};
@@ -0,0 +1,196 @@
1
+ System.register(["@angular/cdk/a11y", "@angular/cdk/drag-drop", "@angular/cdk/portal", "@angular/cdk/scrolling", "@angular/cdk/stepper", "@angular/cdk/table", "@angular/cdk/tree", "@angular/core", "@angular/material/autocomplete", "@angular/material/badge", "@angular/material/bottom-sheet", "@angular/material/button", "@angular/material/button-toggle", "@angular/material/card", "@angular/material/checkbox", "@angular/material/chips", "@angular/material/datepicker", "@angular/material/dialog", "@angular/material/divider", "@angular/material/expansion", "@angular/material/grid-list", "@angular/material/icon", "@angular/material/input", "@angular/material/list", "@angular/material/menu", "@angular/material/core", "@angular/material/paginator", "@angular/material/progress-bar", "@angular/material/progress-spinner", "@angular/material/radio", "@angular/material/select", "@angular/material/sidenav", "@angular/material/slide-toggle", "@angular/material/slider", "@angular/material/snack-bar", "@angular/material/sort", "@angular/material/stepper", "@angular/material/table", "@angular/material/tabs", "@angular/material/toolbar", "@angular/material/tooltip", "@angular/material/tree"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ var a11y_1, drag_drop_1, portal_1, scrolling_1, stepper_1, table_1, tree_1, core_1, autocomplete_1, badge_1, bottom_sheet_1, button_1, button_toggle_1, card_1, checkbox_1, chips_1, datepicker_1, dialog_1, divider_1, expansion_1, grid_list_1, icon_1, input_1, list_1, menu_1, core_2, paginator_1, progress_bar_1, progress_spinner_1, radio_1, select_1, sidenav_1, slide_toggle_1, slider_1, snack_bar_1, sort_1, stepper_2, table_2, tabs_1, toolbar_1, tooltip_1, tree_2, MaterialModules;
10
+ var __moduleName = context_1 && context_1.id;
11
+ return {
12
+ setters: [
13
+ function (a11y_1_1) {
14
+ a11y_1 = a11y_1_1;
15
+ },
16
+ function (drag_drop_1_1) {
17
+ drag_drop_1 = drag_drop_1_1;
18
+ },
19
+ function (portal_1_1) {
20
+ portal_1 = portal_1_1;
21
+ },
22
+ function (scrolling_1_1) {
23
+ scrolling_1 = scrolling_1_1;
24
+ },
25
+ function (stepper_1_1) {
26
+ stepper_1 = stepper_1_1;
27
+ },
28
+ function (table_1_1) {
29
+ table_1 = table_1_1;
30
+ },
31
+ function (tree_1_1) {
32
+ tree_1 = tree_1_1;
33
+ },
34
+ function (core_1_1) {
35
+ core_1 = core_1_1;
36
+ },
37
+ function (autocomplete_1_1) {
38
+ autocomplete_1 = autocomplete_1_1;
39
+ },
40
+ function (badge_1_1) {
41
+ badge_1 = badge_1_1;
42
+ },
43
+ function (bottom_sheet_1_1) {
44
+ bottom_sheet_1 = bottom_sheet_1_1;
45
+ },
46
+ function (button_1_1) {
47
+ button_1 = button_1_1;
48
+ },
49
+ function (button_toggle_1_1) {
50
+ button_toggle_1 = button_toggle_1_1;
51
+ },
52
+ function (card_1_1) {
53
+ card_1 = card_1_1;
54
+ },
55
+ function (checkbox_1_1) {
56
+ checkbox_1 = checkbox_1_1;
57
+ },
58
+ function (chips_1_1) {
59
+ chips_1 = chips_1_1;
60
+ },
61
+ function (datepicker_1_1) {
62
+ datepicker_1 = datepicker_1_1;
63
+ },
64
+ function (dialog_1_1) {
65
+ dialog_1 = dialog_1_1;
66
+ },
67
+ function (divider_1_1) {
68
+ divider_1 = divider_1_1;
69
+ },
70
+ function (expansion_1_1) {
71
+ expansion_1 = expansion_1_1;
72
+ },
73
+ function (grid_list_1_1) {
74
+ grid_list_1 = grid_list_1_1;
75
+ },
76
+ function (icon_1_1) {
77
+ icon_1 = icon_1_1;
78
+ },
79
+ function (input_1_1) {
80
+ input_1 = input_1_1;
81
+ },
82
+ function (list_1_1) {
83
+ list_1 = list_1_1;
84
+ },
85
+ function (menu_1_1) {
86
+ menu_1 = menu_1_1;
87
+ },
88
+ function (core_2_1) {
89
+ core_2 = core_2_1;
90
+ },
91
+ function (paginator_1_1) {
92
+ paginator_1 = paginator_1_1;
93
+ },
94
+ function (progress_bar_1_1) {
95
+ progress_bar_1 = progress_bar_1_1;
96
+ },
97
+ function (progress_spinner_1_1) {
98
+ progress_spinner_1 = progress_spinner_1_1;
99
+ },
100
+ function (radio_1_1) {
101
+ radio_1 = radio_1_1;
102
+ },
103
+ function (select_1_1) {
104
+ select_1 = select_1_1;
105
+ },
106
+ function (sidenav_1_1) {
107
+ sidenav_1 = sidenav_1_1;
108
+ },
109
+ function (slide_toggle_1_1) {
110
+ slide_toggle_1 = slide_toggle_1_1;
111
+ },
112
+ function (slider_1_1) {
113
+ slider_1 = slider_1_1;
114
+ },
115
+ function (snack_bar_1_1) {
116
+ snack_bar_1 = snack_bar_1_1;
117
+ },
118
+ function (sort_1_1) {
119
+ sort_1 = sort_1_1;
120
+ },
121
+ function (stepper_2_1) {
122
+ stepper_2 = stepper_2_1;
123
+ },
124
+ function (table_2_1) {
125
+ table_2 = table_2_1;
126
+ },
127
+ function (tabs_1_1) {
128
+ tabs_1 = tabs_1_1;
129
+ },
130
+ function (toolbar_1_1) {
131
+ toolbar_1 = toolbar_1_1;
132
+ },
133
+ function (tooltip_1_1) {
134
+ tooltip_1 = tooltip_1_1;
135
+ },
136
+ function (tree_2_1) {
137
+ tree_2 = tree_2_1;
138
+ }
139
+ ],
140
+ execute: function () {
141
+ MaterialModules = class MaterialModules {
142
+ };
143
+ MaterialModules = __decorate([
144
+ core_1.NgModule({
145
+ exports: [
146
+ a11y_1.A11yModule,
147
+ stepper_1.CdkStepperModule,
148
+ table_1.CdkTableModule,
149
+ tree_1.CdkTreeModule,
150
+ drag_drop_1.DragDropModule,
151
+ autocomplete_1.MatAutocompleteModule,
152
+ badge_1.MatBadgeModule,
153
+ bottom_sheet_1.MatBottomSheetModule,
154
+ button_1.MatButtonModule,
155
+ button_toggle_1.MatButtonToggleModule,
156
+ card_1.MatCardModule,
157
+ checkbox_1.MatCheckboxModule,
158
+ chips_1.MatChipsModule,
159
+ stepper_2.MatStepperModule,
160
+ datepicker_1.MatDatepickerModule,
161
+ dialog_1.MatDialogModule,
162
+ divider_1.MatDividerModule,
163
+ expansion_1.MatExpansionModule,
164
+ grid_list_1.MatGridListModule,
165
+ icon_1.MatIconModule,
166
+ input_1.MatInputModule,
167
+ list_1.MatListModule,
168
+ menu_1.MatMenuModule,
169
+ core_2.MatNativeDateModule,
170
+ paginator_1.MatPaginatorModule,
171
+ progress_bar_1.MatProgressBarModule,
172
+ progress_spinner_1.MatProgressSpinnerModule,
173
+ radio_1.MatRadioModule,
174
+ core_2.MatRippleModule,
175
+ select_1.MatSelectModule,
176
+ sidenav_1.MatSidenavModule,
177
+ slider_1.MatSliderModule,
178
+ slide_toggle_1.MatSlideToggleModule,
179
+ snack_bar_1.MatSnackBarModule,
180
+ sort_1.MatSortModule,
181
+ table_2.MatTableModule,
182
+ tabs_1.MatTabsModule,
183
+ toolbar_1.MatToolbarModule,
184
+ tooltip_1.MatTooltipModule,
185
+ tree_2.MatTreeModule,
186
+ portal_1.PortalModule,
187
+ scrolling_1.ScrollingModule,
188
+ ]
189
+ })
190
+ ], MaterialModules);
191
+ exports_1("MaterialModules", MaterialModules);
192
+ }
193
+ };
194
+ });
195
+
196
+ //# sourceMappingURL=material.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["material.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0Fa,eAAe,GAArB,MAAM,eAAe;aAC3B,CAAA;YADY,eAAe;gBA9C3B,eAAQ,CAAC;oBACN,OAAO,EAAE;wBACL,iBAAU;wBACV,0BAAgB;wBAChB,sBAAc;wBACd,oBAAa;wBACb,0BAAc;wBACd,oCAAqB;wBACrB,sBAAc;wBACd,mCAAoB;wBACpB,wBAAe;wBACf,qCAAqB;wBACrB,oBAAa;wBACb,4BAAiB;wBACjB,sBAAc;wBACd,0BAAgB;wBAChB,gCAAmB;wBACnB,wBAAe;wBACf,0BAAgB;wBAChB,8BAAkB;wBAClB,6BAAiB;wBACjB,oBAAa;wBACb,sBAAc;wBACd,oBAAa;wBACb,oBAAa;wBACb,0BAAmB;wBACnB,8BAAkB;wBAClB,mCAAoB;wBACpB,2CAAwB;wBACxB,sBAAc;wBACd,sBAAe;wBACf,wBAAe;wBACf,0BAAgB;wBAChB,wBAAe;wBACf,mCAAoB;wBACpB,6BAAiB;wBACjB,oBAAa;wBACb,sBAAc;wBACd,oBAAa;wBACb,0BAAgB;wBAChB,0BAAgB;wBAChB,oBAAa;wBACb,qBAAY;wBACZ,2BAAe;qBAClB;iBACJ,CAAC;eACW,eAAe,CAC3B;;QACD,CAAC","file":"material.js"}
@@ -0,0 +1 @@
1
+ System.register(["@angular/cdk/a11y","@angular/cdk/drag-drop","@angular/cdk/portal","@angular/cdk/scrolling","@angular/cdk/stepper","@angular/cdk/table","@angular/cdk/tree","@angular/core","@angular/material/autocomplete","@angular/material/badge","@angular/material/bottom-sheet","@angular/material/button","@angular/material/button-toggle","@angular/material/card","@angular/material/checkbox","@angular/material/chips","@angular/material/datepicker","@angular/material/dialog","@angular/material/divider","@angular/material/expansion","@angular/material/grid-list","@angular/material/icon","@angular/material/input","@angular/material/list","@angular/material/menu","@angular/material/core","@angular/material/paginator","@angular/material/progress-bar","@angular/material/progress-spinner","@angular/material/radio","@angular/material/select","@angular/material/sidenav","@angular/material/slide-toggle","@angular/material/slider","@angular/material/snack-bar","@angular/material/sort","@angular/material/stepper","@angular/material/table","@angular/material/tabs","@angular/material/toolbar","@angular/material/tooltip","@angular/material/tree"],function(a,t){"use strict";var e,n,l,o,r,u,i,c,M,d,g,f,s,m,p,b,k,S,h,T,v,y,D,x,B,C,P,R,j,O,A,I,L,N,_,w,E,G,q,z,F,H,J,K=this&&this.__decorate||function(a,t,e,n){var l,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(a,t,e,n);else for(var u=a.length-1;u>=0;u--)(l=a[u])&&(r=(o<3?l(r):o>3?l(t,e,r):l(t,e))||r);return o>3&&r&&Object.defineProperty(t,e,r),r};t&&t.id;return{setters:[function(a){e=a},function(a){n=a},function(a){l=a},function(a){o=a},function(a){r=a},function(a){u=a},function(a){i=a},function(a){c=a},function(a){M=a},function(a){d=a},function(a){g=a},function(a){f=a},function(a){s=a},function(a){m=a},function(a){p=a},function(a){b=a},function(a){k=a},function(a){S=a},function(a){h=a},function(a){T=a},function(a){v=a},function(a){y=a},function(a){D=a},function(a){x=a},function(a){B=a},function(a){C=a},function(a){P=a},function(a){R=a},function(a){j=a},function(a){O=a},function(a){A=a},function(a){I=a},function(a){L=a},function(a){N=a},function(a){_=a},function(a){w=a},function(a){E=a},function(a){G=a},function(a){q=a},function(a){z=a},function(a){F=a},function(a){H=a}],execute:function(){J=class{},J=K([c.NgModule({exports:[e.A11yModule,r.CdkStepperModule,u.CdkTableModule,i.CdkTreeModule,n.DragDropModule,M.MatAutocompleteModule,d.MatBadgeModule,g.MatBottomSheetModule,f.MatButtonModule,s.MatButtonToggleModule,m.MatCardModule,p.MatCheckboxModule,b.MatChipsModule,E.MatStepperModule,k.MatDatepickerModule,S.MatDialogModule,h.MatDividerModule,T.MatExpansionModule,v.MatGridListModule,y.MatIconModule,D.MatInputModule,x.MatListModule,B.MatMenuModule,C.MatNativeDateModule,P.MatPaginatorModule,R.MatProgressBarModule,j.MatProgressSpinnerModule,O.MatRadioModule,C.MatRippleModule,A.MatSelectModule,I.MatSidenavModule,N.MatSliderModule,L.MatSlideToggleModule,_.MatSnackBarModule,w.MatSortModule,G.MatTableModule,q.MatTabsModule,z.MatToolbarModule,F.MatTooltipModule,H.MatTreeModule,l.PortalModule,o.ScrollingModule]})],J),a("MaterialModules",J)}}});
@@ -1 +1 @@
1
- System.register(["@angular/core","@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","@angular/cdk/scrolling"],function(e,t){"use strict";var i,r,o,n,s,a,l,d,c,u,h,g,p,m,f,v,y,I=this&&this.__decorate||function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},S=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;function b(e,t){return Array.prototype.indexOf.call(e,t)}return{setters:[function(e){i=e},function(e){r=e},function(e){o=e},function(e){n=e},function(e){s=e},function(e){a=e},function(e){l=e},function(e){d=e},function(e){c=e},function(e){u=e},function(e){h=e},function(e){g=e}],execute:function(){"@stratusjs/angular",p="media-selector",m=d.cookie("env")?"":".min",f=`${a.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=(e,t)=>l.default.has(e,t)&&!l.default.isEmpty(l.default.get(e,t)),y=class extends c.RootComponent{iconRegistry;sanitizer;ref;elementRef;viewportRuler;title=p+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;_=l.default;has=v;log=console.log;Stratus=a.Stratus;registry=new u.Registry;fetched;data;collection;model;dataSub;onChange=new o.Subject;subscriber;eventID;svgIcons={};styled=!1;empty=!1;libraryDisplay=!1;isSelector=!0;isGrid=!0;listGroup;placeholder;targetList;targetIndex;sourceList;sourceIndex;activeContainer;constructor(e,t,i,r,n){super(),this.iconRegistry=e,this.sanitizer=t,this.ref=i,this.elementRef=r,this.viewportRuler=n,this.uid=l.default.uniqueId(`sa_${l.default.snakeCase(p)}_component_`),a.Stratus.Instances[this.uid]=this,this.dataSub=new o.Observable(e=>this.dataDefer(e)),this.targetList=null,this.sourceList=null,l.default.forEach({media_selector_add:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/add.svg`,media_selector_clear:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/clear.svg`,media_selector_delete:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,media_selector_edit:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`,media_selector_info:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/info.svg`,media_selector_image:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-image.svg`,media_selector_video:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-video.svg`,media_selector_audio:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-audio.svg`,media_selector_document:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-document.svg`},(i,r)=>e.addSvgIcon(r,t.bypassSecurityTrustResourceUrl(i)).getNamedSvgIcon(r)),a.Stratus.Internals.CssLoader(`${f}${p}/${p}.component${m}.css`).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(e),this.styled=!0,this.refresh()}),this.hydrate(r,t,["title","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","eventID","svgIcons","styled","empty","libraryDisplay","isSelector","isGrid","listGroup","placeholder","targetList","targetIndex","sourceList","sourceIndex","activeContainer","iconRegistry","sanitizer","ref","elementRef","viewportRuler","drop","moveModel","goToUrl","remove","fetchData","dataDefer","dataRef","onDataChange","prioritize","getSvg","addSvgIcon","toggleLibrary","showDetails","deleteMedia","removeFromSelected","dragEntered","move","moveItemInGrid","enterPredicate","getPointerPositionOnPage","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.eventID=`${this.target}:${this.id}:${this.property}`,this.fetchData().then(e=>{if(!(e&&e instanceof h.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&(this.dataDefer(this.subscriber),this.prioritize(),this.refresh())};e.on("change",t),t()})}drop(e){const t=this.dataRef();if(!t||!t.length)return;d.cookie("env")&&console.log("drop:",e.previousContainer.id,e.container.id),this.isGrid&&this.moveItemInGrid(t)||(this.isGrid&&d.cookie("env")&&console.warn("moving item in grid failed. attempting fallback."),r.moveItemInArray(t,e.previousIndex,e.currentIndex));let i=0;l.default.forEach(t,e=>e.priority=i++),this.model.trigger("change")}moveModel(e,t){const i=this.dataRef();if(!i||!i.length)return;r.moveItemInArray(i,e,t);let o=0;l.default.forEach(i,e=>e.priority=o++),this.model.trigger("change")}goToUrl(e){e&&e.contentType?window.open(e.contentType.editUrl+"?id="+e.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}remove(e){const t=this.dataRef();if(!t||!t.length)return console.error("unable to remove model from selection:",t),void this.refresh();let i=t.indexOf(e);if(-1===i){const r=t.map(t=>e.id===t.id?t:null).filter(e=>e);l.default.isArray(r)&&r.length&&(i=t.indexOf(l.default.first(r)))}-1!==i?(t.splice(i,1),this.model.trigger("change"),this.removeFromSelected(e.id)):console.error("unable to find model:",e,"in selection:",t)}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(a.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber||!this.model||!this.model.completed)return void setTimeout(()=>{this.dataDefer(e)},500);const t=this.dataRef();this.empty=!t.length,this.subscriber.next(t),this.refresh()}dataRef(){if(!this.model)return[];const e=this.model.get(this.property);return e&&l.default.isArray(e)?e:[]}onDataChange(){this.prioritize(),this.dataDefer(this.subscriber),this.refresh()}prioritize(){const e=this.dataRef();if(!e||!e.length)return;let t=0;l.default.forEach(e,e=>e.priority=t++)}getSvg(e,t){const i=this.addSvgIcon(e,t);return new o.Observable(t=>{this.iconRegistry.getNamedSvgIcon(i).subscribe({error(t){console.error(`getSvg(${e}): ${t}`)},complete(){t.next(i)}})})}addSvgIcon(e,t){if(e in this.svgIcons)return this.svgIcons[e];t||(t={});const i=this.svgIcons[e]=l.default.uniqueId("media_selector_svg");return this.iconRegistry.addSvgIcon(i,this.sanitizer.bypassSecurityTrustResourceUrl(e),t),i}toggleLibrary(){this.libraryDisplay=!this.libraryDisplay,a.Stratus.Environment.trigger(this.eventID,"toggleLibrary"),a.Stratus.Environment.trigger(`${this.eventID}:toggleLibrary`,this.libraryDisplay)}showDetails(e){a.Stratus.Environment.trigger(this.eventID,"showDetails"),a.Stratus.Environment.trigger(`${this.eventID}:showDetails`,e)}deleteMedia(e){a.Stratus.Environment.trigger(this.eventID,"deleteMedia"),a.Stratus.Environment.trigger(`${this.eventID}:deleteMedia`,e)}removeFromSelected(e){a.Stratus.Environment.trigger(this.eventID,"removeFromSelected"),a.Stratus.Environment.trigger(`${this.eventID}:removeFromSelected`,e)}dragEntered(e){const t=this.dataRef();if(!t||!t.length)return;const i=e.item,o=e.container,n=i.data,s=o.data,a=o.element.nativeElement,c=a.querySelector(".cdk-drag-placeholder");a.removeChild(c),a.parentElement.insertBefore(c,a),d.cookie("env")&&console.log("media move:",n,"->",s),r.moveItemInArray(t,n,s);let u=0;l.default.forEach(t,e=>e.priority=u++),this.model.trigger("change")}move(e){const t=this.getPointerPositionOnPage(e.event);!l.default.isUndefined(this.listGroup)&&this.listGroup?l.default.isUndefined(this.listGroup._items)?console.warn("this.listGroup._items does not exist:",this.listGroup):this.listGroup._items.forEach(e=>{(function(e,t,i){const{top:r,bottom:o,left:n,right:s}=e.element.nativeElement.getBoundingClientRect();return i>=r&&i<=o&&t>=n&&t<=s})(e,t.x,t.y)&&(this.activeContainer=e)}):console.warn("this.listGroup does not exist:",this)}moveItemInGrid(e){if(d.cookie("env")&&console.log("moveItemInGrid:",e),!this.targetList)return!1;const t=this.placeholder.element.nativeElement,i=t.parentElement;return t.style.display="none",i.removeChild(t),i.appendChild(t),i.insertBefore(this.sourceList.element.nativeElement,i.children[this.sourceIndex]),this.targetList=null,this.sourceList=null,this.sourceIndex!==this.targetIndex&&(r.moveItemInArray(e,this.sourceIndex,this.targetIndex),!0)}enterPredicate=(e,t)=>{if(t===this.placeholder)return!0;if(d.cookie("env")&&console.log("entering predicate..."),t!==this.activeContainer)return!1;const i=this.placeholder.element.nativeElement,r=e.dropContainer.element.nativeElement,o=t.element.nativeElement,n=b(o.parentElement.children,this.sourceList?i:r),s=b(o.parentElement.children,o);return this.sourceList||(this.sourceIndex=n,this.sourceList=e.dropContainer,i.style.width=`${r.clientWidth}px`,i.style.height=`${r.clientHeight}px`,r.parentElement.removeChild(r)),this.targetIndex=s,this.targetList=t,d.cookie("env")&&console.log("predicate:",this.sourceIndex,"->",this.targetIndex),i.style.display="",o.parentElement.insertBefore(i,s>n?o.nextSibling:o),this.placeholder._dropListRef.enter(e._dragRef,e.element.nativeElement.offsetLeft,e.element.nativeElement.offsetTop),!1};getPointerPositionOnPage(e){const t=function(e){return e.type.startsWith("touch")}(e)?e.touches[0]||e.changedTouches[0]:e,i=this.viewportRuler.getViewportScrollPosition();return{x:t.pageX-i.left,y:t.pageY-i.top}}},I([i.Input(),S("design:type",String)],y.prototype,"target",void 0),I([i.Input(),S("design:type",String)],y.prototype,"targetSuffix",void 0),I([i.Input(),S("design:type",Number)],y.prototype,"id",void 0),I([i.Input(),S("design:type",Boolean)],y.prototype,"manifest",void 0),I([i.Input(),S("design:type",Boolean)],y.prototype,"decouple",void 0),I([i.Input(),S("design:type",Boolean)],y.prototype,"direct",void 0),I([i.Input(),S("design:type",Object)],y.prototype,"api",void 0),I([i.Input(),S("design:type",String)],y.prototype,"urlRoot",void 0),I([i.Input(),S("design:type",String)],y.prototype,"type",void 0),I([i.Input(),S("design:type",String)],y.prototype,"property",void 0),I([i.Input(),S("design:type",String)],y.prototype,"endpoint",void 0),I([i.ViewChild(r.CdkDropListGroup),S("design:type",r.CdkDropListGroup)],y.prototype,"listGroup",void 0),I([i.ViewChild(r.CdkDropList),S("design:type",r.CdkDropList)],y.prototype,"placeholder",void 0),y=I([i.Component({selector:`sa-internal-${p}`,templateUrl:`${f}/${p}/${p}.component${m}.html`}),S("design:paramtypes",[s.MatIconRegistry,n.DomSanitizer,i.ChangeDetectorRef,i.ElementRef,g.ViewportRuler])],y),e("MediaSelectorComponent",y)}}});
1
+ System.register(["@angular/core","@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","@angular/cdk/scrolling"],function(e,t){"use strict";var i,r,o,n,s,a,l,d,c,u,h,g,p,m,f,v,y,I=this&&this.__decorate||function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},S=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;function b(e,t){return Array.prototype.indexOf.call(e,t)}return{setters:[function(e){i=e},function(e){r=e},function(e){o=e},function(e){n=e},function(e){s=e},function(e){a=e},function(e){l=e},function(e){d=e},function(e){c=e},function(e){u=e},function(e){h=e},function(e){g=e}],execute:function(){p="media-selector",m=d.cookie("env")?"":".min",f=`${a.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=(e,t)=>l.default.has(e,t)&&!l.default.isEmpty(l.default.get(e,t)),y=class extends c.RootComponent{iconRegistry;sanitizer;ref;elementRef;viewportRuler;title=p+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;_=l.default;has=v;log=console.log;Stratus=a.Stratus;registry=new u.Registry;fetched;data;collection;model;dataSub;onChange=new o.Subject;subscriber;eventID;svgIcons={};styled=!1;empty=!1;libraryDisplay=!1;isSelector=!0;isGrid=!0;listGroup;placeholder;targetList;targetIndex;sourceList;sourceIndex;activeContainer;constructor(e,t,i,r,n){super(),this.iconRegistry=e,this.sanitizer=t,this.ref=i,this.elementRef=r,this.viewportRuler=n,this.uid=l.default.uniqueId(`sa_${l.default.snakeCase(p)}_component_`),a.Stratus.Instances[this.uid]=this,this.dataSub=new o.Observable(e=>this.dataDefer(e)),this.targetList=null,this.sourceList=null,l.default.forEach({media_selector_add:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/add.svg`,media_selector_clear:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/clear.svg`,media_selector_delete:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,media_selector_edit:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`,media_selector_info:`${a.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/info.svg`,media_selector_image:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-image.svg`,media_selector_video:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-video.svg`,media_selector_audio:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-audio.svg`,media_selector_document:`${a.Stratus.BaseUrl}sitetheorymedia/images/mediaTypeIcons/media-icon-document.svg`},(i,r)=>e.addSvgIcon(r,t.bypassSecurityTrustResourceUrl(i)).getNamedSvgIcon(r)),a.Stratus.Internals.CssLoader(`${f}${p}/${p}.component${m}.css`).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(e),this.styled=!0,this.refresh()}),this.hydrate(r,t,["title","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","eventID","svgIcons","styled","empty","libraryDisplay","isSelector","isGrid","listGroup","placeholder","targetList","targetIndex","sourceList","sourceIndex","activeContainer","iconRegistry","sanitizer","ref","elementRef","viewportRuler","drop","moveModel","goToUrl","remove","fetchData","dataDefer","dataRef","onDataChange","prioritize","getSvg","addSvgIcon","toggleLibrary","showDetails","deleteMedia","removeFromSelected","dragEntered","move","moveItemInGrid","enterPredicate","getPointerPositionOnPage","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.eventID=`${this.target}:${this.id}:${this.property}`,this.fetchData().then(e=>{if(!(e&&e instanceof h.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&(this.dataDefer(this.subscriber),this.prioritize(),this.refresh())};e.on("change",t),t()})}drop(e){const t=this.dataRef();if(!t||!t.length)return;d.cookie("env")&&console.log("drop:",e.previousContainer.id,e.container.id),this.isGrid&&this.moveItemInGrid(t)||(this.isGrid&&d.cookie("env")&&console.warn("moving item in grid failed. attempting fallback."),r.moveItemInArray(t,e.previousIndex,e.currentIndex));let i=0;l.default.forEach(t,e=>e.priority=i++),this.model.trigger("change")}moveModel(e,t){const i=this.dataRef();if(!i||!i.length)return;r.moveItemInArray(i,e,t);let o=0;l.default.forEach(i,e=>e.priority=o++),this.model.trigger("change")}goToUrl(e){e&&e.contentType?window.open(e.contentType.editUrl+"?id="+e.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}remove(e){const t=this.dataRef();if(!t||!t.length)return console.error("unable to remove model from selection:",t),void this.refresh();let i=t.indexOf(e);if(-1===i){const r=t.map(t=>e.id===t.id?t:null).filter(e=>e);l.default.isArray(r)&&r.length&&(i=t.indexOf(l.default.first(r)))}-1!==i?(t.splice(i,1),this.model.trigger("change"),this.removeFromSelected(e.id)):console.error("unable to find model:",e,"in selection:",t)}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(a.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber||!this.model||!this.model.completed)return void setTimeout(()=>{this.dataDefer(e)},500);const t=this.dataRef();this.empty=!t.length,this.subscriber.next(t),this.refresh()}dataRef(){if(!this.model)return[];const e=this.model.get(this.property);return e&&l.default.isArray(e)?e:[]}onDataChange(){this.prioritize(),this.dataDefer(this.subscriber),this.refresh()}prioritize(){const e=this.dataRef();if(!e||!e.length)return;let t=0;l.default.forEach(e,e=>e.priority=t++)}getSvg(e,t){const i=this.addSvgIcon(e,t);return new o.Observable(t=>{this.iconRegistry.getNamedSvgIcon(i).subscribe({error(t){console.error(`getSvg(${e}): ${t}`)},complete(){t.next(i)}})})}addSvgIcon(e,t){if(e in this.svgIcons)return this.svgIcons[e];t||(t={});const i=this.svgIcons[e]=l.default.uniqueId("media_selector_svg");return this.iconRegistry.addSvgIcon(i,this.sanitizer.bypassSecurityTrustResourceUrl(e),t),i}toggleLibrary(){this.libraryDisplay=!this.libraryDisplay,a.Stratus.Environment.trigger(this.eventID,"toggleLibrary"),a.Stratus.Environment.trigger(`${this.eventID}:toggleLibrary`,this.libraryDisplay)}showDetails(e){a.Stratus.Environment.trigger(this.eventID,"showDetails"),a.Stratus.Environment.trigger(`${this.eventID}:showDetails`,e)}deleteMedia(e){a.Stratus.Environment.trigger(this.eventID,"deleteMedia"),a.Stratus.Environment.trigger(`${this.eventID}:deleteMedia`,e)}removeFromSelected(e){a.Stratus.Environment.trigger(this.eventID,"removeFromSelected"),a.Stratus.Environment.trigger(`${this.eventID}:removeFromSelected`,e)}dragEntered(e){const t=this.dataRef();if(!t||!t.length)return;const i=e.item,o=e.container,n=i.data,s=o.data,a=o.element.nativeElement,c=a.querySelector(".cdk-drag-placeholder");a.removeChild(c),a.parentElement.insertBefore(c,a),d.cookie("env")&&console.log("media move:",n,"->",s),r.moveItemInArray(t,n,s);let u=0;l.default.forEach(t,e=>e.priority=u++),this.model.trigger("change")}move(e){const t=this.getPointerPositionOnPage(e.event);!l.default.isUndefined(this.listGroup)&&this.listGroup?l.default.isUndefined(this.listGroup._items)?console.warn("this.listGroup._items does not exist:",this.listGroup):this.listGroup._items.forEach(e=>{(function(e,t,i){const{top:r,bottom:o,left:n,right:s}=e.element.nativeElement.getBoundingClientRect();return i>=r&&i<=o&&t>=n&&t<=s})(e,t.x,t.y)&&(this.activeContainer=e)}):console.warn("this.listGroup does not exist:",this)}moveItemInGrid(e){if(d.cookie("env")&&console.log("moveItemInGrid:",e),!this.targetList)return!1;const t=this.placeholder.element.nativeElement,i=t.parentElement;return t.style.display="none",i.removeChild(t),i.appendChild(t),i.insertBefore(this.sourceList.element.nativeElement,i.children[this.sourceIndex]),this.targetList=null,this.sourceList=null,this.sourceIndex!==this.targetIndex&&(r.moveItemInArray(e,this.sourceIndex,this.targetIndex),!0)}enterPredicate=(e,t)=>{if(t===this.placeholder)return!0;if(d.cookie("env")&&console.log("entering predicate..."),t!==this.activeContainer)return!1;const i=this.placeholder.element.nativeElement,r=e.dropContainer.element.nativeElement,o=t.element.nativeElement,n=b(o.parentElement.children,this.sourceList?i:r),s=b(o.parentElement.children,o);return this.sourceList||(this.sourceIndex=n,this.sourceList=e.dropContainer,i.style.width=`${r.clientWidth}px`,i.style.height=`${r.clientHeight}px`,r.parentElement.removeChild(r)),this.targetIndex=s,this.targetList=t,d.cookie("env")&&console.log("predicate:",this.sourceIndex,"->",this.targetIndex),i.style.display="",o.parentElement.insertBefore(i,s>n?o.nextSibling:o),this.placeholder._dropListRef.enter(e._dragRef,e.element.nativeElement.offsetLeft,e.element.nativeElement.offsetTop),!1};getPointerPositionOnPage(e){const t=function(e){return e.type.startsWith("touch")}(e)?e.touches[0]||e.changedTouches[0]:e,i=this.viewportRuler.getViewportScrollPosition();return{x:t.pageX-i.left,y:t.pageY-i.top}}},I([i.Input(),S("design:type",String)],y.prototype,"target",void 0),I([i.Input(),S("design:type",String)],y.prototype,"targetSuffix",void 0),I([i.Input(),S("design:type",Number)],y.prototype,"id",void 0),I([i.Input(),S("design:type",Boolean)],y.prototype,"manifest",void 0),I([i.Input(),S("design:type",Boolean)],y.prototype,"decouple",void 0),I([i.Input(),S("design:type",Boolean)],y.prototype,"direct",void 0),I([i.Input(),S("design:type",Object)],y.prototype,"api",void 0),I([i.Input(),S("design:type",String)],y.prototype,"urlRoot",void 0),I([i.Input(),S("design:type",String)],y.prototype,"type",void 0),I([i.Input(),S("design:type",String)],y.prototype,"property",void 0),I([i.Input(),S("design:type",String)],y.prototype,"endpoint",void 0),I([i.ViewChild(r.CdkDropListGroup),S("design:type",r.CdkDropListGroup)],y.prototype,"listGroup",void 0),I([i.ViewChild(r.CdkDropList),S("design:type",r.CdkDropList)],y.prototype,"placeholder",void 0),y=I([i.Component({selector:`sa-internal-${p}`,templateUrl:`${f}/${p}/${p}.component${m}.html`}),S("design:paramtypes",[s.MatIconRegistry,n.DomSanitizer,i.ChangeDetectorRef,i.ElementRef,g.ViewportRuler])],y),e("MediaSelectorComponent",y)}}});
@@ -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,o,s,i,n,a,c,d,l,u,g,h,p,f,y,m,v,S,b=this&&this.__decorate||function(t,e,r,o){var s,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(i<3?s(n):i>3?s(e,r,n):s(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){o=t},function(t){s=t},function(t){i=t},function(t){n=t},function(t){a=t},function(t){c=t},function(t){d=t},function(t){l=t},function(t){u=t},function(t){g=t},function(t){h=t},function(t){p=t}],execute:function(){"@stratusjs/angular",f="selector",y=l.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{iconRegistry;sanitizer;ref;elementRef;title=f+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;ignorePriority;get=d.get;has=v;log=console.log;Stratus=c.Stratus;selectCtrl=new o.FormControl;registry=new g.Registry;fetched;data;collection;model;dataSub;onChange=new i.Subject;subscriber;svgIcons={};styled=!1;empty=!1;constructor(t,e,r,o){super(),this.iconRegistry=t,this.sanitizer=e,this.ref=r,this.elementRef=o,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,o)=>t.addSvgIcon(o,e.bypassSecurityTrustResourceUrl(r)).getNamedSvgIcon(o)),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","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","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(t=>{if(!(t&&t instanceof h.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(s.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 o=e.map(e=>t.id===e.id?e:null).filter(t=>t);d.isArray(o)&&o.length&&(r=e.indexOf(d.head(o)))}-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-internal-${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,o,s,i,n,a,c,d,l,u,g,h,p,f,y,m,v,S,b=this&&this.__decorate||function(t,e,r,o){var s,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(i<3?s(n):i>3?s(e,r,n):s(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){o=t},function(t){s=t},function(t){i=t},function(t){n=t},function(t){a=t},function(t){c=t},function(t){d=t},function(t){l=t},function(t){u=t},function(t){g=t},function(t){h=t},function(t){p=t}],execute:function(){f="selector",y=l.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{iconRegistry;sanitizer;ref;elementRef;title=f+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;ignorePriority;get=d.get;has=v;log=console.log;Stratus=c.Stratus;selectCtrl=new o.FormControl;registry=new g.Registry;fetched;data;collection;model;dataSub;onChange=new i.Subject;subscriber;svgIcons={};styled=!1;empty=!1;constructor(t,e,r,o){super(),this.iconRegistry=t,this.sanitizer=e,this.ref=r,this.elementRef=o,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,o)=>t.addSvgIcon(o,e.bypassSecurityTrustResourceUrl(r)).getNamedSvgIcon(o)),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","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","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(t=>{if(!(t&&t instanceof h.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(s.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 o=e.map(e=>t.id===e.id?e:null).filter(t=>t);d.isArray(o)&&o.length&&(r=e.indexOf(d.head(o)))}-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-internal-${f}`,templateUrl:`${m}/${f}/${f}.component${y}.html`}),I("design:paramtypes",[a.MatIconRegistry,n.DomSanitizer,r.ChangeDetectorRef,r.ElementRef])],S),t("SelectorComponent",S)}}});