osl-base-extended 2.0.37 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osl-base-extended",
3
- "version": "2.0.37",
3
+ "version": "3.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0"
@@ -1,26 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { TemplateRef, OnInit, OnChanges, EventEmitter, SimpleChanges, ChangeDetectorRef, OnDestroy, ElementRef, AfterViewInit, ViewContainerRef, Renderer2, NgZone } from '@angular/core';
3
- import * as i27 from '@angular/material/dialog';
3
+ import * as i28 from '@angular/material/dialog';
4
4
  import { MatDialogRef } from '@angular/material/dialog';
5
5
  import { HttpHeaders, HttpClient } from '@angular/common/http';
6
- import * as i23 from '@angular/forms';
6
+ import * as i24 from '@angular/forms';
7
7
  import { FormControl } from '@angular/forms';
8
- import * as i33 from '@angular/cdk/drag-drop';
8
+ import * as i34 from '@angular/cdk/drag-drop';
9
9
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
10
- import * as i35 from '@angular/cdk/overlay';
10
+ import * as i36 from '@angular/cdk/overlay';
11
11
  import { Overlay } from '@angular/cdk/overlay';
12
- import * as i22 from '@angular/common';
13
- import * as i24 from '@angular/material/form-field';
14
- import * as i25 from '@angular/material/input';
15
- import * as i26 from '@angular/material/icon';
16
- import * as i28 from '@angular/material/button';
12
+ import * as i23 from '@angular/common';
13
+ import * as i25 from '@angular/material/form-field';
14
+ import * as i26 from '@angular/material/input';
15
+ import * as i27 from '@angular/material/icon';
16
+ import * as i29 from '@angular/material/button';
17
17
  import * as rxjs from 'rxjs';
18
- import * as i30 from '@angular/material/datepicker';
19
- import * as i31 from '@angular/material/menu';
20
- import * as i32 from '@angular/cdk/scrolling';
21
- import * as i34 from '@angular/material/tooltip';
22
- import * as i36 from '@angular/cdk/portal';
23
- import * as i37 from '@ngxmc/datetime-picker';
18
+ import * as i31 from '@angular/material/datepicker';
19
+ import * as i32 from '@angular/material/menu';
20
+ import * as i33 from '@angular/cdk/scrolling';
21
+ import * as i35 from '@angular/material/tooltip';
22
+ import * as i37 from '@angular/cdk/portal';
23
+ import * as i38 from '@ngxmc/datetime-picker';
24
24
 
