ngx-techlify-core 14.10.1 → 14.11.2

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.
Files changed (29) hide show
  1. package/esm2020/lib/base-model/techlify-listing-component.class.mjs +2 -2
  2. package/esm2020/lib/column-selector/column-selector/column-selector.component.mjs +37 -0
  3. package/esm2020/lib/column-selector/column-selector.module.mjs +40 -0
  4. package/esm2020/lib/column-selector/index.mjs +3 -0
  5. package/esm2020/lib/entity-files/entity-files-view-all.component.mjs +39 -23
  6. package/esm2020/lib/file-dragdrop-uploader/file-dragdrop-uploader/file-dragdrop-uploader.component.mjs +90 -0
  7. package/esm2020/lib/file-dragdrop-uploader/file-dragdrop-uploader.module.mjs +40 -0
  8. package/esm2020/lib/number-input-button/index.mjs +3 -0
  9. package/esm2020/lib/number-input-button/number-input-button/number-input-button.component.mjs +104 -0
  10. package/esm2020/lib/number-input-button/number-input-button.module.mjs +32 -0
  11. package/esm2020/lib/searchable-selector/searchable-selector.component.mjs +1 -1
  12. package/esm2020/lib/searchable-selector/searchable-selector.module.mjs +9 -10
  13. package/esm2020/public-api.mjs +5 -1
  14. package/fesm2015/ngx-techlify-core.mjs +7286 -6972
  15. package/fesm2015/ngx-techlify-core.mjs.map +1 -1
  16. package/fesm2020/ngx-techlify-core.mjs +7428 -7118
  17. package/fesm2020/ngx-techlify-core.mjs.map +1 -1
  18. package/lib/column-selector/column-selector/column-selector.component.d.ts +13 -0
  19. package/lib/column-selector/column-selector.module.d.ts +12 -0
  20. package/lib/column-selector/index.d.ts +2 -0
  21. package/lib/entity-files/entity-files-view-all.component.d.ts +15 -2
  22. package/lib/file-dragdrop-uploader/file-dragdrop-uploader/file-dragdrop-uploader.component.d.ts +29 -0
  23. package/lib/file-dragdrop-uploader/file-dragdrop-uploader.module.d.ts +12 -0
  24. package/lib/number-input-button/index.d.ts +2 -0
  25. package/lib/number-input-button/number-input-button/number-input-button.component.d.ts +32 -0
  26. package/lib/number-input-button/number-input-button.module.d.ts +10 -0
  27. package/lib/searchable-selector/searchable-selector.module.d.ts +6 -6
  28. package/package.json +2 -1
  29. package/public-api.d.ts +4 -0
