osl-base-extended 13.1.0 → 14.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": "13.1.0",
3
+ "version": "14.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0"
@@ -665,7 +665,7 @@ interface OslMenuAction {
665
665
  label: string;
666
666
  labelIf?: (row: any) => string;
667
667
  hideIf?: (row: any) => boolean;
668
- click: (row: any) => void;
668
+ click: (row: any) => void | Promise<any>;
669
669
  }
670
670
  interface OslSortEvent {
671
671
  key: string;
@@ -715,10 +715,12 @@ declare class OslGrid implements OnChanges {
715
715
  top: number;
716
716
  left: number;
717
717
  };
718
+ loadingActionIndex: number | null;
718
719
  private _restorePage;
719
720
  onDocumentClick(): void;
720
721
  toggleMenu(index: number, event: Event): void;
721
722
  closeMenu(): void;
723
+ onActionClick(action: OslMenuAction, row: any, index: number): Promise<void>;
722
724
  get skeletonRows(): number[];
723
725
  get skeletonColumns(): number[];
724
726
  get _total(): number;
@@ -831,11 +833,13 @@ declare class OslSetup implements OnInit, OnChanges, AfterViewInit {
831
833
  top: number;
832
834
  left: number;
833
835
  };
836
+ cardLoadingActionIndex: number | null;
834
837
  headerMenuOpen: boolean;
835
838
  headerMenuPosition: {
836
839
  top: number;
837
840
  left: number;
838
841
  };
842
+ headerLoadingActionIndex: number | null;
839
843
  onDocumentClick(): void;
840
844
  get hasForm(): boolean;
841
845
  get _effectiveCardPageSize(): number;
@@ -859,8 +863,10 @@ declare class OslSetup implements OnInit, OnChanges, AfterViewInit {
859
863
  private _loadViewMode;
860
864
  toggleView(mode: 'table' | 'card'): void;
861
865
  toggleCardMenu(index: number, event: Event): void;
866
+ onCardActionClick(action: OslMenuAction, row: any, index: number): Promise<void>;
862
867
  get hasVisibleHeaderActions(): boolean;
863
868
  toggleHeaderMenu(event: Event): void;
869
+ onHeaderActionClick(action: OslMenuAction, index: number): Promise<void>;
864
870
  isHighlightedCard(row: any): boolean;
865
871
  getCellValue(row: any, col: OslGridColumn): string;
866
872
  getCardInitial(row: any): string;
@@ -1333,9 +1339,11 @@ declare class OslReportForm implements OnInit {
1333
1339
  top: number;
1334
1340
  left: number;
1335
1341
  };
1342
+ moreMenuLoadingActionIndex: number | null;
1336
1343
  onDocumentClick(): void;
1337
1344
  get hasVisibleMoreMenuActions(): boolean;
1338
1345
  toggleMoreMenu(event: Event): void;
1346
+ onMoreMenuActionClick(action: OslMenuAction, index: number): Promise<void>;
1339
1347
  ngOnInit(): void;
1340
1348
  selectType(type: ReportGenerateType): void;
1341
1349
  generate(): Promise<void>;
@@ -1394,6 +1402,19 @@ declare class OslMenuTriggerFor implements OnDestroy {
1394
1402
  static ɵfac: i0.ɵɵFactoryDeclaration<OslMenuTriggerFor, never>;
1395
1403
  static ɵdir: i0.ɵɵDirectiveDeclaration<OslMenuTriggerFor, "[oslMenuTriggerFor]", never, { "menu": { "alias": "oslMenuTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
1396
1404
  }
1405
+ /**
1406
+ * Apply to a `.osl-menu-item` button to give it a built-in loading state:
1407
+ * `<button class="osl-menu-item" osl-menu-item [loading]="isSaving" (click)="save()">…</button>`
1408
+ * While `loading` is true the button is disabled and its content is replaced with a spinner,
1409
+ * regardless of what was projected inside it.
1410
+ */
1411
+ declare class OslMenuItem {
1412
+ loading: boolean;
1413
+ get isLoading(): boolean;
1414
+ get isDisabled(): boolean;
1415
+ static ɵfac: i0.ɵɵFactoryDeclaration<OslMenuItem, never>;
1416
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OslMenuItem, "[osl-menu-item]", never, { "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, false, never>;
1417
+ }
1397
1418
 
1398
1419
  interface OslSavedDocument {
1399
1420
  id: any;
@@ -1579,7 +1600,7 @@ declare class OslTooltipDirective implements OnDestroy {
1579
1600
 
1580
1601
  declare class FormStructureModule {
1581
1602
  static ɵfac: i0.ɵɵFactoryDeclaration<FormStructureModule, never>;
1582
- 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 OslTooltipDirective, typeof i32.MatDatepickerModule, typeof i33.MatMenuModule, 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, typeof OslTooltipDirective]>;
1603
+ 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 OslMenuItem, 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 OslTooltipDirective, typeof i32.MatDatepickerModule, typeof i33.MatMenuModule, 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 OslMenuItem, typeof OslDocumentUploader, typeof OslTooltipDirective]>;
1583
1604
  static ɵinj: i0.ɵɵInjectorDeclaration<FormStructureModule>;
1584
1605
  }
1585
1606
 
@@ -2489,5 +2510,5 @@ declare class ErrorDialog {
2489
2510
  static ɵcmp: i0.ɵɵComponentDeclaration<ErrorDialog, "error-dialog", never, {}, {}, never, never, true, never>;
2490
2511
  }
2491
2512
 
2492
- export { array_util_d as ArrayUtil, date_util_d as DateUtil, DeleteConfirmation, DeleteConfirmationData, Dialog, DialogWrapper, DirtyStateService, DynamicForm, ErrorDialog, FormStructureModule, Httpbase, number_util_d as NumberUtil, OSL_ATTACH_CALLER_IP, 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, OslTooltipDirective, OslUserLog, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, UnsavedChangesDialog, validation_util_d as ValidationUtil, WarningDialog, WarningDialogData, baseComponent, provideCallerIpHeader, unsavedChangesGuard };
2513
+ export { array_util_d as ArrayUtil, date_util_d as DateUtil, DeleteConfirmation, DeleteConfirmationData, Dialog, DialogWrapper, DirtyStateService, DynamicForm, ErrorDialog, FormStructureModule, Httpbase, number_util_d as NumberUtil, OSL_ATTACH_CALLER_IP, object_util_d as ObjectUtil, OslAutocomplete, OslAutocompleteLister, OslBaseExtended, OslButton, OslCheckbox, OslDatepicker, OslDatetimepicker, OslDocumentUploader, OslFileUpload, OslFormGrid, OslGrid, OslMenu, OslMenuItem, OslMenuTriggerFor, OslRadio, OslReportForm, OslReportGrid, OslSearchbar, OslSelect, OslSetup, OslSkeletonDirective, OslSkeletonModule, OslSkeletonThemeService, OslSlideToggle, OslTooltipDirective, OslUserLog, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, UnsavedChangesDialog, validation_util_d as ValidationUtil, WarningDialog, WarningDialogData, baseComponent, provideCallerIpHeader, unsavedChangesGuard };
2493
2514
  export type { ButtonSize, ButtonVariant, DateInputType, DragColumn, DragDropPayload, DragItem, ErrorDialogData, FlatRow, HttpResponse, InputType, InternalColumn, OslDisplayType, OslFileValue, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslMenuPosition, OslPageEvent, OslPdfConfig, OslReportColumn, OslReportPageEvent, OslReportSortEvent, OslSavedDocument, OslSetupSaveEvent, OslSortEvent, PanelPageEvent, PanelSearchEvent, PasswordOptions, ReportGenerateType, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, UnsavedChangesDialogData, UserLogMeta, elements, myParams, oslListerData };