@osovitny/anatoly 1.0.1 → 1.2.1

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 (146) hide show
  1. package/README.md +5 -0
  2. package/ng-package.json +7 -0
  3. package/package.json +1 -16
  4. package/src/lib/billing/billing.module.ts +62 -0
  5. package/src/lib/billing/components/buyaccess/buyaccess-button.component.html +15 -0
  6. package/src/lib/billing/components/buyaccess/buyaccess-button.component.ts +70 -0
  7. package/src/lib/billing/components/subscriptions/subscribe-plan-button.component.html +21 -0
  8. package/src/lib/billing/components/subscriptions/subscribe-plan-button.component.ts +60 -0
  9. package/src/lib/billing/components/subscriptions/upgrade-plan-button.component.html +3 -0
  10. package/src/lib/billing/components/subscriptions/upgrade-plan-button.component.ts +47 -0
  11. package/src/lib/billing/index.ts +10 -0
  12. package/src/lib/billing/services/base-billing-api.service.ts +56 -0
  13. package/src/lib/core/consts.ts +7 -0
  14. package/src/lib/core/core.module.ts +45 -0
  15. package/src/lib/core/index.ts +10 -0
  16. package/src/lib/core/services/appcontext.service.ts +81 -0
  17. package/src/lib/core/services/base-api.service.ts +87 -0
  18. package/src/lib/core/services/base-go.service.ts +33 -0
  19. package/src/lib/core/services/base-gridedit.service.ts +124 -0
  20. package/src/lib/identity/components/signin-button.component.html +1 -0
  21. package/src/lib/identity/components/signin-button.component.ts +27 -0
  22. package/src/lib/identity/components/signout-button.component.html +1 -0
  23. package/src/lib/identity/components/signout-button.component.ts +27 -0
  24. package/src/lib/identity/components/signup-button.component.html +1 -0
  25. package/src/lib/identity/components/signup-button.component.ts +28 -0
  26. package/src/lib/identity/identity.module.ts +41 -0
  27. package/src/lib/identity/index.ts +7 -0
  28. package/src/lib/ui/components/base-edit.component.ts +77 -0
  29. package/src/lib/ui/components/base.component.ts +45 -0
  30. package/src/lib/ui/components/content-header/content-header.component.html +4 -0
  31. package/src/lib/ui/components/content-header/content-header.component.ts +32 -0
  32. package/src/lib/ui/components/html-editor/base-html-editor.component.ts +97 -0
  33. package/src/lib/ui/components/html-editor/forms-html-editor.component.html +14 -0
  34. package/src/lib/ui/components/html-editor/forms-html-editor.component.ts +35 -0
  35. package/src/lib/ui/components/html-editor/html-editor.component.html +6 -0
  36. package/src/lib/ui/components/html-editor/html-editor.component.ts +51 -0
  37. package/src/lib/ui/components/html-editor/html-editor.defaultoptions.ts +38 -0
  38. package/src/lib/ui/components/validation/form-validation-summary.component.html +4 -0
  39. package/src/lib/ui/components/validation/form-validation-summary.component.ts +36 -0
  40. package/src/lib/ui/components/validation/item-validation-summary.component.html +5 -0
  41. package/src/lib/ui/components/validation/item-validation-summary.component.ts +32 -0
  42. package/src/lib/ui/components/validation/validation-summary.component.ts +74 -0
  43. package/src/lib/ui/index.js +13 -0
  44. package/src/lib/ui/index.js.map +1 -0
  45. package/src/lib/ui/index.ts +14 -0
  46. package/src/lib/ui/ui.module.ts +83 -0
  47. package/{public-api.d.ts → src/public-api.ts} +4 -4
  48. package/tsconfig.lib.json +32 -0
  49. package/tsconfig.lib.prod.json +6 -0
  50. package/tslint.json +17 -0
  51. package/typings/osovitny-ui/index.d.ts +24 -0
  52. package/bundles/osovitny-anatoly.umd.js +0 -2065
  53. package/bundles/osovitny-anatoly.umd.js.map +0 -1
  54. package/bundles/osovitny-anatoly.umd.min.js +0 -16
  55. package/bundles/osovitny-anatoly.umd.min.js.map +0 -1
  56. package/esm2015/lib/billing/billing.module.js +0 -62
  57. package/esm2015/lib/billing/components/buyaccess/buyaccess-button.component.js +0 -123
  58. package/esm2015/lib/billing/components/subscriptions/subscribe-plan-button.component.js +0 -97
  59. package/esm2015/lib/billing/components/subscriptions/upgrade-plan-button.component.js +0 -84
  60. package/esm2015/lib/billing/index.js +0 -6
  61. package/esm2015/lib/billing/services/base-billing-api.service.js +0 -116
  62. package/esm2015/lib/core/consts.js +0 -15
  63. package/esm2015/lib/core/core.module.js +0 -47
  64. package/esm2015/lib/core/index.js +0 -12
  65. package/esm2015/lib/core/services/appcontext.service.js +0 -123
  66. package/esm2015/lib/core/services/base-api.service.js +0 -154
  67. package/esm2015/lib/core/services/base-go.service.js +0 -58
  68. package/esm2015/lib/core/services/base-gridedit.service.js +0 -202
  69. package/esm2015/lib/identity/components/signin-button.component.js +0 -38
  70. package/esm2015/lib/identity/components/signout-button.component.js +0 -38
  71. package/esm2015/lib/identity/components/signup-button.component.js +0 -39
  72. package/esm2015/lib/identity/identity.module.js +0 -43
  73. package/esm2015/lib/identity/index.js +0 -6
  74. package/esm2015/lib/ui/components/base-edit.component.js +0 -102
  75. package/esm2015/lib/ui/components/base.component.js +0 -57
  76. package/esm2015/lib/ui/components/content-header/content-header.component.js +0 -44
  77. package/esm2015/lib/ui/components/html-editor/html-editor.component.js +0 -267
  78. package/esm2015/lib/ui/components/validation/form-validation-summary.component.js +0 -51
  79. package/esm2015/lib/ui/components/validation/item-validation-summary.component.js +0 -45
  80. package/esm2015/lib/ui/components/validation/validation-summary.component.js +0 -93
  81. package/esm2015/lib/ui/index.js +0 -11
  82. package/esm2015/lib/ui/ui.module.js +0 -72
  83. package/esm2015/osovitny-anatoly.js +0 -9
  84. package/esm2015/public-api.js +0 -9
  85. package/esm5/lib/billing/billing.module.js +0 -66
  86. package/esm5/lib/billing/components/buyaccess/buyaccess-button.component.js +0 -128
  87. package/esm5/lib/billing/components/subscriptions/subscribe-plan-button.component.js +0 -100
  88. package/esm5/lib/billing/components/subscriptions/upgrade-plan-button.component.js +0 -86
  89. package/esm5/lib/billing/index.js +0 -6
  90. package/esm5/lib/billing/services/base-billing-api.service.js +0 -135
  91. package/esm5/lib/core/consts.js +0 -15
  92. package/esm5/lib/core/core.module.js +0 -51
  93. package/esm5/lib/core/index.js +0 -12
  94. package/esm5/lib/core/services/appcontext.service.js +0 -140
  95. package/esm5/lib/core/services/base-api.service.js +0 -205
  96. package/esm5/lib/core/services/base-go.service.js +0 -59
  97. package/esm5/lib/core/services/base-gridedit.service.js +0 -240
  98. package/esm5/lib/identity/components/signin-button.component.js +0 -41
  99. package/esm5/lib/identity/components/signout-button.component.js +0 -41
  100. package/esm5/lib/identity/components/signup-button.component.js +0 -41
  101. package/esm5/lib/identity/identity.module.js +0 -47
  102. package/esm5/lib/identity/index.js +0 -6
  103. package/esm5/lib/ui/components/base-edit.component.js +0 -137
  104. package/esm5/lib/ui/components/base.component.js +0 -72
  105. package/esm5/lib/ui/components/content-header/content-header.component.js +0 -51
  106. package/esm5/lib/ui/components/html-editor/html-editor.component.js +0 -309
  107. package/esm5/lib/ui/components/validation/form-validation-summary.component.js +0 -59
  108. package/esm5/lib/ui/components/validation/item-validation-summary.component.js +0 -49
  109. package/esm5/lib/ui/components/validation/validation-summary.component.js +0 -106
  110. package/esm5/lib/ui/index.js +0 -11
  111. package/esm5/lib/ui/ui.module.js +0 -76
  112. package/esm5/osovitny-anatoly.js +0 -9
  113. package/esm5/public-api.js +0 -9
  114. package/fesm2015/osovitny-anatoly.js +0 -1622
  115. package/fesm2015/osovitny-anatoly.js.map +0 -1
  116. package/fesm5/osovitny-anatoly.js +0 -1877
  117. package/fesm5/osovitny-anatoly.js.map +0 -1
  118. package/lib/billing/billing.module.d.ts +0 -2
  119. package/lib/billing/components/buyaccess/buyaccess-button.component.d.ts +0 -16
  120. package/lib/billing/components/subscriptions/subscribe-plan-button.component.d.ts +0 -15
  121. package/lib/billing/components/subscriptions/upgrade-plan-button.component.d.ts +0 -9
  122. package/lib/billing/index.d.ts +0 -1
  123. package/lib/billing/services/base-billing-api.service.d.ts +0 -9
  124. package/lib/core/consts.d.ts +0 -5
  125. package/lib/core/core.module.d.ts +0 -2
  126. package/lib/core/index.d.ts +0 -5
  127. package/lib/core/services/appcontext.service.d.ts +0 -14
  128. package/lib/core/services/base-api.service.d.ts +0 -18
  129. package/lib/core/services/base-go.service.d.ts +0 -7
  130. package/lib/core/services/base-gridedit.service.d.ts +0 -19
  131. package/lib/identity/components/signin-button.component.d.ts +0 -4
  132. package/lib/identity/components/signout-button.component.d.ts +0 -4
  133. package/lib/identity/components/signup-button.component.d.ts +0 -4
  134. package/lib/identity/identity.module.d.ts +0 -2
  135. package/lib/identity/index.d.ts +0 -1
  136. package/lib/ui/components/base-edit.component.d.ts +0 -14
  137. package/lib/ui/components/base.component.d.ts +0 -7
  138. package/lib/ui/components/content-header/content-header.component.d.ts +0 -5
  139. package/lib/ui/components/html-editor/html-editor.component.d.ts +0 -22
  140. package/lib/ui/components/validation/form-validation-summary.component.d.ts +0 -6
  141. package/lib/ui/components/validation/item-validation-summary.component.d.ts +0 -6
  142. package/lib/ui/components/validation/validation-summary.component.d.ts +0 -6
  143. package/lib/ui/index.d.ts +0 -4
  144. package/lib/ui/ui.module.d.ts +0 -2
  145. package/osovitny-anatoly.d.ts +0 -4
  146. package/osovitny-anatoly.metadata.json +0 -1
