zek 16.0.27 → 16.0.29
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/esm2022/lib/modules/google-login-button/google-login-button.mjs +97 -0
- package/esm2022/lib/modules/google-login-button/index.mjs +3 -0
- package/esm2022/lib/modules/google-login-button/loader.mjs +10 -0
- package/esm2022/lib/modules/google-login-button/module.mjs +41 -0
- package/esm2022/lib/modules/index.mjs +2 -1
- package/fesm2022/zek.mjs +135 -1
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/modules/google-login-button/google-login-button.d.ts +27 -0
- package/lib/modules/google-login-button/index.d.ts +2 -0
- package/lib/modules/google-login-button/loader.d.ts +10 -0
- package/lib/modules/google-login-button/module.d.ts +12 -0
- package/lib/modules/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CoreComponent, BooleanInput, StringInput } from "../../components";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface GoogleLoginConfig {
|
|
5
|
+
client_id: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ZekGoogleLoginButton extends CoreComponent {
|
|
8
|
+
private readonly client_id;
|
|
9
|
+
constructor(client_id: string);
|
|
10
|
+
private _prompt;
|
|
11
|
+
get prompt(): BooleanInput;
|
|
12
|
+
set prompt(v: BooleanInput);
|
|
13
|
+
onLoginResponse: EventEmitter<any>;
|
|
14
|
+
onLogin: EventEmitter<any>;
|
|
15
|
+
private _buttonContainer;
|
|
16
|
+
get buttonContainer(): StringInput;
|
|
17
|
+
set buttonContainer(v: StringInput);
|
|
18
|
+
private google?;
|
|
19
|
+
init(): Promise<void>;
|
|
20
|
+
private onLoadComplete;
|
|
21
|
+
initialize(): void;
|
|
22
|
+
renderButton(): void;
|
|
23
|
+
autoPrompt(): void;
|
|
24
|
+
handleCredentialResponse(response: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekGoogleLoginButton, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ZekGoogleLoginButton, "zek-google-login", never, { "prompt": { "alias": "prompt"; "required": false; }; "buttonContainer": { "alias": "buttonContainer"; "required": false; }; }, { "onLoginResponse": "onLoginResponse"; "onLogin": "onLogin"; }, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
onGoogleLibraryLoad: () => void;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
declare function loadScript(onLoaded: (google: any) => void, url?: string, nonce?: string): void;
|
|
7
|
+
export declare const loader: {
|
|
8
|
+
loadScript: typeof loadScript;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { GoogleLoginConfig } from './google-login-button';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./google-login-button";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
export declare class GoogleLoginModule {
|
|
7
|
+
static forRoot(config: GoogleLoginConfig): ModuleWithProviders<GoogleLoginModule>;
|
|
8
|
+
static forChild(config: GoogleLoginConfig): ModuleWithProviders<GoogleLoginModule>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleLoginModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GoogleLoginModule, [typeof i1.ZekGoogleLoginButton], [typeof i2.CommonModule], [typeof i1.ZekGoogleLoginButton]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GoogleLoginModule>;
|
|
12
|
+
}
|
package/lib/modules/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './datepicker';
|
|
|
9
9
|
export * from './edit-toolbar';
|
|
10
10
|
export * from './file';
|
|
11
11
|
export * from './file-viewer';
|
|
12
|
+
export * from './google-login-button';
|
|
12
13
|
export * from './grid-toolbar';
|
|
13
14
|
export * from './list-toolbar';
|
|
14
15
|
export * from './loading';
|