@osovitny/anatoly 2.14.41 → 2.14.43

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.
@@ -2224,222 +2224,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
2224
2224
  </file>
2225
2225
  */
2226
2226
 
2227
- /*
2228
- <file>
2229
- Project:
2230
- @osovitny/anatoly
2231
-
2232
- Authors:
2233
- Vadim Osovitny
2234
- Anatoly Osovitny
2235
-
2236
- Created:
2237
- 28 Aug 2018
2238
-
2239
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2240
- </file>
2241
- */
2242
- class BaseComponent {
2243
- constructor() {
2244
- this.subs = new Subs();
2245
- //Component Data => usually loading from API
2246
- this.dataLoading = true;
2247
- this.dataLoaded = false;
2248
- this.dataFound = false;
2249
- }
2250
- getQSId() {
2251
- let id = Utils.getValueByNameInQS("id");
2252
- if (typeof id === "undefined" || id == "")
2253
- return null;
2254
- return id;
2255
- }
2256
- ngOnDestroy() {
2257
- this.subs.unsubscribe();
2258
- }
2259
- }
2260
- BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2261
- BaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true });
2262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseComponent, decorators: [{
2263
- type: Component,
2264
- args: [{
2265
- template: ''
2266
- }]
2267
- }] });
2268
-
2269
- /*
2270
- <file>
2271
- Project:
2272
- @osovitny/anatoly
2273
-
2274
- Authors:
2275
- Vadim Osovitny
2276
- Anatoly Osovitny
2277
-
2278
- Created:
2279
- 20 Nov 2017
2280
-
2281
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2282
- </file>
2283
- */
2284
- class BaseEditComponent extends BaseComponent {
2285
- constructor() {
2286
- super();
2287
- this.formSubmitted = false;
2288
- }
2289
- isActionAdding() {
2290
- let id = Utils.getValueByNameInQS("id");
2291
- return typeof id === "undefined" || id == "";
2292
- }
2293
- getEntityId() {
2294
- return this.getQSId();
2295
- }
2296
- isControlValid(name, frmGroup = null) {
2297
- return !this.isControlInvalid(name, frmGroup);
2298
- }
2299
- isControlInvalid(name, frmGroup = null) {
2300
- if (typeof name === "undefined" || name == "") {
2301
- return false;
2302
- }
2303
- let fg = frmGroup ? frmGroup : this.formGroup;
2304
- if (!fg) {
2305
- return false;
2306
- }
2307
- if (fg.get(name)) {
2308
- return ((this.formSubmitted && fg.get(name).invalid) ||
2309
- (fg.get(name).touched && fg.get(name).invalid));
2310
- }
2311
- return false;
2312
- }
2313
- //FormGroup functions
2314
- getFormValue(name, frmGroup = null) {
2315
- let fg = frmGroup ? frmGroup : this.formGroup;
2316
- return fg.controls[name].value;
2317
- }
2318
- setFormValue(name, value, frmGroup = null) {
2319
- let fg = frmGroup ? frmGroup : this.formGroup;
2320
- fg.controls[name].setValue(value);
2321
- }
2322
- getFormGroupValue(groupName, name, frmGroup = null) {
2323
- let fg = frmGroup ? frmGroup : this.formGroup;
2324
- return fg.controls[groupName].get(name).value;
2325
- }
2326
- setFormGroupValue(groupName, name, value, frmGroup = null) {
2327
- let fg = frmGroup ? frmGroup : this.formGroup;
2328
- fg.controls[groupName].get(name).setValue(value);
2329
- }
2330
- /**
2331
- * Add control to form group
2332
- * @param name
2333
- * @param formControl
2334
- * @param frmGroup
2335
- */
2336
- addControl(name, formControl, frmGroup = null) {
2337
- let fg = frmGroup ? frmGroup : this.formGroup;
2338
- fg.addControl(name, formControl);
2339
- }
2340
- /**
2341
- * Removes control from form group
2342
- * @param name
2343
- * @param frmGroup
2344
- */
2345
- removeControl(name, frmGroup = null) {
2346
- let fg = frmGroup ? frmGroup : this.formGroup;
2347
- if (fg.get(name)) {
2348
- fg.removeControl(name);
2349
- }
2350
- }
2351
- /**
2352
- * return new form control
2353
- * @param formState
2354
- * @param validatorOrOpts
2355
- * @param asyncValidator
2356
- */
2357
- createFormControl(formState, validatorOrOpts, asyncValidator) {
2358
- return new FormControl(formState, validatorOrOpts, asyncValidator);
2359
- }
2360
- /**
2361
- * Set error to control
2362
- * @param controlName formControl name
2363
- * @param err error expect {erroname: boolean} format
2364
- * @param frmGroup
2365
- */
2366
- setControlError(controlName, err, frmGroup = null) {
2367
- var _a;
2368
- let fg = frmGroup ? frmGroup : this.formGroup;
2369
- (_a = fg.get(controlName)) === null || _a === void 0 ? void 0 : _a.setErrors(err);
2370
- }
2371
- /**
2372
- * Set {invalid: true} for the specified form
2373
- * @param controlName form control name
2374
- * @param frmGroup
2375
- */
2376
- setInValidError(controlName, frmGroup = null) {
2377
- var _a;
2378
- let fg = frmGroup ? frmGroup : this.formGroup;
2379
- (_a = fg.get(controlName)) === null || _a === void 0 ? void 0 : _a.setErrors({ invalid: true });
2380
- }
2381
- /**
2382
- * returns formgroup controls.
2383
- * main use case is used in html pages
2384
- */
2385
- get fc() {
2386
- return this.formGroup.controls;
2387
- }
2388
- }
2389
- BaseEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2390
- BaseEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseEditComponent, selector: "ng-component", inputs: { formGroup: "formGroup", formSubmitted: "formSubmitted" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
2391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseEditComponent, decorators: [{
2392
- type: Component,
2393
- args: [{
2394
- template: ''
2395
- }]
2396
- }], ctorParameters: function () { return []; }, propDecorators: { formGroup: [{
2397
- type: Input
2398
- }], formSubmitted: [{
2399
- type: Input
2400
- }] } });
2401
-
2402
- /*
2403
- <file>
2404
- Project:
2405
- @osovitny/anatoly
2406
-
2407
- Authors:
2408
- Vadim Osovitny
2409
- Anatoly Osovitny
2410
-
2411
- Created:
2412
- 24 Jan 2022
2413
-
2414
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2415
- </file>
2416
- */
2417
- class BaseDialog extends BaseEditComponent {
2418
- constructor() {
2419
- super();
2420
- this._opened = false;
2421
- }
2422
- get opened() {
2423
- return this._opened;
2424
- }
2425
- open() {
2426
- this._opened = true;
2427
- }
2428
- close() {
2429
- this._opened = false;
2430
- }
2431
- }
2432
- BaseDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
2433
- BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
2434
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, decorators: [{
2435
- type: Component,
2436
- args: [{
2437
- template: ''
2438
- }]
2439
- }], ctorParameters: function () { return []; }, propDecorators: { opened: [{
2440
- type: Input
2441
- }] } });
2442
-
2443
2227
  /*
2444
2228
  <file>
2445
2229
  Project:
@@ -2489,7 +2273,7 @@ class BuyAccessButtonComponent {
2489
2273
  this.currentPlan = -1;
2490
2274
  this.currentPlanTitle = '';
2491
2275
  this.visibleIfUserSignedIn = false;
2492
- this.buy = new EventEmitter();
2276
+ this.planselect = new EventEmitter();
2493
2277
  }
2494
2278
  ngOnInit() {
2495
2279
  this.appContext.getCurrent((current) => {
@@ -2502,22 +2286,22 @@ class BuyAccessButtonComponent {
2502
2286
  });
2503
2287
  }
2504
2288
  //Events
2505
- onBuyAccess() {
2506
- this.buy.emit(this.plan);
2289
+ onPlanSelect() {
2290
+ this.planselect.emit(this.plan);
2507
2291
  }
2508
2292
  }
2509
2293
  BuyAccessButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BuyAccessButtonComponent, deps: [{ token: AppContextService }], target: i0.ɵɵFactoryTarget.Component });
2510
- BuyAccessButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BuyAccessButtonComponent, selector: "anatoly-buyaccess-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { buy: "buy" }, ngImport: i0, 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"onBuyAccess()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
2294
+ BuyAccessButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BuyAccessButtonComponent, selector: "anatoly-buyaccess-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, ngImport: i0, 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"onPlanSelect()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
2511
2295
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BuyAccessButtonComponent, decorators: [{
2512
2296
  type: Component,
2513
- args: [{ selector: 'anatoly-buyaccess-button', 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"onBuyAccess()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n" }]
2297
+ args: [{ selector: 'anatoly-buyaccess-button', 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && currentPlan == 1\" \r\n (click)=\"onPlanSelect()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n" }]
2514
2298
  }], ctorParameters: function () { return [{ type: AppContextService }]; }, propDecorators: { plan: [{
2515
2299
  type: Input
2516
2300
  }], planTitle: [{
2517
2301
  type: Input
2518
2302
  }], visibleIfUserSignedIn: [{
2519
2303
  type: Input
2520
- }], buy: [{
2304
+ }], planselect: [{
2521
2305
  type: Output
2522
2306
  }] } });
2523
2307
 
@@ -2546,7 +2330,7 @@ class SubscribePlanButtonComponent {
2546
2330
  this.requestedPlan = -1;
2547
2331
  this.requestedPlanTitle = "";
2548
2332
  this.visibleIfUserSignedIn = false;
2549
- this.subscribe = new EventEmitter();
2333
+ this.planselect = new EventEmitter();
2550
2334
  }
2551
2335
  ngOnInit() {
2552
2336
  this.appContext.getCurrent((current) => {
@@ -2561,25 +2345,176 @@ class SubscribePlanButtonComponent {
2561
2345
  });
2562
2346
  }
2563
2347
  //Events
2564
- onSubscribe() {
2565
- this.subscribe.emit(this.plan);
2348
+ onPlanSelect() {
2349
+ this.planselect.emit(this.plan);
2566
2350
  }
2567
2351
  }
2568
2352
  SubscribePlanButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SubscribePlanButtonComponent, deps: [{ token: AppContextService }], target: i0.ɵɵFactoryTarget.Component });
2569
- SubscribePlanButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: SubscribePlanButtonComponent, selector: "anatoly-subscribe-plan-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { subscribe: "subscribe" }, ngImport: i0, 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"onSubscribe()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
2353
+ SubscribePlanButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: SubscribePlanButtonComponent, selector: "anatoly-subscribe-plan-button", inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, ngImport: i0, 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"onPlanSelect()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
2570
2354
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SubscribePlanButtonComponent, decorators: [{
2571
2355
  type: Component,
2572
- args: [{ selector: "anatoly-subscribe-plan-button", 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"onSubscribe()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n" }]
2356
+ args: [{ selector: "anatoly-subscribe-plan-button", 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 && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" \r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" \r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\" \r\n (click)=\"onPlanSelect()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n" }]
2573
2357
  }], ctorParameters: function () { return [{ type: AppContextService }]; }, propDecorators: { plan: [{
2574
2358
  type: Input
2575
2359
  }], planTitle: [{
2576
2360
  type: Input
2577
2361
  }], visibleIfUserSignedIn: [{
2578
2362
  type: Input
2579
- }], subscribe: [{
2363
+ }], planselect: [{
2580
2364
  type: Output
2581
2365
  }] } });
2582
2366
 
2367
+ /*
2368
+ <file>
2369
+ Project:
2370
+ @osovitny/anatoly
2371
+
2372
+ Authors:
2373
+ Vadim Osovitny
2374
+ Anatoly Osovitny
2375
+
2376
+ Created:
2377
+ 29 July 2022
2378
+
2379
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2380
+ </file>
2381
+ */
2382
+ class CardComponent {
2383
+ }
2384
+ CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2385
+ CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardComponent, selector: "anatoly-card", inputs: { class: "class" }, ngImport: i0, template: "<div class='card {{class}}'>\r\n <ng-content select='mex-card-header'></ng-content>\r\n <ng-content select='mex-card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='mex-card-footer'></ng-content>\r\n</div>\r\n" });
2386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardComponent, decorators: [{
2387
+ type: Component,
2388
+ args: [{ selector: 'anatoly-card', template: "<div class='card {{class}}'>\r\n <ng-content select='mex-card-header'></ng-content>\r\n <ng-content select='mex-card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='mex-card-footer'></ng-content>\r\n</div>\r\n" }]
2389
+ }], propDecorators: { class: [{
2390
+ type: Input
2391
+ }] } });
2392
+
2393
+ /*
2394
+ <file>
2395
+ Project:
2396
+ @osovitny/anatoly
2397
+
2398
+ Authors:
2399
+ Vadim Osovitny
2400
+ Anatoly Osovitny
2401
+
2402
+ Created:
2403
+ 29 July 2022
2404
+
2405
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2406
+ </file>
2407
+ */
2408
+ class CardHeaderComponent {
2409
+ constructor() {
2410
+ this.isTitleVisible = false;
2411
+ }
2412
+ set title(val) {
2413
+ if (val) {
2414
+ this.isTitleVisible = true;
2415
+ this.titleValue = val;
2416
+ }
2417
+ }
2418
+ ngOnInit() {
2419
+ if (this.title)
2420
+ this.isTitleVisible = true;
2421
+ }
2422
+ }
2423
+ CardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2424
+ CardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardHeaderComponent, selector: "anatoly-card-header", inputs: { class: "class", title: "title" }, ngImport: i0, template: "<div class='card-header {{class}}'>\r\n <h3 *ngIf='isTitleVisible' class='card-title'>{{titleValue}}</h3>\r\n <ng-content></ng-content>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardHeaderComponent, decorators: [{
2426
+ type: Component,
2427
+ args: [{ selector: 'anatoly-card-header', template: "<div class='card-header {{class}}'>\r\n <h3 *ngIf='isTitleVisible' class='card-title'>{{titleValue}}</h3>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
2428
+ }], propDecorators: { class: [{
2429
+ type: Input
2430
+ }], title: [{
2431
+ type: Input
2432
+ }] } });
2433
+
2434
+ /*
2435
+ <file>
2436
+ Project:
2437
+ @osovitny/anatoly
2438
+
2439
+ Authors:
2440
+ Vadim Osovitny
2441
+ Anatoly Osovitny
2442
+
2443
+ Created:
2444
+ 29 July 2022
2445
+
2446
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2447
+ </file>
2448
+ */
2449
+ class CardBodyComponent {
2450
+ }
2451
+ CardBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2452
+ CardBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardBodyComponent, selector: "anatoly-card-body", inputs: { class: "class", styles: "styles" }, ngImport: i0, template: "<div class='card-body {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" });
2453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardBodyComponent, decorators: [{
2454
+ type: Component,
2455
+ args: [{ selector: 'anatoly-card-body', template: "<div class='card-body {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
2456
+ }], propDecorators: { class: [{
2457
+ type: Input
2458
+ }], styles: [{
2459
+ type: Input
2460
+ }] } });
2461
+
2462
+ /*
2463
+ <file>
2464
+ Project:
2465
+ @osovitny/anatoly
2466
+
2467
+ Authors:
2468
+ Vadim Osovitny
2469
+ Anatoly Osovitny
2470
+
2471
+ Created:
2472
+ 29 July 2022
2473
+
2474
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2475
+ </file>
2476
+ */
2477
+ class CardFooterComponent {
2478
+ }
2479
+ CardFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2480
+ CardFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardFooterComponent, selector: "anatoly-card-footer", inputs: { class: "class" }, ngImport: i0, template: "<div class='card-footer {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" });
2481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardFooterComponent, decorators: [{
2482
+ type: Component,
2483
+ args: [{ selector: 'anatoly-card-footer', template: "<div class='card-footer {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
2484
+ }], propDecorators: { class: [{
2485
+ type: Input
2486
+ }] } });
2487
+
2488
+ /*
2489
+ <file>
2490
+ Project:
2491
+ @osovitny/anatoly
2492
+
2493
+ Authors:
2494
+ Vadim Osovitny
2495
+ Anatoly Osovitny
2496
+
2497
+ Created:
2498
+ 15 Aug 2022
2499
+
2500
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2501
+ </file>
2502
+ */
2503
+ class CheckIconComponent {
2504
+ constructor() {
2505
+ //Inputs
2506
+ this.checked = true;
2507
+ }
2508
+ }
2509
+ CheckIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CheckIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2510
+ CheckIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CheckIconComponent, selector: "anatoly-check-icon", inputs: { checked: "checked" }, ngImport: i0, template: "<i class='fas' [ngClass]=\"{ 'fa-check-circle text-success': checked, 'fa-times-circle text-danger':!checked }\"></i>\r\n<ng-content></ng-content>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CheckIconComponent, decorators: [{
2512
+ type: Component,
2513
+ args: [{ selector: 'anatoly-check-icon', template: "<i class='fas' [ngClass]=\"{ 'fa-check-circle text-success': checked, 'fa-times-circle text-danger':!checked }\"></i>\r\n<ng-content></ng-content>\r\n" }]
2514
+ }], ctorParameters: function () { return []; }, propDecorators: { checked: [{
2515
+ type: Input
2516
+ }] } });
2517
+
2583
2518
  /*
2584
2519
  <file>
2585
2520
  Project:
@@ -2666,6 +2601,181 @@ const DefaultEditorOptions = {
2666
2601
  imageUploadParams: { uploadType: "", uploadParentId: "" },
2667
2602
  };
2668
2603
 
2604
+ /*
2605
+ <file>
2606
+ Project:
2607
+ @osovitny/anatoly
2608
+
2609
+ Authors:
2610
+ Vadim Osovitny
2611
+ Anatoly Osovitny
2612
+
2613
+ Created:
2614
+ 28 Aug 2018
2615
+
2616
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2617
+ </file>
2618
+ */
2619
+ class BaseComponent {
2620
+ constructor() {
2621
+ this.subs = new Subs();
2622
+ //Component Data => usually loading from API
2623
+ this.dataLoading = true;
2624
+ this.dataLoaded = false;
2625
+ this.dataFound = false;
2626
+ }
2627
+ getQSId() {
2628
+ let id = Utils.getValueByNameInQS("id");
2629
+ if (typeof id === "undefined" || id == "")
2630
+ return null;
2631
+ return id;
2632
+ }
2633
+ ngOnDestroy() {
2634
+ this.subs.unsubscribe();
2635
+ }
2636
+ }
2637
+ BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2638
+ BaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true });
2639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseComponent, decorators: [{
2640
+ type: Component,
2641
+ args: [{
2642
+ template: ''
2643
+ }]
2644
+ }] });
2645
+
2646
+ /*
2647
+ <file>
2648
+ Project:
2649
+ @osovitny/anatoly
2650
+
2651
+ Authors:
2652
+ Vadim Osovitny
2653
+ Anatoly Osovitny
2654
+
2655
+ Created:
2656
+ 20 Nov 2017
2657
+
2658
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2659
+ </file>
2660
+ */
2661
+ class BaseEditComponent extends BaseComponent {
2662
+ constructor() {
2663
+ super();
2664
+ this.formSubmitted = false;
2665
+ }
2666
+ isActionAdding() {
2667
+ let id = Utils.getValueByNameInQS("id");
2668
+ return typeof id === "undefined" || id == "";
2669
+ }
2670
+ getEntityId() {
2671
+ return this.getQSId();
2672
+ }
2673
+ isControlValid(name, frmGroup = null) {
2674
+ return !this.isControlInvalid(name, frmGroup);
2675
+ }
2676
+ isControlInvalid(name, frmGroup = null) {
2677
+ if (typeof name === "undefined" || name == "") {
2678
+ return false;
2679
+ }
2680
+ let fg = frmGroup ? frmGroup : this.formGroup;
2681
+ if (!fg) {
2682
+ return false;
2683
+ }
2684
+ if (fg.get(name)) {
2685
+ return ((this.formSubmitted && fg.get(name).invalid) ||
2686
+ (fg.get(name).touched && fg.get(name).invalid));
2687
+ }
2688
+ return false;
2689
+ }
2690
+ //FormGroup functions
2691
+ getFormValue(name, frmGroup = null) {
2692
+ let fg = frmGroup ? frmGroup : this.formGroup;
2693
+ return fg.controls[name].value;
2694
+ }
2695
+ setFormValue(name, value, frmGroup = null) {
2696
+ let fg = frmGroup ? frmGroup : this.formGroup;
2697
+ fg.controls[name].setValue(value);
2698
+ }
2699
+ getFormGroupValue(groupName, name, frmGroup = null) {
2700
+ let fg = frmGroup ? frmGroup : this.formGroup;
2701
+ return fg.controls[groupName].get(name).value;
2702
+ }
2703
+ setFormGroupValue(groupName, name, value, frmGroup = null) {
2704
+ let fg = frmGroup ? frmGroup : this.formGroup;
2705
+ fg.controls[groupName].get(name).setValue(value);
2706
+ }
2707
+ /**
2708
+ * Add control to form group
2709
+ * @param name
2710
+ * @param formControl
2711
+ * @param frmGroup
2712
+ */
2713
+ addControl(name, formControl, frmGroup = null) {
2714
+ let fg = frmGroup ? frmGroup : this.formGroup;
2715
+ fg.addControl(name, formControl);
2716
+ }
2717
+ /**
2718
+ * Removes control from form group
2719
+ * @param name
2720
+ * @param frmGroup
2721
+ */
2722
+ removeControl(name, frmGroup = null) {
2723
+ let fg = frmGroup ? frmGroup : this.formGroup;
2724
+ if (fg.get(name)) {
2725
+ fg.removeControl(name);
2726
+ }
2727
+ }
2728
+ /**
2729
+ * return new form control
2730
+ * @param formState
2731
+ * @param validatorOrOpts
2732
+ * @param asyncValidator
2733
+ */
2734
+ createFormControl(formState, validatorOrOpts, asyncValidator) {
2735
+ return new FormControl(formState, validatorOrOpts, asyncValidator);
2736
+ }
2737
+ /**
2738
+ * Set error to control
2739
+ * @param controlName formControl name
2740
+ * @param err error expect {erroname: boolean} format
2741
+ * @param frmGroup
2742
+ */
2743
+ setControlError(controlName, err, frmGroup = null) {
2744
+ var _a;
2745
+ let fg = frmGroup ? frmGroup : this.formGroup;
2746
+ (_a = fg.get(controlName)) === null || _a === void 0 ? void 0 : _a.setErrors(err);
2747
+ }
2748
+ /**
2749
+ * Set {invalid: true} for the specified form
2750
+ * @param controlName form control name
2751
+ * @param frmGroup
2752
+ */
2753
+ setInValidError(controlName, frmGroup = null) {
2754
+ var _a;
2755
+ let fg = frmGroup ? frmGroup : this.formGroup;
2756
+ (_a = fg.get(controlName)) === null || _a === void 0 ? void 0 : _a.setErrors({ invalid: true });
2757
+ }
2758
+ /**
2759
+ * returns formgroup controls.
2760
+ * main use case is used in html pages
2761
+ */
2762
+ get fc() {
2763
+ return this.formGroup.controls;
2764
+ }
2765
+ }
2766
+ BaseEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2767
+ BaseEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseEditComponent, selector: "ng-component", inputs: { formGroup: "formGroup", formSubmitted: "formSubmitted" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
2768
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseEditComponent, decorators: [{
2769
+ type: Component,
2770
+ args: [{
2771
+ template: ''
2772
+ }]
2773
+ }], ctorParameters: function () { return []; }, propDecorators: { formGroup: [{
2774
+ type: Input
2775
+ }], formSubmitted: [{
2776
+ type: Input
2777
+ }] } });
2778
+
2669
2779
  /*
2670
2780
  <file>
2671
2781
  Project:
@@ -3199,42 +3309,38 @@ const Spinkit = {
3199
3309
  </file>
3200
3310
  */
