@stratusjs/angular 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular.bundle.js +5441 -6590
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/app.module.js +3 -3
- package/src/app.module.js.map +1 -1
- package/src/app.module.min.js +1 -1
- package/src/backend.service.js +4 -1
- package/src/backend.service.js.map +1 -1
- package/src/backend.service.min.js +1 -1
- package/src/base/base.component.js +16 -2
- package/src/base/base.component.js.map +1 -1
- package/src/base/base.component.min.js +1 -1
- package/src/base/base.component.ts +0 -1
- package/src/confirm-dialog/confirm-dialog.component.js +2 -0
- package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/src/confirm-dialog/confirm-dialog.component.min.js +1 -1
- package/src/core/responsive.component.js +5 -5
- package/src/core/responsive.component.js.map +1 -1
- package/src/core/responsive.component.min.js +1 -1
- package/src/editor/citation-dialog.component.js +23 -7
- package/src/editor/citation-dialog.component.js.map +1 -1
- package/src/editor/citation-dialog.component.min.js +1 -1
- package/src/editor/citation-dialog.component.ts +0 -1
- package/src/editor/code-mirror-bridge.js +4 -0
- package/src/editor/code-mirror-bridge.js.map +1 -1
- package/src/editor/code-mirror-bridge.min.js +1 -1
- package/src/editor/code-view-dialog.component.js +18 -10
- package/src/editor/code-view-dialog.component.js.map +1 -1
- package/src/editor/code-view-dialog.component.min.js +1 -1
- package/src/editor/code-view-dialog.component.ts +0 -1
- package/src/editor/editor.component.js +548 -525
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +0 -1
- package/src/editor/link-dialog.component.js +39 -20
- package/src/editor/link-dialog.component.js.map +1 -1
- package/src/editor/link-dialog.component.min.js +1 -1
- package/src/editor/link-dialog.component.ts +0 -1
- package/src/editor/media-dialog.component.js +25 -11
- package/src/editor/media-dialog.component.js.map +1 -1
- package/src/editor/media-dialog.component.min.js +1 -1
- package/src/editor/media-dialog.component.ts +0 -1
- package/src/editor/quill-break-blot.plugin.js +38 -0
- package/src/editor/quill-break-blot.plugin.js.map +1 -0
- package/src/editor/quill-break-blot.plugin.min.js +1 -0
- package/src/editor/quill-html-edit.plugin.js +164 -0
- package/src/editor/quill-html-edit.plugin.js.map +1 -0
- package/src/editor/quill-html-edit.plugin.min.js +1 -0
- package/src/editor/quill-image-format.plugin.js +50 -0
- package/src/editor/quill-image-format.plugin.js.map +1 -0
- package/src/editor/quill-image-format.plugin.min.js +1 -0
- package/src/editor/quill-input-button.plugin.js +98 -0
- package/src/editor/quill-input-button.plugin.js.map +1 -0
- package/src/editor/quill-input-button.plugin.min.js +1 -0
- package/src/froala/editor/froala-editor.directive.js +328 -0
- package/src/froala/editor/froala-editor.directive.js.map +1 -0
- package/src/froala/editor/froala-editor.directive.min.js +1 -0
- package/src/froala/editor/froala-editor.module.js +37 -0
- package/src/froala/editor/froala-editor.module.js.map +1 -0
- package/src/froala/editor/froala-editor.module.min.js +1 -0
- package/src/froala/editor/index.js +22 -0
- package/src/froala/editor/index.js.map +1 -0
- package/src/froala/editor/index.min.js +1 -0
- package/src/froala/plugins/citationManager.min.js +1 -1
- package/src/froala/plugins/image_manager.js +364 -0
- package/src/froala/plugins/image_manager.js.map +1 -0
- package/src/froala/plugins/image_manager.min.js +1 -0
- package/src/froala/plugins/inputButton.js +11 -7
- package/src/froala/plugins/inputButton.js.map +1 -1
- package/src/froala/plugins/inputButton.min.js +1 -1
- package/src/froala/plugins/linkManager.ts +1 -1
- package/src/froala/plugins/mediaManager.min.js +1 -1
- package/src/froala/plugins/menuButton.min.js +1 -1
- package/src/froala/view/froala-view.directive.js +49 -0
- package/src/froala/view/froala-view.directive.js.map +1 -0
- package/src/froala/view/froala-view.directive.min.js +1 -0
- package/src/{angular.modules.js → froala/view/froala-view.module.js} +14 -12
- package/src/froala/view/froala-view.module.js.map +1 -0
- package/src/froala/view/froala-view.module.min.js +1 -0
- package/src/froala/view/index.js +22 -0
- package/src/froala/view/index.js.map +1 -0
- package/src/froala/view/index.min.js +1 -0
- package/src/media-selector/media-selector.component.js +76 -46
- package/src/media-selector/media-selector.component.js.map +1 -1
- package/src/media-selector/media-selector.component.min.js +1 -1
- package/src/media-selector/media-selector.component.ts +0 -1
- package/src/quill-plugins/quill-image-format.plugin.js +2 -5
- package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
- package/src/quill-plugins/quill-image-format.plugin.min.js +1 -1
- package/src/quill-plugins/quill-input-button.plugin.js +6 -5
- package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
- package/src/quill-plugins/quill-input-button.plugin.min.js +1 -1
- package/src/root/root.component.js +43 -0
- package/src/root/root.component.js.map +1 -0
- package/src/root/root.component.min.js +1 -0
- package/src/selector/selector.component.js +34 -12
- package/src/selector/selector.component.js.map +1 -1
- package/src/selector/selector.component.min.js +1 -1
- package/src/selector/selector.component.ts +0 -1
- package/src/test/test.directive.js +2 -0
- package/src/test/test.directive.js.map +1 -1
- package/src/test/test.directive.min.js +1 -1
- package/src/timezone-selector/timezone-selector.component.js +31 -9
- package/src/timezone-selector/timezone-selector.component.js.map +1 -1
- package/src/timezone-selector/timezone-selector.component.min.js +1 -1
- package/src/timezone-selector/timezone-selector.component.ts +0 -1
- package/src/tree/tree-dialog.component.js +31 -18
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-dialog.component.min.js +1 -1
- package/src/tree/tree-dialog.component.ts +0 -1
- package/src/tree/tree-node.component.js +13 -7
- package/src/tree/tree-node.component.js.map +1 -1
- package/src/tree/tree-node.component.min.js +1 -1
- package/src/tree/tree-node.component.ts +0 -1
- package/src/tree/tree.component.js +50 -22
- package/src/tree/tree.component.js.map +1 -1
- package/src/tree/tree.component.min.js +1 -1
- package/src/tree/tree.component.ts +0 -1
- package/src/angular.modules.js.map +0 -1
- package/src/angular.modules.min.js +0 -1
- package/src/core/dialog.interface.js.map +0 -1
- package/src/json/json.component.css +0 -2
- package/src/json/json.component.css.map +0 -1
- package/src/json/json.component.js +0 -257
- package/src/json/json.component.js.map +0 -1
- package/src/json/json.component.min.css +0 -0
- package/src/json/json.component.min.js +0 -1
- package/src/material.js +0 -196
- package/src/material.js.map +0 -1
- package/src/material.min.js +0 -1
|
@@ -71,6 +71,55 @@ System.register(["@angular/core", "@angular/cdk/drag-drop", "@angular/cdk/tree",
|
|
|
71
71
|
min = !environment_1.cookie('env') ? '.min' : '';
|
|
72
72
|
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
73
73
|
TreeComponent = class TreeComponent extends root_component_1.RootComponent {
|
|
74
|
+
iconRegistry;
|
|
75
|
+
sanitizer;
|
|
76
|
+
backend;
|
|
77
|
+
ref;
|
|
78
|
+
elementRef;
|
|
79
|
+
document;
|
|
80
|
+
title = moduleName + '_component';
|
|
81
|
+
isInitialized = false;
|
|
82
|
+
isDestroyed = false;
|
|
83
|
+
isStyled = false;
|
|
84
|
+
target;
|
|
85
|
+
targetSuffix;
|
|
86
|
+
id;
|
|
87
|
+
manifest;
|
|
88
|
+
decouple;
|
|
89
|
+
direct;
|
|
90
|
+
api;
|
|
91
|
+
urlRoot;
|
|
92
|
+
type;
|
|
93
|
+
property;
|
|
94
|
+
Stratus = stratus_1.Stratus;
|
|
95
|
+
registry = new registry_1.Registry();
|
|
96
|
+
fetched;
|
|
97
|
+
data;
|
|
98
|
+
collection;
|
|
99
|
+
model;
|
|
100
|
+
dataSub;
|
|
101
|
+
onChange = new rxjs_1.Subject();
|
|
102
|
+
subscriber;
|
|
103
|
+
unsettled = false;
|
|
104
|
+
svgIcons = {};
|
|
105
|
+
isSingleClick;
|
|
106
|
+
dblClickWait = 500;
|
|
107
|
+
dropLists = [];
|
|
108
|
+
dropListIdMap = {};
|
|
109
|
+
dropListMap = {};
|
|
110
|
+
expandedNodeSet = new Set();
|
|
111
|
+
dragging = false;
|
|
112
|
+
expandTimeout;
|
|
113
|
+
expandDelay = 1000;
|
|
114
|
+
dropData = null;
|
|
115
|
+
cdkDropListSortingDisabled = true;
|
|
116
|
+
tree;
|
|
117
|
+
treeMap;
|
|
118
|
+
metaMap;
|
|
119
|
+
dataSource;
|
|
120
|
+
treeControl = new tree_1.NestedTreeControl((node) => node.children || []);
|
|
121
|
+
isBorder = false;
|
|
122
|
+
isDebug = false;
|
|
74
123
|
constructor(iconRegistry, sanitizer, backend, ref, elementRef, document) {
|
|
75
124
|
super();
|
|
76
125
|
this.iconRegistry = iconRegistry;
|
|
@@ -79,32 +128,11 @@ System.register(["@angular/core", "@angular/cdk/drag-drop", "@angular/cdk/tree",
|
|
|
79
128
|
this.ref = ref;
|
|
80
129
|
this.elementRef = elementRef;
|
|
81
130
|
this.document = document;
|
|
82
|
-
this.title = moduleName + '_component';
|
|
83
|
-
this.isInitialized = false;
|
|
84
|
-
this.isDestroyed = false;
|
|
85
|
-
this.isStyled = false;
|
|
86
|
-
this.Stratus = stratus_1.Stratus;
|
|
87
|
-
this.registry = new registry_1.Registry();
|
|
88
|
-
this.onChange = new rxjs_1.Subject();
|
|
89
|
-
this.unsettled = false;
|
|
90
|
-
this.svgIcons = {};
|
|
91
|
-
this.dblClickWait = 500;
|
|
92
|
-
this.dropLists = [];
|
|
93
|
-
this.dropListIdMap = {};
|
|
94
|
-
this.dropListMap = {};
|
|
95
|
-
this.expandedNodeSet = new Set();
|
|
96
|
-
this.dragging = false;
|
|
97
|
-
this.expandDelay = 1000;
|
|
98
|
-
this.dropData = null;
|
|
99
|
-
this.cdkDropListSortingDisabled = true;
|
|
100
|
-
this.treeControl = new tree_1.NestedTreeControl((node) => node.children || []);
|
|
101
|
-
this.isBorder = false;
|
|
102
|
-
this.isDebug = false;
|
|
103
131
|
}
|
|
104
132
|
ngOnInit() {
|
|
105
133
|
this.uid = misc_1.safeUniqueId('sa', moduleName, 'component');
|
|
106
134
|
stratus_1.Stratus.Instances[this.uid] = this;
|
|
107
|
-
this.hydrate(this.elementRef, this.sanitizer, ["title", "
|
|
135
|
+
this.hydrate(this.elementRef, this.sanitizer, ["title", "isInitialized", "isDestroyed", "isStyled", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "Stratus", "registry", "fetched", "data", "collection", "model", "dataSub", "onChange", "subscriber", "unsettled", "svgIcons", "isSingleClick", "dblClickWait", "dropLists", "dropListIdMap", "dropListMap", "expandedNodeSet", "dragging", "expandTimeout", "expandDelay", "dropData", "cdkDropListSortingDisabled", "tree", "treeMap", "metaMap", "dataSource", "treeControl", "isBorder", "isDebug", "iconRegistry", "sanitizer", "backend", "ref", "elementRef", "document", "ngOnInit", "ngOnDestroy", "refresh", "remove", "removeNode", "nodeIsEqual", "fetchData", "dataDefer", "dataRef", "trackDropLists", "setExpanded", "setExpandedClick", "setExpandedDblClick", "onDragDrop", "onDragMove", "showDragData", "clearDragData", "buildNodePatch", "getSvg", "addSvgIcon", "hydrate", "uid", "disableRefresh", "stagger", "reloading"]);
|
|
108
136
|
stratus_1.Stratus.Internals.CssLoader(`${localDir}/${moduleName}/${moduleName}.component${min}.css`)
|
|
109
137
|
.then(() => {
|
|
110
138
|
this.isStyled = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tree.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8HM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,MAAM,CAAA;YAGnB,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,CA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aACJ,CAAA;YAhuBG;gBAAC,YAAK,EAAE;;yDAAe;YACvB;gBAAC,YAAK,EAAE;;+DAAqB;YAC7B;gBAAC,YAAK,EAAE;;qDAAW;YACnB;gBAAC,YAAK,EAAE;;2DAAkB;YAC1B;gBAAC,YAAK,EAAE;;2DAAkB;YAC1B;gBAAC,YAAK,EAAE;;yDAAgB;YACxB;gBAAC,YAAK,EAAE;;sDAAY;YACpB;gBAAC,YAAK,EAAE;;0DAAgB;YAGxB;gBAAC,YAAK,EAAE;;uDAAa;YACrB;gBAAC,YAAK,EAAE;;2DAAiB;YAwlBzB;gBAAC,gBAAQ,CAAC,EAAE,CAAC;;;;2DA2BZ;YAzoBQ,aAAa;gBAZzB,gBAAS,CAAC;oBACP,QAAQ,EAAE,eAAe,UAAU,EAAE;oBACrC,WAAW,EAAE,GAAG,QAAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;iBAQ9E,CAAC;gBAqFO,WAAA,aAAM,CAAC,iBAAQ,CAAC,CAAA;iDALI,sBAAe;oBAClB,+BAAY;oBACd,gCAAc;oBACf,wBAAiB;oBACZ,iBAAU;oBACM,QAAQ;eAnFvC,aAAa,CA2uBzB;;QACD,CAAC","file":"tree.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/cdk/drag-drop","@angular/cdk/tree","@angular/platform-browser","@angular/material/icon","rxjs","@stratusjs/runtime/stratus","lodash","@agentepsilon/decko","../core/root.component","../backend.service","@stratusjs/angularjs/services/registry","@stratusjs/core/events/eventManager","@stratusjs/core/environment","@stratusjs/core/misc","@angular/common"],function(e,t){"use strict";var i,s,r,o,n,a,d,c,h,l,p,u,g,f,m,y,D,v,b,S,I=this&&this.__decorate||function(e,t,i,s){var r,o=arguments.length,n=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(o<3?r(n):o>3?r(t,i,n):r(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n},M=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};t&&t.id;return{setters:[function(e){i=e},function(e){s=e},function(e){r=e},function(e){o=e},function(e){n=e},function(e){a=e},function(e){d=e},function(e){c=e},function(e){h=e},function(e){l=e},function(e){p=e},function(e){u=e},function(e){g=e},function(e){f=e},function(e){m=e},function(e){y=e}],execute:function(){"@stratusjs/angular",D="tree",v=f.cookie("env")?"":".min",b=`${d.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,S=class extends l.RootComponent{constructor(e,t,i,s,o,n){super(),this.iconRegistry=e,this.sanitizer=t,this.backend=i,this.ref=s,this.elementRef=o,this.document=n,this.title=D+"_component",this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1,this.Stratus=d.Stratus,this.registry=new u.Registry,this.onChange=new a.Subject,this.unsettled=!1,this.svgIcons={},this.dblClickWait=500,this.dropLists=[],this.dropListIdMap={},this.dropListMap={},this.expandedNodeSet=new Set,this.dragging=!1,this.expandDelay=1e3,this.dropData=null,this.cdkDropListSortingDisabled=!0,this.treeControl=new r.NestedTreeControl(e=>e.children||[]),this.isBorder=!1,this.isDebug=!1}ngOnInit(){this.uid=m.safeUniqueId("sa",D,"component"),d.Stratus.Instances[this.uid]=this,this.hydrate(this.elementRef,this.sanitizer,["title","uid","isInitialized","isDestroyed","isStyled","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","unsettled","svgIcons","isSingleClick","dblClickWait","dropLists","dropListIdMap","dropListMap","expandedNodeSet","dragging","expandTimeout","expandDelay","dropData","cdkDropListSortingDisabled","tree","treeMap","metaMap","dataSource","treeControl","isBorder","isDebug","iconRegistry","sanitizer","backend","ref","elementRef","document","ngOnInit","ngOnDestroy","refresh","remove","removeNode","nodeIsEqual","fetchData","dataDefer","dataRef","trackDropLists","setExpanded","setExpandedClick","setExpandedDblClick","onDragDrop","onDragMove","showDragData","clearDragData","buildNodePatch","getSvg","addSvgIcon","hydrate","disableRefresh","stagger","reloading"]),d.Stratus.Internals.CssLoader(`${b}/${D}/${D}.component${v}.css`).then(()=>{this.isStyled=!0,this.refresh().then()}).catch(e=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(e),this.isStyled=!0,this.refresh().then()}),c.forEach({tree_check:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/check.svg`,tree_add:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/add.svg`,tree_delete:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,tree_edit:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`,tree_visibility:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`},(e,t)=>this.iconRegistry.addSvgIcon(t,this.sanitizer.bypassSecurityTrustResourceUrl(e)).getNamedSvgIcon(t)),this.fetchData().then(e=>{if(!(e&&e instanceof g.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{!this.unsettled&&e.completed&&(this.dataDefer(this.subscriber),this.refresh().then())};e.on("change",t),t(),e.on("add",(e,t)=>{let i=!1;const s=()=>{if(!t.completed)return;if(i)return;if(i=!0,!(t.getIdentifier()in this.treeMap))return void t.meta.set("postPersist",!0);const e=this.treeMap[t.getIdentifier()];e.meta.component&&"openDialog"in e.meta.component?e.meta.component.openDialog():t.meta.set("postPersist",!0)};t.on("change",s),s()})}),this.dataSub=new a.Observable(e=>this.dataDefer(e)),this.dropListIdMap[`${this.uid}_parent_drop_list`]=!0,this.trackDropLists();const e=f.cookie("tree-node-border");e&&m.isJSON(e)&&(this.isBorder=JSON.parse(e));const t=f.cookie("tree-debug");t&&m.isJSON(t)&&(this.isDebug=JSON.parse(t)),this.isInitialized=!0,this.refresh().then()}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(e=>e()):(c.forEach(this.metaMap,e=>{e.component&&"refresh"in e.component&&e.component.refresh()}),super.refresh())}remove(e){}removeNode(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}nodeIsEqual(e,t){return e&&t?e.id===t.id:e===t}async fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(d.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber||!this.collection||!this.collection.completed)return void setTimeout(()=>{this.dataDefer(e)},500);const t=this.dataRef(!0);t&&t.length?e.next(t):setTimeout(()=>this.dataDefer(e),200)}dataRef(e=!1){if(!this.collection)return[];if(!e&&this.tree&&this.tree.length>0)return this.tree;let t=this.collection.models;return t&&c.isArray(t)&&t.length?(t=c.sortBy(t,["data.priority"]),this.metaMap=this.metaMap||{},this.treeMap={},this.tree=[],c.forEach(t,e=>{const t=c.get(e,"data.id"),i=c.get(e,"data.nestParent.id");this.dropListIdMap[`${this.uid}_node_${t}_drop_list`]=!0,c.has(this.metaMap,t)||(this.metaMap[t]={id:t,expanded:!0}),c.has(this.treeMap,t)||(this.treeMap[t]={id:t,model:e,children:[],meta:this.metaMap[t]}),this.treeMap[t].model=e,this.treeMap[t].meta=this.metaMap[t],i?(c.has(this.treeMap,i)||(this.treeMap[i]={id:i,model:null,children:[],meta:null}),this.treeMap[i].children.push(this.treeMap[t])):this.tree.push(this.treeMap[t])}),this.trackDropLists(),this.tree):[]}trackDropLists(){this.dropLists=[],c.forEach(this.dropListIdMap,(e,t)=>{if(!e)return;const i=t in this.dropListMap,s=i?this.dropListMap[t]:document.getElementById(t);s&&(this.dropLists.push(t),i||(this.dropListMap[t]=s))})}setExpanded(e){this.metaMap&&c.size(this.metaMap)&&(c.forEach(this.metaMap,t=>{t.expanded=e}),this.refresh().then())}setExpandedClick(e){this.isSingleClick=!0,setTimeout(()=>{this.isSingleClick&&this.setExpanded(e)},this.dblClickWait)}setExpandedDblClick(e){this.isSingleClick=!1,this.setExpanded(e)}async onDragDrop(e){if(!e.isPointerOverContainer)return;const t=e.item.data;if(!t)return;let i=e.container.data;const r=e.previousContainer.data,o=i?i.children:this.dataRef();if(!o)return;this.unsettled=!0;const n=this.dropData.targetId&&this.dropData.targetId in this.treeMap?this.treeMap[c.toNumber(this.dropData.targetId)]:null;if(f.cookie("env")&&this.isDebug&&(console.group("onDragDrop()"),c.forEach([`model drop: ${t.model.get("name")}`,`list shift: ${e.container.element.nativeElement.id} -> ${e.previousContainer.element.nativeElement.id}`,`index change (event): ${e.previousIndex} -> ${e.currentIndex}`,`current priority: ${t.model.get("priority")}`,`target drop action: ${this.dropData.action}`],e=>console.log(e))),n&&!this.nodeIsEqual(i,n)){if(f.cookie("env")&&this.isDebug&&(console.log(`target drop node differs: ${n.id} -> ${n.model.get("name")}`),console.log("target drop node is the same as target node:",t.id===n.id)),t.id!==n.id)switch(this.dropData.action){case"before":case"after":const e=n.model.get("nestParent.id");i=e&&e in this.treeMap?this.treeMap[e]:null;break;case"inside":i=n}f.cookie("env")&&this.isDebug&&console.log("target drop node selected:",i?`${i.id} -> ${i.model.get("name")}`:"none")}if(!this.nodeIsEqual(i,r)){if(i){switch(this.dropData.action){case"before":case"after":let e=i.children.findIndex(e=>e.id===t.id);"after"===this.dropData.action&&e++,i.children.splice(e,0,t);break;case"inside":i.children.push(t)}i.meta.expanded=!0}r&&this.removeNode(r.children,t),t.model.set("nestParent",this.buildNodePatch(i)),f.cookie("env")&&this.isDebug&&console.log(`new parent: ${t.model.get("nestParent.name")||null}`)}const a=i?i.children:o;let d=e.currentIndex;if(this.cdkDropListSortingDisabled)switch(d=null,this.dropData.action){case"before":case"after":d=a.findIndex(e=>e.id===n.id),"after"===this.dropData.action&&d++,f.cookie("env")&&this.isDebug&&console.log("index change (drop node):",`${e.previousIndex} -> ${d}`)}if(c.isNumber(d)){s.moveItemInArray(a,e.previousIndex,d);let i=0;c.forEach(a,e=>{e.model&&e.model.set&&e.model.set("priority",i++)}),f.cookie("env")&&this.isDebug&&console.log("new priority:",t.model.get("priority"))}f.cookie("env")&&this.isDebug&&console.groupEnd(),await t.model.save(),this.unsettled=!1,this.collection.throttleTrigger("change")}onDragMove(e){const t=this.document.elementFromPoint(e.pointerPosition.x,e.pointerPosition.y);if(!t)return void this.clearDragData();const i="tree-node-content",s=t.classList.contains(i)?t:t.closest(`.${i}`);if(!s)return void this.clearDragData();this.dropData={targetId:s.getAttribute("data-id")};const r=s.getBoundingClientRect(),o=r.height/3;e.pointerPosition.y-r.top<o?this.dropData.action="before":e.pointerPosition.y-r.top>2*o?this.dropData.action="after":this.dropData.action="inside",this.showDragData()}showDragData(){this.clearDragData(),this.dropData&&this.document.getElementById(`node-${this.dropData.targetId}`).classList.add(`drop-${this.dropData.action}`)}clearDragData(e=!1){e&&(this.dropData=null),this.document.querySelectorAll(".drop-before").forEach(e=>e.classList.remove("drop-before")),this.document.querySelectorAll(".drop-after").forEach(e=>e.classList.remove("drop-after")),this.document.querySelectorAll(".drop-inside").forEach(e=>e.classList.remove("drop-inside"))}buildNodePatch(e=null){if(!e||!e.model)return null;const t={};return c.forEach(["id","name"],i=>{const s=e.model.get(i);s&&c.set(t,i,s)}),t}getSvg(e,t){const i=this.addSvgIcon(e,t);return new a.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]=c.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(i,this.sanitizer.bypassSecurityTrustResourceUrl(e),t),i}},I([i.Input(),M("design:type",String)],S.prototype,"target",void 0),I([i.Input(),M("design:type",String)],S.prototype,"targetSuffix",void 0),I([i.Input(),M("design:type",Number)],S.prototype,"id",void 0),I([i.Input(),M("design:type",Boolean)],S.prototype,"manifest",void 0),I([i.Input(),M("design:type",Boolean)],S.prototype,"decouple",void 0),I([i.Input(),M("design:type",Boolean)],S.prototype,"direct",void 0),I([i.Input(),M("design:type",Object)],S.prototype,"api",void 0),I([i.Input(),M("design:type",String)],S.prototype,"urlRoot",void 0),I([i.Input(),M("design:type",String)],S.prototype,"type",void 0),I([i.Input(),M("design:type",String)],S.prototype,"property",void 0),I([h.debounce(50),M("design:type",Function),M("design:paramtypes",[Object]),M("design:returntype",void 0)],S.prototype,"onDragMove",null),S=I([i.Component({selector:`sa-internal-${D}`,templateUrl:`${b}/${D}/${D}.component${v}.html`}),$(5,i.Inject(y.DOCUMENT)),M("design:paramtypes",[n.MatIconRegistry,o.DomSanitizer,p.BackendService,i.ChangeDetectorRef,i.ElementRef,Document])],S),e("TreeComponent",S)}}});
|
|
1
|
+
System.register(["@angular/core","@angular/cdk/drag-drop","@angular/cdk/tree","@angular/platform-browser","@angular/material/icon","rxjs","@stratusjs/runtime/stratus","lodash","@agentepsilon/decko","../core/root.component","../backend.service","@stratusjs/angularjs/services/registry","@stratusjs/core/events/eventManager","@stratusjs/core/environment","@stratusjs/core/misc","@angular/common"],function(e,t){"use strict";var i,s,r,o,n,a,d,c,l,h,p,u,g,f,m,y,D,v,b,S,I=this&&this.__decorate||function(e,t,i,s){var r,o=arguments.length,n=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(o<3?r(n):o>3?r(t,i,n):r(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n},M=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},k=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};t&&t.id;return{setters:[function(e){i=e},function(e){s=e},function(e){r=e},function(e){o=e},function(e){n=e},function(e){a=e},function(e){d=e},function(e){c=e},function(e){l=e},function(e){h=e},function(e){p=e},function(e){u=e},function(e){g=e},function(e){f=e},function(e){m=e},function(e){y=e}],execute:function(){"@stratusjs/angular",D="tree",v=f.cookie("env")?"":".min",b=`${d.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,S=class extends h.RootComponent{iconRegistry;sanitizer;backend;ref;elementRef;document;title=D+"_component";isInitialized=!1;isDestroyed=!1;isStyled=!1;target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;Stratus=d.Stratus;registry=new u.Registry;fetched;data;collection;model;dataSub;onChange=new a.Subject;subscriber;unsettled=!1;svgIcons={};isSingleClick;dblClickWait=500;dropLists=[];dropListIdMap={};dropListMap={};expandedNodeSet=new Set;dragging=!1;expandTimeout;expandDelay=1e3;dropData=null;cdkDropListSortingDisabled=!0;tree;treeMap;metaMap;dataSource;treeControl=new r.NestedTreeControl(e=>e.children||[]);isBorder=!1;isDebug=!1;constructor(e,t,i,s,r,o){super(),this.iconRegistry=e,this.sanitizer=t,this.backend=i,this.ref=s,this.elementRef=r,this.document=o}ngOnInit(){this.uid=m.safeUniqueId("sa",D,"component"),d.Stratus.Instances[this.uid]=this,this.hydrate(this.elementRef,this.sanitizer,["title","isInitialized","isDestroyed","isStyled","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","unsettled","svgIcons","isSingleClick","dblClickWait","dropLists","dropListIdMap","dropListMap","expandedNodeSet","dragging","expandTimeout","expandDelay","dropData","cdkDropListSortingDisabled","tree","treeMap","metaMap","dataSource","treeControl","isBorder","isDebug","iconRegistry","sanitizer","backend","ref","elementRef","document","ngOnInit","ngOnDestroy","refresh","remove","removeNode","nodeIsEqual","fetchData","dataDefer","dataRef","trackDropLists","setExpanded","setExpandedClick","setExpandedDblClick","onDragDrop","onDragMove","showDragData","clearDragData","buildNodePatch","getSvg","addSvgIcon","hydrate","uid","disableRefresh","stagger","reloading"]),d.Stratus.Internals.CssLoader(`${b}/${D}/${D}.component${v}.css`).then(()=>{this.isStyled=!0,this.refresh().then()}).catch(e=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(e),this.isStyled=!0,this.refresh().then()}),c.forEach({tree_check:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/check.svg`,tree_add:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/add.svg`,tree_delete:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,tree_edit:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`,tree_visibility:`${d.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/visibility.svg`},(e,t)=>this.iconRegistry.addSvgIcon(t,this.sanitizer.bypassSecurityTrustResourceUrl(e)).getNamedSvgIcon(t)),this.fetchData().then(e=>{if(!(e&&e instanceof g.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{!this.unsettled&&e.completed&&(this.dataDefer(this.subscriber),this.refresh().then())};e.on("change",t),t(),e.on("add",(e,t)=>{let i=!1;const s=()=>{if(!t.completed)return;if(i)return;if(i=!0,!(t.getIdentifier()in this.treeMap))return void t.meta.set("postPersist",!0);const e=this.treeMap[t.getIdentifier()];e.meta.component&&"openDialog"in e.meta.component?e.meta.component.openDialog():t.meta.set("postPersist",!0)};t.on("change",s),s()})}),this.dataSub=new a.Observable(e=>this.dataDefer(e)),this.dropListIdMap[`${this.uid}_parent_drop_list`]=!0,this.trackDropLists();const e=f.cookie("tree-node-border");e&&m.isJSON(e)&&(this.isBorder=JSON.parse(e));const t=f.cookie("tree-debug");t&&m.isJSON(t)&&(this.isDebug=JSON.parse(t)),this.isInitialized=!0,this.refresh().then()}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(e=>e()):(c.forEach(this.metaMap,e=>{e.component&&"refresh"in e.component&&e.component.refresh()}),super.refresh())}remove(e){}removeNode(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}nodeIsEqual(e,t){return e&&t?e.id===t.id:e===t}async fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(d.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber||!this.collection||!this.collection.completed)return void setTimeout(()=>{this.dataDefer(e)},500);const t=this.dataRef(!0);t&&t.length?e.next(t):setTimeout(()=>this.dataDefer(e),200)}dataRef(e=!1){if(!this.collection)return[];if(!e&&this.tree&&this.tree.length>0)return this.tree;let t=this.collection.models;return t&&c.isArray(t)&&t.length?(t=c.sortBy(t,["data.priority"]),this.metaMap=this.metaMap||{},this.treeMap={},this.tree=[],c.forEach(t,e=>{const t=c.get(e,"data.id"),i=c.get(e,"data.nestParent.id");this.dropListIdMap[`${this.uid}_node_${t}_drop_list`]=!0,c.has(this.metaMap,t)||(this.metaMap[t]={id:t,expanded:!0}),c.has(this.treeMap,t)||(this.treeMap[t]={id:t,model:e,children:[],meta:this.metaMap[t]}),this.treeMap[t].model=e,this.treeMap[t].meta=this.metaMap[t],i?(c.has(this.treeMap,i)||(this.treeMap[i]={id:i,model:null,children:[],meta:null}),this.treeMap[i].children.push(this.treeMap[t])):this.tree.push(this.treeMap[t])}),this.trackDropLists(),this.tree):[]}trackDropLists(){this.dropLists=[],c.forEach(this.dropListIdMap,(e,t)=>{if(!e)return;const i=t in this.dropListMap,s=i?this.dropListMap[t]:document.getElementById(t);s&&(this.dropLists.push(t),i||(this.dropListMap[t]=s))})}setExpanded(e){this.metaMap&&c.size(this.metaMap)&&(c.forEach(this.metaMap,t=>{t.expanded=e}),this.refresh().then())}setExpandedClick(e){this.isSingleClick=!0,setTimeout(()=>{this.isSingleClick&&this.setExpanded(e)},this.dblClickWait)}setExpandedDblClick(e){this.isSingleClick=!1,this.setExpanded(e)}async onDragDrop(e){if(!e.isPointerOverContainer)return;const t=e.item.data;if(!t)return;let i=e.container.data;const r=e.previousContainer.data,o=i?i.children:this.dataRef();if(!o)return;this.unsettled=!0;const n=this.dropData.targetId&&this.dropData.targetId in this.treeMap?this.treeMap[c.toNumber(this.dropData.targetId)]:null;if(f.cookie("env")&&this.isDebug&&(console.group("onDragDrop()"),c.forEach([`model drop: ${t.model.get("name")}`,`list shift: ${e.container.element.nativeElement.id} -> ${e.previousContainer.element.nativeElement.id}`,`index change (event): ${e.previousIndex} -> ${e.currentIndex}`,`current priority: ${t.model.get("priority")}`,`target drop action: ${this.dropData.action}`],e=>console.log(e))),n&&!this.nodeIsEqual(i,n)){if(f.cookie("env")&&this.isDebug&&(console.log(`target drop node differs: ${n.id} -> ${n.model.get("name")}`),console.log("target drop node is the same as target node:",t.id===n.id)),t.id!==n.id)switch(this.dropData.action){case"before":case"after":const e=n.model.get("nestParent.id");i=e&&e in this.treeMap?this.treeMap[e]:null;break;case"inside":i=n}f.cookie("env")&&this.isDebug&&console.log("target drop node selected:",i?`${i.id} -> ${i.model.get("name")}`:"none")}if(!this.nodeIsEqual(i,r)){if(i){switch(this.dropData.action){case"before":case"after":let e=i.children.findIndex(e=>e.id===t.id);"after"===this.dropData.action&&e++,i.children.splice(e,0,t);break;case"inside":i.children.push(t)}i.meta.expanded=!0}r&&this.removeNode(r.children,t),t.model.set("nestParent",this.buildNodePatch(i)),f.cookie("env")&&this.isDebug&&console.log(`new parent: ${t.model.get("nestParent.name")||null}`)}const a=i?i.children:o;let d=e.currentIndex;if(this.cdkDropListSortingDisabled)switch(d=null,this.dropData.action){case"before":case"after":d=a.findIndex(e=>e.id===n.id),"after"===this.dropData.action&&d++,f.cookie("env")&&this.isDebug&&console.log("index change (drop node):",`${e.previousIndex} -> ${d}`)}if(c.isNumber(d)){s.moveItemInArray(a,e.previousIndex,d);let i=0;c.forEach(a,e=>{e.model&&e.model.set&&e.model.set("priority",i++)}),f.cookie("env")&&this.isDebug&&console.log("new priority:",t.model.get("priority"))}f.cookie("env")&&this.isDebug&&console.groupEnd(),await t.model.save(),this.unsettled=!1,this.collection.throttleTrigger("change")}onDragMove(e){const t=this.document.elementFromPoint(e.pointerPosition.x,e.pointerPosition.y);if(!t)return void this.clearDragData();const i="tree-node-content",s=t.classList.contains(i)?t:t.closest(`.${i}`);if(!s)return void this.clearDragData();this.dropData={targetId:s.getAttribute("data-id")};const r=s.getBoundingClientRect(),o=r.height/3;e.pointerPosition.y-r.top<o?this.dropData.action="before":e.pointerPosition.y-r.top>2*o?this.dropData.action="after":this.dropData.action="inside",this.showDragData()}showDragData(){this.clearDragData(),this.dropData&&this.document.getElementById(`node-${this.dropData.targetId}`).classList.add(`drop-${this.dropData.action}`)}clearDragData(e=!1){e&&(this.dropData=null),this.document.querySelectorAll(".drop-before").forEach(e=>e.classList.remove("drop-before")),this.document.querySelectorAll(".drop-after").forEach(e=>e.classList.remove("drop-after")),this.document.querySelectorAll(".drop-inside").forEach(e=>e.classList.remove("drop-inside"))}buildNodePatch(e=null){if(!e||!e.model)return null;const t={};return c.forEach(["id","name"],i=>{const s=e.model.get(i);s&&c.set(t,i,s)}),t}getSvg(e,t){const i=this.addSvgIcon(e,t);return new a.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]=c.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(i,this.sanitizer.bypassSecurityTrustResourceUrl(e),t),i}},I([i.Input(),M("design:type",String)],S.prototype,"target",void 0),I([i.Input(),M("design:type",String)],S.prototype,"targetSuffix",void 0),I([i.Input(),M("design:type",Number)],S.prototype,"id",void 0),I([i.Input(),M("design:type",Boolean)],S.prototype,"manifest",void 0),I([i.Input(),M("design:type",Boolean)],S.prototype,"decouple",void 0),I([i.Input(),M("design:type",Boolean)],S.prototype,"direct",void 0),I([i.Input(),M("design:type",Object)],S.prototype,"api",void 0),I([i.Input(),M("design:type",String)],S.prototype,"urlRoot",void 0),I([i.Input(),M("design:type",String)],S.prototype,"type",void 0),I([i.Input(),M("design:type",String)],S.prototype,"property",void 0),I([l.debounce(50),M("design:type",Function),M("design:paramtypes",[Object]),M("design:returntype",void 0)],S.prototype,"onDragMove",null),S=I([i.Component({selector:`sa-internal-${D}`,templateUrl:`${b}/${D}/${D}.component${v}.html`}),k(5,i.Inject(y.DOCUMENT)),M("design:paramtypes",[n.MatIconRegistry,o.DomSanitizer,p.BackendService,i.ChangeDetectorRef,i.ElementRef,Document])],S),e("TreeComponent",S)}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["angular.modules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAsBa,cAAc,GAApB,MAAM,cAAc;aAC1B,CAAA;YADY,cAAc;gBAN1B,eAAQ,CAAC;oBACN,OAAO,EAAE;wBACL,kCAAe;qBAElB;iBACJ,CAAC;eACW,cAAc,CAC1B;;QACD,CAAC","file":"angular.modules.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["@angular/core","./editor/editor.component"],function(e,t){"use strict";var r,o,n,c=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i};t&&t.id;return{setters:[function(e){r=e},function(e){o=e}],execute:function(){n=class{},n=c([r.NgModule({exports:[o.EditorComponent]})],n),e("AngularModules",n)}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["dialog.interface.ts"],"names":[],"mappings":"","file":"dialog.interface.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"json.component.css","sourcesContent":[]}
|
|
@@ -1,257 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;AAClE,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAA;AAChE,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAC,QAAQ,EAAC,MAAM,wCAAwC,CAAA;AAM/D,MAAM,SAAS,GAAG,oBAAoB,CAAA;AACtC,MAAM,UAAU,GAAG,MAAM,CAAA;AAGzB,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;AACxC,MAAM,QAAQ,GAAG,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAA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B;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
|
|
@@ -1 +0,0 @@
|
|
|
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};
|