@stratusjs/angular 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/angular.bundle.js +23094 -21621
  2. package/dist/angular.bundle.min.js +1 -1
  3. package/package.json +1 -1
  4. package/src/{froala/view/froala-view.module.js → angular.modules.js} +12 -14
  5. package/src/angular.modules.js.map +1 -0
  6. package/src/angular.modules.min.js +1 -0
  7. package/src/app.module.js.map +1 -1
  8. package/src/core/dialog.interface.js.map +1 -0
  9. package/src/editor/media-dialog.component.js +2 -1
  10. package/src/editor/media-dialog.component.js.map +1 -1
  11. package/src/editor/media-dialog.component.min.js +1 -1
  12. package/src/editor/media-dialog.component.ts +2 -1
  13. package/src/froala/plugins/citationManager.min.js +1 -1
  14. package/src/froala/plugins/mediaManager.min.js +1 -1
  15. package/src/froala/plugins/menuButton.min.js +1 -1
  16. package/src/json/json.component.css +2 -0
  17. package/src/json/json.component.css.map +1 -0
  18. package/src/json/json.component.js +257 -0
  19. package/src/json/json.component.js.map +1 -0
  20. package/src/json/json.component.min.css +0 -0
  21. package/src/json/json.component.min.js +1 -0
  22. package/src/material.js +196 -0
  23. package/src/material.js.map +1 -0
  24. package/src/material.min.js +1 -0
  25. package/src/tree/tree-dialog.component.html +3 -3
  26. package/src/tree/tree-dialog.component.js +1 -1
  27. package/src/tree/tree-dialog.component.js.map +1 -1
  28. package/src/tree/tree-dialog.component.min.html +3 -3
  29. package/src/tree/tree-dialog.component.min.js +1 -1
  30. package/src/tree/tree-dialog.component.ts +6 -5
  31. package/src/tree/tree-node.component.js +13 -4
  32. package/src/tree/tree-node.component.js.map +1 -1
  33. package/src/tree/tree-node.component.min.js +1 -1
  34. package/src/tree/tree-node.component.ts +10 -5
  35. package/src/tree/tree.component.js +1 -1
  36. package/src/tree/tree.component.js.map +1 -1
  37. package/src/tree/tree.component.min.js +1 -1
  38. package/src/tree/tree.component.ts +2 -3
  39. package/src/editor/quill-break-blot.plugin.js +0 -38
  40. package/src/editor/quill-break-blot.plugin.js.map +0 -1
  41. package/src/editor/quill-break-blot.plugin.min.js +0 -1
  42. package/src/editor/quill-html-edit.plugin.js +0 -164
  43. package/src/editor/quill-html-edit.plugin.js.map +0 -1
  44. package/src/editor/quill-html-edit.plugin.min.js +0 -1
  45. package/src/editor/quill-image-format.plugin.js +0 -50
  46. package/src/editor/quill-image-format.plugin.js.map +0 -1
  47. package/src/editor/quill-image-format.plugin.min.js +0 -1
  48. package/src/editor/quill-input-button.plugin.js +0 -98
  49. package/src/editor/quill-input-button.plugin.js.map +0 -1
  50. package/src/editor/quill-input-button.plugin.min.js +0 -1
  51. package/src/froala/editor/froala-editor.directive.js +0 -328
  52. package/src/froala/editor/froala-editor.directive.js.map +0 -1
  53. package/src/froala/editor/froala-editor.directive.min.js +0 -1
  54. package/src/froala/editor/froala-editor.module.js +0 -37
  55. package/src/froala/editor/froala-editor.module.js.map +0 -1
  56. package/src/froala/editor/froala-editor.module.min.js +0 -1
  57. package/src/froala/editor/index.js +0 -22
  58. package/src/froala/editor/index.js.map +0 -1
  59. package/src/froala/editor/index.min.js +0 -1
  60. package/src/froala/plugins/image_manager.js +0 -364
  61. package/src/froala/plugins/image_manager.js.map +0 -1
  62. package/src/froala/plugins/image_manager.min.js +0 -1
  63. package/src/froala/view/froala-view.directive.js +0 -49
  64. package/src/froala/view/froala-view.directive.js.map +0 -1
  65. package/src/froala/view/froala-view.directive.min.js +0 -1
  66. package/src/froala/view/froala-view.module.js.map +0 -1
  67. package/src/froala/view/froala-view.module.min.js +0 -1
  68. package/src/froala/view/index.js +0 -22
  69. package/src/froala/view/index.js.map +0 -1
  70. package/src/froala/view/index.min.js +0 -1
  71. package/src/root/root.component.js +0 -43
  72. package/src/root/root.component.js.map +0 -1
  73. package/src/root/root.component.min.js +0 -1