3201
3311
  class PageSpinnerComponent {
3202
- constructor(router, document) {
3312
+ constructor(router) {
3203
3313
  this.router = router;
3204
- this.document = document;
3205
3314
  this.isSpinnerVisible = true;
3206
3315
  this.Spinkit = Spinkit;
3207
3316
  this.backgroundColor = '#2196f3';
3208
3317
  this.spinner = Spinkit.skLine;
3209
- this.router.events.subscribe({
3210
- next: (event) => {
3211
- if (event instanceof NavigationStart) {
3212
- this.isSpinnerVisible = true;
3213
- }
3214
- else if (event instanceof NavigationEnd || event instanceof NavigationCancel || event instanceof NavigationError) {
3215
- this.isSpinnerVisible = false;
3216
- }
3217
- },
3218
- error: (e) => {
3219
- this.isSpinnerVisible = false;
3318
+ router.events.subscribe({
3319
+ next: (routerEvent) => {
3320
+ this.checkRouterEvent(routerEvent);
3220
3321
  }
3221
3322
  });
3222
3323
  }
3324
+ checkRouterEvent(routerEvent) {
3325
+ if (routerEvent instanceof NavigationStart) {
3326
+ this.isSpinnerVisible = true;
3327
+ }
3328
+ if (routerEvent instanceof NavigationEnd ||
3329
+ routerEvent instanceof NavigationCancel ||
3330
+ routerEvent instanceof NavigationError) {
3331
+ this.isSpinnerVisible = false;
3332
+ }
3333
+ }
3223
3334
  ngOnDestroy() {
3224
3335
  this.isSpinnerVisible = false;
3225
3336
  }
3226
3337
  }
3227
- PageSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: PageSpinnerComponent, deps: [{ token: i1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
3338
+ PageSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: PageSpinnerComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
3228
3339
  PageSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: PageSpinnerComponent, selector: "anatoly-pagespinner", inputs: { backgroundColor: "backgroundColor", spinner: "spinner" }, ngImport: i0, template: "<div id=\"http-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"sk-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === Spinkit.skLine\">\r\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
3229
3340
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: PageSpinnerComponent, decorators: [{
3230
3341
  type: Component,
3231
3342
  args: [{ selector: 'anatoly-pagespinner', encapsulation: ViewEncapsulation.None, template: "<div id=\"http-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"sk-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === Spinkit.skLine\">\r\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
3232
- }], ctorParameters: function () {
3233
- return [{ type: i1.Router }, { type: Document, decorators: [{
3234
- type: Inject,
3235
- args: [DOCUMENT]
3236
- }] }];
3237
- }, propDecorators: { backgroundColor: [{
3343
+ }], ctorParameters: function () { return [{ type: i1.Router }]; }, propDecorators: { backgroundColor: [{
3238
3344
  type: Input
3239
3345
  }], spinner: [{
3240
3346
  type: Input
@@ -3250,114 +3356,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3250
3356
  Anatoly Osovitny
3251
3357
 
3252
3358
  Created:
3253
- 29 July 2022
3254
-
3255
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3256
- </file>
3257
- */
3258
- class CardComponent {
3259
- }
3260
- CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3261
- CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardComponent, selector: "anatoly-card", inputs: { class: "class" }, ngImport: i0, template: "<div class='card {{class}}'>\r\n <ng-content select='mex-card-header'></ng-content>\r\n <ng-content select='mex-card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='mex-card-footer'></ng-content>\r\n</div>\r\n" });
3262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardComponent, decorators: [{
3263
- type: Component,
3264
- args: [{ selector: 'anatoly-card', template: "<div class='card {{class}}'>\r\n <ng-content select='mex-card-header'></ng-content>\r\n <ng-content select='mex-card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='mex-card-footer'></ng-content>\r\n</div>\r\n" }]
3265
- }], propDecorators: { class: [{
3266
- type: Input
3267
- }] } });
3268
-
3269
- /*
3270
- <file>
3271
- Project:
3272
- @osovitny/anatoly
3273
-
3274
- Authors:
3275
- Vadim Osovitny
3276
- Anatoly Osovitny
3277
-
3278
- Created:
3279
- 29 July 2022
3280
-
3359
+ 24 Jan 2022
3360
+
3281
3361
  Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3282
3362
  </file>
3283
3363
  */
3284
- class CardHeaderComponent {
3364
+ class BaseDialog extends BaseEditComponent {
3285
3365
  constructor() {
3286
- this.isTitleVisible = false;
3366
+ super();
3367
+ this._opened = false;
3287
3368
  }
3288
- set title(val) {
3289
- if (val) {
3290
- this.isTitleVisible = true;
3291
- this.titleValue = val;
3292
- }
3369
+ get opened() {
3370
+ return this._opened;
3293
3371
  }
3294
- ngOnInit() {
3295
- if (this.title)
3296
- this.isTitleVisible = true;
3372
+ open() {
3373
+ this._opened = true;
3374
+ }
3375
+ close() {
3376
+ this._opened = false;
3297
3377
  }
3298
3378
  }
3299
- CardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3300
- CardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardHeaderComponent, selector: "anatoly-card-header", inputs: { class: "class", title: "title" }, ngImport: i0, template: "<div class='card-header {{class}}'>\r\n <h3 *ngIf='isTitleVisible' class='card-title'>{{titleValue}}</h3>\r\n <ng-content></ng-content>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3301
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardHeaderComponent, decorators: [{
3302
- type: Component,
3303
- args: [{ selector: 'anatoly-card-header', template: "<div class='card-header {{class}}'>\r\n <h3 *ngIf='isTitleVisible' class='card-title'>{{titleValue}}</h3>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
3304
- }], propDecorators: { class: [{
3305
- type: Input
3306
- }], title: [{
3307
- type: Input
3308
- }] } });
3309
-
3310
- /*
3311
- <file>
3312
- Project:
3313
- @osovitny/anatoly
3314
-
3315
- Authors:
3316
- Vadim Osovitny
3317
- Anatoly Osovitny
3318
-
3319
- Created:
3320
- 29 July 2022
3321
-
3322
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3323
- </file>
3324
- */
3325
- class CardBodyComponent {
3326
- }
3327
- CardBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3328
- CardBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardBodyComponent, selector: "anatoly-card-body", inputs: { class: "class", styles: "styles" }, ngImport: i0, template: "<div class='card-body {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" });
3329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardBodyComponent, decorators: [{
3330
- type: Component,
3331
- args: [{ selector: 'anatoly-card-body', template: "<div class='card-body {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
3332
- }], propDecorators: { class: [{
3333
- type: Input
3334
- }], styles: [{
3335
- type: Input
3336
- }] } });
3337
-
3338
- /*
3339
- <file>
3340
- Project:
3341
- @osovitny/anatoly
3342
-
3343
- Authors:
3344
- Vadim Osovitny
3345
- Anatoly Osovitny
3346
-
3347
- Created:
3348
- 29 July 2022
3349
-
3350
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3351
- </file>
3352
- */
3353
- class CardFooterComponent {
3354
- }
3355
- CardFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3356
- CardFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: CardFooterComponent, selector: "anatoly-card-footer", inputs: { class: "class" }, ngImport: i0, template: "<div class='card-footer {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" });
3357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: CardFooterComponent, decorators: [{
3379
+ BaseDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
3380
+ BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
3381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseDialog, decorators: [{
3358
3382
  type: Component,
3359
- args: [{ selector: 'anatoly-card-footer', template: "<div class='card-footer {{class}}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
3360
- }], propDecorators: { class: [{
3383
+ args: [{
3384
+ template: ''
3385
+ }]
3386
+ }], ctorParameters: function () { return []; }, propDecorators: { opened: [{
3361
3387
  type: Input
3362
3388
  }] } });
3363
3389
 
@@ -4231,23 +4257,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
4231
4257
  const FroalaEditorModuleWithProviders = FroalaEditorModule.forRoot();
4232
4258
  const FroalaViewModuleWithProviders = FroalaViewModule.forRoot();
4233
4259
  const COMPONENTS = [
4260
+ //billing
4234
4261
  BuyAccessButtonComponent,
4235
4262
  SubscribePlanButtonComponent,
4236
- SignInButtonComponent,
4237
- SignUpButtonComponent,
4238
- SignOutButtonComponent,
4239
- NodataComponent,
4240
- //Spinners
4241
- PageSpinnerComponent,
4242
- LoadingComponent,
4243
4263
  //Cards
4244
4264
  CardComponent,
4245
4265
  CardHeaderComponent,
4246
4266
  CardBodyComponent,
4247
4267
  CardFooterComponent,
4268
+ //Check
4269
+ CheckIconComponent,
4248
4270
  //HtmlEditor
4249
4271
  HtmlEditorComponent,
4250
4272
  FormsHtmlEditorComponent,
4273
+ //identity
4274
+ SignInButtonComponent,
4275
+ SignUpButtonComponent,
4276
+ SignOutButtonComponent,
4277
+ ///
4278
+ NodataComponent,
4279
+ //Spinners
4280
+ PageSpinnerComponent,
4281
+ LoadingComponent,
4251
4282
  //Directives
4252
4283
  NativeElementDirective,
4253
4284
  //Forms
@@ -4269,23 +4300,29 @@ const COMPONENTS = [
4269
4300
  class AnatolyUIModule {
4270
4301
  }
4271
4302
  AnatolyUIModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: AnatolyUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4272
- AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: AnatolyUIModule, declarations: [BuyAccessButtonComponent,
4303
+ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: AnatolyUIModule, declarations: [
4304
+ //billing
4305
+ BuyAccessButtonComponent,
4273
4306
  SubscribePlanButtonComponent,
4274
- SignInButtonComponent,
4275
- SignUpButtonComponent,
4276
- SignOutButtonComponent,
4277
- NodataComponent,
4278
- //Spinners
4279
- PageSpinnerComponent,
4280
- LoadingComponent,
4281
4307
  //Cards
4282
4308
  CardComponent,
4283
4309
  CardHeaderComponent,
4284
4310
  CardBodyComponent,
4285
4311
  CardFooterComponent,
4312
+ //Check
4313
+ CheckIconComponent,
4286
4314
  //HtmlEditor
4287
4315
  HtmlEditorComponent,
4288
4316
  FormsHtmlEditorComponent,
4317
+ //identity
4318
+ SignInButtonComponent,
4319
+ SignUpButtonComponent,
4320
+ SignOutButtonComponent,
4321
+ ///
4322
+ NodataComponent,
4323
+ //Spinners
4324
+ PageSpinnerComponent,
4325
+ LoadingComponent,
4289
4326
  //Directives
4290
4327
  NativeElementDirective,
4291
4328
  //Forms
@@ -4302,28 +4339,35 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
4302
4339
  FileSizePipe,
4303
4340
  //Validation
4304
4341
  FormValidationSummaryComponent,
4305
- ItemValidationSummaryComponent], imports: [DialogsModule,
4342
+ ItemValidationSummaryComponent
4343
+ ], imports: [DialogsModule,
4306
4344
  ButtonsModule,
4307
4345
  CommonModule,
4308
4346
  ReactiveFormsModule,
4309
4347
  FormsModule,
4310
- NgxCaptchaModule, i1$7.FroalaEditorModule, i1$7.FroalaViewModule], exports: [BuyAccessButtonComponent,
4348
+ NgxCaptchaModule, i1$7.FroalaEditorModule, i1$7.FroalaViewModule], exports: [
4349
+ //billing
4350
+ BuyAccessButtonComponent,
4311
4351
  SubscribePlanButtonComponent,
4312
- SignInButtonComponent,
4313
- SignUpButtonComponent,
4314
- SignOutButtonComponent,
4315
- NodataComponent,
4316
- //Spinners
4317
- PageSpinnerComponent,
4318
- LoadingComponent,
4319
4352
  //Cards
4320
4353
  CardComponent,
4321
4354
  CardHeaderComponent,
4322
4355
  CardBodyComponent,
4323
4356
  CardFooterComponent,
4357
+ //Check
4358
+ CheckIconComponent,
4324
4359
  //HtmlEditor
4325
4360
  HtmlEditorComponent,
4326
4361
  FormsHtmlEditorComponent,
4362
+ //identity
4363
+ SignInButtonComponent,
4364
+ SignUpButtonComponent,
4365
+ SignOutButtonComponent,
4366
+ ///
4367
+ NodataComponent,
4368
+ //Spinners
4369
+ PageSpinnerComponent,
4370
+ LoadingComponent,
4327
4371
  //Directives
4328
4372
  NativeElementDirective,
4329
4373
  //Forms
@@ -4340,7 +4384,8 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
4340
4384
  FileSizePipe,
4341
4385
  //Validation
4342
4386
  FormValidationSummaryComponent,
4343
- ItemValidationSummaryComponent] });
4387
+ ItemValidationSummaryComponent
4388
+ ] });
4344
4389
  AnatolyUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: AnatolyUIModule, imports: [DialogsModule,
4345
4390
  ButtonsModule,
4346
4391
  CommonModule,
@@ -4379,5 +4424,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
4379
4424
  * Generated bundle index. Do not edit.
4380
4425
  */
4381
4426
 
4382
- export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CompanyComponent, ContactUsDialog, ContactUsForm, ContextInitState, Convert, CoreApiService, DOM, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
4427
+ export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, ContextInitState, Convert, CoreApiService, DOM, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
4383
4428
  //# sourceMappingURL=osovitny-anatoly.mjs.map