25
25
  declare class OslBaseExtended {
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<OslBaseExtended, never>;
@@ -1188,6 +1188,60 @@ declare class OslMenuTriggerFor implements OnDestroy {
1188
1188
  static ɵdir: i0.ɵɵDirectiveDeclaration<OslMenuTriggerFor, "[oslMenuTriggerFor]", never, { "menu": { "alias": "oslMenuTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
1189
1189
  }
1190
1190
 
1191
+ interface OslSavedDocument {
1192
+ id: any;
1193
+ name: string;
1194
+ file?: string;
1195
+ addBy?: string;
1196
+ addOn?: string | Date;
1197
+ }
1198
+ declare class OslDocumentUploader {
1199
+ label: string;
1200
+ required: boolean;
1201
+ disabled: boolean;
1202
+ multiple: boolean;
1203
+ accept: string;
1204
+ maxSize: number;
1205
+ minFiles: number;
1206
+ maxFiles: number;
1207
+ showUploadButton: boolean;
1208
+ uploadButtonLabel: string;
1209
+ savedDocuments: OslSavedDocument[];
1210
+ skeletonLoading: boolean;
1211
+ skeletonTheme: 'light' | 'dark';
1212
+ uploadCallback: EventEmitter<FormData>;
1213
+ viewCallback: EventEmitter<OslSavedDocument>;
1214
+ deleteCallback: EventEmitter<OslSavedDocument>;
1215
+ downloadCallback: EventEmitter<OslSavedDocument>;
1216
+ filesChanged: EventEmitter<File[]>;
1217
+ pendingFiles: File[];
1218
+ isDragOver: boolean;
1219
+ sizeErrors: string[];
1220
+ touched: boolean;
1221
+ get maxFilesReached(): boolean;
1222
+ get isBelowMin(): boolean;
1223
+ get isInvalid(): boolean;
1224
+ get requiredError(): boolean;
1225
+ get minFilesError(): boolean;
1226
+ get maxSizeLabel(): string;
1227
+ getFileSize(bytes: number): string;
1228
+ getFileType(name: string): 'pdf' | 'word' | 'excel' | 'image' | 'archive' | 'generic';
1229
+ formatDate(value: string | Date | undefined): string;
1230
+ onFileChange(event: Event): void;
1231
+ onDragOver(event: DragEvent): void;
1232
+ onDragLeave(event: DragEvent): void;
1233
+ onDrop(event: DragEvent): void;
1234
+ private processFiles;
1235
+ removeFile(index: number): void;
1236
+ triggerInput(fileInput: HTMLInputElement): void;
1237
+ upload(): void;
1238
+ onView(doc: OslSavedDocument): void;
1239
+ onDelete(doc: OslSavedDocument): void;
1240
+ onDownload(doc: OslSavedDocument): void;
1241
+ static ɵfac: i0.ɵɵFactoryDeclaration<OslDocumentUploader, never>;
1242
+ static ɵcmp: i0.ɵɵComponentDeclaration<OslDocumentUploader, "osl-document-uploader", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "minFiles": { "alias": "minFiles"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; }; "uploadButtonLabel": { "alias": "uploadButtonLabel"; "required": false; }; "savedDocuments": { "alias": "savedDocuments"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; }, { "uploadCallback": "uploadCallback"; "viewCallback": "viewCallback"; "deleteCallback": "deleteCallback"; "downloadCallback": "downloadCallback"; "filesChanged": "filesChanged"; }, never, never, false, never>;
1243
+ }
1244
+
1191
1245
  declare class OslSkeletonThemeService {
1192
1246
  private readonly _theme$;
1193
1247
  /** Subscribe to react to global theme changes */
@@ -1294,7 +1348,7 @@ declare class OslSkeletonModule {
1294
1348
 
1295
1349
  declare class FormStructureModule {
1296
1350
  static ɵfac: i0.ɵɵFactoryDeclaration<FormStructureModule, never>;
1297
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormStructureModule, [typeof DynamicForm, typeof Oslinput, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslDatetimepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslGrid, typeof OslFormGrid, typeof OslAutocompleteLister, typeof OslReportGrid, typeof OslReportForm, typeof OslUserLog, typeof OslMenu, typeof OslMenuTriggerFor], [typeof i22.NgTemplateOutlet, typeof i22.NgStyle, typeof i22.NgClass, typeof i22.DatePipe, typeof i22.DecimalPipe, typeof i22.UpperCasePipe, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.MatFormFieldModule, typeof i25.MatInputModule, typeof i24.MatHint, typeof i26.MatIconModule, typeof i27.MatDialogModule, typeof i28.MatButtonModule, typeof OslSkeletonModule, typeof i30.MatDatepickerModule, typeof i31.MatMenuModule, typeof i32.ScrollingModule, typeof i33.DragDropModule, typeof i34.MatTooltipModule, typeof i35.OverlayModule, typeof i36.PortalModule, typeof i37.NgxMatDatetimepicker, typeof i37.NgxMatDatepickerInput], [typeof DynamicForm, typeof OslSetup, typeof OslGrid, typeof OslFormGrid, typeof Oslinput, typeof OslUserLog, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslDatetimepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslAutocompleteLister, typeof OslReportGrid, typeof OslReportForm, typeof OslMenu, typeof OslMenuTriggerFor]>;
1351
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormStructureModule, [typeof DynamicForm, typeof Oslinput, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslDatetimepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslGrid, typeof OslFormGrid, typeof OslAutocompleteLister, typeof OslReportGrid, typeof OslReportForm, typeof OslUserLog, typeof OslMenu, typeof OslMenuTriggerFor, typeof OslDocumentUploader], [typeof i23.NgTemplateOutlet, typeof i23.NgStyle, typeof i23.NgClass, typeof i23.DatePipe, typeof i23.DecimalPipe, typeof i23.UpperCasePipe, typeof i24.FormsModule, typeof i24.ReactiveFormsModule, typeof i25.MatFormFieldModule, typeof i26.MatInputModule, typeof i25.MatHint, typeof i27.MatIconModule, typeof i28.MatDialogModule, typeof i29.MatButtonModule, typeof OslSkeletonModule, typeof i31.MatDatepickerModule, typeof i32.MatMenuModule, typeof i33.ScrollingModule, typeof i34.DragDropModule, typeof i35.MatTooltipModule, typeof i36.OverlayModule, typeof i37.PortalModule, typeof i38.NgxMatDatetimepicker, typeof i38.NgxMatDatepickerInput], [typeof DynamicForm, typeof OslSetup, typeof OslGrid, typeof OslFormGrid, typeof Oslinput, typeof OslUserLog, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslDatetimepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslAutocompleteLister, typeof OslReportGrid, typeof OslReportForm, typeof OslMenu, typeof OslMenuTriggerFor, typeof OslDocumentUploader]>;
1298
1352
  static ɵinj: i0.ɵɵInjectorDeclaration<FormStructureModule>;
1299
1353
  }
1300
1354
 
@@ -2163,5 +2217,5 @@ declare namespace validation_util_d {
2163
2217
  export type { validation_util_d_PasswordOptions as PasswordOptions };
2164
2218
  }
2165
2219
 
2166
- export { array_util_d as ArrayUtil, date_util_d as DateUtil, DeleteConfirmation, DeleteConfirmationData, Dialog, DialogWrapper, DynamicForm, FormStructureModule, Httpbase, number_util_d as NumberUtil, object_util_d as ObjectUtil, OslAutocomplete, OslAutocompleteLister, OslBaseExtended, OslButton, OslCheckbox, OslDatepicker, OslDatetimepicker, OslFileUpload, OslFormGrid, OslGrid, OslMenu, OslMenuTriggerFor, OslRadio, OslReportForm, OslReportGrid, OslSearchbar, OslSelect, OslSetup, OslSkeletonDirective, OslSkeletonModule, OslSkeletonThemeService, OslSlideToggle, OslUserLog, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, validation_util_d as ValidationUtil, baseComponent };
2167
- export type { ButtonSize, ButtonVariant, DateInputType, FlatRow, HttpResponse, InputType, InternalColumn, OslDisplayType, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslMenuPosition, OslPageEvent, OslPdfConfig, OslReportColumn, OslReportPageEvent, OslReportSortEvent, OslSetupSaveEvent, OslSortEvent, PasswordOptions, ReportGenerateType, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, UserLogMeta, elements, myParams, oslListerData };
2220
+ export { array_util_d as ArrayUtil, date_util_d as DateUtil, DeleteConfirmation, DeleteConfirmationData, Dialog, DialogWrapper, DynamicForm, FormStructureModule, Httpbase, number_util_d as NumberUtil, object_util_d as ObjectUtil, OslAutocomplete, OslAutocompleteLister, OslBaseExtended, OslButton, OslCheckbox, OslDatepicker, OslDatetimepicker, OslDocumentUploader, OslFileUpload, OslFormGrid, OslGrid, OslMenu, OslMenuTriggerFor, OslRadio, OslReportForm, OslReportGrid, OslSearchbar, OslSelect, OslSetup, OslSkeletonDirective, OslSkeletonModule, OslSkeletonThemeService, OslSlideToggle, OslUserLog, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, validation_util_d as ValidationUtil, baseComponent };
2221
+ export type { ButtonSize, ButtonVariant, DateInputType, FlatRow, HttpResponse, InputType, InternalColumn, OslDisplayType, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslMenuPosition, OslPageEvent, OslPdfConfig, OslReportColumn, OslReportPageEvent, OslReportSortEvent, OslSavedDocument, OslSetupSaveEvent, OslSortEvent, PasswordOptions, ReportGenerateType, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, UserLogMeta, elements, myParams, oslListerData };