osl-base-extended 1.1.21 → 1.1.23

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": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0"
@@ -146,7 +146,7 @@ declare class Oslinput implements OnInit, OnChanges {
146
146
  ngOnInit(): void;
147
147
  ngOnChanges(changes: SimpleChanges): void;
148
148
  togglePassword(): void;
149
- onFocusIn(): void;
149
+ onFocusIn(event: FocusEvent): void;
150
150
  onFocusOut(): void;
151
151
  private applyDecimalFormat;
152
152
  private formatDecimal;
@@ -244,7 +244,7 @@ interface elements {
244
244
  change?: (model: any, index?: any, selectedObj?: any) => void;
245
245
  disabled?: boolean;
246
246
  hide?: boolean;
247
- disabledIf?: () => boolean;
247
+ disabledIf?: (row: any, index?: any) => boolean;
248
248
  hideIf?: (model: any) => boolean;
249
249
  datasource?: any[];
250
250
  displayField?: string;
@@ -488,6 +488,7 @@ declare class OslButton {
488
488
  static ɵcmp: i0.ɵɵComponentDeclaration<OslButton, "osl-button", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, { "clickEv": "clickEv"; }, never, never, false, never>;
489
489
  }
490
490
 
491
+ type OslDisplayType = 'date' | 'datetime' | 'time';
491
492
  interface OslGridColumn {
492
493
  key: string;
493
494
  label: string;
@@ -498,6 +499,8 @@ interface OslGridColumn {
498
499
  displayFn?: (value: any, row: any) => string;
499
500
  /** When true, renders edit + delete icon buttons instead of cell text. */
500
501
  isActions?: boolean;
502
+ /** Applies a built-in transform to the cell value. 'date' → dd/MM/yyyy, 'datetime' → dd/MM/yyyy HH:mm, 'time' → HH:mm */
503
+ displayType?: OslDisplayType;
501
504
  }
502
505
  interface OslMenuAction {
503
506
  label: string;
@@ -690,7 +693,7 @@ declare class OslFormGrid {
690
693
  onCellChange(row: any, col: OslFormGridColumn, value: any): void;
691
694
  goToPage(page: number): void;
692
695
  onPageSizeChange(size: number): void;
693
- isDisabled(elem: elements): boolean;
696
+ isDisabled(elem: elements, row: any, index: number): boolean;
694
697
  isLoading(row: any, elem: elements): boolean;
695
698
  colRequired(col: OslFormGridColumn): boolean;
696
699
  onSelectChange(col: OslFormGridColumn, row: any, i: number, value: any): void;
@@ -831,7 +834,7 @@ declare class OslSkeletonModule {
831
834
 
832
835
  declare class FormStructureModule {
833
836
  static ɵfac: i0.ɵɵFactoryDeclaration<FormStructureModule, never>;
834
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormStructureModule, [typeof DynamicForm, typeof Oslinput, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslGrid, typeof OslFormGrid, typeof OslAutocompleteLister], [typeof i17.NgTemplateOutlet, typeof i17.NgStyle, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.MatFormFieldModule, typeof i20.MatInputModule, typeof i19.MatHint, typeof i21.MatIconModule, typeof i22.MatDialogModule, typeof i23.MatButtonModule, typeof OslSkeletonModule, typeof i25.MatDatepickerModule, typeof i26.MatMenuModule], [typeof DynamicForm, typeof OslSetup, typeof OslGrid, typeof OslFormGrid, typeof Oslinput, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslAutocompleteLister]>;
837
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormStructureModule, [typeof DynamicForm, typeof Oslinput, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslGrid, typeof OslFormGrid, typeof OslAutocompleteLister], [typeof i17.NgTemplateOutlet, typeof i17.NgStyle, typeof i17.DatePipe, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.MatFormFieldModule, typeof i20.MatInputModule, typeof i19.MatHint, typeof i21.MatIconModule, typeof i22.MatDialogModule, typeof i23.MatButtonModule, typeof OslSkeletonModule, typeof i25.MatDatepickerModule, typeof i26.MatMenuModule], [typeof DynamicForm, typeof OslSetup, typeof OslGrid, typeof OslFormGrid, typeof Oslinput, typeof Osltextarea, typeof OslSelect, typeof OslRadio, typeof OslSlideToggle, typeof OslAutocomplete, typeof OslFileUpload, typeof OslDatepicker, typeof OslCheckbox, typeof OslButton, typeof OslSetup, typeof OslSearchbar, typeof OslAutocompleteLister]>;
835
838
  static ɵinj: i0.ɵɵInjectorDeclaration<FormStructureModule>;
836
839
  }
837
840
 
@@ -1698,4 +1701,4 @@ declare namespace validation_util_d {
1698
1701
  }
1699
1702
 
1700
1703
  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, OslFileUpload, OslFormGrid, OslGrid, OslRadio, OslSearchbar, OslSelect, OslSetup, OslSkeletonDirective, OslSkeletonModule, OslSkeletonThemeService, OslSlideToggle, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, validation_util_d as ValidationUtil, baseComponent };
1701
- export type { ButtonSize, ButtonVariant, DateInputType, HttpResponse, InputType, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslPageEvent, OslSetupSaveEvent, OslSortEvent, PasswordOptions, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, elements, myParams, oslListerData };
1704
+ export type { ButtonSize, ButtonVariant, DateInputType, HttpResponse, InputType, OslDisplayType, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslPageEvent, OslSetupSaveEvent, OslSortEvent, PasswordOptions, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, elements, myParams, oslListerData };