@@ -0,0 +1,196 @@
1
+ System.register(["@angular/cdk/a11y", "@angular/cdk/drag-drop", "@angular/cdk/portal", "@angular/cdk/scrolling", "@angular/cdk/stepper", "@angular/cdk/table", "@angular/cdk/tree", "@angular/core", "@angular/material/autocomplete", "@angular/material/badge", "@angular/material/bottom-sheet", "@angular/material/button", "@angular/material/button-toggle", "@angular/material/card", "@angular/material/checkbox", "@angular/material/chips", "@angular/material/datepicker", "@angular/material/dialog", "@angular/material/divider", "@angular/material/expansion", "@angular/material/grid-list", "@angular/material/icon", "@angular/material/input", "@angular/material/list", "@angular/material/menu", "@angular/material/core", "@angular/material/paginator", "@angular/material/progress-bar", "@angular/material/progress-spinner", "@angular/material/radio", "@angular/material/select", "@angular/material/sidenav", "@angular/material/slide-toggle", "@angular/material/slider", "@angular/material/snack-bar", "@angular/material/sort", "@angular/material/stepper", "@angular/material/table", "@angular/material/tabs", "@angular/material/toolbar", "@angular/material/tooltip", "@angular/material/tree"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ var a11y_1, drag_drop_1, portal_1, scrolling_1, stepper_1, table_1, tree_1, core_1, autocomplete_1, badge_1, bottom_sheet_1, button_1, button_toggle_1, card_1, checkbox_1, chips_1, datepicker_1, dialog_1, divider_1, expansion_1, grid_list_1, icon_1, input_1, list_1, menu_1, core_2, paginator_1, progress_bar_1, progress_spinner_1, radio_1, select_1, sidenav_1, slide_toggle_1, slider_1, snack_bar_1, sort_1, stepper_2, table_2, tabs_1, toolbar_1, tooltip_1, tree_2, MaterialModules;
10
+ var __moduleName = context_1 && context_1.id;
11
+ return {
12
+ setters: [
13
+ function (a11y_1_1) {
14
+ a11y_1 = a11y_1_1;
15
+ },
16
+ function (drag_drop_1_1) {
17
+ drag_drop_1 = drag_drop_1_1;
18
+ },
19
+ function (portal_1_1) {
20
+ portal_1 = portal_1_1;
21
+ },
22
+ function (scrolling_1_1) {
23
+ scrolling_1 = scrolling_1_1;
24
+ },
25
+ function (stepper_1_1) {
26
+ stepper_1 = stepper_1_1;
27
+ },
28
+ function (table_1_1) {
29
+ table_1 = table_1_1;
30
+ },
31
+ function (tree_1_1) {
32
+ tree_1 = tree_1_1;
33
+ },
34
+ function (core_1_1) {
35
+ core_1 = core_1_1;
36
+ },
37
+ function (autocomplete_1_1) {
38
+ autocomplete_1 = autocomplete_1_1;
39
+ },
40
+ function (badge_1_1) {
41
+ badge_1 = badge_1_1;
42
+ },
43
+ function (bottom_sheet_1_1) {
44
+ bottom_sheet_1 = bottom_sheet_1_1;
45
+ },
46
+ function (button_1_1) {
47
+ button_1 = button_1_1;
48
+ },
49
+ function (button_toggle_1_1) {
50
+ button_toggle_1 = button_toggle_1_1;
51
+ },
52
+ function (card_1_1) {
53
+ card_1 = card_1_1;
54
+ },
55
+ function (checkbox_1_1) {
56
+ checkbox_1 = checkbox_1_1;
57
+ },
58
+ function (chips_1_1) {
59
+ chips_1 = chips_1_1;
60
+ },
61
+ function (datepicker_1_1) {
62
+ datepicker_1 = datepicker_1_1;
63
+ },
64
+ function (dialog_1_1) {
65
+ dialog_1 = dialog_1_1;
66
+ },
67
+ function (divider_1_1) {
68
+ divider_1 = divider_1_1;
69
+ },
70
+ function (expansion_1_1) {
71
+ expansion_1 = expansion_1_1;
72
+ },
73
+ function (grid_list_1_1) {
74
+ grid_list_1 = grid_list_1_1;
75
+ },
76
+ function (icon_1_1) {
77
+ icon_1 = icon_1_1;
78
+ },
79
+ function (input_1_1) {
80
+ input_1 = input_1_1;
81
+ },
82
+ function (list_1_1) {
83
+ list_1 = list_1_1;
84
+ },
85
+ function (menu_1_1) {
86
+ menu_1 = menu_1_1;
87
+ },
88
+ function (core_2_1) {
89
+ core_2 = core_2_1;
90
+ },
91
+ function (paginator_1_1) {
92
+ paginator_1 = paginator_1_1;
93
+ },
94
+ function (progress_bar_1_1) {
95
+ progress_bar_1 = progress_bar_1_1;
96
+ },
97
+ function (progress_spinner_1_1) {
98
+ progress_spinner_1 = progress_spinner_1_1;
99
+ },
100
+ function (radio_1_1) {
101
+ radio_1 = radio_1_1;
102
+ },
103
+ function (select_1_1) {
104
+ select_1 = select_1_1;
105
+ },
106
+ function (sidenav_1_1) {
107
+ sidenav_1 = sidenav_1_1;
108
+ },
109
+ function (slide_toggle_1_1) {
110
+ slide_toggle_1 = slide_toggle_1_1;
111
+ },
112
+ function (slider_1_1) {
113
+ slider_1 = slider_1_1;
114
+ },
115
+ function (snack_bar_1_1) {
116
+ snack_bar_1 = snack_bar_1_1;
117
+ },
118
+ function (sort_1_1) {
119
+ sort_1 = sort_1_1;
120
+ },
121
+ function (stepper_2_1) {
122
+ stepper_2 = stepper_2_1;
123
+ },
124
+ function (table_2_1) {
125
+ table_2 = table_2_1;
126
+ },
127
+ function (tabs_1_1) {
128
+ tabs_1 = tabs_1_1;
129
+ },
130
+ function (toolbar_1_1) {
131
+ toolbar_1 = toolbar_1_1;
132
+ },
133
+ function (tooltip_1_1) {
134
+ tooltip_1 = tooltip_1_1;
135
+ },
136
+ function (tree_2_1) {
137
+ tree_2 = tree_2_1;
138
+ }
139
+ ],
140
+ execute: function () {
141
+ MaterialModules = class MaterialModules {
142
+ };
143
+ MaterialModules = __decorate([
144
+ core_1.NgModule({
145
+ exports: [
146
+ a11y_1.A11yModule,
147
+ stepper_1.CdkStepperModule,
148
+ table_1.CdkTableModule,
149
+ tree_1.CdkTreeModule,
150
+ drag_drop_1.DragDropModule,
151
+ autocomplete_1.MatAutocompleteModule,
152
+ badge_1.MatBadgeModule,
153
+ bottom_sheet_1.MatBottomSheetModule,
154
+ button_1.MatButtonModule,
155
+ button_toggle_1.MatButtonToggleModule,
156
+ card_1.MatCardModule,
157
+ checkbox_1.MatCheckboxModule,
158
+ chips_1.MatChipsModule,
159
+ stepper_2.MatStepperModule,
160
+ datepicker_1.MatDatepickerModule,
161
+ dialog_1.MatDialogModule,
162
+ divider_1.MatDividerModule,
163
+ expansion_1.MatExpansionModule,
164
+ grid_list_1.MatGridListModule,
165
+ icon_1.MatIconModule,
166
+ input_1.MatInputModule,
167
+ list_1.MatListModule,
168
+ menu_1.MatMenuModule,
169
+ core_2.MatNativeDateModule,
170
+ paginator_1.MatPaginatorModule,
171
+ progress_bar_1.MatProgressBarModule,
172
+ progress_spinner_1.MatProgressSpinnerModule,
173
+ radio_1.MatRadioModule,
174
+ core_2.MatRippleModule,
175
+ select_1.MatSelectModule,
176
+ sidenav_1.MatSidenavModule,
177
+ slider_1.MatSliderModule,
178
+ slide_toggle_1.MatSlideToggleModule,
179
+ snack_bar_1.MatSnackBarModule,
180
+ sort_1.MatSortModule,
181
+ table_2.MatTableModule,
182
+ tabs_1.MatTabsModule,
183
+ toolbar_1.MatToolbarModule,
184
+ tooltip_1.MatTooltipModule,
185
+ tree_2.MatTreeModule,
186
+ portal_1.PortalModule,
187
+ scrolling_1.ScrollingModule,
188
+ ]
189
+ })
190
+ ], MaterialModules);
191
+ exports_1("MaterialModules", MaterialModules);
192
+ }
193
+ };
194
+ });
195
+
196
+ //# sourceMappingURL=material.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["material.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0Fa,eAAe,GAArB,MAAM,eAAe;aAC3B,CAAA;YADY,eAAe;gBA9C3B,eAAQ,CAAC;oBACN,OAAO,EAAE;wBACL,iBAAU;wBACV,0BAAgB;wBAChB,sBAAc;wBACd,oBAAa;wBACb,0BAAc;wBACd,oCAAqB;wBACrB,sBAAc;wBACd,mCAAoB;wBACpB,wBAAe;wBACf,qCAAqB;wBACrB,oBAAa;wBACb,4BAAiB;wBACjB,sBAAc;wBACd,0BAAgB;wBAChB,gCAAmB;wBACnB,wBAAe;wBACf,0BAAgB;wBAChB,8BAAkB;wBAClB,6BAAiB;wBACjB,oBAAa;wBACb,sBAAc;wBACd,oBAAa;wBACb,oBAAa;wBACb,0BAAmB;wBACnB,8BAAkB;wBAClB,mCAAoB;wBACpB,2CAAwB;wBACxB,sBAAc;wBACd,sBAAe;wBACf,wBAAe;wBACf,0BAAgB;wBAChB,wBAAe;wBACf,mCAAoB;wBACpB,6BAAiB;wBACjB,oBAAa;wBACb,sBAAc;wBACd,oBAAa;wBACb,0BAAgB;wBAChB,0BAAgB;wBAChB,oBAAa;wBACb,qBAAY;wBACZ,2BAAe;qBAClB;iBACJ,CAAC;eACW,eAAe,CAC3B;;QACD,CAAC","file":"material.js"}
@@ -0,0 +1 @@
1
+ System.register(["@angular/cdk/a11y","@angular/cdk/drag-drop","@angular/cdk/portal","@angular/cdk/scrolling","@angular/cdk/stepper","@angular/cdk/table","@angular/cdk/tree","@angular/core","@angular/material/autocomplete","@angular/material/badge","@angular/material/bottom-sheet","@angular/material/button","@angular/material/button-toggle","@angular/material/card","@angular/material/checkbox","@angular/material/chips","@angular/material/datepicker","@angular/material/dialog","@angular/material/divider","@angular/material/expansion","@angular/material/grid-list","@angular/material/icon","@angular/material/input","@angular/material/list","@angular/material/menu","@angular/material/core","@angular/material/paginator","@angular/material/progress-bar","@angular/material/progress-spinner","@angular/material/radio","@angular/material/select","@angular/material/sidenav","@angular/material/slide-toggle","@angular/material/slider","@angular/material/snack-bar","@angular/material/sort","@angular/material/stepper","@angular/material/table","@angular/material/tabs","@angular/material/toolbar","@angular/material/tooltip","@angular/material/tree"],function(a,t){"use strict";var e,n,l,o,r,u,i,c,M,d,g,f,s,m,p,b,k,S,h,T,v,y,D,x,B,C,P,R,j,O,A,I,L,N,_,w,E,G,q,z,F,H,J,K=this&&this.__decorate||function(a,t,e,n){var l,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(a,t,e,n);else for(var u=a.length-1;u>=0;u--)(l=a[u])&&(r=(o<3?l(r):o>3?l(t,e,r):l(t,e))||r);return o>3&&r&&Object.defineProperty(t,e,r),r};t&&t.id;return{setters:[function(a){e=a},function(a){n=a},function(a){l=a},function(a){o=a},function(a){r=a},function(a){u=a},function(a){i=a},function(a){c=a},function(a){M=a},function(a){d=a},function(a){g=a},function(a){f=a},function(a){s=a},function(a){m=a},function(a){p=a},function(a){b=a},function(a){k=a},function(a){S=a},function(a){h=a},function(a){T=a},function(a){v=a},function(a){y=a},function(a){D=a},function(a){x=a},function(a){B=a},function(a){C=a},function(a){P=a},function(a){R=a},function(a){j=a},function(a){O=a},function(a){A=a},function(a){I=a},function(a){L=a},function(a){N=a},function(a){_=a},function(a){w=a},function(a){E=a},function(a){G=a},function(a){q=a},function(a){z=a},function(a){F=a},function(a){H=a}],execute:function(){J=class{},J=K([c.NgModule({exports:[e.A11yModule,r.CdkStepperModule,u.CdkTableModule,i.CdkTreeModule,n.DragDropModule,M.MatAutocompleteModule,d.MatBadgeModule,g.MatBottomSheetModule,f.MatButtonModule,s.MatButtonToggleModule,m.MatCardModule,p.MatCheckboxModule,b.MatChipsModule,E.MatStepperModule,k.MatDatepickerModule,S.MatDialogModule,h.MatDividerModule,T.MatExpansionModule,v.MatGridListModule,y.MatIconModule,D.MatInputModule,x.MatListModule,B.MatMenuModule,C.MatNativeDateModule,P.MatPaginatorModule,R.MatProgressBarModule,j.MatProgressSpinnerModule,O.MatRadioModule,C.MatRippleModule,A.MatSelectModule,I.MatSidenavModule,N.MatSliderModule,L.MatSlideToggleModule,_.MatSnackBarModule,w.MatSortModule,G.MatTableModule,q.MatTabsModule,z.MatToolbarModule,F.MatTooltipModule,H.MatTreeModule,l.PortalModule,o.ScrollingModule]})],J),a("MaterialModules",J)}}});
@@ -258,7 +258,7 @@
258
258
  matInput
