taon-ui 21.0.48 → 21.0.50
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/bin/start.js +38 -0
- package/bin/taon-ui +5 -0
- package/bin/taon-ui-debug +5 -0
- package/bin/taon-ui-debug-brk +4 -0
- package/browser/fesm2022/taon-ui-browser.mjs +96 -35
- package/browser/fesm2022/taon-ui-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/taon-ui-browser.d.ts +20 -7
- package/browser-prod/fesm2022/taon-ui-browser-prod.mjs +96 -35
- package/browser-prod/fesm2022/taon-ui-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/taon-ui-browser-prod.d.ts +20 -7
- package/cli.d.ts +1 -1
- package/cli.js +2 -2
- package/cli.js.map +1 -1
- package/html/assets/generated/pwa/html-pwa.html +60 -0
- package/html/lib/layouts/taon-bootstrap-navbar/taon-bootstrap-navbar.component.html +149 -0
- package/html/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.html +266 -0
- package/html/lib/ui/taon-auth/auth-button.component.html +28 -0
- package/html/lib/ui/taon-auth/auth-dialog.component.html +93 -0
- package/html/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.html +29 -0
- package/html/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.html +11 -0
- package/html/lib/ui/taon-kv-authorization/taon-kv-authorization.component.html +11 -0
- package/html/lib/ui/taon-not-found/taon-not-found.component.html +40 -0
- package/html/lib/ui/taon-notifications/taon-notifications.component.html +3 -0
- package/html/lib/ui/taon-progress-bar/taon-progress-bar.component.html +23 -0
- package/html/lib/ui/taon-rumble/taon-rumble.component.html +46 -0
- package/html/lib/ui/taon-session-passcode/taon-session-passcode.component.html +20 -0
- package/html/lib/ui/taon-simple-layout/taon-simple-layout.component.html +88 -0
- package/html/lib/ui/taon-stripe-buy-button/taon-stripe-buy-button.component.html +17 -0
- package/html/lib/ui/taon-table/taon-table.component.html +50 -0
- package/html/lib/ui/taon-theme/taon-theme.component.html +30 -0
- package/html/lib/ui/taon-youtube-video/taon-youtube-video.component.html +71 -0
- package/index.d.ts +2 -2
- package/index.js +2 -8
- package/index.js.map +1 -1
- 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 +1 -0
- package/lib/index._auto-generated_.js +1 -0
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -0
- 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/start-cli.d.ts +7 -0
- package/lib/start-cli.js +46 -0
- package/lib/start-cli.js.map +1 -0
- 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-session-passcode/taon-session-passcode.component.d.ts +1 -1
- package/lib/ui/taon-simple-layout/taon-simple-layout.component.d.ts +1 -0
- package/lib/ui/taon-stripe-buy-button/taon-stripe-buy-button.component.d.ts +2 -1
- package/lib/ui/taon-table/index.js +2 -2
- package/lib/ui/taon-theme/taon-theme.component.d.ts +2 -0
- package/lib/ui/taon-theme/taon-theme.service.d.ts +4 -1
- package/lib-esm/app.electron.d.ts +1 -1
- package/lib-esm/app.electron.js +1 -1
- package/lib-esm/app.hosts.d.ts +2 -2
- package/lib-esm/app.hosts.js +4 -4
- package/lib-esm/cli.d.ts +1 -1
- package/lib-esm/cli.js +1 -1
- package/lib-esm/cli.js.map +1 -1
- package/lib-esm/index.d.ts +2 -2
- package/lib-esm/index.js +2 -7
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/index._auto-generated_.d.ts +1 -0
- package/lib-esm/lib/index._auto-generated_.js +1 -0
- package/lib-esm/lib/index._auto-generated_.js.map +1 -1
- package/lib-esm/lib/index.d.ts +2 -0
- package/lib-esm/lib/index.js +1 -0
- package/lib-esm/lib/index.js.map +1 -1
- package/lib-esm/lib/layouts/taon-bootstrap-navbar/index.d.ts +1 -1
- package/lib-esm/lib/layouts/taon-bootstrap-navbar/index.js +1 -1
- package/lib-esm/lib/start-cli.d.ts +7 -0
- package/lib-esm/lib/start-cli.js +43 -0
- package/lib-esm/lib/start-cli.js.map +1 -0
- package/lib-esm/lib/ui/directives/index.d.ts +1 -1
- package/lib-esm/lib/ui/directives/index.js +1 -1
- package/lib-esm/lib/ui/index.d.ts +1 -1
- package/lib-esm/lib/ui/index.js +1 -1
- package/lib-esm/lib/ui/taon-github-fork-me-corner/index.d.ts +1 -1
- package/lib-esm/lib/ui/taon-github-fork-me-corner/index.js +1 -1
- package/lib-esm/lib/ui/taon-github-fork-me-ribbon/index.d.ts +1 -1
- package/lib-esm/lib/ui/taon-github-fork-me-ribbon/index.js +1 -1
- package/lib-esm/lib/ui/taon-iframe-sync/index.d.ts +1 -1
- package/lib-esm/lib/ui/taon-iframe-sync/index.js +1 -1
- package/lib-esm/lib/ui/taon-progress-bar/index.d.ts +1 -1
- package/lib-esm/lib/ui/taon-progress-bar/index.js +1 -1
- package/lib-esm/lib/ui/taon-session-passcode/index.d.ts +1 -1
- package/lib-esm/lib/ui/taon-session-passcode/index.js +1 -1
- package/lib-esm/lib/ui/taon-table/index.d.ts +1 -1
- package/lib-esm/lib/ui/taon-table/index.js +1 -1
- 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 +1 -0
- package/lib-prod/index._auto-generated_.js +1 -0
- package/lib-prod/index._auto-generated_.js.map +1 -1
- package/lib-prod/index.d.ts +2 -0
- package/lib-prod/index.js +1 -0
- 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/start-cli.d.ts +7 -0
- package/lib-prod/start-cli.js +43 -0
- package/lib-prod/start-cli.js.map +1 -0
- 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 +6 -2
- package/scss/lib/ui/taon-session-passcode/taon-session-passcode.component.scss +2 -33
- package/websql/fesm2022/taon-ui-websql.mjs +96 -35
- package/websql/fesm2022/taon-ui-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/taon-ui-websql.d.ts +20 -7
- package/websql-prod/fesm2022/taon-ui-websql-prod.mjs +96 -35
- package/websql-prod/fesm2022/taon-ui-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/taon-ui-websql-prod.d.ts +20 -7
|
@@ -10,7 +10,7 @@ import { NgModule, Input, ChangeDetectionStrategy, Component, Pipe, Directive, E
|
|
|
10
10
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
11
11
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
12
12
|
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i3$1 from '@angular/material/button';
|
|
14
14
|
import { MatButtonModule } from '@angular/material/button';
|
|
15
15
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
16
16
|
import * as i7 from '@angular/material/card';
|
|
@@ -25,14 +25,14 @@ import { MatDialogModule, MatDialogRef, MatDialog } from '@angular/material/dial
|
|
|
25
25
|
import { MatDividerModule } from '@angular/material/divider';
|
|
26
26
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
27
27
|
import { MatGridListModule } from '@angular/material/grid-list';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i2$2 from '@angular/material/icon';
|
|
29
29
|
import { MatIconModule } from '@angular/material/icon';
|
|
30
30
|
import * as i5 from '@angular/material/input';
|
|
31
31
|
import { MatInputModule } from '@angular/material/input';
|
|
32
32
|
import { MatListModule } from '@angular/material/list';
|
|
33
33
|
import { MatMenuModule } from '@angular/material/menu';
|
|
34
34
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
35
|
-
import * as i6
|
|
35
|
+
import * as i6 from '@angular/material/progress-bar';
|
|
36
36
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
37
37
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
38
38
|
import { MatRadioModule } from '@angular/material/radio';
|
|
@@ -46,7 +46,7 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
|
46
46
|
import { MatSortModule } from '@angular/material/sort';
|
|
47
47
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
48
48
|
import { MatTableModule } from '@angular/material/table';
|
|
49
|
-
import * as i3$
|
|
49
|
+
import * as i3$2 from '@angular/material/tabs';
|
|
50
50
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
51
51
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
52
52
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
@@ -59,7 +59,7 @@ import { ModalModule } from 'ngx-bootstrap/modal';
|
|
|
59
59
|
import * as i1$1 from '@angular/platform-browser';
|
|
60
60
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
61
61
|
import { Log, Level } from 'ng2-logger/browser';
|
|
62
|
-
import { _, Helpers,
|
|
62
|
+
import { _, Helpers, json5 } from 'tnp-core/browser';
|
|
63
63
|
import * as i2$1 from '@angular/forms';
|
|
64
64
|
import { FormGroup, FormControl, ReactiveFormsModule, FormsModule, Validators } from '@angular/forms';
|
|
65
65
|
import * as i3 from 'ngx-scrollbar';
|
|
@@ -81,7 +81,8 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
81
81
|
import { MtxLoaderModule } from '@ng-matero/extensions/loader';
|
|
82
82
|
import { InputTextModule } from 'primeng/inputtext';
|
|
83
83
|
import { distinctUntilChanged as distinctUntilChanged$1, takeUntil, filter } from 'rxjs/operators';
|
|
84
|
-
import
|
|
84
|
+
import { TaonStripeCloudflareWorker } from '@taon-dev/api-workers/browser';
|
|
85
|
+
import * as i3$3 from '@ng-matero/extensions/grid';
|
|
85
86
|
import { MtxGridModule } from '@ng-matero/extensions/grid';
|
|
86
87
|
|
|
87
88
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
@@ -108,11 +109,54 @@ const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
108
109
|
/**
|
|
109
110
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
110
111
|
*/
|
|
111
|
-
const CURRENT_PACKAGE_VERSION = '21.0.
|
|
112
|
+
const CURRENT_PACKAGE_VERSION = '21.0.50';
|
|
112
113
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
113
114
|
|
|
114
115
|
function myOrgProj() { }
|
|
115
116
|
|
|
117
|
+
//#region tnp-helpers cli template
|
|
118
|
+
// import { Helpers, BaseCommandLineFeature } from 'tnp-helpers/src';
|
|
119
|
+
// import { BaseProject, BaseStartConfig } from 'tnp-helpers/src'; // @backend
|
|
120
|
+
// class $Version extends BaseCommandLineFeature<{}> {
|
|
121
|
+
// public _() {
|
|
122
|
+
// console.log(`Hello world from cli`);
|
|
123
|
+
// this._exit();
|
|
124
|
+
// }
|
|
125
|
+
// }
|
|
126
|
+
//#endregion
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @param argsv process.argsv
|
|
130
|
+
* @param filename needed if you want ipc communicaiton
|
|
131
|
+
*/
|
|
132
|
+
async function startCli(argsv, filename) {
|
|
133
|
+
/* */
|
|
134
|
+
/* */
|
|
135
|
+
/* */
|
|
136
|
+
/* */
|
|
137
|
+
/* */
|
|
138
|
+
/* */
|
|
139
|
+
/* */
|
|
140
|
+
/* */
|
|
141
|
+
/* */
|
|
142
|
+
/* */
|
|
143
|
+
/* */
|
|
144
|
+
/* */
|
|
145
|
+
/* */
|
|
146
|
+
/* */
|
|
147
|
+
/* */
|
|
148
|
+
/* */
|
|
149
|
+
/* */
|
|
150
|
+
/* */
|
|
151
|
+
/* */
|
|
152
|
+
/* */
|
|
153
|
+
/* */
|
|
154
|
+
/* */
|
|
155
|
+
/* */
|
|
156
|
+
/* */
|
|
157
|
+
return (void 0);
|
|
158
|
+
}
|
|
159
|
+
|
|
116
160
|
//#region imports
|
|
117
161
|
//#endregion
|
|
118
162
|
/**
|
|
@@ -716,34 +760,27 @@ class TaonSessionPasscodeComponent {
|
|
|
716
760
|
passcode: new FormControl(),
|
|
717
761
|
});
|
|
718
762
|
}
|
|
719
|
-
ngOnInit() {
|
|
720
|
-
if (!this.passcode) {
|
|
721
|
-
this.passcode = '123456';
|
|
722
|
-
}
|
|
763
|
+
async ngOnInit() {
|
|
723
764
|
if (!this.message) {
|
|
724
765
|
this.message = `
|
|
725
766
|
This website is only for testing purpose. Please type passcode bellow to see content.
|
|
726
767
|
|
|
727
768
|
`;
|
|
728
769
|
}
|
|
729
|
-
// console.log({
|
|
730
|
-
// 'lastPasscode': this.lastPasscode,
|
|
731
|
-
// 'current passcode': this.passcode,
|
|
732
|
-
// 'current message': this.message,
|
|
733
|
-
// })
|
|
734
|
-
// this.width = window.innerWidth;
|
|
735
|
-
// this.height = window.innerHeight;
|
|
736
770
|
this.safeMessage = this.domSanitizer.bypassSecurityTrustHtml(this.message);
|
|
737
|
-
|
|
771
|
+
await this.lastPasscode.ready();
|
|
772
|
+
if (this.lastPasscode()?.toString() === this.passcode?.toString()) {
|
|
738
773
|
this.hide();
|
|
739
774
|
}
|
|
740
775
|
else {
|
|
741
776
|
this.show();
|
|
742
777
|
this.focus();
|
|
743
778
|
}
|
|
779
|
+
this.cdr.markForCheck();
|
|
744
780
|
interval(1000)
|
|
745
781
|
.pipe(takeUntilDestroyed(this.destroyRef), tap(() => {
|
|
746
782
|
this.focus();
|
|
783
|
+
this.cdr.markForCheck();
|
|
747
784
|
}))
|
|
748
785
|
.subscribe();
|
|
749
786
|
}
|
|
@@ -778,20 +815,23 @@ class TaonSessionPasscodeComponent {
|
|
|
778
815
|
return;
|
|
779
816
|
}
|
|
780
817
|
const key = event.keyCode || event.charCode;
|
|
781
|
-
if (key === 8 || key === 46 || this.lastPasscode?.length > 5) {
|
|
818
|
+
if (key === 8 || key === 46 || this.lastPasscode()?.length > 5) {
|
|
782
819
|
this.clear();
|
|
783
820
|
}
|
|
784
821
|
}
|
|
785
822
|
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$1.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
786
|
-
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-
|
|
823
|
+
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-col items-center w-full h-full\">\n <div class=\"flex content-center w-full justify-center mt-8\">\n <p\n class=\"p-3 max-w-[400px] min-h-[100px]\"\n [innerHtml]=\"safeMessage\"></p>\n </div>\n\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</form>", styles: [":host{position:fixed;background-color:#9f9f9f57;z-index:2147483647;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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }] }); }
|
|
787
824
|
}
|
|
788
825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSessionPasscodeComponent, decorators: [{
|
|
789
826
|
type: Component,
|
|
790
|
-
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-
|
|
827
|
+
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-col items-center w-full h-full\">\n <div class=\"flex content-center w-full justify-center mt-8\">\n <p\n class=\"p-3 max-w-[400px] min-h-[100px]\"\n [innerHtml]=\"safeMessage\"></p>\n </div>\n\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</form>", styles: [":host{position:fixed;background-color:#9f9f9f57;z-index:2147483647;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"] }]
|
|
791
828
|
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
792
829
|
type: Self
|
|
793
830
|
}] }, { type: i1$1.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { passcode: [{
|
|
794
|
-
type: Input
|
|
831
|
+
type: Input,
|
|
832
|
+
args: [{
|
|
833
|
+
required: true,
|
|
834
|
+
}]
|
|
795
835
|
}], message: [{
|
|
796
836
|
type: Input
|
|
797
837
|
}], display: [{
|
|
@@ -890,7 +930,7 @@ class TaonAdminModeConfigurationComponent {
|
|
|
890
930
|
}
|
|
891
931
|
}
|
|
892
932
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonAdminModeConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
893
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonAdminModeConfigurationComponent, isStandalone: true, selector: "taon-admin-mode-configuration", inputs: { scrollableEnabled: "scrollableEnabled", showPasscode: "showPasscode", passcode: "passcode", message: "message" }, host: { listeners: { "window:resize": "onResize($event)" } }, ngImport: i0, template: "<!-- #region basic global components -->\n<taon-session-passcode\n *ngIf=\"showPasscode\"\n [passcode]=\"passcode\"\n [message]=\"message\" />\n<!-- <taon-progress-bar [taonAdminService.isDesktop()]=\"taonAdminService.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.adminPanelMode() === TaonAdminPanelMode.ICON &&\n taonAdminService.isDesktop() &&\n !taonAdminService.isIframe\n \"\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.POPUP)\">\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 && taonAdminService.isDesktop()\"\n (click)=\"toogle()\"> Admin </button> -->\n<!-- #endregion -->\n\n<!-- #region content or content with scrollbar-->\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<!-- #endregion-->\n\n<!-- #region admin tabs -->\n<ng-template #adminTabs>\n <!-- #region admin tabs / header -->\n\n <div\n class=\"bg-white taon-header-admin overflow-hidden w-full flex flex-row align-items-center align-content-center justify-content-between\"\n [ngClass]=\"{\n 'block w-full':\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.POPUP,\n }\">\n <img\n class=\"p-2 flex\"\n style=\"height: 45px\"\n src=\"assets/assets-for/taon-ui/assets/shared/logo-header-admin-mode.png\" />\n\n <div class=\"flex flex-row\">\n <button\n style=\"width: 40px\"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.NONE)\"\n class=\"\">\n <mat-icon>close</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.ICON)\"\n class=\"\">\n <mat-icon>minimize</mat-icon>\n </button>\n\n <button\n *ngIf=\"\n taonAdminService.adminPanelMode() !== TaonAdminPanelMode.FULL_SCREEN\n \"\n mat-icon-button\n (click)=\"\n taonAdminService.adminPanelMode.set(TaonAdminPanelMode.FULL_SCREEN)\n \"\n class=\"\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n *ngIf=\"\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.FULL_SCREEN\n \"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.POPUP)\"\n class=\"\">\n <mat-icon>close_fullscreen</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n *ngIf=\"taonAdminService.adminPanelMode() !== TaonAdminPanelMode.SIDE\"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.SIDE)\"\n class=\"\">\n <mat-icon style=\"transform: rotate(180deg)\">login</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n *ngIf=\"\n taonAdminService.adminPanelMode() !== TaonAdminPanelMode.POPUP &&\n taonAdminService.adminPanelMode() !== TaonAdminPanelMode.FULL_SCREEN\n \"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.POPUP)\"\n class=\"\">\n <mat-icon>launch</mat-icon>\n </button>\n </div>\n </div>\n <!-- #endregion -->\n\n <div\n class=\"w-full flex flex-row align-items-center\"\n [ngClass]=\"{\n 'block w-full':\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.POPUP,\n }\">\n <div class=\"w-full\">\n <!-- (wheel)=\"scrollTabs($event)\" -->\n <mat-tab-group\n dynamicHeight\n [selectedIndex]=\"selectedIndex()\"\n (selectedIndexChange)=\"selectedIndex.set($event)\">\n <mat-tab label=\"Settings\">\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.keepWebsqlDbDataAfterReload.set(\n $event.checked\n )\n \">\n Don't remove data when re-loading\n </mat-checkbox>\n </mat-card-content>\n </mat-card>\n </section>\n <br />\n <taon-db-admin />\n </mat-tab>\n\n @for (\n additonalTab of taonAdminService.additionalTabs();\n track additonalTab.name\n ) {\n <mat-tab [label]=\"additonalTab.name\">\n <section>\n @if (isLink(additonalTab.templateOrIframeLink)) {\n <iframe\n class=\"block w-full\"\n [src]=\"additonalTab.templateOrIframeLink\"\n frameborder=\"0\"\n allowfullscreen>\n </iframe>\n } @else {\n <div class=\"block w-full\">\n <ng-container\n *ngTemplateOutlet=\"\n additonalTab.templateOrIframeLink\n \"></ng-container>\n </div>\n }\n </section>\n <br />\n <taon-db-admin />\n </mat-tab>\n }\n </mat-tab-group>\n </div>\n </div>\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.adminPanelMode() === TaonAdminPanelMode.POPUP &&\n !taonAdminService.isIframe &&\n !reloading()\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.adminPanelMode() === TaonAdminPanelMode.FULL_SCREEN &&\n !taonAdminService.isIframe &&\n !reloading()\n \"\n cdkDrag\n [cdkDragFreeDragPosition]=\"dragPositionZero\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n</div>\n<!-- #endregion -->\n\n<!-- #region content in side mode -->\n<!-- <mat-drawer-container (backdropClick)=\"opened = false\" -->\n<!-- [style.height.px]=\"height\" -->\n<mat-drawer-container\n *ngIf=\"\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.SIDE &&\n taonAdminService.isDesktop() &&\n !taonAdminService.isIframe &&\n !reloading()\n \"\n class=\"example-container h-screen\"\n style=\"background-color: transparent\"\n [hasBackdrop]=\"false\">\n <mat-drawer\n #drawer\n style=\"width: 450px\"\n [opened]=\"true\"\n [mode]=\"'side'\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n </mat-drawer>\n <mat-drawer-content style=\"overflow: hidden\">\n <ng-container\n [ngTemplateOutlet]=\"\n scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n </mat-drawer-content>\n</mat-drawer-container>\n<!-- #endregion -->\n\n<!-- #region content in any other mode than side side mode -->\n<div\n [style.height.px]=\"height\"\n *ngIf=\"\n !(\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.SIDE &&\n taonAdminService.isDesktop() &&\n !taonAdminService.isIframe &&\n !reloading()\n )\n \"\n style=\"width: 100%; display: block\"\n class=\"content\">\n <ng-container\n [ngTemplateOutlet]=\"\n scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n</div>\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}.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}.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}.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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: StaticColumnsModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgScrollbarModule }, { kind: "component", type: i3.NgScrollbar, selector: "ng-scrollbar:not([externalViewport]), [ngScrollbar]", exportAs: ["ngScrollbar"] }, { kind: "ngmodule", type: TaonProgressBarModule }, { kind: "ngmodule", type: TaonNotificationsModule }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i4.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i4.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: i4.MatDrawerContent, selector: "mat-drawer-content" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$2.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatCardModule }, { 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: "ngmodule", type: MatCheckboxModule }, { 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: "ngmodule", type: MatInputModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3$1.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: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i10.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:
|
|
933
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonAdminModeConfigurationComponent, isStandalone: true, selector: "taon-admin-mode-configuration", inputs: { scrollableEnabled: "scrollableEnabled", showPasscode: "showPasscode", passcode: "passcode", message: "message" }, host: { listeners: { "window:resize": "onResize($event)" } }, ngImport: i0, template: "<!-- #region basic global components -->\n<taon-session-passcode\n *ngIf=\"showPasscode\"\n [passcode]=\"passcode\"\n [message]=\"message\" />\n<!-- <taon-progress-bar [taonAdminService.isDesktop()]=\"taonAdminService.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.adminPanelMode() === TaonAdminPanelMode.ICON &&\n taonAdminService.isDesktop() &&\n !taonAdminService.isIframe\n \"\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.POPUP)\">\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 && taonAdminService.isDesktop()\"\n (click)=\"toogle()\"> Admin </button> -->\n<!-- #endregion -->\n\n<!-- #region content or content with scrollbar-->\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<!-- #endregion-->\n\n<!-- #region admin tabs -->\n<ng-template #adminTabs>\n <!-- #region admin tabs / header -->\n\n <div\n class=\"bg-white taon-header-admin overflow-hidden w-full flex flex-row align-items-center align-content-center justify-content-between\"\n [ngClass]=\"{\n 'block w-full':\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.POPUP,\n }\">\n <img\n class=\"p-2 flex\"\n style=\"height: 45px\"\n src=\"assets/assets-for/taon-ui/assets/shared/logo-header-admin-mode.png\" />\n\n <div class=\"flex flex-row\">\n <button\n style=\"width: 40px\"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.NONE)\"\n class=\"\">\n <mat-icon>close</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.ICON)\"\n class=\"\">\n <mat-icon>minimize</mat-icon>\n </button>\n\n <button\n *ngIf=\"\n taonAdminService.adminPanelMode() !== TaonAdminPanelMode.FULL_SCREEN\n \"\n mat-icon-button\n (click)=\"\n taonAdminService.adminPanelMode.set(TaonAdminPanelMode.FULL_SCREEN)\n \"\n class=\"\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n *ngIf=\"\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.FULL_SCREEN\n \"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.POPUP)\"\n class=\"\">\n <mat-icon>close_fullscreen</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n *ngIf=\"taonAdminService.adminPanelMode() !== TaonAdminPanelMode.SIDE\"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.SIDE)\"\n class=\"\">\n <mat-icon style=\"transform: rotate(180deg)\">login</mat-icon>\n </button>\n\n <button\n style=\"width: 40px\"\n *ngIf=\"\n taonAdminService.adminPanelMode() !== TaonAdminPanelMode.POPUP &&\n taonAdminService.adminPanelMode() !== TaonAdminPanelMode.FULL_SCREEN\n \"\n mat-icon-button\n (click)=\"taonAdminService.adminPanelMode.set(TaonAdminPanelMode.POPUP)\"\n class=\"\">\n <mat-icon>launch</mat-icon>\n </button>\n </div>\n </div>\n <!-- #endregion -->\n\n <div\n class=\"w-full flex flex-row align-items-center\"\n [ngClass]=\"{\n 'block w-full':\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.POPUP,\n }\">\n <div class=\"w-full\">\n <!-- (wheel)=\"scrollTabs($event)\" -->\n <mat-tab-group\n dynamicHeight\n [selectedIndex]=\"selectedIndex()\"\n (selectedIndexChange)=\"selectedIndex.set($event)\">\n <mat-tab label=\"Settings\">\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.keepWebsqlDbDataAfterReload.set(\n $event.checked\n )\n \">\n Don't remove data when re-loading\n </mat-checkbox>\n </mat-card-content>\n </mat-card>\n </section>\n <br />\n <taon-db-admin />\n </mat-tab>\n\n @for (\n additonalTab of taonAdminService.additionalTabs();\n track additonalTab.name\n ) {\n <mat-tab [label]=\"additonalTab.name\">\n <section>\n @if (isLink(additonalTab.templateOrIframeLink)) {\n <iframe\n class=\"block w-full\"\n [src]=\"additonalTab.templateOrIframeLink\"\n frameborder=\"0\"\n allowfullscreen>\n </iframe>\n } @else {\n <div class=\"block w-full\">\n <ng-container\n *ngTemplateOutlet=\"\n additonalTab.templateOrIframeLink\n \"></ng-container>\n </div>\n }\n </section>\n <br />\n <taon-db-admin />\n </mat-tab>\n }\n </mat-tab-group>\n </div>\n </div>\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.adminPanelMode() === TaonAdminPanelMode.POPUP &&\n !taonAdminService.isIframe &&\n !reloading()\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.adminPanelMode() === TaonAdminPanelMode.FULL_SCREEN &&\n !taonAdminService.isIframe &&\n !reloading()\n \"\n cdkDrag\n [cdkDragFreeDragPosition]=\"dragPositionZero\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n</div>\n<!-- #endregion -->\n\n<!-- #region content in side mode -->\n<!-- <mat-drawer-container (backdropClick)=\"opened = false\" -->\n<!-- [style.height.px]=\"height\" -->\n<mat-drawer-container\n *ngIf=\"\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.SIDE &&\n taonAdminService.isDesktop() &&\n !taonAdminService.isIframe &&\n !reloading()\n \"\n class=\"example-container h-screen\"\n style=\"background-color: transparent\"\n [hasBackdrop]=\"false\">\n <mat-drawer\n #drawer\n style=\"width: 450px\"\n [opened]=\"true\"\n [mode]=\"'side'\">\n <ng-container [ngTemplateOutlet]=\"adminTabs\"></ng-container>\n </mat-drawer>\n <mat-drawer-content style=\"overflow: hidden\">\n <ng-container\n [ngTemplateOutlet]=\"\n scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n </mat-drawer-content>\n</mat-drawer-container>\n<!-- #endregion -->\n\n<!-- #region content in any other mode than side side mode -->\n<div\n [style.height.px]=\"height\"\n *ngIf=\"\n !(\n taonAdminService.adminPanelMode() === TaonAdminPanelMode.SIDE &&\n taonAdminService.isDesktop() &&\n !taonAdminService.isIframe &&\n !reloading()\n )\n \"\n style=\"width: 100%; display: block\"\n class=\"content\">\n <ng-container\n [ngTemplateOutlet]=\"\n scrollableEnabled ? content : contentNoScroll\n \"></ng-container>\n</div>\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}.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}.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}.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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: StaticColumnsModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgScrollbarModule }, { kind: "component", type: i3.NgScrollbar, selector: "ng-scrollbar:not([externalViewport]), [ngScrollbar]", exportAs: ["ngScrollbar"] }, { kind: "ngmodule", type: TaonProgressBarModule }, { kind: "ngmodule", type: TaonNotificationsModule }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i4.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i4.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: i4.MatDrawerContent, selector: "mat-drawer-content" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatCardModule }, { 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: "ngmodule", type: MatCheckboxModule }, { 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: "ngmodule", type: MatInputModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3$2.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: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i10.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:
|
|
894
934
|
// TaonDbAdminComponent,
|
|
895
935
|
TaonSessionPasscodeComponent, selector: "taon-session-passcode", inputs: ["passcode", "message"] }] }); }
|
|
896
936
|
}
|
|
@@ -1188,7 +1228,7 @@ class AuthDialogComponent {
|
|
|
1188
1228
|
});
|
|
1189
1229
|
}
|
|
1190
1230
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AuthDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1191
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: AuthDialogComponent, isStandalone: true, selector: "app-auth-dialog", inputs: { googleClientId: "googleClientId", microsoftClientId: "microsoftClientId" }, viewQueries: [{ propertyName: "emailLoginBtn", first: true, predicate: ["emailLoginBtn"], descendants: true, static: true }, { propertyName: "googleBtn", first: true, predicate: ["googleBtn"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"auth-dialog p-4\">\n <h4 class=\"mb-3\">Login or register</h4>\n\n <div\n class=\"w-full\"\n #emailLoginBtn>\n <form\n [formGroup]=\"form\"\n (ngSubmit)=\"loginByEmail()\"\n class=\"w-full\">\n <mat-form-field\n appearance=\"outline\"\n class=\"w-full email-field\">\n <mat-label *ngIf=\"!diableLoginByEmail\">Email</mat-label>\n\n <input\n matInput\n formControlName=\"email\"\n class=\"pl-1\"\n type=\"email\"\n [placeholder]=\"\n diableLoginByEmail ? 'Login by email (disabled)' : ''\n \" />\n\n <button\n mat-icon-button\n [disabled]=\"diableLoginByEmail\"\n matSuffix\n color=\"primary\">\n <mat-icon>mail</mat-icon>\n </button>\n <mat-error\n *ngIf=\"\n form.get('email')?.hasError('pattern') && form.get('email')?.touched\n \">\n Please enter a valid email address\n </mat-error>\n\n <mat-error\n *ngIf=\"\n form.get('email')?.hasError('required') &&\n form.get('email')?.touched\n \">\n Email is <strong>required</strong>\n </mat-error>\n </mat-form-field>\n </form>\n\n <div class=\"divider\">\n <span>or</span>\n </div>\n\n <!-- GOOGLE BUTTON -->\n <div\n #googleBtn\n class=\"google-container\">\n <span\n *ngIf=\"!googleButtonLoaded\"\n class=\"text-300 p-2\"\n >loading google button..</span\n >\n <mat-progress-bar\n *ngIf=\"!googleButtonLoaded\"\n mode=\"indeterminate\"\n class=\"auth-progress\" />\n </div>\n\n <!-- MICROSOFT BUTTON -->\n <div\n *ngIf=\"microsoftClientId\"\n #microsoftBtn\n class=\"microsoft-container\">\n <button\n mat-stroked-button\n color=\"primary\"\n class=\"w-full microsoft-btn\"\n (click)=\"loginWithMicrosoft()\">\n <mat-icon class=\"mr-2\">login</mat-icon>\n Continue with Microsoft\n </button>\n </div>\n </div>\n\n <br />\n\n <div class=\"flex justify-content-end\">\n <button\n mat-button\n mat-dialog-close>\n Cancel\n </button>\n </div>\n</div>", styles: [".auth-dialog{width:100%}.google-container{width:100%;height:50px;border-color:#9ca3af!important}.microsoft-container{width:100%}.microsoft-btn{height:40px;border-radius:4px!important;border-color:#9ca3af!important;background-color:#fff}:host::ng-deep .email-field .mdc-notched-outline__trailing,:host::ng-deep .email-field .mdc-notched-outline__leading,:host::ng-deep .email-field .mdc-notched-outline__notch{border-color:#9ca3af!important}:host ::ng-deep .auth-progress .mdc-linear-progress__bar-inner{border-color:#9ca3af!important}.divider{display:flex;align-items:center;text-align:center;width:100%;margin:1rem 0}.divider:before,.divider:after{content:\"\";flex:1;border-bottom:1px solid #ccc}.divider span{padding:0 10px;color:#666;font-size:14px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i2$3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
1231
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: AuthDialogComponent, isStandalone: true, selector: "app-auth-dialog", inputs: { googleClientId: "googleClientId", microsoftClientId: "microsoftClientId" }, viewQueries: [{ propertyName: "emailLoginBtn", first: true, predicate: ["emailLoginBtn"], descendants: true, static: true }, { propertyName: "googleBtn", first: true, predicate: ["googleBtn"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"auth-dialog p-4\">\n <h4 class=\"mb-3\">Login or register</h4>\n\n <div\n class=\"w-full\"\n #emailLoginBtn>\n <form\n [formGroup]=\"form\"\n (ngSubmit)=\"loginByEmail()\"\n class=\"w-full\">\n <mat-form-field\n appearance=\"outline\"\n class=\"w-full email-field\">\n <mat-label *ngIf=\"!diableLoginByEmail\">Email</mat-label>\n\n <input\n matInput\n formControlName=\"email\"\n class=\"pl-1\"\n type=\"email\"\n [placeholder]=\"\n diableLoginByEmail ? 'Login by email (disabled)' : ''\n \" />\n\n <button\n mat-icon-button\n [disabled]=\"diableLoginByEmail\"\n matSuffix\n color=\"primary\">\n <mat-icon>mail</mat-icon>\n </button>\n <mat-error\n *ngIf=\"\n form.get('email')?.hasError('pattern') && form.get('email')?.touched\n \">\n Please enter a valid email address\n </mat-error>\n\n <mat-error\n *ngIf=\"\n form.get('email')?.hasError('required') &&\n form.get('email')?.touched\n \">\n Email is <strong>required</strong>\n </mat-error>\n </mat-form-field>\n </form>\n\n <div class=\"divider\">\n <span>or</span>\n </div>\n\n <!-- GOOGLE BUTTON -->\n <div\n #googleBtn\n class=\"google-container\">\n <span\n *ngIf=\"!googleButtonLoaded\"\n class=\"text-300 p-2\"\n >loading google button..</span\n >\n <mat-progress-bar\n *ngIf=\"!googleButtonLoaded\"\n mode=\"indeterminate\"\n class=\"auth-progress\" />\n </div>\n\n <!-- MICROSOFT BUTTON -->\n <div\n *ngIf=\"microsoftClientId\"\n #microsoftBtn\n class=\"microsoft-container\">\n <button\n mat-stroked-button\n color=\"primary\"\n class=\"w-full microsoft-btn\"\n (click)=\"loginWithMicrosoft()\">\n <mat-icon class=\"mr-2\">login</mat-icon>\n Continue with Microsoft\n </button>\n </div>\n </div>\n\n <br />\n\n <div class=\"flex justify-content-end\">\n <button\n mat-button\n mat-dialog-close>\n Cancel\n </button>\n </div>\n</div>", styles: [".auth-dialog{width:100%}.google-container{width:100%;height:50px;border-color:#9ca3af!important}.microsoft-container{width:100%}.microsoft-btn{height:40px;border-radius:4px!important;border-color:#9ca3af!important;background-color:#fff}:host::ng-deep .email-field .mdc-notched-outline__trailing,:host::ng-deep .email-field .mdc-notched-outline__leading,:host::ng-deep .email-field .mdc-notched-outline__notch{border-color:#9ca3af!important}:host ::ng-deep .auth-progress .mdc-linear-progress__bar-inner{border-color:#9ca3af!important}.divider{display:flex;align-items:center;text-align:center;width:100%;margin:1rem 0}.divider:before,.divider:after{content:\"\";flex:1;border-bottom:1px solid #ccc}.divider span{padding:0 10px;color:#666;font-size:14px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i2$3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.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: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MtxLoaderModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1192
1232
|
}
|
|
1193
1233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AuthDialogComponent, decorators: [{
|
|
1194
1234
|
type: Component,
|
|
@@ -1257,7 +1297,7 @@ class AuthButtonComponent {
|
|
|
1257
1297
|
: true;
|
|
1258
1298
|
}
|
|
1259
1299
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AuthButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1260
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: AuthButtonComponent, isStandalone: true, selector: "taon-auth-button", inputs: { linkToDashboard: "linkToDashboard", googleClientId: "googleClientId", microsoftClientId: "microsoftClientId", displayDashboardButton: "displayDashboardButton" }, ngImport: i0, template: "<div class=\"flex align-items-center gap-2\">\n <ng-container *ngIf=\"(session.isLoggedIn$ | async) === false; else loggedIn\">\n <button\n mat-button\n (click)=\"openLogin()\">\n Login\n </button>\n </ng-container>\n\n <ng-template #loggedIn>\n <button\n *ngIf=\"displayDashboardButton\"\n mat-button\n color=\"primary\"\n class=\"auth-btn\"\n (click)=\"goDashboard()\">\n <mat-icon>dashboard</mat-icon>\n Dashboard\n </button>\n\n <button\n mat-button\n class=\"ml-2\"\n (click)=\"logout()\">\n Logout ({{ (session.data$ | async)?.displayName }})\n </button>\n </ng-template>\n</div>", styles: [":host{display:inline-flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
1300
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: AuthButtonComponent, isStandalone: true, selector: "taon-auth-button", inputs: { linkToDashboard: "linkToDashboard", googleClientId: "googleClientId", microsoftClientId: "microsoftClientId", displayDashboardButton: "displayDashboardButton" }, ngImport: i0, template: "<div class=\"flex align-items-center gap-2\">\n <ng-container *ngIf=\"(session.isLoggedIn$ | async) === false; else loggedIn\">\n <button\n mat-button\n (click)=\"openLogin()\">\n Login\n </button>\n </ng-container>\n\n <ng-template #loggedIn>\n <button\n *ngIf=\"displayDashboardButton\"\n mat-button\n color=\"primary\"\n class=\"auth-btn\"\n (click)=\"goDashboard()\">\n <mat-icon>dashboard</mat-icon>\n Dashboard\n </button>\n\n <button\n mat-button\n class=\"ml-2\"\n (click)=\"logout()\">\n Logout ({{ (session.data$ | async)?.displayName }})\n </button>\n </ng-template>\n</div>", styles: [":host{display:inline-flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
1261
1301
|
}
|
|
1262
1302
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AuthButtonComponent, decorators: [{
|
|
1263
1303
|
type: Component,
|
|
@@ -1698,6 +1738,7 @@ class TaonThemeService {
|
|
|
1698
1738
|
this.platformId = inject(PLATFORM_ID);
|
|
1699
1739
|
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
1700
1740
|
this.mediaQuery = null;
|
|
1741
|
+
this.pernamentMode = false;
|
|
1701
1742
|
this.mode = signal(TaonThemeMode.AUTO, ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
1702
1743
|
this.isDark = signal(false, ...(ngDevMode ? [{ debugName: "isDark" }] : []));
|
|
1703
1744
|
if (!this.isBrowser)
|
|
@@ -1710,6 +1751,9 @@ class TaonThemeService {
|
|
|
1710
1751
|
}
|
|
1711
1752
|
// React to system changes
|
|
1712
1753
|
this.mediaQuery.addEventListener('change', e => {
|
|
1754
|
+
if (this.pernamentMode) {
|
|
1755
|
+
return;
|
|
1756
|
+
}
|
|
1713
1757
|
if (this.mode() === TaonThemeMode.AUTO) {
|
|
1714
1758
|
this.apply(e.matches);
|
|
1715
1759
|
}
|
|
@@ -1730,7 +1774,9 @@ class TaonThemeService {
|
|
|
1730
1774
|
root.classList.toggle('dark-taon-theme', dark);
|
|
1731
1775
|
root.classList.toggle('light-taon-theme', !dark);
|
|
1732
1776
|
}
|
|
1733
|
-
setMode(mode) {
|
|
1777
|
+
setMode(mode, options) {
|
|
1778
|
+
options = options || {};
|
|
1779
|
+
this.pernamentMode = options.pernamentMode ?? false;
|
|
1734
1780
|
this.mode.set(mode);
|
|
1735
1781
|
}
|
|
1736
1782
|
toogleAuto(auto) {
|
|
@@ -1763,17 +1809,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1763
1809
|
args: [{ providedIn: 'root' }]
|
|
1764
1810
|
}], ctorParameters: () => [] });
|
|
1765
1811
|
|
|
1812
|
+
//#region imports
|
|
1813
|
+
//#endregion
|
|
1766
1814
|
class TaonThemeComponent {
|
|
1767
1815
|
constructor() {
|
|
1768
1816
|
this.TaonThemeMode = TaonThemeMode;
|
|
1817
|
+
this.dialogRef = inject((MatDialogRef));
|
|
1769
1818
|
this.taonTheme = inject(TaonThemeService);
|
|
1770
1819
|
}
|
|
1820
|
+
close() {
|
|
1821
|
+
this.dialogRef.close();
|
|
1822
|
+
}
|
|
1771
1823
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1772
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonThemeComponent, isStandalone: true, selector: "taon-theme", ngImport: i0, template: "<div class=\"p-4\">\n <h2
|
|
1824
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonThemeComponent, isStandalone: true, selector: "taon-theme", ngImport: i0, template: "<div class=\"absolute top-2 right-2\">\n <button\n mat-icon-button\n aria-label=\"Close dialog\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div class=\"p-4\">\n <h2>\n Theme settings\n {{ taonTheme.pernamentMode ? \"( Settings can't ba changed )\" : '' }}\n </h2>\n\n <mat-slide-toggle\n class=\"p-2\"\n [checked]=\"taonTheme.isAuto()\"\n [disabled]=\"taonTheme.pernamentMode\"\n (change)=\"taonTheme.toogleAuto($event.checked)\">\n Sync colors with system\n </mat-slide-toggle>\n\n <mat-slide-toggle\n class=\"p-2\"\n [checked]=\"taonTheme.isDark()\"\n [disabled]=\"taonTheme.isAuto() || taonTheme.pernamentMode\"\n (change)=\"taonTheme.setDark($event.checked)\">\n Dark mode\n </mat-slide-toggle>\n</div>", 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"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatDialogModule }] }); }
|
|
1773
1825
|
}
|
|
1774
1826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonThemeComponent, decorators: [{
|
|
1775
1827
|
type: Component,
|
|
1776
|
-
args: [{ selector: 'taon-theme', imports: [
|
|
1828
|
+
args: [{ selector: 'taon-theme', imports: [
|
|
1829
|
+
MatSlideToggleModule,
|
|
1830
|
+
MatIconModule,
|
|
1831
|
+
MatButtonModule,
|
|
1832
|
+
MatDialogModule,
|
|
1833
|
+
], template: "<div class=\"absolute top-2 right-2\">\n <button\n mat-icon-button\n aria-label=\"Close dialog\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div class=\"p-4\">\n <h2>\n Theme settings\n {{ taonTheme.pernamentMode ? \"( Settings can't ba changed )\" : '' }}\n </h2>\n\n <mat-slide-toggle\n class=\"p-2\"\n [checked]=\"taonTheme.isAuto()\"\n [disabled]=\"taonTheme.pernamentMode\"\n (change)=\"taonTheme.toogleAuto($event.checked)\">\n Sync colors with system\n </mat-slide-toggle>\n\n <mat-slide-toggle\n class=\"p-2\"\n [checked]=\"taonTheme.isDark()\"\n [disabled]=\"taonTheme.isAuto() || taonTheme.pernamentMode\"\n (change)=\"taonTheme.setDark($event.checked)\">\n Dark mode\n </mat-slide-toggle>\n</div>" }]
|
|
1777
1834
|
}] });
|
|
1778
1835
|
|
|
1779
1836
|
//#region imports
|
|
@@ -1796,7 +1853,7 @@ class TaonSimpleLayoutComponent {
|
|
|
1796
1853
|
});
|
|
1797
1854
|
}
|
|
1798
1855
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSimpleLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1799
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonSimpleLayoutComponent, isStandalone: true, selector: "taon-simple-layout", inputs: { hideThemeSettings: { classPropertyName: "hideThemeSettings", publicName: "hideThemeSettings", isSignal: false, isRequired: false, transformFunction: null }, navItems: { classPropertyName: "navItems", publicName: "navItems", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<header\n
|
|
1856
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonSimpleLayoutComponent, isStandalone: true, selector: "taon-simple-layout", inputs: { hideThemeSettings: { classPropertyName: "hideThemeSettings", publicName: "hideThemeSettings", isSignal: false, isRequired: false, transformFunction: null }, hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: false, isRequired: false, transformFunction: null }, navItems: { classPropertyName: "navItems", publicName: "navItems", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (!hideHeader) {\n <header\n class=\"shadow-1 inline-flex w-full justify-content-end align-items-center flex-row\">\n <div class=\"flex-grow-1 align-items-center justify-content-center flex-row\">\n @if (navItems()?.length > 0) {\n <nav\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\">\n @for (item of navItems(); track item.path) {\n <a\n mat-tab-link\n href=\"javascript:void(0)\"\n [style.text-decoration]=\"\n (activePath === item.path && !forceShowBaseRootApp) ||\n ('/' === item.path && forceShowBaseRootApp)\n ? 'underline'\n : 'none'\n \"\n (click)=\"navigateTo(item)\">\n @if (item.path === '/') {\n <mat-icon\n aria-hidden=\"false\"\n aria-label=\"Example home icon\"\n fontIcon=\"home\"></mat-icon>\n } @else {\n {{ item.label }}\n }\n </a>\n }\n </nav>\n }\n <ng-content select=\"[header]\"></ng-content>\n </div>\n\n <div\n class=\"flex-grow-0 flex align-items-center justify-content-center flex-row\">\n <!-- <taon-theme class=\"right-0\" /> -->\n <ng-content select=\"[buttons]\"></ng-content>\n @if (!hideThemeSettings) {\n <button\n class=\"flex mr-2\"\n (click)=\"openDialog(200, 200)\"\n mat-icon-button>\n <mat-icon>settings</mat-icon>\n </button>\n }\n </div>\n </header>\n}\n\n<mat-tab-nav-panel\n #tabPanel\n class=\"pt-2\">\n <div class=\"projected-wrapper\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"fallback-message\">\n Please add your component inside\n <br />\n <pre>\n <code class=\"surface-100 block\">\n <taon-simple-layout class="p-4">\n <header\n header\n class="flex-item">\n <img\n class="border-round"\n src="assets/assets-for/taon-ui/assets/images/pluszka-logo.png"\n height="50px" />\n </header>\n <br />\n <h3 class="text-blue-200">Welcome to hamster store.</h3>\n <h3 class="text-blue-300">Buy cheap hamster videos for free!</h3>\n <h3 class="text-blue-300">Subscribe more hamsters video daily!</h3>\n\n <ng-container buttons>\n <button\n mat-button\n class="flex align-items-center">\n Hello niga!\n </button>\n </ng-container>\n </taon-simple-layout>\n </code>\n </pre>\n </div>\n</mat-tab-nav-panel>", styles: [":host{display:block}:host header{z-index:999}:host header nav{max-width:400px}.projected-wrapper:not(:empty)+.fallback-message{display:none}.projected-wrapper:empty{display:none}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatListModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3$2.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3$2.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3$2.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: MatDialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1800
1857
|
}
|
|
1801
1858
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonSimpleLayoutComponent, decorators: [{
|
|
1802
1859
|
type: Component,
|
|
@@ -1813,9 +1870,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1813
1870
|
MatDialogModule,
|
|
1814
1871
|
JsonPipe,
|
|
1815
1872
|
TaonThemeComponent,
|
|
1816
|
-
], template: "<header\n
|
|
1873
|
+
], template: "@if (!hideHeader) {\n <header\n class=\"shadow-1 inline-flex w-full justify-content-end align-items-center flex-row\">\n <div class=\"flex-grow-1 align-items-center justify-content-center flex-row\">\n @if (navItems()?.length > 0) {\n <nav\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\">\n @for (item of navItems(); track item.path) {\n <a\n mat-tab-link\n href=\"javascript:void(0)\"\n [style.text-decoration]=\"\n (activePath === item.path && !forceShowBaseRootApp) ||\n ('/' === item.path && forceShowBaseRootApp)\n ? 'underline'\n : 'none'\n \"\n (click)=\"navigateTo(item)\">\n @if (item.path === '/') {\n <mat-icon\n aria-hidden=\"false\"\n aria-label=\"Example home icon\"\n fontIcon=\"home\"></mat-icon>\n } @else {\n {{ item.label }}\n }\n </a>\n }\n </nav>\n }\n <ng-content select=\"[header]\"></ng-content>\n </div>\n\n <div\n class=\"flex-grow-0 flex align-items-center justify-content-center flex-row\">\n <!-- <taon-theme class=\"right-0\" /> -->\n <ng-content select=\"[buttons]\"></ng-content>\n @if (!hideThemeSettings) {\n <button\n class=\"flex mr-2\"\n (click)=\"openDialog(200, 200)\"\n mat-icon-button>\n <mat-icon>settings</mat-icon>\n </button>\n }\n </div>\n </header>\n}\n\n<mat-tab-nav-panel\n #tabPanel\n class=\"pt-2\">\n <div class=\"projected-wrapper\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"fallback-message\">\n Please add your component inside\n <br />\n <pre>\n <code class=\"surface-100 block\">\n <taon-simple-layout class="p-4">\n <header\n header\n class="flex-item">\n <img\n class="border-round"\n src="assets/assets-for/taon-ui/assets/images/pluszka-logo.png"\n height="50px" />\n </header>\n <br />\n <h3 class="text-blue-200">Welcome to hamster store.</h3>\n <h3 class="text-blue-300">Buy cheap hamster videos for free!</h3>\n <h3 class="text-blue-300">Subscribe more hamsters video daily!</h3>\n\n <ng-container buttons>\n <button\n mat-button\n class="flex align-items-center">\n Hello niga!\n </button>\n </ng-container>\n </taon-simple-layout>\n </code>\n </pre>\n </div>\n</mat-tab-nav-panel>", styles: [":host{display:block}:host header{z-index:999}:host header nav{max-width:400px}.projected-wrapper:not(:empty)+.fallback-message{display:none}.projected-wrapper:empty{display:none}\n"] }]
|
|
1817
1874
|
}], propDecorators: { hideThemeSettings: [{
|
|
1818
1875
|
type: Input
|
|
1876
|
+
}], hideHeader: [{
|
|
1877
|
+
type: Input
|
|
1819
1878
|
}], navItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "navItems", required: false }] }] } });
|
|
1820
1879
|
|
|
1821
1880
|
//#endregion
|
|
@@ -1886,7 +1945,7 @@ class TaonStripeBuyButtonComponent {
|
|
|
1886
1945
|
}
|
|
1887
1946
|
}
|
|
1888
1947
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonStripeBuyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1889
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonStripeBuyButtonComponent, isStandalone: true, selector: "taon-stripe-buy-button", inputs: { priceId: "priceId", productId: "productId", promotionPreviousPrice: "promotionPreviousPrice", workerUrl: "workerUrl", email: "email", successUrl: "successUrl", cancelUrl: "cancelUrl", label: "label" }, ngImport: i0, template: "<button\n type=\"button\"\n matButton=\"filled\"\n (click)=\"buy()\"\n [disabled]=\"loading\">\n <span *ngIf=\"!loading\">\n {{ label }}\n </span>\n <span\n class=\"line-through absolute bg-red-500 p-1 border-round white-space-nowrap\"\n style=\"margin-top: -25px\"\n *ngIf=\"promotionPreviousPrice\">\n {{ promotionPreviousPrice }}\n </span>\n\n <span *ngIf=\"loading\"> Redirecting to Stripe... </span>\n</button>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
1948
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonStripeBuyButtonComponent, isStandalone: true, selector: "taon-stripe-buy-button", inputs: { priceId: "priceId", productId: "productId", promotionPreviousPrice: "promotionPreviousPrice", workerUrl: "workerUrl", email: "email", successUrl: "successUrl", cancelUrl: "cancelUrl", label: "label" }, ngImport: i0, template: "<button\n type=\"button\"\n matButton=\"filled\"\n (click)=\"buy()\"\n [disabled]=\"loading\">\n <span *ngIf=\"!loading\">\n {{ label }}\n </span>\n <span\n class=\"line-through absolute bg-red-500 p-1 border-round white-space-nowrap\"\n style=\"margin-top: -25px\"\n *ngIf=\"promotionPreviousPrice\">\n {{ promotionPreviousPrice }}\n </span>\n\n <span *ngIf=\"loading\"> Redirecting to Stripe... </span>\n</button>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
1890
1949
|
}
|
|
1891
1950
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonStripeBuyButtonComponent, decorators: [{
|
|
1892
1951
|
type: Component,
|
|
@@ -2092,7 +2151,7 @@ class TaonTableComponent {
|
|
|
2092
2151
|
log.i('context menu event', e);
|
|
2093
2152
|
}
|
|
2094
2153
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2095
|
-
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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i3$
|
|
2154
|
+
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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i3$3.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: i5.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: i4$1.ColumnsComponent, selector: "columns-container" }, { kind: "component", type: i4$1.ColumnComponent, selector: "column", inputs: ["width"] }, { kind: "directive", type: i4$1.DirectiveGrow, selector: "[grow]" }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
2096
2155
|
}
|
|
2097
2156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonTableComponent, decorators: [{
|
|
2098
2157
|
type: Component,
|
|
@@ -2317,7 +2376,7 @@ class TaonYoutubeVideoComponent {
|
|
|
2317
2376
|
this.postCommand('pauseVideo');
|
|
2318
2377
|
}
|
|
2319
2378
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonYoutubeVideoComponent, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2320
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonYoutubeVideoComponent, isStandalone: true, selector: "taon-youtube-video", inputs: { videoId: "videoId", title: "title", height: "height", state: "state" }, outputs: { paddlockClicked: "paddlockClicked", previewClicked: "previewClicked" }, viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["ytFrame"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"yt-container\"\n [ngClass]=\"state\"\n [ngStyle]=\"containerStyle\">\n <!-- PREVIEW IMAGE -->\n <img\n *ngIf=\"state === 'preview-picture' || state === 'preview-picture-locked'\"\n class=\"yt-media\"\n [src]=\"previewImage()\"\n [alt]=\"displayTitle\"\n (click)=\"onPreviewClick()\" />\n\n <!-- VIDEO -->\n <iframe\n #ytFrame\n *ngIf=\"state === 'video-preview-open' || state === 'video-preview-private'\"\n class=\"yt-media\"\n [src]=\"embedUrl()\"\n frameborder=\"0\"\n allowfullscreen>\n </iframe>\n\n <!-- PRIVATE OVERLAY -->\n <div\n (contextmenu)=\"onRightClick($event)\"\n (dblclick)=\"clicked($event)\"\n *ngIf=\"\n state === 'video-preview-private' && allowedToBeDisplayedVideoOveraly()\n \"\n (click)=\"clicked($event)\"\n class=\"yt-overlay-video\">\n <h1 class=\"text-center\" >Thanks for buying <br>this video</h1>\n </div>\n\n <!-- LOCK OVERLAY -->\n <div\n *ngIf=\"state === 'preview-picture-locked'\"\n class=\"yt-overlay yt-lock\"\n (click)=\"onLockClick($event)\">\n <mat-icon>lock</mat-icon>\n </div>\n</div>\n\n<!-- CONTROLS BELOW VIDEO -->\n<!-- <div\n *ngIf=\"state === 'video-preview-private'\"\n class=\"yt-controls\">\n <button\n mat-icon-button\n (click)=\"play()\">\n <mat-icon>play_arrow</mat-icon>\n </button>\n\n <button\n mat-icon-button\n (click)=\"pause()\">\n <mat-icon>pause</mat-icon>\n </button>\n\n <button\n mat-icon-button\n (click)=\"restart()\">\n <mat-icon>replay</mat-icon>\n </button>\n</div> -->\n<div class=\"w-full mb-1\"></div>\n<div\n class=\"yt-title\"\n *ngIf=\"displayTitle\">\n {{ displayTitle }}\n</div>", styles: [".yt-container{position:relative;overflow:hidden;border-radius:8px;border:1px solid var(--surface-border)}.yt-container:not([style*=height]){aspect-ratio:16/9}.yt-media{width:100%;height:100%;display:block;object-fit:cover;position:relative;z-index:1}iframe.yt-media{border:none}.yt-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center}.yt-overlay-video{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#c8c8c880}.yt-lock{background:#0000008c;cursor:pointer}.yt-lock mat-icon{height:60px;width:60px;font-size:56px;color:#fff}.yt-private{background:transparent;pointer-events:all}.yt-title{margin-top:.5rem;font-size:.9rem;font-weight:500}.yt-play-button{width:80px;height:80px;border-radius:50%;background:#ff0000d9;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.yt-play-button mat-icon{font-size:48px;color:#fff;width:48px;height:48px}.yt-play-button:hover{transform:scale(1.1)}.yt-controls{display:flex;gap:8px;margin-top:8px}.yt-controls button{background:#00000014}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type:
|
|
2379
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonYoutubeVideoComponent, isStandalone: true, selector: "taon-youtube-video", inputs: { videoId: "videoId", title: "title", height: "height", state: "state" }, outputs: { paddlockClicked: "paddlockClicked", previewClicked: "previewClicked" }, viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["ytFrame"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"yt-container\"\n [ngClass]=\"state\"\n [ngStyle]=\"containerStyle\">\n <!-- PREVIEW IMAGE -->\n <img\n *ngIf=\"state === 'preview-picture' || state === 'preview-picture-locked'\"\n class=\"yt-media\"\n [src]=\"previewImage()\"\n [alt]=\"displayTitle\"\n (click)=\"onPreviewClick()\" />\n\n <!-- VIDEO -->\n <iframe\n #ytFrame\n *ngIf=\"state === 'video-preview-open' || state === 'video-preview-private'\"\n class=\"yt-media\"\n [src]=\"embedUrl()\"\n frameborder=\"0\"\n allowfullscreen>\n </iframe>\n\n <!-- PRIVATE OVERLAY -->\n <div\n (contextmenu)=\"onRightClick($event)\"\n (dblclick)=\"clicked($event)\"\n *ngIf=\"\n state === 'video-preview-private' && allowedToBeDisplayedVideoOveraly()\n \"\n (click)=\"clicked($event)\"\n class=\"yt-overlay-video\">\n <h1 class=\"text-center\" >Thanks for buying <br>this video</h1>\n </div>\n\n <!-- LOCK OVERLAY -->\n <div\n *ngIf=\"state === 'preview-picture-locked'\"\n class=\"yt-overlay yt-lock\"\n (click)=\"onLockClick($event)\">\n <mat-icon>lock</mat-icon>\n </div>\n</div>\n\n<!-- CONTROLS BELOW VIDEO -->\n<!-- <div\n *ngIf=\"state === 'video-preview-private'\"\n class=\"yt-controls\">\n <button\n mat-icon-button\n (click)=\"play()\">\n <mat-icon>play_arrow</mat-icon>\n </button>\n\n <button\n mat-icon-button\n (click)=\"pause()\">\n <mat-icon>pause</mat-icon>\n </button>\n\n <button\n mat-icon-button\n (click)=\"restart()\">\n <mat-icon>replay</mat-icon>\n </button>\n</div> -->\n<div class=\"w-full mb-1\"></div>\n<div\n class=\"yt-title\"\n *ngIf=\"displayTitle\">\n {{ displayTitle }}\n</div>", styles: [".yt-container{position:relative;overflow:hidden;border-radius:8px;border:1px solid var(--surface-border)}.yt-container:not([style*=height]){aspect-ratio:16/9}.yt-media{width:100%;height:100%;display:block;object-fit:cover;position:relative;z-index:1}iframe.yt-media{border:none}.yt-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center}.yt-overlay-video{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#c8c8c880}.yt-lock{background:#0000008c;cursor:pointer}.yt-lock mat-icon{height:60px;width:60px;font-size:56px;color:#fff}.yt-private{background:transparent;pointer-events:all}.yt-title{margin-top:.5rem;font-size:.9rem;font-weight:500}.yt-play-button{width:80px;height:80px;border-radius:50%;background:#ff0000d9;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.yt-play-button mat-icon{font-size:48px;color:#fff;width:48px;height:48px}.yt-play-button:hover{transform:scale(1.1)}.yt-controls{display:flex;gap:8px;margin-top:8px}.yt-controls button{background:#00000014}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2321
2380
|
}
|
|
2322
2381
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonYoutubeVideoComponent, decorators: [{
|
|
2323
2382
|
type: Component,
|
|
@@ -2374,9 +2433,11 @@ var TaonYouTubeUtils;
|
|
|
2374
2433
|
// set property "shouldGenerateAutogenIndexFile: false"
|
|
2375
2434
|
// in taon.jsonc of your project.
|
|
2376
2435
|
|
|
2436
|
+
var index = {};
|
|
2437
|
+
|
|
2377
2438
|
/**
|
|
2378
2439
|
* Generated bundle index. Do not edit.
|
|
2379
2440
|
*/
|
|
2380
2441
|
|
|
2381
|
-
export { APP_ID, AuthButtonComponent, AuthDialogComponent, AuthGuard, BUILD_BASE_HREF, BUILD_FRAMEWORK_CLI_NAME, CURRENT_PACKAGE_TAON_VERSION, CURRENT_PACKAGE_VERSION, GoogleAuthService, MicrosoftAuthService, PROJECT_NPM_NAME, SafePipe, SessionService, TaonAdminModeConfigurationComponent, TaonBootstrapNavbarComponent, TaonFullMaterialModule, TaonGithubForkMeCornerComponent, TaonGithubForkMeCornerModule, TaonGithubForkMeRibbonComponent, TaonGithubForkMeRibbonModule, TaonIframeSyncComponent, TaonInjectHTMLDirective, TaonKvAuthorizationComponent, TaonLongPress, TaonNotFoundComponent, TaonNotificationOptions, TaonNotificationsComponent, TaonNotificationsModule, TaonNotificationsService, TaonProgressBarComponent, TaonProgressBarModule, TaonRumbleComponent, TaonSessionPasscodeComponent, TaonSimpleLayoutComponent, TaonSimpleLayoutRoutes, TaonStripeBuyButtonComponent, TaonTableComponent, TaonTableModule, TaonThemeComponent, TaonThemeMode, TaonThemeService, TaonYouTubeUtils, TaonYoutubeVideoComponent, ViewMode, myOrgProj };
|
|
2442
|
+
export { APP_ID, AuthButtonComponent, AuthDialogComponent, AuthGuard, BUILD_BASE_HREF, BUILD_FRAMEWORK_CLI_NAME, CURRENT_PACKAGE_TAON_VERSION, CURRENT_PACKAGE_VERSION, GoogleAuthService, MicrosoftAuthService, PROJECT_NPM_NAME, SafePipe, SessionService, TaonAdminModeConfigurationComponent, TaonBootstrapNavbarComponent, TaonFullMaterialModule, TaonGithubForkMeCornerComponent, TaonGithubForkMeCornerModule, TaonGithubForkMeRibbonComponent, TaonGithubForkMeRibbonModule, TaonIframeSyncComponent, TaonInjectHTMLDirective, TaonKvAuthorizationComponent, TaonLongPress, TaonNotFoundComponent, TaonNotificationOptions, TaonNotificationsComponent, TaonNotificationsModule, TaonNotificationsService, TaonProgressBarComponent, TaonProgressBarModule, TaonRumbleComponent, TaonSessionPasscodeComponent, TaonSimpleLayoutComponent, TaonSimpleLayoutRoutes, TaonStripeBuyButtonComponent, TaonTableComponent, TaonTableModule, TaonThemeComponent, TaonThemeMode, TaonThemeService, TaonYouTubeUtils, TaonYoutubeVideoComponent, ViewMode, myOrgProj, startCli };
|
|
2382
2443
|
//# sourceMappingURL=taon-ui-browser.mjs.map
|