taon-ui 21.0.28 → 21.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/fesm2022/taon-ui-browser.mjs +742 -586
- package/browser/fesm2022/taon-ui-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/taon-ui-browser.d.ts +191 -139
- package/browser-prod/fesm2022/taon-ui-browser.mjs +743 -587
- package/browser-prod/fesm2022/taon-ui-browser.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/taon-ui-browser.d.ts +191 -139
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/index._auto-generated_.d.ts +28 -0
- package/lib/index._auto-generated_.js +47 -3
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +1 -3
- package/lib/index.js +15 -2
- package/lib/index.js.map +1 -1
- package/lib/layouts/taon-bootstrap-navbar/index.js +2 -2
- package/lib/package.json +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-iframe-sync/index.js +2 -2
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-table/index.js +2 -2
- package/lib/ui/taon-table/taon-table.component.d.ts +2 -1
- package/lib/ui/taon-theme/taon-theme.component.d.ts +5 -0
- package/lib/ui/taon-theme/taon-theme.service.d.ts +20 -0
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/index._auto-generated_.d.ts +7 -0
- package/lib-prod/index._auto-generated_.js +31 -3
- package/lib-prod/index._auto-generated_.js.map +1 -1
- package/lib-prod/index.d.ts +1 -1
- package/lib-prod/index.js +1 -1
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/layouts/taon-bootstrap-navbar/index.d.ts +1 -1
- package/lib-prod/layouts/taon-bootstrap-navbar/index.js +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/ui/directives/index.d.ts +1 -1
- package/lib-prod/ui/directives/index.js +1 -1
- package/lib-prod/ui/index.d.ts +1 -1
- package/lib-prod/ui/index.js +1 -1
- package/lib-prod/ui/taon-github-fork-me-corner/index.d.ts +1 -1
- package/lib-prod/ui/taon-github-fork-me-corner/index.js +1 -1
- package/lib-prod/ui/taon-github-fork-me-ribbon/index.d.ts +1 -1
- package/lib-prod/ui/taon-github-fork-me-ribbon/index.js +1 -1
- package/lib-prod/ui/taon-iframe-sync/index.d.ts +1 -1
- package/lib-prod/ui/taon-iframe-sync/index.js +1 -1
- package/lib-prod/ui/taon-progress-bar/index.d.ts +1 -1
- package/lib-prod/ui/taon-progress-bar/index.js +1 -1
- package/lib-prod/ui/taon-session-passcode/index.d.ts +1 -1
- package/lib-prod/ui/taon-session-passcode/index.js +1 -1
- package/lib-prod/ui/taon-table/index.d.ts +1 -1
- package/lib-prod/ui/taon-table/index.js +1 -1
- package/package.json +1 -1
- package/scss/global.scss +1 -1
- package/scss/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.scss +1 -1
- package/websql/fesm2022/taon-ui-websql.mjs +742 -586
- package/websql/fesm2022/taon-ui-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/taon-ui-websql.d.ts +191 -139
- package/websql-prod/fesm2022/taon-ui-websql.mjs +743 -587
- package/websql-prod/fesm2022/taon-ui-websql.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/taon-ui-websql.d.ts +191 -139
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, HostListener, HostBinding, Output, Input, Directive, Pipe, NgModule, Component, Injectable, inject, DestroyRef, Self, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
-
import { Log, Level } from 'ng2-logger/browser';
|
|
4
|
-
import { _, json5, Helpers } from 'tnp-core/browser';
|
|
5
|
-
import * as i1 from '@angular/platform-browser';
|
|
6
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
7
1
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
8
|
-
import * as i5
|
|
2
|
+
import * as i5 from '@angular/cdk/drag-drop';
|
|
9
3
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
10
4
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
11
5
|
import { CdkStepperModule } from '@angular/cdk/stepper';
|
|
12
6
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
13
7
|
import { CdkTreeModule } from '@angular/cdk/tree';
|
|
8
|
+
import * as i0 from '@angular/core';
|
|
9
|
+
import { NgModule, Input, ChangeDetectionStrategy, Component, Pipe, Directive, EventEmitter, HostListener, HostBinding, Output, Injectable, ViewChild, inject, DestroyRef, Self, ChangeDetectorRef, PLATFORM_ID, signal, effect } from '@angular/core';
|
|
14
10
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
15
11
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
16
12
|
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
|
@@ -28,9 +24,9 @@ import { MatDialogModule } from '@angular/material/dialog';
|
|
|
28
24
|
import { MatDividerModule } from '@angular/material/divider';
|
|
29
25
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
30
26
|
import { MatGridListModule } from '@angular/material/grid-list';
|
|
31
|
-
import * as
|
|
27
|
+
import * as i9 from '@angular/material/icon';
|
|
32
28
|
import { MatIconModule } from '@angular/material/icon';
|
|
33
|
-
import * as i2$
|
|
29
|
+
import * as i2$3 from '@angular/material/input';
|
|
34
30
|
import { MatInputModule } from '@angular/material/input';
|
|
35
31
|
import { MatListModule } from '@angular/material/list';
|
|
36
32
|
import { MatMenuModule } from '@angular/material/menu';
|
|
@@ -41,6 +37,7 @@ import { MatRadioModule } from '@angular/material/radio';
|
|
|
41
37
|
import { MatSelectModule } from '@angular/material/select';
|
|
42
38
|
import * as i10 from '@angular/material/sidenav';
|
|
43
39
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
40
|
+
import * as i1$3 from '@angular/material/slide-toggle';
|
|
44
41
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
45
42
|
import { MatSliderModule } from '@angular/material/slider';
|
|
46
43
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
@@ -52,201 +49,64 @@ import { MatTabsModule } from '@angular/material/tabs';
|
|
|
52
49
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
53
50
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
54
51
|
import { MatTreeModule } from '@angular/material/tree';
|
|
55
|
-
import * as i2
|
|
56
|
-
import { CommonModule, NgIf } from '@angular/common';
|
|
57
|
-
import
|
|
58
|
-
import
|
|
52
|
+
import * as i2 from '@angular/common';
|
|
53
|
+
import { CommonModule, NgIf, isPlatformBrowser } from '@angular/common';
|
|
54
|
+
import * as i2$1 from '@ng-bootstrap/ng-bootstrap';
|
|
55
|
+
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
|
|
56
|
+
import { ModalModule } from 'ngx-bootstrap/modal';
|
|
57
|
+
import * as i1 from '@angular/platform-browser';
|
|
58
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
59
|
+
import { Log, Level } from 'ng2-logger/browser';
|
|
60
|
+
import { _, Helpers, json5 } from 'tnp-core/browser';
|
|
59
61
|
import { __decorate, __metadata } from 'tslib';
|
|
60
|
-
import
|
|
61
|
-
import * as i2 from '@angular/forms';
|
|
62
|
+
import * as i2$2 from '@angular/forms';
|
|
62
63
|
import { FormGroup, FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
63
|
-
import
|
|
64
|
-
import {
|
|
64
|
+
import * as i4 from 'ngx-scrollbar';
|
|
65
|
+
import { NgScrollbarModule } from 'ngx-scrollbar';
|
|
66
|
+
import { interval, tap, Subject, takeUntil, Subscription, defer, fromEvent, map, debounceTime, distinctUntilChanged as distinctUntilChanged$1, share } from 'rxjs';
|
|
67
|
+
import * as i1$2 from 'static-columns/browser';
|
|
68
|
+
import { StaticColumnsModule } from 'static-columns/browser';
|
|
69
|
+
import { TaonAdminService, Symbols } from 'taon/browser';
|
|
65
70
|
import { StorPropertyInLocalStorage, Stor } from 'taon-storage/browser';
|
|
71
|
+
import { Resource, getDefaultModel } from 'ng2-rest/browser';
|
|
72
|
+
import * as i1$1 from '@ngneat/hot-toast';
|
|
66
73
|
import axios from 'axios';
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
74
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
75
|
+
import { PasswordModule } from 'primeng/password';
|
|
76
|
+
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
|
77
|
+
import { distinctUntilChanged, takeUntil as takeUntil$1, filter } from 'rxjs/operators';
|
|
69
78
|
import * as i3 from '@ng-matero/extensions/grid';
|
|
70
79
|
import { MtxGridModule } from '@ng-matero/extensions/grid';
|
|
71
|
-
import * as i1$2 from 'static-columns/browser';
|
|
72
|
-
import { StaticColumnsModule } from 'static-columns/browser';
|
|
73
80
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
74
|
-
import * as i4 from 'ngx-scrollbar';
|
|
75
|
-
import { NgScrollbarModule } from 'ngx-scrollbar';
|
|
76
|
-
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
|
77
|
-
import { distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, filter } from 'rxjs/operators';
|
|
78
|
-
import * as i2$3 from '@ng-bootstrap/ng-bootstrap';
|
|
79
|
-
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
|
|
80
|
-
import { ModalModule } from 'ngx-bootstrap/modal';
|
|
81
|
-
|
|
82
|
-
//#region imports
|
|
83
|
-
//#endregion
|
|
84
|
-
const log$1 = Log.create(`[taon-helpers] long-press`, Level.__NOTHING);
|
|
85
|
-
class TaonLongPress {
|
|
86
|
-
constructor() {
|
|
87
|
-
this.pressDuration = 1000;
|
|
88
|
-
this.onLongPress = new EventEmitter();
|
|
89
|
-
this.onLongPressing = new EventEmitter();
|
|
90
|
-
this.onLongPressEnd = new EventEmitter();
|
|
91
|
-
this.mouseX = 0;
|
|
92
|
-
this.mouseY = 0;
|
|
93
|
-
this.allowTrigger = false;
|
|
94
|
-
this.triggerEnd = _.debounce(() => {
|
|
95
|
-
this.endPress();
|
|
96
|
-
}, 500);
|
|
97
|
-
}
|
|
98
|
-
get press() {
|
|
99
|
-
return this.pressing;
|
|
100
|
-
}
|
|
101
|
-
get longPress() {
|
|
102
|
-
return this.longPressing;
|
|
103
|
-
}
|
|
104
|
-
onMouseDown(event) {
|
|
105
|
-
// don't do right/middle clicks
|
|
106
|
-
log$1.d(`MOUSE DOWN `);
|
|
107
|
-
if (event.which !== 1)
|
|
108
|
-
return;
|
|
109
|
-
this.allowTrigger = true;
|
|
110
|
-
this.mouseX = event.clientX;
|
|
111
|
-
this.mouseY = event.clientY;
|
|
112
|
-
this.pressing = true;
|
|
113
|
-
this.longPressing = false;
|
|
114
|
-
this.timeout = setTimeout(() => {
|
|
115
|
-
if (this.allowTrigger) {
|
|
116
|
-
this.longPressing = true;
|
|
117
|
-
log$1.d(`long pressing start pressDuration:${this.pressDuration} `);
|
|
118
|
-
this.onLongPress.emit(event);
|
|
119
|
-
this.loop(event);
|
|
120
|
-
}
|
|
121
|
-
}, this.pressDuration);
|
|
122
|
-
this.loop(event);
|
|
123
|
-
}
|
|
124
|
-
onMouseMove(event) {
|
|
125
|
-
if (this.pressing && !this.longPressing) {
|
|
126
|
-
const xThres = event.clientX - this.mouseX > 10;
|
|
127
|
-
const yThres = event.clientY - this.mouseY > 10;
|
|
128
|
-
if (xThres || yThres) {
|
|
129
|
-
this.endPress();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
loop(event) {
|
|
134
|
-
if (this.longPressing) {
|
|
135
|
-
this.timeout = setTimeout(() => {
|
|
136
|
-
log$1.d(`emil longpressing`);
|
|
137
|
-
this.triggerEnd();
|
|
138
|
-
this.onLongPressing.emit(event);
|
|
139
|
-
this.loop(event);
|
|
140
|
-
}, 50);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
endPress(emit = true) {
|
|
144
|
-
this.allowTrigger = false;
|
|
145
|
-
clearTimeout(this.timeout);
|
|
146
|
-
this.longPressing = false;
|
|
147
|
-
this.pressing = false;
|
|
148
|
-
if (emit) {
|
|
149
|
-
log$1.d(`EMIT END`);
|
|
150
|
-
this.onLongPressEnd.emit(true);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
log$1.d(`NOT EMIT END`);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
onMouseUp() {
|
|
157
|
-
this.endPress(false);
|
|
158
|
-
}
|
|
159
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonLongPress, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
160
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", 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 }); }
|
|
161
|
-
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonLongPress, decorators: [{
|
|
163
|
-
type: Directive,
|
|
164
|
-
args: [{
|
|
165
|
-
selector: '[taonLongPress]',
|
|
166
|
-
standalone: true,
|
|
167
|
-
}]
|
|
168
|
-
}], propDecorators: { pressDuration: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], onLongPress: [{
|
|
171
|
-
type: Output
|
|
172
|
-
}], onLongPressing: [{
|
|
173
|
-
type: Output
|
|
174
|
-
}], onLongPressEnd: [{
|
|
175
|
-
type: Output
|
|
176
|
-
}], press: [{
|
|
177
|
-
type: HostBinding,
|
|
178
|
-
args: ['class.press']
|
|
179
|
-
}], longPress: [{
|
|
180
|
-
type: HostBinding,
|
|
181
|
-
args: ['class.longpress']
|
|
182
|
-
}], onMouseDown: [{
|
|
183
|
-
type: HostListener,
|
|
184
|
-
args: ['mousedown', ['$event']]
|
|
185
|
-
}], onMouseMove: [{
|
|
186
|
-
type: HostListener,
|
|
187
|
-
args: ['mousemove', ['$event']]
|
|
188
|
-
}], onMouseUp: [{
|
|
189
|
-
type: HostListener,
|
|
190
|
-
args: ['mouseup']
|
|
191
|
-
}] } });
|
|
192
|
-
|
|
193
|
-
//#region imports
|
|
194
|
-
//#endregion
|
|
195
|
-
class TaonInjectHTMLDirective {
|
|
196
|
-
set taonInjectHTML(content) {
|
|
197
|
-
this.host.nativeElement.innerHTML = content;
|
|
198
|
-
}
|
|
199
|
-
constructor(host) {
|
|
200
|
-
this.host = host;
|
|
201
|
-
}
|
|
202
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonInjectHTMLDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
203
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", type: TaonInjectHTMLDirective, isStandalone: true, selector: "[taonInjectHTML]", inputs: { taonInjectHTML: "taonInjectHTML" }, ngImport: i0 }); }
|
|
204
|
-
}
|
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonInjectHTMLDirective, decorators: [{
|
|
206
|
-
type: Directive,
|
|
207
|
-
args: [{
|
|
208
|
-
selector: '[taonInjectHTML]',
|
|
209
|
-
standalone: true,
|
|
210
|
-
}]
|
|
211
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { taonInjectHTML: [{
|
|
212
|
-
type: Input
|
|
213
|
-
}] } });
|
|
214
81
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
type: Pipe,
|
|
242
|
-
args: [{
|
|
243
|
-
name: 'safe',
|
|
244
|
-
standalone: true,
|
|
245
|
-
}]
|
|
246
|
-
}], ctorParameters: () => [{ type: i1.DomSanitizer }] });
|
|
82
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
83
|
+
/**
|
|
84
|
+
* Autogenerated by current cli tool
|
|
85
|
+
*/
|
|
86
|
+
const BUILD_FRAMEWORK_CLI_NAME = 'tnp';
|
|
87
|
+
/**
|
|
88
|
+
* This value can be change in taon.jsonc (appId)
|
|
89
|
+
*/
|
|
90
|
+
const APP_ID = 'com.domain.example.taon-ui';
|
|
91
|
+
/**
|
|
92
|
+
* Autogenerated by current cli tool
|
|
93
|
+
*/
|
|
94
|
+
const BUILD_BASE_HREF = '';
|
|
95
|
+
/**
|
|
96
|
+
* This value can be change in taon.jsonc (overrideNpmName)
|
|
97
|
+
*/
|
|
98
|
+
const PROJECT_NPM_NAME = 'taon-ui';
|
|
99
|
+
/**
|
|
100
|
+
* Taon version from you project taon.json
|
|
101
|
+
*/
|
|
102
|
+
const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
103
|
+
/**
|
|
104
|
+
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
105
|
+
*/
|
|
106
|
+
const CURRENT_PACKAGE_VERSION = '21.0.31';
|
|
107
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
247
108
|
|
|
248
|
-
|
|
249
|
-
//#endregion
|
|
109
|
+
function myOrgProj() { }
|
|
250
110
|
|
|
251
111
|
//#region imports
|
|
252
112
|
//#endregion
|
|
@@ -389,74 +249,198 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
389
249
|
|
|
390
250
|
//#region imports
|
|
391
251
|
//#endregion
|
|
392
|
-
class
|
|
252
|
+
class TaonBootstrapNavbarComponent {
|
|
393
253
|
constructor() {
|
|
394
|
-
|
|
254
|
+
// @HostBinding('style.minHeight.px') @Input() height: number = 100;
|
|
255
|
+
// @Output() taonBootstrapNavbarDataChanged = new EventEmitter();
|
|
256
|
+
this.isLoggedIn = false;
|
|
257
|
+
this.isCollapsed = false;
|
|
395
258
|
}
|
|
396
|
-
|
|
397
|
-
static { this.ɵ
|
|
259
|
+
ngOnInit() { }
|
|
260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonBootstrapNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
261
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonBootstrapNavbarComponent, isStandalone: true, selector: "taon-bootstrap-navbar", inputs: { isLoggedIn: "isLoggedIn", isCollapsed: "isCollapsed" }, ngImport: i0, template: "<nav class=\"navbar navbar-expand-lg\">\n <div class=\"container-fluid\">\n <a\n class=\"navbar-brand\"\n routerLink=\"/home\"\n routerLinkActive=\"active\">\n Home</a\n >\n <button\n class=\"navbar-toggler\"\n type=\"button\"\n (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n\n <div\n [ngbCollapse]=\"isCollapsed\"\n class=\"navbar-collapse\">\n <ul class=\"navbar-nav ms-auto\">\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/about\"\n routerLinkActive=\"active\"\n >O szkole</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/courses\"\n routerLinkActive=\"active\"\n >Kursy</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/opinions\"\n routerLinkActive=\"active\"\n >Opinie</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/instructors\"\n routerLinkActive=\"active\"\n >Lektorzy</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/contact\"\n routerLinkActive=\"active\"\n >Kontakt</a\n >\n </li>\n <ng-container *ngIf=\"isLoggedIn\">\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/test\"\n routerLinkActive=\"active\"\n ><b>Test plasuj\u0105cy</b></a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/grammar\"\n routerLinkActive=\"active\"\n >Gramatyka</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/vocabulary\"\n routerLinkActive=\"active\"\n >S\u0142ownictwo</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/reading\"\n routerLinkActive=\"active\"\n >Czytanie</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/movies\"\n routerLinkActive=\"active\"\n >Wideo</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/curiosities\"\n routerLinkActive=\"active\"\n >Ciekawostki</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/logout\"\n routerLinkActive=\"active\"\n >Wyloguj</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/profile\"\n routerLinkActive=\"active\"\n >Profil</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/admin\"\n routerLinkActive=\"active\"\n >Admin</a\n >\n </li>\n </ng-container>\n <ng-container *ngIf=\"!isLoggedIn\">\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n href=\"javascript:void(0)\"\n (click)=\"modalLoginRegister()\">\n <span class=\"glyphicon glyphicon-hand-right\"></span> Rejestracja /\n <span class=\"glyphicon glyphicon-user\"></span> Logowanie\n </a>\n </li>\n </ng-container>\n </ul>\n </div>\n </div>\n</nav>\n<ng-content />", styles: [":host{display:block}nav{font-variant-caps:all-small-caps}.navbar-collapse.in{overflow:hidden;max-height:none!important;height:auto!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: NgbCollapseModule }, { kind: "directive", type: i2$1.NgbCollapse, selector: "[ngbCollapse]", inputs: ["animation", "ngbCollapse", "horizontal"], outputs: ["ngbCollapseChange", "shown", "hidden"], exportAs: ["ngbCollapse"] }, { kind: "ngmodule", type: ModalModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
398
262
|
}
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonBootstrapNavbarComponent, decorators: [{
|
|
400
264
|
type: Component,
|
|
401
|
-
args: [{ selector: 'taon-
|
|
402
|
-
}], propDecorators: {
|
|
265
|
+
args: [{ selector: 'taon-bootstrap-navbar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, NgbCollapseModule, ModalModule], standalone: true, template: "<nav class=\"navbar navbar-expand-lg\">\n <div class=\"container-fluid\">\n <a\n class=\"navbar-brand\"\n routerLink=\"/home\"\n routerLinkActive=\"active\">\n Home</a\n >\n <button\n class=\"navbar-toggler\"\n type=\"button\"\n (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n\n <div\n [ngbCollapse]=\"isCollapsed\"\n class=\"navbar-collapse\">\n <ul class=\"navbar-nav ms-auto\">\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/about\"\n routerLinkActive=\"active\"\n >O szkole</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/courses\"\n routerLinkActive=\"active\"\n >Kursy</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/opinions\"\n routerLinkActive=\"active\"\n >Opinie</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/instructors\"\n routerLinkActive=\"active\"\n >Lektorzy</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/contact\"\n routerLinkActive=\"active\"\n >Kontakt</a\n >\n </li>\n <ng-container *ngIf=\"isLoggedIn\">\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/test\"\n routerLinkActive=\"active\"\n ><b>Test plasuj\u0105cy</b></a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/grammar\"\n routerLinkActive=\"active\"\n >Gramatyka</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/vocabulary\"\n routerLinkActive=\"active\"\n >S\u0142ownictwo</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/reading\"\n routerLinkActive=\"active\"\n >Czytanie</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/movies\"\n routerLinkActive=\"active\"\n >Wideo</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/curiosities\"\n routerLinkActive=\"active\"\n >Ciekawostki</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/logout\"\n routerLinkActive=\"active\"\n >Wyloguj</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/profile\"\n routerLinkActive=\"active\"\n >Profil</a\n >\n </li>\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n routerLink=\"/admin\"\n routerLinkActive=\"active\"\n >Admin</a\n >\n </li>\n </ng-container>\n <ng-container *ngIf=\"!isLoggedIn\">\n <li class=\"nav-item\">\n <a\n class=\"nav-link\"\n href=\"javascript:void(0)\"\n (click)=\"modalLoginRegister()\">\n <span class=\"glyphicon glyphicon-hand-right\"></span> Rejestracja /\n <span class=\"glyphicon glyphicon-user\"></span> Logowanie\n </a>\n </li>\n </ng-container>\n </ul>\n </div>\n </div>\n</nav>\n<ng-content />", styles: [":host{display:block}nav{font-variant-caps:all-small-caps}.navbar-collapse.in{overflow:hidden;max-height:none!important;height:auto!important}\n"] }]
|
|
266
|
+
}], propDecorators: { isLoggedIn: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}], isCollapsed: [{
|
|
403
269
|
type: Input
|
|
404
270
|
}] } });
|
|
405
271
|
|
|
406
272
|
//#region imports
|
|
407
273
|
//#endregion
|
|
408
|
-
class
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
274
|
+
class SafePipe {
|
|
275
|
+
constructor(sanitizer) {
|
|
276
|
+
this.sanitizer = sanitizer;
|
|
277
|
+
}
|
|
278
|
+
transform(value, type) {
|
|
279
|
+
switch (type) {
|
|
280
|
+
case 'html':
|
|
281
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
282
|
+
case 'style':
|
|
283
|
+
return this.sanitizer.bypassSecurityTrustStyle(value);
|
|
284
|
+
case 'script':
|
|
285
|
+
return this.sanitizer.bypassSecurityTrustScript(value);
|
|
286
|
+
case 'url':
|
|
287
|
+
return this.sanitizer.bypassSecurityTrustUrl(value);
|
|
288
|
+
case 'resourceUrl':
|
|
289
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
|
290
|
+
default:
|
|
291
|
+
throw new Error(`Invalid safe type specified: ${type}`);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: SafePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
295
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: SafePipe, isStandalone: true, name: "safe" }); }
|
|
412
296
|
}
|
|
413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
414
|
-
type:
|
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: SafePipe, decorators: [{
|
|
298
|
+
type: Pipe,
|
|
415
299
|
args: [{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
declarations: [TaonGithubForkMeCornerComponent],
|
|
419
|
-
providers: [],
|
|
300
|
+
name: 'safe',
|
|
301
|
+
standalone: true,
|
|
420
302
|
}]
|
|
421
|
-
}] });
|
|
422
|
-
|
|
423
|
-
//#region @browser
|
|
424
|
-
//#endregion
|
|
303
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }] });
|
|
425
304
|
|
|
426
305
|
//#region imports
|
|
427
306
|
//#endregion
|
|
428
|
-
class
|
|
429
|
-
|
|
430
|
-
this.
|
|
307
|
+
class TaonInjectHTMLDirective {
|
|
308
|
+
set taonInjectHTML(content) {
|
|
309
|
+
this.host.nativeElement.innerHTML = content;
|
|
431
310
|
}
|
|
432
|
-
|
|
433
|
-
|
|
311
|
+
constructor(host) {
|
|
312
|
+
this.host = host;
|
|
313
|
+
}
|
|
314
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonInjectHTMLDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
315
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", type: TaonInjectHTMLDirective, isStandalone: true, selector: "[taonInjectHTML]", inputs: { taonInjectHTML: "taonInjectHTML" }, ngImport: i0 }); }
|
|
434
316
|
}
|
|
435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
436
|
-
type:
|
|
437
|
-
args: [{
|
|
438
|
-
|
|
317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonInjectHTMLDirective, decorators: [{
|
|
318
|
+
type: Directive,
|
|
319
|
+
args: [{
|
|
320
|
+
selector: '[taonInjectHTML]',
|
|
321
|
+
standalone: true,
|
|
322
|
+
}]
|
|
323
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { taonInjectHTML: [{
|
|
439
324
|
type: Input
|
|
440
325
|
}] } });
|
|
441
326
|
|
|
442
327
|
//#region imports
|
|
443
328
|
//#endregion
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
329
|
+
const log$1 = Log.create(`[taon-helpers] long-press`, Level.WARN, Level.ERROR);
|
|
330
|
+
class TaonLongPress {
|
|
331
|
+
constructor() {
|
|
332
|
+
this.pressDuration = 1000;
|
|
333
|
+
this.onLongPress = new EventEmitter();
|
|
334
|
+
this.onLongPressing = new EventEmitter();
|
|
335
|
+
this.onLongPressEnd = new EventEmitter();
|
|
336
|
+
this.mouseX = 0;
|
|
337
|
+
this.mouseY = 0;
|
|
338
|
+
this.allowTrigger = false;
|
|
339
|
+
this.triggerEnd = _.debounce(() => {
|
|
340
|
+
this.endPress();
|
|
341
|
+
}, 500);
|
|
342
|
+
}
|
|
343
|
+
get press() {
|
|
344
|
+
return this.pressing;
|
|
345
|
+
}
|
|
346
|
+
get longPress() {
|
|
347
|
+
return this.longPressing;
|
|
348
|
+
}
|
|
349
|
+
onMouseDown(event) {
|
|
350
|
+
// don't do right/middle clicks
|
|
351
|
+
log$1.d(`MOUSE DOWN `);
|
|
352
|
+
if (event.which !== 1)
|
|
353
|
+
return;
|
|
354
|
+
this.allowTrigger = true;
|
|
355
|
+
this.mouseX = event.clientX;
|
|
356
|
+
this.mouseY = event.clientY;
|
|
357
|
+
this.pressing = true;
|
|
358
|
+
this.longPressing = false;
|
|
359
|
+
this.timeout = setTimeout(() => {
|
|
360
|
+
if (this.allowTrigger) {
|
|
361
|
+
this.longPressing = true;
|
|
362
|
+
log$1.d(`long pressing start pressDuration:${this.pressDuration} `);
|
|
363
|
+
this.onLongPress.emit(event);
|
|
364
|
+
this.loop(event);
|
|
365
|
+
}
|
|
366
|
+
}, this.pressDuration);
|
|
367
|
+
this.loop(event);
|
|
368
|
+
}
|
|
369
|
+
onMouseMove(event) {
|
|
370
|
+
if (this.pressing && !this.longPressing) {
|
|
371
|
+
const xThres = event.clientX - this.mouseX > 10;
|
|
372
|
+
const yThres = event.clientY - this.mouseY > 10;
|
|
373
|
+
if (xThres || yThres) {
|
|
374
|
+
this.endPress();
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
loop(event) {
|
|
379
|
+
if (this.longPressing) {
|
|
380
|
+
this.timeout = setTimeout(() => {
|
|
381
|
+
log$1.d(`emil longpressing`);
|
|
382
|
+
this.triggerEnd();
|
|
383
|
+
this.onLongPressing.emit(event);
|
|
384
|
+
this.loop(event);
|
|
385
|
+
}, 50);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
endPress(emit = true) {
|
|
389
|
+
this.allowTrigger = false;
|
|
390
|
+
clearTimeout(this.timeout);
|
|
391
|
+
this.longPressing = false;
|
|
392
|
+
this.pressing = false;
|
|
393
|
+
if (emit) {
|
|
394
|
+
log$1.d(`EMIT END`);
|
|
395
|
+
this.onLongPressEnd.emit(true);
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
log$1.d(`NOT EMIT END`);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
onMouseUp() {
|
|
402
|
+
this.endPress(false);
|
|
403
|
+
}
|
|
404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonLongPress, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
405
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", 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 }); }
|
|
448
406
|
}
|
|
449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
450
|
-
type:
|
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonLongPress, decorators: [{
|
|
408
|
+
type: Directive,
|
|
451
409
|
args: [{
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
exports: [TaonGithubForkMeRibbonComponent],
|
|
410
|
+
selector: '[taonLongPress]',
|
|
411
|
+
standalone: true,
|
|
455
412
|
}]
|
|
456
|
-
}]
|
|
413
|
+
}], propDecorators: { pressDuration: [{
|
|
414
|
+
type: Input
|
|
415
|
+
}], onLongPress: [{
|
|
416
|
+
type: Output
|
|
417
|
+
}], onLongPressing: [{
|
|
418
|
+
type: Output
|
|
419
|
+
}], onLongPressEnd: [{
|
|
420
|
+
type: Output
|
|
421
|
+
}], press: [{
|
|
422
|
+
type: HostBinding,
|
|
423
|
+
args: ['class.press']
|
|
424
|
+
}], longPress: [{
|
|
425
|
+
type: HostBinding,
|
|
426
|
+
args: ['class.longpress']
|
|
427
|
+
}], onMouseDown: [{
|
|
428
|
+
type: HostListener,
|
|
429
|
+
args: ['mousedown', ['$event']]
|
|
430
|
+
}], onMouseMove: [{
|
|
431
|
+
type: HostListener,
|
|
432
|
+
args: ['mousemove', ['$event']]
|
|
433
|
+
}], onMouseUp: [{
|
|
434
|
+
type: HostListener,
|
|
435
|
+
args: ['mouseup']
|
|
436
|
+
}] } });
|
|
457
437
|
|
|
458
|
-
|
|
459
|
-
|
|
438
|
+
var ViewMode;
|
|
439
|
+
(function (ViewMode) {
|
|
440
|
+
ViewMode["Add"] = "Add";
|
|
441
|
+
ViewMode["Edit"] = "Edit";
|
|
442
|
+
ViewMode["Preview"] = "Preview";
|
|
443
|
+
})(ViewMode || (ViewMode = {}));
|
|
460
444
|
|
|
461
445
|
//#region imports
|
|
462
446
|
//#endregion
|
|
@@ -553,107 +537,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
553
537
|
//#region @browser
|
|
554
538
|
//#endregion
|
|
555
539
|
|
|
556
|
-
class TaonSessionPasscodeComponent {
|
|
557
|
-
constructor(element, domSanitizer, cdr) {
|
|
558
|
-
this.element = element;
|
|
559
|
-
this.domSanitizer = domSanitizer;
|
|
560
|
-
this.cdr = cdr;
|
|
561
|
-
this.destroyRef = inject(DestroyRef);
|
|
562
|
-
this.display = 'none';
|
|
563
|
-
this.form = new FormGroup({
|
|
564
|
-
passcode: new FormControl(),
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
ngOnInit() {
|
|
568
|
-
if (!this.passcode) {
|
|
569
|
-
this.passcode = '123456';
|
|
570
|
-
}
|
|
571
|
-
if (!this.message) {
|
|
572
|
-
this.message = `
|
|
573
|
-
This website is only for testing purpose. Please type passcode bellow to see content.
|
|
574
|
-
|
|
575
|
-
`;
|
|
576
|
-
}
|
|
577
|
-
// console.log({
|
|
578
|
-
// 'lastPasscode': this.lastPasscode,
|
|
579
|
-
// 'current passcode': this.passcode,
|
|
580
|
-
// 'current message': this.message,
|
|
581
|
-
// })
|
|
582
|
-
// this.width = window.innerWidth;
|
|
583
|
-
// this.height = window.innerHeight;
|
|
584
|
-
this.safeMessage = this.domSanitizer.bypassSecurityTrustHtml(this.message);
|
|
585
|
-
if (this.lastPasscode?.toString() === this.passcode?.toString()) {
|
|
586
|
-
this.hide();
|
|
587
|
-
}
|
|
588
|
-
else {
|
|
589
|
-
this.show();
|
|
590
|
-
this.focus();
|
|
591
|
-
}
|
|
592
|
-
interval(1000)
|
|
593
|
-
.pipe(takeUntilDestroyed(this.destroyRef), tap(() => {
|
|
594
|
-
this.focus();
|
|
595
|
-
}))
|
|
596
|
-
.subscribe();
|
|
597
|
-
}
|
|
598
|
-
submit({ passcode }) {
|
|
599
|
-
if (this.isPasscodeOK(passcode || '')) {
|
|
600
|
-
this.hide();
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
this.clear();
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
isPasscodeOK(passcode) {
|
|
607
|
-
this.lastPasscode = passcode.toString();
|
|
608
|
-
return this.passcode.toString() === passcode;
|
|
609
|
-
}
|
|
610
|
-
ngAfterViewInit() { }
|
|
611
|
-
focus() {
|
|
612
|
-
this.element.nativeElement.querySelector('input')?.focus();
|
|
613
|
-
}
|
|
614
|
-
hide() {
|
|
615
|
-
this.display = 'none';
|
|
616
|
-
}
|
|
617
|
-
show() {
|
|
618
|
-
this.display = 'block';
|
|
619
|
-
}
|
|
620
|
-
clear() {
|
|
621
|
-
this.form.controls.passcode.setValue('');
|
|
622
|
-
}
|
|
623
|
-
onKeyup(event) {
|
|
624
|
-
if (this.isPasscodeOK(event.target.value || '')) {
|
|
625
|
-
this.hide();
|
|
626
|
-
return;
|
|
627
|
-
}
|
|
628
|
-
const key = event.keyCode || event.charCode;
|
|
629
|
-
if (key === 8 || key === 46 || this.lastPasscode?.length > 5) {
|
|
630
|
-
this.clear();
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSessionPasscodeComponent, deps: [{ token: i0.ElementRef, self: true }, { token: i1.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
634
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", 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;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],[formArray],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 }] }); }
|
|
635
|
-
}
|
|
636
|
-
__decorate([
|
|
637
|
-
(StorPropertyInLocalStorage.for(TaonSessionPasscodeComponent).withDefaultValue('')),
|
|
638
|
-
__metadata("design:type", String)
|
|
639
|
-
], TaonSessionPasscodeComponent.prototype, "lastPasscode", void 0);
|
|
640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSessionPasscodeComponent, decorators: [{
|
|
641
|
-
type: Component,
|
|
642
|
-
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;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"] }]
|
|
643
|
-
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
644
|
-
type: Self
|
|
645
|
-
}] }, { type: i1.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { passcode: [{
|
|
646
|
-
type: Input
|
|
647
|
-
}], message: [{
|
|
648
|
-
type: Input
|
|
649
|
-
}], display: [{
|
|
650
|
-
type: HostBinding,
|
|
651
|
-
args: ['style.display']
|
|
652
|
-
}] } });
|
|
653
|
-
|
|
654
|
-
//#region @browser
|
|
655
|
-
//#endregion
|
|
656
|
-
|
|
657
540
|
//#region imports
|
|
658
541
|
//#endregion
|
|
659
542
|
// import {
|
|
@@ -812,259 +695,105 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
812
695
|
//#region @browser
|
|
813
696
|
//#endregion
|
|
814
697
|
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
{
|
|
825
|
-
header: 'NAME',
|
|
826
|
-
field: 'name',
|
|
827
|
-
},
|
|
828
|
-
];
|
|
829
|
-
//#endregion
|
|
830
|
-
class TaonTableComponent {
|
|
831
|
-
constructor() {
|
|
832
|
-
//#region fields
|
|
833
|
-
this.pageNumber = 1;
|
|
834
|
-
this.pageSize = 5;
|
|
835
|
-
this.allowedColumns = [];
|
|
836
|
-
this.rows = _.times(20, id => {
|
|
837
|
-
return {
|
|
838
|
-
id,
|
|
839
|
-
name: `Amazing ${id} row `,
|
|
840
|
-
};
|
|
698
|
+
class TaonSessionPasscodeComponent {
|
|
699
|
+
constructor(element, domSanitizer, cdr) {
|
|
700
|
+
this.element = element;
|
|
701
|
+
this.domSanitizer = domSanitizer;
|
|
702
|
+
this.cdr = cdr;
|
|
703
|
+
this.destroyRef = inject(DestroyRef);
|
|
704
|
+
this.display = 'none';
|
|
705
|
+
this.form = new FormGroup({
|
|
706
|
+
passcode: new FormControl(),
|
|
841
707
|
});
|
|
842
|
-
this.columns = defaultColumns;
|
|
843
|
-
this.pageSizeOptions = [5, 10, 20];
|
|
844
|
-
this.expansionChange = new EventEmitter();
|
|
845
|
-
this.addingItem = new EventEmitter();
|
|
846
|
-
this.expandable = false;
|
|
847
|
-
this.showPaginator = true;
|
|
848
|
-
this.isLoading = false;
|
|
849
|
-
this.totalElements = 100;
|
|
850
|
-
this.sub = new Subscription();
|
|
851
|
-
}
|
|
852
|
-
//#endregion
|
|
853
|
-
get entity() {
|
|
854
|
-
return this.entityCrudController?.entityClassResolveFn();
|
|
855
708
|
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
if (!this.hideSearch) {
|
|
860
|
-
this.searchInputChange$ = defer(() => fromEvent(this.search?.nativeElement, 'keyup')).pipe(map(c => c.target['value']), debounceTime(500), distinctUntilChanged(), share(), tap(data => {
|
|
861
|
-
console.log({ data });
|
|
862
|
-
}));
|
|
863
|
-
this.sub.add(this.searchInputChange$.subscribe());
|
|
709
|
+
ngOnInit() {
|
|
710
|
+
if (!this.passcode) {
|
|
711
|
+
this.passcode = '123456';
|
|
864
712
|
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
713
|
+
if (!this.message) {
|
|
714
|
+
this.message = `
|
|
715
|
+
This website is only for testing purpose. Please type passcode bellow to see content.
|
|
716
|
+
|
|
717
|
+
`;
|
|
868
718
|
}
|
|
869
|
-
this.expandable = !!this.expansionTemplate;
|
|
870
|
-
// this.arrayDataConfig.set.pagination.rowDisplayed(5);
|
|
871
|
-
log.i('this.columns,', this.columns);
|
|
872
|
-
const columnsConfigSameAsDefault = _.isEqual(this.columns, defaultColumns);
|
|
873
719
|
// console.log({
|
|
874
|
-
//
|
|
720
|
+
// 'lastPasscode': this.lastPasscode,
|
|
721
|
+
// 'current passcode': this.passcode,
|
|
722
|
+
// 'current message': this.message,
|
|
875
723
|
// })
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
.filter(prop => this.allowedColumns.length > 0
|
|
882
|
-
? this.allowedColumns.includes(prop)
|
|
883
|
-
: true)
|
|
884
|
-
.map(prop => {
|
|
885
|
-
return {
|
|
886
|
-
header: _.upperCase(prop),
|
|
887
|
-
field: prop,
|
|
888
|
-
};
|
|
889
|
-
});
|
|
890
|
-
const extra = this.allowedColumns.filter(f => !props.includes(f));
|
|
891
|
-
columns = [
|
|
892
|
-
...columns,
|
|
893
|
-
...extra.map(prop => {
|
|
894
|
-
return {
|
|
895
|
-
header: _.upperCase(prop),
|
|
896
|
-
field: prop,
|
|
897
|
-
};
|
|
898
|
-
}),
|
|
899
|
-
];
|
|
900
|
-
// console.log({
|
|
901
|
-
// extra
|
|
902
|
-
// });
|
|
903
|
-
if (!this.expandable) {
|
|
904
|
-
for (let index = 0; index < columns.length; index++) {
|
|
905
|
-
const col = columns[index];
|
|
906
|
-
delete col.showExpand;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
this.columns = columns;
|
|
910
|
-
}
|
|
911
|
-
catch (error) {
|
|
912
|
-
console.error(error);
|
|
913
|
-
}
|
|
724
|
+
// this.width = window.innerWidth;
|
|
725
|
+
// this.height = window.innerHeight;
|
|
726
|
+
this.safeMessage = this.domSanitizer.bypassSecurityTrustHtml(this.message);
|
|
727
|
+
if (this.lastPasscode?.toString() === this.passcode?.toString()) {
|
|
728
|
+
this.hide();
|
|
914
729
|
}
|
|
915
730
|
else {
|
|
731
|
+
this.show();
|
|
732
|
+
this.focus();
|
|
916
733
|
}
|
|
917
|
-
|
|
918
|
-
this.
|
|
734
|
+
interval(1000)
|
|
735
|
+
.pipe(takeUntilDestroyed(this.destroyRef), tap(() => {
|
|
736
|
+
this.focus();
|
|
737
|
+
}))
|
|
738
|
+
.subscribe();
|
|
739
|
+
}
|
|
740
|
+
submit({ passcode }) {
|
|
741
|
+
if (this.isPasscodeOK(passcode || '')) {
|
|
742
|
+
this.hide();
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
this.clear();
|
|
919
746
|
}
|
|
920
|
-
await this.getData();
|
|
921
747
|
}
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
this.sub.unsubscribe();
|
|
748
|
+
isPasscodeOK(passcode) {
|
|
749
|
+
this.lastPasscode = passcode.toString();
|
|
750
|
+
return this.passcode.toString() === passcode;
|
|
926
751
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
//#region methods / get next page
|
|
931
|
-
async getNextPage(e) {
|
|
932
|
-
// console.log({
|
|
933
|
-
// e
|
|
934
|
-
// });
|
|
935
|
-
this.pageNumber = e.pageIndex + 1;
|
|
936
|
-
this.pageSize = e.pageSize;
|
|
937
|
-
await this.getData();
|
|
752
|
+
ngAfterViewInit() { }
|
|
753
|
+
focus() {
|
|
754
|
+
this.element.nativeElement.querySelector('input')?.focus();
|
|
938
755
|
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
756
|
+
hide() {
|
|
757
|
+
this.display = 'none';
|
|
758
|
+
}
|
|
759
|
+
show() {
|
|
760
|
+
this.display = 'block';
|
|
761
|
+
}
|
|
762
|
+
clear() {
|
|
763
|
+
this.form.controls.passcode.setValue('');
|
|
764
|
+
}
|
|
765
|
+
onKeyup(event) {
|
|
766
|
+
if (this.isPasscodeOK(event.target.value || '')) {
|
|
767
|
+
this.hide();
|
|
943
768
|
return;
|
|
944
769
|
}
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
if (controller) {
|
|
949
|
-
const data = await controller.pagination(this.pageNumber, this.pageSize)
|
|
950
|
-
.received;
|
|
951
|
-
// console.log('PAGINTION DATA', {
|
|
952
|
-
// data,
|
|
953
|
-
// });
|
|
954
|
-
const totalElements = Number(data.headers.get(Symbols.old.X_TOTAL_COUNT));
|
|
955
|
-
const rows = data.body.json;
|
|
956
|
-
// console.log('PAGINTION DATA', {
|
|
957
|
-
// rows,
|
|
958
|
-
// totalElements,
|
|
959
|
-
// });
|
|
960
|
-
this.totalElements = totalElements;
|
|
961
|
-
this.rows = rows.map(d => {
|
|
962
|
-
for (const key in d) {
|
|
963
|
-
if (Object.prototype.hasOwnProperty.call(d, key)) {
|
|
964
|
-
const elem = d[key];
|
|
965
|
-
if (_.isObject(elem)) {
|
|
966
|
-
d[key] = json5.stringify(d[key]);
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
// console.log({ d })
|
|
971
|
-
return d;
|
|
972
|
-
});
|
|
770
|
+
const key = event.keyCode || event.charCode;
|
|
771
|
+
if (key === 8 || key === 46 || this.lastPasscode?.length > 5) {
|
|
772
|
+
this.clear();
|
|
973
773
|
}
|
|
974
|
-
this.isLoading = false;
|
|
975
|
-
}
|
|
976
|
-
//#endregion
|
|
977
|
-
//#region methods / expansion row
|
|
978
|
-
expansionRow(e) {
|
|
979
|
-
this.expansionChange.next(e);
|
|
980
|
-
}
|
|
981
|
-
//#endregion
|
|
982
|
-
//#region methods / on table context menu
|
|
983
|
-
onTableContextMenu(e) {
|
|
984
|
-
// if (this.rowHref) {
|
|
985
|
-
// this.router.navigateByUrl(this.rowHref)
|
|
986
|
-
// }
|
|
987
|
-
log.i('context menu event', e);
|
|
988
774
|
}
|
|
989
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
990
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type:
|
|
775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSessionPasscodeComponent, deps: [{ token: i0.ElementRef, self: true }, { token: i1.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
776
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", 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;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$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }] }); }
|
|
991
777
|
}
|
|
992
|
-
|
|
778
|
+
__decorate([
|
|
779
|
+
(StorPropertyInLocalStorage.for(TaonSessionPasscodeComponent).withDefaultValue('')),
|
|
780
|
+
__metadata("design:type", String)
|
|
781
|
+
], TaonSessionPasscodeComponent.prototype, "lastPasscode", void 0);
|
|
782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSessionPasscodeComponent, decorators: [{
|
|
993
783
|
type: Component,
|
|
994
|
-
args: [{ selector: 'taon-
|
|
995
|
-
}],
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
type: Input
|
|
999
|
-
}], allowedColumns: [{
|
|
1000
|
-
type: Input
|
|
1001
|
-
}], expansionTemplate: [{
|
|
1002
|
-
type: Input
|
|
1003
|
-
}], rows: [{
|
|
1004
|
-
type: Input
|
|
1005
|
-
}], entityCrudController: [{
|
|
1006
|
-
type: Input
|
|
1007
|
-
}], columns: [{
|
|
1008
|
-
type: Input
|
|
1009
|
-
}], pageSizeOptions: [{
|
|
784
|
+
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;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"] }]
|
|
785
|
+
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
786
|
+
type: Self
|
|
787
|
+
}] }, { type: i1.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { passcode: [{
|
|
1010
788
|
type: Input
|
|
1011
|
-
}],
|
|
789
|
+
}], message: [{
|
|
1012
790
|
type: Input
|
|
1013
|
-
}],
|
|
1014
|
-
type:
|
|
1015
|
-
|
|
1016
|
-
type: Output
|
|
1017
|
-
}], search: [{
|
|
1018
|
-
type: ViewChild,
|
|
1019
|
-
args: ['search', { static: true }]
|
|
791
|
+
}], display: [{
|
|
792
|
+
type: HostBinding,
|
|
793
|
+
args: ['style.display']
|
|
1020
794
|
}] } });
|
|
1021
795
|
|
|
1022
|
-
//#region
|
|
1023
|
-
//#endregion
|
|
1024
|
-
class TaonTableModule {
|
|
1025
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1026
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, declarations: [TaonTableComponent], imports: [CommonModule,
|
|
1027
|
-
MatSelectModule,
|
|
1028
|
-
MtxGridModule,
|
|
1029
|
-
MatFormFieldModule,
|
|
1030
|
-
MatInputModule,
|
|
1031
|
-
StaticColumnsModule,
|
|
1032
|
-
MatIconModule,
|
|
1033
|
-
MatButtonModule,
|
|
1034
|
-
FormsModule,
|
|
1035
|
-
ReactiveFormsModule], exports: [TaonTableComponent] }); }
|
|
1036
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, imports: [CommonModule,
|
|
1037
|
-
MatSelectModule,
|
|
1038
|
-
MtxGridModule,
|
|
1039
|
-
MatFormFieldModule,
|
|
1040
|
-
MatInputModule,
|
|
1041
|
-
StaticColumnsModule,
|
|
1042
|
-
MatIconModule,
|
|
1043
|
-
MatButtonModule,
|
|
1044
|
-
FormsModule,
|
|
1045
|
-
ReactiveFormsModule] }); }
|
|
1046
|
-
}
|
|
1047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, decorators: [{
|
|
1048
|
-
type: NgModule,
|
|
1049
|
-
args: [{
|
|
1050
|
-
imports: [
|
|
1051
|
-
CommonModule,
|
|
1052
|
-
MatSelectModule,
|
|
1053
|
-
MtxGridModule,
|
|
1054
|
-
MatFormFieldModule,
|
|
1055
|
-
MatInputModule,
|
|
1056
|
-
StaticColumnsModule,
|
|
1057
|
-
MatIconModule,
|
|
1058
|
-
MatButtonModule,
|
|
1059
|
-
FormsModule,
|
|
1060
|
-
ReactiveFormsModule,
|
|
1061
|
-
],
|
|
1062
|
-
exports: [TaonTableComponent],
|
|
1063
|
-
declarations: [TaonTableComponent],
|
|
1064
|
-
}]
|
|
1065
|
-
}] });
|
|
1066
|
-
|
|
1067
|
-
//#region @browser
|
|
796
|
+
//#region @browser
|
|
1068
797
|
//#endregion
|
|
1069
798
|
|
|
1070
799
|
class TaonAdminModeConfigurationComponent {
|
|
@@ -1196,7 +925,7 @@ class TaonAdminModeConfigurationComponent {
|
|
|
1196
925
|
// }
|
|
1197
926
|
}
|
|
1198
927
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonAdminModeConfigurationComponent, deps: [{ token: i1$2.BreakpointsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1199
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", 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-ui/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:15px}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]), [ngScrollbar]", 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], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i6.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { 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
|
|
928
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", 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-ui/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:15px}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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.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]), [ngScrollbar]", exportAs: ["ngScrollbar"] }, { kind: "ngmodule", type: TaonProgressBarModule }, { kind: "ngmodule", type: TaonNotificationsModule }, { kind: "ngmodule", type: TaonFullMaterialModule }, { kind: "directive", type: i5.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], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i6.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { 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: i9.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
|
|
1200
929
|
// TaonDbAdminComponent,
|
|
1201
930
|
TaonSessionPasscodeComponent, selector: "taon-session-passcode", inputs: ["passcode", "message"] }] }); }
|
|
1202
931
|
}
|
|
@@ -1241,6 +970,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1241
970
|
args: ['window:resize', ['$event']]
|
|
1242
971
|
}] } });
|
|
1243
972
|
|
|
973
|
+
//#region imports
|
|
974
|
+
//#endregion
|
|
975
|
+
class TaonGithubForkMeCornerComponent {
|
|
976
|
+
constructor() {
|
|
977
|
+
this.url = 'https://github.com';
|
|
978
|
+
}
|
|
979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeCornerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
980
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonGithubForkMeCornerComponent, isStandalone: false, selector: "taon-github-fork-me-corner", inputs: { url: "url" }, ngImport: i0, template: "<a\n href=\"{{ url }}\"\n class=\"github-corner\"\n 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"] }); }
|
|
981
|
+
}
|
|
982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeCornerComponent, decorators: [{
|
|
983
|
+
type: Component,
|
|
984
|
+
args: [{ selector: 'taon-github-fork-me-corner', standalone: false, template: "<a\n href=\"{{ url }}\"\n class=\"github-corner\"\n 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"] }]
|
|
985
|
+
}], propDecorators: { url: [{
|
|
986
|
+
type: Input
|
|
987
|
+
}] } });
|
|
988
|
+
|
|
989
|
+
//#region imports
|
|
990
|
+
//#endregion
|
|
991
|
+
class TaonGithubForkMeCornerModule {
|
|
992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeCornerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
993
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeCornerModule, declarations: [TaonGithubForkMeCornerComponent], imports: [CommonModule], exports: [TaonGithubForkMeCornerComponent] }); }
|
|
994
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeCornerModule, imports: [CommonModule] }); }
|
|
995
|
+
}
|
|
996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeCornerModule, decorators: [{
|
|
997
|
+
type: NgModule,
|
|
998
|
+
args: [{
|
|
999
|
+
imports: [CommonModule],
|
|
1000
|
+
exports: [TaonGithubForkMeCornerComponent],
|
|
1001
|
+
declarations: [TaonGithubForkMeCornerComponent],
|
|
1002
|
+
providers: [],
|
|
1003
|
+
}]
|
|
1004
|
+
}] });
|
|
1005
|
+
|
|
1006
|
+
//#region imports
|
|
1007
|
+
//#endregion
|
|
1008
|
+
class TaonGithubForkMeRibbonComponent {
|
|
1009
|
+
constructor() {
|
|
1010
|
+
this.url = 'https://github.com';
|
|
1011
|
+
}
|
|
1012
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeRibbonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1013
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonGithubForkMeRibbonComponent, isStandalone: false, selector: "taon-github-fork-me-ribbon", inputs: { url: "url" }, ngImport: i0, template: "<a href=\"{{ url }}\"\n ><img\n decoding=\"async\"\n loading=\"lazy\"\n width=\"149\"\n height=\"149\"\n src=\"data:image/webp;base64,UklGRuoQAABXRUJQVlA4TN4QAAAvlAAlEE0waBvJkXYz3/kj3qpHENH/CbCS2r31JVSA9PQI5BmABoC7aAFItAAuo0O8aIdLmklMXGJ2ssDC4m9sZXPhqJEkR8rn8Ue6COJ87RkCDBpJUlR55h8J718PylgJA97/CYgRiAggVuAwQqeIFYqJSVaUWDVw2dh0QxErCvSLKE6khgYQK2DSDdjwfkBRduvmUsQMaAAaMQPdNABMOASEciIi8Pw1vJ5ElzivEX8rDrVt2zDS/4/bKXtEKAgIABFnaDRb/TKXBvkvlqZtW93IOZZkkiyjwB3YMazzV/KTs882K44ky9CWGRfnHHW363zfKnCv3NVlTbBdsgPK8ExDOCoPqEMnODzTWDUMjZ4iTcquGkZVhZmHmZnkqhOm4ZnGVZgHFFJwxbBt2zBUsf8/Xgy5bSRJEpUzs4f/ts63A1Zt26KSefZ9WIAKDoPySwuHKQHPngC70/4vcuT0RM402UbSRscjRwslyIySo2MpM44cHWuzHVVZc9FCoI2O78wLB5FLxxdp1hRqrnyyImsjZ6uLjB2sNPMvvGaWo65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wh0BKR2IUuGmsIr2oH7xjHlMLn4vyqj6bq1HHLA8bMfbOhFkFvmXy8xnCbotyxc/Og9xFLAVmrbRJo8TBVEdA+SX198xnOd+T+MwoRle2azF30Nclb20Tb6EOIv3ue/kKYMTi6OIRXsaKmNh/XvK1eO16MCrJVWuseG3XQHvAWKezuCETQRS8///XrhVGfqBvsIJHCNA/SEqNOabu1+tzCQAHOXCrc7qAwJ9tn7qgugDhIlDk8wYY7gCKFo8O39GrDWdzTOg8NAogD+GxoQK4LqWh39ns2CeN5iZtZhQsbRVgGZGJUA53tNgfIJgX4CZogiT5MC80betPIdJYGBz+SiRC5HBBMVzNyTQLEWoOMRTkMMgIcEVGr3i63z8x5+SBEWQ3GMP1cqGjQ+9SwppVIlEAsj+duvDkc6YvVNZQgPpdJX7um5qC9J56VRXaRx2kQ4bglJZSjCIbN5ThRAcQDpbpUN8o0EUSGe2Z1xUK0hn7ip7CZnF0lGM0CgdlZ000unboxHd5lPIZieaHL/pHClkM+uIeVUG6cz9NvtPpNOFBunrrFcgnSPnXjrdsYt0pD7gweZBZNNZtgRKcUE6j+nfeOQzSGe2TY6ZJkhnrKbsEjY2kY5C/NM9silk02E++ud+k0Q226UlajcRSSObW5QIO54G6YzAvTgR3EE6f/sBW/EWpLNHpiJLq3zPlI1uXDs13DebkY2sa9lUFhmFf+ko6FQ5oR2l/hU+0vE0+cg0ZBTesYxs/Cccjt1/LCYfzx+9+Vd4xe66SzoCPPfdV2Uil3Xf9xGLxTKZjGnKxV13Ze5SIZcZMDFN2bgLwMQ05cIEE0wkM4O2KRdqE+k0eXmp\"\n class=\"attachment-full size-full\"\n alt=\"Fork me on GitHub\"\n data-recalc-dims=\"1\"\n/></a>", styles: [":host{position:fixed;top:-2px;right:0;transform:rotate(90deg);z-index:2147483647}a{opacity:.7}a:hover{opacity:1}\n"] }); }
|
|
1014
|
+
}
|
|
1015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeRibbonComponent, decorators: [{
|
|
1016
|
+
type: Component,
|
|
1017
|
+
args: [{ selector: 'taon-github-fork-me-ribbon', standalone: false, template: "<a href=\"{{ url }}\"\n ><img\n decoding=\"async\"\n loading=\"lazy\"\n width=\"149\"\n height=\"149\"\n src=\"data:image/webp;base64,UklGRuoQAABXRUJQVlA4TN4QAAAvlAAlEE0waBvJkXYz3/kj3qpHENH/CbCS2r31JVSA9PQI5BmABoC7aAFItAAuo0O8aIdLmklMXGJ2ssDC4m9sZXPhqJEkR8rn8Ue6COJ87RkCDBpJUlR55h8J718PylgJA97/CYgRiAggVuAwQqeIFYqJSVaUWDVw2dh0QxErCvSLKE6khgYQK2DSDdjwfkBRduvmUsQMaAAaMQPdNABMOASEciIi8Pw1vJ5ElzivEX8rDrVt2zDS/4/bKXtEKAgIABFnaDRb/TKXBvkvlqZtW93IOZZkkiyjwB3YMazzV/KTs882K44ky9CWGRfnHHW363zfKnCv3NVlTbBdsgPK8ExDOCoPqEMnODzTWDUMjZ4iTcquGkZVhZmHmZnkqhOm4ZnGVZgHFFJwxbBt2zBUsf8/Xgy5bSRJEpUzs4f/ts63A1Zt26KSefZ9WIAKDoPySwuHKQHPngC70/4vcuT0RM402UbSRscjRwslyIySo2MpM44cHWuzHVVZc9FCoI2O78wLB5FLxxdp1hRqrnyyImsjZ6uLjB2sNPMvvGaWo65vdfIzjflQU13+GXJXjdm/KjM7arN/ZWaWj/v40jG1mTl0VZuZIWVmCCFCkiTYquoF+ATfX+iLfICbkiSAbRs2AKhsS0m6x/9ftu8W3WGLiAlQGAzVwrIUcqLCUbjy+bzC7abife5P/P/+ntR9F5WXbF60MOvdeHJn9oIXzrPu+z4U/hX2LoVmMDF068QTT1Tsmq4WoWIEFwZgRD6425z+nJvyYwjQsk7sV9yVptGD2sIAdJUjHrpPmXNTfkwAFpalWFq3+krnpnHYZAC0jyMOWmiro/B1U/7EE01MgwMLQqO6U4I+MAC3vuq6XpLP5/NjJwKYhmZhOW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JYGBz+SiRC5HBBMVzNyTQLEWoOMRTkMMgIcEVGr3i63z8x5+SBEWQ3GMP1cqGjQ+9SwppVIlEAsj+duvDkc6YvVNZQgPpdJX7um5qC9J56VRXaRx2kQ4bglJZSjCIbN5ThRAcQDpbpUN8o0EUSGe2Z1xUK0hn7ip7CZnF0lGM0CgdlZ000unboxHd5lPIZieaHL/pHClkM+uIeVUG6cz9NvtPpNOFBunrrFcgnSPnXjrdsYt0pD7gweZBZNNZtgRKcUE6j+nfeOQzSGe2TY6ZJkhnrKbsEjY2kY5C/NM9silk02E++ud+k0Q226UlajcRSSObW5QIO54G6YzAvTgR3EE6f/sBW/EWpLNHpiJLq3zPlI1uXDs13DebkY2sa9lUFhmFf+ko6FQ5oR2l/hU+0vE0+cg0ZBTesYxs/Cccjt1/LCYfzx+9+Vd4xe66SzoCPPfdV2Uil3Xf9xGLxTKZjGnKxV13Ze5SIZcZMDFN2bgLwMQ05cIEE0wkM4O2KRdqE+k0eXmp\"\n class=\"attachment-full size-full\"\n alt=\"Fork me on GitHub\"\n data-recalc-dims=\"1\"\n/></a>", styles: [":host{position:fixed;top:-2px;right:0;transform:rotate(90deg);z-index:2147483647}a{opacity:.7}a:hover{opacity:1}\n"] }]
|
|
1018
|
+
}], propDecorators: { url: [{
|
|
1019
|
+
type: Input
|
|
1020
|
+
}] } });
|
|
1021
|
+
|
|
1022
|
+
//#region imports
|
|
1023
|
+
//#endregion
|
|
1024
|
+
class TaonGithubForkMeRibbonModule {
|
|
1025
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeRibbonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1026
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeRibbonModule, declarations: [TaonGithubForkMeRibbonComponent], imports: [CommonModule], exports: [TaonGithubForkMeRibbonComponent] }); }
|
|
1027
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeRibbonModule, imports: [CommonModule] }); }
|
|
1028
|
+
}
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonGithubForkMeRibbonModule, decorators: [{
|
|
1030
|
+
type: NgModule,
|
|
1031
|
+
args: [{
|
|
1032
|
+
imports: [CommonModule],
|
|
1033
|
+
declarations: [TaonGithubForkMeRibbonComponent],
|
|
1034
|
+
exports: [TaonGithubForkMeRibbonComponent],
|
|
1035
|
+
}]
|
|
1036
|
+
}] });
|
|
1037
|
+
|
|
1244
1038
|
//#region imports
|
|
1245
1039
|
// iframe-sync.component.ts
|
|
1246
1040
|
//#endregion
|
|
@@ -1293,7 +1087,7 @@ class TaonIframeSyncComponent {
|
|
|
1293
1087
|
}
|
|
1294
1088
|
setupSync() {
|
|
1295
1089
|
this.route.queryParamMap
|
|
1296
|
-
.pipe(distinctUntilChanged
|
|
1090
|
+
.pipe(distinctUntilChanged((a, b) => a.get(this.queryParamKey) === b.get(this.queryParamKey)), takeUntil$1(this.destroy$))
|
|
1297
1091
|
.subscribe(() => this.sendNavigateIfReady());
|
|
1298
1092
|
this.router.events
|
|
1299
1093
|
.pipe(filter((e) => e instanceof NavigationEnd), takeUntil$1(this.destroy$))
|
|
@@ -1423,34 +1217,396 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1423
1217
|
type: Input
|
|
1424
1218
|
}] } });
|
|
1425
1219
|
|
|
1426
|
-
//#region @browser
|
|
1427
|
-
//#endregion
|
|
1428
|
-
|
|
1429
1220
|
//#region imports
|
|
1430
1221
|
//#endregion
|
|
1431
|
-
|
|
1222
|
+
//#region constants
|
|
1223
|
+
const log = Log.create('Table wrapper',
|
|
1224
|
+
// levels
|
|
1225
|
+
Level.WARN, Level.ERROR);
|
|
1226
|
+
const defaultColumns = [
|
|
1227
|
+
{
|
|
1228
|
+
header: 'ID',
|
|
1229
|
+
field: 'id',
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
header: 'NAME',
|
|
1233
|
+
field: 'name',
|
|
1234
|
+
},
|
|
1235
|
+
];
|
|
1236
|
+
//#endregion
|
|
1237
|
+
class TaonTableComponent {
|
|
1432
1238
|
constructor() {
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1239
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
1240
|
+
//#region fields
|
|
1241
|
+
this.pageNumber = 1;
|
|
1242
|
+
this.pageSize = 5;
|
|
1243
|
+
this.allowedColumns = [];
|
|
1244
|
+
this.rows = _.times(20, id => {
|
|
1245
|
+
return {
|
|
1246
|
+
id,
|
|
1247
|
+
name: `Amazing ${id} row `,
|
|
1248
|
+
};
|
|
1249
|
+
});
|
|
1250
|
+
this.columns = defaultColumns;
|
|
1251
|
+
this.pageSizeOptions = [5, 10, 20];
|
|
1252
|
+
this.expansionChange = new EventEmitter();
|
|
1253
|
+
this.addingItem = new EventEmitter();
|
|
1254
|
+
this.expandable = false;
|
|
1255
|
+
this.showPaginator = true;
|
|
1256
|
+
this.isLoading = false;
|
|
1257
|
+
this.totalElements = 100;
|
|
1258
|
+
this.sub = new Subscription();
|
|
1437
1259
|
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1260
|
+
//#endregion
|
|
1261
|
+
get entity() {
|
|
1262
|
+
return this.entityCrudController?.entityClassResolveFn();
|
|
1263
|
+
}
|
|
1264
|
+
//#region hooks
|
|
1265
|
+
//#region hooks / on init
|
|
1266
|
+
async ngOnInit() {
|
|
1267
|
+
if (!this.hideSearch) {
|
|
1268
|
+
this.searchInputChange$ = defer(() => fromEvent(this.search?.nativeElement, 'keyup')).pipe(map(c => c.target['value']), debounceTime(500), distinctUntilChanged$1(), share(), tap(data => {
|
|
1269
|
+
console.log({ data });
|
|
1270
|
+
}));
|
|
1271
|
+
this.sub.add(this.searchInputChange$.subscribe());
|
|
1272
|
+
}
|
|
1273
|
+
const entityClass = this.entity;
|
|
1274
|
+
if (!!entityClass) {
|
|
1275
|
+
this.rows = [];
|
|
1276
|
+
}
|
|
1277
|
+
this.expandable = !!this.expansionTemplate;
|
|
1278
|
+
// this.arrayDataConfig.set.pagination.rowDisplayed(5);
|
|
1279
|
+
log.i('this.columns,', this.columns);
|
|
1280
|
+
const columnsConfigSameAsDefault = _.isEqual(this.columns, defaultColumns);
|
|
1281
|
+
// console.log({
|
|
1282
|
+
// columnsConfigSameAsDefault
|
|
1283
|
+
// })
|
|
1284
|
+
if (entityClass && columnsConfigSameAsDefault) {
|
|
1285
|
+
const props = Object.keys(getDefaultModel(entityClass));
|
|
1286
|
+
log.i('this.crud.entity props', props);
|
|
1287
|
+
try {
|
|
1288
|
+
let columns = props
|
|
1289
|
+
.filter(prop => this.allowedColumns.length > 0
|
|
1290
|
+
? this.allowedColumns.includes(prop)
|
|
1291
|
+
: true)
|
|
1292
|
+
.map(prop => {
|
|
1293
|
+
return {
|
|
1294
|
+
header: _.upperCase(prop),
|
|
1295
|
+
field: prop,
|
|
1296
|
+
};
|
|
1297
|
+
});
|
|
1298
|
+
const extra = this.allowedColumns.filter(f => !props.includes(f));
|
|
1299
|
+
columns = [
|
|
1300
|
+
...columns,
|
|
1301
|
+
...extra.map(prop => {
|
|
1302
|
+
return {
|
|
1303
|
+
header: _.upperCase(prop),
|
|
1304
|
+
field: prop,
|
|
1305
|
+
};
|
|
1306
|
+
}),
|
|
1307
|
+
];
|
|
1308
|
+
// console.log({
|
|
1309
|
+
// extra
|
|
1310
|
+
// });
|
|
1311
|
+
if (!this.expandable) {
|
|
1312
|
+
for (let index = 0; index < columns.length; index++) {
|
|
1313
|
+
const col = columns[index];
|
|
1314
|
+
delete col.showExpand;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
this.columns = columns;
|
|
1318
|
+
}
|
|
1319
|
+
catch (error) {
|
|
1320
|
+
console.error(error);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
else {
|
|
1324
|
+
}
|
|
1325
|
+
if (!this.entity) {
|
|
1326
|
+
this.showPaginator = false;
|
|
1327
|
+
}
|
|
1328
|
+
await this.getData();
|
|
1329
|
+
}
|
|
1330
|
+
//#endregion
|
|
1331
|
+
//#region hooks / on destroy
|
|
1332
|
+
ngOnDestroy() {
|
|
1333
|
+
this.sub.unsubscribe();
|
|
1334
|
+
}
|
|
1335
|
+
//#endregion
|
|
1336
|
+
//#endregion
|
|
1337
|
+
//#region methods
|
|
1338
|
+
//#region methods / get next page
|
|
1339
|
+
async getNextPage(e) {
|
|
1340
|
+
// console.log({
|
|
1341
|
+
// e
|
|
1342
|
+
// });
|
|
1343
|
+
this.pageNumber = e.pageIndex + 1;
|
|
1344
|
+
this.pageSize = e.pageSize;
|
|
1345
|
+
await this.getData();
|
|
1346
|
+
}
|
|
1347
|
+
//#endregion
|
|
1348
|
+
//#region methods / retrive data
|
|
1349
|
+
async getData() {
|
|
1350
|
+
if (!this.entity) {
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1353
|
+
this.isLoading = true;
|
|
1354
|
+
// console.log('PAGINTION FETCH DATA START!')
|
|
1355
|
+
const controller = this.entityCrudController;
|
|
1356
|
+
if (controller) {
|
|
1357
|
+
const data = await controller.pagination(this.pageNumber, this.pageSize)
|
|
1358
|
+
.received;
|
|
1359
|
+
// console.log('PAGINTION DATA', {
|
|
1360
|
+
// data,
|
|
1361
|
+
// });
|
|
1362
|
+
const totalElements = Number(data.headers.get(Symbols.old.X_TOTAL_COUNT));
|
|
1363
|
+
const rows = data.body.json;
|
|
1364
|
+
// console.log('PAGINTION DATA', {
|
|
1365
|
+
// rows,
|
|
1366
|
+
// totalElements,
|
|
1367
|
+
// });
|
|
1368
|
+
this.totalElements = totalElements;
|
|
1369
|
+
this.rows = rows.map(d => {
|
|
1370
|
+
for (const key in d) {
|
|
1371
|
+
if (Object.prototype.hasOwnProperty.call(d, key)) {
|
|
1372
|
+
const elem = d[key];
|
|
1373
|
+
if (_.isObject(elem)) {
|
|
1374
|
+
d[key] = json5.stringify(d[key]);
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
// console.log({ d })
|
|
1379
|
+
return d;
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
this.isLoading = false;
|
|
1383
|
+
this.cdr.markForCheck();
|
|
1384
|
+
}
|
|
1385
|
+
//#endregion
|
|
1386
|
+
//#region methods / expansion row
|
|
1387
|
+
expansionRow(e) {
|
|
1388
|
+
this.expansionChange.next(e);
|
|
1389
|
+
}
|
|
1390
|
+
//#endregion
|
|
1391
|
+
//#region methods / on table context menu
|
|
1392
|
+
onTableContextMenu(e) {
|
|
1393
|
+
// if (this.rowHref) {
|
|
1394
|
+
// this.router.navigateByUrl(this.rowHref)
|
|
1395
|
+
// }
|
|
1396
|
+
log.i('context menu event', e);
|
|
1397
|
+
}
|
|
1398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1399
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", 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\n [pageOnFront]=\"false\"\n [pageIndex]=\"pageNumber - 1\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [showPaginator]=\"showPaginator\"\n (page)=\"getNextPage($event)\">\n</mtx-grid>\n\n<!-- [loading]=\"isLoading\" -->", styles: [":host{min-height:250px}.search-input{width:100%}.undo-button{margin-left:10px}.half-opacity{opacity:.2}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.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$3.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: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
1441
1400
|
}
|
|
1442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
1401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableComponent, decorators: [{
|
|
1443
1402
|
type: Component,
|
|
1444
|
-
args: [{ selector: 'taon-
|
|
1445
|
-
}], propDecorators: {
|
|
1403
|
+
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\n [pageOnFront]=\"false\"\n [pageIndex]=\"pageNumber - 1\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [showPaginator]=\"showPaginator\"\n (page)=\"getNextPage($event)\">\n</mtx-grid>\n\n<!-- [loading]=\"isLoading\" -->", styles: [":host{min-height:250px}.search-input{width:100%}.undo-button{margin-left:10px}.half-opacity{opacity:.2}\n"] }]
|
|
1404
|
+
}], propDecorators: { pageNumber: [{
|
|
1446
1405
|
type: Input
|
|
1447
|
-
}],
|
|
1406
|
+
}], pageSize: [{
|
|
1448
1407
|
type: Input
|
|
1408
|
+
}], allowedColumns: [{
|
|
1409
|
+
type: Input
|
|
1410
|
+
}], expansionTemplate: [{
|
|
1411
|
+
type: Input
|
|
1412
|
+
}], rows: [{
|
|
1413
|
+
type: Input
|
|
1414
|
+
}], entityCrudController: [{
|
|
1415
|
+
type: Input
|
|
1416
|
+
}], columns: [{
|
|
1417
|
+
type: Input
|
|
1418
|
+
}], pageSizeOptions: [{
|
|
1419
|
+
type: Input
|
|
1420
|
+
}], hideSearch: [{
|
|
1421
|
+
type: Input
|
|
1422
|
+
}], expansionChange: [{
|
|
1423
|
+
type: Output
|
|
1424
|
+
}], addingItem: [{
|
|
1425
|
+
type: Output
|
|
1426
|
+
}], search: [{
|
|
1427
|
+
type: ViewChild,
|
|
1428
|
+
args: ['search', { static: true }]
|
|
1449
1429
|
}] } });
|
|
1450
1430
|
|
|
1431
|
+
//#region imports
|
|
1432
|
+
//#endregion
|
|
1433
|
+
class TaonTableModule {
|
|
1434
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1435
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, declarations: [TaonTableComponent], imports: [CommonModule,
|
|
1436
|
+
MatSelectModule,
|
|
1437
|
+
MtxGridModule,
|
|
1438
|
+
MatFormFieldModule,
|
|
1439
|
+
MatInputModule,
|
|
1440
|
+
StaticColumnsModule,
|
|
1441
|
+
MatIconModule,
|
|
1442
|
+
MatButtonModule,
|
|
1443
|
+
FormsModule,
|
|
1444
|
+
ReactiveFormsModule], exports: [TaonTableComponent] }); }
|
|
1445
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, imports: [CommonModule,
|
|
1446
|
+
MatSelectModule,
|
|
1447
|
+
MtxGridModule,
|
|
1448
|
+
MatFormFieldModule,
|
|
1449
|
+
MatInputModule,
|
|
1450
|
+
StaticColumnsModule,
|
|
1451
|
+
MatIconModule,
|
|
1452
|
+
MatButtonModule,
|
|
1453
|
+
FormsModule,
|
|
1454
|
+
ReactiveFormsModule] }); }
|
|
1455
|
+
}
|
|
1456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableModule, decorators: [{
|
|
1457
|
+
type: NgModule,
|
|
1458
|
+
args: [{
|
|
1459
|
+
imports: [
|
|
1460
|
+
CommonModule,
|
|
1461
|
+
MatSelectModule,
|
|
1462
|
+
MtxGridModule,
|
|
1463
|
+
MatFormFieldModule,
|
|
1464
|
+
MatInputModule,
|
|
1465
|
+
StaticColumnsModule,
|
|
1466
|
+
MatIconModule,
|
|
1467
|
+
MatButtonModule,
|
|
1468
|
+
FormsModule,
|
|
1469
|
+
ReactiveFormsModule,
|
|
1470
|
+
],
|
|
1471
|
+
exports: [TaonTableComponent],
|
|
1472
|
+
declarations: [TaonTableComponent],
|
|
1473
|
+
}]
|
|
1474
|
+
}] });
|
|
1475
|
+
|
|
1476
|
+
var TaonThemeMode;
|
|
1477
|
+
(function (TaonThemeMode) {
|
|
1478
|
+
TaonThemeMode["AUTO"] = "auto";
|
|
1479
|
+
TaonThemeMode["LIGHT"] = "light";
|
|
1480
|
+
TaonThemeMode["DARK"] = "dark";
|
|
1481
|
+
})(TaonThemeMode || (TaonThemeMode = {}));
|
|
1482
|
+
class TaonThemeService {
|
|
1483
|
+
constructor() {
|
|
1484
|
+
this.TAON_THEME_KEY = 'taon-theme-mode';
|
|
1485
|
+
this.platformId = inject(PLATFORM_ID);
|
|
1486
|
+
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
1487
|
+
this.mediaQuery = null;
|
|
1488
|
+
this.mode = signal(TaonThemeMode.AUTO, ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
1489
|
+
this.isDark = signal(false, ...(ngDevMode ? [{ debugName: "isDark" }] : []));
|
|
1490
|
+
if (!this.isBrowser)
|
|
1491
|
+
return;
|
|
1492
|
+
this.mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
1493
|
+
// Load saved mode
|
|
1494
|
+
const saved = localStorage.getItem(this.TAON_THEME_KEY);
|
|
1495
|
+
if (saved) {
|
|
1496
|
+
this.mode.set(saved);
|
|
1497
|
+
}
|
|
1498
|
+
// React to system changes
|
|
1499
|
+
this.mediaQuery.addEventListener('change', e => {
|
|
1500
|
+
if (this.mode() === TaonThemeMode.AUTO) {
|
|
1501
|
+
this.apply(e.matches);
|
|
1502
|
+
}
|
|
1503
|
+
});
|
|
1504
|
+
// React to mode changes
|
|
1505
|
+
effect(() => {
|
|
1506
|
+
const currentMode = this.mode();
|
|
1507
|
+
localStorage.setItem(this.TAON_THEME_KEY, currentMode);
|
|
1508
|
+
const dark = currentMode === TaonThemeMode.AUTO
|
|
1509
|
+
? (this.mediaQuery?.matches ?? false)
|
|
1510
|
+
: currentMode === TaonThemeMode.DARK;
|
|
1511
|
+
this.apply(dark);
|
|
1512
|
+
});
|
|
1513
|
+
}
|
|
1514
|
+
apply(dark) {
|
|
1515
|
+
this.isDark.set(dark);
|
|
1516
|
+
const root = document.documentElement;
|
|
1517
|
+
root.classList.toggle('dark-taon-theme', dark);
|
|
1518
|
+
root.classList.toggle('light-taon-theme', !dark);
|
|
1519
|
+
}
|
|
1520
|
+
setMode(mode) {
|
|
1521
|
+
this.mode.set(mode);
|
|
1522
|
+
}
|
|
1523
|
+
toogleAuto(auto) {
|
|
1524
|
+
if (auto) {
|
|
1525
|
+
this.mode.set(TaonThemeMode.AUTO);
|
|
1526
|
+
}
|
|
1527
|
+
else {
|
|
1528
|
+
this.mode.set(TaonThemeMode.LIGHT);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
setDark(yes) {
|
|
1532
|
+
if (yes) {
|
|
1533
|
+
this.mode.set(TaonThemeMode.DARK);
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
this.mode.set(TaonThemeMode.LIGHT);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
toggle() {
|
|
1540
|
+
this.setMode(this.isDark() ? TaonThemeMode.LIGHT : TaonThemeMode.DARK);
|
|
1541
|
+
}
|
|
1542
|
+
isAuto() {
|
|
1543
|
+
return this.mode() === TaonThemeMode.AUTO;
|
|
1544
|
+
}
|
|
1545
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1546
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeService, providedIn: 'root' }); }
|
|
1547
|
+
}
|
|
1548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeService, decorators: [{
|
|
1549
|
+
type: Injectable,
|
|
1550
|
+
args: [{ providedIn: 'root' }]
|
|
1551
|
+
}], ctorParameters: () => [] });
|
|
1552
|
+
|
|
1553
|
+
class TaonThemeComponent {
|
|
1554
|
+
constructor() {
|
|
1555
|
+
this.TaonThemeMode = TaonThemeMode;
|
|
1556
|
+
this.taonTheme = inject(TaonThemeService);
|
|
1557
|
+
}
|
|
1558
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1559
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonThemeComponent, isStandalone: true, selector: "taon-theme", ngImport: i0, template: `
|
|
1560
|
+
<mat-slide-toggle
|
|
1561
|
+
class="p-2"
|
|
1562
|
+
[checked]="taonTheme.isAuto()"
|
|
1563
|
+
(change)="taonTheme.toogleAuto($event.checked)">
|
|
1564
|
+
Sync colors with system
|
|
1565
|
+
</mat-slide-toggle>
|
|
1566
|
+
|
|
1567
|
+
<mat-slide-toggle
|
|
1568
|
+
class="p-2"
|
|
1569
|
+
[checked]="taonTheme.isDark()"
|
|
1570
|
+
[disabled]="taonTheme.isAuto()"
|
|
1571
|
+
(change)="taonTheme.setDark($event.checked)">
|
|
1572
|
+
Dark mode
|
|
1573
|
+
</mat-slide-toggle>
|
|
1574
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i1$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }] }); }
|
|
1575
|
+
}
|
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeComponent, decorators: [{
|
|
1577
|
+
type: Component,
|
|
1578
|
+
args: [{
|
|
1579
|
+
selector: 'taon-theme',
|
|
1580
|
+
standalone: true,
|
|
1581
|
+
imports: [MatSlideToggleModule],
|
|
1582
|
+
template: `
|
|
1583
|
+
<mat-slide-toggle
|
|
1584
|
+
class="p-2"
|
|
1585
|
+
[checked]="taonTheme.isAuto()"
|
|
1586
|
+
(change)="taonTheme.toogleAuto($event.checked)">
|
|
1587
|
+
Sync colors with system
|
|
1588
|
+
</mat-slide-toggle>
|
|
1589
|
+
|
|
1590
|
+
<mat-slide-toggle
|
|
1591
|
+
class="p-2"
|
|
1592
|
+
[checked]="taonTheme.isDark()"
|
|
1593
|
+
[disabled]="taonTheme.isAuto()"
|
|
1594
|
+
(change)="taonTheme.setDark($event.checked)">
|
|
1595
|
+
Dark mode
|
|
1596
|
+
</mat-slide-toggle>
|
|
1597
|
+
`,
|
|
1598
|
+
}]
|
|
1599
|
+
}] });
|
|
1600
|
+
|
|
1601
|
+
// @ts-nocheck
|
|
1602
|
+
// This file is auto-generated during init process. Do not modify.
|
|
1603
|
+
// This disable this auto generate file.
|
|
1604
|
+
// set property "shouldGenerateAutogenIndexFile: false"
|
|
1605
|
+
// in taon.jsonc of your project.
|
|
1606
|
+
|
|
1451
1607
|
/**
|
|
1452
1608
|
* Generated bundle index. Do not edit.
|
|
1453
1609
|
*/
|
|
1454
1610
|
|
|
1455
|
-
export { SafePipe, TaonAdminModeConfigurationComponent, TaonBootstrapNavbarComponent, TaonFullMaterialModule, TaonGithubForkMeCornerComponent, TaonGithubForkMeCornerModule, TaonGithubForkMeRibbonComponent, TaonGithubForkMeRibbonModule, TaonIframeSyncComponent, TaonInjectHTMLDirective, TaonLongPress, TaonNotificationOptions, TaonNotificationsComponent, TaonNotificationsModule, TaonNotificationsService, TaonProgressBarComponent, TaonProgressBarModule, TaonSessionPasscodeComponent, TaonTableComponent, TaonTableModule };
|
|
1611
|
+
export { APP_ID, BUILD_BASE_HREF, BUILD_FRAMEWORK_CLI_NAME, CURRENT_PACKAGE_TAON_VERSION, CURRENT_PACKAGE_VERSION, PROJECT_NPM_NAME, SafePipe, TaonAdminModeConfigurationComponent, TaonBootstrapNavbarComponent, TaonFullMaterialModule, TaonGithubForkMeCornerComponent, TaonGithubForkMeCornerModule, TaonGithubForkMeRibbonComponent, TaonGithubForkMeRibbonModule, TaonIframeSyncComponent, TaonInjectHTMLDirective, TaonLongPress, TaonNotificationOptions, TaonNotificationsComponent, TaonNotificationsModule, TaonNotificationsService, TaonProgressBarComponent, TaonProgressBarModule, TaonSessionPasscodeComponent, TaonTableComponent, TaonTableModule, TaonThemeComponent, TaonThemeMode, TaonThemeService, ViewMode, myOrgProj };
|
|
1456
1612
|
//# sourceMappingURL=taon-ui-browser.mjs.map
|