@stratusjs/angular 0.4.10 → 0.5.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 +132581 -0
- package/dist/angular.bundle.min.js +1 -0
- package/package.json +5 -5
- package/src/angular.modules.js +1 -1
- package/src/angular.modules.js.map +1 -1
- package/src/angular.modules.min.js +1 -1
- package/src/angular.modules.ts +3 -1
- package/src/app.module.js +2 -29
- package/src/app.module.js.map +1 -1
- package/src/app.module.min.js +1 -1
- package/src/app.module.ts +36 -36
- package/src/backend.service.js.map +1 -1
- package/src/base/base.component.js +2 -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 +3 -3
- package/src/confirm-dialog/confirm-dialog.component.js +1 -1
- package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/src/confirm-dialog/confirm-dialog.component.min.js +1 -1
- package/src/confirm-dialog/confirm-dialog.component.ts +1 -1
- package/src/core/responsive.component.ts +2 -2
- package/src/core/root.component.js +1 -1
- package/src/core/root.component.min.js +1 -1
- package/src/core/root.component.ts +1 -1
- package/src/editor/citation-dialog.component.js +2 -2
- 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 +6 -6
- package/src/editor/code-view-dialog.component.js +2 -2
- 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 +2 -2
- package/src/editor/editor.component.js +3 -20
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +27 -25
- package/src/editor/link-dialog.component.js +2 -2
- 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 +6 -6
- package/src/editor/media-dialog.component.js +2 -2
- 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 +4 -4
- package/src/froala/plugins/citationManager.js +2 -2
- package/src/froala/plugins/citationManager.js.map +1 -1
- package/src/froala/plugins/citationManager.min.js +1 -1
- package/src/froala/plugins/citationManager.ts +2 -2
- package/src/froala/plugins/inputButton.min.js +1 -1
- package/src/froala/plugins/inputButton.ts +1 -1
- package/src/froala/plugins/linkManager.js +1 -1
- package/src/froala/plugins/linkManager.min.js +1 -1
- package/src/froala/plugins/linkManager.ts +2 -2
- package/src/froala/plugins/mediaManager.js +1 -1
- package/src/froala/plugins/mediaManager.min.js +1 -1
- package/src/froala/plugins/mediaManager.ts +2 -2
- package/src/froala/plugins/menuButton.js +25 -20
- package/src/froala/plugins/menuButton.js.map +1 -1
- package/src/froala/plugins/menuButton.min.js +1 -1
- package/src/froala/plugins/menuButton.ts +26 -20
- package/src/main.js +1 -1
- package/src/main.min.js +1 -1
- package/src/main.ts +2 -2
- package/src/material.js.map +1 -1
- package/src/media-selector/media-selector.component.js +2 -2
- 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 +2 -2
- package/src/quill-plugins/quill-html-edit.plugin.min.js +1 -1
- package/src/quill-plugins/quill-image-format.plugin.min.js +1 -1
- package/src/quill-plugins/quill-input-button.plugin.ts +1 -1
- package/src/selector/selector.component.js +2 -2
- package/src/selector/selector.component.js.map +1 -1
- package/src/selector/selector.component.min.js +1 -1
- package/src/selector/selector.component.ts +2 -2
- package/src/test/test.directive.js.map +1 -1
- package/src/tree/tree-dialog.component.js +2 -2
- 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 +8 -7
- package/src/tree/tree-node.component.js +7 -8
- 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 +25 -14
- package/src/tree/tree.component.js +2 -2
- package/src/tree/tree.component.js.map +1 -1
- package/src/tree/tree.component.min.js +1 -1
- package/src/tree/tree.component.ts +5 -5
- package/src/changeset-viewer/changeset-viewer-dialog.component.js +0 -62
- package/src/changeset-viewer/changeset-viewer-dialog.component.js.map +0 -1
- package/src/changeset-viewer/changeset-viewer-dialog.component.min.js +0 -1
- package/src/changeset-viewer/changeset-viewer-dialog.css +0 -2
- package/src/changeset-viewer/changeset-viewer-dialog.css.map +0 -1
- package/src/changeset-viewer/changeset-viewer-dialog.min.css +0 -0
- package/src/changeset-viewer/changeset-viewer.component.css +0 -4
- package/src/changeset-viewer/changeset-viewer.component.css.map +0 -1
- package/src/changeset-viewer/changeset-viewer.component.js +0 -127
- package/src/changeset-viewer/changeset-viewer.component.js.map +0 -1
- package/src/changeset-viewer/changeset-viewer.component.min.css +0 -1
- package/src/changeset-viewer/changeset-viewer.component.min.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stratusjs/angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "This is the angular package for StratusJS.",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"repository": {
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"@angular/platform-browser-dynamic": "^12.2.16",
|
|
56
56
|
"@angular/router": "^12.2.16",
|
|
57
57
|
"@stratusjs/boot": "^0.3.0",
|
|
58
|
-
"@stratusjs/core": "^0.
|
|
59
|
-
"@stratusjs/map": "^0.
|
|
60
|
-
"@stratusjs/runtime": "^0.
|
|
58
|
+
"@stratusjs/core": "^0.5.0",
|
|
59
|
+
"@stratusjs/map": "^0.5.0",
|
|
60
|
+
"@stratusjs/runtime": "^0.12.0",
|
|
61
61
|
"angular-froala-wysiwyg": "^3.2.7",
|
|
62
|
-
"codemirror": "^5.
|
|
62
|
+
"codemirror": "^5.65.10",
|
|
63
63
|
"froala-editor": "^3.2.7",
|
|
64
64
|
"hammerjs": "^2.0.8",
|
|
65
65
|
"lodash": "^4.17.21",
|
package/src/angular.modules.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["@angular/core", "
|
|
1
|
+
System.register(["@angular/core", "./editor/editor.component"], function (exports_1, context_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["angular.modules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["angular.modules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAsBa,cAAc,GAA3B,MAAa,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 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","
|
|
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)}}});
|
package/src/angular.modules.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
// Note: This is an example, but not a functional dynamic importer, yet.
|
|
2
|
+
|
|
1
3
|
// Core
|
|
2
4
|
import {NgModule} from '@angular/core'
|
|
3
5
|
|
|
4
6
|
// Component List
|
|
5
7
|
import {
|
|
6
8
|
EditorComponent
|
|
7
|
-
} from '
|
|
9
|
+
} from './editor/editor.component'
|
|
8
10
|
|
|
9
11
|
// Package List
|
|
10
12
|
// import {
|
package/src/app.module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["@stratusjs/core/environment", "@angular/common/http", "@angular/core", "@angular/forms", "@angular/material/core", "@angular/platform-browser", "@angular/platform-browser/animations", "
|
|
1
|
+
System.register(["@stratusjs/core/environment", "@angular/common/http", "@angular/core", "@angular/forms", "@angular/material/core", "@angular/platform-browser", "@angular/platform-browser/animations", "./material", "@angular/flex-layout", "./base/base.component", "./confirm-dialog/confirm-dialog.component", "./editor/editor.component", "../../map/src/map.component", "./media-selector/media-selector.component", "./selector/selector.component", "./tree/tree.component", "./tree/tree-dialog.component", "./tree/tree-node.component", "lodash", "@stratusjs/runtime/stratus", "@angular/google-maps", "./editor/citation-dialog.component", "./editor/code-view-dialog.component", "./editor/media-dialog.component", "./editor/link-dialog.component", "angular-froala-wysiwyg"], function (exports_1, context_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -9,7 +9,7 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
|
|
|
9
9
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
11
|
};
|
|
12
|
-
var environment_1, http_1, core_1, forms_1, core_2, platform_browser_1, animations_1, material_1, flex_layout_1, base_component_1, confirm_dialog_component_1, editor_component_1, map_component_1, media_selector_component_1, selector_component_1,
|
|
12
|
+
var environment_1, http_1, core_1, forms_1, core_2, platform_browser_1, animations_1, material_1, flex_layout_1, base_component_1, confirm_dialog_component_1, editor_component_1, map_component_1, media_selector_component_1, selector_component_1, tree_component_1, tree_dialog_component_1, tree_node_component_1, lodash_1, stratus_1, google_maps_1, citation_dialog_component_1, code_view_dialog_component_1, media_dialog_component_1, link_dialog_component_1, angular_froala_wysiwyg_1, quillConfig, AppModule;
|
|
13
13
|
var __moduleName = context_1 && context_1.id;
|
|
14
14
|
return {
|
|
15
15
|
setters: [
|
|
@@ -58,21 +58,6 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
|
|
|
58
58
|
function (selector_component_1_1) {
|
|
59
59
|
selector_component_1 = selector_component_1_1;
|
|
60
60
|
},
|
|
61
|
-
function (payment_method_component_1_1) {
|
|
62
|
-
payment_method_component_1 = payment_method_component_1_1;
|
|
63
|
-
},
|
|
64
|
-
function (payment_method_item_component_1_1) {
|
|
65
|
-
payment_method_item_component_1 = payment_method_item_component_1_1;
|
|
66
|
-
},
|
|
67
|
-
function (payment_method_list_component_1_1) {
|
|
68
|
-
payment_method_list_component_1 = payment_method_list_component_1_1;
|
|
69
|
-
},
|
|
70
|
-
function (payment_method_selector_component_1_1) {
|
|
71
|
-
payment_method_selector_component_1 = payment_method_selector_component_1_1;
|
|
72
|
-
},
|
|
73
|
-
function (setup_intent_component_1_1) {
|
|
74
|
-
setup_intent_component_1 = setup_intent_component_1_1;
|
|
75
|
-
},
|
|
76
61
|
function (tree_component_1_1) {
|
|
77
62
|
tree_component_1 = tree_component_1_1;
|
|
78
63
|
},
|
|
@@ -155,8 +140,6 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
|
|
|
155
140
|
'sa-map': map_component_1.MapComponent,
|
|
156
141
|
'sa-media-selector': media_selector_component_1.MediaSelectorComponent,
|
|
157
142
|
'sa-selector': selector_component_1.SelectorComponent,
|
|
158
|
-
'sa-stripe-payment-method-list': payment_method_list_component_1.StripePaymentMethodListComponent,
|
|
159
|
-
'sa-stripe-payment-method-selector': payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
|
|
160
143
|
'sa-tree': tree_component_1.TreeComponent
|
|
161
144
|
};
|
|
162
145
|
stratus_1.Stratus.Instances[lodash_1.default.uniqueId('sa_app_module_')] = this;
|
|
@@ -216,11 +199,6 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
|
|
|
216
199
|
media_dialog_component_1.MediaDialogComponent,
|
|
217
200
|
media_selector_component_1.MediaSelectorComponent,
|
|
218
201
|
selector_component_1.SelectorComponent,
|
|
219
|
-
payment_method_component_1.StripePaymentMethodComponent,
|
|
220
|
-
payment_method_item_component_1.StripePaymentMethodItemComponent,
|
|
221
|
-
payment_method_list_component_1.StripePaymentMethodListComponent,
|
|
222
|
-
payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
|
|
223
|
-
setup_intent_component_1.StripeSetupIntentComponent,
|
|
224
202
|
tree_component_1.TreeComponent,
|
|
225
203
|
tree_dialog_component_1.TreeDialogComponent,
|
|
226
204
|
tree_node_component_1.TreeNodeComponent,
|
|
@@ -236,11 +214,6 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
|
|
|
236
214
|
media_dialog_component_1.MediaDialogComponent,
|
|
237
215
|
media_selector_component_1.MediaSelectorComponent,
|
|
238
216
|
selector_component_1.SelectorComponent,
|
|
239
|
-
payment_method_component_1.StripePaymentMethodComponent,
|
|
240
|
-
payment_method_item_component_1.StripePaymentMethodItemComponent,
|
|
241
|
-
payment_method_list_component_1.StripePaymentMethodListComponent,
|
|
242
|
-
payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
|
|
243
|
-
setup_intent_component_1.StripeSetupIntentComponent,
|
|
244
217
|
tree_component_1.TreeComponent,
|
|
245
218
|
tree_dialog_component_1.TreeDialogComponent,
|
|
246
219
|
tree_node_component_1.TreeNodeComponent,
|
package/src/app.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":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|
-
System.register(["@stratusjs/core/environment","@angular/common/http","@angular/core","@angular/forms","@angular/material/core","@angular/platform-browser","@angular/platform-browser/animations","
|
|
1
|
+
System.register(["@stratusjs/core/environment","@angular/common/http","@angular/core","@angular/forms","@angular/material/core","@angular/platform-browser","@angular/platform-browser/animations","./material","@angular/flex-layout","./base/base.component","./confirm-dialog/confirm-dialog.component","./editor/editor.component","../../map/src/map.component","./media-selector/media-selector.component","./selector/selector.component","./tree/tree.component","./tree/tree-dialog.component","./tree/tree-node.component","lodash","@stratusjs/runtime/stratus","@angular/google-maps","./editor/citation-dialog.component","./editor/code-view-dialog.component","./editor/media-dialog.component","./editor/link-dialog.component","angular-froala-wysiwyg"],function(e,o){"use strict";var t,n,i,a,r,l,c,s,u,m,d,p,f,g,C,b,M,h,T,y,w,v,D,B,R,k,L,N=this&&this.__decorate||function(e,o,t,n){var i,a=arguments.length,r=a<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,o,t,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(a<3?i(r):a>3?i(o,t,r):i(o,t))||r);return a>3&&r&&Object.defineProperty(o,t,r),r},S=this&&this.__metadata||function(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)};o&&o.id;return{setters:[function(e){t=e},function(e){n=e},function(e){i=e},function(e){a=e},function(e){r=e},function(e){l=e},function(e){c=e},function(e){s=e},function(e){u=e},function(e){m=e},function(e){d=e},function(e){p=e},function(e){f=e},function(e){g=e},function(e){C=e},function(e){b=e},function(e){M=e},function(e){h=e},function(e){T=e},function(e){y=e},function(e){w=e},function(e){v=e},function(e){D=e},function(e){B=e},function(e){R=e},function(e){k=e}],execute:function(){({modules:{syntax:!0,toolbar:[["bold","italic","underline","strike"],[{script:"sub"},{script:"super"}],[{header:[1,2,3,4,5,6,!1]}],[{list:"ordered"},{list:"bullet"}],["blockquote","code-block"],[{align:[]}],[{indent:"-1"},{indent:"+1"}],["clean"],["link","video"]],mediaLibrary:{debug:!0,buttonHTML:'<i class="fas fa-photo-video"></i>',buttonTitle:"Media Library",name:"mediaLibrary",eventName:"media-library"},codeView:{debug:!0,buttonHTML:'<i class="fas fa-file-code"></i>',buttonTitle:"Code View",name:"codeView",eventName:"code-view"}}}),t.cookie("env"),L=class{constructor(){this.initialTimeout=1e3,this.instances={},this.modules={"sa-base":m.BaseComponent,"sa-editor":p.EditorComponent,"sa-map":f.MapComponent,"sa-media-selector":g.MediaSelectorComponent,"sa-selector":C.SelectorComponent,"sa-tree":b.TreeComponent},y.Stratus.Instances[T.default.uniqueId("sa_app_module_")]=this}ngDoBootstrap(e){this.detectBoot(e)}exponentialTimeout(e){if(T.default.isNumber(e)&&e<this.initialTimeout)return e;const o=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,o}detectBoot(e){T.default.forEach(this.modules,(o,t)=>{const n=document.getElementsByTagName(t);n&&n.length&&T.default.forEach(n,t=>{t.hasAttribute("ng-version")||e.bootstrap(o,t)})}),setTimeout(()=>{this.detectBoot(e)},this.exponentialTimeout(4e3))}},L=N([i.NgModule({imports:[l.BrowserModule,c.BrowserAnimationsModule,u.FlexLayoutModule,a.FormsModule,k.FroalaEditorModule.forRoot(),k.FroalaViewModule.forRoot(),w.GoogleMapsModule,n.HttpClientModule,s.MaterialModules,r.MatNativeDateModule,a.ReactiveFormsModule],entryComponents:[m.BaseComponent,v.CitationDialogComponent,D.CodeViewDialogComponent,d.ConfirmDialogComponent,p.EditorComponent,R.LinkDialogComponent,f.MapComponent,B.MediaDialogComponent,g.MediaSelectorComponent,C.SelectorComponent,b.TreeComponent,M.TreeDialogComponent,h.TreeNodeComponent],declarations:[m.BaseComponent,v.CitationDialogComponent,D.CodeViewDialogComponent,d.ConfirmDialogComponent,p.EditorComponent,R.LinkDialogComponent,f.MapComponent,B.MediaDialogComponent,g.MediaSelectorComponent,C.SelectorComponent,b.TreeComponent,M.TreeDialogComponent,h.TreeNodeComponent],providers:[{provide:Window,useValue:window}]}),S("design:paramtypes",[])],L),e("AppModule",L)}}});
|
package/src/app.module.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// PURPOSE
|
|
2
2
|
// - This is where we register every component that will be used or imported
|
|
3
|
-
// - add an import to define where it is located, e.g. import { BaseComponent } from '
|
|
3
|
+
// - add an import to define where it is located, e.g. import { BaseComponent } from './base/base.component'
|
|
4
4
|
// - add to declarations and entryComponents
|
|
5
5
|
|
|
6
6
|
// Stratus Libraries
|
|
@@ -29,28 +29,28 @@ import {BrowserAnimationsModule} from '@angular/platform-browser/animations'
|
|
|
29
29
|
// registerLocaleData(localeEs, 'es-ES')
|
|
30
30
|
|
|
31
31
|
// Material Modules
|
|
32
|
-
import {MaterialModules} from '
|
|
32
|
+
import {MaterialModules} from './material'
|
|
33
33
|
|
|
34
34
|
// Angular Packages
|
|
35
35
|
import {FlexLayoutModule} from '@angular/flex-layout'
|
|
36
36
|
|
|
37
37
|
// Base Components
|
|
38
|
-
import {BaseComponent} from '
|
|
38
|
+
import {BaseComponent} from './base/base.component'
|
|
39
39
|
|
|
40
40
|
// Stratus Custom Directives/Components
|
|
41
|
-
import {ConfirmDialogComponent} from '
|
|
42
|
-
import {EditorComponent} from '
|
|
43
|
-
import {MapComponent} from '
|
|
44
|
-
import {MediaSelectorComponent} from '
|
|
45
|
-
import {SelectorComponent} from '
|
|
46
|
-
import {StripePaymentMethodComponent} from '@stratusjs/stripe/payment-method.component'
|
|
47
|
-
import {StripePaymentMethodItemComponent} from '@stratusjs/stripe/payment-method-item.component'
|
|
48
|
-
import {StripePaymentMethodListComponent} from '@stratusjs/stripe/payment-method-list.component'
|
|
49
|
-
import {StripePaymentMethodSelectorComponent} from '@stratusjs/stripe/payment-method-selector.component'
|
|
50
|
-
import {StripeSetupIntentComponent} from '@stratusjs/stripe/setup-intent.component'
|
|
51
|
-
import {TreeComponent} from '
|
|
52
|
-
import {TreeDialogComponent} from '
|
|
53
|
-
import {TreeNodeComponent} from '
|
|
41
|
+
import {ConfirmDialogComponent} from './confirm-dialog/confirm-dialog.component'
|
|
42
|
+
import {EditorComponent} from './editor/editor.component'
|
|
43
|
+
import {MapComponent} from '../../map/src/map.component'
|
|
44
|
+
import {MediaSelectorComponent} from './media-selector/media-selector.component'
|
|
45
|
+
import {SelectorComponent} from './selector/selector.component'
|
|
46
|
+
// import {StripePaymentMethodComponent} from '@stratusjs/stripe/payment-method.component'
|
|
47
|
+
// import {StripePaymentMethodItemComponent} from '@stratusjs/stripe/payment-method-item.component'
|
|
48
|
+
// import {StripePaymentMethodListComponent} from '@stratusjs/stripe/payment-method-list.component'
|
|
49
|
+
// import {StripePaymentMethodSelectorComponent} from '@stratusjs/stripe/payment-method-selector.component'
|
|
50
|
+
// import {StripeSetupIntentComponent} from '@stratusjs/stripe/setup-intent.component'
|
|
51
|
+
import {TreeComponent} from './tree/tree.component'
|
|
52
|
+
import {TreeDialogComponent} from './tree/tree-dialog.component'
|
|
53
|
+
import {TreeNodeComponent} from './tree/tree-node.component'
|
|
54
54
|
|
|
55
55
|
// Angular Components
|
|
56
56
|
// import {
|
|
@@ -120,23 +120,23 @@ import {
|
|
|
120
120
|
// import {QuillConfig} from 'ngx-quill/lib/quill-editor.interfaces'
|
|
121
121
|
|
|
122
122
|
// Editor Dialogs
|
|
123
|
-
import {CitationDialogComponent} from '
|
|
123
|
+
import {CitationDialogComponent} from './editor/citation-dialog.component'
|
|
124
124
|
import {
|
|
125
125
|
CodeViewDialogComponent
|
|
126
|
-
} from '
|
|
126
|
+
} from './editor/code-view-dialog.component'
|
|
127
127
|
import {
|
|
128
128
|
MediaDialogComponent
|
|
129
|
-
} from '
|
|
129
|
+
} from './editor/media-dialog.component'
|
|
130
130
|
import {
|
|
131
131
|
LinkDialogComponent
|
|
132
|
-
} from '
|
|
132
|
+
} from './editor/link-dialog.component'
|
|
133
133
|
import {
|
|
134
134
|
FroalaEditorModule,
|
|
135
135
|
FroalaViewModule
|
|
136
136
|
} from 'angular-froala-wysiwyg'
|
|
137
137
|
|
|
138
138
|
// Quill Plugins
|
|
139
|
-
// import {QuillInputButtonPlugin} from '
|
|
139
|
+
// import {QuillInputButtonPlugin} from './editor/quill-input-button.plugin'
|
|
140
140
|
|
|
141
141
|
// External Quill Modules
|
|
142
142
|
// import ImageUploader from 'quill-image-uploader'
|
|
@@ -166,15 +166,15 @@ import {
|
|
|
166
166
|
|
|
167
167
|
// Third Party Quill
|
|
168
168
|
// TODO: Remove once our custom solutions are in place from the new QuillInputButton
|
|
169
|
-
// import QuillDropzone from '
|
|
170
|
-
// import QuillHtmlEdit from '
|
|
169
|
+
// import QuillDropzone from './editor/quill.dropzone'
|
|
170
|
+
// import QuillHtmlEdit from './editor/quill.html.edit'
|
|
171
171
|
// Quill.register('modules/dropzone', QuillDropzone)
|
|
172
172
|
// Quill.register('modules/htmlEdit', QuillHtmlEdit)
|
|
173
173
|
|
|
174
174
|
// Dynamic Loader Prototype
|
|
175
175
|
// import {
|
|
176
176
|
// AngularModules
|
|
177
|
-
// } from '
|
|
177
|
+
// } from './angular.modules'
|
|
178
178
|
|
|
179
179
|
// let roster: {};
|
|
180
180
|
// roster = {
|
|
@@ -397,11 +397,11 @@ const monacoConfig: NgxMonacoEditorConfig = {
|
|
|
397
397
|
MediaDialogComponent,
|
|
398
398
|
MediaSelectorComponent,
|
|
399
399
|
SelectorComponent,
|
|
400
|
-
StripePaymentMethodComponent,
|
|
401
|
-
StripePaymentMethodItemComponent,
|
|
402
|
-
StripePaymentMethodListComponent,
|
|
403
|
-
StripePaymentMethodSelectorComponent,
|
|
404
|
-
StripeSetupIntentComponent,
|
|
400
|
+
// StripePaymentMethodComponent,
|
|
401
|
+
// StripePaymentMethodItemComponent,
|
|
402
|
+
// StripePaymentMethodListComponent,
|
|
403
|
+
// StripePaymentMethodSelectorComponent,
|
|
404
|
+
// StripeSetupIntentComponent,
|
|
405
405
|
TreeComponent,
|
|
406
406
|
TreeDialogComponent,
|
|
407
407
|
TreeNodeComponent,
|
|
@@ -418,11 +418,11 @@ const monacoConfig: NgxMonacoEditorConfig = {
|
|
|
418
418
|
MediaDialogComponent,
|
|
419
419
|
MediaSelectorComponent,
|
|
420
420
|
SelectorComponent,
|
|
421
|
-
StripePaymentMethodComponent,
|
|
422
|
-
StripePaymentMethodItemComponent,
|
|
423
|
-
StripePaymentMethodListComponent,
|
|
424
|
-
StripePaymentMethodSelectorComponent,
|
|
425
|
-
StripeSetupIntentComponent,
|
|
421
|
+
// StripePaymentMethodComponent,
|
|
422
|
+
// StripePaymentMethodItemComponent,
|
|
423
|
+
// StripePaymentMethodListComponent,
|
|
424
|
+
// StripePaymentMethodSelectorComponent,
|
|
425
|
+
// StripeSetupIntentComponent,
|
|
426
426
|
TreeComponent,
|
|
427
427
|
TreeDialogComponent,
|
|
428
428
|
TreeNodeComponent,
|
|
@@ -443,8 +443,8 @@ export class AppModule {
|
|
|
443
443
|
'sa-map': MapComponent,
|
|
444
444
|
'sa-media-selector': MediaSelectorComponent,
|
|
445
445
|
'sa-selector': SelectorComponent,
|
|
446
|
-
'sa-stripe-payment-method-list': StripePaymentMethodListComponent,
|
|
447
|
-
'sa-stripe-payment-method-selector': StripePaymentMethodSelectorComponent,
|
|
446
|
+
// 'sa-stripe-payment-method-list': StripePaymentMethodListComponent,
|
|
447
|
+
// 'sa-stripe-payment-method-selector': StripePaymentMethodSelectorComponent,
|
|
448
448
|
'sa-tree': TreeComponent
|
|
449
449
|
}
|
|
450
450
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["backend.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBa,cAAc,
|
|
1
|
+
{"version":3,"sources":["backend.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBa,cAAc,GAA3B,MAAa,cAAc;gBASvB,YAAoB,IAAgB;oBAAhB,SAAI,GAAJ,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AAA;oBAE7B,IAAI,MAAM,IAAI,KAAK,EAAE;wBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;wBAC3B,UAAU,CAAC,QAAQ,EAAE,CAAA;wBACrB,OAAM;qBACT;oBAED,IAAI,CAAC,IAAI;yBACJ,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;yBACjC,SAAS,CAAC,CAAC,QAA2B,EAAE,EAAE;wBACvC,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAA;wBACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBACzB,UAAU,CAAC,QAAQ,EAAE,CAAA;oBACzB,CAAC,CAAC,CAAA;gBACV,CAAC;aACJ,CAAA;YA7DY,cAAc;gBAH1B,iBAAU,CAAC;oBACR,UAAU,EAAE,MAAM;iBACrB,CAAC;iDAU4B,iBAAU;eAT3B,cAAc,CA6D1B;;QACD,CAAC","file":"backend.service.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["@angular/core", "@angular/platform-browser", "@stratusjs/runtime/stratus", "lodash", "@stratusjs/core/environment", "
|
|
1
|
+
System.register(["@angular/core", "@angular/platform-browser", "@stratusjs/runtime/stratus", "lodash", "@stratusjs/core/environment", "../core/root.component"], function (exports_1, context_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -36,7 +36,7 @@ System.register(["@angular/core", "@angular/platform-browser", "@stratusjs/runti
|
|
|
36
36
|
systemDir = '@stratusjs/angular';
|
|
37
37
|
moduleName = 'base';
|
|
38
38
|
min = !environment_1.cookie('env') ? '.min' : '';
|
|
39
|
-
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`;
|
|
39
|
+
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
40
40
|
BaseComponent = class BaseComponent extends root_component_1.RootComponent {
|
|
41
41
|
constructor(sanitizer, ref, elementRef) {
|
|
42
42
|
super();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["base.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCM,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,CAAC,EAAE,CAAA;
|
|
1
|
+
{"version":3,"sources":["base.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCM,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,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAczH,aAAa,GAA1B,MAAa,aAAc,SAAQ,8BAAa;gBAqB5C,YACY,SAAuB,EACrB,GAAsB,EACxB,UAAsB;oBAG9B,KAAK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;2DAAiB;YAChB;gBAAR,YAAK,EAAE;;2DAAiB;YAnBhB,aAAa;gBATzB,gBAAS,CAAC;oBACP,QAAQ,EAAE,SAAS;oBAEnB,WAAW,EAAE,GAAG,QAAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;iBAI9E,CAAC;iDAwByB,+BAAY;oBAChB,wBAAiB;oBACZ,iBAAU;eAxBzB,aAAa,CAuDzB;;QACD,CAAC","file":"base.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","
|
|
1
|
+
System.register(["@angular/core","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component"],function(t,e){"use strict";var n,o,i,r,s,a,p,u,c,d=this&&this.__decorate||function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},f=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){n=t},function(t){o=t},function(t){i=t},function(t){r=t},function(t){s=t},function(t){a=t}],execute:function(){"@stratusjs/angular","base",p=s.cookie("env")?"":".min",u=`${i.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,c=class extends a.RootComponent{constructor(t,e,n){super(),this.sanitizer=t,this.ref=e,this.elementRef=n,this.title="base_component",i.Stratus.Instances[r.default.uniqueId("sa_base_component_")]=this,this.hydrate(this.elementRef,this.sanitizer,["title","uid","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","sanitizer","ref","elementRef","ngOnInit","ngOnChanges","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"])}ngOnInit(){console.info("selector.ngOnInit")}ngOnChanges(){s.cookie("env")&&console.log("inputs:",{target:this.target,targetSuffix:this.targetSuffix,id:this.id,manifest:this.manifest,decouple:this.decouple,direct:this.direct,api:this.api,urlRoot:this.urlRoot})}},d([n.Input(),f("design:type",String)],c.prototype,"target",void 0),d([n.Input(),f("design:type",String)],c.prototype,"targetSuffix",void 0),d([n.Input(),f("design:type",Number)],c.prototype,"id",void 0),d([n.Input(),f("design:type",Boolean)],c.prototype,"manifest",void 0),d([n.Input(),f("design:type",Boolean)],c.prototype,"decouple",void 0),d([n.Input(),f("design:type",Boolean)],c.prototype,"direct",void 0),d([n.Input(),f("design:type",Object)],c.prototype,"api",void 0),d([n.Input(),f("design:type",String)],c.prototype,"urlRoot",void 0),d([n.Input(),f("design:type",String)],c.prototype,"type",void 0),d([n.Input(),f("design:type",String)],c.prototype,"property",void 0),d([n.Input(),f("design:type",String)],c.prototype,"endpoint",void 0),c=d([n.Component({selector:"sa-base",templateUrl:`${u}/base/base.component${p}.html`}),f("design:paramtypes",[o.DomSanitizer,n.ChangeDetectorRef,n.ElementRef])],c),t("BaseComponent",c)}}});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// dynamically.
|
|
6
6
|
// 2. /packages/angular/src/app.module.ts
|
|
7
7
|
// - This is where we register every component that will be used or imported
|
|
8
|
-
// - add an import to define where it is located, e.g. import { BaseComponent } from '
|
|
8
|
+
// - add an import to define where it is located, e.g. import { BaseComponent } from './base.component'
|
|
9
9
|
// - add to declarations and entryComponents
|
|
10
10
|
|
|
11
11
|
// Angular Core
|
|
@@ -31,7 +31,7 @@ import _ from 'lodash'
|
|
|
31
31
|
import {cookie} from '@stratusjs/core/environment'
|
|
32
32
|
|
|
33
33
|
// Stratus Angular Core
|
|
34
|
-
import {RootComponent} from '
|
|
34
|
+
import {RootComponent} from '../core/root.component'
|
|
35
35
|
|
|
36
36
|
// Transformers
|
|
37
37
|
import {keys} from 'ts-transformer-keys'
|
|
@@ -42,7 +42,7 @@ const moduleName = 'base'
|
|
|
42
42
|
|
|
43
43
|
// Directory Template
|
|
44
44
|
const min = !cookie('env') ? '.min' : ''
|
|
45
|
-
const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`
|
|
45
|
+
const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* @title Basic Load
|
|
@@ -33,7 +33,7 @@ System.register(["@angular/core", "@angular/material/dialog", "@stratusjs/core/e
|
|
|
33
33
|
systemDir = '@stratusjs/angular';
|
|
34
34
|
moduleName = 'confirm-dialog';
|
|
35
35
|
min = !environment_1.cookie('env') ? '.min' : '';
|
|
36
|
-
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`;
|
|
36
|
+
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
37
37
|
ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
38
38
|
constructor(dialogRef, data) {
|
|
39
39
|
this.dialogRef = dialogRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["confirm-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAYM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,gBAAgB,CAAA;YAG7B,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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core","@angular/material/dialog","@stratusjs/core/environment","@stratusjs/runtime/stratus"],function(t,e){"use strict";var n,
|
|
1
|
+
System.register(["@angular/core","@angular/material/dialog","@stratusjs/core/environment","@stratusjs/runtime/stratus"],function(t,e){"use strict";var o,n,r,a,i,s,c,f=this&&this.__decorate||function(t,e,o,n){var r,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(i=(a<3?r(i):a>3?r(e,o,i):r(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=this&&this.__param||function(t,e){return function(o,n){e(o,n,t)}};e&&e.id;return{setters:[function(t){o=t},function(t){n=t},function(t){r=t},function(t){a=t}],execute:function(){"@stratusjs/angular","confirm-dialog",i=r.cookie("env")?"":".min",s=`${a.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,c=class{constructor(t,e){this.dialogRef=t,this.data=e}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}},c=f([o.Component({selector:"sa-confirm-dialog",templateUrl:`${s}/confirm-dialog/confirm-dialog.component${i}.html`}),u(1,o.Inject(n.MAT_DIALOG_DATA)),l("design:paramtypes",[n.MatDialogRef,Object])],c),t("ConfirmDialogComponent",c)}}});
|
|
@@ -15,7 +15,7 @@ const moduleName = 'confirm-dialog'
|
|
|
15
15
|
|
|
16
16
|
// Directory Template
|
|
17
17
|
const min = !cookie('env') ? '.min' : ''
|
|
18
|
-
const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`
|
|
18
|
+
const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`
|
|
19
19
|
|
|
20
20
|
export interface ConfirmDialogData {
|
|
21
21
|
title: string
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Interfaces
|
|
2
2
|
import {
|
|
3
3
|
BaseInterface
|
|
4
|
-
} from '
|
|
4
|
+
} from './base.interface'
|
|
5
5
|
import {
|
|
6
6
|
ResponsiveInterface
|
|
7
|
-
} from '
|
|
7
|
+
} from './responsive.interface'
|
|
8
8
|
|
|
9
9
|
// Libraries
|
|
10
10
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["reflect-metadata", "lodash", "@angular/core", "
|
|
1
|
+
System.register(["reflect-metadata", "lodash", "@angular/core", "./responsive.component"], function (exports_1, context_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var lodash_1, core_1, responsive_component_1, RootComponent;
|
|
4
4
|
var __moduleName = context_1 && context_1.id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["reflect-metadata","lodash","@angular/core","
|
|
1
|
+
System.register(["reflect-metadata","lodash","@angular/core","./responsive.component"],function(t,e){"use strict";var n,a,s,i;e&&e.id;return{setters:[function(t){},function(t){n=t},function(t){a=t},function(t){s=t}],execute:function(){i=class extends s.ResponsiveComponent{hydrate(t,e,s){n.default.forEach(s,s=>{const i=Reflect.getMetadataKeys(this,s);if(!n.default.includes(i,"design:type"))return;const o=n.default.kebabCase(s),u=[o,"data-"+o],r=n.default.find(u,e=>t.nativeElement.hasAttribute(e));if(n.default.isEmpty(r))return;const c=e.sanitize(a.SecurityContext.HTML,t.nativeElement.getAttribute(r));n.default.set(this,s,c)})}},t("RootComponent",i)}}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["@angular/core", "@angular/forms", "@angular/material/dialog", "@angular/material/snack-bar", "rxjs", "lodash", "@stratusjs/runtime/stratus", "@stratusjs/core/environment", "
|
|
1
|
+
System.register(["@angular/core", "@angular/forms", "@angular/material/dialog", "@angular/material/snack-bar", "rxjs", "lodash", "@stratusjs/runtime/stratus", "@stratusjs/core/environment", "../core/responsive.component", "@angular/material/icon", "@angular/platform-browser"], function (exports_1, context_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -55,7 +55,7 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
|
|
|
55
55
|
moduleName = 'citation-dialog';
|
|
56
56
|
parentModuleName = 'editor';
|
|
57
57
|
min = !environment_1.cookie('env') ? '.min' : '';
|
|
58
|
-
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`;
|
|
58
|
+
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
59
59
|
CitationDialogComponent = class CitationDialogComponent extends responsive_component_1.ResponsiveComponent {
|
|
60
60
|
constructor(dialogRef, data, fb, snackBar, iconRegistry, sanitizer, ref) {
|
|
61
61
|
super();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["citation-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqDM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,iBAAiB,CAAA;YAC9B,gBAAgB,GAAG,QAAQ,CAAA;YAG3B,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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OAAO,GAAG,EAAE,CAAA;qBACf;oBACD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,iBAAQ,CAAC,cAAc,CAAC,CAAA;oBACzD,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;oBAC9F,OAAO,GAAG,CAAA;gBACd,CAAC;aACJ,CAAA;YApNY,uBAAuB;gBALnC,gBAAS,CAAC;oBACP,QAAQ,EAAE,MAAM,UAAU,EAAE;oBAC5B,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBA0CO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBACL,uBAAW;oBACP,sBAAe;oBAClB,+BAAY;oBAChB,wBAAiB;eA9C3B,uBAAuB,CAoNnC;;QAUD,CAAC","file":"citation-dialog.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","
|
|
1
|
+
System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,i){"use strict";var e,n,o,a,s,r,c,l,u,h,g,d,f,m,p,C=this&&this.__decorate||function(t,i,e,n){var o,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},v=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},b=this&&this.__param||function(t,i){return function(e,n){i(e,n,t)}};i&&i.id;return{setters:[function(t){e=t},function(t){n=t},function(t){o=t},function(t){a=t},function(t){s=t},function(t){r=t},function(t){c=t},function(t){l=t},function(t){u=t},function(t){h=t},function(t){g=t}],execute:function(){"@stratusjs/angular",d="citation-dialog","editor",f=l.cookie("env")?"":".min",m=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,p=class extends u.ResponsiveComponent{constructor(t,i,e,n,o,a,s){super(),this.dialogRef=t,this.data=i,this.fb=e,this.snackBar=n,this.iconRegistry=o,this.sanitizer=a,this.ref=s,this.title=d+"_component",this.Stratus=c.Stratus,this.popupTitle="Create New Citation",this.isPopupLoading=!0,this.formDisabled=!1,this.newCitation=!0,this.svgIcons={}}ngOnInit(){this.uid=r.uniqueId(`sa_${r.snakeCase(d)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${m}editor/${d}.component${f}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.baseEditor=this.data.eventManager.editor,this.dialogCitationForm=this.fb.group({citationContentInput:new n.FormControl("",[n.Validators.required]),citationTitleInput:new n.FormControl("")}),this.highlightedText=this.baseEditor.selection.text();const t=this.baseEditor.citationManager.getSelectedCitation()||this.baseEditor.citationManager.getLastKnownCitation();if(this.baseEditor.citationManager.hideToolbar(),t){this.newCitation=!1,this.existingCitationElement=t;const i=t.cloneNode(!0);Array.from(i.getElementsByClassName("fr-marker")).forEach(t=>{t.remove()});const e=r.head(i.getElementsByTagName("stratus-citation-content"));e&&this.dialogCitationForm.get("citationContentInput").setValue(e.innerHTML);const n=r.head(i.getElementsByTagName("stratus-citation-title"));n&&this.dialogCitationForm.get("citationTitleInput").setValue(n.innerHTML)}this.newCitation&&!r.isEmpty(this.highlightedText)&&(this.popupTitle="Convert Text into Citation",this.dialogCitationForm.get("citationTitleInput").setValue(this.highlightedText)),this.newCitation||(this.popupTitle="Update Citation"),this.isPopupLoading=!1,this.refresh()}cancel(){this.dialogRef.close(),this.refresh()}confirm(){if(r.isUndefined(this.dialogCitationForm.get("citationContentInput")))return;const t=this.dialogCitationForm.get("citationContentInput").value;if(r.isUndefined(t)||!r.isString(t))return;const i=this.dialogCitationForm.get("citationTitleInput").value,e=this.createCitationHTML(t,i);if(!e)return console.warn(`${d}: unable to build citation for: ${t}`),void this.snackBar.open(`Unable to build citation for: ${t}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"});this.eventManager?(!this.newCitation&&this.existingCitationElement?this.existingCitationElement.outerHTML=e:this.eventManager.trigger("insert",e,this.editor),this.dialogRef.close()):console.warn(d+": event manager is not set.")}createCitationHTML(t,i){return t?`<stratus-citation><stratus-citation-content>${t}</stratus-citation-content>${i=r.isEmpty(i)?"<stratus-citation-notitle/>":`<stratus-citation-title>${i}</stratus-citation-title>`}</stratus-citation-content>`:(console.warn(d+": unable to create citation for empty content"),null)}getSvg(t,i){const e=this.addSvgIcon(t,i);return new s.Observable(i=>{this.iconRegistry.getNamedSvgIcon(e).subscribe({error(i){console.error(`getSvg(${t}): ${i}`)},complete(){i.next(e)}})})}addSvgIcon(t,i){if(t in this.svgIcons)return this.svgIcons[t];i||(i={});const e=this.svgIcons[t]=r.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t),i),e}},p=C([e.Component({selector:"sa-"+d,templateUrl:`${m}/editor/${d}.component${f}.html`}),b(1,e.Inject(o.MAT_DIALOG_DATA)),v("design:paramtypes",[o.MatDialogRef,Object,n.FormBuilder,a.MatSnackBar,h.MatIconRegistry,g.DomSanitizer,e.ChangeDetectorRef])],p),t("CitationDialogComponent",p)}}});
|