@@ -1,1877 +0,0 @@
1
- import { Injectable, NgModule, Component, Input } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { HttpClient, HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule } from '@angular/common/http';
4
- import { __extends } from 'tslib';
5
- import { map } from 'rxjs/operators';
6
- import { BehaviorSubject } from 'rxjs';
7
- import { ActivatedRoute, Router } from '@angular/router';
8
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
9
- import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
10
- import { GridModule } from '@progress/kendo-angular-grid';
11
- import { PopupModule } from '@progress/kendo-angular-popup';
12
- import { ButtonsModule } from '@progress/kendo-angular-buttons';
13
- import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
14
-
15
- /**
16
- * @fileoverview added by tsickle
17
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18
- */
19
- var anatoly$1;
20
- (function (anatoly) {
21
- var consts;
22
- (function (consts) {
23
- consts.jsonUrl = "/dist/json/";
24
- consts.appUrl = "/";
25
- consts.apiUrl = "/api/";
26
- })(consts = anatoly.consts || (anatoly.consts = {}));
27
- })(anatoly$1 || (anatoly$1 = {}));
28
- ((/** @type {?} */ (window))).anatoly = anatoly$1;
29
-
30
- /**
31
- * @fileoverview added by tsickle
32
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
33
- */
34
- var BaseApiService = /** @class */ (function () {
35
- function BaseApiService(http) {
36
- this.http = http;
37
- this.baseUrl = anatoly.consts.apiUrl;
38
- }
39
- /**
40
- * @private
41
- * @param {?=} data
42
- * @return {?}
43
- */
44
- BaseApiService.prototype.serializeParams = /**
45
- * @private
46
- * @param {?=} data
47
- * @return {?}
48
- */
49
- function (data) {
50
- return data ? ('?' + $.param(data)) : '';
51
- };
52
- //webApi
53
- //webApi
54
- /**
55
- * @template T
56
- * @param {?} action
57
- * @param {?=} data
58
- * @return {?}
59
- */
60
- BaseApiService.prototype.get =
61
- //webApi
62
- /**
63
- * @template T
64
- * @param {?} action
65
- * @param {?=} data
66
- * @return {?}
67
- */
68
- function (action, data) {
69
- /** @type {?} */
70
- var url = this.baseUrl + ("" + action + this.serializeParams(data));
71
- return this.http.get(url).pipe(map((/**
72
- * @param {?} res
73
- * @return {?}
74
- */
75
- function (res) { return (/** @type {?} */ (res)); })));
76
- };
77
- /**
78
- * @param {?} action
79
- * @param {?=} data
80
- * @return {?}
81
- */
82
- BaseApiService.prototype.post = /**
83
- * @param {?} action
84
- * @param {?=} data
85
- * @return {?}
86
- */
87
- function (action, data) {
88
- /** @type {?} */
89
- var url = this.baseUrl + ("" + action);
90
- return this.http.post(url, data, { responseType: 'text' });
91
- };
92
- /**
93
- * @param {?} action
94
- * @param {?=} data
95
- * @return {?}
96
- */
97
- BaseApiService.prototype.postQS = /**
98
- * @param {?} action
99
- * @param {?=} data
100
- * @return {?}
101
- */
102
- function (action, data) {
103
- /** @type {?} */
104
- var url = this.baseUrl + ("" + action + this.serializeParams(data));
105
- return this.http.post(url, null, { responseType: 'text' });
106
- };
107
- //gets
108
- //gets
109
- /**
110
- * @template T
111
- * @param {?=} data
112
- * @return {?}
113
- */
114
- BaseApiService.prototype.getAll =
115
- //gets
116
- /**
117
- * @template T
118
- * @param {?=} data
119
- * @return {?}
120
- */
121
- function (data) {
122
- return this.get('getall', data).pipe(map((/**
123
- * @param {?} res
124
- * @return {?}
125
- */
126
- function (res) { return (/** @type {?} */ (res)); })));
127
- };
128
- /**
129
- * @param {?} fileName
130
- * @param {?} jsonVersion
131
- * @return {?}
132
- */
133
- BaseApiService.prototype.getJsonFile = /**
134
- * @param {?} fileName
135
- * @param {?} jsonVersion
136
- * @return {?}
137
- */
138
- function (fileName, jsonVersion) {
139
- if (!jsonVersion) {
140
- jsonVersion = "1.0";
141
- }
142
- /** @type {?} */
143
- var url = anatoly.consts.jsonUrl + fileName + '?' + jsonVersion;
144
- return this.http.get(url).pipe(map((/**
145
- * @param {?} res
146
- * @return {?}
147
- */
148
- function (res) { return (/** @type {?} */ (res)); })));
149
- };
150
- /**
151
- * @return {?}
152
- */
153
- BaseApiService.prototype.getNewGuid = /**
154
- * @return {?}
155
- */
156
- function () {
157
- /** @type {?} */
158
- var url = this.baseUrl + 'getNewGuid';
159
- return this.http.get(url, { responseType: 'text' });
160
- };
161
- //CRUD function
162
- //CRUD function
163
- /**
164
- * @template T
165
- * @param {?} id
166
- * @return {?}
167
- */
168
- BaseApiService.prototype.getById =
169
- //CRUD function
170
- /**
171
- * @template T
172
- * @param {?} id
173
- * @return {?}
174
- */
175
- function (id) {
176
- return this.get('getById', { id: id });
177
- };
178
- /**
179
- * @param {?} id
180
- * @return {?}
181
- */
182
- BaseApiService.prototype.remove = /**
183
- * @param {?} id
184
- * @return {?}
185
- */
186
- function (id) {
187
- return this.postQS('remove', { id: id });
188
- };
189
- BaseApiService.decorators = [
190
- { type: Injectable }
191
- ];
192
- /** @nocollapse */
193
- BaseApiService.ctorParameters = function () { return [
194
- { type: HttpClient }
195
- ]; };
196
- return BaseApiService;
197
- }());
198
- if (false) {
199
- /**
200
- * @type {?}
201
- * @protected
202
- */
203
- BaseApiService.prototype.baseUrl;
204
- /**
205
- * @type {?}
206
- * @protected
207
- */
208
- BaseApiService.prototype.jsonUrl;
209
- /**
210
- * @type {?}
211
- * @protected
212
- */
213
- BaseApiService.prototype.http;
214
- }
215
-
216
- /**
217
- * @fileoverview added by tsickle
218
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
219
- */
220
- var AppContextService = /** @class */ (function (_super) {
221
- __extends(AppContextService, _super);
222
- function AppContextService(http) {
223
- var _this = _super.call(this, http) || this;
224
- _this.http = http;
225
- _this.current = null;
226
- _this.successes = [];
227
- _this.subscription = null;
228
- _this.baseUrl = anatoly.consts.apiUrl + 'appcontext/';
229
- return _this;
230
- }
231
- /**
232
- * @param {?} success
233
- * @return {?}
234
- */
235
- AppContextService.prototype.getCurrent = /**
236
- * @param {?} success
237
- * @return {?}
238
- */
239
- function (success) {
240
- var _this = this;
241
- if (typeof success == "undefined") {
242
- return;
243
- }
244
- if (this.current != null) {
245
- success(this.current);
246
- return;
247
- }
248
- this.successes.push(success);
249
- if (this.subscription != null) {
250
- return;
251
- }
252
- this.subscription = this.get('GetCurrentContext', null).subscribe((/**
253
- * @param {?} data
254
- * @return {?}
255
- */
256
- function (data) {
257
- _this.dataReceived(data);
258
- }), (/**
259
- * @param {?} e
260
- * @return {?}
261
- */
262
- function (e) { }));
263
- };
264
- /**
265
- * @param {?} data
266
- * @return {?}
267
- */
268
- AppContextService.prototype.dataReceived = /**
269
- * @param {?} data
270
- * @return {?}
271
- */
272
- function (data) {
273
- this.current = data;
274
- for (var i = 0; i < this.successes.length; i++) {
275
- /** @type {?} */
276
- var success = this.successes[i];
277
- success(data);
278
- }
279
- this.successes = [];
280
- this.subscription.unsubscribe();
281
- this.subscription = null;
282
- this.current = null;
283
- };
284
- /**
285
- * @return {?}
286
- */
287
- AppContextService.prototype.isUserSignedIn = /**
288
- * @return {?}
289
- */
290
- function () {
291
- return ((/** @type {?} */ (window))).__context_isUserSignedIn;
292
- };
293
- /**
294
- * @return {?}
295
- */
296
- AppContextService.prototype.isUserAdmin = /**
297
- * @return {?}
298
- */
299
- function () {
300
- return ((/** @type {?} */ (window))).__context_isUserAdmin;
301
- };
302
- AppContextService.decorators = [
303
- { type: Injectable }
304
- ];
305
- /** @nocollapse */
306
- AppContextService.ctorParameters = function () { return [
307
- { type: HttpClient }
308
- ]; };
309
- return AppContextService;
310
- }(BaseApiService));
311
- if (false) {
312
- /**
313
- * @type {?}
314
- * @private
315
- */
316
- AppContextService.prototype.current;
317
- /**
318
- * @type {?}
319
- * @private
320
- */
321
- AppContextService.prototype.successes;
322
- /**
323
- * @type {?}
324
- * @private
325
- */
326
- AppContextService.prototype.subscription;
327
- /**
328
- * @type {?}
329
- * @protected
330
- */
331
- AppContextService.prototype.http;
332
- }
333
-
334
- /**
335
- * @fileoverview added by tsickle
336
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
337
- */
338
- var AnatolyCoreModule = /** @class */ (function () {
339
- function AnatolyCoreModule() {
340
- }
341
- AnatolyCoreModule.decorators = [
342
- { type: NgModule, args: [{
343
- imports: [
344
- CommonModule,
345
- HttpClientModule,
346
- HttpClientXsrfModule,
347
- HttpClientJsonpModule
348
- ],
349
- exports: [
350
- CommonModule,
351
- HttpClientModule,
352
- HttpClientXsrfModule,
353
- HttpClientJsonpModule
354
- ],
355
- declarations: [],
356
- providers: [
357
- AppContextService
358
- ]
359
- },] }
360
- ];
361
- return AnatolyCoreModule;
362
- }());
363
-
364
- /**
365
- * @fileoverview added by tsickle
366
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
367
- */
368
- var BaseGridEditService = /** @class */ (function (_super) {
369
- __extends(BaseGridEditService, _super);
370
- function BaseGridEditService(http) {
371
- var _this = _super.call(this, []) || this;
372
- _this.http = http;
373
- _this.data = [];
374
- _this.baseUrl = anatoly.consts.apiUrl;
375
- _this.baseReadUrl = _this.baseUrl + "getAll";
376
- return _this;
377
- }
378
- /**
379
- * @private
380
- * @param {?=} data
381
- * @return {?}
382
- */
383
- BaseGridEditService.prototype.serializeParams = /**
384
- * @private
385
- * @param {?=} data
386
- * @return {?}
387
- */
388
- function (data) {
389
- return data ? ('?' + $.param(data)) : '';
390
- };
391
- /**
392
- * @private
393
- * @return {?}
394
- */
395
- BaseGridEditService.prototype.reset = /**
396
- * @private
397
- * @return {?}
398
- */
399
- function () {
400
- this.data = [];
401
- };
402
- /**
403
- * @param {?} dataItem
404
- * @return {?}
405
- */
406
- BaseGridEditService.prototype.resetItem = /**
407
- * @param {?} dataItem
408
- * @return {?}
409
- */
410
- function (dataItem) {
411
- if (!dataItem) {
412
- return;
413
- }
414
- //find orignal data item
415
- /** @type {?} */
416
- var originalDataItem = this.data.find((/**
417
- * @param {?} item
418
- * @return {?}
419
- */
420
- function (item) { return item.Id === dataItem.Id; }));
421
- //revert changes
422
- Object.assign(originalDataItem, dataItem);
423
- _super.prototype.next.call(this, this.data);
424
- };
425
- /**
426
- * @param {?=} params
427
- * @return {?}
428
- */
429
- BaseGridEditService.prototype.read = /**
430
- * @param {?=} params
431
- * @return {?}
432
- */
433
- function (params) {
434
- var _this = this;
435
- if (this.data.length) {
436
- return _super.prototype.next.call(this, this.data);
437
- }
438
- /** @type {?} */
439
- var url = this.baseReadUrl;
440
- if (typeof params === 'undefined') {
441
- params = this.savedReadParams;
442
- }
443
- if (typeof params !== 'undefined') {
444
- url = this.baseReadUrl + ("" + this.serializeParams(params));
445
- this.savedReadParams = params;
446
- }
447
- // this.http.get(url)
448
- // .map(res => <any[]>res)
449
- // .do(data => { this.data = data; }).subscribe(data => { super.next(data); });
450
- //}
451
- this.http.get(url).pipe(map((/**
452
- * @param {?} res
453
- * @return {?}
454
- */
455
- function (res) { return (/** @type {?} */ (res)); }))).subscribe((/**
456
- * @param {?} data
457
- * @return {?}
458
- */
459
- function (data) { _super.prototype.next.call(_this, data); }));
460
- };
461
- /**
462
- * @param {?} data
463
- * @param {?} isNew
464
- * @param {?=} sucess
465
- * @return {?}
466
- */
467
- BaseGridEditService.prototype.save = /**
468
- * @param {?} data
469
- * @param {?} isNew
470
- * @param {?=} sucess
471
- * @return {?}
472
- */
473
- function (data, isNew, sucess) {
474
- var _this = this;
475
- /** @type {?} */
476
- var action = isNew ? 'add' : 'update';
477
- this.reset();
478
- this.post(action, data).subscribe((/**
479
- * @return {?}
480
- */
481
- function () {
482
- }), (/**
483
- * @return {?}
484
- */
485
- function () {
486
- _this.read();
487
- }), (/**
488
- * @return {?}
489
- */
490
- function () {
491
- _this.read();
492
- if (sucess)
493
- sucess();
494
- }));
495
- };
496
- /**
497
- * @param {?} data
498
- * @param {?=} sucess
499
- * @return {?}
500
- */
501
- BaseGridEditService.prototype.remove = /**
502
- * @param {?} data
503
- * @param {?=} sucess
504
- * @return {?}
505
- */
506
- function (data, sucess) {
507
- var _this = this;
508
- this.reset();
509
- this.post('remove', data).subscribe((/**
510
- * @return {?}
511
- */
512
- function () {
513
- }), (/**
514
- * @return {?}
515
- */
516
- function () {
517
- _this.read();
518
- }), (/**
519
- * @return {?}
520
- */
521
- function () {
522
- _this.read();
523
- if (sucess)
524
- sucess();
525
- }));
526
- };
527
- /**
528
- * @param {?} action
529
- * @param {?=} data
530
- * @return {?}
531
- */
532
- BaseGridEditService.prototype.post = /**
533
- * @param {?} action
534
- * @param {?=} data
535
- * @return {?}
536
- */
537
- function (action, data) {
538
- /** @type {?} */
539
- var url = this.baseUrl + ("" + action + this.serializeParams(data));
540
- return this.http.post(url, data).pipe(map((/**
541
- * @param {?} res
542
- * @return {?}
543
- */
544
- function (res) { return (/** @type {?} */ (res)); })));
545
- };
546
- BaseGridEditService.decorators = [
547
- { type: Injectable }
548
- ];
549
- /** @nocollapse */
550
- BaseGridEditService.ctorParameters = function () { return [
551
- { type: HttpClient }
552
- ]; };
553
- return BaseGridEditService;
554
- }(BehaviorSubject));
555
- if (false) {
556
- /**
557
- * @type {?}
558
- * @protected
559
- */
560
- BaseGridEditService.prototype.baseUrl;
561
- /**
562
- * @type {?}
563
- * @protected
564
- */
565
- BaseGridEditService.prototype.baseReadUrl;
566
- /**
567
- * @type {?}
568
- * @protected
569
- */
570
- BaseGridEditService.prototype.savedReadParams;
571
- /**
572
- * @type {?}
573
- * @private
574
- */
575
- BaseGridEditService.prototype.data;
576
- /**
577
- * @type {?}
578
- * @protected
579
- */
580
- BaseGridEditService.prototype.http;
581
- }
582
-
583
- /**
584
- * @fileoverview added by tsickle
585
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
586
- */
587
- var BaseGoService = /** @class */ (function () {
588
- function BaseGoService(route, router) {
589
- this.route = route;
590
- this.router = router;
591
- }
592
- /**
593
- * @return {?}
594
- */
595
- BaseGoService.prototype.locationReload = /**
596
- * @return {?}
597
- */
598
- function () {
599
- //this.router.navigate([this.route.url]);
600
- ((/** @type {?} */ (window))).location.reload();
601
- };
602
- BaseGoService.decorators = [
603
- { type: Injectable }
604
- ];
605
- /** @nocollapse */
606
- BaseGoService.ctorParameters = function () { return [
607
- { type: ActivatedRoute },
608
- { type: Router }
609
- ]; };
610
- return BaseGoService;
611
- }());
612
- if (false) {
613
- /**
614
- * @type {?}
615
- * @protected
616
- */
617
- BaseGoService.prototype.route;
618
- /**
619
- * @type {?}
620
- * @protected
621
- */
622
- BaseGoService.prototype.router;
623
- }
624
-
625
- /**
626
- * @fileoverview added by tsickle
627
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
628
- */
629
-
630
- /**
631
- * @fileoverview added by tsickle
632
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
633
- */
634
- var SignInButtonComponent = /** @class */ (function () {
635
- function SignInButtonComponent() {
636
- }
637
- SignInButtonComponent.decorators = [
638
- { type: Component, args: [{
639
- selector: 'anatoly-signin-button',
640
- template: "<a href=\"identity/signIn\" class=\"{{classbtn}}\">Sign In</a>\r\n"
641
- }] }
642
- ];
643
- /** @nocollapse */
644
- SignInButtonComponent.ctorParameters = function () { return []; };
645
- SignInButtonComponent.propDecorators = {
646
- classbtn: [{ type: Input }]
647
- };
648
- return SignInButtonComponent;
649
- }());
650
- if (false) {
651
- /** @type {?} */
652
- SignInButtonComponent.prototype.classbtn;
653
- }
654
-
655
- /**
656
- * @fileoverview added by tsickle
657
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
658
- */
659
- var SignUpButtonComponent = /** @class */ (function () {
660
- function SignUpButtonComponent() {
661
- }
662
- SignUpButtonComponent.decorators = [
663
- { type: Component, args: [{
664
- selector: 'anatoly-signup-button',
665
- template: "<a href=\"identity/signup\" class=\"{{classbtn}}\">Sign Up</a>\r\n"
666
- }] }
667
- ];
668
- /** @nocollapse */
669
- SignUpButtonComponent.ctorParameters = function () { return []; };
670
- SignUpButtonComponent.propDecorators = {
671
- classbtn: [{ type: Input }]
672
- };
673
- return SignUpButtonComponent;
674
- }());
675
- if (false) {
676
- /** @type {?} */
677
- SignUpButtonComponent.prototype.classbtn;
678
- }
679
-
680
- /**
681
- * @fileoverview added by tsickle
682
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
683
- */
684
- var SignOutButtonComponent = /** @class */ (function () {
685
- function SignOutButtonComponent() {
686
- }
687
- SignOutButtonComponent.decorators = [
688
- { type: Component, args: [{
689
- selector: 'anatoly-signout-button',
690
- template: "<a href=\"identity/signOut\" class=\"{{classbtn}}\">Sign Out</a>\r\n"
691
- }] }
692
- ];
693
- /** @nocollapse */
694
- SignOutButtonComponent.ctorParameters = function () { return []; };
695
- SignOutButtonComponent.propDecorators = {
696
- classbtn: [{ type: Input }]
697
- };
698
- return SignOutButtonComponent;
699
- }());
700
- if (false) {
701
- /** @type {?} */
702
- SignOutButtonComponent.prototype.classbtn;
703
- }
704
-
705
- /**
706
- * @fileoverview added by tsickle
707
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
708
- */
709
- var AnatolyIdentityModule = /** @class */ (function () {
710
- function AnatolyIdentityModule() {
711
- }
712
- AnatolyIdentityModule.decorators = [
713
- { type: NgModule, args: [{
714
- imports: [],
715
- exports: [
716
- SignInButtonComponent,
717
- SignUpButtonComponent,
718
- SignOutButtonComponent
719
- ],
720
- declarations: [
721
- SignInButtonComponent,
722
- SignUpButtonComponent,
723
- SignOutButtonComponent
724
- ],
725
- providers: []
726
- },] }
727
- ];
728
- return AnatolyIdentityModule;
729
- }());
730
-
731
- /**
732
- * @fileoverview added by tsickle
733
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
734
- */
735
-
736
- /**
737
- * @fileoverview added by tsickle
738
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
739
- */
740
- var SubscribePlanButtonComponent = /** @class */ (function () {
741
- function SubscribePlanButtonComponent(appcontext) {
742
- this.appcontext = appcontext;
743
- this.contextUpdated = false;
744
- this.isUserSignedIn = false;
745
- this.currentPlan = 0;
746
- this.currentPlanTitle = "";
747
- this.requestedPlan = 0;
748
- this.requestedPlanTitle = "";
749
- }
750
- /**
751
- * @return {?}
752
- */
753
- SubscribePlanButtonComponent.prototype.ngOnInit = /**
754
- * @return {?}
755
- */
756
- function () {
757
- var _this = this;
758
- if (!this.appcontext.isUserSignedIn()) {
759
- this.contextUpdated = true;
760
- return;
761
- }
762
- this.appcontext.getCurrent((/**
763
- * @param {?} current
764
- * @return {?}
765
- */
766
- function (current) {
767
- _this.isUserSignedIn = current.isUserSignedIn;
768
- if (_this.isUserSignedIn) {
769
- _this.currentPlan = current.account.billingPlan;
770
- _this.currentPlanTitle = current.account.billingPlanAsString;
771
- _this.requestedPlan = current.account.requestedBillingPlan;
772
- _this.requestedPlanTitle = current.account.requestedBillingPlanAsString;
773
- }
774
- _this.contextUpdated = true;
775
- }));
776
- };
777
- SubscribePlanButtonComponent.decorators = [
778
- { type: Component, args: [{
779
- selector: 'anatoly-subscribe-plan-button',
780
- template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" *ngIf=\"requestedPlan != null && requestedPlan != 0 && plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <anatoly-upgrade-plan-button *ngIf=\"plan != currentPlan && plan != requestedPlan\"\r\n [currentplantitle]=\"currentPlanTitle\"\r\n [requestedplan]=plan\r\n [requestedplantitle]=\"plantitle\">\r\n </anatoly-upgrade-plan-button>\r\n </div>\r\n</div>\r\n"
781
- }] }
782
- ];
783
- /** @nocollapse */
784
- SubscribePlanButtonComponent.ctorParameters = function () { return [
785
- { type: AppContextService }
786
- ]; };
787
- SubscribePlanButtonComponent.propDecorators = {
788
- plan: [{ type: Input }],
789
- plantitle: [{ type: Input }]
790
- };
791
- return SubscribePlanButtonComponent;
792
- }());
793
- if (false) {
794
- /** @type {?} */
795
- SubscribePlanButtonComponent.prototype.contextUpdated;
796
- /** @type {?} */
797
- SubscribePlanButtonComponent.prototype.isUserSignedIn;
798
- /** @type {?} */
799
- SubscribePlanButtonComponent.prototype.currentPlan;
800
- /** @type {?} */
801
- SubscribePlanButtonComponent.prototype.currentPlanTitle;
802
- /** @type {?} */
803
- SubscribePlanButtonComponent.prototype.requestedPlan;
804
- /** @type {?} */
805
- SubscribePlanButtonComponent.prototype.requestedPlanTitle;
806
- /** @type {?} */
807
- SubscribePlanButtonComponent.prototype.plan;
808
- /** @type {?} */
809
- SubscribePlanButtonComponent.prototype.plantitle;
810
- /**
811
- * @type {?}
812
- * @private
813
- */
814
- SubscribePlanButtonComponent.prototype.appcontext;
815
- }
816
-
817
- /**
818
- * @fileoverview added by tsickle
819
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
820
- */
821
- var BaseBillingApiService = /** @class */ (function (_super) {
822
- __extends(BaseBillingApiService, _super);
823
- function BaseBillingApiService(http) {
824
- var _this = _super.call(this, http) || this;
825
- _this.http = http;
826
- _this.baseUrl += 'billing/';
827
- return _this;
828
- }
829
- /**
830
- * @param {?} requestedPlan
831
- * @param {?=} success
832
- * @param {?=} error
833
- * @return {?}
834
- */
835
- BaseBillingApiService.prototype.requestNewSubscription = /**
836
- * @param {?} requestedPlan
837
- * @param {?=} success
838
- * @param {?=} error
839
- * @return {?}
840
- */
841
- function (requestedPlan, success, error) {
842
- this.postQS('requestNewSubscription', { requestedPlan: requestedPlan })
843
- .subscribe((/**
844
- * @param {?} data
845
- * @return {?}
846
- */
847
- function (data) { }), (/**
848
- * @param {?} e
849
- * @return {?}
850
- */
851
- function (e) { if (error)
852
- error(); }), (/**
853
- * @return {?}
854
- */
855
- function () { if (success)
856
- success(); }));
857
- };
858
- /**
859
- * @param {?=} success
860
- * @param {?=} error
861
- * @return {?}
862
- */
863
- BaseBillingApiService.prototype.cancelRequestedSubscription = /**
864
- * @param {?=} success
865
- * @param {?=} error
866
- * @return {?}
867
- */
868
- function (success, error) {
869
- this.postQS('cancelRequestedSubscription', null)
870
- .subscribe((/**
871
- * @param {?} data
872
- * @return {?}
873
- */
874
- function (data) { }), (/**
875
- * @param {?} e
876
- * @return {?}
877
- */
878
- function (e) { if (error)
879
- error(); }), (/**
880
- * @return {?}
881
- */
882
- function () { if (success)
883
- success(); }));
884
- };
885
- /**
886
- * @param {?} requestedPlan
887
- * @param {?=} success
888
- * @param {?=} error
889
- * @return {?}
890
- */
891
- BaseBillingApiService.prototype.buyAccess = /**
892
- * @param {?} requestedPlan
893
- * @param {?=} success
894
- * @param {?=} error
895
- * @return {?}
896
- */
897
- function (requestedPlan, success, error) {
898
- this.postQS('buyAccess', { requestedPlan: requestedPlan })
899
- .subscribe((/**
900
- * @param {?} data
901
- * @return {?}
902
- */
903
- function (data) { }), (/**
904
- * @param {?} e
905
- * @return {?}
906
- */
907
- function (e) { if (error)
908
- error(); }), (/**
909
- * @return {?}
910
- */
911
- function () { if (success)
912
- success(); }));
913
- };
914
- BaseBillingApiService.decorators = [
915
- { type: Injectable }
916
- ];
917
- /** @nocollapse */
918
- BaseBillingApiService.ctorParameters = function () { return [
919
- { type: HttpClient }
920
- ]; };
921
- return BaseBillingApiService;
922
- }(BaseApiService));
923
- if (false) {
924
- /**
925
- * @type {?}
926
- * @protected
927
- */
928
- BaseBillingApiService.prototype.http;
929
- }
930
-
931
- /**
932
- * @fileoverview added by tsickle
933
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
934
- */
935
- var UpgradePlanButtonComponent = /** @class */ (function () {
936
- function UpgradePlanButtonComponent(api) {
937
- this.api = api;
938
- }
939
- /**
940
- * @return {?}
941
- */
942
- UpgradePlanButtonComponent.prototype.onUpgradePlan = /**
943
- * @return {?}
944
- */
945
- function () {
946
- /** @type {?} */
947
- var text = "Current plan: " + this.currentplantitle + " New plan: " + this.requestedplantitle;
948
- /** @type {?} */
949
- var that = this;
950
- osovitny.ui.areYouSure(text, 'Change billing plan', 'Confirm change', 'Cancel', (/**
951
- * @return {?}
952
- */
953
- function () {
954
- that.api.requestNewSubscription(that.requestedplan, (/**
955
- * @return {?}
956
- */
957
- function () {
958
- osovitny.ui.alertSuccess('Your request for changing plan has been sent.', null, (/**
959
- * @return {?}
960
- */
961
- function () {
962
- ((/** @type {?} */ (window))).location.reload();
963
- }));
964
- }));
965
- }));
966
- };
967
- UpgradePlanButtonComponent.decorators = [
968
- { type: Component, args: [{
969
- selector: 'anatoly-upgrade-plan-button',
970
- template: "<button class=\"btn btn-block btn-primary\" (click)=\"onUpgradePlan()\">\r\n Upgrade\r\n</button>\r\n"
971
- }] }
972
- ];
973
- /** @nocollapse */
974
- UpgradePlanButtonComponent.ctorParameters = function () { return [
975
- { type: BaseBillingApiService }
976
- ]; };
977
- UpgradePlanButtonComponent.propDecorators = {
978
- currentplantitle: [{ type: Input }],
979
- requestedplan: [{ type: Input }],
980
- requestedplantitle: [{ type: Input }]
981
- };
982
- return UpgradePlanButtonComponent;
983
- }());
984
- if (false) {
985
- /** @type {?} */
986
- UpgradePlanButtonComponent.prototype.currentplantitle;
987
- /** @type {?} */
988
- UpgradePlanButtonComponent.prototype.requestedplan;
989
- /** @type {?} */
990
- UpgradePlanButtonComponent.prototype.requestedplantitle;
991
- /**
992
- * @type {?}
993
- * @private
994
- */
995
- UpgradePlanButtonComponent.prototype.api;
996
- }
997
-
998
- /**
999
- * @fileoverview added by tsickle
1000
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1001
- */
1002
- var BuyAccessButtonComponent = /** @class */ (function () {
1003
- function BuyAccessButtonComponent(appcontext, api) {
1004
- this.appcontext = appcontext;
1005
- this.api = api;
1006
- this.contextUpdated = false;
1007
- this.isUserSignedIn = false;
1008
- this.currentPlan = 0;
1009
- this.currentPlanTitle = "";
1010
- }
1011
- /**
1012
- * @return {?}
1013
- */
1014
- BuyAccessButtonComponent.prototype.ngOnInit = /**
1015
- * @return {?}
1016
- */
1017
- function () {
1018
- var _this = this;
1019
- if (!this.appcontext.isUserSignedIn()) {
1020
- this.contextUpdated = true;
1021
- return;
1022
- }
1023
- this.appcontext.getCurrent((/**
1024
- * @param {?} current
1025
- * @return {?}
1026
- */
1027
- function (current) {
1028
- _this.isUserSignedIn = current.isUserSignedIn;
1029
- if (_this.isUserSignedIn) {
1030
- _this.currentPlan = current.account.billingPlan;
1031
- _this.currentPlanTitle = current.account.billingPlanAsString;
1032
- }
1033
- _this.contextUpdated = true;
1034
- }));
1035
- };
1036
- /**
1037
- * @return {?}
1038
- */
1039
- BuyAccessButtonComponent.prototype.onBuyPlan = /**
1040
- * @return {?}
1041
- */
1042
- function () {
1043
- /** @type {?} */
1044
- var text = "Requested plan: " + this.plantitle + " ";
1045
- /** @type {?} */
1046
- var that = this;
1047
- osovitny.ui.areYouSure(text, 'Buying access', 'Confirm change', 'Cancel', (/**
1048
- * @return {?}
1049
- */
1050
- function () {
1051
- that.api.buyAccess(that.plan, (/**
1052
- * @return {?}
1053
- */
1054
- function () {
1055
- osovitny.ui.alertSuccess('Access Granted', null, (/**
1056
- * @return {?}
1057
- */
1058
- function () {
1059
- ((/** @type {?} */ (window))).location.reload();
1060
- }));
1061
- }));
1062
- }));
1063
- };
1064
- BuyAccessButtonComponent.decorators = [
1065
- { type: Component, args: [{
1066
- selector: 'anatoly-buyaccess-button',
1067
- template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" *ngIf=\"plan != currentPlan && currentPlan == 1\" (click)=\"onBuyPlan()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n"
1068
- }] }
1069
- ];
1070
- /** @nocollapse */
1071
- BuyAccessButtonComponent.ctorParameters = function () { return [
1072
- { type: AppContextService },
1073
- { type: BaseBillingApiService }
1074
- ]; };
1075
- BuyAccessButtonComponent.propDecorators = {
1076
- plan: [{ type: Input }],
1077
- plantitle: [{ type: Input }]
1078
- };
1079
- return BuyAccessButtonComponent;
1080
- }());
1081
- if (false) {
1082
- /** @type {?} */
1083
- BuyAccessButtonComponent.prototype.contextUpdated;
1084
- /** @type {?} */
1085
- BuyAccessButtonComponent.prototype.isUserSignedIn;
1086
- /** @type {?} */
1087
- BuyAccessButtonComponent.prototype.currentPlan;
1088
- /** @type {?} */
1089
- BuyAccessButtonComponent.prototype.currentPlanTitle;
1090
- /** @type {?} */
1091
- BuyAccessButtonComponent.prototype.plan;
1092
- /** @type {?} */
1093
- BuyAccessButtonComponent.prototype.plantitle;
1094
- /**
1095
- * @type {?}
1096
- * @private
1097
- */
1098
- BuyAccessButtonComponent.prototype.appcontext;
1099
- /**
1100
- * @type {?}
1101
- * @private
1102
- */
1103
- BuyAccessButtonComponent.prototype.api;
1104
- }
1105
-
1106
- /**
1107
- * @fileoverview added by tsickle
1108
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1109
- */
1110
- var AnatolyBillingModule = /** @class */ (function () {
1111
- function AnatolyBillingModule() {
1112
- }
1113
- AnatolyBillingModule.decorators = [
1114
- { type: NgModule, args: [{
1115
- imports: [
1116
- CommonModule,
1117
- HttpClientModule,
1118
- HttpClientXsrfModule,
1119
- HttpClientJsonpModule,
1120
- AnatolyIdentityModule
1121
- ],
1122
- exports: [
1123
- CommonModule,
1124
- HttpClientModule,
1125
- HttpClientXsrfModule,
1126
- HttpClientJsonpModule,
1127
- SubscribePlanButtonComponent,
1128
- UpgradePlanButtonComponent,
1129
- BuyAccessButtonComponent
1130
- ],
1131
- declarations: [
1132
- SubscribePlanButtonComponent,
1133
- UpgradePlanButtonComponent,
1134
- BuyAccessButtonComponent
1135
- ],
1136
- providers: [
1137
- BaseBillingApiService
1138
- ]
1139
- },] }
1140
- ];
1141
- return AnatolyBillingModule;
1142
- }());
1143
-
1144
- /**
1145
- * @fileoverview added by tsickle
1146
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1147
- */
1148
-
1149
- /**
1150
- * @fileoverview added by tsickle
1151
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1152
- */
1153
- /*
1154
- <file>
1155
- Authors:
1156
- Vadim Osovitny
1157
-
1158
- Created:
1159
- 28 Aug 2018
1160
-
1161
- Version:
1162
- 1.0
1163
-
1164
- Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.
1165
- </file>
1166
- */
1167
- var BaseComponent = /** @class */ (function () {
1168
- function BaseComponent() {
1169
- }
1170
- /**
1171
- * @return {?}
1172
- */
1173
- BaseComponent.prototype.getQSId = /**
1174
- * @return {?}
1175
- */
1176
- function () {
1177
- /** @type {?} */
1178
- var id = osovitny.utils.getValueByNameInQS("id");
1179
- if (typeof id === 'undefined' || id == '')
1180
- return null;
1181
- return id;
1182
- };
1183
- /**
1184
- * @return {?}
1185
- */
1186
- BaseComponent.prototype.showLoading = /**
1187
- * @return {?}
1188
- */
1189
- function () {
1190
- /** @type {?} */
1191
- var panelLoading = $('#pnlLoading');
1192
- panelLoading.show();
1193
- };
1194
- /**
1195
- * @return {?}
1196
- */
1197
- BaseComponent.prototype.hideLoading = /**
1198
- * @return {?}
1199
- */
1200
- function () {
1201
- /** @type {?} */
1202
- var panelLoading = $('#pnlLoading');
1203
- panelLoading.hide();
1204
- };
1205
- /**
1206
- * @param {?} e
1207
- * @return {?}
1208
- */
1209
- BaseComponent.prototype.handleError = /**
1210
- * @param {?} e
1211
- * @return {?}
1212
- */
1213
- function (e) {
1214
- this.hideLoading();
1215
- osovitny.ui.errorOccurred();
1216
- };
1217
- return BaseComponent;
1218
- }());
1219
-
1220
- /**
1221
- * @fileoverview added by tsickle
1222
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1223
- */
1224
- var BaseEditComponent = /** @class */ (function (_super) {
1225
- __extends(BaseEditComponent, _super);
1226
- function BaseEditComponent() {
1227
- var _this = _super.call(this) || this;
1228
- _this.formSubmitted = false;
1229
- return _this;
1230
- }
1231
- /**
1232
- * @return {?}
1233
- */
1234
- BaseEditComponent.prototype.isActionAdding = /**
1235
- * @return {?}
1236
- */
1237
- function () {
1238
- /** @type {?} */
1239
- var id = osovitny.utils.getValueByNameInQS("id");
1240
- if (typeof id === 'undefined' || id == '')
1241
- return true;
1242
- return false;
1243
- };
1244
- /**
1245
- * @return {?}
1246
- */
1247
- BaseEditComponent.prototype.getEntityId = /**
1248
- * @return {?}
1249
- */
1250
- function () {
1251
- return this.getQSId();
1252
- };
1253
- /**
1254
- * @param {?} name
1255
- * @return {?}
1256
- */
1257
- BaseEditComponent.prototype.isItemInvalid = /**
1258
- * @param {?} name
1259
- * @return {?}
1260
- */
1261
- function (name) {
1262
- if (typeof name === 'undefined' || name == '') {
1263
- return false;
1264
- }
1265
- if (this.formGroup.get(name)) {
1266
- return (this.formSubmitted && this.formGroup.get(name).invalid) ||
1267
- (this.formGroup.get(name).touched && this.formGroup.get(name).invalid);
1268
- }
1269
- return false;
1270
- };
1271
- /**
1272
- * @param {?} name
1273
- * @return {?}
1274
- */
1275
- BaseEditComponent.prototype.getFormValue = /**
1276
- * @param {?} name
1277
- * @return {?}
1278
- */
1279
- function (name) {
1280
- return this.formGroup.controls[name].value;
1281
- };
1282
- /**
1283
- * @param {?} name
1284
- * @param {?} value
1285
- * @return {?}
1286
- */
1287
- BaseEditComponent.prototype.setFormValue = /**
1288
- * @param {?} name
1289
- * @param {?} value
1290
- * @return {?}
1291
- */
1292
- function (name, value) {
1293
- this.formGroup.controls[name].setValue(value);
1294
- };
1295
- /**
1296
- * @param {?} groupName
1297
- * @param {?} name
1298
- * @return {?}
1299
- */
1300
- BaseEditComponent.prototype.getFormGroupValue = /**
1301
- * @param {?} groupName
1302
- * @param {?} name
1303
- * @return {?}
1304
- */
1305
- function (groupName, name) {
1306
- return this.formGroup.controls[groupName].get(name).value;
1307
- };
1308
- /**
1309
- * @param {?} groupName
1310
- * @param {?} name
1311
- * @param {?} value
1312
- * @return {?}
1313
- */
1314
- BaseEditComponent.prototype.setFormGroupValue = /**
1315
- * @param {?} groupName
1316
- * @param {?} name
1317
- * @param {?} value
1318
- * @return {?}
1319
- */
1320
- function (groupName, name, value) {
1321
- this.formGroup.controls[groupName].get(name).setValue(value);
1322
- };
1323
- BaseEditComponent.propDecorators = {
1324
- formGroup: [{ type: Input }],
1325
- formSubmitted: [{ type: Input }]
1326
- };
1327
- return BaseEditComponent;
1328
- }(BaseComponent));
1329
- if (false) {
1330
- /** @type {?} */
1331
- BaseEditComponent.prototype.formGroup;
1332
- /** @type {?} */
1333
- BaseEditComponent.prototype.formSubmitted;
1334
- }
1335
-
1336
- /**
1337
- * @fileoverview added by tsickle
1338
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1339
- */
1340
- var ValidationSummaryComponent = /** @class */ (function (_super) {
1341
- __extends(ValidationSummaryComponent, _super);
1342
- function ValidationSummaryComponent() {
1343
- return _super.call(this) || this;
1344
- }
1345
- /**
1346
- * @return {?}
1347
- */
1348
- ValidationSummaryComponent.prototype.getFormValidationMessages = /**
1349
- * @return {?}
1350
- */
1351
- function () {
1352
- var _this = this;
1353
- /** @type {?} */
1354
- var messages = [];
1355
- Object.keys(this.formGroup.controls).forEach((/**
1356
- * @param {?} k
1357
- * @return {?}
1358
- */
1359
- function (k) {
1360
- /** @type {?} */
1361
- var control = _this.formGroup.controls[k];
1362
- if (((/** @type {?} */ (control))).controls != null) {
1363
- Object.keys(((/** @type {?} */ (control))).controls).forEach((/**
1364
- * @param {?} k
1365
- * @return {?}
1366
- */
1367
- function (k) {
1368
- /** @type {?} */
1369
- var child = ((/** @type {?} */ (control))).controls[k];
1370
- _this.getValidationMessages(child, k).forEach((/**
1371
- * @param {?} m
1372
- * @return {?}
1373
- */
1374
- function (m) { return messages.push(m); }));
1375
- }));
1376
- }
1377
- else {
1378
- _this.getValidationMessages(control, k).forEach((/**
1379
- * @param {?} m
1380
- * @return {?}
1381
- */
1382
- function (m) { return messages.push(m); }));
1383
- }
1384
- }));
1385
- return messages;
1386
- };
1387
- /**
1388
- * @param {?} state
1389
- * @param {?=} thingName
1390
- * @return {?}
1391
- */
1392
- ValidationSummaryComponent.prototype.getValidationMessages = /**
1393
- * @param {?} state
1394
- * @param {?=} thingName
1395
- * @return {?}
1396
- */
1397
- function (state, thingName) {
1398
- /** @type {?} */
1399
- var thing = state.path || thingName;
1400
- /** @type {?} */
1401
- var messages = [];
1402
- if (state.errors) {
1403
- for (var errorName in state.errors) {
1404
- if (state.errors.hasOwnProperty(errorName)) {
1405
- switch (errorName) {
1406
- case 'required':
1407
- messages.push(thing + " is required");
1408
- break;
1409
- case 'minlength':
1410
- messages.push(thing + " must be at least " + state.errors['minlength'].requiredLength + " characters");
1411
- break;
1412
- case 'pattern':
1413
- messages.push(thing + " contains illegal characters");
1414
- break;
1415
- }
1416
- }
1417
- }
1418
- }
1419
- return messages;
1420
- };
1421
- return ValidationSummaryComponent;
1422
- }(BaseEditComponent));
1423
-
1424
- /**
1425
- * @fileoverview added by tsickle
1426
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1427
- */
1428
- var FormValidationSummaryComponent = /** @class */ (function (_super) {
1429
- __extends(FormValidationSummaryComponent, _super);
1430
- function FormValidationSummaryComponent() {
1431
- var _this = _super.call(this) || this;
1432
- _this.visible = false;
1433
- return _this;
1434
- }
1435
- /**
1436
- * @return {?}
1437
- */
1438
- FormValidationSummaryComponent.prototype.getErrors = /**
1439
- * @return {?}
1440
- */
1441
- function () {
1442
- /** @type {?} */
1443
- var messages = this.getFormValidationMessages();
1444
- return messages;
1445
- };
1446
- FormValidationSummaryComponent.decorators = [
1447
- { type: Component, args: [{
1448
- selector: 'anatoly-form-validation-summary',
1449
- template: "<div class=\"callout callout-danger\" *ngIf=\"visible\">\r\n <h4 class=\"box-title\">There are problems with the form</h4>\r\n <p *ngFor=\"let error of getErrors()\"><span class=\"help-block \" style=\"color:white\">{{error}}</span></p>\r\n</div>\r\n"
1450
- }] }
1451
- ];
1452
- /** @nocollapse */
1453
- FormValidationSummaryComponent.ctorParameters = function () { return []; };
1454
- FormValidationSummaryComponent.propDecorators = {
1455
- visible: [{ type: Input }]
1456
- };
1457
- return FormValidationSummaryComponent;
1458
- }(ValidationSummaryComponent));
1459
- if (false) {
1460
- /** @type {?} */
1461
- FormValidationSummaryComponent.prototype.visible;
1462
- }
1463
-
1464
- /**
1465
- * @fileoverview added by tsickle
1466
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1467
- */
1468
- var ItemValidationSummaryComponent = /** @class */ (function (_super) {
1469
- __extends(ItemValidationSummaryComponent, _super);
1470
- function ItemValidationSummaryComponent() {
1471
- return _super.call(this) || this;
1472
- }
1473
- ItemValidationSummaryComponent.decorators = [
1474
- { type: Component, args: [{
1475
- selector: 'anatoly-item-validation-summary',
1476
- template: "<ul class=\"list-unstyled\" *ngIf=\"isItemInvalid(key)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(key), title)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>"
1477
- }] }
1478
- ];
1479
- /** @nocollapse */
1480
- ItemValidationSummaryComponent.ctorParameters = function () { return []; };
1481
- ItemValidationSummaryComponent.propDecorators = {
1482
- key: [{ type: Input }],
1483
- title: [{ type: Input }]
1484
- };
1485
- return ItemValidationSummaryComponent;
1486
- }(ValidationSummaryComponent));
1487
- if (false) {
1488
- /** @type {?} */
1489
- ItemValidationSummaryComponent.prototype.key;
1490
- /** @type {?} */
1491
- ItemValidationSummaryComponent.prototype.title;
1492
- }
1493
-
1494
- /**
1495
- * @fileoverview added by tsickle
1496
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1497
- */
1498
- var HtmlEditorComponent = /** @class */ (function (_super) {
1499
- __extends(HtmlEditorComponent, _super);
1500
- function HtmlEditorComponent() {
1501
- var _this = _super !== null && _super.apply(this, arguments) || this;
1502
- _this._defaultEditorOptions = {
1503
- placeholderText: 'Edit Your Content Here',
1504
- charCounterCount: true,
1505
- heightMin: 100,
1506
- toolbarInline: false,
1507
- toolbarButtons: [
1508
- 'fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', '|',
1509
- 'fontFamily', 'fontSize', 'color', 'inlineStyle', 'paragraphStyle', '|',
1510
- 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', '-',
1511
- 'insertLink', 'insertImage', 'insertTable', '|',
1512
- 'emoticons', 'specialCharacters', 'insertHR', 'selectAll', 'clearFormatting', '|',
1513
- 'print', 'help', 'html', '|', 'undo', 'redo'
1514
- ],
1515
- /*
1516
- Upload:
1517
- https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload
1518
- */
1519
- imageUploadURL: '/api/HtmlEditor/UploadImage',
1520
- imageAllowedTypes: ['jpeg', 'jpg', 'png'],
1521
- imageUploadParams: { uploadType: '', uploadParentId: '' },
1522
- //Events
1523
- events: {
1524
- 'image.beforeUpload': (/**
1525
- * @param {?} images
1526
- * @return {?}
1527
- */
1528
- function (images) {
1529
- /** @type {?} */
1530
- var editor = this;
1531
- alert("v3 image.beforeUpload editor.opts.imageUploadParams.uploadType" + editor.opts.imageUploadParams.uploadType);
1532
- })
1533
- }
1534
- };
1535
- _this._editorInitialized = false;
1536
- //General params
1537
- _this.editorId = '';
1538
- _this.editorLabelText = 'Html';
1539
- _this.editorOptions = {};
1540
- //Form based params
1541
- _this.isFormBased = '1';
1542
- _this.editorFormKey = 'html';
1543
- return _this;
1544
- }
1545
- /**
1546
- * @return {?}
1547
- */
1548
- HtmlEditorComponent.prototype.ngOnInit = /**
1549
- * @return {?}
1550
- */
1551
- function () {
1552
- /** @type {?} */
1553
- var opt = this.editorOptions;
1554
- if (typeof this.editorOptions == "string") {
1555
- opt = JSON.parse(this.editorOptions);
1556
- }
1557
- /** @type {?} */
1558
- var newOptions = $.extend({}, this._defaultEditorOptions, opt);
1559
- /** @type {?} */
1560
- var key = ((/** @type {?} */ (window))).__froalaEditor_Key;
1561
- if (key) {
1562
- newOptions = $.extend({}, JSON.parse('{ "key": "' + key + '" }'), newOptions);
1563
- }
1564
- this.options = newOptions;
1565
- };
1566
- /**
1567
- * @return {?}
1568
- */
1569
- HtmlEditorComponent.prototype.ngAfterViewInit = /**
1570
- * @return {?}
1571
- */
1572
- function () {
1573
- this.initializeEditor();
1574
- };
1575
- /**
1576
- * @param {?} control
1577
- * @return {?}
1578
- */
1579
- HtmlEditorComponent.prototype.initializeControl = /**
1580
- * @param {?} control
1581
- * @return {?}
1582
- */
1583
- function (control) {
1584
- this._control = control;
1585
- };
1586
- /**
1587
- * @private
1588
- * @return {?}
1589
- */
1590
- HtmlEditorComponent.prototype.initializeEditor = /**
1591
- * @private
1592
- * @return {?}
1593
- */
1594
- function () {
1595
- if (this._editorInitialized) {
1596
- return;
1597
- }
1598
- if (this._control) {
1599
- this._control.initialize();
1600
- //v2 BEGIN
1601
- /** @type {?} */
1602
- var jQueryEditor = this.getJQueryEditor();
1603
- /** @type {?} */
1604
- var that = this;
1605
- jQueryEditor.on('froalaEditor.image.beforeUpload', (/**
1606
- * @param {?} e
1607
- * @param {?} editor
1608
- * @param {?} images
1609
- * @return {?}
1610
- */
1611
- function (e, editor, images) {
1612
- /** @type {?} */
1613
- var options = that.options;
1614
- editor.opts.imageUploadParams.uploadType = options.imageUploadParams.uploadType;
1615
- editor.opts.imageUploadParams.uploadParentId = options.imageUploadParams.uploadParentId;
1616
- }));
1617
- //v2 END
1618
- this._editorInitialized = true;
1619
- }
1620
- };
1621
- /**
1622
- * @private
1623
- * @return {?}
1624
- */
1625
- HtmlEditorComponent.prototype.getJQueryEditor = /**
1626
- * @private
1627
- * @return {?}
1628
- */
1629
- function () {
1630
- /** @type {?} */
1631
- var jQueryEditor = $('.htmleditor-' + this.editorId);
1632
- return jQueryEditor;
1633
- };
1634
- /**
1635
- * @private
1636
- * @return {?}
1637
- */
1638
- HtmlEditorComponent.prototype.getEditor = /**
1639
- * @private
1640
- * @return {?}
1641
- */
1642
- function () {
1643
- if (this._control)
1644
- return this._control.getEditor();
1645
- return null;
1646
- };
1647
- //Public Funcs
1648
- //Public Funcs
1649
- /**
1650
- * @param {?} uploadType
1651
- * @param {?} uploadParentId
1652
- * @return {?}
1653
- */
1654
- HtmlEditorComponent.prototype.setUploadParams =
1655
- //Public Funcs
1656
- /**
1657
- * @param {?} uploadType
1658
- * @param {?} uploadParentId
1659
- * @return {?}
1660
- */
1661
- function (uploadType, uploadParentId) {
1662
- /** @type {?} */
1663
- var that = this;
1664
- /** @type {?} */
1665
- var timeOut = 1000;
1666
- if (this._editorInitialized) {
1667
- timeOut = 0;
1668
- }
1669
- setTimeout((/**
1670
- * @return {?}
1671
- */
1672
- function () {
1673
- /** @type {?} */
1674
- var newOptions = { imageUploadParams: { uploadType: '', uploadParentId: '' } };
1675
- newOptions.imageUploadParams.uploadType = uploadType;
1676
- newOptions.imageUploadParams.uploadParentId = uploadParentId;
1677
- that.options = $.extend({}, that.options, newOptions);
1678
- }), timeOut);
1679
- };
1680
- /**
1681
- * @param {?} content
1682
- * @return {?}
1683
- */
1684
- HtmlEditorComponent.prototype.setHtml = /**
1685
- * @param {?} content
1686
- * @return {?}
1687
- */
1688
- function (content) {
1689
- if (this.isFormBased == "1") {
1690
- return;
1691
- }
1692
- this.initializeEditor();
1693
- //v2
1694
- /** @type {?} */
1695
- var editor = this.getJQueryEditor();
1696
- if (typeof (editor) == "undefined" || editor == null) {
1697
- return;
1698
- }
1699
- editor.froalaEditor('html.set', content);
1700
- /*
1701
- //v3
1702
- var editor = this.getEditor();
1703
- if (typeof (editor) == "undefined" || editor == null) {
1704
- return;
1705
- }
1706
-
1707
- editor.html.set(content);
1708
- */
1709
- };
1710
- /**
1711
- * @return {?}
1712
- */
1713
- HtmlEditorComponent.prototype.getHtml = /**
1714
- * @return {?}
1715
- */
1716
- function () {
1717
- if (this.isFormBased == "1") {
1718
- return;
1719
- }
1720
- //v2
1721
- /** @type {?} */
1722
- var editor = this.getJQueryEditor();
1723
- if (typeof (editor) == "undefined" || editor == null) {
1724
- return "";
1725
- }
1726
- return editor.froalaEditor('html.get');
1727
- /*
1728
- //v3
1729
- var editor = this.getEditor();
1730
- if (typeof (editor) == "undefined" || editor == null) {
1731
- return "";
1732
- }
1733
-
1734
- return editor.html.get(false);
1735
- */
1736
- };
1737
- HtmlEditorComponent.decorators = [
1738
- { type: Component, args: [{
1739
- selector: 'anatoly-html-editor',
1740
- template: "<div [ngSwitch]=\"isFormBased\">\r\n <ng-template ngSwitchCase=\"0\">\r\n <label>{{ editorLabelText }}</label>\r\n <textarea id=\"htmleditor-{{editorId}}\" class=\"htmleditor-{{editorId}}\" \r\n [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\">\r\n </textarea>\r\n </ng-template>\r\n\r\n <ng-template ngSwitchCase=\"1\">\r\n <div [formGroup]=\"formGroup\">\r\n <div class=\"form-group\" [ngClass]=\"{'has-error': isItemInvalid(editorFormKey) }\">\r\n <label class=\"control-label\">{{ editorLabelText }}</label>\r\n <textarea id=\"htmleditor-{{editorId}}\" class=\"htmleditor-{{editorId}}\"\r\n [formControlName]=\"editorFormKey\"\r\n [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\">\r\n </textarea>\r\n <anatoly-item-validation-summary [formGroup]=\"formGroup\"\r\n [formSubmitted]=\"formSubmitted\"\r\n [key]=\"editorFormKey\"\r\n [title]=\"editorLabelText\">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n"
1741
- }] }
1742
- ];
1743
- HtmlEditorComponent.propDecorators = {
1744
- editorId: [{ type: Input }],
1745
- editorLabelText: [{ type: Input }],
1746
- editorOptions: [{ type: Input }],
1747
- isFormBased: [{ type: Input }],
1748
- editorFormKey: [{ type: Input }]
1749
- };
1750
- return HtmlEditorComponent;
1751
- }(BaseEditComponent));
1752
- if (false) {
1753
- /**
1754
- * @type {?}
1755
- * @private
1756
- */
1757
- HtmlEditorComponent.prototype._defaultEditorOptions;
1758
- /**
1759
- * @type {?}
1760
- * @private
1761
- */
1762
- HtmlEditorComponent.prototype._control;
1763
- /**
1764
- * @type {?}
1765
- * @private
1766
- */
1767
- HtmlEditorComponent.prototype._editorInitialized;
1768
- /** @type {?} */
1769
- HtmlEditorComponent.prototype.options;
1770
- /** @type {?} */
1771
- HtmlEditorComponent.prototype.editorId;
1772
- /** @type {?} */
1773
- HtmlEditorComponent.prototype.editorLabelText;
1774
- /** @type {?} */
1775
- HtmlEditorComponent.prototype.editorOptions;
1776
- /** @type {?} */
1777
- HtmlEditorComponent.prototype.isFormBased;
1778
- /** @type {?} */
1779
- HtmlEditorComponent.prototype.editorFormKey;
1780
- }
1781
-
1782
- /**
1783
- * @fileoverview added by tsickle
1784
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1785
- */
1786
- var ContentHeaderComponent = /** @class */ (function () {
1787
- function ContentHeaderComponent() {
1788
- }
1789
- /**
1790
- * @return {?}
1791
- */
1792
- ContentHeaderComponent.prototype.ngOnInit = /**
1793
- * @return {?}
1794
- */
1795
- function () {
1796
- if (this.title == null) {
1797
- this.title = '';
1798
- }
1799
- };
1800
- ContentHeaderComponent.decorators = [
1801
- { type: Component, args: [{
1802
- selector: 'anatoly-content-header',
1803
- template: "<h2 class=\"page-header\">\r\n {{title}}\r\n <!--<small>Optional {{title}}</small>-->\r\n</h2>\r\n"
1804
- }] }
1805
- ];
1806
- ContentHeaderComponent.propDecorators = {
1807
- title: [{ type: Input }]
1808
- };
1809
- return ContentHeaderComponent;
1810
- }());
1811
- if (false) {
1812
- /** @type {?} */
1813
- ContentHeaderComponent.prototype.title;
1814
- }
1815
-
1816
- /**
1817
- * @fileoverview added by tsickle
1818
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1819
- */
1820
- var AnatolyUIModule = /** @class */ (function () {
1821
- function AnatolyUIModule() {
1822
- }
1823
- AnatolyUIModule.decorators = [
1824
- { type: NgModule, args: [{
1825
- imports: [
1826
- CommonModule,
1827
- ReactiveFormsModule,
1828
- FormsModule,
1829
- HttpClientModule,
1830
- HttpClientXsrfModule,
1831
- HttpClientJsonpModule,
1832
- FroalaEditorModule.forRoot(),
1833
- FroalaViewModule.forRoot(),
1834
- GridModule,
1835
- PopupModule,
1836
- ButtonsModule,
1837
- DropDownsModule
1838
- ],
1839
- exports: [
1840
- CommonModule,
1841
- HttpClientModule,
1842
- HttpClientXsrfModule,
1843
- HttpClientJsonpModule,
1844
- ItemValidationSummaryComponent,
1845
- FormValidationSummaryComponent,
1846
- HtmlEditorComponent,
1847
- ContentHeaderComponent
1848
- ],
1849
- declarations: [
1850
- ItemValidationSummaryComponent,
1851
- FormValidationSummaryComponent,
1852
- HtmlEditorComponent,
1853
- ContentHeaderComponent
1854
- ],
1855
- providers: []
1856
- },] }
1857
- ];
1858
- return AnatolyUIModule;
1859
- }());
1860
-
1861
- /**
1862
- * @fileoverview added by tsickle
1863
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1864
- */
1865
-
1866
- /**
1867
- * @fileoverview added by tsickle
1868
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1869
- */
1870
-
1871
- /**
1872
- * @fileoverview added by tsickle
1873
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1874
- */
1875
-
1876
- export { AnatolyBillingModule, AnatolyCoreModule, AnatolyIdentityModule, AnatolyUIModule, AppContextService, BaseApiService, BaseComponent, BaseEditComponent, BaseGoService, BaseGridEditService, HtmlEditorComponent };
1877
- //# sourceMappingURL=osovitny-anatoly.js.map