@@ -0,0 +1,13 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ColumnSelectorComponent implements OnInit {
5
+ availableColumns: string[];
6
+ label: string;
7
+ updated: EventEmitter<string[]>;
8
+ columnSelector: FormControl;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSelectorComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnSelectorComponent, "app-column-selector", never, { "availableColumns": "availableColumns"; "label": "label"; }, { "updated": "updated"; }, never, never, false>;
13
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./column-selector/column-selector.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/form-field";
5
+ import * as i4 from "@angular/material/core";
6
+ import * as i5 from "@angular/material/select";
7
+ import * as i6 from "@angular/forms";
8
+ export declare class ColumnSelectorModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSelectorModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ColumnSelectorModule, [typeof i1.ColumnSelectorComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatOptionModule, typeof i5.MatSelectModule, typeof i6.ReactiveFormsModule], [typeof i1.ColumnSelectorComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<ColumnSelectorModule>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './column-selector.module';
2
+ export * from './column-selector/column-selector.component';
@@ -9,6 +9,7 @@ import { ViewerConfig } from '../document-viewer/viewer-config.model';
9
9
  import { FileDropperConfig } from '../file-dropper';
10
10
  import { ErrorHandlerService } from '../core/error-handler.service';
11
11
  import { TechlifyTaggerTagFormConfigModel } from "../techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model";
12
+ import { CurrentUserService, User } from "../user";
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class EntityFilesViewAllComponent implements OnInit {
14
15
  private entityFileService;
@@ -17,6 +18,7 @@ export declare class EntityFilesViewAllComponent implements OnInit {
17
18
  private dialog;
18
19
  private fb;
19
20
  private errorHandler;
21
+ currentUserService: CurrentUserService;
20
22
  entityId: number;
21
23
  entityType: string;
22
24
  viewOnly: boolean;
@@ -48,7 +50,18 @@ export declare class EntityFilesViewAllComponent implements OnInit {
48
50
  dataSource: MatTableDataSource<unknown>;
49
51
  updateRowForm: UntypedFormGroup;
50
52
  isReload: boolean;
51
- constructor(entityFileService: EntityFileService, location: Location, alertService: AlertService, dialog: MatDialog, fb: UntypedFormBuilder, errorHandler: ErrorHandlerService);
53
+ user: User;
54
+ isShowCreateAction: boolean;
55
+ isShowUpdateAction: boolean;
56
+ isShowDeleteAction: boolean;
57
+ isShowReadAction: boolean;
58
+ permission: {
59
+ create: string;
60
+ update: string;
61
+ delete: string;
62
+ read: string;
63
+ };
64
+ constructor(entityFileService: EntityFileService, location: Location, alertService: AlertService, dialog: MatDialog, fb: UntypedFormBuilder, errorHandler: ErrorHandlerService, currentUserService: CurrentUserService);
52
65
  ngOnInit(): void;
53
66
  listenRoutes(): void;
54
67
  fetchEntityFilesDetails(): void;
@@ -67,5 +80,5 @@ export declare class EntityFilesViewAllComponent implements OnInit {
67
80
  resetFieldValueOfRow(field: string, event: any): void;
68
81
  bulkUpdate(fieldName: any): Promise<void>;
69
82
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityFilesViewAllComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<EntityFilesViewAllComponent, "app-entity-files-view-all", never, { "entityId": "entityId"; "entityType": "entityType"; "viewOnly": "viewOnly"; "removeSearch": "removeSearch"; "hideTitleAndDetails": "hideTitleAndDetails"; "displayMode": "displayMode"; "allowMultipleFiles": "allowMultipleFiles"; "allowBulkUpdate": "allowBulkUpdate"; "useTechlifyTags": "useTechlifyTags"; "techlifyTagCategories": "techlifyTagCategories"; "techlifyTagConfig": "techlifyTagConfig"; "title": "title"; }, {}, never, never, false>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityFilesViewAllComponent, "app-entity-files-view-all", never, { "entityId": "entityId"; "entityType": "entityType"; "viewOnly": "viewOnly"; "removeSearch": "removeSearch"; "hideTitleAndDetails": "hideTitleAndDetails"; "displayMode": "displayMode"; "allowMultipleFiles": "allowMultipleFiles"; "allowBulkUpdate": "allowBulkUpdate"; "useTechlifyTags": "useTechlifyTags"; "techlifyTagCategories": "techlifyTagCategories"; "techlifyTagConfig": "techlifyTagConfig"; "title": "title"; "permission": "permission"; }, {}, never, never, false>;
71
84
  }
@@ -0,0 +1,29 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import { EntityFileService } from '../../entity-files';
4
+ import { FileDropperConfig } from '../../file-dropper';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FileDragdropUploaderComponent implements OnInit, ControlValueAccessor {
7
+ private entityFileService;
8
+ fileList: any[];
9
+ constructor(entityFileService: EntityFileService);
10
+ label: string;
11
+ fileDropperConfig: FileDropperConfig;
12
+ disabled: boolean;
13
+ selectedFiles: FormControl<any>;
14
+ onChange: (value: any) => void;
15
+ onTouched: () => void;
16
+ ngOnInit(): void;
17
+ writeValue(obj: any[]): void;
18
+ registerOnChange(fn: any): void;
19
+ registerOnTouched(fn: any): void;
20
+ setDisabledState?(isDisabled: boolean): void;
21
+ /**
22
+ * Reset the form control value
23
+ */
24
+ resetField(): void;
25
+ onFileChanged(files: File[]): void;
26
+ isImage(file: any): boolean;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileDragdropUploaderComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileDragdropUploaderComponent, "app-file-dragdrop-uploader", never, { "label": "label"; "fileDropperConfig": "fileDropperConfig"; }, {}, never, never, false>;
29
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./file-dragdrop-uploader/file-dragdrop-uploader.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../file-dropper/file-dropper.module";
5
+ import * as i4 from "@angular/flex-layout";
6
+ import * as i5 from "@angular/material/icon";
7
+ import * as i6 from "@angular/material/button";
8
+ export declare class FileDragdropUploaderModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileDragdropUploaderModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileDragdropUploaderModule, [typeof i1.FileDragdropUploaderComponent], [typeof i2.CommonModule, typeof i3.FileDropperModule, typeof i4.FlexLayoutModule, typeof i5.MatIconModule, typeof i6.MatButtonModule], [typeof i1.FileDragdropUploaderComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileDragdropUploaderModule>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './number-input-button.module';
2
+ export * from './number-input-button/number-input-button.component';
@@ -0,0 +1,32 @@
1
+ import { ControlValueAccessor, UntypedFormControl } from '@angular/forms';
2
+ import { MatFormFieldAppearance } from '@angular/material/form-field';
3
+ import { ElementRef, OnInit } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ export interface NumberInputOption {
6
+ type: string;
7
+ title: string;
8
+ value: any;
9
+ hint: string;
10
+ }
11
+ export declare const DEFAULT_SELECTED_VALUE = 1;
12
+ export declare class NumberInputButtonComponent implements OnInit, ControlValueAccessor {
13
+ label: string;
14
+ appearance?: MatFormFieldAppearance;
15
+ showLabel: boolean;
16
+ customInput: ElementRef;
17
+ showCustomInput: boolean;
18
+ options: NumberInputOption[];
19
+ selectedOption: UntypedFormControl;
20
+ customValue: UntypedFormControl;
21
+ touched: boolean;
22
+ disabled: boolean;
23
+ onChange: (value: any) => void;
24
+ onTouched: () => void;
25
+ ngOnInit(): void;
26
+ writeValue(obj: string): void;
27
+ registerOnChange(fn: any): void;
28
+ registerOnTouched(fn: any): void;
29
+ setDisabledState?(isDisabled: boolean): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputButtonComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputButtonComponent, "app-number-input-button", never, { "label": "label"; "appearance": "appearance"; "showLabel": "showLabel"; }, {}, never, never, false>;
32
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./number-input-button/number-input-button.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../material.module";
5
+ import * as i4 from "@angular/forms";
6
+ export declare class NumberInputButtonModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputButtonModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumberInputButtonModule, [typeof i1.NumberInputButtonComponent], [typeof i2.CommonModule, typeof i3.MaterialModule, typeof i4.ReactiveFormsModule], [typeof i1.NumberInputButtonComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NumberInputButtonModule>;
10
+ }
@@ -1,12 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./searchable-selector.component";
3
- import * as i2 from "./mat-select-infinite-scroll.directive";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/flex-layout";
7
- import * as i6 from "../material.module";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/flex-layout";
6
+ import * as i5 from "../material.module";
7
+ import * as i6 from "ng-mat-select-infinite-scroll";
8
8
  export declare class SearchableSelectorModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchableSelectorModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SearchableSelectorModule, [typeof i1.SearchableSelectorComponent, typeof i2.MatSelectInfiniteScrollDirective], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.FlexLayoutModule, typeof i6.MaterialModule], [typeof i1.SearchableSelectorComponent, typeof i2.MatSelectInfiniteScrollDirective]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SearchableSelectorModule, [typeof i1.SearchableSelectorComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FlexLayoutModule, typeof i5.MaterialModule, typeof i6.MatSelectInfiniteScrollModule], [typeof i1.SearchableSelectorComponent]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<SearchableSelectorModule>;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "14.10.1",
3
+ "version": "14.11.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=14",
6
6
  "@angular/core": ">=14",
@@ -13,6 +13,7 @@
13
13
  "@angular/material": ">=14",
14
14
  "@angular/cdk": ">=14",
15
15
  "rxjs": ">=6.6.0",
16
+ "ng-mat-select-infinite-scroll": "^4.0.0",
16
17
  "zone.js": ">=0.11"
17
18
  },
18
19
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -120,3 +120,7 @@ export * from './lib/access-control-config/access-control-config.module';
120
120
  export * from './lib/ngx-techlify-users/ngx-techlify-users.module';
121
121
  export * from './lib/restrictors';
122
122
  export * from './lib/techlify-company-switcher';
123
+ export * from './lib/file-dragdrop-uploader/file-dragdrop-uploader/file-dragdrop-uploader.component';
124
+ export * from './lib/file-dragdrop-uploader/file-dragdrop-uploader.module';
125
+ export * from './lib/number-input-button';
126
+ export * from './lib/column-selector';