@smartbit4all/ng-client 4.0.8 → 4.0.10
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-file-uploader/smart-file-uploader.component.mjs +36 -7
- package/esm2022/lib/smart-form/smartform.component.mjs +2 -2
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +39 -13
- package/esm2022/lib/smart-grid/smart-grid.component.mjs +61 -14
- package/esm2022/lib/smart-grid/smart-grid.module.mjs +19 -3
- package/esm2022/lib/smart-ng-client.module.mjs +7 -3
- package/esm2022/lib/view-context/smart-view-context.module.mjs +33 -3
- package/fesm2022/smartbit4all-ng-client.mjs +173 -29
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-file-uploader/smart-file-uploader.component.d.ts +9 -2
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +6 -2
- package/lib/smart-grid/smart-grid.component.d.ts +11 -2
- package/lib/smart-grid/smart-grid.module.d.ts +5 -1
- package/lib/smart-ng-client.module.d.ts +3 -2
- package/lib/view-context/smart-view-context.module.d.ts +7 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.0.10.tgz +0 -0
- package/smartbit4all-ng-client-4.0.8.tgz +0 -0
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { UiActionDescriptorService, UiActionService } from '../../view-context/projects';
|
|
2
|
+
import { ComponentLibrary, UiActionDescriptorService, UiActionService } from '../../view-context/projects';
|
|
3
3
|
import { SmartComponentFileUploader } from '../smart-component-api-client';
|
|
4
4
|
import { SmartFileUploaderI18n } from '../../smart-form/smartfileuploader/smartfileuploader.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SmartFileUploaderComponent implements OnChanges {
|
|
7
7
|
private uiActionService;
|
|
8
8
|
private uiActionDescriptorService;
|
|
9
|
+
compLib: ComponentLibrary;
|
|
9
10
|
config?: SmartComponentFileUploader;
|
|
11
|
+
componentLibrary: typeof ComponentLibrary;
|
|
10
12
|
i18n?: SmartFileUploaderI18n;
|
|
11
13
|
private uiActionModel?;
|
|
12
|
-
|
|
14
|
+
uploadedFiles: any[];
|
|
15
|
+
fileFormats?: string;
|
|
16
|
+
constructor(uiActionService: UiActionService, uiActionDescriptorService: UiActionDescriptorService, compLib: ComponentLibrary);
|
|
13
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
14
18
|
setUp(): Promise<void>;
|
|
15
19
|
executeUpload(files: any[]): void;
|
|
20
|
+
onSelect(event: any): void;
|
|
21
|
+
onRemove(event: any): void;
|
|
22
|
+
uploadFiles(event: any): void;
|
|
16
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileUploaderComponent, never>;
|
|
17
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartFileUploaderComponent, "smart-file-uploader4sc", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
25
|
}
|
|
@@ -9,8 +9,9 @@ import { ComponentFactoryService } from '../../../component-factory-service/proj
|
|
|
9
9
|
import { UiActionToolbarComponent } from '../../../view-context/smart-ui-action/ui-action-toolbar.component';
|
|
10
10
|
import { SmartFormWidgetType, SmartWidgetHintPositionEnum } from '../../api/model/models';
|
|
11
11
|
import { SmartFormService } from '../../services/smartform.service';
|
|
12
|
-
import { SmartButton, SmartFormWidget, SmartItem } from '../../smartform.form-model';
|
|
12
|
+
import { SmartButton, SmartFormWidget, SmartItem, SmartItems } from '../../smartform.form-model';
|
|
13
13
|
import { SmartFormTextFieldButtonIconPosition, SmartValidator, SophisticatedValueChange, Value } from '../../smartform.model';
|
|
14
|
+
import { ComponentLibrary } from '../../../view-context/utility/componentLibrary';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class SmartWidgetSettings {
|
|
16
17
|
static useUtc: boolean;
|
|
@@ -19,6 +20,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
19
20
|
private service;
|
|
20
21
|
private cfService;
|
|
21
22
|
private sanitizer;
|
|
23
|
+
compLib: ComponentLibrary;
|
|
22
24
|
changeDetector: ChangeDetectorRef;
|
|
23
25
|
private _destroy$;
|
|
24
26
|
hidePassword: boolean;
|
|
@@ -45,8 +47,9 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
45
47
|
SmartWidgetHintPosition: typeof SmartWidgetHintPositionEnum;
|
|
46
48
|
toolbar?: UiActionToolbarComponent;
|
|
47
49
|
childrenWidgetsQL?: QueryList<SmartformwidgetComponent>;
|
|
50
|
+
componentLibrary: typeof ComponentLibrary;
|
|
48
51
|
emptyQuillToolbar: QuillModules;
|
|
49
|
-
constructor(service: SmartFormService, cfService: ComponentFactoryService, sanitizer: DomSanitizer, changeDetector: ChangeDetectorRef);
|
|
52
|
+
constructor(service: SmartFormService, cfService: ComponentFactoryService, sanitizer: DomSanitizer, compLib: ComponentLibrary, changeDetector: ChangeDetectorRef);
|
|
50
53
|
ngOnInit(): void;
|
|
51
54
|
parseYoutubeUrl(url: string): string | false;
|
|
52
55
|
_hasJustChanged: boolean;
|
|
@@ -127,6 +130,7 @@ export declare class SmartformwidgetComponent implements OnInit, OnDestroy, Afte
|
|
|
127
130
|
truncateUri(uri: any): any;
|
|
128
131
|
removeMatrixRow(question: any): void;
|
|
129
132
|
isToolbarPresent(): boolean;
|
|
133
|
+
getOptions(items: SmartItems<any>[]): any[];
|
|
130
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartformwidgetComponent, never>;
|
|
131
135
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartformwidgetComponent, "smartformwidget", never, { "form": { "alias": "form"; "required": false; }; "widgetInstance": { "alias": "widgetInstance"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "onValueChange": { "alias": "onValueChange"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "sophisticatedValueChange": { "alias": "sophisticatedValueChange"; "required": false; }; }, {}, never, never, false, never>;
|
|
132
136
|
}
|
|
@@ -9,18 +9,22 @@ import { ComponentFactoryService } from '../component-factory-service/projects';
|
|
|
9
9
|
import { ExpandableSection } from '../smart-expandable-section/projects';
|
|
10
10
|
import { SmartTable, SmarttableComponent } from '../smart-table/projects';
|
|
11
11
|
import { UiActionDescriptor } from '../view-context/api';
|
|
12
|
-
import { UiActionDescriptorService, UiActionToolbarComponent } from '../view-context/projects';
|
|
12
|
+
import { ComponentLibrary, UiActionDescriptorService, UiActionToolbarComponent } from '../view-context/projects';
|
|
13
13
|
import { GridRow } from './api/grid-api';
|
|
14
14
|
import { SmartGrid, SmartLayoutDef } from './models/model';
|
|
15
15
|
import { SmartGridService } from './smart-grid.service';
|
|
16
|
+
import { MenuItem } from 'primeng/api';
|
|
17
|
+
import { Menu } from 'primeng/menu';
|
|
16
18
|
import * as i0 from "@angular/core";
|
|
17
19
|
export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
18
20
|
private service;
|
|
19
21
|
private cfService;
|
|
20
22
|
private dialog;
|
|
21
23
|
private uiActionDescriptorService;
|
|
24
|
+
compLib: ComponentLibrary;
|
|
22
25
|
private gridMenuIcon?;
|
|
23
26
|
private readonly defaultPageSizeOptions;
|
|
27
|
+
componentLibrary: typeof ComponentLibrary;
|
|
24
28
|
private _destroy$;
|
|
25
29
|
smartGrid?: SmartGrid;
|
|
26
30
|
uuid?: string;
|
|
@@ -46,7 +50,7 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
|
|
|
46
50
|
treeFlattener?: MatTreeFlattener<GridRow, GridRow>;
|
|
47
51
|
treeDataSource?: MatTreeFlatDataSource<GridRow, GridRow>;
|
|
48
52
|
treeChecklistSelection?: SelectionModel<GridRow>;
|
|
49
|
-
constructor(service: SmartGridService, cfService: ComponentFactoryService, dialog: MatDialog, uiActionDescriptorService: UiActionDescriptorService, gridMenuIcon?: string | undefined);
|
|
53
|
+
constructor(service: SmartGridService, cfService: ComponentFactoryService, dialog: MatDialog, uiActionDescriptorService: UiActionDescriptorService, compLib: ComponentLibrary, gridMenuIcon?: string | undefined);
|
|
50
54
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
55
|
ngOnDestroy(): void;
|
|
52
56
|
ngAfterViewInit(): void;
|
|
@@ -88,6 +92,7 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
|
|
|
88
92
|
descendantsPartiallySelected(node: GridRow): boolean;
|
|
89
93
|
private constructHeader;
|
|
90
94
|
onChangePage(event: PageEvent): Promise<void>;
|
|
95
|
+
onPrimeChangePage(event: any): Promise<void>;
|
|
91
96
|
private execute;
|
|
92
97
|
private buttonTranslator;
|
|
93
98
|
layoutDef(): typeof SmartLayoutDef;
|
|
@@ -98,6 +103,10 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
|
|
|
98
103
|
private onSelectAll;
|
|
99
104
|
private onSelectRows;
|
|
100
105
|
editColumns(): void;
|
|
106
|
+
columns: string[];
|
|
107
|
+
menuButtons: MenuItem[];
|
|
108
|
+
menu: Menu;
|
|
109
|
+
onOptionsClick(event: Event, row: GridRow): void;
|
|
101
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridComponent, never>;
|
|
102
111
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridComponent, "smart-grid", never, { "smartGrid": { "alias": "smartGrid"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "dev": { "alias": "dev"; "required": false; }; }, {}, never, never, false, never>;
|
|
103
112
|
}
|
|
@@ -15,8 +15,12 @@ import * as i13 from "../smart-expandable-section/smart-expandable-section.modul
|
|
|
15
15
|
import * as i14 from "@angular/cdk/drag-drop";
|
|
16
16
|
import * as i15 from "@angular/material/select";
|
|
17
17
|
import * as i16 from "../view-context/smart-view-context.module";
|
|
18
|
+
import * as i17 from "primeng/table";
|
|
19
|
+
import * as i18 from "primeng/button";
|
|
20
|
+
import * as i19 from "primeng/menu";
|
|
21
|
+
import * as i20 from "primeng/paginator";
|
|
18
22
|
export declare class SmartGridModule {
|
|
19
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartGridModule, [typeof i1.SmartGridComponent, typeof i2.SmartGridCardComponent, typeof i3.ExpandableGridComponent, typeof i4.TableLayoutDefinerComponent], [typeof i5.BrowserModule, typeof i6.SmartIconModule, typeof i7.SmarttableModule, typeof i8.MatIconModule, typeof i9.MatButtonModule, typeof i10.MatPaginatorModule, typeof i11.MatTreeModule, typeof i12.MatCheckboxModule, typeof i13.SmartExpandableSectionModule, typeof i14.DragDropModule, typeof i15.MatSelectModule, typeof i16.SmartViewContextModule], [typeof i1.SmartGridComponent]>;
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartGridModule, [typeof i1.SmartGridComponent, typeof i2.SmartGridCardComponent, typeof i3.ExpandableGridComponent, typeof i4.TableLayoutDefinerComponent], [typeof i5.BrowserModule, typeof i6.SmartIconModule, typeof i7.SmarttableModule, typeof i8.MatIconModule, typeof i9.MatButtonModule, typeof i10.MatPaginatorModule, typeof i11.MatTreeModule, typeof i12.MatCheckboxModule, typeof i13.SmartExpandableSectionModule, typeof i14.DragDropModule, typeof i15.MatSelectModule, typeof i16.SmartViewContextModule, typeof i17.TableModule, typeof i18.ButtonModule, typeof i19.MenuModule, typeof i20.PaginatorModule], [typeof i1.SmartGridComponent]>;
|
|
21
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartGridModule>;
|
|
22
26
|
}
|
|
@@ -16,9 +16,10 @@ import * as i14 from "./smart-expandable-section/smart-expandable-section.module
|
|
|
16
16
|
import * as i15 from "./smart-component-layout/smart-component-layout.module";
|
|
17
17
|
import * as i16 from "./smart-filter-editor/smart-filter-editor.module";
|
|
18
18
|
import * as i17 from "./shared/shared.module";
|
|
19
|
-
import * as i18 from "
|
|
19
|
+
import * as i18 from "primeng/fileupload";
|
|
20
|
+
import * as i19 from "./smart-tree/smarttree.module";
|
|
20
21
|
export declare class SmartNgClientModule {
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNgClientModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartNgClientModule, [typeof i1.SmartFileUploaderComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.ComponentFactoryServiceModule, typeof i5.SmartViewContextModule, typeof i6.SmartdialogModule, typeof i7.SmartFilterModule, typeof i8.SmartGridModule, typeof i9.SmartIconModule, typeof i10.SmartNavbarModule, typeof i11.SmartSessionModule, typeof i12.SmartTabGroupModule, typeof i13.SmarttableModule, typeof i14.SmartExpandableSectionModule, typeof i15.SmartComponentLayoutModule, typeof i16.SmartFilterEditorModule, typeof i17.SharedModule], [typeof i4.ComponentFactoryServiceModule, typeof i15.SmartComponentLayoutModule, typeof i6.SmartdialogModule, typeof i14.SmartExpandableSectionModule, typeof i7.SmartFilterModule, typeof i8.SmartGridModule, typeof i9.SmartIconModule, typeof i10.SmartNavbarModule, typeof i11.SmartSessionModule, typeof i12.SmartTabGroupModule, typeof i13.SmarttableModule, typeof i5.SmartViewContextModule, typeof i1.SmartFileUploaderComponent, typeof
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartNgClientModule, [typeof i1.SmartFileUploaderComponent], [typeof i2.BrowserModule, typeof i3.MatCommonModule, typeof i4.ComponentFactoryServiceModule, typeof i5.SmartViewContextModule, typeof i6.SmartdialogModule, typeof i7.SmartFilterModule, typeof i8.SmartGridModule, typeof i9.SmartIconModule, typeof i10.SmartNavbarModule, typeof i11.SmartSessionModule, typeof i12.SmartTabGroupModule, typeof i13.SmarttableModule, typeof i14.SmartExpandableSectionModule, typeof i15.SmartComponentLayoutModule, typeof i16.SmartFilterEditorModule, typeof i17.SharedModule, typeof i18.FileUploadModule], [typeof i4.ComponentFactoryServiceModule, typeof i15.SmartComponentLayoutModule, typeof i6.SmartdialogModule, typeof i14.SmartExpandableSectionModule, typeof i7.SmartFilterModule, typeof i8.SmartGridModule, typeof i9.SmartIconModule, typeof i10.SmartNavbarModule, typeof i11.SmartSessionModule, typeof i12.SmartTabGroupModule, typeof i13.SmarttableModule, typeof i5.SmartViewContextModule, typeof i1.SmartFileUploaderComponent, typeof i19.SmarttreeModule, typeof i17.SharedModule]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartNgClientModule>;
|
|
24
25
|
}
|
|
@@ -41,8 +41,14 @@ import * as i39 from "@angular/material/autocomplete";
|
|
|
41
41
|
import * as i40 from "ngx-quill";
|
|
42
42
|
import * as i41 from "@angular/cdk/drag-drop";
|
|
43
43
|
import * as i42 from "@angular/youtube-player";
|
|
44
|
+
import * as i43 from "primeng/inputtext";
|
|
45
|
+
import * as i44 from "primeng/dropdown";
|
|
46
|
+
import * as i45 from "primeng/inputnumber";
|
|
47
|
+
import * as i46 from "primeng/inputtextarea";
|
|
48
|
+
import * as i47 from "primeng/floatlabel";
|
|
49
|
+
import * as i48 from "primeng/toast";
|
|
44
50
|
export declare class SmartViewContextModule {
|
|
45
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextModule, never>;
|
|
46
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartViewContextModule, [typeof i1.MessageDialogComponent, typeof i2.SmartViewContextErrorDialogComponent, typeof i3.SmartViewRedirect, typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i6.UiActionConfirmDialogComponent, typeof i7.UiActionFileUploadDialogComponent, typeof i8.InvalidFieldsSnackBarComponent, typeof i9.SmartformComponent, typeof i10.SmartformwidgetComponent, typeof i11.SmartfileuploaderComponent, typeof i12.TrackCapsDirective, typeof i13.LargeFileSnackBarComponent, typeof i14.SortableWidgetComponent, typeof i15.SmartMonthPickerComponent, typeof i16.HighlightPipe], [typeof i17.CommonModule, typeof i18.HttpClientModule, typeof i19.MatCommonModule, typeof i20.MatButtonModule, typeof i21.ButtonModule, typeof i22.MatIconModule, typeof i23.MatSnackBarModule, typeof i24.SmartIconModule, typeof i25.MatTooltipModule, typeof i26.SharedModule, typeof i27.SharedModule, typeof i28.BrowserModule, typeof i29.MatChipsModule, typeof i30.FormsModule, typeof i30.ReactiveFormsModule, typeof i31.MatFormFieldModule, typeof i32.MatCheckboxModule, typeof i33.MatSelectModule, typeof i34.MatInputModule, typeof i35.MatDatepickerModule, typeof i36.MatMomentDateModule, typeof i37.MatRadioModule, typeof i38.MatSlideToggleModule, typeof i39.MatAutocompleteModule, typeof i40.QuillModule, typeof i41.DragDropModule, typeof i42.YouTubePlayerModule], [typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i9.SmartformComponent, typeof i10.SmartformwidgetComponent, typeof i11.SmartfileuploaderComponent, typeof i16.HighlightPipe]>;
|
|
52
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartViewContextModule, [typeof i1.MessageDialogComponent, typeof i2.SmartViewContextErrorDialogComponent, typeof i3.SmartViewRedirect, typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i6.UiActionConfirmDialogComponent, typeof i7.UiActionFileUploadDialogComponent, typeof i8.InvalidFieldsSnackBarComponent, typeof i9.SmartformComponent, typeof i10.SmartformwidgetComponent, typeof i11.SmartfileuploaderComponent, typeof i12.TrackCapsDirective, typeof i13.LargeFileSnackBarComponent, typeof i14.SortableWidgetComponent, typeof i15.SmartMonthPickerComponent, typeof i16.HighlightPipe], [typeof i17.CommonModule, typeof i18.HttpClientModule, typeof i19.MatCommonModule, typeof i20.MatButtonModule, typeof i21.ButtonModule, typeof i22.MatIconModule, typeof i23.MatSnackBarModule, typeof i24.SmartIconModule, typeof i25.MatTooltipModule, typeof i26.SharedModule, typeof i27.SharedModule, typeof i28.BrowserModule, typeof i29.MatChipsModule, typeof i30.FormsModule, typeof i30.ReactiveFormsModule, typeof i31.MatFormFieldModule, typeof i32.MatCheckboxModule, typeof i33.MatSelectModule, typeof i34.MatInputModule, typeof i35.MatDatepickerModule, typeof i36.MatMomentDateModule, typeof i37.MatRadioModule, typeof i38.MatSlideToggleModule, typeof i39.MatAutocompleteModule, typeof i40.QuillModule, typeof i41.DragDropModule, typeof i42.YouTubePlayerModule, typeof i43.InputTextModule, typeof i44.DropdownModule, typeof i30.FormsModule, typeof i45.InputNumberModule, typeof i46.InputTextareaModule, typeof i47.FloatLabelModule, typeof i17.CommonModule, typeof i48.ToastModule], [typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i9.SmartformComponent, typeof i10.SmartformwidgetComponent, typeof i11.SmartfileuploaderComponent, typeof i16.HighlightPipe]>;
|
|
47
53
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartViewContextModule>;
|
|
48
54
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|