osl-base-extended 2.0.28 → 2.0.30
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,23 +1,26 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, OnInit, OnChanges, EventEmitter, SimpleChanges, ChangeDetectorRef, OnDestroy, ElementRef, AfterViewInit, Renderer2, NgZone } from '@angular/core';
|
|
3
|
-
import * as
|
|
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';
|
|
4
4
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
5
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i23 from '@angular/forms';
|
|
7
7
|
import { FormControl } from '@angular/forms';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i33 from '@angular/cdk/drag-drop';
|
|
9
9
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
10
|
+
import * as i35 from '@angular/cdk/overlay';
|
|
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';
|
|
15
17
|
import * as rxjs from 'rxjs';
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
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';
|
|
21
24
|
|
|
22
25
|
declare class OslBaseExtended {
|
|
23
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<OslBaseExtended, never>;
|
|
@@ -238,6 +241,9 @@ declare class DynamicForm implements OnInit, OnChanges {
|
|
|
238
241
|
private _loadForList;
|
|
239
242
|
onModelChange(event: any, key: any): void;
|
|
240
243
|
onSelectChange(elem: elements, value: any): void;
|
|
244
|
+
onFieldChange(elem: elements, value: any): void;
|
|
245
|
+
private _refreshDependents;
|
|
246
|
+
private _flatElements;
|
|
241
247
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicForm, never>;
|
|
242
248
|
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>;
|
|
243
249
|
}
|
|
@@ -266,6 +272,8 @@ interface elements {
|
|
|
266
272
|
apiMethod?: string;
|
|
267
273
|
apiConfigMethod?: string;
|
|
268
274
|
apiBody?: (model: any) => any;
|
|
275
|
+
/** Model keys this field depends on. When any change, datasource is refreshed automatically. */
|
|
276
|
+
dependsOn?: string[];
|
|
269
277
|
inputType?: InputType;
|
|
270
278
|
placeholder?: string;
|
|
271
279
|
/** Mask pattern: 0=digit, A=letter, *=alphanumeric. E.g. '(000) 000-0000' */
|
|
@@ -406,6 +414,7 @@ declare class OslAutocomplete extends baseComponent implements OnInit, OnChanges
|
|
|
406
414
|
skeletonLoading: boolean;
|
|
407
415
|
skeletonTheme: 'light' | 'dark';
|
|
408
416
|
isLister: boolean;
|
|
417
|
+
apiBody: any;
|
|
409
418
|
modelChange: EventEmitter<any>;
|
|
410
419
|
changeEv: EventEmitter<any>;
|
|
411
420
|
private listerComponent;
|
|
@@ -438,7 +447,7 @@ declare class OslAutocomplete extends baseComponent implements OnInit, OnChanges
|
|
|
438
447
|
onHintClick(event: MouseEvent): void;
|
|
439
448
|
onDocumentClick(event: MouseEvent): void;
|
|
440
449
|
static ɵfac: i0.ɵɵFactoryDeclaration<OslAutocomplete, never>;
|
|
441
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OslAutocomplete, "osl-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "methodName": { "alias": "methodName"; "required": false; }; "configMethodName": { "alias": "configMethodName"; "required": false; }; "service": { "alias": "service"; "required": false; }; "object": { "alias": "object"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; "isLister": { "alias": "isLister"; "required": false; }; }, { "datasourceChange": "datasourceChange"; "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
|
|
450
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OslAutocomplete, "osl-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "methodName": { "alias": "methodName"; "required": false; }; "configMethodName": { "alias": "configMethodName"; "required": false; }; "service": { "alias": "service"; "required": false; }; "object": { "alias": "object"; "required": false; }; "skeletonLoading": { "alias": "skeletonLoading"; "required": false; }; "skeletonTheme": { "alias": "skeletonTheme"; "required": false; }; "isLister": { "alias": "isLister"; "required": false; }; "apiBody": { "alias": "apiBody"; "required": false; }; }, { "datasourceChange": "datasourceChange"; "modelChange": "modelChange"; "changeEv": "changeEv"; }, never, never, false, never>;
|
|
442
451
|
}
|
|
443
452
|
|
|
444
453
|
declare class OslFileUpload {
|
|
@@ -1155,6 +1164,30 @@ declare class OslUserLog {
|
|
|
1155
1164
|
static ɵcmp: i0.ɵɵComponentDeclaration<OslUserLog, "osl-user-log", never, { "meta": { "alias": "meta"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, false, never>;
|
|
1156
1165
|
}
|
|
1157
1166
|
|
|
1167
|
+
type OslMenuPosition = 'auto' | 'above' | 'below' | 'before' | 'after';
|
|
1168
|
+
declare class OslMenu {
|
|
1169
|
+
position: OslMenuPosition;
|
|
1170
|
+
templateRef: TemplateRef<any>;
|
|
1171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OslMenu, never>;
|
|
1172
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OslMenu, "osl-menu", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
1173
|
+
}
|
|
1174
|
+
declare class OslMenuTriggerFor implements OnDestroy {
|
|
1175
|
+
private _el;
|
|
1176
|
+
private _overlay;
|
|
1177
|
+
private _vcr;
|
|
1178
|
+
menu: OslMenu;
|
|
1179
|
+
private _ref;
|
|
1180
|
+
private _subs;
|
|
1181
|
+
constructor(_el: ElementRef<HTMLElement>, _overlay: Overlay, _vcr: ViewContainerRef);
|
|
1182
|
+
_onClick(event: MouseEvent): void;
|
|
1183
|
+
private _open;
|
|
1184
|
+
private _close;
|
|
1185
|
+
ngOnDestroy(): void;
|
|
1186
|
+
private _positions;
|
|
1187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OslMenuTriggerFor, never>;
|
|
1188
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OslMenuTriggerFor, "[oslMenuTriggerFor]", never, { "menu": { "alias": "oslMenuTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1158
1191
|
declare class OslSkeletonThemeService {
|
|
1159
1192
|
private readonly _theme$;
|
|
1160
1193
|
/** Subscribe to react to global theme changes */
|
|
@@ -1261,7 +1294,7 @@ declare class OslSkeletonModule {
|
|
|
1261
1294
|
|
|
1262
1295
|
declare class FormStructureModule {
|
|
1263
1296
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormStructureModule, never>;
|
|
1264
|
-
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
|
|
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]>;
|
|
1265
1298
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormStructureModule>;
|
|
1266
1299
|
}
|
|
1267
1300
|
|
|
@@ -2130,5 +2163,5 @@ declare namespace validation_util_d {
|
|
|
2130
2163
|
export type { validation_util_d_PasswordOptions as PasswordOptions };
|
|
2131
2164
|
}
|
|
2132
2165
|
|
|
2133
|
-
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, 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 };
|
|
2134
|
-
export type { ButtonSize, ButtonVariant, DateInputType, FlatRow, HttpResponse, InputType, InternalColumn, OslDisplayType, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslPageEvent, OslPdfConfig, OslReportColumn, OslReportPageEvent, OslReportSortEvent, OslSetupSaveEvent, OslSortEvent, PasswordOptions, ReportGenerateType, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, UserLogMeta, elements, myParams, oslListerData };
|
|
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 };
|