@ng-atomic/common 18.10.0 → 18.12.0
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/directives/molecules/column/column.molecule.d.ts +66 -0
- package/directives/molecules/column/index.d.ts +1 -0
- package/directives/resize-column/index.d.ts +1 -0
- package/directives/resize-column/resize-column.directive.d.ts +21 -0
- package/directives/resize-column/resize-handle.component.d.ts +5 -0
- package/esm2022/directives/molecules/column/column.molecule.mjs +112 -0
- package/esm2022/directives/molecules/column/index.mjs +2 -0
- package/esm2022/directives/molecules/column/ng-atomic-common-directives-molecules-column.mjs +5 -0
- package/esm2022/directives/resize-column/index.mjs +2 -0
- package/esm2022/directives/resize-column/ng-atomic-common-directives-resize-column.mjs +5 -0
- package/esm2022/directives/resize-column/resize-column.directive.mjs +62 -0
- package/esm2022/directives/resize-column/resize-handle.component.mjs +13 -0
- package/esm2022/models/index.mjs +1 -1
- package/esm2022/pipes/actions/actions.pipe.mjs +1 -1
- package/esm2022/pipes/columns/columns.pipe.mjs +3 -2
- package/esm2022/pipes/data-accessor/data-accessor.pipe.mjs +16 -3
- package/esm2022/pipes/domain/domain.pipe.mjs +22 -26
- package/esm2022/pipes/error/error.pipe.mjs +1 -2
- package/esm2022/pipes/expression/expression.pipe.mjs +18 -0
- package/esm2022/pipes/expression/index.mjs +2 -0
- package/esm2022/pipes/expression/ng-atomic-common-pipes-expression.mjs +5 -0
- package/esm2022/pipes/smart-field/smart-field.pipe.mjs +15 -4
- package/esm2022/pipes/style/index.mjs +2 -0
- package/esm2022/pipes/style/ng-atomic-common-pipes-style.mjs +5 -0
- package/esm2022/pipes/style/style.pipe.mjs +41 -0
- package/esm2022/services/form/columns/columns.service.mjs +28 -21
- package/esm2022/services/form/json-schema/json-schema.service.mjs +77 -58
- package/esm2022/services/form/pagination/pagination.service.mjs +4 -4
- package/esm2022/services/language/index.mjs +2 -0
- package/esm2022/services/language/language.service.mjs +39 -0
- package/esm2022/services/language/ng-atomic-common-services-language.mjs +5 -0
- package/esm2022/services/loading/loading.service.mjs +2 -2
- package/esm2022/services/query-resolver/query-resolver.service.mjs +4 -5
- package/esm2022/services/snack-bar/snack-bar.service.mjs +29 -11
- package/esm2022/services/spreadsheet/directives/grid-cell.directive.mjs +124 -0
- package/esm2022/services/spreadsheet/directives/index.mjs +2 -0
- package/esm2022/services/spreadsheet/features/clipboard.service.mjs +71 -0
- package/esm2022/services/spreadsheet/features/data.service.mjs +63 -0
- package/esm2022/services/spreadsheet/features/editor.service.mjs +65 -0
- package/esm2022/services/spreadsheet/features/grid.service.mjs +54 -0
- package/esm2022/services/spreadsheet/features/index.mjs +8 -0
- package/esm2022/services/spreadsheet/features/navigation.service.mjs +71 -0
- package/esm2022/services/spreadsheet/features/protection.service.mjs +25 -0
- package/esm2022/services/spreadsheet/features/selection.service.mjs +129 -0
- package/esm2022/services/spreadsheet/index.mjs +5 -0
- package/esm2022/services/spreadsheet/models/cell.model.mjs +2 -0
- package/esm2022/services/spreadsheet/models/index.mjs +2 -0
- package/esm2022/services/spreadsheet/ng-atomic-common-services-spreadsheet.mjs +5 -0
- package/esm2022/services/spreadsheet/spreadsheet.service.mjs +183 -0
- package/esm2022/services/ui/ui.helpers.mjs +15 -8
- package/esm2022/stores/query/query.store.mjs +2 -2
- package/esm2022/utils/expression/expression.transformer.mjs +38 -0
- package/esm2022/utils/expression/index.mjs +2 -0
- package/esm2022/utils/get/get.mjs +2 -2
- package/esm2022/utils/index.mjs +2 -2
- package/esm2022/utils/inject/inject.mjs +1 -1
- package/fesm2022/ng-atomic-common-directives-fallback-src.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-directives-molecules-column.mjs +119 -0
- package/fesm2022/ng-atomic-common-directives-molecules-column.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-directives-resize-column.mjs +79 -0
- package/fesm2022/ng-atomic-common-directives-resize-column.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-interceptors-authorization.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors-throttle.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors-token.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-actions.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-auto-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-columns.mjs +2 -1
- package/fesm2022/ng-atomic-common-pipes-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs +15 -2
- package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-domain.mjs +22 -26
- package/fesm2022/ng-atomic-common-pipes-domain.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-error.mjs +0 -1
- package/fesm2022/ng-atomic-common-pipes-error.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-expression.mjs +25 -0
- package/fesm2022/ng-atomic-common-pipes-expression.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-grouped-by.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-index-length.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-index.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-keys.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-map.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-page.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-pagination.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-query.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-resolve-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-secret.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-select-id.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-signal.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-smart-field.mjs +15 -4
- package/fesm2022/ng-atomic-common-pipes-smart-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-sort-by.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-sort.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-style.mjs +48 -0
- package/fesm2022/ng-atomic-common-pipes-style.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-yen.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-auth.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-breakpoint.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-chips-manager.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-csv.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-fab.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-columns.mjs +27 -20
- package/fesm2022/ng-atomic-common-services-form-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-json-schema.mjs +76 -57
- package/fesm2022/ng-atomic-common-services-form-json-schema.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-pagination.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-pagination.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-sort.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-initializer.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-language.mjs +46 -0
- package/fesm2022/ng-atomic-common-services-language.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-services-loading.mjs +1 -1
- package/fesm2022/ng-atomic-common-services-loading.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-navigation-history.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-query-resolver.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-query-resolver.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-root-property.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-router.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-secret.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-sheets-actions.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-sheets.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-side-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-side-nav-mode.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-snack-bar.mjs +29 -11
- package/fesm2022/ng-atomic-common-services-snack-bar.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-spreadsheet.mjs +758 -0
- package/fesm2022/ng-atomic-common-services-spreadsheet.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-services-ui.mjs +14 -7
- package/fesm2022/ng-atomic-common-services-ui.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-entities.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-entity.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-pagination.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-query.mjs +1 -1
- package/fesm2022/ng-atomic-common-stores-query.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-selection.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-sort.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-utils.mjs +34 -15
- package/fesm2022/ng-atomic-common-utils.mjs.map +1 -1
- package/fesm2022/ng-atomic-common.mjs.map +1 -1
- package/models/index.d.ts +2 -1
- package/package.json +73 -44
- package/pipes/actions/actions.pipe.d.ts +2 -1
- package/pipes/columns/columns.pipe.d.ts +1 -0
- package/pipes/data-accessor/data-accessor.pipe.d.ts +4 -2
- package/pipes/domain/domain.pipe.d.ts +7 -6
- package/pipes/expression/expression.pipe.d.ts +9 -0
- package/pipes/expression/index.d.ts +1 -0
- package/pipes/smart-field/smart-field.pipe.d.ts +2 -2
- package/pipes/style/index.d.ts +1 -0
- package/pipes/style/style.pipe.d.ts +18 -0
- package/services/form/_index/index.service.d.ts +4 -4
- package/services/form/columns/columns.service.d.ts +5 -2
- package/services/form/json-schema/json-schema.service.d.ts +9 -1
- package/services/form/pagination/pagination.service.d.ts +5 -5
- package/services/language/index.d.ts +1 -0
- package/services/language/language.service.d.ts +12 -0
- package/services/query-resolver/query-resolver.service.d.ts +2 -2
- package/services/snack-bar/snack-bar.service.d.ts +5 -3
- package/services/spreadsheet/directives/grid-cell.directive.d.ts +41 -0
- package/services/spreadsheet/directives/index.d.ts +1 -0
- package/services/spreadsheet/features/clipboard.service.d.ts +15 -0
- package/services/spreadsheet/features/data.service.d.ts +16 -0
- package/services/spreadsheet/features/editor.service.d.ts +22 -0
- package/services/spreadsheet/features/grid.service.d.ts +17 -0
- package/services/spreadsheet/features/index.d.ts +7 -0
- package/services/spreadsheet/features/navigation.service.d.ts +17 -0
- package/services/spreadsheet/features/protection.service.d.ts +24 -0
- package/services/spreadsheet/features/selection.service.d.ts +40 -0
- package/services/spreadsheet/index.d.ts +4 -0
- package/services/spreadsheet/models/cell.model.d.ts +17 -0
- package/services/spreadsheet/models/index.d.ts +1 -0
- package/services/spreadsheet/spreadsheet.service.d.ts +29 -0
- package/utils/expression/expression.transformer.d.ts +12 -0
- package/utils/expression/index.d.ts +1 -0
- package/utils/index.d.ts +1 -1
- package/utils/inject/inject.d.ts +2 -2
- package/esm2022/pipes/smart-exp/index.mjs +0 -3
- package/esm2022/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +0 -5
- package/esm2022/pipes/smart-exp/smart-exp.module.mjs +0 -16
- package/esm2022/pipes/smart-exp/smart-exp.pipe.mjs +0 -27
- package/esm2022/utils/smart-exp-transformer/index.mjs +0 -2
- package/esm2022/utils/smart-exp-transformer/smart-exp-transformer.mjs +0 -18
- package/fesm2022/ng-atomic-common-pipes-smart-exp.mjs +0 -47
- package/fesm2022/ng-atomic-common-pipes-smart-exp.mjs.map +0 -1
- package/pipes/smart-exp/index.d.ts +0 -2
- package/pipes/smart-exp/smart-exp.module.d.ts +0 -7
- package/pipes/smart-exp/smart-exp.pipe.d.ts +0 -11
- package/utils/smart-exp-transformer/index.d.ts +0 -1
- package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +0 -6
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { Action } from "@ng-atomic/core";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ActionsPipe implements PipeTransform {
|
|
4
|
-
transform(value: any, ...args: any[]):
|
|
5
|
+
transform(value: any, ...args: any[]): Action[];
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsPipe, never>;
|
|
6
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<ActionsPipe, "resolveActions", true>;
|
|
7
8
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { Column } from '@ng-atomic/common/models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** @deprecated */
|
|
4
5
|
export declare class ColumnsPipe implements PipeTransform {
|
|
5
6
|
transform<T>(columns: Column[]): Column[];
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsPipe, never>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { InjectionToken, PipeTransform } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export type DataAccessor<T> = (obj: T, key: string,
|
|
3
|
+
export type DataAccessor<T> = (obj: T, key: string, context?: number | any) => any;
|
|
4
4
|
export declare const DATA_ACCESSOR: InjectionToken<DataAccessor<any>>;
|
|
5
5
|
export declare const defaultDataAccessor: DataAccessor<any>;
|
|
6
|
-
export declare function provideDataAccessor<T>(useFactory?: () => DataAccessor<T
|
|
6
|
+
export declare function provideDataAccessor<T>(useFactory?: () => DataAccessor<T>, { merge }?: {
|
|
7
|
+
merge?: boolean;
|
|
8
|
+
}): {
|
|
7
9
|
provide: InjectionToken<DataAccessor<any>>;
|
|
8
10
|
useFactory: () => DataAccessor<T>;
|
|
9
11
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { InjectionToken, Injector, Signal, PipeTransform } from '@angular/core';
|
|
2
2
|
import { Entity, Type } from '@nx-ddd/common/domain/models';
|
|
3
3
|
import { SignalOrValue } from '@ng-atomic/common/pipes/signal';
|
|
4
|
+
import { DomainLangMap, LanguageService } from '@ng-atomic/common/services/language';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export type DomainLangMap = Record<string, string>;
|
|
6
6
|
export declare const DOMAIN_MODEL: InjectionToken<Type<{
|
|
7
7
|
id: string;
|
|
8
8
|
}>>;
|
|
9
|
-
export declare const DOMAIN_LANG_MAP: InjectionToken<DomainLangMap>;
|
|
10
9
|
export declare const DOMAIN_PROPS: InjectionToken<Signal<string[]>>;
|
|
11
10
|
export declare const DOMAIN_MODEL_NAME: InjectionToken<Signal<string>>;
|
|
12
11
|
export declare class DomainPipe implements PipeTransform {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
transform(input: string, map?: DomainLangMap): any;
|
|
12
|
+
readonly language: LanguageService;
|
|
13
|
+
transform(input: string, map?: DomainLangMap): string;
|
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DomainPipe, never>;
|
|
17
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<DomainPipe, "domain", true>;
|
|
18
16
|
}
|
|
19
|
-
export declare function
|
|
17
|
+
export declare function injectParentDomainLangMap(): DomainLangMap;
|
|
18
|
+
export declare function provideLangMap(useFactory: () => DomainLangMap, { merge }?: {
|
|
19
|
+
merge?: boolean;
|
|
20
|
+
}): {
|
|
20
21
|
provide: InjectionToken<DomainLangMap>;
|
|
21
22
|
useFactory: () => DomainLangMap;
|
|
22
23
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ExpressionPipe implements PipeTransform {
|
|
5
|
+
protected transformer: import("@ng-atomic/common/utils").ExpressionTransformer;
|
|
6
|
+
transform(input: string | number | dayjs.Dayjs | any, key?: string): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpressionPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ExpressionPipe, "expression", true>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './expression.pipe';
|
|
@@ -86,8 +86,7 @@ export declare function provideFormFieldMap(useFactory: () => FormFieldMap): {
|
|
|
86
86
|
useFactory: () => FormFieldMap;
|
|
87
87
|
};
|
|
88
88
|
type Enum<T> = Record<string, T>;
|
|
89
|
-
|
|
90
|
-
export declare function buildOptions<T>(_enum: Enum<T>): Option<T>[];
|
|
89
|
+
export declare function buildOptions<T>(_enum: Enum<T> | any[]): Option<T>[];
|
|
91
90
|
/** @deprecated */
|
|
92
91
|
export declare class SmartFieldPipe implements PipeTransform {
|
|
93
92
|
protected map: FormFieldMap;
|
|
@@ -95,4 +94,5 @@ export declare class SmartFieldPipe implements PipeTransform {
|
|
|
95
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFieldPipe, never>;
|
|
96
95
|
static ɵpipe: i0.ɵɵPipeDeclaration<SmartFieldPipe, "smartField", true>;
|
|
97
96
|
}
|
|
97
|
+
export declare function resolveFormField(fieldMap: FormFieldMap, name: string): FormFieldMap | FormField<any>;
|
|
98
98
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './style.pipe';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionToken, PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare function isNumeric(value: any): value is number;
|
|
4
|
+
export type StyleMap = Record<string, any>;
|
|
5
|
+
export type StyleTransformer = (value: any, context?: any) => StyleMap;
|
|
6
|
+
export declare const defaultStyleTransformer: StyleTransformer;
|
|
7
|
+
export declare const STYLE_TRANSFORMER: InjectionToken<StyleTransformer>;
|
|
8
|
+
export declare function provideStyleTransformer(useFactory: () => StyleTransformer): {
|
|
9
|
+
provide: InjectionToken<StyleTransformer>;
|
|
10
|
+
useFactory: () => StyleTransformer;
|
|
11
|
+
};
|
|
12
|
+
export declare function injectParentStyleTransformer(): StyleTransformer;
|
|
13
|
+
export declare class StylePipe implements PipeTransform {
|
|
14
|
+
protected transformer: StyleTransformer;
|
|
15
|
+
transform(value: any, context?: any): StyleMap;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StylePipe, never>;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<StylePipe, "style", true>;
|
|
18
|
+
}
|
|
@@ -17,8 +17,8 @@ export declare class IndexFormBuilder {
|
|
|
17
17
|
}): import("@angular/forms").FormGroup<{
|
|
18
18
|
query: import("@angular/forms").FormControl<string>;
|
|
19
19
|
page: import("@angular/forms").FormGroup<{
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
size: import("@angular/forms").FormControl<number>;
|
|
21
|
+
index: import("@angular/forms").FormControl<number>;
|
|
22
22
|
length: import("@angular/forms").FormControl<number>;
|
|
23
23
|
}>;
|
|
24
24
|
sort: import("@angular/forms").FormGroup<{
|
|
@@ -42,8 +42,8 @@ export declare function injectIndexForm({ columns, sort, query, page }?: {
|
|
|
42
42
|
}): import("@angular/forms").FormGroup<{
|
|
43
43
|
query: import("@angular/forms").FormControl<string>;
|
|
44
44
|
page: import("@angular/forms").FormGroup<{
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
size: import("@angular/forms").FormControl<number>;
|
|
46
|
+
index: import("@angular/forms").FormControl<number>;
|
|
47
47
|
length: import("@angular/forms").FormControl<number>;
|
|
48
48
|
}>;
|
|
49
49
|
sort: import("@angular/forms").FormGroup<{
|
|
@@ -8,25 +8,28 @@ export type ActionsColumnForm = FormGroup<{
|
|
|
8
8
|
width: FormControl<number>;
|
|
9
9
|
actions: FormControl<any>;
|
|
10
10
|
sticky: FormControl<boolean>;
|
|
11
|
+
stickyEnd: FormControl<boolean>;
|
|
11
12
|
}>;
|
|
12
13
|
export type CheckboxColumnForm = FormGroup<{
|
|
13
14
|
type: FormControl<'checkbox'>;
|
|
14
15
|
visible: FormControl<boolean>;
|
|
15
16
|
width: FormControl<number>;
|
|
16
17
|
sticky: FormControl<boolean>;
|
|
18
|
+
stickyEnd: FormControl<boolean>;
|
|
17
19
|
}>;
|
|
18
20
|
export type TextColumnForm = FormGroup<{
|
|
19
21
|
type: FormControl<'text'>;
|
|
20
22
|
visible: FormControl<boolean>;
|
|
21
23
|
width: FormControl<number>;
|
|
22
24
|
sticky: FormControl<boolean>;
|
|
25
|
+
stickyEnd: FormControl<boolean>;
|
|
23
26
|
}>;
|
|
24
27
|
export type TreeColumnForm = FormGroup<{
|
|
25
28
|
type: FormControl<'tree'>;
|
|
26
|
-
headerText: FormControl<string>;
|
|
27
29
|
visible: FormControl<boolean>;
|
|
28
30
|
width: FormControl<number>;
|
|
29
31
|
sticky: FormControl<boolean>;
|
|
32
|
+
stickyEnd: FormControl<boolean>;
|
|
30
33
|
}>;
|
|
31
34
|
export type ColumnsForm = FormArray<FormRecord<ActionsColumnForm | CheckboxColumnForm | TextColumnForm | TreeColumnForm>>;
|
|
32
35
|
export interface ColumnsFormValue {
|
|
@@ -49,7 +52,7 @@ export declare function injectColumnsForm(): FormGroup<{
|
|
|
49
52
|
ids: FormControl<string[]>;
|
|
50
53
|
map: FormGroup<{}>;
|
|
51
54
|
}>;
|
|
52
|
-
export declare function buildColumns(
|
|
55
|
+
export declare function buildColumns(columnIdOrActions: (string | Actions)[], { stickyStart, stickyEnd, }?: {
|
|
53
56
|
stickyStart?: number;
|
|
54
57
|
stickyEnd?: number;
|
|
55
58
|
}): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormBuilder, FormGroup, NonNullableFormBuilder } from "@angular/forms";
|
|
2
2
|
import { JsonSchema } from "json-schema-library";
|
|
3
|
+
import { FormFieldMap } from "@ng-atomic/common/pipes/smart-field";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class JsonSchemaFormUtils {
|
|
5
6
|
static removeObjectPercent<T extends object>(value: T): any;
|
|
@@ -21,6 +22,13 @@ export declare class JsonSchemaFormUtils {
|
|
|
21
22
|
value?: object;
|
|
22
23
|
fieldMap?: object;
|
|
23
24
|
}): any;
|
|
25
|
+
static buildFormFieldByProperty(property: JsonSchema['properties']): {
|
|
26
|
+
type: string;
|
|
27
|
+
options: any;
|
|
28
|
+
} | {
|
|
29
|
+
type: any;
|
|
30
|
+
options?: undefined;
|
|
31
|
+
};
|
|
24
32
|
static buildFormFieldMapByJsonSchema(schema: JsonSchema, options?: {
|
|
25
33
|
merge?: {
|
|
26
34
|
[key: string]: any;
|
|
@@ -39,7 +47,7 @@ export declare function buildFormFieldMap(klass: new () => any, options: {
|
|
|
39
47
|
export declare function buildForm(klass: new () => any, { fb, value, fieldMap, }?: {
|
|
40
48
|
fb?: FormBuilder | NonNullableFormBuilder;
|
|
41
49
|
value?: object;
|
|
42
|
-
fieldMap?:
|
|
50
|
+
fieldMap?: FormFieldMap;
|
|
43
51
|
}): any;
|
|
44
52
|
export declare class JsonSchemaFormService {
|
|
45
53
|
private fb;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export interface PaginationFormValue {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
size: number;
|
|
4
|
+
index: number;
|
|
5
5
|
length: number;
|
|
6
6
|
}
|
|
7
7
|
export declare class PaginationService {
|
|
8
8
|
private fb;
|
|
9
|
-
build({
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
build({ size, index, length, }?: Partial<PaginationFormValue>): import("@angular/forms").FormGroup<{
|
|
10
|
+
size: import("@angular/forms").FormControl<number>;
|
|
11
|
+
index: import("@angular/forms").FormControl<number>;
|
|
12
12
|
length: import("@angular/forms").FormControl<number>;
|
|
13
13
|
}>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationService, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './language.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type DomainLangMap = Record<string, string>;
|
|
4
|
+
export declare const DOMAIN_LANG_MAP: InjectionToken<DomainLangMap>;
|
|
5
|
+
export declare class LanguageService {
|
|
6
|
+
protected map: DomainLangMap;
|
|
7
|
+
protected regexResolvers: (((key: string) => string) | (() => any))[];
|
|
8
|
+
translate(text: string, src: string, dest: string, context?: any): string;
|
|
9
|
+
transform(input: string, map?: DomainLangMap): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
|
|
12
|
+
}
|
|
@@ -13,8 +13,8 @@ export declare class QueryParserService {
|
|
|
13
13
|
export declare class QueryResolverService<T extends object> {
|
|
14
14
|
protected parser: QueryParserService;
|
|
15
15
|
protected dataAccessor: import("@ng-atomic/common/pipes/data-accessor").DataAccessor<any>;
|
|
16
|
-
protected transformer: import("@ng-atomic/common/utils").
|
|
17
|
-
protected map: import("@ng-atomic/common/
|
|
16
|
+
protected transformer: import("@ng-atomic/common/utils").ExpressionTransformer;
|
|
17
|
+
protected map: import("@ng-atomic/common/services/language").DomainLangMap;
|
|
18
18
|
protected reversedMap: Record<string, string>;
|
|
19
19
|
resolve(items: T[], queryStr?: string): T[];
|
|
20
20
|
protected executeQuery(items: T[], query: Query): T[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Clipboard } from '@angular/cdk/clipboard';
|
|
1
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class SnackBarService {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
open(message: string, action?: string):
|
|
5
|
+
protected readonly clipboard: Clipboard;
|
|
6
|
+
protected readonly snackBar: MatSnackBar;
|
|
7
|
+
open(message: string, action?: string): import("@angular/material/snack-bar").MatSnackBarRef<import("@angular/material/snack-bar").TextOnlySnackBar>;
|
|
8
|
+
openError(error: Error | string): void;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
|
|
8
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
|
|
9
11
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { SpreadSheetService } from "../spreadsheet.service";
|
|
3
|
+
import { CellContext } from "../models/cell.model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SpreadSheetCell {
|
|
6
|
+
protected ss: SpreadSheetService;
|
|
7
|
+
readonly el: ElementRef<HTMLTableCellElement>;
|
|
8
|
+
readonly position: import("@angular/core").InputSignal<{
|
|
9
|
+
row: number;
|
|
10
|
+
col: number;
|
|
11
|
+
}>;
|
|
12
|
+
readonly editable: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
readonly context: import("@angular/core").InputSignal<CellContext<any>>;
|
|
14
|
+
readonly isSelected: import("@angular/core").Signal<boolean>;
|
|
15
|
+
readonly isEditing: import("@angular/core").Signal<boolean>;
|
|
16
|
+
readonly frameEl: import("@angular/core").WritableSignal<HTMLDivElement>;
|
|
17
|
+
constructor();
|
|
18
|
+
onDbClick(): void;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
protected buildOutlineFrame(): HTMLDivElement;
|
|
21
|
+
protected createLabelElement(options: {
|
|
22
|
+
label: string;
|
|
23
|
+
color: string;
|
|
24
|
+
}): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetCell, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadSheetCell, "[ssCell]", never, { "position": { "alias": "ssCell"; "required": false; "isSignal": true; }; "editable": { "alias": "ssCellEditable"; "required": false; "isSignal": true; }; "context": { "alias": "ssCellContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
export declare class SpreadSheetCellInput {
|
|
29
|
+
protected ss: SpreadSheetService;
|
|
30
|
+
readonly position: import("@angular/core").InputSignal<{
|
|
31
|
+
row: number;
|
|
32
|
+
col: number;
|
|
33
|
+
}>;
|
|
34
|
+
readonly el: ElementRef<HTMLInputElement>;
|
|
35
|
+
readonly isSelected: import("@angular/core").Signal<boolean>;
|
|
36
|
+
readonly isEditing: import("@angular/core").Signal<boolean>;
|
|
37
|
+
ngAfterViewInit(): void;
|
|
38
|
+
protected stopEditing(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetCellInput, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadSheetCellInput, "[ssCellInput]", never, { "position": { "alias": "ssCellInput"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grid-cell.directive';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GridService } from './grid.service';
|
|
2
|
+
import { SelectionService } from './selection.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ClipboardService {
|
|
5
|
+
private gridService;
|
|
6
|
+
private selectionService;
|
|
7
|
+
private clipboard;
|
|
8
|
+
private snackBar;
|
|
9
|
+
constructor(gridService: GridService, selectionService: SelectionService);
|
|
10
|
+
copy(): Promise<void>;
|
|
11
|
+
protected copyText(text: string): void;
|
|
12
|
+
paste(targetRow: number, targetCol: number): Promise<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Cell } from "../models";
|
|
2
|
+
import { LanguageService } from "@ng-atomic/common/services/language";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SpreadSheetDataService {
|
|
5
|
+
readonly cache: Map<string, Cell | Cell[]>;
|
|
6
|
+
readonly language: LanguageService;
|
|
7
|
+
readonly dataAccessor: import("@ng-atomic/common/pipes/data-accessor").DataAccessor<unknown>;
|
|
8
|
+
readonly expression: import("@ng-atomic/common/utils").ExpressionTransformer;
|
|
9
|
+
buildGridData(items: any[], displayedColumns: string[]): Cell[][];
|
|
10
|
+
protected buildGridHeaderRow(columns: string[]): Cell[];
|
|
11
|
+
protected buildGridRow(item: object, displayedColumns: string[]): Cell[];
|
|
12
|
+
protected buildGridCell(item: object, column: string): Cell;
|
|
13
|
+
protected buildKey(obj: object): string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetDataService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpreadSheetDataService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Position } from '../models/cell.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EditorService {
|
|
4
|
+
private grid;
|
|
5
|
+
private selection;
|
|
6
|
+
private protection;
|
|
7
|
+
readonly editinngCell: import("@angular/core").WritableSignal<{
|
|
8
|
+
row: number;
|
|
9
|
+
col: number;
|
|
10
|
+
}>;
|
|
11
|
+
protected readonly inputMap: Map<string, HTMLInputElement>;
|
|
12
|
+
isEditing(position: Position): boolean;
|
|
13
|
+
startEditing(position: Position): void;
|
|
14
|
+
stopEditing(): void;
|
|
15
|
+
focus(position: Position): void;
|
|
16
|
+
getEditingCell(): Position | null;
|
|
17
|
+
setInput(input: HTMLInputElement, position: Position): void;
|
|
18
|
+
getInput(position: Position): HTMLInputElement | null;
|
|
19
|
+
protected buildKey(position: Position): string;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EditorService>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Cell, CellContext, Position } from '../models/cell.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GridService {
|
|
4
|
+
readonly data: import("@angular/core").WritableSignal<Cell[][]>;
|
|
5
|
+
readonly columns: import("@angular/core").Signal<string[]>;
|
|
6
|
+
protected readonly contextMap: Map<string, CellContext<any>>;
|
|
7
|
+
updateCell(row: number, col: number, value: any): void;
|
|
8
|
+
getValue(position: Position): any | null;
|
|
9
|
+
getExpressionValue(position: Position): any | null;
|
|
10
|
+
protected getCell(position: Position): Cell | null;
|
|
11
|
+
updateAllCells(predicate: (cell: Cell) => boolean, updates: Partial<Cell>): void;
|
|
12
|
+
setContext(context: CellContext): void;
|
|
13
|
+
getContext(position: Position): CellContext | null;
|
|
14
|
+
protected buildKey(position: Position): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Position } from '../models/cell.model';
|
|
2
|
+
import { GridService } from './grid.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NavigationService {
|
|
5
|
+
private gridService;
|
|
6
|
+
constructor(gridService: GridService);
|
|
7
|
+
moveToNextCell({ row, col }: Position): Position;
|
|
8
|
+
moveToPreviousCell({ row, col }: Position): Position;
|
|
9
|
+
moveToNextRow({ row, col }: Position): Position;
|
|
10
|
+
moveToPreviousRow({ row, col }: Position): Position;
|
|
11
|
+
moveRight({ row, col }: Position): Position;
|
|
12
|
+
moveLeft({ row, col }: Position): Position;
|
|
13
|
+
moveUp({ row, col }: Position): Position;
|
|
14
|
+
moveDown({ row, col }: Position): Position;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
interface CellContext<T> {
|
|
4
|
+
item: T;
|
|
5
|
+
name: string;
|
|
6
|
+
position: {
|
|
7
|
+
row: number;
|
|
8
|
+
col: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type CellProtector = (value: any, context: CellContext<any>) => boolean;
|
|
12
|
+
export declare const COLUMN_PROTECTOR: InjectionToken<CellProtector[]>;
|
|
13
|
+
export declare function provideCellProtector(useFactory: () => CellProtector): {
|
|
14
|
+
provide: InjectionToken<CellProtector[]>;
|
|
15
|
+
useFactory: () => CellProtector;
|
|
16
|
+
multi: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare class ProtectionService {
|
|
19
|
+
readonly protectors: CellProtector[];
|
|
20
|
+
isEditable(value: any, context: CellContext<any>): boolean;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProtectionService, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProtectionService>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Selection, Position } from '../models/cell.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SelectionService {
|
|
4
|
+
private readonly selection;
|
|
5
|
+
private readonly selectionStart;
|
|
6
|
+
private readonly isMouseDown;
|
|
7
|
+
private readonly grid;
|
|
8
|
+
private readonly cellElMap;
|
|
9
|
+
constructor();
|
|
10
|
+
isSelected(position: Position): boolean;
|
|
11
|
+
isCursorPosition(position: Position): boolean;
|
|
12
|
+
handleMouseDown(position: Position, event?: MouseEvent): void;
|
|
13
|
+
handleMouseUp(): void;
|
|
14
|
+
handleMouseEnter(position: Position): void;
|
|
15
|
+
handleClick(position: Position, event?: MouseEvent): void;
|
|
16
|
+
clearSelection(): void;
|
|
17
|
+
setStartPosition(position: Position): void;
|
|
18
|
+
getSelection(): Selection | null;
|
|
19
|
+
getSelectionEndOrStart(): Position;
|
|
20
|
+
findSelectedCell(): Position | null;
|
|
21
|
+
updateSelectionEnd(position: Position): void;
|
|
22
|
+
private startSelection;
|
|
23
|
+
private updateSelection;
|
|
24
|
+
clearSelectedRange(selection: {
|
|
25
|
+
start: {
|
|
26
|
+
row: number;
|
|
27
|
+
col: number;
|
|
28
|
+
};
|
|
29
|
+
end: {
|
|
30
|
+
row: number;
|
|
31
|
+
col: number;
|
|
32
|
+
};
|
|
33
|
+
}): void;
|
|
34
|
+
setCell(position: Position, el: HTMLTableCellElement): void;
|
|
35
|
+
getCell(position: Position): HTMLTableCellElement | null;
|
|
36
|
+
focus(position: Position): void;
|
|
37
|
+
protected buildKey(position: Position): string;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SelectionService>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Cell {
|
|
2
|
+
dataValue: any;
|
|
3
|
+
expressionValue: any;
|
|
4
|
+
}
|
|
5
|
+
export interface CellContext<I = any> {
|
|
6
|
+
item: I;
|
|
7
|
+
name: string;
|
|
8
|
+
position: Position;
|
|
9
|
+
}
|
|
10
|
+
export interface Selection {
|
|
11
|
+
start: Position;
|
|
12
|
+
end: Position;
|
|
13
|
+
}
|
|
14
|
+
export interface Position {
|
|
15
|
+
row: number;
|
|
16
|
+
col: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cell.model';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { Position } from './models/cell.model';
|
|
3
|
+
import { GridService } from './features/grid.service';
|
|
4
|
+
import { NavigationService } from './features/navigation.service';
|
|
5
|
+
import { SelectionService } from './features/selection.service';
|
|
6
|
+
import { ClipboardService } from './features/clipboard.service';
|
|
7
|
+
import { EditorService } from './features/editor.service';
|
|
8
|
+
import { ProtectionService } from './features/protection.service';
|
|
9
|
+
import { SpreadSheetDataService } from './features/data.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class SpreadSheetService {
|
|
12
|
+
readonly config: {
|
|
13
|
+
paste: boolean;
|
|
14
|
+
};
|
|
15
|
+
readonly grid: GridService;
|
|
16
|
+
readonly data: SpreadSheetDataService;
|
|
17
|
+
readonly navigation: NavigationService;
|
|
18
|
+
readonly selection: SelectionService;
|
|
19
|
+
readonly clipboard: ClipboardService;
|
|
20
|
+
readonly editor: EditorService;
|
|
21
|
+
readonly protection: ProtectionService;
|
|
22
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
23
|
+
protected handleKeyDownOnEditing(event: KeyboardEvent): void;
|
|
24
|
+
protected handleKeyDownOnSelecting(event: KeyboardEvent): void;
|
|
25
|
+
protected move(_position: Position, dest: 'top' | 'bottom' | 'left' | 'right', mode: 'edit' | 'select'): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpreadSheetService>;
|
|
28
|
+
}
|
|
29
|
+
export declare function provideSpreadSheetService(): Provider[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
export declare const yenTransform: (value: number, _unit?: string) => string;
|
|
4
|
+
export type ExpressionTransformer = (value: string | number | dayjs.Dayjs | any, context?: any) => string;
|
|
5
|
+
export declare const defaultExpressionTransformer: ExpressionTransformer;
|
|
6
|
+
export declare const EXPRESSION_TRANSFORMER: InjectionToken<ExpressionTransformer>;
|
|
7
|
+
export declare function provideExpressionTransformer(useFactory: () => ExpressionTransformer): {
|
|
8
|
+
provide: InjectionToken<ExpressionTransformer>;
|
|
9
|
+
useFactory: () => ExpressionTransformer;
|
|
10
|
+
};
|
|
11
|
+
export declare function injectParentExpressionTransformer(): ExpressionTransformer;
|
|
12
|
+
export declare const smartExpTransformer: ExpressionTransformer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './expression.transformer';
|
package/utils/index.d.ts
CHANGED
package/utils/inject/inject.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export declare function injectChildRoute$(): Observable<ActivatedRoute>;
|
|
|
40
40
|
export declare function injectChildRoute(): Signal<ActivatedRoute>;
|
|
41
41
|
export declare function injectHasNext$(): Observable<boolean>;
|
|
42
42
|
export declare function injectHasNext(): Signal<boolean>;
|
|
43
|
-
export declare function injectRouterQueryParam
|
|
44
|
-
export declare function injectRouterQueryParam(key: string): Signal<
|
|
43
|
+
export declare function injectRouterQueryParam$<T extends string = string>(key: string): Observable<T>;
|
|
44
|
+
export declare function injectRouterQueryParam<T extends string = string>(key: string): Signal<T>;
|
|
45
45
|
export declare function injectRouteData$<T>(path: string): Observable<T>;
|
|
46
46
|
export declare function injectRouteData<T>(key: string): Signal<T>;
|
|
47
47
|
export declare function injectActivatedComponents(injector?: Injector): any[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './smart-exp.pipe';
|
|
2
|
-
export { SmartExpModule } from './smart-exp.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AbmctYXRvbWljL2NvbW1vbi9zcmMvbGliL3BpcGVzL3NtYXJ0LWV4cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc21hcnQtZXhwLnBpcGUnO1xuZXhwb3J0IHsgU21hcnRFeHBNb2R1bGUgfSBmcm9tICcuL3NtYXJ0LWV4cC5tb2R1bGUnOyJdfQ==
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctYXRvbWljLWNvbW1vbi1waXBlcy1zbWFydC1leHAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AbmctYXRvbWljL2NvbW1vbi9zcmMvbGliL3BpcGVzL3NtYXJ0LWV4cC9uZy1hdG9taWMtY29tbW9uLXBpcGVzLXNtYXJ0LWV4cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { SmartExpPipe } from "./smart-exp.pipe";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class SmartExpModule {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] }); }
|
|
7
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule }); }
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [SmartExpPipe],
|
|
13
|
-
exports: [SmartExpPipe]
|
|
14
|
-
}]
|
|
15
|
-
}] });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtZXhwLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BuZy1hdG9taWMvY29tbW9uL3NyYy9saWIvcGlwZXMvc21hcnQtZXhwL3NtYXJ0LWV4cC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7O0FBTWhELE1BQU0sT0FBTyxjQUFjOzhHQUFkLGNBQWM7K0dBQWQsY0FBYyxpQkFIVixZQUFZLGFBQ2pCLFlBQVk7K0dBRVgsY0FBYzs7MkZBQWQsY0FBYztrQkFKMUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQzVCLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztpQkFDeEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XG5pbXBvcnQgeyBTbWFydEV4cFBpcGUgfSBmcm9tIFwiLi9zbWFydC1leHAucGlwZVwiO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtTbWFydEV4cFBpcGVdLFxuICBleHBvcnRzOiBbU21hcnRFeHBQaXBlXVxufSlcbmV4cG9ydCBjbGFzcyBTbWFydEV4cE1vZHVsZSB7IH0iXX0=
|