osl-base-extended 10.0.0 → 10.2.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": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^21.2.0",
|
|
6
6
|
"@angular/core": "^21.2.0"
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"module": "fesm2022/osl-base-extended.mjs",
|
|
26
26
|
"typings": "types/osl-base-extended.d.ts",
|
|
27
27
|
"type": "module"
|
|
28
|
-
}
|
|
28
|
+
}
|
|
@@ -8,9 +8,10 @@ import { DragConstrainPosition, CdkDragDrop, CdkDragStart, CdkDragEnd, CdkDragEn
|
|
|
8
8
|
import * as i24 from '@angular/forms';
|
|
9
9
|
import { FormControl } from '@angular/forms';
|
|
10
10
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
11
|
+
import * as i23 from '@angular/common';
|
|
12
|
+
import { DatePipe } from '@angular/common';
|
|
11
13
|
import * as i36 from '@angular/cdk/overlay';
|
|
12
14
|
import { Overlay } from '@angular/cdk/overlay';
|
|
13
|
-
import * as i23 from '@angular/common';
|
|
14
15
|
import * as i25 from '@angular/material/form-field';
|
|
15
16
|
import * as i26 from '@angular/material/input';
|
|
16
17
|
import * as i27 from '@angular/material/icon';
|
|
@@ -168,6 +169,8 @@ declare class Oslinput implements OnInit, OnChanges {
|
|
|
168
169
|
isCapitalize: boolean;
|
|
169
170
|
/** Enforce N decimal places. Shows 0.00 when blank; auto-pads on blur. */
|
|
170
171
|
decimalPortion: number | null;
|
|
172
|
+
/** Allow a leading minus sign for 'int' type and decimal inputs. Default false. */
|
|
173
|
+
allowNegative: boolean;
|
|
171
174
|
modelChange: EventEmitter<any>;
|
|
172
175
|
changeEv: EventEmitter<any>;
|
|
173
176
|
showPassword: boolean;
|
|
@@ -183,12 +186,13 @@ declare class Oslinput implements OnInit, OnChanges {
|
|
|
183
186
|
private formatDecimal;
|
|
184
187
|
private cleanDecimalInput;
|
|
185
188
|
onKeyDown(event: KeyboardEvent): void;
|
|
189
|
+
private allowNegativeAt;
|
|
186
190
|
private isKeyAllowedByMask;
|
|
187
191
|
onModelChange(value: string): void;
|
|
188
192
|
onChange(): void;
|
|
189
193
|
private applyMask;
|
|
190
194
|
static ɵfac: i0.ɵɵFactoryDeclaration<Oslinput, never>;
|
|
191
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Oslinput, "osl-input", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "suffixRef": { "alias": "suffixRef"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; "onlyChars": { "alias": "onlyChars"; "required": false; }; "isCapitalize": { "alias": "isCapitalize"; "required": false; }; "decimalPortion": { "alias": "decimalPortion"; "required": false; }; }, { "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Oslinput, "osl-input", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "suffixRef": { "alias": "suffixRef"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; "onlyChars": { "alias": "onlyChars"; "required": false; }; "isCapitalize": { "alias": "isCapitalize"; "required": false; }; "decimalPortion": { "alias": "decimalPortion"; "required": false; }; "allowNegative": { "alias": "allowNegative"; "required": false; }; }, { "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
|
|
192
196
|
}
|
|
193
197
|
|
|
194
198
|
type DateInputType = 'date' | 'datetime-local' | 'time' | 'month' | 'week';
|
|
@@ -309,6 +313,8 @@ interface elements {
|
|
|
309
313
|
onlyChars?: boolean;
|
|
310
314
|
/** Enforce N decimal places on osl-input. Shows 0.00 when blank; auto-pads on blur. */
|
|
311
315
|
decimalPortion?: number;
|
|
316
|
+
/** Allow a leading minus sign for 'int' type and decimal inputs. Default false. */
|
|
317
|
+
allowNegative?: boolean;
|
|
312
318
|
textareaRows?: number;
|
|
313
319
|
characterCounter?: boolean;
|
|
314
320
|
resize?: TextareaResize;
|
|
@@ -887,6 +893,8 @@ interface PanelPageEvent {
|
|
|
887
893
|
searchValue: string;
|
|
888
894
|
}
|
|
889
895
|
declare class OslFormGrid {
|
|
896
|
+
private datePipe;
|
|
897
|
+
constructor(datePipe: DatePipe);
|
|
890
898
|
columns: OslFormGridColumn[];
|
|
891
899
|
datasource: any[];
|
|
892
900
|
datasourceChange: EventEmitter<any[]>;
|
|
@@ -955,6 +963,10 @@ declare class OslFormGrid {
|
|
|
955
963
|
isDisabled(elem: elements, row: any, index: number): boolean;
|
|
956
964
|
isLoading(row: any, elem: elements): boolean;
|
|
957
965
|
colRequired(col: OslFormGridColumn): boolean;
|
|
966
|
+
/** Resolves the human-readable value for a cell — same value the grid control represents,
|
|
967
|
+
* not the raw model value (e.g. displayField label instead of an id, formatted date, etc). */
|
|
968
|
+
getPreviewValue(col: OslFormGridColumn, row: any): any;
|
|
969
|
+
private formatDate;
|
|
958
970
|
onSelectChange(col: OslFormGridColumn, row: any, i: number, value: any): void;
|
|
959
971
|
onPanelSearchChange(value: string): void;
|
|
960
972
|
clearPanelSearch(): void;
|