taon 19.0.20 → 19.0.22

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 (165) hide show
  1. package/browser/fesm2022/taon.mjs +13 -1201
  2. package/browser/fesm2022/taon.mjs.map +1 -1
  3. package/browser/lib/ui/index.d.ts +0 -8
  4. package/browser/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  5. package/browser/package.json +1 -1
  6. package/client/fesm2022/taon.mjs +13 -1201
  7. package/client/fesm2022/taon.mjs.map +1 -1
  8. package/client/lib/ui/index.d.ts +0 -8
  9. package/client/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  10. package/client/package.json +1 -1
  11. package/lib/base-classes/base-subscriber.d.ts +4 -0
  12. package/lib/base-classes/base-subscriber.js +25 -0
  13. package/lib/base-classes/base-subscriber.js.map +1 -0
  14. package/lib/build-info._auto-generated_.d.ts +1 -1
  15. package/lib/build-info._auto-generated_.js +1 -1
  16. package/lib/realtime/realtime-strategy/realtime-abstract-mock.d.ts +10 -0
  17. package/lib/realtime/realtime-strategy/realtime-abstract-mock.js +214 -0
  18. package/lib/realtime/realtime-strategy/realtime-abstract-mock.js.map +1 -0
  19. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
  20. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +5 -0
  21. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +1 -0
  22. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
  23. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +139 -0
  24. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +1 -0
  25. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +16 -0
  26. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +68 -0
  27. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +1 -0
  28. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +10 -0
  29. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +56 -0
  30. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +1 -0
  31. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +10 -0
  32. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +50 -0
  33. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +1 -0
  34. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +13 -0
  35. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +3 -0
  36. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +1 -0
  37. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +2 -0
  38. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +6 -0
  39. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +1 -0
  40. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +16 -0
  41. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +54 -0
  42. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +1 -0
  43. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +17 -0
  44. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +52 -0
  45. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +1 -0
  46. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +11 -0
  47. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +39 -0
  48. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +1 -0
  49. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +13 -0
  50. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +46 -0
  51. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +1 -0
  52. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +11 -0
  53. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +3 -0
  54. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +1 -0
  55. package/lib/ui/directives/firedev-inject-html.directive.d.ts +6 -0
  56. package/{websql/lib/ui/directives/taon-long-press.directive.d.ts → lib/ui/directives/firedev-long-press.directive.d.ts} +1 -5
  57. package/lib/ui/directives/index.js +2 -2
  58. package/lib/ui/index.d.ts +0 -8
  59. package/lib/ui/index.js +2 -2
  60. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
  61. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
  62. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
  63. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +29 -0
  64. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
  65. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
  66. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
  67. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
  68. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +8 -0
  69. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
  70. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
  71. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
  72. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +13 -0
  73. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
  74. package/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  75. package/lib/ui/taon-admin-mode-configuration/index.js +2 -17
  76. package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -1
  77. package/{browser/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts → lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts} +1 -2
  78. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
  79. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
  80. package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
  81. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
  82. package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
  83. package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
  84. package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
  85. package/lib/ui/taon-progress-bar/index.js +2 -2
  86. package/lib/ui/taon-session-passcode/index.js +2 -2
  87. package/lib/ui/taon-table/index.js +2 -2
  88. package/lib/ui/toan-full-material.module.d.ts +2 -0
  89. package/package.json +1 -1
  90. package/tmp-environment.json +6 -6
  91. package/websql/fesm2022/taon.mjs +13 -1196
  92. package/websql/fesm2022/taon.mjs.map +1 -1
  93. package/websql/lib/ui/index.d.ts +0 -8
  94. package/websql/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  95. package/websql/package.json +1 -1
  96. package/browser/lib/ui/directives/index.d.ts +0 -4
  97. package/browser/lib/ui/directives/safe.pipe.d.ts +0 -11
  98. package/browser/lib/ui/directives/taon-inject-html.directive.d.ts +0 -10
  99. package/browser/lib/ui/directives/taon-long-press.directive.d.ts +0 -26
  100. package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -47
  101. package/browser/lib/ui/taon-full-material.module.d.ts +0 -50
  102. package/browser/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -3
  103. package/browser/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -7
  104. package/browser/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -9
  105. package/browser/lib/ui/taon-notifications/index.d.ts +0 -5
  106. package/browser/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -13
  107. package/browser/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -7
  108. package/browser/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -8
  109. package/browser/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -15
  110. package/browser/lib/ui/taon-progress-bar/index.d.ts +0 -3
  111. package/browser/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -17
  112. package/browser/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -9
  113. package/browser/lib/ui/taon-session-passcode/index.d.ts +0 -2
  114. package/browser/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -39
  115. package/browser/lib/ui/taon-table/index.d.ts +0 -3
  116. package/browser/lib/ui/taon-table/taon-table.component.d.ts +0 -38
  117. package/browser/lib/ui/taon-table/taon-table.module.d.ts +0 -17
  118. package/client/lib/ui/directives/index.d.ts +0 -4
  119. package/client/lib/ui/directives/safe.pipe.d.ts +0 -11
  120. package/client/lib/ui/directives/taon-inject-html.directive.d.ts +0 -10
  121. package/client/lib/ui/directives/taon-long-press.directive.d.ts +0 -26
  122. package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -47
  123. package/client/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +0 -6
  124. package/client/lib/ui/taon-full-material.module.d.ts +0 -50
  125. package/client/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -3
  126. package/client/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -7
  127. package/client/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -9
  128. package/client/lib/ui/taon-notifications/index.d.ts +0 -5
  129. package/client/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -13
  130. package/client/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -7
  131. package/client/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -8
  132. package/client/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -15
  133. package/client/lib/ui/taon-progress-bar/index.d.ts +0 -3
  134. package/client/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -17
  135. package/client/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -9
  136. package/client/lib/ui/taon-session-passcode/index.d.ts +0 -2
  137. package/client/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -39
  138. package/client/lib/ui/taon-table/index.d.ts +0 -3
  139. package/client/lib/ui/taon-table/taon-table.component.d.ts +0 -38
  140. package/client/lib/ui/taon-table/taon-table.module.d.ts +0 -17
  141. package/lib/base-classes/base-repository copy.d.ts +0 -255
  142. package/lib/base-classes/base-repository copy.js +0 -653
  143. package/lib/base-classes/base-repository copy.js.map +0 -1
  144. package/websql/lib/ui/directives/index.d.ts +0 -4
  145. package/websql/lib/ui/directives/safe.pipe.d.ts +0 -11
  146. package/websql/lib/ui/directives/taon-inject-html.directive.d.ts +0 -10
  147. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -47
  148. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +0 -6
  149. package/websql/lib/ui/taon-full-material.module.d.ts +0 -50
  150. package/websql/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -3
  151. package/websql/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -7
  152. package/websql/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -9
  153. package/websql/lib/ui/taon-notifications/index.d.ts +0 -5
  154. package/websql/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -13
  155. package/websql/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -7
  156. package/websql/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -8
  157. package/websql/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -15
  158. package/websql/lib/ui/taon-progress-bar/index.d.ts +0 -3
  159. package/websql/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -17
  160. package/websql/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -9
  161. package/websql/lib/ui/taon-session-passcode/index.d.ts +0 -2
  162. package/websql/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -39
  163. package/websql/lib/ui/taon-table/index.d.ts +0 -3
  164. package/websql/lib/ui/taon-table/taon-table.component.d.ts +0 -38
  165. package/websql/lib/ui/taon-table/taon-table.module.d.ts +0 -17
@@ -1,6 +1,6 @@
1
1
  import 'reflect-metadata';
2
2
  import * as coreHelpers from 'tnp-core/browser';
3
- import { _, Utils, Helpers, UtilsOs, json5 } from 'tnp-core/browser';
3
+ import { _, Utils, Helpers, UtilsOs } from 'tnp-core/browser';
4
4
  import { __decorate, __metadata, __param } from 'tslib';
5
5
  import { walk } from 'lodash-walk-object/browser';
6
6
  import { OrignalClassKey, Table } from 'taon-typeorm/browser';
@@ -8,77 +8,13 @@ import { SYMBOL, CLASS } from 'typescript-class-helpers/browser';
8
8
  import { Models as Models$1, RestHeaders, Resource, Mapping } from 'ng2-rest/browser';
9
9
  import * as JSON5 from 'json5';
10
10
  import * as i0 from '@angular/core';
11
- import { InjectionToken, inject as inject$1, Injectable, EventEmitter, HostListener, HostBinding, Output, Input, Directive, Pipe, NgModule, Component, DestroyRef, Self, ViewChild, ChangeDetectorRef } from '@angular/core';
11
+ import { InjectionToken, inject as inject$1, Injectable } from '@angular/core';
12
12
  import axios from 'axios';
13
13
  import { ipcRenderer } from 'electron';
14
14
  import { JSON10 } from 'json10/browser';
15
- import { Observable, from, Subject, interval, tap, Subscription, defer, fromEvent, map, debounceTime, distinctUntilChanged, share, takeUntil } from 'rxjs';
15
+ import { Observable, from, Subject } from 'rxjs';
16
16
  import { io } from 'socket.io-client';
17
17
  import { Stor } from 'taon-storage/browser';
18
- import { Log, Level } from 'ng2-logger/browser';
19
- import * as i1 from '@angular/platform-browser';
20
- import { A11yModule } from '@angular/cdk/a11y';
21
- import * as i5$1 from '@angular/cdk/drag-drop';
22
- import { DragDropModule } from '@angular/cdk/drag-drop';
23
- import { ScrollingModule } from '@angular/cdk/scrolling';
24
- import { CdkStepperModule } from '@angular/cdk/stepper';
25
- import { CdkTableModule } from '@angular/cdk/table';
26
- import { CdkTreeModule } from '@angular/cdk/tree';
27
- import { MatAutocompleteModule } from '@angular/material/autocomplete';
28
- import { MatBadgeModule } from '@angular/material/badge';
29
- import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
30
- import * as i6 from '@angular/material/button';
31
- import { MatButtonModule } from '@angular/material/button';
32
- import * as i7 from '@angular/material/card';
33
- import { MatCardModule } from '@angular/material/card';
34
- import * as i8 from '@angular/material/checkbox';
35
- import { MatCheckboxModule } from '@angular/material/checkbox';
36
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
37
- import { MatStepperModule } from '@angular/material/stepper';
38
- import { MatDialogModule } from '@angular/material/dialog';
39
- import { MatExpansionModule } from '@angular/material/expansion';
40
- import { MatGridListModule } from '@angular/material/grid-list';
41
- import * as i5 from '@angular/material/icon';
42
- import { MatIconModule } from '@angular/material/icon';
43
- import { MatListModule } from '@angular/material/list';
44
- import { MatDatepickerModule } from '@angular/material/datepicker';
45
- import { MatPaginatorModule } from '@angular/material/paginator';
46
- import { MatProgressBarModule } from '@angular/material/progress-bar';
47
- import { MatChipsModule } from '@angular/material/chips';
48
- import { MatDividerModule } from '@angular/material/divider';
49
- import * as i2$2 from '@angular/material/input';
50
- import { MatInputModule } from '@angular/material/input';
51
- import { MatMenuModule } from '@angular/material/menu';
52
- import { MatNativeDateModule, MatRippleModule } from '@angular/material/core';
53
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
54
- import { MatRadioModule } from '@angular/material/radio';
55
- import { MatSelectModule } from '@angular/material/select';
56
- import * as i10 from '@angular/material/sidenav';
57
- import { MatSidenavModule } from '@angular/material/sidenav';
58
- import { MatSliderModule } from '@angular/material/slider';
59
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
60
- import { MatSnackBarModule } from '@angular/material/snack-bar';
61
- import { MatSortModule } from '@angular/material/sort';
62
- import { MatTableModule } from '@angular/material/table';
63
- import * as i11 from '@angular/material/tabs';
64
- import { MatTabsModule } from '@angular/material/tabs';
65
- import { MatToolbarModule } from '@angular/material/toolbar';
66
- import { MatTooltipModule } from '@angular/material/tooltip';
67
- import { MatTreeModule } from '@angular/material/tree';
68
- import * as i2$1 from '@angular/common';
69
- import { CommonModule } from '@angular/common';
70
- import * as i1$1 from '@ngneat/hot-toast';
71
- import * as i2 from '@angular/forms';
72
- import { FormGroup, FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
73
- import { PasswordModule } from 'primeng/password';
74
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
75
- import * as i3 from '@ng-matero/extensions/grid';
76
- import { MtxGridModule } from '@ng-matero/extensions/grid';
77
- import * as i1$2 from 'static-columns/browser';
78
- import { StaticColumnsModule } from 'static-columns/browser';
79
- import { MatFormFieldModule } from '@angular/material/form-field';
80
- import * as i4 from 'ngx-scrollbar';
81
- import { NgScrollbarModule } from 'ngx-scrollbar';
82
18
 
83
19
  var Symbols;
84
20
  (function (Symbols) {
@@ -848,10 +784,10 @@ class BaseAngularsService {
848
784
  get host() {
849
785
  return `http://localhost:${this.CURRENT_HOST_BACKEND_PORT}`;
850
786
  }
851
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BaseAngularsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
852
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BaseAngularsService }); }
787
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: BaseAngularsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
788
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: BaseAngularsService }); }
853
789
  }
