@stratusjs/angular 0.5.12 → 0.5.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratusjs/angular",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "This is the angular package for StratusJS.",
5
5
  "scripts": {},
6
6
  "repository": {
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", "./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", "../../stripe/src/payment-method.component", "../../stripe/src/payment-method-item.component", "../../stripe/src/payment-method-list.component", "../../stripe/src/payment-method-selector.component", "../../stripe/src/setup-intent.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) {
1
+ System.register(["@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", "../../stripe/src/payment-method.component", "../../stripe/src/payment-method-item.component", "../../stripe/src/payment-method-list.component", "../../stripe/src/payment-method-selector.component", "../../stripe/src/setup-intent.component", "./tree/tree.component", "./tree/tree-dialog.component", "./tree/tree-node.component", "lodash", "@stratusjs/runtime/stratus", "@angular/google-maps", "angular-froala-wysiwyg", "./editor/citation-dialog.component", "./editor/code-view-dialog.component", "./editor/media-dialog.component", "./editor/link-dialog.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;
@@ -9,13 +9,10 @@ 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, payment_method_component_1, payment_method_item_component_1, payment_method_list_component_1, payment_method_selector_component_1, setup_intent_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;
12
+ var 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, payment_method_component_1, payment_method_item_component_1, payment_method_list_component_1, payment_method_selector_component_1, setup_intent_component_1, tree_component_1, tree_dialog_component_1, tree_node_component_1, lodash_1, stratus_1, google_maps_1, angular_froala_wysiwyg_1, citation_dialog_component_1, code_view_dialog_component_1, media_dialog_component_1, link_dialog_component_1, AppModule;
13
13
  var __moduleName = context_1 && context_1.id;
14
14
  return {
15
15
  setters: [
16
- function (environment_1_1) {
17
- environment_1 = environment_1_1;
18
- },
19
16
  function (http_1_1) {
20
17
  http_1 = http_1_1;
21
18
  },
@@ -91,6 +88,9 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
91
88
  function (google_maps_1_1) {
92
89
  google_maps_1 = google_maps_1_1;
93
90
  },
91
+ function (angular_froala_wysiwyg_1_1) {
92
+ angular_froala_wysiwyg_1 = angular_froala_wysiwyg_1_1;
93
+ },
94
94
  function (citation_dialog_component_1_1) {
95
95
  citation_dialog_component_1 = citation_dialog_component_1_1;
96
96
  },
@@ -102,49 +102,9 @@ System.register(["@stratusjs/core/environment", "@angular/common/http", "@angula
102
102
  },
103
103
  function (link_dialog_component_1_1) {
104
104
  link_dialog_component_1 = link_dialog_component_1_1;
105
- },
106
- function (angular_froala_wysiwyg_1_1) {
107
- angular_froala_wysiwyg_1 = angular_froala_wysiwyg_1_1;
108
105
  }
109
106
  ],
110
107
  execute: function () {
111
- quillConfig = {
112
- modules: {
113
- syntax: true,
114
- toolbar: [
115
- ['bold', 'italic', 'underline', 'strike'],
116
- [{ script: 'sub' }, { script: 'super' }],
117
- [{ header: [1, 2, 3, 4, 5, 6, false] }],
118
- [{ list: 'ordered' }, { list: 'bullet' }],
119
- ['blockquote', 'code-block'],
120
- [{
121
- align: []
122
- }],
123
- [{ indent: '-1' }, { indent: '+1' }],
124
- ['clean'],
125
- [
126
- 'link',
127
- 'video'
128
- ],
129
- ],
130
- mediaLibrary: {
131
- debug: true,
132
- buttonHTML: '<i class="fas fa-photo-video"></i>',
133
- buttonTitle: 'Media Library',
134
- name: 'mediaLibrary',
135
- eventName: 'media-library'
136
- },
137
- codeView: {
138
- debug: true,
139
- buttonHTML: '<i class="fas fa-file-code"></i>',
140
- buttonTitle: 'Code View',
141
- name: 'codeView',
142
- eventName: 'code-view'
143
- }
144
- }
145
- };
146
- if (environment_1.cookie('env')) {
147
- }
148
108
  AppModule = class AppModule {
149
109
  constructor() {
150
110
  this.initialTimeout = 1000;
@@ -1 +1 @@
1
- {"version":3,"sources":["app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuMM,WAAW,GAAQ;gBAarB,OAAO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gC;wBAChC,gEAAgC;wBAChC,wEAAoC;wBACpC,mDAA0B;wBAC1B,8BAAa;wBACb,2CAAmB;wBACnB,uCAAiB;qBACpB;oBAED,SAAS,EAAE;wBACP,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAC;qBACtC;iBACJ,CAAC;;eACW,SAAS,CAmFrB;;QACD,CAAC","file":"app.module.js"}
@@ -1 +1 @@
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","../../stripe/src/payment-method.component","../../stripe/src/payment-method-item.component","../../stripe/src/payment-method-list.component","../../stripe/src/payment-method-selector.component","../../stripe/src/setup-intent.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,t){"use strict";var o,n,i,a,r,m,c,s,p,l,u,d,f,C,g,h,M,y,b,S,T,w,v,D,P,L,B,R,k,N,E,V,_=this&&this.__decorate||function(e,t,o,n){var i,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var m=e.length-1;m>=0;m--)(i=e[m])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r},j=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){o=e},function(e){n=e},function(e){i=e},function(e){a=e},function(e){r=e},function(e){m=e},function(e){c=e},function(e){s=e},function(e){p=e},function(e){l=e},function(e){u=e},function(e){d=e},function(e){f=e},function(e){C=e},function(e){g=e},function(e){h=e},function(e){M=e},function(e){y=e},function(e){b=e},function(e){S=e},function(e){T=e},function(e){w=e},function(e){v=e},function(e){D=e},function(e){P=e},function(e){L=e},function(e){B=e},function(e){R=e},function(e){k=e},function(e){N=e},function(e){E=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"}}}),o.cookie("env"),V=class{constructor(){this.initialTimeout=1e3,this.instances={},this.modules={"sa-base":l.BaseComponent,"sa-editor":d.EditorComponent,"sa-map":f.MapComponent,"sa-media-selector":C.MediaSelectorComponent,"sa-selector":g.SelectorComponent,"sa-stripe-payment-method-list":y.StripePaymentMethodListComponent,"sa-stripe-payment-method-selector":b.StripePaymentMethodSelectorComponent,"sa-tree":T.TreeComponent},P.Stratus.Instances[D.default.uniqueId("sa_app_module_")]=this}ngDoBootstrap(e){this.detectBoot(e)}exponentialTimeout(e){if(D.default.isNumber(e)&&e<this.initialTimeout)return e;const t=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,t}detectBoot(e){D.default.forEach(this.modules,(t,o)=>{const n=document.getElementsByTagName(o);n&&n.length&&D.default.forEach(n,o=>{o.hasAttribute("ng-version")||e.bootstrap(t,o)})}),setTimeout(()=>{this.detectBoot(e)},this.exponentialTimeout(4e3))}},V=_([i.NgModule({imports:[m.BrowserModule,c.BrowserAnimationsModule,p.FlexLayoutModule,a.FormsModule,E.FroalaEditorModule.forRoot(),E.FroalaViewModule.forRoot(),L.GoogleMapsModule,n.HttpClientModule,s.MaterialModules,r.MatNativeDateModule,a.ReactiveFormsModule],entryComponents:[l.BaseComponent,B.CitationDialogComponent,R.CodeViewDialogComponent,u.ConfirmDialogComponent,d.EditorComponent,N.LinkDialogComponent,f.MapComponent,k.MediaDialogComponent,C.MediaSelectorComponent,g.SelectorComponent,h.StripePaymentMethodComponent,M.StripePaymentMethodItemComponent,y.StripePaymentMethodListComponent,b.StripePaymentMethodSelectorComponent,S.StripeSetupIntentComponent,T.TreeComponent,w.TreeDialogComponent,v.TreeNodeComponent],declarations:[l.BaseComponent,B.CitationDialogComponent,R.CodeViewDialogComponent,u.ConfirmDialogComponent,d.EditorComponent,N.LinkDialogComponent,f.MapComponent,k.MediaDialogComponent,C.MediaSelectorComponent,g.SelectorComponent,h.StripePaymentMethodComponent,M.StripePaymentMethodItemComponent,y.StripePaymentMethodListComponent,b.StripePaymentMethodSelectorComponent,S.StripeSetupIntentComponent,T.TreeComponent,w.TreeDialogComponent,v.TreeNodeComponent],providers:[{provide:Window,useValue:window}]}),j("design:paramtypes",[])],V),e("AppModule",V)}}});
1
+ System.register(["@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","../../stripe/src/payment-method.component","../../stripe/src/payment-method-item.component","../../stripe/src/payment-method-list.component","../../stripe/src/payment-method-selector.component","../../stripe/src/setup-intent.component","./tree/tree.component","./tree/tree-dialog.component","./tree/tree-node.component","lodash","@stratusjs/runtime/stratus","@angular/google-maps","angular-froala-wysiwyg","./editor/citation-dialog.component","./editor/code-view-dialog.component","./editor/media-dialog.component","./editor/link-dialog.component"],function(e,t){"use strict";var o,n,i,a,r,m,p,c,s,l,u,d,f,C,g,h,M,y,S,T,D,w,b,P,B,v,R,E,_,I,L,N=this&&this.__decorate||function(e,t,o,n){var i,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var m=e.length-1;m>=0;m--)(i=e[m])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r},j=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){o=e},function(e){n=e},function(e){i=e},function(e){a=e},function(e){r=e},function(e){m=e},function(e){p=e},function(e){c=e},function(e){s=e},function(e){l=e},function(e){u=e},function(e){d=e},function(e){f=e},function(e){C=e},function(e){g=e},function(e){h=e},function(e){M=e},function(e){y=e},function(e){S=e},function(e){T=e},function(e){D=e},function(e){w=e},function(e){b=e},function(e){P=e},function(e){B=e},function(e){v=e},function(e){R=e},function(e){E=e},function(e){_=e},function(e){I=e}],execute:function(){L=class{constructor(){this.initialTimeout=1e3,this.instances={},this.modules={"sa-base":s.BaseComponent,"sa-editor":u.EditorComponent,"sa-map":d.MapComponent,"sa-media-selector":f.MediaSelectorComponent,"sa-selector":C.SelectorComponent,"sa-stripe-payment-method-list":M.StripePaymentMethodListComponent,"sa-stripe-payment-method-selector":y.StripePaymentMethodSelectorComponent,"sa-tree":T.TreeComponent},P.Stratus.Instances[b.default.uniqueId("sa_app_module_")]=this}ngDoBootstrap(e){this.detectBoot(e)}exponentialTimeout(e){if(b.default.isNumber(e)&&e<this.initialTimeout)return e;const t=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,t}detectBoot(e){b.default.forEach(this.modules,(t,o)=>{const n=document.getElementsByTagName(o);n&&n.length&&b.default.forEach(n,o=>{o.hasAttribute("ng-version")||e.bootstrap(t,o)})}),setTimeout(()=>{this.detectBoot(e)},this.exponentialTimeout(4e3))}},L=N([n.NgModule({imports:[r.BrowserModule,m.BrowserAnimationsModule,c.FlexLayoutModule,i.FormsModule,v.FroalaEditorModule.forRoot(),v.FroalaViewModule.forRoot(),B.GoogleMapsModule,o.HttpClientModule,p.MaterialModules,a.MatNativeDateModule,i.ReactiveFormsModule],entryComponents:[s.BaseComponent,R.CitationDialogComponent,E.CodeViewDialogComponent,l.ConfirmDialogComponent,u.EditorComponent,I.LinkDialogComponent,d.MapComponent,_.MediaDialogComponent,f.MediaSelectorComponent,C.SelectorComponent,g.StripePaymentMethodComponent,h.StripePaymentMethodItemComponent,M.StripePaymentMethodListComponent,y.StripePaymentMethodSelectorComponent,S.StripeSetupIntentComponent,T.TreeComponent,D.TreeDialogComponent,w.TreeNodeComponent],declarations:[s.BaseComponent,R.CitationDialogComponent,E.CodeViewDialogComponent,l.ConfirmDialogComponent,u.EditorComponent,I.LinkDialogComponent,d.MapComponent,_.MediaDialogComponent,f.MediaSelectorComponent,C.SelectorComponent,g.StripePaymentMethodComponent,h.StripePaymentMethodItemComponent,M.StripePaymentMethodListComponent,y.StripePaymentMethodSelectorComponent,S.StripeSetupIntentComponent,T.TreeComponent,D.TreeDialogComponent,w.TreeNodeComponent],providers:[{provide:Window,useValue:window}]}),j("design:paramtypes",[])],L),e("AppModule",L)}}});
package/src/app.module.ts CHANGED
@@ -3,9 +3,6 @@
3
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
- // Stratus Libraries
7
- import {cookie} from '@stratusjs/core/environment'
8
-
9
6
  // Angular Core
10
7
  import {HttpClientModule} from '@angular/common/http'
11
8
  import {
@@ -52,72 +49,18 @@ import {TreeComponent} from './tree/tree.component'
52
49
  import {TreeDialogComponent} from './tree/tree-dialog.component'
53
50
  import {TreeNodeComponent} from './tree/tree-node.component'
54
51
 
55
- // Angular Components
56
- // import {
57
- // QuillModule
58
- // } from 'ngx-quill'
59
- // import {
60
- // FroalaEditorModule,
61
- // FroalaViewModule
62
- // } from 'angular-froala-wysiwyg'
63
-
64
- // The following components are not currently in use:
65
- /* *
66
- import {
67
- MonacoEditorModule,
68
- NgxMonacoEditorConfig
69
- } from 'ngx-monaco-editor'
70
- import {
71
- CodeEditorModule
72
- } from '@ngstack/code-editor'
73
- /* */
74
-
75
52
  // External Dependencies
76
53
  import _ from 'lodash'
77
54
  import {Stratus} from '@stratusjs/runtime/stratus'
78
55
 
79
- // Highlight.js
80
- // import hljs from 'highlight.js/lib/core'
81
- // import javascript from 'highlight.js/lib/languages/javascript'
82
- // import typescript from 'highlight.js/lib/languages/typescript'
83
- // import twig from 'highlight.js/lib/languages/twig'
84
- // import xml from 'highlight.js/lib/languages/xml'
85
- // import yaml from 'highlight.js/lib/languages/yaml'
86
-
87
- // Highlight.js
88
- // hljs.configure({
89
- // languages: [
90
- // 'css',
91
- // 'javascript',
92
- // 'less',
93
- // 'scss',
94
- // 'typescript',
95
- // 'twig',
96
- // 'xml',
97
- // 'yaml'
98
- // ]
99
- // })
100
-
101
- // Highlight.js Registers
102
- // hljs.registerLanguage('javascript', javascript)
103
- // hljs.registerLanguage('typescript', typescript)
104
- // hljs.registerLanguage('twig', twig)
105
- // hljs.registerLanguage('xml', xml)
106
- // hljs.registerLanguage('yaml', yaml)
107
-
108
56
  // Google Modules (required by @stratusjs/map)
109
57
  import {GoogleMapsModule} from '@angular/google-maps'
110
58
 
111
- // Angular Editor Dependencies
112
- /* *
59
+ // Froala Modules (Required by Editor)
113
60
  import {
114
- AngularEditorModule
115
- } from '@kolkov/angular-editor'
116
- /* */
117
-
118
- // Quill Modules
119
- // import Quill from 'quill'
120
- // import {QuillConfig} from 'ngx-quill/lib/quill-editor.interfaces'
61
+ FroalaEditorModule,
62
+ FroalaViewModule
63
+ } from 'angular-froala-wysiwyg'
121
64
 
122
65
  // Editor Dialogs
123
66
  import {CitationDialogComponent} from './editor/citation-dialog.component'
@@ -130,46 +73,6 @@ import {
130
73
  import {
131
74
  LinkDialogComponent
132
75
  } from './editor/link-dialog.component'
133
- import {
134
- FroalaEditorModule,
135
- FroalaViewModule
136
- } from 'angular-froala-wysiwyg'
137
-
138
- // Quill Plugins
139
- // import {QuillInputButtonPlugin} from './editor/quill-input-button.plugin'
140
-
141
- // External Quill Modules
142
- // import ImageUploader from 'quill-image-uploader'
143
- // import {
144
- // htmlEditButton
145
- // // @ts-ignore
146
- // } from 'quill-html-edit-button'
147
- // @ts-ignore
148
- // import ImageDropAndPaste from 'quill-image-drop-and-paste'
149
-
150
- // Quill Module Registers
151
- // Quill.register('modules/mediaLibrary', QuillInputButtonPlugin)
152
- // Quill.register('modules/codeView', QuillInputButtonPlugin)
153
- // Quill.register('modules/imageUploader', ImageUploader)
154
- // Quill.register('modules/htmlEditButton', htmlEditButton)
155
- // Quill.register('modules/imageDropAndPaste', ImageDropAndPaste)
156
-
157
- // Quill Format Registers
158
- // FIXME: None of these fire when images are formatted
159
- // Quill.register(QuillImageFormatPlugin)
160
- // Quill.register('formats/image', QuillImageFormatPlugin)
161
- // Quill.register('formats/imageCustom', QuillImageFormatPlugin)
162
-
163
- // Quill Blot Registers
164
- // console.log('Quill Break:', QuillBreak)
165
- // Quill.register(QuillBreak)
166
-
167
- // Third Party Quill
168
- // TODO: Remove once our custom solutions are in place from the new QuillInputButton
169
- // import QuillDropzone from './editor/quill.dropzone'
170
- // import QuillHtmlEdit from './editor/quill.html.edit'
171
- // Quill.register('modules/dropzone', QuillDropzone)
172
- // Quill.register('modules/htmlEdit', QuillHtmlEdit)
173
76
 
174
77
  // Dynamic Loader Prototype
175
78
  // import {
@@ -195,174 +98,6 @@ import {
195
98
  // .map((element) => _.get(roster, element) || null)
196
99
  // .filter((item) => !!item);
197
100
 
198
- // External Configs
199
- // const quillConfig: QuillConfig = {
200
- const quillConfig: any = {
201
- /* *
202
- formats: [
203
- 'header', 'font', 'size',
204
- 'background', 'color',
205
- 'script', 'align', 'direction',
206
- 'bold', 'italic', 'underline', 'strike',
207
- 'blockquote', 'code-block',
208
- 'list', 'bullet', 'indent',
209
- 'link', 'image', 'video',
210
- // 'imageCustom'
211
- ],
212
- /* */
213
- modules: {
214
- syntax: true,
215
- toolbar: [
216
- // inline text styles
217
- ['bold', 'italic', 'underline', 'strike'], // toggled buttons
218
- [{script: 'sub'}, {script: 'super'}], // superscript/subscript
219
-
220
- // block paragraph styles
221
- [{header: [1, 2, 3, 4, 5, 6, false]}],
222
- [{list: 'ordered'}, {list: 'bullet'}],
223
- ['blockquote', 'code-block'],
224
-
225
- // align and indent
226
- [{
227
- align: [
228
- // For some reason `left` makes the button show as 'undefined'
229
- // 'left',
230
- // 'center',
231
- // 'right',
232
- // 'justify'
233
- ]
234
- }],
235
- [{indent: '-1'}, {indent: '+1'}], // outdent/indent
236
-
237
- // [{ size: ['small', false, 'large', 'huge'] }], // custom dropdown
238
-
239
- // [{ color: [] }, { background: [] }], // dropdown with defaults from theme
240
- // [{ font: [] }],
241
-
242
-
243
- ['clean'], // remove formatting button
244
-
245
- [
246
- 'link',
247
- // 'image',
248
- 'video'
249
- ],
250
- // [{ direction: 'rtl' }] // text direction
251
- ],
252
- mediaLibrary: {
253
- debug: true,
254
- buttonHTML: '<i class="fas fa-photo-video"></i>',
255
- buttonTitle: 'Media Library',
256
- name: 'mediaLibrary',
257
- eventName: 'media-library'
258
- },
259
- codeView: {
260
- debug: true,
261
- buttonHTML: '<i class="fas fa-file-code"></i>',
262
- buttonTitle: 'Code View',
263
- name: 'codeView',
264
- eventName: 'code-view'
265
- }
266
- // TODO: Remove once our custom solutions are in place from the new QuillInputButton
267
- /* *
268
- htmlEdit: {debug: true}
269
- /* */
270
- /* *
271
- dropzone: {
272
- container: document.body,
273
- config: {
274
- url: '/upload/file',
275
- headers: {
276
- Accept: 'application/json',
277
- 'Content-Type': 'application/hal+json'
278
- },
279
- init() {
280
- // Demo Example (Not functional for our purposes)
281
- // Quill.editors[0].editor.quill.onModuleLoad('dropzone', (dropzone: any) => {
282
- // this.on('success', (file: any, xhr: any) => {
283
- // // Handle response from server.
284
- // const location = xhr.location ? xhr.location : ''
285
- //
286
- // // Attach insert buttons under each preview.
287
- // dropzone.actions(file.previewElement, window.location.origin + location)
288
- // })
289
- // })
290
- }
291
- }
292
- }
293
- /* */
294
- }
295
- }
296
- // This only adds certain modules when in dev mode
297
- if (cookie('env')) {
298
- /* *
299
- quillConfig.modules.imageUploader = {
300
- upload: (file: any) => {
301
- return new Promise<string>((resolve, reject) => {
302
- setTimeout(() => {
303
- resolve(
304
- 'https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/JavaScript-logo.png/480px-JavaScript-logo.png'
305
- )
306
- }, 3500)
307
- })
308
- }
309
- }
310
- /* *
311
- quillConfig.modules.imageDropAndPaste = {
312
- handler: (imageDataUrl: any, type: any, imageData: any) => {
313
- // This logic requires that we build an uploader, but this does get triggered.
314
- // It does not appear to keep the filename intact, though.
315
- console.log('image dropped:', {imageDataUrl, type, imageData})
316
-
317
- let filename = 'my_cool_image.png'
318
- let blob = imageData.toBlob()
319
- let file = imageData.toFile(filename)
320
-
321
- // generate a form data
322
- let formData = new FormData()
323
-
324
- // append blob data
325
- formData.append('filename', filename)
326
- formData.append('file', blob)
327
-
328
- // or just append the file
329
- formData.append('file', file)
330
-
331
- // upload image to your server
332
- callUploadAPI(`https://app.sitetheory.io:3000/?session=${cookie('SITETHEORY')}`, formData, (err, res) => {
333
- if (err) return
334
- // success? you should return the uploaded image's url
335
- // then insert into the quill editor
336
- let index = (quill.getSelection() || {}).index || quill.getLength()
337
- if (index) quill.insertEmbed(index, 'image', res.data.image_url, 'user')
338
- })
339
- }
340
- }
341
- /* */
342
- /* *
343
- quillConfig.modules.htmlEditButton = {
344
- debug: true,
345
- // msg: 'Edit the content in HTML format',
346
- // okText: 'Ok',
347
- // cancelText: 'Cancel'
348
- }
349
- /* */
350
- }
351
- /* *
352
- const monacoConfig: NgxMonacoEditorConfig = {
353
- // configure base path for monaco editor default: './assets'
354
- // baseUrl: 'sitetheorycore/node_modules/ngx-monaco-editor/assets',
355
- baseUrl: 'ngx-monaco-editor/assets',
356
- defaultOptions: {
357
- scrollBeyondLastLine: false
358
- },
359
- // use this function to extend monaco editor functionalities.
360
- onMonacoLoad: () => {
361
- console.log((window).monaco, this)
362
- }
363
- }
364
- /* */
365
-
366
101
  @NgModule({
367
102
  // These are for external libraries (or Angular)
368
103
  imports: [
@@ -379,10 +114,6 @@ const monacoConfig: NgxMonacoEditorConfig = {
379
114
  MaterialModules,
380
115
  MatNativeDateModule,
381
116
  ReactiveFormsModule,
382
- // AngularEditorModule,
383
- // Outline: https://app.asana.com/0/1154407311832843/1184252847388849
384
- // QuillModule.forRoot(quillConfig),
385
- // MonacoEditorModule.forRoot(monacoConfig)
386
117
  // SelectorComponent.forRoot()
387
118
  ],
388
119
  // This determines what is accessible as a component. These must be listed in `declarations`.
@@ -450,6 +181,7 @@ export class AppModule {
450
181
 
451
182
  constructor() {
452
183
  Stratus.Instances[_.uniqueId('sa_app_module_')] = this
184
+ // TODO: Fill out the Arrays above dynamically... :D
453
185
  }
454
186
 
455
187
  ngDoBootstrap(appRef: ApplicationRef) {
@@ -1 +1 @@
1
- {"version":3,"sources":["link-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkEM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,aAAa,CAAA;YAC1B,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,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAUzH,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,0CAAmB;gBAwDxD,YACW,SA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
+ Inject,
7
+ OnDestroy,
7
8
  OnInit
8
9
  } from '@angular/core'
9
10
  import {
@@ -58,6 +58,9 @@ System.register(["@stratusjs/runtime/stratus", "lodash"], function (exports_1, c
58
58
  this.saveSelection();
59
59
  }
60
60
  this.updateSnapshot();
61
+ if (this.debug) {
62
+ console.log(`[${this.eventName}]:`, { instance, data });
63
+ }
61
64
  instance.trigger(this.eventName, data, this);
62
65
  }
63
66
  trigger(name, data, callee) {
@@ -72,7 +75,7 @@ System.register(["@stratusjs/runtime/stratus", "lodash"], function (exports_1, c
72
75
  console.warn(`${this.name}.trigger(): unable to inject html without a set editor.`);
73
76
  return;
74
77
  }
75
- if (['insert', 'restore'].includes(name)) {
78
+ if (!['insert', 'restore'].includes(name)) {
76
79
  console.warn(`${this.name}.trigger():`, name, 'event is not supported.');
77
80
  return;
78
81
  }
@@ -100,7 +103,13 @@ System.register(["@stratusjs/runtime/stratus", "lodash"], function (exports_1, c
100
103
  console.warn(`${this.name}.restoreSnapshot(): unable to restore editor session without a snapshot.`);
101
104
  return false;
102
105
  }
106
+ if (this.debug) {
107
+ console.log('[restoreSnapshot]is focused:', this.editor.core.hasFocus());
108
+ }
109
+ this.editor.events.disableBlur();
110
+ this.editor.events.focus();
103
111
  this.editor.snapshot.restore(this.snapshot);
112
+ this.editor.events.enableBlur();
104
113
  return true;
105
114
  }
106
115
  updateSnapshot() {
@@ -114,7 +123,13 @@ System.register(["@stratusjs/runtime/stratus", "lodash"], function (exports_1, c
114
123
  console.warn(`${this.name}.restoreSelection(): unable to restore editor selection.`);
115
124
  return false;
116
125
  }
126
+ if (this.debug) {
127
+ console.log('[restoreSelection]is focused:', this.editor.core.hasFocus());
128
+ }
129
+ this.editor.events.disableBlur();
130
+ this.editor.events.focus();
117
131
  this.editor.selection.restore();
132
+ this.editor.events.enableBlur();
118
133
  return true;
119
134
  }
120
135
  saveSelection() {
@@ -122,7 +137,9 @@ System.register(["@stratusjs/runtime/stratus", "lodash"], function (exports_1, c
122
137
  console.warn(`${this.name}.saveSelection(): unable to save editor selection.`);
123
138
  return false;
124
139
  }
140
+ this.editor.events.disableBlur();
125
141
  this.editor.selection.save();
142
+ this.editor.events.enableBlur();
126
143
  return true;
127
144
  }
128
145
  clearSelection() {
@@ -1 +1 @@
1
- {"version":3,"sources":["inputButton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;YAiBA,oBAAA,MAAa,iBAAiB;gBAiB1B,YAAY,OAAY;oBAXxB,UAAK,GAAG,KAAK,CAAA;oBACb,SAAI,GAAG,aAAa,CAAA;oBACpB,cAAS,GAAG,cAAc,CAAA;oBAG1B,yBAAoB,GAAG,KAAK,CAAA;oBAC5B,sBAAiB,GAAG,KAAK,CAAA;oBACzB,sBAAiB,GAAG,KAAK,CAAA;oBACzB,qBAAgB,GAAG,KAAK,CAAA;oBAKpB,IAAI,CAAC,GAAG,GAAG,gBAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAA;oBACtC,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;oBAElC,IAAI,CAAC,KAAK,GAAG,OAAO,IAAI,OAAO,CAAC,KAAK,CAAA;oBAGrC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;wBACzC,OAAO,GAAG,EAAE,CAAA;qBACf;oBACD,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAA;oBACrC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAA;oBACpD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,IAAI,CAAA;oBACpC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,IAAI,CAAA;oBACpC,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,IAAI,IAAI,CAAA;oBAChE,IAAI,CAAC,iBAAiB,GAAG,OAAO,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AAM,CAAC,WAAW,EAAE,CAAA;oBAEhC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;oBAE1B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAA;oBAE/B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAA;oBAC/B,OAAO,IAAI,CAAA;gBACf,CAAC;gBAED,aAAa;oBACT,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;wBACxB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,oDAAoD,CAAC,CAAA;wBAC9E,OAAO,KAAK,CAAA;qBACf;oBAED,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAA;oBAEhC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,CAAA;oBAE5B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAA;oBAC/B,OAAO,IAAI,CAAA;gBACf,CAAC;gBAED,cAAc;oBACV,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;wBACxB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,sDAAsD,CAAC,CAAA;wBAChF,OAAO,KAAK,CAAA;qBACf;oBACD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,CAAA;oBAC7B,OAAO,IAAI,CAAA;gBACf,CAAC;aACJ,CAAA;;QACD,CAAC","file":"inputButton.js"}
@@ -1 +1 @@
1
- System.register(["@stratusjs/runtime/stratus","lodash"],function(t,e){"use strict";var i,n;e&&e.id;return{setters:[function(t){i=t},function(t){n=t}],execute:function(){t("InputButtonPlugin",class{constructor(t){this.debug=!1,this.name="inputButton",this.eventName="input-button",this.autoRestoreSelection=!1,this.autoSaveSelection=!1,this.maintainSelection=!1,this.maintainSnapshot=!1,this.uid=n.default.uniqueId("input_button_"),i.Stratus.Instances[this.uid]=this,this.debug=t&&t.debug,t&&"object"==typeof t||(t={}),this.name=t.name||this.name,this.eventName=t.eventName||this.eventName,this.editor=t.editor||null,this.insert=t.insert||null,this.autoRestoreSelection=t.autoRestoreSelection||null,this.autoSaveSelection=t.autoSaveSelection||null,this.maintainSelection=t.maintainSelection||null,this.maintainSnapshot=t.maintainSnapshot||null}findUID(t){return"uid"in t.dataset?t.dataset.uid:this.findUID(t.parentElement)}getInstance(t){if(t in i.Stratus.Instances)return i.Stratus.Instances[t]}onClick(t,e){const i=this.findUID(t),n=this.getInstance(i);n&&(this.autoSaveSelection&&this.saveSelection(),this.updateSnapshot(),n.trigger(this.eventName,e,this))}trigger(t,e,i){this.debug&&console.log(this.name+".trigger():",t,e,i),n.default.isEmpty(e)?console.warn(this.name+".trigger():",e,"is not valid data."):this.editor?["insert","restore"].includes(t)?console.warn(this.name+".trigger():",t,"event is not supported."):this.restoreSnapshot()&&(this.autoRestoreSelection&&this.restoreSelection(),"insert"===t?(this.insert?this.insert(e):this.editor.html.insert(e),this.updateSnapshot(),this.maintainSelection&&this.saveSelection()):console.warn(this.name+".trigger():",t,"event is not supported.")):console.warn(this.name+".trigger(): unable to inject html without a set editor.")}restoreSnapshot(){return!this.maintainSnapshot||(this.snapshot?(this.editor.snapshot.restore(this.snapshot),!0):(console.warn(this.name+".restoreSnapshot(): unable to restore editor session without a snapshot."),!1))}updateSnapshot(){if(!this.maintainSnapshot)return!0;this.snapshot=this.editor.snapshot.get()}restoreSelection(){return this.editor.selection?(this.editor.selection.restore(),!0):(console.warn(this.name+".restoreSelection(): unable to restore editor selection."),!1)}saveSelection(){return this.editor.selection?(this.editor.selection.save(),!0):(console.warn(this.name+".saveSelection(): unable to save editor selection."),!1)}clearSelection(){return this.editor.selection?(this.editor.selection.clear(),!0):(console.warn(this.name+".clearSelection(): unable to clear editor selection."),!1)}})}}});
1
+ System.register(["@stratusjs/runtime/stratus","lodash"],function(t,e){"use strict";var s,i;e&&e.id;return{setters:[function(t){s=t},function(t){i=t}],execute:function(){t("InputButtonPlugin",class{constructor(t){this.debug=!1,this.name="inputButton",this.eventName="input-button",this.autoRestoreSelection=!1,this.autoSaveSelection=!1,this.maintainSelection=!1,this.maintainSnapshot=!1,this.uid=i.default.uniqueId("input_button_"),s.Stratus.Instances[this.uid]=this,this.debug=t&&t.debug,t&&"object"==typeof t||(t={}),this.name=t.name||this.name,this.eventName=t.eventName||this.eventName,this.editor=t.editor||null,this.insert=t.insert||null,this.autoRestoreSelection=t.autoRestoreSelection||null,this.autoSaveSelection=t.autoSaveSelection||null,this.maintainSelection=t.maintainSelection||null,this.maintainSnapshot=t.maintainSnapshot||null}findUID(t){return"uid"in t.dataset?t.dataset.uid:this.findUID(t.parentElement)}getInstance(t){if(t in s.Stratus.Instances)return s.Stratus.Instances[t]}onClick(t,e){const s=this.findUID(t),i=this.getInstance(s);i&&(this.autoSaveSelection&&this.saveSelection(),this.updateSnapshot(),this.debug&&console.log(`[${this.eventName}]:`,{instance:i,data:e}),i.trigger(this.eventName,e,this))}trigger(t,e,s){this.debug&&console.log(this.name+".trigger():",t,e,s),i.default.isEmpty(e)?console.warn(this.name+".trigger():",e,"is not valid data."):this.editor?["insert","restore"].includes(t)?this.restoreSnapshot()&&(this.autoRestoreSelection&&this.restoreSelection(),"insert"===t?(this.insert?this.insert(e):this.editor.html.insert(e),this.updateSnapshot(),this.maintainSelection&&this.saveSelection()):console.warn(this.name+".trigger():",t,"event is not supported.")):console.warn(this.name+".trigger():",t,"event is not supported."):console.warn(this.name+".trigger(): unable to inject html without a set editor.")}restoreSnapshot(){return!this.maintainSnapshot||(this.snapshot?(this.debug&&console.log("[restoreSnapshot]is focused:",this.editor.core.hasFocus()),this.editor.events.disableBlur(),this.editor.events.focus(),this.editor.snapshot.restore(this.snapshot),this.editor.events.enableBlur(),!0):(console.warn(this.name+".restoreSnapshot(): unable to restore editor session without a snapshot."),!1))}updateSnapshot(){if(!this.maintainSnapshot)return!0;this.snapshot=this.editor.snapshot.get()}restoreSelection(){return this.editor.selection?(this.debug&&console.log("[restoreSelection]is focused:",this.editor.core.hasFocus()),this.editor.events.disableBlur(),this.editor.events.focus(),this.editor.selection.restore(),this.editor.events.enableBlur(),!0):(console.warn(this.name+".restoreSelection(): unable to restore editor selection."),!1)}saveSelection(){return this.editor.selection?(this.editor.events.disableBlur(),this.editor.selection.save(),this.editor.events.enableBlur(),!0):(console.warn(this.name+".saveSelection(): unable to save editor selection."),!1)}clearSelection(){return this.editor.selection?(this.editor.selection.clear(),!0):(console.warn(this.name+".clearSelection(): unable to clear editor selection."),!1)}})}}});