osl-base-extended 18.1.1 → 18.2.1
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
|
@@ -424,6 +424,11 @@ declare class DynamicForm implements OnInit, OnChanges {
|
|
|
424
424
|
private loadApiDatasources;
|
|
425
425
|
private _loadForList;
|
|
426
426
|
onModelChange(event: any, key: any): void;
|
|
427
|
+
private resolvedDatasources;
|
|
428
|
+
/** The list a field should render: datasourceIf(model) when set, otherwise the static datasource. */
|
|
429
|
+
getDatasource(elem: elements): any[];
|
|
430
|
+
/** Autocomplete writes its own list back (API search). Ignored when datasourceIf drives the list. */
|
|
431
|
+
onAutocompleteDatasourceChange(elem: elements, value: any[]): void;
|
|
427
432
|
onSelectChange(elem: elements, value: any): void;
|
|
428
433
|
onFieldChange(elem: elements, value: any): void;
|
|
429
434
|
private _refreshDependents;
|
|
@@ -431,6 +436,11 @@ declare class DynamicForm implements OnInit, OnChanges {
|
|
|
431
436
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicForm, never>;
|
|
432
437
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicForm, "osl-dynamic-form", never, { "elements": { "alias": "elements"; "required": false; }; "model": { "alias": "model"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, false, never>;
|
|
433
438
|
}
|
|
439
|
+
/**
|
|
440
|
+
* Returns `prev` when `next` holds the same items in the same order, so a callback that
|
|
441
|
+
* filters into a new array each change-detection cycle doesn't re-trigger child inputs.
|
|
442
|
+
*/
|
|
443
|
+
declare function stableArray(prev: any[] | undefined, next: any[]): any[];
|
|
434
444
|
interface elements {
|
|
435
445
|
columns: number;
|
|
436
446
|
label: string;
|
|
@@ -446,6 +456,13 @@ interface elements {
|
|
|
446
456
|
minDateIf?: (model: any) => string;
|
|
447
457
|
maxDateIf?: (model: any) => string;
|
|
448
458
|
datasource?: any[];
|
|
459
|
+
/**
|
|
460
|
+
* Computed datasource — takes precedence over `datasource` when set.
|
|
461
|
+
* dynamic-form calls it as (model); form-grid calls it as (row, rowIndex, gridDatasource).
|
|
462
|
+
* Returning a freshly filtered array each call is fine: results that are shallow-equal
|
|
463
|
+
* to the previous call keep the previous array reference.
|
|
464
|
+
*/
|
|
465
|
+
datasourceIf?: (model: any, index?: number, arr?: any[]) => any[];
|
|
449
466
|
displayField?: string;
|
|
450
467
|
valueField?: string;
|
|
451
468
|
required?: boolean;
|
|
@@ -1286,6 +1303,9 @@ declare class OslFormGrid implements OnChanges {
|
|
|
1286
1303
|
onCellChange(row: any, col: OslFormGridColumn, value: any): void;
|
|
1287
1304
|
private autocompleteDatasources;
|
|
1288
1305
|
getAutocompleteDatasource(row: any, col: OslFormGridColumn): any[];
|
|
1306
|
+
private resolvedCellDatasources;
|
|
1307
|
+
/** The list a select / radio / local autocomplete cell renders for this row. */
|
|
1308
|
+
getCellDatasource(row: any, col: OslFormGridColumn, index?: number): any[];
|
|
1289
1309
|
onAutocompleteDatasourceChange(row: any, col: OslFormGridColumn, value: any[]): void;
|
|
1290
1310
|
goToPage(page: number): void;
|
|
1291
1311
|
onPageSizeChange(size: number): void;
|
|
@@ -2853,5 +2873,5 @@ declare class ErrorDialog {
|
|
|
2853
2873
|
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorDialog, "error-dialog", never, {}, {}, never, never, true, never>;
|
|
2854
2874
|
}
|
|
2855
2875
|
|
|
2856
|
-
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, OslChipsInput, OslDatepicker, OslDatetimepicker, OslDocumentUploader, OslEmailDialog, OslEmailDialogData, 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 };
|
|
2876
|
+
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, OslChipsInput, OslDatepicker, OslDatetimepicker, OslDocumentUploader, OslEmailDialog, OslEmailDialogData, 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, stableArray, unsavedChangesGuard };
|
|
2857
2877
|
export type { ButtonSize, ButtonVariant, ChipsReturnType, DateInputType, DragColumn, DragDropPayload, DragItem, ErrorDialogData, FlatRow, HttpResponse, InputType, InternalColumn, OslDisplayType, OslEmailAttachment, OslEmailSendResult, OslFileValue, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridGroup, OslFormGridHeaderCell, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslMenuPosition, OslPageEvent, OslPdfConfig, OslPdfFooterColumn, OslReportColumn, OslReportEmailConfig, OslReportPageEvent, OslReportSortEvent, OslSavedDocument, OslSetupSaveEvent, OslSortEvent, PanelPageEvent, PanelSearchEvent, PasswordOptions, ReportGenerateType, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, UnsavedChangesDialogData, UserLogMeta, elements, myParams, oslListerData };
|