@ng-atomic/common 4.21.1 → 5.0.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/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +1 -1
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +3 -3
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +4 -4
- package/esm2020/pipes/data-accessor/data-accessor.pipe.mjs +3 -3
- package/esm2020/pipes/domain/domain.module.mjs +4 -4
- package/esm2020/pipes/domain/domain.pipe.mjs +3 -3
- package/esm2020/pipes/pagination/pagination.module.mjs +4 -4
- package/esm2020/pipes/pagination/pagination.pipe.mjs +3 -3
- package/esm2020/pipes/smart-exp/smart-exp.module.mjs +4 -4
- package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +3 -3
- package/esm2020/pipes/smart-field/smart-field.module.mjs +4 -4
- package/esm2020/pipes/smart-field/smart-field.pipe.mjs +3 -3
- package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +4 -4
- package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +3 -3
- package/esm2020/pipes/yen/yen.module.mjs +4 -4
- package/esm2020/pipes/yen/yen.pipe.mjs +3 -3
- package/esm2020/services/chips-manager/chips.manager.mjs +3 -3
- package/esm2020/services/loading/loading.service.mjs +3 -3
- package/esm2020/services/query-resolver/query-resolver.service.mjs +3 -3
- package/esm2020/services/snack-bar/snack-bar.module.mjs +6 -6
- package/esm2020/services/snack-bar/snack-bar.service.mjs +7 -7
- package/esm2020/stores/entities/entities.store.mjs +2 -2
- package/esm2020/stores/entity/entity.store.mjs +2 -2
- package/esm2020/stores/pagination/pagination.store.mjs +3 -3
- package/esm2020/stores/query/query.store.mjs +3 -3
- package/esm2020/stores/selection/selection.store.mjs +6 -6
- package/esm2020/stores/sort/sort.store.mjs +3 -3
- package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +8 -8
- package/esm2020/utils/page/page.mjs +1 -1
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +7 -7
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs +3 -3
- package/fesm2015/ng-atomic-common-pipes-domain.mjs +7 -7
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs +7 -7
- package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs +7 -7
- package/fesm2015/ng-atomic-common-pipes-smart-field.mjs +7 -7
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +7 -7
- package/fesm2015/ng-atomic-common-pipes-yen.mjs +7 -7
- package/fesm2015/ng-atomic-common-services-chips-manager.mjs +3 -3
- package/fesm2015/ng-atomic-common-services-loading.mjs +3 -3
- package/fesm2015/ng-atomic-common-services-query-resolver.mjs +3 -3
- package/fesm2015/ng-atomic-common-services-snack-bar.mjs +13 -13
- package/fesm2015/ng-atomic-common-services-snack-bar.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-entities.mjs +1 -1
- package/fesm2015/ng-atomic-common-stores-entities.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-entity.mjs +1 -1
- package/fesm2015/ng-atomic-common-stores-entity.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-pagination.mjs +3 -3
- package/fesm2015/ng-atomic-common-stores-query.mjs +3 -3
- package/fesm2015/ng-atomic-common-stores-selection.mjs +5 -5
- package/fesm2015/ng-atomic-common-stores-selection.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-sort.mjs +3 -3
- package/fesm2015/ng-atomic-common-utils-page.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-utils.mjs +8 -8
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +7 -7
- package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs +3 -3
- package/fesm2020/ng-atomic-common-pipes-domain.mjs +7 -7
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs +7 -7
- package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs +7 -7
- package/fesm2020/ng-atomic-common-pipes-smart-field.mjs +7 -7
- package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs +7 -7
- package/fesm2020/ng-atomic-common-pipes-yen.mjs +7 -7
- package/fesm2020/ng-atomic-common-services-chips-manager.mjs +3 -3
- package/fesm2020/ng-atomic-common-services-loading.mjs +3 -3
- package/fesm2020/ng-atomic-common-services-query-resolver.mjs +3 -3
- package/fesm2020/ng-atomic-common-services-snack-bar.mjs +13 -13
- package/fesm2020/ng-atomic-common-services-snack-bar.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-entities.mjs +1 -1
- package/fesm2020/ng-atomic-common-stores-entities.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-entity.mjs +1 -1
- package/fesm2020/ng-atomic-common-stores-entity.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-pagination.mjs +3 -3
- package/fesm2020/ng-atomic-common-stores-query.mjs +3 -3
- package/fesm2020/ng-atomic-common-stores-selection.mjs +5 -5
- package/fesm2020/ng-atomic-common-stores-selection.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-sort.mjs +3 -3
- package/fesm2020/ng-atomic-common-utils-page.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-utils.mjs +8 -8
- package/models/action.d.ts +1 -1
- package/package.json +7 -4
- package/pipes/data-accessor/data-accessor.pipe.d.ts +1 -1
- package/pipes/domain/domain.pipe.d.ts +1 -1
- package/pipes/pagination/pagination.transformer.d.ts +1 -1
- package/pipes/smart-field/smart-field.pipe.d.ts +2 -2
- package/pipes/smart-sort-by/smart-sort-by.transformer.d.ts +1 -1
- package/services/loading/loading.service.d.ts +1 -1
- package/services/snack-bar/snack-bar.module.d.ts +2 -2
- package/services/snack-bar/snack-bar.service.d.ts +1 -1
- package/stores/entity/entity.store.d.ts +1 -1
- package/utils/compare-by-id/compare-by-id.d.ts +1 -1
- package/utils/page/page.d.ts +1 -1
- package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +1 -1
|
@@ -244,16 +244,16 @@ const MAT_DAYJS_JP_PROVIDERS = [
|
|
|
244
244
|
|
|
245
245
|
class DayjsDateModule {
|
|
246
246
|
}
|
|
247
|
-
DayjsDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
248
|
-
DayjsDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
249
|
-
DayjsDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
247
|
+
DayjsDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DayjsDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
248
|
+
DayjsDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: DayjsDateModule });
|
|
249
|
+
DayjsDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DayjsDateModule, providers: [
|
|
250
250
|
{
|
|
251
251
|
provide: DateAdapter,
|
|
252
252
|
useClass: DayjsDateAdapter,
|
|
253
253
|
deps: [MAT_DATE_LOCALE, MAT_DAYJS_DATE_ADAPTER_OPTIONS]
|
|
254
254
|
},
|
|
255
255
|
] });
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DayjsDateModule, decorators: [{
|
|
257
257
|
type: NgModule,
|
|
258
258
|
args: [{
|
|
259
259
|
providers: [
|
|
@@ -267,10 +267,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
|
|
|
267
267
|
}] });
|
|
268
268
|
class MatDayjsDateModule {
|
|
269
269
|
}
|
|
270
|
-
MatDayjsDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
271
|
-
MatDayjsDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
272
|
-
MatDayjsDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
270
|
+
MatDayjsDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MatDayjsDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
271
|
+
MatDayjsDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: MatDayjsDateModule, imports: [DayjsDateModule] });
|
|
272
|
+
MatDayjsDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MatDayjsDateModule, providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_DAYJS_DATE_FORMATS }], imports: [DayjsDateModule] });
|
|
273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MatDayjsDateModule, decorators: [{
|
|
274
274
|
type: NgModule,
|
|
275
275
|
args: [{
|
|
276
276
|
imports: [DayjsDateModule],
|
package/models/action.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-atomic/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "fesm2015/ng-atomic-common.mjs",
|
|
6
6
|
"es2020": "fesm2020/ng-atomic-common.mjs",
|
|
@@ -202,9 +202,12 @@
|
|
|
202
202
|
"tslib": "^2.3.0"
|
|
203
203
|
},
|
|
204
204
|
"peerDependencies": {
|
|
205
|
-
"@angular/core": "
|
|
206
|
-
"@angular/common": "
|
|
205
|
+
"@angular/core": "15.2.3",
|
|
206
|
+
"@angular/common": "15.2.3",
|
|
207
|
+
"lodash": "4.17.21",
|
|
208
|
+
"dayjs": "1.10.7",
|
|
209
|
+
"flat": "5.0.2",
|
|
207
210
|
"rxjs": "7.5.0",
|
|
208
|
-
"@angular/material": "
|
|
211
|
+
"@angular/material": "15.2.3"
|
|
209
212
|
}
|
|
210
213
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
3
|
+
export type DataAccessor<T> = (obj: T, key: string) => string;
|
|
4
4
|
export declare const DATA_ACCESSOR: InjectionToken<DataAccessor<any>>;
|
|
5
5
|
export declare const defaultDataAccessor: DataAccessor<any>;
|
|
6
6
|
export declare class DataAccessorPipe<T> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
3
|
+
export type DomainLangMap = Record<string, string>;
|
|
4
4
|
export declare const DOMAIN_LANG_MAP: InjectionToken<DomainLangMap>;
|
|
5
5
|
export declare class DomainPipe {
|
|
6
6
|
private map;
|
|
@@ -4,6 +4,6 @@ interface Page {
|
|
|
4
4
|
key: string;
|
|
5
5
|
order: 'asc' | 'desc';
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type PaginationTransformer<E> = (items: E[], page: Page) => E[];
|
|
8
8
|
export declare function paginationTransformer<E>(items: E[], page: Page): E[];
|
|
9
9
|
export {};
|
|
@@ -18,8 +18,8 @@ interface MultiSelectField<T> {
|
|
|
18
18
|
type: 'multi-select';
|
|
19
19
|
options: Option<T>[];
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
export
|
|
21
|
+
type FormField<V> = InputField | DateInputField | SelectField<V> | MultiSelectField<V>;
|
|
22
|
+
export type FormFieldMap = Record<string, FormField<any>>;
|
|
23
23
|
export declare const FORM_FIELD_MAP: InjectionToken<FormFieldMap>;
|
|
24
24
|
export declare class SmartFieldPipe implements PipeTransform {
|
|
25
25
|
private map;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];
|
|
2
2
|
export declare const smartSortByTransformer: SmartSortByTransformer;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@angular/material/snack-bar";
|
|
3
|
+
import * as i2 from "@angular/material/legacy-snack-bar";
|
|
4
4
|
export declare class SnackBarModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SnackBarModule, never, [typeof i1.CommonModule, typeof i2.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SnackBarModule, never, [typeof i1.CommonModule, typeof i2.MatLegacySnackBarModule], never>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<SnackBarModule>;
|
|
8
8
|
}
|
package/utils/page/page.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
export declare const SMART_EXP_TRANSFORMER: InjectionToken<SmartExpTransformer>;
|
|
4
|
-
export
|
|
4
|
+
export type SmartExpTransformer = (input: string | number | dayjs.Dayjs | any, key?: string) => string;
|
|
5
5
|
export declare const yenTransform: (value: number, _unit?: string) => string;
|
|
6
6
|
export declare const smartExpTransformer: SmartExpTransformer;
|