854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BaseAngularsService, decorators: [{
790
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: BaseAngularsService, decorators: [{
855
791
  type: Injectable
856
792
  }], ctorParameters: () => [] });
857
793
 
@@ -1334,7 +1270,7 @@ class DITaonContainer {
1334
1270
  }
1335
1271
  }
1336
1272
 
1337
- const ENV$2 = Helpers.isBrowser ? window['ENV'] : global['ENV'];
1273
+ const ENV$1 = Helpers.isBrowser ? window['ENV'] : global['ENV'];
1338
1274
 
1339
1275
  const getResponseValue = (response, options) => {
1340
1276
  /* */
@@ -2838,7 +2774,7 @@ class EndpointContext {
2838
2774
  this.onlyMigrationRun = onlyMigrationRun;
2839
2775
  // @ts-ignore
2840
2776
  this.onlyMigrationRevertToTimestamp = onlyMigrationRevertToTimestamp;
2841
- this.config = this.configFn(ENV$2);
2777
+ this.config = this.configFn(ENV$1);
2842
2778
  if (_.isObject(this.config.database)) {
2843
2779
  this.config.database = Models.DatabaseConfig.from(this.config.database).databaseConfigTypeORM;
2844
2780
  }
@@ -4591,7 +4527,7 @@ instead
4591
4527
  }
4592
4528
 
4593
4529
  //#endregion
4594
- const ENV$1 = Helpers.isBrowser ? window['ENV'] : global['ENV'];
4530
+ const ENV = Helpers.isBrowser ? window['ENV'] : global['ENV'];
4595
4531
  // @Injectable({ providedIn: 'root' }) TODO make it angular service
4596
4532
  class TaonAdminService {
4597
4533
  static get Instance() {
@@ -4611,7 +4547,7 @@ class TaonAdminService {
4611
4547
  this.onEditMode$ = this.onEditMode.asObservable();
4612
4548
  this.enabledTabs = [];
4613
4549
  TaonAdminService._instance = this;
4614
- this.scrollableEnabled = !!ENV$1?.useGlobalNgxScrollbar;
4550
+ this.scrollableEnabled = !!ENV?.useGlobalNgxScrollbar;
4615
4551
  }
4616
4552
  //#endregion
4617
4553
  //#region methods
@@ -4659,7 +4595,7 @@ const createContextTemplate = (configFn) => {
4659
4595
  };
4660
4596
  };
4661
4597
  const createContext = (configFn) => {
4662
- let config = configFn(ENV$2);
4598
+ let config = configFn(ENV$1);
4663
4599
  const endpointContextRef = new EndpointContext(config, configFn);
4664
4600
  const res = {
4665
4601
  //#region types
@@ -6451,1130 +6387,6 @@ const inject = (entity) => {
6451
6387
  // return proxyObservable as Observable<SubscriptionEvent<T>>;
6452
6388
  // };
6453
6389
 
6454
- const log$1 = Log.create(`[taon-helpers] long-press`, Level.__NOTHING);
6455
- class TaonLongPress {
6456
- constructor() {
6457
- this.pressDuration = 1000;
6458
- this.onLongPress = new EventEmitter();
6459
- this.onLongPressing = new EventEmitter();
6460
- this.onLongPressEnd = new EventEmitter();
6461
- this.mouseX = 0;
6462
- this.mouseY = 0;
6463
- this.allowTrigger = false;
6464
- this.triggerEnd = _.debounce(() => {
6465
- this.endPress();
6466
- }, 500);
6467
- }
6468
- get press() {
6469
- return this.pressing;
6470
- }
6471
- get longPress() {
6472
- return this.longPressing;
6473
- }
6474
- onMouseDown(event) {
6475
- // don't do right/middle clicks
6476
- log$1.d(`MOUSE DOWN `);
6477
- if (event.which !== 1)
6478
- return;
6479
- this.allowTrigger = true;
6480
- this.mouseX = event.clientX;
6481
- this.mouseY = event.clientY;
6482
- this.pressing = true;
6483
- this.longPressing = false;
6484
- this.timeout = setTimeout(() => {
6485
- if (this.allowTrigger) {
6486
- this.longPressing = true;
6487
- log$1.d(`long pressing start pressDuration:${this.pressDuration} `);
6488
- this.onLongPress.emit(event);
6489
- this.loop(event);
6490
- }
6491
- }, this.pressDuration);
6492
- this.loop(event);
6493
- }
6494
- onMouseMove(event) {
6495
- if (this.pressing && !this.longPressing) {
6496
- const xThres = event.clientX - this.mouseX > 10;
6497
- const yThres = event.clientY - this.mouseY > 10;
6498
- if (xThres || yThres) {
6499
- this.endPress();
6500
- }
6501
- }
6502
- }
6503
- loop(event) {
6504
- if (this.longPressing) {
6505
- this.timeout = setTimeout(() => {
6506
- log$1.d(`emil longpressing`);
6507
- this.triggerEnd();
6508
- this.onLongPressing.emit(event);
6509
- this.loop(event);
6510
- }, 50);
6511
- }
6512
- }
6513
- endPress(emit = true) {
6514
- this.allowTrigger = false;
6515
- clearTimeout(this.timeout);
6516
- this.longPressing = false;
6517
- this.pressing = false;
6518
- if (emit) {
6519
- log$1.d(`EMIT END`);
6520
- this.onLongPressEnd.emit(true);
6521
- }
6522
- else {
6523
- log$1.d(`NOT EMIT END`);
6524
- }
6525
- }
6526
- onMouseUp() {
6527
- this.endPress(false);
6528
- }
6529
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonLongPress, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
6530
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.7", type: TaonLongPress, isStandalone: true, selector: "[taonLongPress]", inputs: { pressDuration: "pressDuration" }, outputs: { onLongPress: "onLongPress", onLongPressing: "onLongPressing", onLongPressEnd: "onLongPressEnd" }, host: { listeners: { "mousedown": "onMouseDown($event)", "mousemove": "onMouseMove($event)", "mouseup": "onMouseUp()" }, properties: { "class.press": "this.press", "class.longpress": "this.longPress" } }, ngImport: i0 }); }
6531
- }
6532
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonLongPress, decorators: [{
6533
- type: Directive,
6534
- args: [{
6535
- selector: '[taonLongPress]',
6536
- standalone: true,
6537
- }]
6538
- }], propDecorators: { pressDuration: [{
6539
- type: Input
6540
- }], onLongPress: [{
6541
- type: Output
6542
- }], onLongPressing: [{
6543
- type: Output
6544
- }], onLongPressEnd: [{
6545
- type: Output
6546
- }], press: [{
6547
- type: HostBinding,
6548
- args: ['class.press']
6549
- }], longPress: [{
6550
- type: HostBinding,
6551
- args: ['class.longpress']
6552
- }], onMouseDown: [{
6553
- type: HostListener,
6554
- args: ['mousedown', ['$event']]
6555
- }], onMouseMove: [{
6556
- type: HostListener,
6557
- args: ['mousemove', ['$event']]
6558
- }], onMouseUp: [{
6559
- type: HostListener,
6560
- args: ['mouseup']
6561
- }] } });
6562
-
6563
- class TaonInjectHTMLDirective {
6564
- set taonInjectHTML(content) {
6565
- this.host.nativeElement.innerHTML = content;
6566
- }
6567
- constructor(host) {
6568
- this.host = host;
6569
- }
6570
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonInjectHTMLDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
6571
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.7", type: TaonInjectHTMLDirective, isStandalone: true, selector: "[taonInjectHTML]", inputs: { taonInjectHTML: "taonInjectHTML" }, ngImport: i0 }); }
6572
- }
6573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonInjectHTMLDirective, decorators: [{
6574
- type: Directive,
6575
- args: [{
6576
- selector: '[taonInjectHTML]',
6577
- standalone: true,
6578
- }]
6579
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { taonInjectHTML: [{
6580
- type: Input
6581
- }] } });
6582
-
6583
- class SafePipe {
6584
- constructor(sanitizer) {
6585
- this.sanitizer = sanitizer;
6586
- }
6587
- transform(value, type) {
6588
- switch (type) {
6589
- case 'html':
6590
- return this.sanitizer.bypassSecurityTrustHtml(value);
6591
- case 'style':
6592
- return this.sanitizer.bypassSecurityTrustStyle(value);
6593
- case 'script':
6594
- return this.sanitizer.bypassSecurityTrustScript(value);
6595
- case 'url':
6596
- return this.sanitizer.bypassSecurityTrustUrl(value);
6597
- case 'resourceUrl':
6598
- return this.sanitizer.bypassSecurityTrustResourceUrl(value);
6599
- default:
6600
- throw new Error(`Invalid safe type specified: ${type}`);
6601
- }
6602
- }
6603
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: SafePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
6604
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: SafePipe, isStandalone: true, name: "safe" }); }
6605
- }
6606
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: SafePipe, decorators: [{
6607
- type: Pipe,
6608
- args: [{
6609
- name: 'safe',
6610
- standalone: true,
6611
- }]
6612
- }], ctorParameters: () => [{ type: i1.DomSanitizer }] });
6613
-
6614
- //#region @browser
6615
- //#endregion
6616
-
6617
- //#region @browser
6618
- /**
6619
- * @deprecated too heavy!
6620
- */
6621
- class TaonFullMaterialModule {
6622
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonFullMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6623
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: TaonFullMaterialModule, exports: [A11yModule,
6624
- CdkStepperModule,
6625
- CdkTableModule,
6626
- CdkTreeModule,
6627
- DragDropModule,
6628
- MatAutocompleteModule,
6629
- MatBadgeModule,
6630
- MatBottomSheetModule,
6631
- MatButtonModule,
6632
- MatButtonToggleModule,
6633
- MatCardModule,
6634
- MatCheckboxModule,
6635
- MatChipsModule,
6636
- MatStepperModule,
6637
- MatDatepickerModule,
6638
- MatDialogModule,
6639
- MatDividerModule,
6640
- MatExpansionModule,
6641
- MatGridListModule,
6642
- MatIconModule,
6643
- MatInputModule,
6644
- MatListModule,
6645
- MatMenuModule,
6646
- MatNativeDateModule,
6647
- MatPaginatorModule,
6648
- MatProgressBarModule,
6649
- MatProgressSpinnerModule,
6650
- MatRadioModule,
6651
- MatRippleModule,
6652
- MatSelectModule,
6653
- MatSidenavModule,
6654
- MatSliderModule,
6655
- MatSlideToggleModule,
6656
- MatSnackBarModule,
6657
- MatSortModule,
6658
- MatTableModule,
6659
- MatTabsModule,
6660
- MatToolbarModule,
6661
- MatTooltipModule,
6662
- MatTreeModule,
6663
- ScrollingModule] }); }
6664
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonFullMaterialModule, imports: [A11yModule,
6665
- CdkStepperModule,
6666
- CdkTableModule,
6667
- CdkTreeModule,
6668
- DragDropModule,
6669
- MatAutocompleteModule,
6670
- MatBadgeModule,
6671
- MatBottomSheetModule,
6672
- MatButtonModule,
6673
- MatButtonToggleModule,
6674
- MatCardModule,
6675
- MatCheckboxModule,
6676
- MatChipsModule,
6677
- MatStepperModule,
6678
- MatDatepickerModule,
6679
- MatDialogModule,
6680
- MatDividerModule,
6681
- MatExpansionModule,
6682
- MatGridListModule,
6683
- MatIconModule,
6684
- MatInputModule,
6685
- MatListModule,
6686
- MatMenuModule,
6687
- MatNativeDateModule,
6688
- MatPaginatorModule,
6689
- MatProgressBarModule,
6690
- MatProgressSpinnerModule,
6691
- MatRadioModule,
6692
- MatRippleModule,
6693
- MatSelectModule,
6694
- MatSidenavModule,
6695
- MatSliderModule,
6696
- MatSlideToggleModule,
6697
- MatSnackBarModule,
6698
- MatSortModule,
6699
- MatTableModule,
6700
- MatTabsModule,
6701
- MatToolbarModule,
6702
- MatTooltipModule,
6703
- MatTreeModule,
6704
- ScrollingModule] }); }
6705
- }
6706
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonFullMaterialModule, decorators: [{
6707
- type: NgModule,
6708
- args: [{
6709
- exports: [
6710
- A11yModule,
6711
- CdkStepperModule,
6712
- CdkTableModule,
6713
- CdkTreeModule,
6714
- DragDropModule,
6715
- MatAutocompleteModule,
6716
- MatBadgeModule,
6717
- MatBottomSheetModule,
6718
- MatButtonModule,
6719
- MatButtonToggleModule,
6720
- MatCardModule,
6721
- MatCheckboxModule,
6722
- MatChipsModule,
6723
- MatStepperModule,
6724
- MatDatepickerModule,
6725
- MatDialogModule,
6726
- MatDividerModule,
6727
- MatExpansionModule,
6728
- MatGridListModule,
6729
- MatIconModule,
6730
- MatInputModule,
6731
- MatListModule,
6732
- MatMenuModule,
6733
- MatNativeDateModule,
6734
- MatPaginatorModule,
6735
- MatProgressBarModule,
6736
- MatProgressSpinnerModule,
6737
- MatRadioModule,
6738
- MatRippleModule,
6739
- MatSelectModule,
6740
- MatSidenavModule,
6741
- MatSliderModule,
6742
- MatSlideToggleModule,
6743
- MatSnackBarModule,
6744
- MatSortModule,
6745
- MatTableModule,
6746
- MatTabsModule,
6747
- MatToolbarModule,
6748
- MatTooltipModule,
6749
- MatTreeModule,
6750
- ScrollingModule,
6751
- ],
6752
- }]
6753
- }] });
6754
-
6755
- //#region @browser
6756
- class TaonGithubForkMeCornerComponent {
6757
- constructor() {
6758
- this.url = 'https://github.com';
6759
- }
6760
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonGithubForkMeCornerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6761
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TaonGithubForkMeCornerComponent, isStandalone: false, selector: "taon-github-fork-me-corner", inputs: { url: "url" }, ngImport: i0, template: "<a href=\"{{ url }}\" class=\"github-corner\" aria-label=\"View source on GitHub\"\n ><svg\n width=\"80\"\n height=\"80\"\n viewBox=\"0 0 250 250\"\n style=\"\n fill: #151513;\n color: #fff;\n position: absolute;\n top: 0;\n border: 0;\n right: 0;\n \"\n aria-hidden=\"true\">\n <path d=\"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z\"></path>\n <path\n d=\"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2\"\n fill=\"currentColor\"\n style=\"transform-origin: 130px 106px\"\n class=\"octo-arm\"></path>\n <path\n d=\"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z\"\n fill=\"currentColor\"\n class=\"octo-body\"></path>\n </svg>\n</a>", styles: ["a{opacity:.7}a:hover{opacity:1}.github-corner:hover .octo-arm{opacity:1;animation:octocat-wave .56s ease-in-out}@keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width: 500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave .56s ease-in-out}}\n"] }); }
6762
- }
6763
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonGithubForkMeCornerComponent, decorators: [{
6764
- type: Component,
6765
- args: [{ selector: 'taon-github-fork-me-corner', standalone: false, template: "<a href=\"{{ url }}\" class=\"github-corner\" aria-label=\"View source on GitHub\"\n ><svg\n width=\"80\"\n height=\"80\"\n viewBox=\"0 0 250 250\"\n style=\"\n fill: #151513;\n color: #fff;\n position: absolute;\n top: 0;\n border: 0;\n right: 0;\n \"\n aria-hidden=\"true\">\n <path d=\"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z\"></path>\n <path\n d=\"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2\"\n fill=\"currentColor\"\n style=\"transform-origin: 130px 106px\"\n class=\"octo-arm\"></path>\n <path\n d=\"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z\"\n fill=\"currentColor\"\n class=\"octo-body\"></path>\n </svg>\n</a>", styles: ["a{opacity:.7}a:hover{opacity:1}.github-corner:hover .octo-arm{opacity:1;animation:octocat-wave .56s ease-in-out}@keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width: 500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave .56s ease-in-out}}\n"] }]
6766
- }], propDecorators: { url: [{
6767
- type: Input
6768
- }] } });
6769
-
6770
- //#region @browser
6771
- class TaonGithubForkMeCornerModule {
6772
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonGithubForkMeCornerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6773
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: TaonGithubForkMeCornerModule, declarations: [TaonGithubForkMeCornerComponent], imports: [CommonModule], exports: [TaonGithubForkMeCornerComponent] }); }
6774
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonGithubForkMeCornerModule, imports: [CommonModule] }); }
6775
- }
6776
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonGithubForkMeCornerModule, decorators: [{
6777
- type: NgModule,
6778
- args: [{
6779
- imports: [CommonModule],
6780
- exports: [TaonGithubForkMeCornerComponent],
6781
- declarations: [TaonGithubForkMeCornerComponent],
6782
- providers: [],
6783
- }]
6784
- }] });
6785
-
6786
- //#region @browser
6787
- //#endregion
6788
-
6789
- //#region @browser
6790
- class TaonNotificationsService {
6791
- constructor(toast) {
6792
- this.toast = toast;
6793
- }
6794
- options(type, options) {
6795
- if (_.isString(options)) {
6796
- options = {
6797
- // @ts-ignore
6798
- title: options,
6799
- };
6800
- }
6801
- return options;
6802
- }
6803
- success(options) {
6804
- const opt = this.options('success', options);
6805
- return this.toast.success(opt.title);
6806
- }
6807
- error(options) {
6808
- const opt = this.options('error', options);
6809
- return this.toast.error(opt.title);
6810
- }
6811
- warn(options) {
6812
- const opt = this.options('warning', options);
6813
- return this.toast.warning(opt.title);
6814
- }
6815
- info(options) {
6816
- const opt = this.options('info', options);
6817
- return this.toast.info(opt.title);
6818
- }
6819
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsService, deps: [{ token: i1$1.HotToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
6820
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsService, providedIn: 'root' }); }
6821
- }
6822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsService, decorators: [{
6823
- type: Injectable,
6824
- args: [{
6825
- providedIn: 'root',
6826
- }]
6827
- }], ctorParameters: () => [{ type: i1$1.HotToastService }] });
6828
-
6829
- //#region @browser
6830
- class TaonNotificationsComponent {
6831
- constructor(notification) {
6832
- this.notification = notification;
6833
- }
6834
- ngOnInit() { }
6835
- init(subscribtionsArray, template, callback) {
6836
- subscribtionsArray.push(Resource.listenErrors.subscribe(err => {
6837
- this.notification.error(err.msg);
6838
- // subscribtionsArray.push(notify.onTap.subscribe(() => {
6839
- // callback(err);
6840
- // this.modal.open(template);
6841
- // }) as any);
6842
- }));
6843
- }
6844
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsComponent, deps: [{ token: TaonNotificationsService }], target: i0.ɵɵFactoryTarget.Component }); }
6845
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TaonNotificationsComponent, isStandalone: false, selector: "taon-notifications", ngImport: i0, template: "<!-- <p>\n notyfications works!\n</p> -->", styles: [":host{position:absolute;width:0px;height:0px}\n"] }); }
6846
- }
6847
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsComponent, decorators: [{
6848
- type: Component,
6849
- args: [{ selector: 'taon-notifications', standalone: false, template: "<!-- <p>\n notyfications works!\n</p> -->", styles: [":host{position:absolute;width:0px;height:0px}\n"] }]
6850
- }], ctorParameters: () => [{ type: TaonNotificationsService }] });
6851
-
6852
- class TaonNotificationOptions {
6853
- }
6854
- //#endregion
6855
-
6856
- //#region @browser
6857
- class TaonNotificationsModule {
6858
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6859
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsModule, declarations: [TaonNotificationsComponent], exports: [TaonNotificationsComponent] }); }
6860
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsModule, providers: [TaonNotificationsService] }); }
6861
- }
6862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonNotificationsModule, decorators: [{
6863
- type: NgModule,
6864
- args: [{
6865
- imports: [
6866
- // CommonModule,
6867
- // BrowserAnimationsModule, // required animations module
6868
- // HotToastModule.forRoot({
6869
- // position: 'top-right',
6870
- // }),
6871
- ],
6872
- exports: [TaonNotificationsComponent],
6873
- declarations: [TaonNotificationsComponent],
6874
- providers: [TaonNotificationsService],
6875
- }]
6876
- }] });
6877
-
6878
- //#region @browser
6879
- //#endregion
6880
-
6881
- class TaonSessionPasscodeComponent {
6882
- constructor(element, domSanitizer, cdr) {
6883
- this.element = element;
6884
- this.domSanitizer = domSanitizer;
6885
- this.cdr = cdr;
6886
- this.destroyRef = inject$1(DestroyRef);
6887
- this.display = 'none';
6888
- this.form = new FormGroup({
6889
- passcode: new FormControl(),
6890
- });
6891
- }
6892
- ngOnInit() {
6893
- if (!this.passcode) {
6894
- this.passcode = '123456';
6895
- }
6896
- if (!this.message) {
6897
- this.message = `
6898
- This website is only for testing purpose. Please type passcode bellow to see content.
6899
-
6900
- `;
6901
- }
6902
- // console.log({
6903
- // 'lastPasscode': this.lastPasscode,
6904
- // 'current passcode': this.passcode,
6905
- // 'current message': this.message,
6906
- // })
6907
- // this.width = window.innerWidth;
6908
- // this.height = window.innerHeight;
6909
- this.safeMessage = this.domSanitizer.bypassSecurityTrustHtml(this.message);
6910
- if (this.lastPasscode?.toString() === this.passcode?.toString()) {
6911
- this.hide();
6912
- }
6913
- else {
6914
- this.show();
6915
- this.focus();
6916
- }
6917
- interval(1000)
6918
- .pipe(takeUntilDestroyed(this.destroyRef), tap(() => {
6919
- this.focus();
6920
- }))
6921
- .subscribe();
6922
- }
6923
- submit({ passcode }) {
6924
- if (this.isPasscodeOK(passcode || '')) {
6925
- this.hide();
6926
- }
6927
- else {
6928
- this.clear();
6929
- }
6930
- }
6931
- isPasscodeOK(passcode) {
6932
- this.lastPasscode = passcode.toString();
6933
- return this.passcode.toString() === passcode;
6934
- }
6935
- ngAfterViewInit() { }
6936
- focus() {
6937
- this.element.nativeElement.querySelector('input')?.focus();
6938
- }
6939
- hide() {
6940
- this.display = 'none';
6941
- }
6942
- show() {
6943
- this.display = 'block';
6944
- }
6945
- clear() {
6946
- this.form.controls.passcode.setValue('');
6947
- }
6948
- onKeyup(event) {
6949
- if (this.isPasscodeOK(event.target.value || '')) {
6950
- this.hide();
6951
- return;
6952
- }
6953
- const key = event.keyCode || event.charCode;
6954
- if (key === 8 || key === 46 || this.lastPasscode?.length > 5) {
6955
- this.clear();
6956
- }
6957
- }
6958
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonSessionPasscodeComponent, deps: [{ token: i0.ElementRef, self: true }, { token: i1.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
6959
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TaonSessionPasscodeComponent, isStandalone: true, selector: "taon-session-passcode", inputs: { passcode: "passcode", message: "message" }, host: { properties: { "style.display": "this.display" } }, ngImport: i0, template: "<form\n [formGroup]=\"form\"\n content=\"notranslate\"\n autocomplete=\"off\"\n (click)=\"focus()\"\n (ngSubmit)=\"submit(form.value)\"\n class=\"flex flex-column align-items-center w-full h-full\">\n <div class=\"flex align-content-center w-full justify-content-center mt-8\">\n <p\n class=\"p-3\"\n style=\"max-width: 400px; min-height: 100px\"\n [innerHtml]=\"safeMessage\"></p>\n </div>\n <input\n type=\"password\"\n class=\"text-5xl md:text-8xl pointer-events-none\"\n #taonpasscode\n (keyup)=\"onKeyup($event)\"\n formControlName=\"passcode\" />\n <!-- placeholder=\"Enter passcode\" -->\n</form>", styles: [":host{position:fixed;background-color:#9f9f9f57;z-index:99999;-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);width:100%;height:100%;display:none}input{background:#fff;border-radius:6px;outline:0px;border:0px;color:gray;text-align:center;width:500px}\n"], dependencies: [{ kind: "ngmodule", type: PasswordModule }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }] }); }
6960
- }
6961
- __decorate([
6962
- (Stor.property.in.localstorage
6963
- .for(TaonSessionPasscodeComponent)
6964
- .withDefaultValue('')),
6965
- __metadata("design:type", String)
6966
- ], TaonSessionPasscodeComponent.prototype, "lastPasscode", void 0);
6967
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonSessionPasscodeComponent, decorators: [{
6968
- type: Component,
6969
- args: [{ selector: 'taon-session-passcode', standalone: true, imports: [PasswordModule, CommonModule, ReactiveFormsModule, FormsModule], template: "<form\n [formGroup]=\"form\"\n content=\"notranslate\"\n autocomplete=\"off\"\n (click)=\"focus()\"\n (ngSubmit)=\"submit(form.value)\"\n class=\"flex flex-column align-items-center w-full h-full\">\n <div class=\"flex align-content-center w-full justify-content-center mt-8\">\n <p\n class=\"p-3\"\n style=\"max-width: 400px; min-height: 100px\"\n [innerHtml]=\"safeMessage\"></p>\n </div>\n <input\n type=\"password\"\n class=\"text-5xl md:text-8xl pointer-events-none\"\n #taonpasscode\n (keyup)=\"onKeyup($event)\"\n formControlName=\"passcode\" />\n <!-- placeholder=\"Enter passcode\" -->\n</form>", styles: [":host{position:fixed;background-color:#9f9f9f57;z-index:99999;-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);width:100%;height:100%;display:none}input{background:#fff;border-radius:6px;outline:0px;border:0px;color:gray;text-align:center;width:500px}\n"] }]
6970
- }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
6971
- type: Self
6972
- }] }, { type: i1.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { passcode: [{
6973
- type: Input
6974
- }], message: [{
6975
- type: Input
6976
- }], display: [{
6977
- type: HostBinding,
6978
- args: ['style.display']
6979
- }] } });
6980
-
6981
- //#region @browser
6982
- //#endregion
6983
-
6984
- //#region @browser
6985
- // import { Models } from 'tnp-models';
6986
- // import type { TaonAdmin } from '../taon-admin-mode-configuration';
6987
- const calculatePercentage = (loaded, total) => Math.floor(loaded * 1.0) / total;
6988
- class TaonProgressBarComponent {
6989
- // options: NgProgressConfig = _.merge(
6990
- // {
6991
- // min: 8,
6992
- // max: 100,
6993
- // speed: 200,
6994
- // trickleSpeed: 300,
6995
- // debounceTime: 0,
6996
- // ease: 'linear',
6997
- // spinnerPosition: 'right',
6998
- // direction: 'ltr+',
6999
- // color: 'gray',
7000
- // fixed: true,
7001
- // meteor: true,
7002
- // spinner: true,
7003
- // thick: false,
7004
- // },
7005
- // _.get(ENV, `plugins['ngx-progressbar']`),
7006
- // );
7007
- constructor() {
7008
- this.handlers = [];
7009
- }
7010
- ngOnInit() { }
7011
- ngOnDestroy() {
7012
- this.handlers.forEach(h => h.unsubscribe());
7013
- }
7014
- ngAfterViewInit() {
7015
- // this.labProgress.set(20)
7016
- this.loadProgressBar(void 0, axios);
7017
- }
7018
- loadProgressBar(config, instance = axios) {
7019
- // let requestsCounter = 0;
7020
- // const setupStartProgress = () => {
7021
- // instance.interceptors.request.use(config => {
7022
- // requestsCounter++;
7023
- // this.labProgress.start();
7024
- // return config;
7025
- // });
7026
- // };
7027
- // const setupUpdateProgress = () => {
7028
- // const update = e => {
7029
- // // NProgress.inc(calculatePercentage(e.loaded, e.total))
7030
- // const percentage = calculatePercentage(e.loaded, e.total) * 100;
7031
- // // console.log(`loaded: ${e.loaded}, total: ${e.total} , pecent: ${percentage}`)
7032
- // this.labProgress.inc(percentage);
7033
- // };
7034
- // instance.defaults.onDownloadProgress = update;
7035
- // instance.defaults.onUploadProgress = update;
7036
- // };
7037
- // const setupStopProgress = () => {
7038
- // const responseFunc = response => {
7039
- // if (--requestsCounter === 0) {
7040
- // this.labProgress.complete();
7041
- // // NProgress.done()
7042
- // }
7043
- // return response;
7044
- // };
7045
- // const errorFunc = error => {
7046
- // if (--requestsCounter === 0) {
7047
- // this.labProgress.complete();
7048
- // // NProgress.done()
7049
- // }
7050
- // return Promise.reject(error);
7051
- // };
7052
- // instance.interceptors.response.use(responseFunc, errorFunc);
7053
- // };
7054
- // setupStartProgress();
7055
- // setupUpdateProgress();
7056
- // setupStopProgress();
7057
- /* */
7058
- /* */
7059
- /* */
7060
- /* */
7061
- /* */
7062
- /* */
7063
- /* */
7064
- /* */
7065
- /* */
7066
- /* */
7067
- /* */
7068
- /* */
7069
- /* */
7070
- /* */
7071
- /* */
7072
- /* */
7073
- /* */
7074
- /* */
7075
- /* */
7076
- /* */
7077
- /* */
7078
- /* */
7079
- /* */
7080
- /* */
7081
- /* */
7082
- /* */
7083
- /* */
7084
- /* */
7085
- /* */
7086
- /* */
7087
- /* */
7088
- /* */
7089
- /* */
7090
- /* */
7091
- /* */
7092
- /* */
7093
- /* */
7094
- /* */
7095
- /* */
7096
- /* */
7097
- /* */
7098
- /* */
7099
- /* */
7100
- /* */
7101
- /* */
7102
- /* */
7103
- /* */
7104
- /* */
7105
- }
7106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7107
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TaonProgressBarComponent, isStandalone: false, selector: "taon-progress-bar", inputs: { isDesktop: "isDesktop" }, viewQueries: [{ propertyName: "labProgress", first: true, predicate: ["labProgress"], descendants: true }], ngImport: i0, template: "<!-- <ng-progress\n #labProgress\n id=\"lab\"\n [meteor]=\"options.meteor\"\n [color]=\"options.color\"\n [min]=\"options.min\"\n [max]=\"options.max\"\n [speed]=\"options.speed\"\n [spinner]=\"\n options.spinner &&\n (!admin.adminPanelIsOpen ||\n (admin.adminPanelIsOpen && (admin.draggablePopupMode || !isDesktop)))\n \"\n [spinnerPosition]=\"options.spinnerPosition\"\n [direction]=\"options.direction\"\n [trickleSpeed]=\"options.trickleSpeed\"\n [debounceTime]=\"options.debounceTime\"\n [ease]=\"options.ease\"\n [thick]=\"options.thick\"\n [fixed]=\"options.fixed\">\n</ng-progress>\n(started)=\"onProgressStarted()\"\n (completed)=\"onProgressCompleted()\" -->", styles: [":host{display:block}\n"] }); }
7108
- }
7109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonProgressBarComponent, decorators: [{
7110
- type: Component,
7111
- args: [{ selector: 'taon-progress-bar', standalone: false, template: "<!-- <ng-progress\n #labProgress\n id=\"lab\"\n [meteor]=\"options.meteor\"\n [color]=\"options.color\"\n [min]=\"options.min\"\n [max]=\"options.max\"\n [speed]=\"options.speed\"\n [spinner]=\"\n options.spinner &&\n (!admin.adminPanelIsOpen ||\n (admin.adminPanelIsOpen && (admin.draggablePopupMode || !isDesktop)))\n \"\n [spinnerPosition]=\"options.spinnerPosition\"\n [direction]=\"options.direction\"\n [trickleSpeed]=\"options.trickleSpeed\"\n [debounceTime]=\"options.debounceTime\"\n [ease]=\"options.ease\"\n [thick]=\"options.thick\"\n [fixed]=\"options.fixed\">\n</ng-progress>\n(started)=\"onProgressStarted()\"\n (completed)=\"onProgressCompleted()\" -->", styles: [":host{display:block}\n"] }]
7112
- }], ctorParameters: () => [], propDecorators: { labProgress: [{
7113
- type: ViewChild,
7114
- args: ['labProgress']
7115
- }], isDesktop: [{
7116
- type: Input
7117
- }] } });
7118
-
7119
- //#region @browser
7120
- // import { NgProgressConfig, NgProgressModule } from 'ngx-progressbar';
7121
- class TaonProgressBarModule {
7122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7123
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: TaonProgressBarModule, declarations: [TaonProgressBarComponent], imports: [CommonModule], exports: [TaonProgressBarComponent] }); }
7124
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonProgressBarModule, imports: [CommonModule] }); }
7125
- }
7126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonProgressBarModule, decorators: [{
7127
- type: NgModule,
7128
- args: [{
7129
- imports: [CommonModule,
7130
- // NgProgressModule.withConfig({})
7131
- ],
7132
- declarations: [TaonProgressBarComponent],
7133
- exports: [TaonProgressBarComponent],
7134
- }]
7135
- }] });
7136
-
7137
- //#region @browser
7138
- //#endregion
7139
-
7140
- //#region imports
7141
- //#endregion
7142
- //#region constants
7143
- const log = Log.create('Table wrapper', Level.__NOTHING);
7144
- const defaultColumns = [
7145
- {
7146
- header: 'ID',
7147
- field: 'id',
7148
- },
7149
- {
7150
- header: 'NAME',
7151
- field: 'name',
7152
- },
7153
- ];
7154
- //#endregion
7155
- class TaonTableComponent {
7156
- constructor() {
7157
- //#region fields
7158
- this.pageNumber = 1;
7159
- this.pageSize = 5;
7160
- this.allowedColumns = [];
7161
- this.rows = _.times(20, id => {
7162
- return {
7163
- id,
7164
- name: `Amazing ${id} row `,
7165
- };
7166
- });
7167
- this.columns = defaultColumns;
7168
- this.pageSizeOptions = [5, 10, 20];
7169
- this.expansionChange = new EventEmitter();
7170
- this.addingItem = new EventEmitter();
7171
- this.expandable = false;
7172
- this.showPaginator = true;
7173
- this.isLoading = false;
7174
- this.totalElements = 100;
7175
- this.sub = new Subscription();
7176
- }
7177
- //#endregion
7178
- get entity() {
7179
- return this.entityCrudController?.entityClassResolveFn();
7180
- }
7181
- //#region hooks
7182
- //#region hooks / on init
7183
- async ngOnInit() {
7184
- if (!this.hideSearch) {
7185
- this.searchInputChange$ = defer(() => fromEvent(this.search?.nativeElement, 'keyup')).pipe(map(c => c.target['value']), debounceTime(500), distinctUntilChanged(), share(), tap(data => {
7186
- console.log({ data });
7187
- }));
7188
- this.sub.add(this.searchInputChange$.subscribe());
7189
- }
7190
- const entityClass = this.entity;
7191
- if (!!entityClass) {
7192
- this.rows = [];
7193
- }
7194
- this.expandable = !!this.expansionTemplate;
7195
- // this.arrayDataConfig.set.pagination.rowDisplayed(5);
7196
- log.i('this.columns,', this.columns);
7197
- const columnsConfigSameAsDefault = _.isEqual(this.columns, defaultColumns);
7198
- // console.log({
7199
- // columnsConfigSameAsDefault
7200
- // })
7201
- if (entityClass && columnsConfigSameAsDefault) {
7202
- log.i('this.crud.entity', CLASS.describeProperites(entityClass));
7203
- try {
7204
- const props = CLASS.describeProperites(entityClass);
7205
- let columns = props
7206
- .filter(prop => this.allowedColumns.length > 0
7207
- ? this.allowedColumns.includes(prop)
7208
- : true)
7209
- .map(prop => {
7210
- return {
7211
- header: _.upperCase(prop),
7212
- field: prop,
7213
- };
7214
- });
7215
- const extra = this.allowedColumns.filter(f => !props.includes(f));
7216
- columns = [
7217
- ...columns,
7218
- ...extra.map(prop => {
7219
- return {
7220
- header: _.upperCase(prop),
7221
- field: prop,
7222
- };
7223
- }),
7224
- ];
7225
- // console.log({
7226
- // extra
7227
- // });
7228
- if (!this.expandable) {
7229
- for (let index = 0; index < columns.length; index++) {
7230
- const col = columns[index];
7231
- delete col.showExpand;
7232
- }
7233
- }
7234
- this.columns = columns;
7235
- }
7236
- catch (error) {
7237
- console.error(error);
7238
- }
7239
- }
7240
- else {
7241
- }
7242
- if (!this.entity) {
7243
- this.showPaginator = false;
7244
- }
7245
- await this.getData();
7246
- }
7247
- //#endregion
7248
- //#region hooks / on destroy
7249
- ngOnDestroy() {
7250
- this.sub.unsubscribe();
7251
- }
7252
- //#endregion
7253
- //#endregion
7254
- //#region methods
7255
- //#region methods / get next page
7256
- async getNextPage(e) {
7257
- // console.log({
7258
- // e
7259
- // });
7260
- this.pageNumber = e.pageIndex + 1;
7261
- this.pageSize = e.pageSize;
7262
- await this.getData();
7263
- }
7264
- //#endregion
7265
- //#region methods / retrive data
7266
- async getData() {
7267
- if (!this.entity) {
7268
- return;
7269
- }
7270
- this.isLoading = true;
7271
- // console.log('PAGINTION FETCH DATA START!')
7272
- const controller = this.entityCrudController;
7273
- if (controller) {
7274
- const data = await controller.pagination(this.pageNumber, this.pageSize)
7275
- .received;
7276
- // console.log('PAGINTION DATA', {
7277
- // data,
7278
- // });
7279
- const totalElements = Number(data.headers.get(Taon.symbols.old.X_TOTAL_COUNT));
7280
- const rows = data.body.json;
7281
- // console.log('PAGINTION DATA', {
7282
- // rows,
7283
- // totalElements,
7284
- // });
7285
- this.totalElements = totalElements;
7286
- this.rows = rows.map(d => {
7287
- for (const key in d) {
7288
- if (Object.prototype.hasOwnProperty.call(d, key)) {
7289
- const elem = d[key];
7290
- if (_.isObject(elem)) {
7291
- d[key] = json5.stringify(d[key]);
7292
- }
7293
- }
7294
- }
7295
- // console.log({ d })
7296
- return d;
7297
- });
7298
- }
7299
- this.isLoading = false;
7300
- }
7301
- //#endregion
7302
- //#region methods / expansion row
7303
- expansionRow(e) {
7304
- this.expansionChange.next(e);
7305
- }
7306
- //#endregion
7307
- //#region methods / on table context menu
7308
- onTableContextMenu(e) {
7309
- // if (this.rowHref) {
7310
- // this.router.navigateByUrl(this.rowHref)
7311
- // }
7312
- log.i('context menu event', e);
7313
- }
7314
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7315
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TaonTableComponent, isStandalone: false, selector: "taon-table", inputs: { pageNumber: "pageNumber", pageSize: "pageSize", allowedColumns: "allowedColumns", expansionTemplate: "expansionTemplate", rows: "rows", entityCrudController: "entityCrudController", columns: "columns", pageSizeOptions: "pageSizeOptions", hideSearch: "hideSearch" }, outputs: { expansionChange: "expansionChange", addingItem: "addingItem" }, viewQueries: [{ propertyName: "search", first: true, predicate: ["search"], descendants: true, static: true }], ngImport: i0, template: "<br />\n<columns-container *ngIf=\"!hideSearch\">\n <column grow>\n <mat-form-field class=\"search-input\">\n <input\n matInput\n placeholder=\"Type to search table...\"\n #search />\n </mat-form-field>\n </column>\n <column [width]=\"80\">\n <button\n mat-fab\n [ngClass]=\"{ 'half-opacity': !search.value }\"\n class=\"undo-button\"\n color=\"secondary\"\n (click)=\"search.value = ''\">\n <mat-icon>close </mat-icon>\n </button>\n </column>\n\n <column [width]=\"80\">\n <button\n mat-fab\n (click)=\"addingItem.next()\"\n class=\"undo-button\"\n color=\"primary\">\n <mat-icon>add</mat-icon>\n </button>\n </column>\n</columns-container>\n\n<mtx-grid\n *ngIf=\"rows && columns\"\n [data]=\"rows\"\n [columns]=\"columns\"\n [expandable]=\"expandable\"\n [expansionTemplate]=\"expansionTemplate\"\n (expansionChange)=\"expansionRow($event)\"\n [length]=\"totalElements\"\n [loading]=\"isLoading\"\n [pageOnFront]=\"false\"\n [pageIndex]=\"pageNumber - 1\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [showPaginator]=\"showPaginator\"\n (page)=\"getNextPage($event)\">\n</mtx-grid>", styles: [":host{min-height:250px}.search-input{width:100%}.undo-button{margin-left:10px}.half-opacity{opacity:.2}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i3.MtxGrid, selector: "mtx-grid", inputs: ["displayedColumns", "columns", "data", "length", "loading", "trackBy", "columnResizable", "emptyValuePlaceholder", "pageOnFront", "showPaginator", "pageDisabled", "showFirstLastButtons", "pageIndex", "pageSize", "pageSizeOptions", "hidePageSize", "paginationTemplate", "sortOnFront", "sortActive", "sortDirection", "sortDisableClear", "sortDisabled", "sortStart", "rowHover", "rowStriped", "expandable", "expansionTemplate", "multiSelectable", "multiSelectionWithClick", "rowSelectable", "hideRowSelectionCheckbox", "disableRowClickSelection", "rowSelectionFormatter", "rowClassFormatter", "rowSelected", "cellSelectable", "showToolbar", "toolbarTitle", "toolbarTemplate", "columnHideable", "columnHideableChecked", "columnSortable", "columnPinnable", "columnPinOptions", "showColumnMenuButton", "columnMenuButtonText", "columnMenuButtonType", "columnMenuButtonColor", "columnMenuButtonClass", "columnMenuButtonIcon", "columnMenuButtonFontIcon", "columnMenuButtonSvgIcon", "showColumnMenuHeader", "columnMenuHeaderText", "columnMenuHeaderTemplate", "showColumnMenuFooter", "columnMenuFooterText", "columnMenuFooterTemplate", "noResultText", "noResultTemplate", "headerTemplate", "headerExtraTemplate", "cellTemplate", "useContentRowTemplate", "useContentHeaderRowTemplate", "useContentFooterRowTemplate", "showSummary", "summaryTemplate", "showSidebar", "sidebarTemplate", "showStatusbar", "statusbarTemplate"], outputs: ["page", "sortChange", "rowClick", "rowContextMenu", "expansionChange", "rowSelectedChange", "cellSelectedChange", "columnChange"], exportAs: ["mtxGrid"] }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i1$2.ColumnsComponent, selector: "columns-container" }, { kind: "component", type: i1$2.ColumnComponent, selector: "column", inputs: ["width"] }, { kind: "directive", type: i1$2.DirectiveGrow, selector: "[grow]" }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }] }); }
7316
- }
7317
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonTableComponent, decorators: [{
7318
- type: Component,
7319
- args: [{ selector: 'taon-table', standalone: false, template: "<br />\n<columns-container *ngIf=\"!hideSearch\">\n <column grow>\n <mat-form-field class=\"search-input\">\n <input\n matInput\n placeholder=\"Type to search table...\"\n #search />\n </mat-form-field>\n </column>\n <column [width]=\"80\">\n <button\n mat-fab\n [ngClass]=\"{ 'half-opacity': !search.value }\"\n class=\"undo-button\"\n color=\"secondary\"\n (click)=\"search.value = ''\">\n <mat-icon>close </mat-icon>\n </button>\n </column>\n\n <column [width]=\"80\">\n <button\n mat-fab\n (click)=\"addingItem.next()\"\n class=\"undo-button\"\n color=\"primary\">\n <mat-icon>add</mat-icon>\n </button>\n </column>\n</columns-container>\n\n<mtx-grid\n *ngIf=\"rows && columns\"\n [data]=\"rows\"\n [columns]=\"columns\"\n [expandable]=\"expandable\"\n [expansionTemplate]=\"expansionTemplate\"\n (expansionChange)=\"expansionRow($event)\"\n [length]=\"totalElements\"\n [loading]=\"isLoading\"\n [pageOnFront]=\"false\"\n [pageIndex]=\"pageNumber - 1\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [showPaginator]=\"showPaginator\"\n (page)=\"getNextPage($event)\">\n</mtx-grid>", styles: [":host{min-height:250px}.search-input{width:100%}.undo-button{margin-left:10px}.half-opacity{opacity:.2}\n"] }]
7320
- }], propDecorators: { pageNumber: [{
7321
- type: Input
7322
- }], pageSize: [{
7323
- type: Input
7324
- }], allowedColumns: [{
7325
- type: Input
7326
- }], expansionTemplate: [{
7327
- type: Input
7328
- }], rows: [{
7329
- type: Input
7330
- }], entityCrudController: [{
7331
- type: Input
7332
- }], columns: [{
7333
- type: Input
7334
- }], pageSizeOptions: [{
7335
- type: Input
7336
- }], hideSearch: [{
7337
- type: Input
7338
- }], expansionChange: [{
7339
- type: Output
7340
- }], addingItem: [{
7341
- type: Output
7342
- }], search: [{
7343
- type: ViewChild,
7344
- args: ['search', { static: true }]
7345
- }] } });
7346
-
7347
- class TaonTableModule {
7348
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7349
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: TaonTableModule, declarations: [TaonTableComponent], imports: [CommonModule,
7350
- MatSelectModule,
7351
- MtxGridModule,
7352
- MatFormFieldModule,
7353
- MatInputModule,
7354
- StaticColumnsModule,
7355
- MatIconModule,
7356
- MatButtonModule,
7357
- FormsModule,
7358
- ReactiveFormsModule], exports: [TaonTableComponent] }); }
7359
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonTableModule, imports: [CommonModule,
7360
- MatSelectModule,
7361
- MtxGridModule,
7362
- MatFormFieldModule,
7363
- MatInputModule,
7364
- StaticColumnsModule,
7365
- MatIconModule,
7366
- MatButtonModule,
7367
- FormsModule,
7368
- ReactiveFormsModule] }); }
7369
- }
7370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonTableModule, decorators: [{
7371
- type: NgModule,
7372
- args: [{
7373
- imports: [
7374
- CommonModule,
7375
- MatSelectModule,
7376
- MtxGridModule,
7377
- MatFormFieldModule,
7378
- MatInputModule,
7379
- StaticColumnsModule,
7380
- MatIconModule,
7381
- MatButtonModule,
7382
- FormsModule,
7383
- ReactiveFormsModule,
7384
- ],
7385
- exports: [TaonTableComponent],
7386
- declarations: [TaonTableComponent],
7387
- }]
7388
- }] });
7389
-
7390
- //#region @browser
7391
- //#endregion
7392
-
7393
- class TaonAdminModeConfigurationComponent {
7394
- get opened() {
7395
- return !this.isIframe && this.taonAdminService.adminPanelIsOpen;
7396
- }
7397
- set opened(v) {
7398
- if (v && !this.openedOnce) {
7399
- this.openedOnce = true;
7400
- }
7401
- if (this.wasOpenDraggablePopup) {
7402
- this.wasOpenDraggablePopup = false;
7403
- this.taonAdminService.draggablePopupMode = true;
7404
- }
7405
- this.taonAdminService.adminPanelIsOpen = v;
7406
- }
7407
- //#endregion
7408
- //#region constructor
7409
- constructor(breakpointsService) {
7410
- this.breakpointsService = breakpointsService;
7411
- //#region fields & getters
7412
- this.$destroy = new Subject();
7413
- this.cdr = inject$1(ChangeDetectorRef);
7414
- this.taonAdminService = TaonAdminService.Instance;
7415
- this.isWebSQLMode = Helpers.isWebSQL;
7416
- this.hideTaonToolsInProduction = ENV.hideTaonToolsInProduction && ENV.angularProd;
7417
- this.isIframe = window.location !== window.parent.location;
7418
- this.height = 100;
7419
- this.openedOnce = false;
7420
- this.reloading = false;
7421
- this.showPasscode = _.isString(ENV.passcode) || _.isObject(ENV.passcode);
7422
- this.passcode = _.isString(ENV.passcode)
7423
- ? ENV.passcode
7424
- : _.isObject(ENV.passcode)
7425
- ? ENV.passcode.code
7426
- : '';
7427
- this.message = _.isObject(ENV.passcode)
7428
- ? ENV.passcode.message
7429
- : void 0;
7430
- this.dragPositionZero = { x: 0, y: 0 };
7431
- this.taonAdminModeConfigurationDataChanged = new EventEmitter();
7432
- this.taonAdminModeConfigurationData = {};
7433
- this.breakpointsService
7434
- .listenTo()
7435
- .pipe(takeUntil(this.$destroy))
7436
- .subscribe(breakpoint => {
7437
- // @ts-ignore
7438
- this.isDesktop = breakpoint === 'desktop';
7439
- });
7440
- }
7441
- //#endregion
7442
- //#region hooks
7443
- async ngOnInit() {
7444
- await Stor.awaitPendingOperatios();
7445
- // console.log('PENDING OPERATION AWAITED ', this.selectedIndex)
7446
- // console.log('draggablePopupModeFullScreen ', this.taonAdminService.draggablePopupModeFullScreen)
7447
- this.dragPosition = { x: this.dragPositionX, y: this.dragPositionY };
7448
- this.openedOnce = this.opened;
7449
- // console.log('ONINIT',{
7450
- // 'this.openedOnce': this.openedOnce,
7451
- // 'this.dragPosition': this.dragPosition,
7452
- // this: this
7453
- // })
7454
- }
7455
- ngAfterViewInit() {
7456
- //Called after ngAfterContentInit when the component's view has been initialized. Applies to components only.
7457
- //Add 'implements AfterViewInit' to the class.
7458
- setTimeout(() => {
7459
- this.height = window.innerHeight;
7460
- // TODO QUICK_FIX for draggble popup proper first index load on tabs
7461
- if (this.taonAdminService.draggablePopupMode) {
7462
- this.reloadTabs();
7463
- }
7464
- // const tablist = (this.tabGroup?._tabHeader?._elementRef?.nativeElement as HTMLElement).querySelector('.mat-tab-list') as HTMLElement;
7465
- // if (tablist) {
7466
- // tablist.style.transform = 'translateX(0px)'; // TODO QUICK_FIX
7467
- // }
7468
- });
7469
- }
7470
- ngOnDestroy() {
7471
- this.$destroy.next(void 0);
7472
- this.$destroy.complete();
7473
- }
7474
- onResize(event) {
7475
- this.height = window.innerHeight;
7476
- }
7477
- //#endregion
7478
- //#region methods
7479
- async reloadTabs() {
7480
- return new Promise(resolve => {
7481
- this.reloading = true;
7482
- setTimeout(() => {
7483
- this.reloading = false;
7484
- console.log('reloading done');
7485
- resolve();
7486
- });
7487
- });
7488
- }
7489
- async toogle() {
7490
- // await stor.setItem(IS_OPEN_ADMIN, !this.opened);
7491
- this.opened = !this.opened;
7492
- }
7493
- async toogleFullScreen() {
7494
- this.taonAdminService.draggablePopupMode = true;
7495
- this.taonAdminService.draggablePopupModeFullScreen =
7496
- !this.taonAdminService.draggablePopupModeFullScreen;
7497
- this.resetDrag();
7498
- }
7499
- resetDrag() {
7500
- this.dragPositionX = 0;
7501
- this.dragPositionY = 0;
7502
- this.dragPosition = { x: this.dragPositionX, y: this.dragPositionY };
7503
- }
7504
- moved(c) {
7505
- this.dragPositionX += c.distance.x;
7506
- this.dragPositionY += c.distance.y;
7507
- }
7508
- scrollTabs(event) {
7509
- return;
7510
- // event?.stopPropagation();
7511
- // event?.stopImmediatePropagation(); // TODO not working
7512
- // const children = this.tabGroup._tabHeader._elementRef.nativeElement.children;
7513
- // const back = children[0];
7514
- // const forward = children[2];
7515
- // if (event.deltaY > 0) {
7516
- // forward.click();
7517
- // } else {
7518
- // back.click();
7519
- // }
7520
- }
7521
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonAdminModeConfigurationComponent, deps: [{ token: i1$2.BreakpointsService }], target: i0.ɵɵFactoryTarget.Component }); }
7522
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TaonAdminModeConfigurationComponent, isStandalone: true, selector: "taon-admin-mode-configuration", inputs: { taonAdminModeConfigurationData: "taonAdminModeConfigurationData" }, outputs: { taonAdminModeConfigurationDataChanged: "taonAdminModeConfigurationDataChanged" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "tabGroup", first: true, predicate: ["tabGroup"], descendants: true }], ngImport: i0, template: "<!-- #region basic global components -->\n<taon-session-passcode\n *ngIf=\"showPasscode\"\n [passcode]=\"passcode\"\n [message]=\"message\" />\n<!-- <taon-progress-bar [isDesktop]=\"isDesktop\"></taon-progress-bar> -->\n<!-- <taon-notifications></taon-notifications> -->\n<button\n mat-fab\n class=\"fab-button\"\n color=\"accent\"\n aria-label=\"Taon Admin Mode\"\n *ngIf=\"\n !taonAdminService.draggablePopupMode &&\n isDesktop &&\n !isIframe &&\n !hideTaonToolsInProduction\n \"\n (click)=\"toogle()\">\n <mat-icon>build</mat-icon>\n</button>\n<!-- #endregion -->\n\n<!-- #region small hidden button -->\n<!-- <button class=\"admin-show-button\"\n *ngIf=\"!taonAdminService.draggablePopupMode && isDesktop\"\n (click)=\"toogle()\"> Admin </button> -->\n<!-- #endregion -->\n\n<ng-template #contentNoScroll>\n <ng-content> </ng-content>\n</ng-template>\n\n<ng-template #content>\n <ng-scrollbar>\n <ng-container [ngTemplateOutlet]=\"contentNoScroll\"></ng-container>\n </ng-scrollbar>\n</ng-template>\n\n<!-- #region admin tabs -->\n<ng-template #adminTabs>\n <!-- #region admin tabs / header -->\n <div class=\"taon-header-admin-wrapper\">\n <columns-container\n class=\"taon-header-admin\"\n [ngClass]=\"{ 'draggable-column': taonAdminService.draggablePopupMode }\">\n <column\n width=\"200\"\n class=\"logo-header\">\n <img\n *ngIf=\"openedOnce\"\n src=\"assets/assets-for/taon/assets/shared/logo-header-admin-mode.png\" />\n </column>\n\n <column grow>\n <!-- <span>Super Admin Mode</span> -->\n </column>\n\n <column\n width=\"40\"\n *ngIf=\"\n !taonAdminService.draggablePopupModeFullScreen &&\n !taonAdminService.draggablePopupMode\n \">\n <button\n mat-icon-button\n *ngIf=\"taonAdminService.draggablePopupMode\"\n (click)=\"\n taonAdminService.draggablePopupMode = false;\n opened = false;\n wasOpenDraggablePopup = true\n \"\n class=\"admin-close-button\">\n <mat-icon>close </mat-icon>\n </button>\n\n <button\n mat-icon-button\n *ngIf=\"!taonAdminService.draggablePopupMode\"\n (click)=\"toogle()\"\n class=\"admin-close-button\">\n <mat-icon>close</mat-icon>\n </button>\n </column>\n\n <column width=\"40\">\n <button\n mat-icon-button\n *ngIf=\"!taonAdminService.draggablePopupModeFullScreen\"\n class=\"admin-close-button\"\n (click)=\"toogleFullScreen()\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button\n mat-icon-button\n *ngIf=\"taonAdminService.draggablePopupModeFullScreen\"\n class=\"admin-close-button\"\n (click)=\"toogleFullScreen()\">\n <mat-icon>close_fullscreen</mat-icon>\n </button>\n </column>\n\n <column\n width=\"40\"\n *ngIf=\"!taonAdminService.draggablePopupModeFullScreen\">\n <button\n mat-icon-button\n *ngIf=\"!taonAdminService.draggablePopupMode\"\n (click)=\"taonAdminService.draggablePopupMode = true\"\n class=\"admin-close-button\">\n <mat-icon>launch</mat-icon>\n </button>\n\n <button\n mat-icon-button\n *ngIf=\"taonAdminService.draggablePopupMode\"\n (click)=\"taonAdminService.draggablePopupMode = false; resetDrag()\"\n class=\"admin-close-button\">\n <mat-icon style=\"transform: rotate(180deg)\">login</mat-icon>\n </button>\n </column>\n </columns-container>\n </div>\n <!-- #endregion -->\n\n <columns-container\n [ngClass]=\"{ 'draggable-column': taonAdminService.draggablePopupMode }\">\n <column grow>\n <mat-tab-group\n dynamicHeight\n (wheel)=\"scrollTabs($event)\"\n #tabGroup\n [selectedIndex]=\"selectedIndex\"\n (selectedIndexChange)=\"selectedIndex = $event\">\n <mat-tab label=\"DB/Cache\">\n <section>\n <mat-card>\n <mat-card-header>\n <mat-card-subtitle>WEBSQL MODE</mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <mat-checkbox\n [disabled]=\"!isWebSQLMode\"\n [ngModel]=\"taonAdminService.keepWebsqlDbDataAfterReload\"\n (change)=\"\n taonAdminService.setKeepWebsqlDbDataAfterReload(\n $event.checked\n )\n \">\n Don't remove data when reloading\n </mat-checkbox>\n </mat-card-content>\n </mat-card>\n </section>\n <br />\n <taon-db-admin />\n </mat-tab>\n </mat-tab-group>\n </column>\n </columns-container>\n</ng-template>\n<!-- #endregion -->\n\n<!-- #region small/mobile draggable popup windows -->\n<div\n class=\"draggable-popup-mode-window\"\n *ngIf=\"\n taonAdminService.draggablePopupMode &&\n !taonAdminService.draggablePopupModeFullScreen &&\n !isIframe\n \"\n cdkDrag\n [cdkDragFreeDragPosition]=\"dragPosition\"\n (cdkDragEnded)=\"moved($event)\">\n <ng-scrollbar>\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n </ng-scrollbar>\n</div>\n<!-- #endregion -->\n\n<!-- #region fullscreen draggable popup window -->\n<div\n class=\"draggable-popup-mode-window-full\"\n *ngIf=\"\n taonAdminService.draggablePopupMode &&\n taonAdminService.draggablePopupModeFullScreen &&\n !isIframe &&\n !reloading\n \"\n cdkDrag\n [cdkDragFreeDragPosition]=\"dragPositionZero\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n</div>\n<!-- #endregion -->\n\n<!-- #region content when not in draggable (or fullscreen draggable) popup -->\n<div\n [style.height.px]=\"height\"\n *ngIf=\"\n (isIframe ||\n !isDesktop ||\n taonAdminService.draggablePopupMode ||\n taonAdminService.draggablePopupModeFullScreen) &&\n !reloading\n \"\n style=\"width: 100%; display: block\"\n class=\"content\">\n <ng-container\n [ngTemplateOutlet]=\"\n taonAdminService.scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n</div>\n<!-- #endregion -->\n\n<!-- #region draggable popup window -->\n<mat-drawer-container\n *ngIf=\"!taonAdminService.draggablePopupMode && isDesktop && !isIframe\"\n class=\"example-container\"\n [style.height.px]=\"height\"\n style=\"background-color: transparent\"\n (backdropClick)=\"opened = false\"\n [hasBackdrop]=\"false\">\n <mat-drawer\n #drawer\n style=\"width: 580px\"\n [opened]=\"opened\"\n [mode]=\"'side'\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n </mat-drawer>\n <mat-drawer-content style=\"overflow: hidden\">\n <ng-container\n *ngIf=\"!taonAdminService.draggablePopupMode && !reloading\"\n [ngTemplateOutlet]=\"\n taonAdminService.scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n </mat-drawer-content>\n</mat-drawer-container>\n<!-- #endregion -->", styles: ["section{display:block;padding:10px}section>*{margin-top:0!important;margin-bottom:10px!important}section>*:last-child{margin-bottom:0!important}:host{display:block}.draggable-column{display:block!important;width:100%!important}.admin-show-button{position:fixed;bottom:100px;left:-15px;z-index:2147483647;transform:rotate(90deg);border:0px;color:#fff;background:gray;opacity:.1;cursor:pointer}.admin-show-button:hover{opacity:1}.taon-ui-super-admin-mode{font-family:JosefinSans-Bold;text-align:right;margin-right:10px}mat-drawer{margin:0;background-color:#dcdcdc!important}.taon-header-admin-wrapper{overflow:hidden;width:100%;display:block}.taon-header-admin{background:#fff;box-shadow:0 -9px 6px 6px #000;height:47px}.taon-header-admin .logo-header img{height:18px;padding:8px;position:relative;float:left;top:7px;box-sizing:content-box;transform:scale(1.5);left:49px}.draggable-popup-mode-window{width:600px;height:500px;border:solid 1px #ccc;color:#000000de;cursor:move;justify-content:center;align-items:center;background:#fff;border-radius:4px;position:fixed;z-index:105;background-color:#dcdcdc!important;transition:box-shadow .2s cubic-bezier(0,0,.2,1);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.draggable-popup-mode-window:active{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.draggable-popup-mode-window-full{width:100%;height:100%;overflow:scroll;color:#000000de;justify-content:center;align-items:center;background:#fff;border-radius:4px;position:fixed;z-index:105;background-color:#dcdcdc!important}.admin-close-button{float:right}.fab-button{position:fixed;right:110px;bottom:100px;z-index:10;background-color:#dcdcdc;color:#8f8f8f}.full-tabs{padding:10px}.mat-drawer-container-full-screen{background-color:red}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: StaticColumnsModule }, { kind: "component", type: i1$2.ColumnsComponent, selector: "columns-container" }, { kind: "component", type: i1$2.ColumnComponent, selector: "column", inputs: ["width"] }, { kind: "directive", type: i1$2.DirectiveGrow, selector: "[grow]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgScrollbarModule }, { kind: "component", type: i4.NgScrollbar, selector: "ng-scrollbar:not([externalViewport])", exportAs: ["ngScrollbar"] }, { kind: "ngmodule", type: TaonProgressBarModule }, { kind: "ngmodule", type: TaonNotificationsModule }, { kind: "ngmodule", type: TaonFullMaterialModule }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i6.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i7.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i7.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i7.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: i8.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i10.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i10.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: i10.MatDrawerContent, selector: "mat-drawer-content" }, { kind: "component", type: i11.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i11.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: // TODO import only partial things
7523
- // TaonDbAdminComponent,
7524
- TaonSessionPasscodeComponent, selector: "taon-session-passcode", inputs: ["passcode", "message"] }] }); }
7525
- }
7526
- __decorate([
7527
- (Stor.property.in.localstorage
7528
- .for(TaonAdminModeConfigurationComponent)
7529
- .withDefaultValue(0)),
7530
- __metadata("design:type", Number)
7531
- ], TaonAdminModeConfigurationComponent.prototype, "dragPositionX", void 0);
7532
- __decorate([
7533
- (Stor.property.in.localstorage
7534
- .for(TaonAdminModeConfigurationComponent)
7535
- .withDefaultValue(0)),
7536
- __metadata("design:type", Number)
7537
- ], TaonAdminModeConfigurationComponent.prototype, "dragPositionY", void 0);
7538
- __decorate([
7539
- (Stor.property.in.localstorage
7540
- .for(TaonAdminModeConfigurationComponent)
7541
- .withDefaultValue(0)),
7542
- __metadata("design:type", Number)
7543
- ], TaonAdminModeConfigurationComponent.prototype, "selectedIndex", void 0);
7544
- __decorate([
7545
- (Stor.property.in.localstorage
7546
- .for(TaonAdminModeConfigurationComponent)
7547
- .withDefaultValue(false)),
7548
- __metadata("design:type", Boolean)
7549
- ], TaonAdminModeConfigurationComponent.prototype, "wasOpenDraggablePopup", void 0);
7550
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TaonAdminModeConfigurationComponent, decorators: [{
7551
- type: Component,
7552
- args: [{ selector: 'taon-admin-mode-configuration', standalone: true, imports: [
7553
- CommonModule,
7554
- StaticColumnsModule,
7555
- FormsModule,
7556
- NgScrollbarModule,
7557
- TaonProgressBarModule,
7558
- TaonNotificationsModule,
7559
- TaonFullMaterialModule, // TODO import only partial things
7560
- // TaonDbAdminComponent,
7561
- TaonSessionPasscodeComponent,
7562
- ], template: "<!-- #region basic global components -->\n<taon-session-passcode\n *ngIf=\"showPasscode\"\n [passcode]=\"passcode\"\n [message]=\"message\" />\n<!-- <taon-progress-bar [isDesktop]=\"isDesktop\"></taon-progress-bar> -->\n<!-- <taon-notifications></taon-notifications> -->\n<button\n mat-fab\n class=\"fab-button\"\n color=\"accent\"\n aria-label=\"Taon Admin Mode\"\n *ngIf=\"\n !taonAdminService.draggablePopupMode &&\n isDesktop &&\n !isIframe &&\n !hideTaonToolsInProduction\n \"\n (click)=\"toogle()\">\n <mat-icon>build</mat-icon>\n</button>\n<!-- #endregion -->\n\n<!-- #region small hidden button -->\n<!-- <button class=\"admin-show-button\"\n *ngIf=\"!taonAdminService.draggablePopupMode && isDesktop\"\n (click)=\"toogle()\"> Admin </button> -->\n<!-- #endregion -->\n\n<ng-template #contentNoScroll>\n <ng-content> </ng-content>\n</ng-template>\n\n<ng-template #content>\n <ng-scrollbar>\n <ng-container [ngTemplateOutlet]=\"contentNoScroll\"></ng-container>\n </ng-scrollbar>\n</ng-template>\n\n<!-- #region admin tabs -->\n<ng-template #adminTabs>\n <!-- #region admin tabs / header -->\n <div class=\"taon-header-admin-wrapper\">\n <columns-container\n class=\"taon-header-admin\"\n [ngClass]=\"{ 'draggable-column': taonAdminService.draggablePopupMode }\">\n <column\n width=\"200\"\n class=\"logo-header\">\n <img\n *ngIf=\"openedOnce\"\n src=\"assets/assets-for/taon/assets/shared/logo-header-admin-mode.png\" />\n </column>\n\n <column grow>\n <!-- <span>Super Admin Mode</span> -->\n </column>\n\n <column\n width=\"40\"\n *ngIf=\"\n !taonAdminService.draggablePopupModeFullScreen &&\n !taonAdminService.draggablePopupMode\n \">\n <button\n mat-icon-button\n *ngIf=\"taonAdminService.draggablePopupMode\"\n (click)=\"\n taonAdminService.draggablePopupMode = false;\n opened = false;\n wasOpenDraggablePopup = true\n \"\n class=\"admin-close-button\">\n <mat-icon>close </mat-icon>\n </button>\n\n <button\n mat-icon-button\n *ngIf=\"!taonAdminService.draggablePopupMode\"\n (click)=\"toogle()\"\n class=\"admin-close-button\">\n <mat-icon>close</mat-icon>\n </button>\n </column>\n\n <column width=\"40\">\n <button\n mat-icon-button\n *ngIf=\"!taonAdminService.draggablePopupModeFullScreen\"\n class=\"admin-close-button\"\n (click)=\"toogleFullScreen()\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button\n mat-icon-button\n *ngIf=\"taonAdminService.draggablePopupModeFullScreen\"\n class=\"admin-close-button\"\n (click)=\"toogleFullScreen()\">\n <mat-icon>close_fullscreen</mat-icon>\n </button>\n </column>\n\n <column\n width=\"40\"\n *ngIf=\"!taonAdminService.draggablePopupModeFullScreen\">\n <button\n mat-icon-button\n *ngIf=\"!taonAdminService.draggablePopupMode\"\n (click)=\"taonAdminService.draggablePopupMode = true\"\n class=\"admin-close-button\">\n <mat-icon>launch</mat-icon>\n </button>\n\n <button\n mat-icon-button\n *ngIf=\"taonAdminService.draggablePopupMode\"\n (click)=\"taonAdminService.draggablePopupMode = false; resetDrag()\"\n class=\"admin-close-button\">\n <mat-icon style=\"transform: rotate(180deg)\">login</mat-icon>\n </button>\n </column>\n </columns-container>\n </div>\n <!-- #endregion -->\n\n <columns-container\n [ngClass]=\"{ 'draggable-column': taonAdminService.draggablePopupMode }\">\n <column grow>\n <mat-tab-group\n dynamicHeight\n (wheel)=\"scrollTabs($event)\"\n #tabGroup\n [selectedIndex]=\"selectedIndex\"\n (selectedIndexChange)=\"selectedIndex = $event\">\n <mat-tab label=\"DB/Cache\">\n <section>\n <mat-card>\n <mat-card-header>\n <mat-card-subtitle>WEBSQL MODE</mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <mat-checkbox\n [disabled]=\"!isWebSQLMode\"\n [ngModel]=\"taonAdminService.keepWebsqlDbDataAfterReload\"\n (change)=\"\n taonAdminService.setKeepWebsqlDbDataAfterReload(\n $event.checked\n )\n \">\n Don't remove data when reloading\n </mat-checkbox>\n </mat-card-content>\n </mat-card>\n </section>\n <br />\n <taon-db-admin />\n </mat-tab>\n </mat-tab-group>\n </column>\n </columns-container>\n</ng-template>\n<!-- #endregion -->\n\n<!-- #region small/mobile draggable popup windows -->\n<div\n class=\"draggable-popup-mode-window\"\n *ngIf=\"\n taonAdminService.draggablePopupMode &&\n !taonAdminService.draggablePopupModeFullScreen &&\n !isIframe\n \"\n cdkDrag\n [cdkDragFreeDragPosition]=\"dragPosition\"\n (cdkDragEnded)=\"moved($event)\">\n <ng-scrollbar>\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n </ng-scrollbar>\n</div>\n<!-- #endregion -->\n\n<!-- #region fullscreen draggable popup window -->\n<div\n class=\"draggable-popup-mode-window-full\"\n *ngIf=\"\n taonAdminService.draggablePopupMode &&\n taonAdminService.draggablePopupModeFullScreen &&\n !isIframe &&\n !reloading\n \"\n cdkDrag\n [cdkDragFreeDragPosition]=\"dragPositionZero\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n</div>\n<!-- #endregion -->\n\n<!-- #region content when not in draggable (or fullscreen draggable) popup -->\n<div\n [style.height.px]=\"height\"\n *ngIf=\"\n (isIframe ||\n !isDesktop ||\n taonAdminService.draggablePopupMode ||\n taonAdminService.draggablePopupModeFullScreen) &&\n !reloading\n \"\n style=\"width: 100%; display: block\"\n class=\"content\">\n <ng-container\n [ngTemplateOutlet]=\"\n taonAdminService.scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n</div>\n<!-- #endregion -->\n\n<!-- #region draggable popup window -->\n<mat-drawer-container\n *ngIf=\"!taonAdminService.draggablePopupMode && isDesktop && !isIframe\"\n class=\"example-container\"\n [style.height.px]=\"height\"\n style=\"background-color: transparent\"\n (backdropClick)=\"opened = false\"\n [hasBackdrop]=\"false\">\n <mat-drawer\n #drawer\n style=\"width: 580px\"\n [opened]=\"opened\"\n [mode]=\"'side'\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n </mat-drawer>\n <mat-drawer-content style=\"overflow: hidden\">\n <ng-container\n *ngIf=\"!taonAdminService.draggablePopupMode && !reloading\"\n [ngTemplateOutlet]=\"\n taonAdminService.scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n </mat-drawer-content>\n</mat-drawer-container>\n<!-- #endregion -->", styles: ["section{display:block;padding:10px}section>*{margin-top:0!important;margin-bottom:10px!important}section>*:last-child{margin-bottom:0!important}:host{display:block}.draggable-column{display:block!important;width:100%!important}.admin-show-button{position:fixed;bottom:100px;left:-15px;z-index:2147483647;transform:rotate(90deg);border:0px;color:#fff;background:gray;opacity:.1;cursor:pointer}.admin-show-button:hover{opacity:1}.taon-ui-super-admin-mode{font-family:JosefinSans-Bold;text-align:right;margin-right:10px}mat-drawer{margin:0;background-color:#dcdcdc!important}.taon-header-admin-wrapper{overflow:hidden;width:100%;display:block}.taon-header-admin{background:#fff;box-shadow:0 -9px 6px 6px #000;height:47px}.taon-header-admin .logo-header img{height:18px;padding:8px;position:relative;float:left;top:7px;box-sizing:content-box;transform:scale(1.5);left:49px}.draggable-popup-mode-window{width:600px;height:500px;border:solid 1px #ccc;color:#000000de;cursor:move;justify-content:center;align-items:center;background:#fff;border-radius:4px;position:fixed;z-index:105;background-color:#dcdcdc!important;transition:box-shadow .2s cubic-bezier(0,0,.2,1);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.draggable-popup-mode-window:active{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.draggable-popup-mode-window-full{width:100%;height:100%;overflow:scroll;color:#000000de;justify-content:center;align-items:center;background:#fff;border-radius:4px;position:fixed;z-index:105;background-color:#dcdcdc!important}.admin-close-button{float:right}.fab-button{position:fixed;right:110px;bottom:100px;z-index:10;background-color:#dcdcdc;color:#8f8f8f}.full-tabs{padding:10px}.mat-drawer-container-full-screen{background-color:red}\n"] }]
7563
- }], ctorParameters: () => [{ type: i1$2.BreakpointsService }], propDecorators: { tabGroup: [{
7564
- type: ViewChild,
7565
- args: ['tabGroup']
7566
- }], taonAdminModeConfigurationDataChanged: [{
7567
- type: Output
7568
- }], taonAdminModeConfigurationData: [{
7569
- type: Input
7570
- }], onResize: [{
7571
- type: HostListener,
7572
- args: ['window:resize', ['$event']]
7573
- }] } });
7574
-
7575
- //#region @browser
7576
- //#endregion
7577
-
7578
6390
  // TODO export all things
