@sdcorejs/angular 19.1.2 → 19.1.3
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/README.md +124 -807
- package/components/anchor/src/index.d.ts +1 -1
- package/components/anchor/src/models/index.d.ts +1 -1
- package/components/document-builder/index.d.ts +2 -2
- package/components/document-builder/src/plugins/index.d.ts +1 -1
- package/components/editor/index.d.ts +1 -1
- package/components/editor/src/models/index.d.ts +2 -2
- package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +25 -2
- package/components/form-generic/src/configurations/index.d.ts +1 -1
- package/components/form-generic/src/models/form-render/index.d.ts +2 -2
- package/components/form-generic/src/models/index.d.ts +6 -6
- package/components/import-excel/index.d.ts +1 -1
- package/components/mini-editor/index.d.ts +1 -1
- package/components/org-chart/index.d.ts +1 -1
- package/components/preview/index.d.ts +2 -2
- package/components/table/index.d.ts +1 -1
- package/components/table/src/models/index.d.ts +4 -4
- package/components/tree/index.d.ts +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +149 -59
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +2 -7
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +7 -15
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +60 -30
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +32 -31
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs +2 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +2 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +2 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +2 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +2 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +6 -5
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +15 -466
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs +4 -2
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +8 -5
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +9 -5
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +2 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +2 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules.mjs +0 -1
- package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-loading.mjs +23 -14
- package/fesm2022/sdcorejs-angular-services-loading.mjs.map +1 -1
- package/forms/date/src/date.component.d.ts +1 -1
- package/forms/datetime/src/datetime.component.d.ts +1 -1
- package/forms/input/src/input.component.d.ts +3 -1
- package/forms/input-color/src/input-color.component.d.ts +3 -1
- package/forms/input-number/src/input-number.component.d.ts +3 -1
- package/forms/models/index.d.ts +2 -2
- package/modules/auth/services/index.d.ts +1 -1
- package/modules/icon/src/icon.model.d.ts +1 -2
- package/modules/icon/src/icon.provider.d.ts +1 -1
- package/modules/index.d.ts +0 -1
- package/modules/layout/services/index.d.ts +1 -1
- package/package.json +2 -5
- package/services/excel/src/public-api.d.ts +1 -1
- package/services/loading/src/loading.service.d.ts +1 -1
- package/utilities/models/index.d.ts +7 -7
- package/fesm2022/sdcorejs-angular-modules-authom.mjs +0 -360
- package/fesm2022/sdcorejs-angular-modules-authom.mjs.map +0 -1
- package/forms/datetime/src/material-datetime/index.d.ts +0 -14
- package/forms/datetime/src/material-datetime/lib/core/date-adapter.d.ts +0 -10
- package/forms/datetime/src/material-datetime/lib/core/date-formats.d.ts +0 -18
- package/forms/datetime/src/material-datetime/lib/core/default-options.d.ts +0 -13
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker-actions.component.d.ts +0 -5
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker-apply.directive.d.ts +0 -7
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker-cancel.directive.d.ts +0 -7
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker-input.directive.d.ts +0 -24
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker-now.directive.d.ts +0 -7
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker-toggle.directive.d.ts +0 -8
- package/forms/datetime/src/material-datetime/lib/datetime-picker/datetime-picker.component.d.ts +0 -39
- package/forms/datetime/src/material-datetime/lib/native/native-date-adapter.d.ts +0 -15
- package/forms/datetime/src/material-datetime/lib/native/native-date-formats.d.ts +0 -2
- package/forms/datetime/src/material-datetime/lib/native/provide-native.d.ts +0 -3
- package/forms/datetime/src/material-datetime/lib/time-spinner/time-spinner.component.d.ts +0 -31
- package/modules/authom/authom.configuration.d.ts +0 -17
- package/modules/authom/authom.interceptor.d.ts +0 -3
- package/modules/authom/authom.module.d.ts +0 -16
- package/modules/authom/authom.service.d.ts +0 -32
- package/modules/authom/index.d.ts +0 -35
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SdTimeSpinner {
|
|
3
|
-
#private;
|
|
4
|
-
readonly value: import("@angular/core").InputSignal<Date | null>;
|
|
5
|
-
readonly showSeconds: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
readonly stepMinute: import("@angular/core").InputSignal<number>;
|
|
7
|
-
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
readonly valueChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
9
|
-
readonly hour: import("@angular/core").Signal<number>;
|
|
10
|
-
readonly minute: import("@angular/core").Signal<number>;
|
|
11
|
-
readonly second: import("@angular/core").Signal<number>;
|
|
12
|
-
private readonly _focusedUnit;
|
|
13
|
-
/** Display string for each column: unpadded while focused (so the user can type freely), padded to 2 digits otherwise. */
|
|
14
|
-
readonly displayHour: import("@angular/core").Signal<string>;
|
|
15
|
-
readonly displayMinute: import("@angular/core").Signal<string>;
|
|
16
|
-
readonly displaySecond: import("@angular/core").Signal<string>;
|
|
17
|
-
setFocus(unit: 'hour' | 'minute' | 'second'): void;
|
|
18
|
-
clearFocus(): void;
|
|
19
|
-
stepHourUp(): void;
|
|
20
|
-
stepHourDown(): void;
|
|
21
|
-
stepMinuteUp(): void;
|
|
22
|
-
stepMinuteDown(): void;
|
|
23
|
-
stepSecondUp(): void;
|
|
24
|
-
stepSecondDown(): void;
|
|
25
|
-
onHourInput(raw: string): void;
|
|
26
|
-
onMinuteInput(raw: string): void;
|
|
27
|
-
onSecondInput(raw: string): void;
|
|
28
|
-
onDigitKeyDown(event: KeyboardEvent): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdTimeSpinner, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdTimeSpinner, "sd-time-spinner", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface SdAuthOmTenantConfig {
|
|
3
|
-
domain: string;
|
|
4
|
-
clientId: string;
|
|
5
|
-
redirectUri?: string;
|
|
6
|
-
audience?: string;
|
|
7
|
-
organization?: string;
|
|
8
|
-
scope?: string;
|
|
9
|
-
secureRoutes?: string[];
|
|
10
|
-
silentRefreshRedirectUri?: string;
|
|
11
|
-
refreshThresholdSeconds?: number;
|
|
12
|
-
authorizeTimeoutInSeconds?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface ISdAuthOmConfiguration {
|
|
15
|
-
loadTenantConfig: () => Promise<SdAuthOmTenantConfig>;
|
|
16
|
-
}
|
|
17
|
-
export declare const SD_AUTHOM_CONFIGURATION: InjectionToken<ISdAuthOmConfiguration>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, Type, EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { ISdAuthOmConfiguration } from './authom.configuration';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
interface ProvideOptions {
|
|
5
|
-
useClass?: Type<ISdAuthOmConfiguration>;
|
|
6
|
-
useFactory?: (...args: any[]) => ISdAuthOmConfiguration;
|
|
7
|
-
deps?: any[];
|
|
8
|
-
}
|
|
9
|
-
export declare function provideSdAuthOm(options: ProvideOptions): EnvironmentProviders;
|
|
10
|
-
export declare class SdAuthOmModule {
|
|
11
|
-
static forRoot(options: ProvideOptions): ModuleWithProviders<SdAuthOmModule>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdAuthOmModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdAuthOmModule, never, never, never>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SdAuthOmModule>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SdAuthOmTenantConfig } from './authom.configuration';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SdAuthOmService {
|
|
4
|
-
private readonly platformId;
|
|
5
|
-
private readonly isBrowser;
|
|
6
|
-
readonly accessToken: import("@angular/core").WritableSignal<string | null>;
|
|
7
|
-
readonly idTokenClaims: import("@angular/core").WritableSignal<Record<string, unknown> | null>;
|
|
8
|
-
readonly isAuthenticated: import("@angular/core").Signal<boolean>;
|
|
9
|
-
config: SdAuthOmTenantConfig;
|
|
10
|
-
private refreshTimer;
|
|
11
|
-
getAccessToken(): string | null;
|
|
12
|
-
private base64UrlEncode;
|
|
13
|
-
private generateCodeVerifier;
|
|
14
|
-
private generateCodeChallenge;
|
|
15
|
-
private buildAuthorizeUrl;
|
|
16
|
-
private getDefaultRedirectUri;
|
|
17
|
-
private getSilentRedirectUri;
|
|
18
|
-
private decodeJwtPayload;
|
|
19
|
-
login(options?: {
|
|
20
|
-
returnTo?: string;
|
|
21
|
-
}): Promise<void>;
|
|
22
|
-
logout(options?: {
|
|
23
|
-
returnTo?: string;
|
|
24
|
-
}): void;
|
|
25
|
-
private exchangeCode;
|
|
26
|
-
private scheduleRefresh;
|
|
27
|
-
silentRefresh(): Promise<boolean>;
|
|
28
|
-
handleCallback(): Promise<boolean>;
|
|
29
|
-
init(config: SdAuthOmTenantConfig): Promise<boolean>;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdAuthOmService, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SdAuthOmService>;
|
|
32
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Module `authom` — OAuth 2.0 + PKCE authentication client cho AuthOM (Auth0-based).
|
|
3
|
-
*
|
|
4
|
-
* Cách dùng (standalone):
|
|
5
|
-
* ```ts
|
|
6
|
-
* import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
7
|
-
* import { provideSdAuthOm, SdAuthOmInterceptor } from '@sdcorejs/angular/modules/authom';
|
|
8
|
-
*
|
|
9
|
-
* export const appConfig: ApplicationConfig = {
|
|
10
|
-
* providers: [
|
|
11
|
-
* provideHttpClient(withInterceptors([SdAuthOmInterceptor])),
|
|
12
|
-
* provideSdAuthOm({
|
|
13
|
-
* useFactory: () => ({
|
|
14
|
-
* loadTenantConfig: () => Promise.resolve({
|
|
15
|
-
* domain: 'login.example.com',
|
|
16
|
-
* clientId: 'YOUR_CLIENT_ID',
|
|
17
|
-
* audience: 'https://api.example.com',
|
|
18
|
-
* organization: 'org_xxx',
|
|
19
|
-
* scope: 'openid profile email offline_access',
|
|
20
|
-
* secureRoutes: ['https://api.example.com/*'],
|
|
21
|
-
* }),
|
|
22
|
-
* }),
|
|
23
|
-
* }),
|
|
24
|
-
* ],
|
|
25
|
-
* };
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* Yêu cầu setup thêm:
|
|
29
|
-
* 1. Copy file `silent-authom.html` từ source module này vào thư mục `public/` của app.
|
|
30
|
-
* 2. App phải chạy trên HTTPS (hoặc localhost) — Web Crypto API yêu cầu secure context.
|
|
31
|
-
*/
|
|
32
|
-
export * from './authom.configuration';
|
|
33
|
-
export * from './authom.service';
|
|
34
|
-
export * from './authom.interceptor';
|
|
35
|
-
export * from './authom.module';
|