@acorex/platform 20.3.0-next.15 → 20.3.0-next.16
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.
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/platform",
|
|
3
|
-
"version": "20.3.0-next.
|
|
3
|
+
"version": "20.3.0-next.16",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@acorex/cdk": "^19.0.0 || ^20.0.0 || ^20.0.0-next.0 || ^20.1.0-next.0 || ^20.2.0-next.0",
|
|
6
6
|
"@acorex/core": "^19.0.0 || ^20.0.0 || ^20.0.0-next.0 || ^20.1.0-next.0 || ^20.2.0-next.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"
|
|
@@ -54,6 +50,10 @@
|
|
|
54
50
|
"types": "./workflow/index.d.ts",
|
|
55
51
|
"default": "./fesm2022/acorex-platform-workflow.mjs"
|
|
56
52
|
},
|
|
53
|
+
"./auth": {
|
|
54
|
+
"types": "./auth/index.d.ts",
|
|
55
|
+
"default": "./fesm2022/acorex-platform-auth.mjs"
|
|
56
|
+
},
|
|
57
57
|
"./layout/builder": {
|
|
58
58
|
"types": "./layout/builder/index.d.ts",
|
|
59
59
|
"default": "./fesm2022/acorex-platform-layout-builder.mjs"
|