259
259
  type="text"
260
260
  placeholder='"Big Menu" Dropdown Content'
261
- [(ngModel)]="data.model.data.linkHtml">
261
+ [(ngModel)]="data.linkHtml">
262
262
  </textarea>
263
263
  </mat-form-field>
264
264
 
@@ -268,11 +268,11 @@
268
268
  matInput
269
269
  type="text"
270
270
  placeholder="Icon HTML"
271
- [(ngModel)]="data.model.data.iconHtml">
271
+ [(ngModel)]="data.iconHtml">
272
272
  </textarea>
273
273
  </mat-form-field>
274
274
 
275
- <mat-checkbox [(ngModel)]="data.model.data.accessHide">
275
+ <mat-checkbox [(ngModel)]="data.accessHide">
276
276
  Hide Link for Private Page
277
277
  </mat-checkbox>
278
278
 
@@ -80,7 +80,7 @@ System.register(["@angular/core", "@angular/forms", "@angular/cdk/drag-drop", "@
80
80
  };
81
81
  }
82
82
  ngOnInit() {
83
- this.uid = lodash_1.uniqueId(`sa_${lodash_1.snakeCase(moduleName)}_component_`);
83
+ this.uid = misc_1.safeUniqueId('sa', moduleName, 'component');
84
84
  stratus_1.Stratus.Instances[this.uid] = this;
85
85
  stratus_1.Stratus.Internals.CssLoader(`${localDir}/${parentModuleName}/${moduleName}.component${min}.css`)
86
86
  .then(() => {
@@ -1 +1 @@
1
- {"version":3,"sources":["tree-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuGM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,aAAa,CAAA;YAC1B,gBAAgB,GAAG,MAAM,CAAA;YAGzB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,G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C,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBA8DO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBAER,wBAAiB;eAhE3B,mBAAmB,CAoW/B;;QACD,CAAC","file":"tree-dialog.component.js"}
@@ -1,3 +1,3 @@
1
- <h1 mat-dialog-title>Menu Link Editor</h1><div class="tree-dialog-content" *ngIf="isInitialized" mat-dialog-content><mat-tab-group (selectedIndexChange)="tabIndexChange($event)"><mat-tab label="Main"><mat-form-field class="form-field"><input #nameInput matInput type="text" placeholder="Name" [(ngModel)]="data.name"></mat-form-field><h4><label id="link-type-label">Link Type:</label></h4><mat-radio-group class="radio-group" aria-labelledby="link-type-label" [(ngModel)]="data.target"><mat-radio-button class="radio-button" value="content">Website Page</mat-radio-button><mat-radio-button class="radio-button" value="url">Custom Link</mat-radio-button></mat-radio-group><form class="dialog-form" [formGroup]="dialogContentForm"><ng-container *ngIf="data.target == 'content'"><mat-form-field class="form-field"><input matInput placeholder="Link Content" aria-label="Link Content" [matAutocomplete]="auto" formControlName="contentSelectorInput"></mat-form-field><mat-autocomplete autoActiveFirstOption #auto="matAutocomplete" [displayWith]="displayContentText"><mat-option *ngIf="isContentLoading" class="is-loading"><mat-progress-bar mode="indeterminate"></mat-progress-bar></mat-option><ng-container *ngIf="!isContentLoading"><mat-option *ngFor="let model of filteredContent" [value]="model"><mat-icon aria-hidden="true" *ngIf="get(model, 'contentType.iconResourcePath')" [svgIcon]="getSvg(Stratus.BaseUrl + get(model, 'contentType.iconResourcePath')) | async">Icon</mat-icon>{{(model && model.version) ? model.version.title : 'Untitled'}} <small *ngIf="model.routing && model.routing.length">{{'/' + model.routing[0].url}}</small></mat-option></ng-container></mat-autocomplete></ng-container></form><mat-form-field class="form-field" [style.width.px]="320" *ngIf="data.target == 'url'"><input matInput type="text" placeholder="URL" [(ngModel)]="data.url"> <a mat-button *ngIf="data.url" matSuffix mat-icon-button aria-label="Clear" (click)="data.url=''"><mat-icon>close</mat-icon></a></mat-form-field><mat-checkbox [(ngModel)]="browserTarget" (change)="onBrowserTargetChange($event)">Open in new window</mat-checkbox><h4>Actions:</h4><a mat-button class="svg-grey" (click)="destroy()"><mat-icon svgIcon="tree_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button class="svg-grey" [class.visibility-off]="data.model.get('status') === 0" (click)="toggleStatus()"><mat-icon svgIcon="tree_visibility" aria-hidden="false" aria-label="Toggle Visibility">Visibility</mat-icon></a><a mat-button class="svg-grey" [disabled]="!data.id" (click)="addChild()"><mat-icon svgIcon="tree_add" aria-hidden="false" aria-label="Add Child">Add Child</mat-icon></a></mat-tab><mat-tab label="Advanced Options"><div *ngIf="selectedTabIndex"></div><mat-form-field class="form-field"><mat-label>Link HTML</mat-label><textarea #linkHtmlInput matInput type="text" placeholder='"Big Menu" Dropdown Content' [(ngModel)]="data.model.data.linkHtml">
2
- </textarea></mat-form-field><mat-form-field class="form-field"><mat-label>Icon HTML</mat-label><textarea #iconHtmlInput matInput type="text" placeholder="Icon HTML" [(ngModel)]="data.model.data.iconHtml">
3
- </textarea></mat-form-field><mat-checkbox [(ngModel)]="data.model.data.accessHide">Hide Link for Private Page</mat-checkbox><h4>Actions:</h4><a mat-button class="svg-grey" (click)="destroy()"><mat-icon svgIcon="tree_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button class="svg-grey" [class.visibility-off]="data.model.get('status') === 0" (click)="toggleStatus()"><mat-icon svgIcon="tree_visibility" aria-hidden="false" aria-label="Toggle Visibility">Visibility</mat-icon></a><a mat-button class="svg-grey" [disabled]="!data.id" (click)="addChild()"><mat-icon svgIcon="tree_add" aria-hidden="false" aria-label="Add Child">Add Child</mat-icon></a></mat-tab></mat-tab-group><mat-divider></mat-divider></div><div mat-dialog-actions><a mat-button (click)="onCancelClick()">Cancel </a><a mat-button [mat-dialog-close]="data" cdkFocusInitial>Ok</a></div>
1
+ <h1 mat-dialog-title>Menu Link Editor</h1><div class="tree-dialog-content" *ngIf="isInitialized" mat-dialog-content><mat-tab-group (selectedIndexChange)="tabIndexChange($event)"><mat-tab label="Main"><mat-form-field class="form-field"><input #nameInput matInput type="text" placeholder="Name" [(ngModel)]="data.name"></mat-form-field><h4><label id="link-type-label">Link Type:</label></h4><mat-radio-group class="radio-group" aria-labelledby="link-type-label" [(ngModel)]="data.target"><mat-radio-button class="radio-button" value="content">Website Page</mat-radio-button><mat-radio-button class="radio-button" value="url">Custom Link</mat-radio-button></mat-radio-group><form class="dialog-form" [formGroup]="dialogContentForm"><ng-container *ngIf="data.target == 'content'"><mat-form-field class="form-field"><input matInput placeholder="Link Content" aria-label="Link Content" [matAutocomplete]="auto" formControlName="contentSelectorInput"></mat-form-field><mat-autocomplete autoActiveFirstOption #auto="matAutocomplete" [displayWith]="displayContentText"><mat-option *ngIf="isContentLoading" class="is-loading"><mat-progress-bar mode="indeterminate"></mat-progress-bar></mat-option><ng-container *ngIf="!isContentLoading"><mat-option *ngFor="let model of filteredContent" [value]="model"><mat-icon aria-hidden="true" *ngIf="get(model, 'contentType.iconResourcePath')" [svgIcon]="getSvg(Stratus.BaseUrl + get(model, 'contentType.iconResourcePath')) | async">Icon</mat-icon>{{(model && model.version) ? model.version.title : 'Untitled'}} <small *ngIf="model.routing && model.routing.length">{{'/' + model.routing[0].url}}</small></mat-option></ng-container></mat-autocomplete></ng-container></form><mat-form-field class="form-field" [style.width.px]="320" *ngIf="data.target == 'url'"><input matInput type="text" placeholder="URL" [(ngModel)]="data.url"> <a mat-button *ngIf="data.url" matSuffix mat-icon-button aria-label="Clear" (click)="data.url=''"><mat-icon>close</mat-icon></a></mat-form-field><mat-checkbox [(ngModel)]="browserTarget" (change)="onBrowserTargetChange($event)">Open in new window</mat-checkbox><h4>Actions:</h4><a mat-button class="svg-grey" (click)="destroy()"><mat-icon svgIcon="tree_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button class="svg-grey" [class.visibility-off]="data.model.get('status') === 0" (click)="toggleStatus()"><mat-icon svgIcon="tree_visibility" aria-hidden="false" aria-label="Toggle Visibility">Visibility</mat-icon></a><a mat-button class="svg-grey" [disabled]="!data.id" (click)="addChild()"><mat-icon svgIcon="tree_add" aria-hidden="false" aria-label="Add Child">Add Child</mat-icon></a></mat-tab><mat-tab label="Advanced Options"><div *ngIf="selectedTabIndex"></div><mat-form-field class="form-field"><mat-label>Link HTML</mat-label><textarea #linkHtmlInput matInput type="text" placeholder='"Big Menu" Dropdown Content' [(ngModel)]="data.linkHtml">
2
+ </textarea></mat-form-field><mat-form-field class="form-field"><mat-label>Icon HTML</mat-label><textarea #iconHtmlInput matInput type="text" placeholder="Icon HTML" [(ngModel)]="data.iconHtml">
3
+ </textarea></mat-form-field><mat-checkbox [(ngModel)]="data.accessHide">Hide Link for Private Page</mat-checkbox><h4>Actions:</h4><a mat-button class="svg-grey" (click)="destroy()"><mat-icon svgIcon="tree_delete" aria-hidden="false" aria-label="Delete Item">Delete</mat-icon></a><a mat-button class="svg-grey" [class.visibility-off]="data.model.get('status') === 0" (click)="toggleStatus()"><mat-icon svgIcon="tree_visibility" aria-hidden="false" aria-label="Toggle Visibility">Visibility</mat-icon></a><a mat-button class="svg-grey" [disabled]="!data.id" (click)="addChild()"><mat-icon svgIcon="tree_add" aria-hidden="false" aria-label="Add Child">Add Child</mat-icon></a></mat-tab></mat-tab-group><mat-divider></mat-divider></div><div mat-dialog-actions><a mat-button (click)="onCancelClick()">Cancel </a><a mat-button [mat-dialog-close]="data" cdkFocusInitial>Ok</a></div>
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/cdk/drag-drop","@angular/material/dialog","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@stratusjs/core/misc"],function(t,e){"use strict";var n,i,s,o,r,a,d,l,h,c,u,g,f,p,y,C=this&&this.__decorate||function(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r},b=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){s=t},function(t){o=t},function(t){r=t},function(t){a=t},function(t){d=t},function(t){l=t},function(t){h=t},function(t){c=t}],execute:function(){"@stratusjs/angular",u="tree-dialog",g="tree",f=l.cookie("env")?"":".min",p=`${d.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,y=class extends h.ResponsiveComponent{constructor(t,e,n,i){super(),this.dialogRef=t,this.data=e,this.fb=n,this.ref=i,this.title=u+"_component",this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1,this.selectedTabIndex=0,this.get=a.get,this.Stratus=d.Stratus,this.apiBase="/Api/Content",this.isSingleContentLoading=!1,this.limit=20,this.isContentLoading=!1,this.isContentLoaded=!1,this.basicContentQueryAttributesObject={isContent:!0,isCollection:null,showRoutable:!0,showRouting:!0}}ngOnInit(){this.uid=a.uniqueId(`sa_${a.snakeCase(u)}_component_`),d.Stratus.Instances[this.uid]=this,d.Stratus.Internals.CssLoader(`${p}/${g}/${u}.component${f}.css`).then(()=>{this.isStyled=!0}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.isStyled=!0}),this.tree=this.data.tree,this.treeNode=this.data.treeNode,this.browserTarget=null!==this.data.browserTarget,this.backend=this.data.backend,this.iconRegistry=this.data.iconRegistry,this.dialogContentForm=this.fb.group({contentSelectorInput:this.data.content||null}),this.dialogContentForm.get("contentSelectorInput").valueChanges.pipe(r.debounceTime(300),r.tap(()=>this.isContentLoading=!0),r.switchMap(t=>(a.isString(t)?this.lastContentSelectorQuery=this.getQueryUrl(t):(this.data.content=t,this.data.url=null),this.backend.get(this.lastContentSelectorQuery||this.getQueryUrl()).pipe(r.finalize(()=>{this.isContentLoading=!1,this.isContentLoaded=!0}))))).subscribe(t=>this.handleContent(t)),this.backend.get(this.getQueryUrl()).pipe(r.finalize(()=>this.isContentLoading=!1)).subscribe(t=>this.handleContent(t)),this.data.content&&this.data.content.id&&(this.isSingleContentLoading=!0,this.backend.get(this.getQueryUrl(null,this.data.content.id)).pipe(r.finalize(()=>this.isSingleContentLoading=!1)).subscribe(t=>{if(!t.ok||200!==t.status||a.isEmpty(t.body))return null;const e=a.get(t.body,"payload")||t.body;return a.isEmpty(e)||Array.isArray(e)||!a.isObject(e)?null:(this.contentEntity=e,this.isSingleContentLoading=!1,this.dialogContentForm.get("contentSelectorInput").patchValue(this.contentEntity),this.refresh().then(),this.contentEntity)})),this.isInitialized=!0}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(t=>t()):super.refresh()}onCancelClick(){this.dialogRef.close()}onBrowserTargetChange(t){this.data.browserTarget=t.checked?"_blank":null}displayContentText(t){if(!t)return;const e=a.get(t,"routing[0].url"),n=a.isUndefined(e)?" (No route!)":` (/${e})`,i=a.get(t,"id"),s=a.isUndefined(i)?null:`Content: ${i}`;return(a.get(t,"version.title")||s)+n}handleContent(t){if(!t.ok||200!==t.status||a.isEmpty(t.body))return this.filteredContent=[],this.filteredContent;const e=a.get(t.body,"payload")||t.body;return a.isEmpty(e)||!Array.isArray(e)?(this.filteredContent=[],this.filteredContent):(this.filteredContent=e,this.filteredContent)}destroy(){this.treeNode.destroy().afterClosed().subscribe(t=>{t&&this.onCancelClick()})}toggleStatus(){this.treeNode.toggleStatus()}addChild(){this.treeNode.addChild()}isSelected(t){return!!this.data.content&&this.data.content.id===t.id}getSvg(t,e){return this.tree.getSvg(t,e)}getQueryUrl(t,e){const n={options:a.assignIn(this.basicContentQueryAttributesObject,this.data.api)};return t=!a.isString(t)||a.isEmpty(t)?"":t,e=a.isString(e)||a.isNumber(e)?`/${e}`:"",`${this.apiBase}${e}?limit=${this.limit}&${c.serializeUrlParams(n)}&q=${t}`}selectedOnTop(t,e){if(!t||!t.length)return t;if(!e||!e.id)return t;const n=a.clone(t),i=t.findIndex(t=>t.id===e.id);return-1===i?(n.unshift(e),n):(s.moveItemInArray(n,i,0),n)}tabIndexChange(t){this.selectedTabIndex=t}},y=C([n.Component({selector:`sa-internal-${u}`,templateUrl:`${p}/${g}/${u}.component${f}.html`}),m(1,n.Inject(o.MAT_DIALOG_DATA)),b("design:paramtypes",[o.MatDialogRef,Object,i.FormBuilder,n.ChangeDetectorRef])],y),t("TreeDialogComponent",y)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/cdk/drag-drop","@angular/material/dialog","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@stratusjs/core/misc"],function(t,e){"use strict";var n,i,s,o,r,a,d,l,h,c,u,g,f,p,y,C=this&&this.__decorate||function(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r},b=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){s=t},function(t){o=t},function(t){r=t},function(t){a=t},function(t){d=t},function(t){l=t},function(t){h=t},function(t){c=t}],execute:function(){"@stratusjs/angular",u="tree-dialog",g="tree",f=l.cookie("env")?"":".min",p=`${d.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,y=class extends h.ResponsiveComponent{constructor(t,e,n,i){super(),this.dialogRef=t,this.data=e,this.fb=n,this.ref=i,this.title=u+"_component",this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1,this.selectedTabIndex=0,this.get=a.get,this.Stratus=d.Stratus,this.apiBase="/Api/Content",this.isSingleContentLoading=!1,this.limit=20,this.isContentLoading=!1,this.isContentLoaded=!1,this.basicContentQueryAttributesObject={isContent:!0,isCollection:null,showRoutable:!0,showRouting:!0}}ngOnInit(){this.uid=c.safeUniqueId("sa",u,"component"),d.Stratus.Instances[this.uid]=this,d.Stratus.Internals.CssLoader(`${p}/${g}/${u}.component${f}.css`).then(()=>{this.isStyled=!0}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.isStyled=!0}),this.tree=this.data.tree,this.treeNode=this.data.treeNode,this.browserTarget=null!==this.data.browserTarget,this.backend=this.data.backend,this.iconRegistry=this.data.iconRegistry,this.dialogContentForm=this.fb.group({contentSelectorInput:this.data.content||null}),this.dialogContentForm.get("contentSelectorInput").valueChanges.pipe(r.debounceTime(300),r.tap(()=>this.isContentLoading=!0),r.switchMap(t=>(a.isString(t)?this.lastContentSelectorQuery=this.getQueryUrl(t):(this.data.content=t,this.data.url=null),this.backend.get(this.lastContentSelectorQuery||this.getQueryUrl()).pipe(r.finalize(()=>{this.isContentLoading=!1,this.isContentLoaded=!0}))))).subscribe(t=>this.handleContent(t)),this.backend.get(this.getQueryUrl()).pipe(r.finalize(()=>this.isContentLoading=!1)).subscribe(t=>this.handleContent(t)),this.data.content&&this.data.content.id&&(this.isSingleContentLoading=!0,this.backend.get(this.getQueryUrl(null,this.data.content.id)).pipe(r.finalize(()=>this.isSingleContentLoading=!1)).subscribe(t=>{if(!t.ok||200!==t.status||a.isEmpty(t.body))return null;const e=a.get(t.body,"payload")||t.body;return a.isEmpty(e)||Array.isArray(e)||!a.isObject(e)?null:(this.contentEntity=e,this.isSingleContentLoading=!1,this.dialogContentForm.get("contentSelectorInput").patchValue(this.contentEntity),this.refresh().then(),this.contentEntity)})),this.isInitialized=!0}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(t=>t()):super.refresh()}onCancelClick(){this.dialogRef.close()}onBrowserTargetChange(t){this.data.browserTarget=t.checked?"_blank":null}displayContentText(t){if(!t)return;const e=a.get(t,"routing[0].url"),n=a.isUndefined(e)?" (No route!)":` (/${e})`,i=a.get(t,"id"),s=a.isUndefined(i)?null:`Content: ${i}`;return(a.get(t,"version.title")||s)+n}handleContent(t){if(!t.ok||200!==t.status||a.isEmpty(t.body))return this.filteredContent=[],this.filteredContent;const e=a.get(t.body,"payload")||t.body;return a.isEmpty(e)||!Array.isArray(e)?(this.filteredContent=[],this.filteredContent):(this.filteredContent=e,this.filteredContent)}destroy(){this.treeNode.destroy().afterClosed().subscribe(t=>{t&&this.onCancelClick()})}toggleStatus(){this.treeNode.toggleStatus()}addChild(){this.treeNode.addChild()}isSelected(t){return!!this.data.content&&this.data.content.id===t.id}getSvg(t,e){return this.tree.getSvg(t,e)}getQueryUrl(t,e){const n={options:a.assignIn(this.basicContentQueryAttributesObject,this.data.api)};return t=!a.isString(t)||a.isEmpty(t)?"":t,e=a.isString(e)||a.isNumber(e)?`/${e}`:"",`${this.apiBase}${e}?limit=${this.limit}&${c.serializeUrlParams(n)}&q=${t}`}selectedOnTop(t,e){if(!t||!t.length)return t;if(!e||!e.id)return t;const n=a.clone(t),i=t.findIndex(t=>t.id===e.id);return-1===i?(n.unshift(e),n):(s.moveItemInArray(n,i,0),n)}tabIndexChange(t){this.selectedTabIndex=t}},y=C([n.Component({selector:`sa-internal-${u}`,templateUrl:`${p}/${g}/${u}.component${f}.html`}),m(1,n.Inject(o.MAT_DIALOG_DATA)),b("design:paramtypes",[o.MatDialogRef,Object,i.FormBuilder,n.ChangeDetectorRef])],y),t("TreeDialogComponent",y)}}});
@@ -47,9 +47,7 @@ import {
47
47
  isObject,
48
48
  isNumber,
49
49
  isString,
50
- isUndefined,
51
- snakeCase,
52
- uniqueId
50
+ isUndefined
53
51
  } from 'lodash'
54
52
  import {Stratus} from '@stratusjs/runtime/stratus'
55
53
  import {cookie} from '@stratusjs/core/environment'
@@ -78,7 +76,7 @@ import {
78
76
  import {
79
77
  ResponsiveComponent
80
78
  } from '../core/responsive.component'
81
- import {serializeUrlParams} from '@stratusjs/core/misc'
79
+ import {safeUniqueId, serializeUrlParams} from '@stratusjs/core/misc'
82
80
 
83
81
  // Data Types
84
82
  export interface DialogData {
@@ -98,6 +96,9 @@ export interface DialogData {
98
96
  parent: any
99
97
  nestParent: any
100
98
  browserTarget: string // '_blank' or null
99
+ accessHide: boolean
100
+ linkHtml: string
101
+ iconHtml: string
101
102
  }
102
103
 
103
104
  // Local Setup
@@ -193,7 +194,7 @@ export class TreeDialogComponent extends ResponsiveComponent implements OnInit,
193
194
  // TODO: Consider making the Custom Link field the default
194
195
  ngOnInit() {
195
196
  // Initialization
196
- this.uid = uniqueId(`sa_${snakeCase(moduleName)}_component_`)
197
+ this.uid = safeUniqueId('sa', moduleName, 'component')
197
198
  Stratus.Instances[this.uid] = this
198
199
 
199
200
  // TODO: Assess & Possibly Remove when the System.js ecosystem is complete
@@ -1,4 +1,4 @@
1
- System.register(["@angular/core", "@angular/material/dialog", "./tree.component", "./tree-dialog.component", "../confirm-dialog/confirm-dialog.component", "lodash", "@stratusjs/runtime/stratus", "@stratusjs/core/environment", "../core/responsive.component"], function (exports_1, context_1) {
1
+ System.register(["@angular/core", "@angular/material/dialog", "./tree.component", "./tree-dialog.component", "../confirm-dialog/confirm-dialog.component", "lodash", "@stratusjs/runtime/stratus", "@stratusjs/core/environment", "../core/responsive.component", "@stratusjs/core/misc"], 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(["@angular/core", "@angular/material/dialog", "./tree.component"
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 core_1, dialog_1, tree_component_1, tree_dialog_component_1, confirm_dialog_component_1, lodash_1, stratus_1, environment_1, responsive_component_1, systemDir, moduleName, parentModuleName, min, localDir, TreeNodeComponent;
12
+ var core_1, dialog_1, tree_component_1, tree_dialog_component_1, confirm_dialog_component_1, lodash_1, stratus_1, environment_1, responsive_component_1, misc_1, systemDir, moduleName, parentModuleName, min, localDir, TreeNodeComponent;
13
13
  var __moduleName = context_1 && context_1.id;
14
14
  return {
15
15
  setters: [
@@ -39,6 +39,9 @@ System.register(["@angular/core", "@angular/material/dialog", "./tree.component"
39
39
  },
40
40
  function (responsive_component_1_1) {
41
41
  responsive_component_1 = responsive_component_1_1;
42
+ },
43
+ function (misc_1_1) {
44
+ misc_1 = misc_1_1;
42
45
  }
43
46
  ],
44
47
  execute: function () {
@@ -61,7 +64,7 @@ System.register(["@angular/core", "@angular/material/dialog", "./tree.component"
61
64
  this.isExpanded = (node) => node.meta ? node.meta.expanded : true;
62
65
  }
63
66
  ngOnInit() {
64
- this.uid = lodash_1.uniqueId(`sa_${lodash_1.snakeCase(moduleName)}_component_`);
67
+ this.uid = misc_1.safeUniqueId('sa', moduleName, 'component');
65
68
  stratus_1.Stratus.Instances[this.uid] = this;
66
69
  stratus_1.Stratus.Internals.CssLoader(`${localDir}/${parentModuleName}/${moduleName}.component${min}.css`)
67
70
  .then(() => {
@@ -175,6 +178,9 @@ System.register(["@angular/core", "@angular/material/dialog", "./tree.component"
175
178
  content: this.node.model.data.content || null,
176
179
  url: this.node.model.data.url || null,
177
180
  browserTarget: this.node.model.data.browserTarget || null,
181
+ accessHide: this.node.model.data.accessHide || false,
182
+ linkHtml: this.node.model.data.linkHtml || '',
183
+ iconHtml: this.node.model.data.iconHtml || '',
178
184
  model: this.node.model || null,
179
185
  collection: this.tree.collection || null,
180
186
  parent: this.node.model.data.parent || null,
@@ -193,7 +199,10 @@ System.register(["@angular/core", "@angular/material/dialog", "./tree.component"
193
199
  'content',
194
200
  'url',
195
201
  'priority',
196
- 'browserTarget'
202
+ 'browserTarget',
203
+ 'accessHide',
204
+ 'linkHtml',
205
+ 'iconHtml'
197
206
  ];
198
207
  attrs.forEach(attr => {
199
208
  if (!lodash_1.has(result, attr)) {
@@ -1 +1 @@
1
- {"version":3,"sources":["tree-node.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwDM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,WAAW,CAAA;YACxB,gBAAgB,GAAG,MAAM,CAAA;YAGzB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAUzH,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,0CAAmB;gBA0BtD,YACW,MAAiB,EACd,GAAsB;oBAGhC,KAAK,EAAE,CAAA;oBAJA,WAAM,GAAN,MAAM,CAAW;oBACd,QAAG,GAAH,GAAG,CAAmB;oBAzBpC,UAAK,GAAG,UAAU,GAAG,YAAY,CAAA;oBAIjC,kBAAa,GAAG,KAAK,CAAA;oBACrB,gBAAW,GAAG,KAAK,CAAA;oBACnB,aAAQ,GAAG,KAAK,CAAA;oBAGhB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AI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;iDA4BqB,kBAAS;oBACT,wBAAiB;eA5B3B,iBAAiB,CAmS7B;;QACD,CAAC","file":"tree-node.component.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/material/dialog","./tree.component","./tree-dialog.component","../confirm-dialog/confirm-dialog.component","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component"],function(e,t){"use strict";var n,o,i,s,r,d,a,l,h,c,u,m,p,g,f=this&&this.__decorate||function(e,t,n,o){var i,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(r=(s<3?i(r):s>3?i(t,n,r):i(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r},y=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){n=e},function(e){o=e},function(e){i=e},function(e){s=e},function(e){r=e},function(e){d=e},function(e){a=e},function(e){l=e},function(e){h=e}],execute:function(){"@stratusjs/angular",c="tree-node",u="tree",m=l.cookie("env")?"":".min",p=`${a.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,g=class extends h.ResponsiveComponent{constructor(e,t){super(),this.dialog=e,this.ref=t,this.title=c+"_component",this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1,this.Stratus=a.Stratus,this.hasChild=e=>e.children&&e.children.length>0,this.isExpanded=e=>!e.meta||e.meta.expanded}ngOnInit(){this.uid=d.uniqueId(`sa_${d.snakeCase(c)}_component_`),a.Stratus.Instances[this.uid]=this,a.Stratus.Internals.CssLoader(`${p}/${u}/${c}.component${m}.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()}),this.node.meta.component=this,this.isInitialized=!0,this.refresh().then(),this.onPostPersist()}ngOnDestroy(){this.node.meta.component=null,this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(e=>e()):super.refresh()}onPostPersist(){this.node&&this.node.model&&this.node.model.meta.get("postPersist")&&(this.node.model.meta.set("postPersist",!1),this.openDialog())}destroy(){const e=this.dialog.open(r.ConfirmDialogComponent,{maxWidth:"400px",data:{title:"Delete MenuLink",message:"Are you sure you want to do this?"}});return e.afterClosed().subscribe(e=>{e&&this.node&&this.node.model&&this.node.model.destroy().then()}),e}getName(){return this.node.model&&this.node.model.get&&this.node.model.get("name")?this.node.model.get("name"):"Untitled"}getDragPreview(){return`name: ${this.getName()}<br>children: ${this.node.children?this.node.children.length:0}`}toggleExpanded(){this.node.meta?(this.node.meta.expanded=!this.node.meta.expanded,this.refresh().then()):console.error("node meta not found:",this.node)}toggleExpandedClick(){this.isSingleClick=!0,setTimeout(()=>{this.isSingleClick&&this.toggleExpanded()},this.tree.dblClickWait)}toggleExpandedDblClick(){this.isSingleClick=!1,this.toggleExpanded()}openDialog(){if(!this.node.model||!d.has(this.node.model,"data"))return;const e=this.dialog.open(s.TreeDialogComponent,{width:"400px",autoFocus:!0,disableClose:!0,restoreFocus:!1,data:{tree:this.tree,treeNode:this,backend:this.tree.backend,iconRegistry:this.tree.iconRegistry,id:this.node.model.data.id||null,name:this.node.model.data.name||"",target:this.node.model.data.url?"url":"content",api:this.tree.api,content:this.node.model.data.content||null,url:this.node.model.data.url||null,browserTarget:this.node.model.data.browserTarget||null,model:this.node.model||null,collection:this.tree.collection||null,parent:this.node.model.data.parent||null,nestParent:this.node.model.data.nestParent||null}});this.refresh().then();const t=this;e.afterClosed().subscribe(e=>{if(!e||d.isEmpty(e))return;this.tree.unsettled=!0;["name","content","url","priority","browserTarget"].forEach(t=>{if(d.has(e,t))if("content"!==t)this.node.model.set(t,d.get(e,t));else{const n=d.get(e,t);this.node.model.set(t,n?{id:d.get(n,"id")}:null)}}),t.refresh().then(),t.tree.refresh().then(),this.node.model.save().then(),this.tree.unsettled=!1})}openDialogClick(){this.isSingleClick=!0,setTimeout(()=>{this.isSingleClick&&this.openDialog()},this.tree.dblClickWait)}openDialogDblClick(){this.isSingleClick=!1,this.openDialog()}getSvg(e,t){return this.tree.getSvg(e,t)}toggleStatus(){if(!this.node||!this.node.model)return;const e=this.node.model;e.set("status",e.get("status")?0:1),e.save().then()}addChild(){let e=d.max(this.tree.collection.models.filter(e=>{const t=e.get("nestParent");return!!t&&t.id===this.node.id}).map(e=>e.get("priority")))||-1;"number"==typeof e&&e++,this.tree.collection.add({name:"Untitled Child",parent:this.node.model.data.parent,nestParent:{id:this.node.model.data.id},priority:e},{save:!0,trigger:!0})}},f([n.Input(),y("design:type",i.TreeComponent)],g.prototype,"tree",void 0),f([n.Input(),y("design:type",Object)],g.prototype,"parent",void 0),f([n.Input(),y("design:type",Object)],g.prototype,"node",void 0),g=f([n.Component({selector:`sa-internal-${c}`,templateUrl:`${p}/${u}/${c}.component${m}.html`}),y("design:paramtypes",[o.MatDialog,n.ChangeDetectorRef])],g),e("TreeNodeComponent",g)}}});
1
+ System.register(["@angular/core","@angular/material/dialog","./tree.component","./tree-dialog.component","../confirm-dialog/confirm-dialog.component","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@stratusjs/core/misc"],function(e,t){"use strict";var n,i,o,s,r,d,a,l,h,c,m,u,p,g,f,y=this&&this.__decorate||function(e,t,n,i){var o,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var d=e.length-1;d>=0;d--)(o=e[d])&&(r=(s<3?o(r):s>3?o(t,n,r):o(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r},C=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){n=e},function(e){i=e},function(e){o=e},function(e){s=e},function(e){r=e},function(e){d=e},function(e){a=e},function(e){l=e},function(e){h=e},function(e){c=e}],execute:function(){"@stratusjs/angular",m="tree-node",u="tree",p=l.cookie("env")?"":".min",g=`${a.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,f=class extends h.ResponsiveComponent{constructor(e,t){super(),this.dialog=e,this.ref=t,this.title=m+"_component",this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1,this.Stratus=a.Stratus,this.hasChild=e=>e.children&&e.children.length>0,this.isExpanded=e=>!e.meta||e.meta.expanded}ngOnInit(){this.uid=c.safeUniqueId("sa",m,"component"),a.Stratus.Instances[this.uid]=this,a.Stratus.Internals.CssLoader(`${g}/${u}/${m}.component${p}.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()}),this.node.meta.component=this,this.isInitialized=!0,this.refresh().then(),this.onPostPersist()}ngOnDestroy(){this.node.meta.component=null,this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(e=>e()):super.refresh()}onPostPersist(){this.node&&this.node.model&&this.node.model.meta.get("postPersist")&&(this.node.model.meta.set("postPersist",!1),this.openDialog())}destroy(){const e=this.dialog.open(r.ConfirmDialogComponent,{maxWidth:"400px",data:{title:"Delete MenuLink",message:"Are you sure you want to do this?"}});return e.afterClosed().subscribe(e=>{e&&this.node&&this.node.model&&this.node.model.destroy().then()}),e}getName(){return this.node.model&&this.node.model.get&&this.node.model.get("name")?this.node.model.get("name"):"Untitled"}getDragPreview(){return`name: ${this.getName()}<br>children: ${this.node.children?this.node.children.length:0}`}toggleExpanded(){this.node.meta?(this.node.meta.expanded=!this.node.meta.expanded,this.refresh().then()):console.error("node meta not found:",this.node)}toggleExpandedClick(){this.isSingleClick=!0,setTimeout(()=>{this.isSingleClick&&this.toggleExpanded()},this.tree.dblClickWait)}toggleExpandedDblClick(){this.isSingleClick=!1,this.toggleExpanded()}openDialog(){if(!this.node.model||!d.has(this.node.model,"data"))return;const e=this.dialog.open(s.TreeDialogComponent,{width:"400px",autoFocus:!0,disableClose:!0,restoreFocus:!1,data:{tree:this.tree,treeNode:this,backend:this.tree.backend,iconRegistry:this.tree.iconRegistry,id:this.node.model.data.id||null,name:this.node.model.data.name||"",target:this.node.model.data.url?"url":"content",api:this.tree.api,content:this.node.model.data.content||null,url:this.node.model.data.url||null,browserTarget:this.node.model.data.browserTarget||null,accessHide:this.node.model.data.accessHide||!1,linkHtml:this.node.model.data.linkHtml||"",iconHtml:this.node.model.data.iconHtml||"",model:this.node.model||null,collection:this.tree.collection||null,parent:this.node.model.data.parent||null,nestParent:this.node.model.data.nestParent||null}});this.refresh().then();const t=this;e.afterClosed().subscribe(e=>{if(!e||d.isEmpty(e))return;this.tree.unsettled=!0;["name","content","url","priority","browserTarget","accessHide","linkHtml","iconHtml"].forEach(t=>{if(d.has(e,t))if("content"!==t)this.node.model.set(t,d.get(e,t));else{const n=d.get(e,t);this.node.model.set(t,n?{id:d.get(n,"id")}:null)}}),t.refresh().then(),t.tree.refresh().then(),this.node.model.save().then(),this.tree.unsettled=!1})}openDialogClick(){this.isSingleClick=!0,setTimeout(()=>{this.isSingleClick&&this.openDialog()},this.tree.dblClickWait)}openDialogDblClick(){this.isSingleClick=!1,this.openDialog()}getSvg(e,t){return this.tree.getSvg(e,t)}toggleStatus(){if(!this.node||!this.node.model)return;const e=this.node.model;e.set("status",e.get("status")?0:1),e.save().then()}addChild(){let e=d.max(this.tree.collection.models.filter(e=>{const t=e.get("nestParent");return!!t&&t.id===this.node.id}).map(e=>e.get("priority")))||-1;"number"==typeof e&&e++,this.tree.collection.add({name:"Untitled Child",parent:this.node.model.data.parent,nestParent:{id:this.node.model.data.id},priority:e},{save:!0,trigger:!0})}},y([n.Input(),C("design:type",o.TreeComponent)],f.prototype,"tree",void 0),y([n.Input(),C("design:type",Object)],f.prototype,"parent",void 0),y([n.Input(),C("design:type",Object)],f.prototype,"node",void 0),f=y([n.Component({selector:`sa-internal-${m}`,templateUrl:`${g}/${u}/${m}.component${p}.html`}),C("design:paramtypes",[i.MatDialog,n.ChangeDetectorRef])],f),e("TreeNodeComponent",f)}}});
@@ -39,9 +39,7 @@ import {
39
39
  get,
40
40
  has,
41
41
  isEmpty,
42
- max,
43
- snakeCase,
44
- uniqueId
42
+ max
45
43
  } from 'lodash'
46
44
  import {Stratus} from '@stratusjs/runtime/stratus'
47
45
  import {cookie} from '@stratusjs/core/environment'
@@ -52,6 +50,7 @@ import {Observable} from 'rxjs'
52
50
  import {
53
51
  ResponsiveComponent
54
52
  } from '../core/responsive.component'
53
+ import {safeUniqueId} from '@stratusjs/core/misc'
55
54
 
56
55
  // Local Setup
57
56
  const systemDir = '@stratusjs/angular'
@@ -112,7 +111,7 @@ export class TreeNodeComponent extends ResponsiveComponent implements OnInit, On
112
111
 
113
112
  ngOnInit() {
114
113
  // Initialization
115
- this.uid = uniqueId(`sa_${snakeCase(moduleName)}_component_`)
114
+ this.uid = safeUniqueId('sa', moduleName, 'component')
116
115
  Stratus.Instances[this.uid] = this
117
116
 
118
117
  // TODO: Assess & Possibly Remove when the System.js ecosystem is complete
@@ -250,6 +249,9 @@ export class TreeNodeComponent extends ResponsiveComponent implements OnInit, On
250
249
  content: this.node.model.data.content || null,
251
250
  url: this.node.model.data.url || null,
252
251
  browserTarget: this.node.model.data.browserTarget || null,
252
+ accessHide: this.node.model.data.accessHide || false,
253
+ linkHtml: this.node.model.data.linkHtml || '',
254
+ iconHtml: this.node.model.data.iconHtml || '',
253
255
  // priority: this.node.model.data.priority || 0,
254
256
  model: this.node.model || null,
255
257
  collection: this.tree.collection || null,
@@ -272,7 +274,10 @@ export class TreeNodeComponent extends ResponsiveComponent implements OnInit, On
272
274
  'content',
273
275
  'url',
274
276
  'priority',
275
- 'browserTarget'
277
+ 'browserTarget',
278
+ 'accessHide',
279
+ 'linkHtml',
280
+ 'iconHtml'
276
281
  ]
277
282
  // Persist to Model
278
283
  attrs.forEach(attr => {
@@ -102,7 +102,7 @@ System.register(["@angular/core", "@angular/cdk/drag-drop", "@angular/cdk/tree",
102
102
  this.isDebug = false;
103
103
  }
104
104
  ngOnInit() {
105
- this.uid = lodash_1.uniqueId(`sa_${lodash_1.snakeCase(moduleName)}_component_`);
105
+ this.uid = misc_1.safeUniqueId('sa', moduleName, 'component');
106
106
  stratus_1.Stratus.Instances[this.uid] = this;
107
107
  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"]);
108
108
  stratus_1.Stratus.Internals.CssLoader(`${localDir}/${moduleName}/${moduleName}.component${min}.css`)