@acorex/platform 20.3.0-next.15 → 20.3.0-next.17
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/core/index.d.ts +1 -0
- package/fesm2022/acorex-platform-layout-builder.mjs +107 -13
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +7 -4
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +132 -298
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/layout/builder/index.d.ts +70 -1
- package/layout/entity/index.d.ts +51 -76
- package/package.json +10 -10
|
@@ -327,6 +327,49 @@ interface SelectionListOptions extends ValueWidgetOptions {
|
|
|
327
327
|
searchable?: boolean;
|
|
328
328
|
placeholder?: string;
|
|
329
329
|
}
|
|
330
|
+
interface AXPListWidgetColumn {
|
|
331
|
+
name: string;
|
|
332
|
+
title?: string;
|
|
333
|
+
visible?: boolean;
|
|
334
|
+
width?: string;
|
|
335
|
+
widget?: {
|
|
336
|
+
type: string;
|
|
337
|
+
path?: string;
|
|
338
|
+
options?: any;
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
interface AXPListWidgetRowCommand {
|
|
342
|
+
title?: string;
|
|
343
|
+
icon?: string;
|
|
344
|
+
color?: string;
|
|
345
|
+
disabled?: boolean | string;
|
|
346
|
+
hidden?: boolean | string;
|
|
347
|
+
command?: any;
|
|
348
|
+
}
|
|
349
|
+
interface AXPListWidgetOptions extends LayoutWidgetOptions {
|
|
350
|
+
dataSource?: any[] | AXDataSource;
|
|
351
|
+
columns?: AXPListWidgetColumn[];
|
|
352
|
+
onRowClick?: (row: any) => void;
|
|
353
|
+
onRowDoubleClick?: (row: any) => void;
|
|
354
|
+
onSelectionChange?: (selectedRows: any[]) => void;
|
|
355
|
+
onRowCommand?: (command: any, selectedRows: any[]) => void;
|
|
356
|
+
paging?: boolean;
|
|
357
|
+
showHeader?: boolean;
|
|
358
|
+
showFooter?: boolean;
|
|
359
|
+
fixHeader?: boolean;
|
|
360
|
+
fixFooter?: boolean;
|
|
361
|
+
fetchDataMode?: 'auto' | 'manual';
|
|
362
|
+
parentField?: string;
|
|
363
|
+
minHeight?: string | number;
|
|
364
|
+
showIndex?: boolean;
|
|
365
|
+
allowSelection?: boolean;
|
|
366
|
+
primaryCommands?: any[];
|
|
367
|
+
secondaryCommands?: AXPListWidgetRowCommand[];
|
|
368
|
+
loading?: {
|
|
369
|
+
enabled?: boolean;
|
|
370
|
+
animation?: boolean;
|
|
371
|
+
};
|
|
372
|
+
}
|
|
330
373
|
interface InheritanceContext {
|
|
331
374
|
mode?: AXPWidgetRenderMode;
|
|
332
375
|
disabled?: boolean | string;
|
|
@@ -430,6 +473,7 @@ interface IWidgetContainerBuilder<TContainer = any> {
|
|
|
430
473
|
dateTimeBox(options?: DateTimeBoxOptions): TContainer;
|
|
431
474
|
toggleSwitch(options?: ToggleSwitchOptions): TContainer;
|
|
432
475
|
colorBox(options?: ColorBoxOptions): TContainer;
|
|
476
|
+
list(delegate: (container: IListWidgetBuilder) => void): TContainer;
|
|
433
477
|
customWidget<T>(type: string, options?: T): TContainer;
|
|
434
478
|
}
|
|
435
479
|
interface IFlexContainerBuilder extends IBaseContainerBuilder<IFlexContainerBuilder>, ILayoutContainerBuilder<IFlexContainerBuilder>, IChildContainerBuilder<IFlexContainerBuilder>, IWidgetContainerBuilder<IFlexContainerBuilder> {
|
|
@@ -519,6 +563,31 @@ interface IDialogBuilder {
|
|
|
519
563
|
setActions(delegate?: (actions: IActionBuilder) => void): IDialogBuilder;
|
|
520
564
|
show(): Promise<AXPDialogRef>;
|
|
521
565
|
}
|
|
566
|
+
interface IListWidgetBuilder extends IBaseContainerBuilder<IListWidgetBuilder>, ILayoutContainerBuilder<IListWidgetBuilder>, IChildContainerBuilder<IListWidgetBuilder>, IWidgetContainerBuilder<IListWidgetBuilder> {
|
|
567
|
+
setOptions(options: AXPListWidgetOptions): IListWidgetBuilder;
|
|
568
|
+
setDataSource(dataSource: any[] | AXDataSource): IListWidgetBuilder;
|
|
569
|
+
setColumns(columns: AXPListWidgetColumn[]): IListWidgetBuilder;
|
|
570
|
+
setOnRowClick(handler: (row: any) => void): IListWidgetBuilder;
|
|
571
|
+
setOnRowDoubleClick(handler: (row: any) => void): IListWidgetBuilder;
|
|
572
|
+
setOnSelectionChange(handler: (selectedRows: any[]) => void): IListWidgetBuilder;
|
|
573
|
+
setOnRowCommand(handler: (command: any, selectedRows: any[]) => void): IListWidgetBuilder;
|
|
574
|
+
setPaging(paging: boolean): IListWidgetBuilder;
|
|
575
|
+
setShowHeader(show: boolean): IListWidgetBuilder;
|
|
576
|
+
setShowFooter(show: boolean): IListWidgetBuilder;
|
|
577
|
+
setFixHeader(fix: boolean): IListWidgetBuilder;
|
|
578
|
+
setFixFooter(fix: boolean): IListWidgetBuilder;
|
|
579
|
+
setFetchDataMode(mode: 'auto' | 'manual'): IListWidgetBuilder;
|
|
580
|
+
setParentField(field: string): IListWidgetBuilder;
|
|
581
|
+
setMinHeight(height: string | number): IListWidgetBuilder;
|
|
582
|
+
setShowIndex(show: boolean): IListWidgetBuilder;
|
|
583
|
+
setAllowSelection(allow: boolean): IListWidgetBuilder;
|
|
584
|
+
setPrimaryCommands(commands: any[]): IListWidgetBuilder;
|
|
585
|
+
setSecondaryCommands(commands: AXPListWidgetRowCommand[]): IListWidgetBuilder;
|
|
586
|
+
setLoading(loading: {
|
|
587
|
+
enabled?: boolean;
|
|
588
|
+
animation?: boolean;
|
|
589
|
+
}): IListWidgetBuilder;
|
|
590
|
+
}
|
|
522
591
|
|
|
523
592
|
declare class AXPLayoutBuilderService {
|
|
524
593
|
private popupService;
|
|
@@ -634,4 +703,4 @@ declare class AXPDialogRendererComponent extends AXBasePageComponent implements
|
|
|
634
703
|
}
|
|
635
704
|
|
|
636
705
|
export { AXPDialogRendererComponent, AXPLayoutBuilderService, AXPLayoutConversionService, AXPLayoutRendererComponent, LayoutBuilderModule };
|
|
637
|
-
export type { AXPDialogContainerOptions, AXPFieldsetContainerOptions, AXPFlexContainerOptions, AXPFormFieldOptions, AXPGridContainerOptions, AXPPageContainerOptions, AXPPanelContainerOptions, AXPTabsetContainerOptions, AXPWidgetConfiguration, ColorBoxOptions, DateTimeBoxOptions, DialogBuilderState, DialogRendererConfig, DialogRendererResult, FormFieldBuilderState, IActionBuilder, IBaseContainerBuilder, IChildContainerBuilder, IDialogBuilder, IFieldsetContainerBuilder, IFlexContainerBuilder, IFormFieldBuilder, IGridContainerBuilder, ILayoutBuilder, ILayoutContainerBuilder, IPageContainerBuilder, IPanelContainerBuilder, ITabsetContainerBuilder, IWidgetBuilder, IWidgetContainerBuilder, InheritanceContext, InheritedProperties, LargeTextBoxOptions, LayoutBuilderState, LayoutWidgetOptions, LookupBoxOptions, NumberBoxOptions, PasswordBoxOptions, RichTextOptions, SelectBoxOptions, SelectionListOptions, TextBoxOptions, ToggleSwitchOptions, ValueWidgetOptions, WidgetBuilderState };
|
|
706
|
+
export type { AXPDialogContainerOptions, AXPFieldsetContainerOptions, AXPFlexContainerOptions, AXPFormFieldOptions, AXPGridContainerOptions, AXPListWidgetColumn, AXPListWidgetOptions, AXPListWidgetRowCommand, AXPPageContainerOptions, AXPPanelContainerOptions, AXPTabsetContainerOptions, AXPWidgetConfiguration, ColorBoxOptions, DateTimeBoxOptions, DialogBuilderState, DialogRendererConfig, DialogRendererResult, FormFieldBuilderState, IActionBuilder, IBaseContainerBuilder, IChildContainerBuilder, IDialogBuilder, IFieldsetContainerBuilder, IFlexContainerBuilder, IFormFieldBuilder, IGridContainerBuilder, ILayoutBuilder, ILayoutContainerBuilder, IListWidgetBuilder, IPageContainerBuilder, IPanelContainerBuilder, ITabsetContainerBuilder, IWidgetBuilder, IWidgetContainerBuilder, InheritanceContext, InheritedProperties, LargeTextBoxOptions, LayoutBuilderState, LayoutWidgetOptions, LookupBoxOptions, NumberBoxOptions, PasswordBoxOptions, RichTextOptions, SelectBoxOptions, SelectionListOptions, TextBoxOptions, ToggleSwitchOptions, ValueWidgetOptions, WidgetBuilderState };
|
package/layout/entity/index.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ import { IActionBuilder, IFieldBuilder, AXPDialogRef, AXPWidgetPropertiesChanged
|
|
|
19
19
|
import { AXPListWidgetComponentOptions } from '@acorex/platform/layout/widgets';
|
|
20
20
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
21
21
|
import * as _acorex_platform_themes_shared from '@acorex/platform/themes/shared';
|
|
22
|
-
import { AXTextBoxComponent } from '@acorex/components/text-box';
|
|
23
22
|
import { AXFormatService } from '@acorex/core/format';
|
|
24
23
|
import { AXTagBoxComponent } from '@acorex/components/tag-box';
|
|
24
|
+
import { AXTextBoxComponent } from '@acorex/components/text-box';
|
|
25
25
|
|
|
26
26
|
interface AXPOpenEntityDetailsCommandInput {
|
|
27
27
|
entity: string;
|
|
@@ -1289,6 +1289,56 @@ declare class AXPEntityReferenceWidgetDesignerComponent extends AXPLayoutBaseWid
|
|
|
1289
1289
|
|
|
1290
1290
|
declare const AXPEntityReferenceWidget: AXPWidgetConfig;
|
|
1291
1291
|
|
|
1292
|
+
declare class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1293
|
+
#private;
|
|
1294
|
+
protected editorPath: string;
|
|
1295
|
+
protected entity: _angular_core.Signal<string>;
|
|
1296
|
+
protected textField: _angular_core.Signal<string>;
|
|
1297
|
+
protected valueField: _angular_core.Signal<string>;
|
|
1298
|
+
protected customFilter: _angular_core.Signal<AXDataSourceFilterOption>;
|
|
1299
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1300
|
+
protected lookupNode: _angular_core.WritableSignal<AXPWidgetNode>;
|
|
1301
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupFilterWidgetEditComponent, never>;
|
|
1302
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupFilterWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
declare const AXPLookupFilterWidget: AXPWidgetConfig;
|
|
1306
|
+
declare module '@acorex/platform/layout/widget-core' {
|
|
1307
|
+
interface AXPWidgetTypesMap {
|
|
1308
|
+
lookupFilter: 'lookup-filter';
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
declare class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent<any> {
|
|
1313
|
+
protected readonly formatService: AXFormatService;
|
|
1314
|
+
protected readonly entityResolver: AXPEntityResolver;
|
|
1315
|
+
protected entity: _angular_core.Signal<string>;
|
|
1316
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1317
|
+
protected valueField: _angular_core.Signal<string>;
|
|
1318
|
+
protected textField: _angular_core.Signal<string>;
|
|
1319
|
+
protected badgeClass: _angular_core.Signal<string>;
|
|
1320
|
+
protected displayField: _angular_core.Signal<string>;
|
|
1321
|
+
protected loading: _angular_core.WritableSignal<boolean>;
|
|
1322
|
+
private entityDef;
|
|
1323
|
+
protected displayItems: _angular_core.WritableSignal<any[]>;
|
|
1324
|
+
private efEntity;
|
|
1325
|
+
private efDisplay;
|
|
1326
|
+
private extractItem;
|
|
1327
|
+
private get __class();
|
|
1328
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupWidgetViewComponent, never>;
|
|
1329
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupWidgetViewComponent, "axp-lookup-widget-view", never, {}, {}, never, never, true, never>;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
type AXPLookupWidgetLookType = 'select' | 'lookup';
|
|
1333
|
+
interface AXPLookupWidgetOptions {
|
|
1334
|
+
disabled?: boolean | AXPExpression;
|
|
1335
|
+
readonly?: boolean | AXPExpression;
|
|
1336
|
+
placeholder?: string;
|
|
1337
|
+
expose?: string | string[];
|
|
1338
|
+
look?: AXPLookupWidgetLookType;
|
|
1339
|
+
allowClear?: boolean;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1292
1342
|
interface AXPEntityDataSelectorOptions {
|
|
1293
1343
|
entity: AXPEntity;
|
|
1294
1344
|
title: string;
|
|
@@ -1352,81 +1402,6 @@ declare class AXPEntityDataSelectorService {
|
|
|
1352
1402
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityDataSelectorService>;
|
|
1353
1403
|
}
|
|
1354
1404
|
|
|
1355
|
-
declare class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1356
|
-
protected readonly injector: Injector;
|
|
1357
|
-
protected readonly entityResolver: AXPEntityResolver;
|
|
1358
|
-
protected readonly formatService: AXFormatService;
|
|
1359
|
-
protected readonly popupService: AXPopupService;
|
|
1360
|
-
protected readonly entityDataSelectorService: AXPEntityDataSelectorService;
|
|
1361
|
-
private readonly destroyRef;
|
|
1362
|
-
private readonly translateService;
|
|
1363
|
-
protected expose: _angular_core.Signal<string | any[] | undefined>;
|
|
1364
|
-
protected entity: _angular_core.Signal<string>;
|
|
1365
|
-
protected textField: _angular_core.Signal<string>;
|
|
1366
|
-
protected conditions?: AXPQueryFilter[];
|
|
1367
|
-
protected filter: AXDataSourceFilterOption | null;
|
|
1368
|
-
private entityDef;
|
|
1369
|
-
protected searchTerm: _angular_core.WritableSignal<string | null>;
|
|
1370
|
-
protected displayText: _angular_core.WritableSignal<string>;
|
|
1371
|
-
protected selectedItem: _angular_core.WritableSignal<any>;
|
|
1372
|
-
textbox: AXTextBoxComponent;
|
|
1373
|
-
protected isLoading: _angular_core.WritableSignal<boolean>;
|
|
1374
|
-
protected isOpen: _angular_core.WritableSignal<boolean>;
|
|
1375
|
-
protected placeholder: _angular_core.Signal<string>;
|
|
1376
|
-
private efDisplay;
|
|
1377
|
-
private efEntity;
|
|
1378
|
-
ngOnInit(): void;
|
|
1379
|
-
private findByValue;
|
|
1380
|
-
protected handleOnClick(e: AXClickEvent): void;
|
|
1381
|
-
private showSelector;
|
|
1382
|
-
protected handleValueChange(e: AXValueChangedEvent): void;
|
|
1383
|
-
protected handleOnBlur(e: AXFocusEvent): void;
|
|
1384
|
-
protected handleKeyDown(e: AXHtmlEvent): Promise<void>;
|
|
1385
|
-
private setItems;
|
|
1386
|
-
protected handleClearClick(): void;
|
|
1387
|
-
private searchByValue;
|
|
1388
|
-
clear(): void;
|
|
1389
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupFilterWidgetEditComponent, never>;
|
|
1390
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupFilterWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
declare const AXPLookupFilterWidget: AXPWidgetConfig;
|
|
1394
|
-
declare module '@acorex/platform/layout/widget-core' {
|
|
1395
|
-
interface AXPWidgetTypesMap {
|
|
1396
|
-
lookupFilter: 'lookup-filter';
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
declare class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent<any> {
|
|
1401
|
-
protected readonly formatService: AXFormatService;
|
|
1402
|
-
protected readonly entityResolver: AXPEntityResolver;
|
|
1403
|
-
protected entity: _angular_core.Signal<string>;
|
|
1404
|
-
protected multiple: _angular_core.Signal<boolean>;
|
|
1405
|
-
protected valueField: _angular_core.Signal<string>;
|
|
1406
|
-
protected textField: _angular_core.Signal<string>;
|
|
1407
|
-
protected badgeClass: _angular_core.Signal<string>;
|
|
1408
|
-
protected displayField: _angular_core.Signal<string>;
|
|
1409
|
-
protected loading: _angular_core.WritableSignal<boolean>;
|
|
1410
|
-
private entityDef;
|
|
1411
|
-
protected displayItems: _angular_core.WritableSignal<any[]>;
|
|
1412
|
-
private efEntity;
|
|
1413
|
-
private efDisplay;
|
|
1414
|
-
private extractItem;
|
|
1415
|
-
private get __class();
|
|
1416
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupWidgetViewComponent, never>;
|
|
1417
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupWidgetViewComponent, "axp-lookup-widget-view", never, {}, {}, never, never, true, never>;
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
type AXPLookupWidgetLookType = 'select' | 'lookup';
|
|
1421
|
-
interface AXPLookupWidgetOptions {
|
|
1422
|
-
disabled?: boolean | AXPExpression;
|
|
1423
|
-
readonly?: boolean | AXPExpression;
|
|
1424
|
-
placeholder?: string;
|
|
1425
|
-
expose?: string | string[];
|
|
1426
|
-
look?: AXPLookupWidgetLookType;
|
|
1427
|
-
allowClear?: boolean;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
1405
|
declare class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1431
1406
|
#private;
|
|
1432
1407
|
protected readonly injector: Injector;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/platform",
|
|
3
|
-
"version": "20.3.0-next.
|
|
3
|
+
"version": "20.3.0-next.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/cdk": "^19.0.0 || ^20.0.0 || ^
|
|
6
|
-
"@acorex/core": "^19.0.0 || ^20.0.0 || ^
|
|
7
|
-
"@acorex/charts": "^19.0.0 || ^20.0.0 || ^
|
|
8
|
-
"@acorex/styles": "^19.0.0 || ^20.0.0 || ^
|
|
9
|
-
"@acorex/components": "^19.0.0 || ^20.0.0 || ^
|
|
5
|
+
"@acorex/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
6
|
+
"@acorex/core": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
7
|
+
"@acorex/charts": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
8
|
+
"@acorex/styles": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
9
|
+
"@acorex/components": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
10
10
|
"@angular/animations": "^20.0.0",
|
|
11
11
|
"@ngrx/signals": "^20.0.0",
|
|
12
12
|
"dom-to-image": "^2.6.0",
|
|
@@ -26,10 +26,6 @@
|
|
|
26
26
|
"types": "./index.d.ts",
|
|
27
27
|
"default": "./fesm2022/acorex-platform.mjs"
|
|
28
28
|
},
|
|
29
|
-
"./auth": {
|
|
30
|
-
"types": "./auth/index.d.ts",
|
|
31
|
-
"default": "./fesm2022/acorex-platform-auth.mjs"
|
|
32
|
-
},
|
|
33
29
|
"./common": {
|
|
34
30
|
"types": "./common/index.d.ts",
|
|
35
31
|
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
@@ -38,6 +34,10 @@
|
|
|
38
34
|
"types": "./core/index.d.ts",
|
|
39
35
|
"default": "./fesm2022/acorex-platform-core.mjs"
|
|
40
36
|
},
|
|
37
|
+
"./auth": {
|
|
38
|
+
"types": "./auth/index.d.ts",
|
|
39
|
+
"default": "./fesm2022/acorex-platform-auth.mjs"
|
|
40
|
+
},
|
|
41
41
|
"./domain": {
|
|
42
42
|
"types": "./domain/index.d.ts",
|
|
43
43
|
"default": "./fesm2022/acorex-platform-domain.mjs"
|