zek 16.0.25 → 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.
@@ -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,2 @@
1
+ export * from './google-login-button';
2
+ export * from './module';
@@ -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
+ }
@@ -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';
package/lib/tokens.d.ts CHANGED
@@ -3,3 +3,4 @@ export declare const API_BASE_URL: InjectionToken<string>;
3
3
  export declare const DATE_FORMAT: InjectionToken<string>;
4
4
  export declare const LANGUAGE: InjectionToken<string>;
5
5
  export declare const RECAPTCHA_SITE_KEY: InjectionToken<string>;
6
+ export declare const GOOGLE_CLIENT_ID: InjectionToken<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zek",
3
- "version": "16.0.25",
3
+ "version": "16.0.29",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0"