@smartsoft001/angular 1.1.682 → 1.1.683
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/bundles/smartsoft001-angular.umd.js +78 -37
- package/bundles/smartsoft001-angular.umd.js.map +1 -1
- package/esm2015/lib/components/components.module.js +3 -1
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/list/base/base.component.js +9 -5
- package/esm2015/lib/components/list/desktop/desktop.component.js +2 -2
- package/esm2015/lib/components/list/masonry-grid/masonry-grid.component.js +2 -2
- package/esm2015/lib/components/list/mobile/mobile.component.js +2 -2
- package/esm2015/lib/components/paging/index.js +2 -0
- package/esm2015/lib/components/paging/paging.component.js +24 -0
- package/esm2015/lib/models/interfaces.js +6 -1
- package/esm2015/smartsoft001-angular.js +10 -9
- package/fesm2015/smartsoft001-angular.js +40 -8
- package/fesm2015/smartsoft001-angular.js.map +1 -1
- package/lib/components/components.module.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/list/base/base.component.d.ts +4 -3
- package/lib/components/paging/index.d.ts +1 -0
- package/lib/components/paging/paging.component.d.ts +7 -0
- package/lib/models/interfaces.d.ts +5 -0
- package/package.json +5 -5
- package/smartsoft001-angular.d.ts +9 -8
- package/smartsoft001-angular.metadata.json +1 -1
|
@@ -51,6 +51,7 @@ import { ListMasonryGridComponent } from "./list/masonry-grid/masonry-grid.compo
|
|
|
51
51
|
import { FormStepperComponent } from "./form/stepper/stepper.component";
|
|
52
52
|
import { DateEditComponent } from "./date-edit/date-edit.component";
|
|
53
53
|
import { ButtonStandardComponent } from "./button/standard/standard.component";
|
|
54
|
+
import { PagingComponent } from "./paging/paging.component";
|
|
54
55
|
export declare const APP_COMPONENTS: (typeof AppSplitPanelComponent)[];
|
|
55
56
|
export declare const ACCORDION_COMPONENTS: (typeof AccordionBodyComponent)[];
|
|
56
57
|
export declare const BUTTON_COMPONENTS: (typeof ButtonComponent | typeof ButtonStandardComponent)[];
|
|
@@ -70,7 +71,7 @@ export declare const INFO_COMPONENTS: (typeof InfoComponent | typeof InfoModalCo
|
|
|
70
71
|
export declare const DATE_RANGE_COMPONENTS: (typeof DateRangeComponent | typeof DateRangeModalComponent)[];
|
|
71
72
|
export declare const DATE_EDIT_COMPONENTS: (typeof DateEditComponent)[];
|
|
72
73
|
export declare const DYNAMIC_COMPONENTS: (typeof DynamicComponent)[];
|
|
73
|
-
export declare const COMPONENTS: (typeof AccordionBodyComponent | typeof AppSplitPanelComponent | typeof ButtonComponent | typeof ButtonStandardComponent | typeof DetailTextComponent | typeof DetailPdfComponent | typeof DetailVideoComponent | typeof DetailAttachmentComponent | typeof DetailImageComponent | typeof DetailsStandardComponent | typeof DetailsComponent | typeof FormStandardComponent | typeof FormStepperComponent | typeof FormComponent | typeof InputDateComponent | typeof InputErrorComponent | typeof InputComponent | typeof InputLongTextComponent | typeof InputRadioComponent | typeof InputStringsComponent | typeof InputCheckComponent | typeof InputIntsComponent | typeof InputArrayComponent | typeof InputPdfComponent | typeof InputDateRangeComponent | typeof ListComponent | typeof ListMobileComponent | typeof ListDesktopComponent | typeof ListMasonryGridComponent | typeof LoaderComponent | typeof PageStandardComponent | typeof PageComponent | typeof TabComponent | typeof TabsComponent | typeof DynamicComponent | typeof PasswordStrengthComponent | typeof InfoComponent | typeof InfoModalComponent | typeof DateRangeComponent | typeof DateRangeModalComponent | typeof DateEditComponent | typeof ErrorContextComponent | typeof ExportComponent | typeof ImportComponent)[];
|
|
74
|
+
export declare const COMPONENTS: (typeof AccordionBodyComponent | typeof AppSplitPanelComponent | typeof ButtonComponent | typeof ButtonStandardComponent | typeof DetailTextComponent | typeof DetailPdfComponent | typeof DetailVideoComponent | typeof DetailAttachmentComponent | typeof DetailImageComponent | typeof DetailsStandardComponent | typeof DetailsComponent | typeof FormStandardComponent | typeof FormStepperComponent | typeof FormComponent | typeof InputDateComponent | typeof InputErrorComponent | typeof InputComponent | typeof InputLongTextComponent | typeof InputRadioComponent | typeof InputStringsComponent | typeof InputCheckComponent | typeof InputIntsComponent | typeof InputArrayComponent | typeof InputPdfComponent | typeof InputDateRangeComponent | typeof ListComponent | typeof ListMobileComponent | typeof ListDesktopComponent | typeof ListMasonryGridComponent | typeof LoaderComponent | typeof PageStandardComponent | typeof PageComponent | typeof TabComponent | typeof TabsComponent | typeof DynamicComponent | typeof PasswordStrengthComponent | typeof InfoComponent | typeof InfoModalComponent | typeof DateRangeComponent | typeof DateRangeModalComponent | typeof DateEditComponent | typeof ErrorContextComponent | typeof ExportComponent | typeof ImportComponent | typeof PagingComponent)[];
|
|
74
75
|
export declare const IMPORTS: (typeof SharedDirectivesModule | typeof RouterModule)[];
|
|
75
76
|
export declare class SharedComponentsModule {
|
|
76
77
|
}
|
|
@@ -4,7 +4,7 @@ import { Router } from "@angular/router";
|
|
|
4
4
|
import { TranslateService } from "@ngx-translate/core";
|
|
5
5
|
import { FieldType } from "@smartsoft001/models";
|
|
6
6
|
import { IEntity } from "@smartsoft001/domain-core";
|
|
7
|
-
import { IDetailsOptions, IListProvider, IButtonOptions, ICellPipe, DynamicComponentType } from "../../../models/interfaces";
|
|
7
|
+
import { IDetailsOptions, IListProvider, IButtonOptions, ICellPipe, DynamicComponentType, PaginationMode } from "../../../models/interfaces";
|
|
8
8
|
import { IListInternalOptions } from "../list.component";
|
|
9
9
|
import { AlertService } from "../../../services/alert/alert.service";
|
|
10
10
|
import { AuthService } from "../../../services/auth/auth.service";
|
|
@@ -29,13 +29,14 @@ export declare abstract class ListBaseComponent<T extends IEntity<string>> imple
|
|
|
29
29
|
removed: Set<string>;
|
|
30
30
|
keys: Array<string>;
|
|
31
31
|
cellPipe: ICellPipe<T>;
|
|
32
|
-
loadPrevPage: (event
|
|
33
|
-
loadNextPage: (event
|
|
32
|
+
loadPrevPage: (event?: any) => void;
|
|
33
|
+
loadNextPage: (event?: any) => void;
|
|
34
34
|
list$: Observable<T[]>;
|
|
35
35
|
loading$: Observable<boolean>;
|
|
36
36
|
page$: Observable<number>;
|
|
37
37
|
totalPages$: Observable<number>;
|
|
38
38
|
FieldType: typeof FieldType;
|
|
39
|
+
PaginationMode: typeof PaginationMode;
|
|
39
40
|
type: Type<T>;
|
|
40
41
|
sort: boolean | {
|
|
41
42
|
default?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./paging.component";
|
|
@@ -117,12 +117,17 @@ export interface IInputFromFieldOptions<T> {
|
|
|
117
117
|
mode?: "create" | "update" | string;
|
|
118
118
|
}
|
|
119
119
|
export interface IListPaginationOptions {
|
|
120
|
+
mode?: PaginationMode;
|
|
120
121
|
limit: number;
|
|
121
122
|
loadNextPage: () => Promise<boolean>;
|
|
122
123
|
loadPrevPage: () => Promise<boolean>;
|
|
123
124
|
page$: Observable<number>;
|
|
124
125
|
totalPages$: Observable<number>;
|
|
125
126
|
}
|
|
127
|
+
export declare enum PaginationMode {
|
|
128
|
+
infiniteScroll = "infiniteScroll",
|
|
129
|
+
singlePage = "singlePage"
|
|
130
|
+
}
|
|
126
131
|
export declare enum ListMode {
|
|
127
132
|
mobile = "mobile",
|
|
128
133
|
desktop = "desktop",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/angular",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.683",
|
|
4
4
|
"main": "bundles/smartsoft001-angular.umd.js",
|
|
5
5
|
"module": "fesm2015/smartsoft001-angular.js",
|
|
6
6
|
"es2015": "fesm2015/smartsoft001-angular.js",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"ng-lazyload-image": "^9.1.0",
|
|
30
30
|
"@angular/material-moment-adapter": "^12.2.1",
|
|
31
31
|
"moment": "^2.27.0",
|
|
32
|
-
"@smartsoft001/domain-core": "1.0.
|
|
33
|
-
"@smartsoft001/models": "1.0.
|
|
32
|
+
"@smartsoft001/domain-core": "1.0.631",
|
|
33
|
+
"@smartsoft001/models": "1.0.658",
|
|
34
34
|
"reflect-metadata": "0.1.13",
|
|
35
|
-
"@smartsoft001/utils": "1.0.
|
|
35
|
+
"@smartsoft001/utils": "1.0.693",
|
|
36
36
|
"lodash": "^4.17.20",
|
|
37
37
|
"guid-typescript": "1.0.9",
|
|
38
38
|
"md5": "2.3.0",
|
|
39
|
-
"@smartsoft001/users": "1.0.
|
|
39
|
+
"@smartsoft001/users": "1.0.650",
|
|
40
40
|
"@ngrx/router-store": "12.5.0",
|
|
41
41
|
"lodash-decorators": "^6.0.1",
|
|
42
42
|
"jwt-decode": "3.1.1",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './index';
|
|
5
|
-
export { ErrorEffects as
|
|
5
|
+
export { ErrorEffects as ɵgk } from './lib/+state/error.effects';
|
|
6
6
|
export { AccordionComponent as ɵfj } from './lib/components/accordion/accordion.component';
|
|
7
7
|
export { AccordionBodyComponent as ɵfl } from './lib/components/accordion/body/body.component';
|
|
8
8
|
export { AccordionHeaderComponent as ɵfk } from './lib/components/accordion/header/header.component';
|
|
@@ -50,7 +50,7 @@ export { FormStepperComponent as ɵcd } from './lib/components/form/stepper/step
|
|
|
50
50
|
export { GridColumnComponent as ɵfs } from './lib/components/grid/column/column.component';
|
|
51
51
|
export { GridComponent as ɵfq } from './lib/components/grid/grid.component';
|
|
52
52
|
export { GridRowComponent as ɵfr } from './lib/components/grid/row/row.component';
|
|
53
|
-
export { ImportComponent as
|
|
53
|
+
export { ImportComponent as ɵgd } from './lib/components/import/import.component';
|
|
54
54
|
export { InfoComponent as ɵfv, InfoModalComponent as ɵfw } from './lib/components/info/info.component';
|
|
55
55
|
export { InputAddressComponent as ɵdn } from './lib/components/input/address/address.component';
|
|
56
56
|
export { InputArrayComponent as ɵdv } from './lib/components/input/array/array.component';
|
|
@@ -95,18 +95,19 @@ export { LoaderComponent as ɵem } from './lib/components/loader/loader.componen
|
|
|
95
95
|
export { PageBaseComponent as ɵco } from './lib/components/page/base/base.component';
|
|
96
96
|
export { PageComponent as ɵcq } from './lib/components/page/page.component';
|
|
97
97
|
export { PageStandardComponent as ɵcn } from './lib/components/page/standard/standard.component';
|
|
98
|
+
export { PagingComponent as ɵgc } from './lib/components/paging/paging.component';
|
|
98
99
|
export { PasswordStrengthComponent as ɵfu } from './lib/components/password-strength/password-strength.component';
|
|
99
100
|
export { SearchbarComponent as ɵfg } from './lib/components/searchbar/searchbar.component';
|
|
100
101
|
export { TabComponent as ɵfi } from './lib/components/tabs/tab/tab.component';
|
|
101
102
|
export { TabsComponent as ɵfh } from './lib/components/tabs/tabs.component';
|
|
102
|
-
export { DateValidator as
|
|
103
|
-
export { DetailsDirective as
|
|
104
|
-
export { SharedDirectivesModule as
|
|
103
|
+
export { DateValidator as ɵgg } from './lib/directives/date-validator/date-validator.directive';
|
|
104
|
+
export { DetailsDirective as ɵgf } from './lib/directives/details/details.directive';
|
|
105
|
+
export { SharedDirectivesModule as ɵge } from './lib/directives/directives.module';
|
|
105
106
|
export { DynamicContentDirective as ɵcf } from './lib/directives/dynamic-content/dynamic-content.directive';
|
|
106
107
|
export { SharedFactoriesModule as ɵa } from './lib/factories/factories.module';
|
|
107
108
|
export { FormFactory as ɵb } from './lib/factories/form/form.factory';
|
|
108
|
-
export { DetailsPage as
|
|
109
|
-
export { SharedPagesModule as
|
|
109
|
+
export { DetailsPage as ɵgi } from './lib/pages/details/details.page';
|
|
110
|
+
export { SharedPagesModule as ɵgh } from './lib/pages/pages.module';
|
|
110
111
|
export { EnumToListPipe as ɵx } from './lib/pipes/enum-to-list/enum-to-list.pipe';
|
|
111
112
|
export { FileUrlPipe as ɵz } from './lib/pipes/file-url/file-url.pipe';
|
|
112
113
|
export { ListCellPipe as ɵy } from './lib/pipes/list-cell/list-cell.pipe';
|
|
@@ -130,7 +131,7 @@ export { FingerprintService as ɵo } from './lib/services/fingerprint/fingerprin
|
|
|
130
131
|
export { HardwareService as ɵj } from './lib/services/hardware/hardware.service';
|
|
131
132
|
export { MenuService as ɵcm } from './lib/services/menu/menu.service';
|
|
132
133
|
export { ModalService as ɵk } from './lib/services/modal/modal.service';
|
|
133
|
-
export { NgrxStoreService as
|
|
134
|
+
export { NgrxStoreService as ɵgj } from './lib/services/ngrx-store/ngrx-store.service';
|
|
134
135
|
export { PopoverService as ɵm } from './lib/services/popover/popover.service';
|
|
135
136
|
export { SharedServicesModule as ɵg } from './lib/services/services.module';
|
|
136
137
|
export { StorageService as ɵf } from './lib/services/storage/storage.service';
|