@smartbit4all/ng-client 6.0.53 → 6.0.55
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/esm2022/lib/smart-client/smart-component-api-client.mjs +4 -1
- package/esm2022/lib/smart-component-layout/smart-component-layout-utility.mjs +22 -1
- package/esm2022/lib/smart-component-layout/smart-component-layout.component.mjs +25 -23
- package/esm2022/lib/smart-component-layout/smart-component-layout.module.mjs +5 -1
- package/esm2022/lib/smart-filter-editor/project.mjs +2 -1
- package/esm2022/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +1 -1
- package/esm2022/lib/smart-filter-editor/smart-filter-editor.module.mjs +8 -3
- package/esm2022/lib/smart-filter-editor/smart-filter-widget/smart-filter-widget.component.mjs +58 -0
- package/esm2022/lib/smart-table/tables/material-table/material-table.component.mjs +7 -9
- package/esm2022/lib/smart-table/tables/mobile-table/mobile-table.component.mjs +3 -3
- package/esm2022/lib/smart-table/tables/table.mjs +2 -29
- package/fesm2022/smartbit4all-ng-client.mjs +868 -813
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-component-layout/smart-component-layout-utility.d.ts +6 -0
- package/lib/smart-component-layout/smart-component-layout.component.d.ts +6 -4
- package/lib/smart-component-layout/smart-component-layout.module.d.ts +4 -3
- package/lib/smart-filter-editor/project.d.ts +1 -0
- package/lib/smart-filter-editor/smart-filter-editor.module.d.ts +9 -8
- package/lib/smart-filter-editor/smart-filter-widget/smart-filter-widget.component.d.ts +23 -0
- package/lib/smart-table/tables/table.d.ts +1 -3
- package/package.json +1 -1
- package/smartbit4all-ng-client-6.0.55.tgz +0 -0
- package/smartbit4all-ng-client-6.0.53.tgz +0 -0
|
@@ -6,6 +6,7 @@ import { SmarttreeGenericService } from '../smart-tree/projects';
|
|
|
6
6
|
import { Style, UiActionToolbarComponent } from '../view-context/projects';
|
|
7
7
|
import { SmartComponentLayoutComponent } from './smart-component-layout.component';
|
|
8
8
|
import { SmartDiagramComponent } from '../smart-diagram/projects';
|
|
9
|
+
import type { SmartFilterEditorContentComponent } from '../smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component';
|
|
9
10
|
export interface EmbeddedSlotInfo {
|
|
10
11
|
containerId: string;
|
|
11
12
|
vcRef: ViewContainerRef;
|
|
@@ -15,6 +16,11 @@ export declare class SmartComponentLayoutUtility {
|
|
|
15
16
|
static getGrids(comp: SmartComponentLayoutComponent): SmartGridComponent[];
|
|
16
17
|
static getMaps(comp: SmartComponentLayoutComponent): Array<SmartMapComponent>;
|
|
17
18
|
static getDiagrams(comp: SmartComponentLayoutComponent): Array<SmartDiagramComponent>;
|
|
19
|
+
/**
|
|
20
|
+
* The editors of the filter widgets in the layout tree. A widget whose builder model has not
|
|
21
|
+
* arrived yet has no editor and is left out until it does.
|
|
22
|
+
*/
|
|
23
|
+
static getFilters(comp: SmartComponentLayoutComponent): Array<SmartFilterEditorContentComponent>;
|
|
18
24
|
static getTrees(comp: SmartComponentLayoutComponent): SmarttreeGenericService[];
|
|
19
25
|
static getToolbars(comp: SmartComponentLayoutComponent): UiActionToolbarComponent[];
|
|
20
26
|
static clearFormHandlers(comp: SmartComponentLayoutComponent): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewChecked, AfterViewInit, ApplicationRef, ElementRef, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ComponentType, SmartComponentLayoutDefinition, ToolbarProperties } from './api';
|
|
3
3
|
import { SmartForm, SmartFormWidgetDirection, SmartformComponent, SmartformLayoutDefinitionService } from '../smart-form/projects';
|
|
4
|
-
import {
|
|
4
|
+
import type { SmartFilterWidgetComponent } from '../smart-filter-editor/smart-filter-widget/smart-filter-widget.component';
|
|
5
5
|
import { SmarttreeGenericService } from '../smart-tree/projects';
|
|
6
6
|
import { ExpandableSection } from '../smart-expandable-section/projects';
|
|
7
7
|
import { ExpandableSectionComponent } from '../smart-expandable-section/expandable-section.component';
|
|
@@ -44,9 +44,9 @@ export declare class SmartComponentLayoutComponent implements AfterViewInit, Aft
|
|
|
44
44
|
smartDiagramList: QueryList<SmartDiagramComponent>;
|
|
45
45
|
smartDiagramComponent?: SmartDiagramComponent;
|
|
46
46
|
smartDiagramId?: string;
|
|
47
|
-
smartFilterList: QueryList<
|
|
48
|
-
smartFilterComponent?:
|
|
49
|
-
|
|
47
|
+
smartFilterList: QueryList<SmartFilterWidgetComponent>;
|
|
48
|
+
smartFilterComponent?: SmartFilterWidgetComponent;
|
|
49
|
+
filterId?: string;
|
|
50
50
|
toolbarList: QueryList<UiActionToolbarComponent>;
|
|
51
51
|
toolbar?: UiActionToolbarComponent;
|
|
52
52
|
toolbarId?: string;
|
|
@@ -79,9 +79,11 @@ export declare class SmartComponentLayoutComponent implements AfterViewInit, Aft
|
|
|
79
79
|
construcDiagram(): void;
|
|
80
80
|
setMapComponent(comp: SmartMapComponent): void;
|
|
81
81
|
setDiagramComponent(comp: SmartDiagramComponent): void;
|
|
82
|
+
setFilterComponent(comp: SmartFilterWidgetComponent): void;
|
|
82
83
|
bindMap(): void;
|
|
83
84
|
bindDiagram(): void;
|
|
84
85
|
setToolbarComponent(comp: UiActionToolbarComponent): void;
|
|
86
|
+
constructFilter(): void;
|
|
85
87
|
bindFilter(): void;
|
|
86
88
|
constructTree(): void;
|
|
87
89
|
constructToolbar(): void;
|
|
@@ -8,10 +8,11 @@ import * as i6 from "../smart-tree/smarttree.module";
|
|
|
8
8
|
import * as i7 from "../view-context/smart-view-context.module";
|
|
9
9
|
import * as i8 from "../smart-map/smart-map.module";
|
|
10
10
|
import * as i9 from "../smart-diagram/component/smart-diagram.module";
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "primeng/
|
|
11
|
+
import * as i10 from "../smart-filter-editor/smart-filter-editor.module";
|
|
12
|
+
import * as i11 from "primeng/inputgroup";
|
|
13
|
+
import * as i12 from "primeng/inputgroupaddon";
|
|
13
14
|
export declare class SmartComponentLayoutModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartComponentLayoutModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartComponentLayoutModule, [typeof i1.SmartComponentLayoutComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.SmartGridModule, typeof i5.SmartExpandableSectionModule, typeof i6.SmarttreeModule, typeof i7.SmartViewContextModule, typeof i8.SmartMapModule, typeof i9.SmartDiagramModule, typeof i10.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartComponentLayoutModule, [typeof i1.SmartComponentLayoutComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.SmartGridModule, typeof i5.SmartExpandableSectionModule, typeof i6.SmarttreeModule, typeof i7.SmartViewContextModule, typeof i8.SmartMapModule, typeof i9.SmartDiagramModule, typeof i10.SmartFilterEditorModule, typeof i11.InputGroupModule, typeof i12.InputGroupAddonModule], [typeof i1.SmartComponentLayoutComponent]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartComponentLayoutModule>;
|
|
17
18
|
}
|
|
@@ -7,5 +7,6 @@ export * from './smart-filter-editor-content/components/advanced/expression-edit
|
|
|
7
7
|
export * from './smart-filter-editor-content/components/advanced/advanced-smart-filter-expression-item/advanced-smart-filter-expression-item.component';
|
|
8
8
|
export * from './smart-filter-editor-content/components/smart-filter-expression-items/smart-filter-expression-items.component';
|
|
9
9
|
export * from './smart-filter-params/components/smart-filter-param/smart-filter-param.component';
|
|
10
|
+
export * from './smart-filter-widget/smart-filter-widget.component';
|
|
10
11
|
export * from './smart-filter-editor.module';
|
|
11
12
|
export * from './filter-utils';
|
|
@@ -7,15 +7,16 @@ import * as i5 from "./smart-filter-editor-content/components/smart-filter-expre
|
|
|
7
7
|
import * as i6 from "./smart-filter-editor-content/components/advanced/advanced-smart-filter-expression-item/advanced-smart-filter-expression-item.component";
|
|
8
8
|
import * as i7 from "./smart-filter-editor-content/components/advanced/advanced-relation-button/advanced-relation-button.component";
|
|
9
9
|
import * as i8 from "./smart-filter-editor-content/components/advanced/expression-editor-dialog/expression-editor-dialog.component";
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "../smart-
|
|
13
|
-
import * as i12 from "../
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "../
|
|
10
|
+
import * as i9 from "./smart-filter-widget/smart-filter-widget.component";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "../smart-icon/smart-icon.module";
|
|
13
|
+
import * as i12 from "../smart-expandable-section/smart-expandable-section.module";
|
|
14
|
+
import * as i13 from "../view-context/smart-view-context.module";
|
|
15
|
+
import * as i14 from "@angular/material/button";
|
|
16
|
+
import * as i15 from "../smart-filter/smart-filter.module";
|
|
17
|
+
import * as i16 from "../shared/shared.module";
|
|
17
18
|
export declare class SmartFilterEditorModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFilterEditorModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartFilterEditorModule, [typeof i1.SmartFilterParamsComponent, typeof i2.SmartFilterParamComponent, typeof i3.SmartFilterEditorContentComponent, typeof i4.SmartFilterExpressionItemsComponent, typeof i5.SmartFilterExpressionItemComponent, typeof i6.AdvancedSmartFilterExpressionItemComponent, typeof i7.AdvancedRelationButtonComponent, typeof i8.ExpressionEditorDialogComponent], [typeof
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartFilterEditorModule, [typeof i1.SmartFilterParamsComponent, typeof i2.SmartFilterParamComponent, typeof i3.SmartFilterEditorContentComponent, typeof i4.SmartFilterExpressionItemsComponent, typeof i5.SmartFilterExpressionItemComponent, typeof i6.AdvancedSmartFilterExpressionItemComponent, typeof i7.AdvancedRelationButtonComponent, typeof i8.ExpressionEditorDialogComponent, typeof i9.SmartFilterWidgetComponent], [typeof i10.CommonModule, typeof i11.SmartIconModule, typeof i12.SmartExpandableSectionModule, typeof i13.SmartViewContextModule, typeof i14.MatButtonModule, typeof i15.SmartFilterModule, typeof i16.SharedModule], [typeof i1.SmartFilterParamsComponent, typeof i2.SmartFilterParamComponent, typeof i3.SmartFilterEditorContentComponent, typeof i4.SmartFilterExpressionItemsComponent, typeof i5.SmartFilterExpressionItemComponent, typeof i6.AdvancedSmartFilterExpressionItemComponent, typeof i7.AdvancedRelationButtonComponent, typeof i8.ExpressionEditorDialogComponent, typeof i9.SmartFilterWidgetComponent]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartFilterEditorModule>;
|
|
21
22
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { SmartFilterEditorService } from '../smart-filter-editor.service';
|
|
3
|
+
import type { SmartFilterEditorContentComponent } from '../smart-filter-editor-content/smart-filter-editor-content.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* A filter builder placed in a component layout. The identifier is the builder's filterId in the
|
|
7
|
+
* view: the widget loads the builder by it, and the client above the layout finds the widget by it
|
|
8
|
+
* for push updates and toolbar collection. Each widget owns its own SmartFilterEditorService.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SmartFilterWidgetComponent implements OnChanges, OnDestroy {
|
|
11
|
+
service: SmartFilterEditorService;
|
|
12
|
+
private _destroy$;
|
|
13
|
+
uuid?: string;
|
|
14
|
+
identifier: string;
|
|
15
|
+
parent?: any;
|
|
16
|
+
contentComponent?: SmartFilterEditorContentComponent;
|
|
17
|
+
set contentComponentSetter(comp: SmartFilterEditorContentComponent | undefined);
|
|
18
|
+
constructor(service: SmartFilterEditorService);
|
|
19
|
+
ngOnChanges(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFilterWidgetComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartFilterWidgetComponent, "smart-filter-widget", never, { "uuid": { "alias": "uuid"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -89,10 +89,8 @@ export declare class Table implements OnInit, OnDestroy {
|
|
|
89
89
|
private rowMenuActionModelCache;
|
|
90
90
|
getRowMenuActionModel(element: any): any;
|
|
91
91
|
private rowMenuActionModelArrayCache;
|
|
92
|
-
|
|
92
|
+
getMenuActions(element: any): any[];
|
|
93
93
|
shouldShowMenuButton(row: any): boolean;
|
|
94
|
-
getMenuButtons(row: any, button: SmartTableButton): SmartTableButton[];
|
|
95
|
-
getMenuItemButtonsPropertyName(element: any, button: SmartTableButton): any[];
|
|
96
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
97
95
|
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "ng-component", never, { "smartTable": { "alias": "smartTable"; "required": false; }; }, {}, never, never, false, never>;
|
|
98
96
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartbit4all/ng-client",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.55",
|
|
4
4
|
"description": "Angular client library for the smartbit4all platform — a server-driven UI framework that renders views, pages, forms, grids, trees and dialogs from backend (ViewApi/PageApi) definitions. Provides reactive view-context state management, dynamic component layouts and OpenAPI-generated BFF clients.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
Binary file
|
|
Binary file
|