7579
6391
  var Taon;
7580
6392
  (function (Taon) {
@@ -7628,5 +6440,5 @@ var Taon;
7628
6440
  * Generated bundle index. Do not edit.
7629
6441
  */
7630
6442
 
7631
- export { BaseContext, BaseController, BaseCustomRepository, BaseEntity, BaseMigration, BaseProvider, BaseRepository, CURRENT_HOST_BACKEND_PORT, ClassHelpers, EndpointContext, Models, SafePipe, TAON_CONTEXT, Taon, TaonAdminModeConfigurationComponent, TaonAdminService, TaonEntityKeysToOmitArr, TaonFullMaterialModule, TaonGithubForkMeCornerComponent, TaonGithubForkMeCornerModule, TaonInjectHTMLDirective, TaonLongPress, TaonNotificationOptions, TaonNotificationsComponent, TaonNotificationsModule, TaonNotificationsService, TaonProgressBarComponent, TaonProgressBarModule, TaonSessionPasscodeComponent, TaonTableComponent, TaonTableModule, createContext, inject };
7632
- //# sourceMappingURL=taon.mjs.map
6443
+ export { BaseContext, BaseController, BaseCustomRepository, BaseEntity, BaseMigration, BaseProvider, BaseRepository, CURRENT_HOST_BACKEND_PORT, ClassHelpers, EndpointContext, Models, TAON_CONTEXT, Taon, TaonAdminService, TaonEntityKeysToOmitArr, createContext, inject };
6444
+ //# sourceMappingURL=taon.mjs.map