@verisoft/ui-govcz 20.1.3 → 20.2.0
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/assets/icons/components/arrow-counterclockwise.svg +4 -0
- package/assets/icons/components/file.svg +4 -0
- package/assets/icons/components/folder.svg +3 -0
- package/assets/icons/components/map-empty.svg +3 -0
- package/fesm2022/verisoft-ui-govcz.mjs +204 -74
- package/fesm2022/verisoft-ui-govcz.mjs.map +1 -1
- package/index.d.ts +53 -35
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _verisoft_ui_core from '@verisoft/ui-core';
|
|
2
|
-
import { BreadcrumbCoreComponent, ButtonCore, IconLibraryType, IconPositionType, FieldSizeType, ControlSeverityType, GovButtonTypeType, BaseFormInputComponent, CalendarCore, SlotPositionType, FieldType, CheckboxCore, UnsubscribeComponent, ConfirmDialogCore,
|
|
2
|
+
import { BreadcrumbCoreComponent, ButtonCore, IconLibraryType, IconPositionType, FieldSizeType, ControlSeverityType, GovButtonTypeType, BaseFormInputComponent, CalendarCore, SlotPositionType, FieldType, CheckboxCore, UnsubscribeComponent, ConfirmDialogCore, DialogData, DropdownCore, DropdownButtonCore, MenuItem, TableCore, ColumnProvider, ColumnDefinition, RowModel, ColumnModel, GenericFieldDefinition, GenericFieldTypeType, FilterCore, FieldSize, ScreenSizeService, DialogService, TableDatasourceDirective, TableSelectionModeType, TableColumnDirective, FormFieldCore, FieldTypeType, HeaderCore, SideMenuService, IconsComponent, InputGroupCore, InputGroupItem, LoaderCore, MultiselectCore, NumberInputCore, PageHeaderCore, PasswordCore, PasswordStrength, RadiobuttonCore, RadioButtonItem, SectionCore, ActionButton, ActionButtonGroupCore, ExtendedComponent, GenericFieldCore, GenericFieldType, SideMenuCore, SideMenuProviderService, SideMenuModuleConfig, SnackbarCore, StepperCore, StepperItem, LayoutTypeType, SwitchCore, TabViewItemCore, TagCore, TagVariant, TextareaCore, TextfieldCore, TooltipCore, CommonIcons } from '@verisoft/ui-core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, OnInit,
|
|
4
|
+
import { EventEmitter, OnInit, OnChanges, OnDestroy, ElementRef, ChangeDetectorRef, SimpleChanges, AfterViewInit, QueryList, TemplateRef, AfterContentInit, InjectionToken, PipeTransform, ComponentFactoryResolver, Type, ViewContainerRef, Injector, ComponentRef, ModuleWithProviders } from '@angular/core';
|
|
5
5
|
import { Params, Route } from '@angular/router';
|
|
6
6
|
import { GovButtonCustomEvent, ButtonEvent, FormSelectEvent, FormCheckboxEvent, GovFormMultiSelectItem } from '@gov-design-system-ce/components';
|
|
7
7
|
import { ControlValueAccessor, NgControl, FormControl, ValidationErrors, ValidatorFn, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
@@ -77,11 +77,11 @@ declare class CheckboxComponent extends BaseFormInputComponent implements Contro
|
|
|
77
77
|
declare class ConfirmDialogComponent extends UnsubscribeComponent implements OnInit, ConfirmDialogCore {
|
|
78
78
|
private readonly dialogService;
|
|
79
79
|
private readonly cdr;
|
|
80
|
-
constructor(dialogService: DialogService, cdr: ChangeDetectorRef);
|
|
81
80
|
visible: boolean;
|
|
82
81
|
protected closable: boolean;
|
|
83
82
|
data: DialogData;
|
|
84
83
|
ngOnInit(): void;
|
|
84
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
85
85
|
protected dialogClick(confirm: boolean): void;
|
|
86
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
87
87
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "v-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -180,7 +180,7 @@ declare class ErrorComponent {
|
|
|
180
180
|
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "v-validation-message", never, { "ngControl": { "alias": "ngControl"; "required": true; }; "errorSlot": { "alias": "errorSlot"; "required": false; }; "messageSlot": { "alias": "messageSlot"; "required": false; }; }, {}, never, never, true, never>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T> {
|
|
183
|
+
declare class TableComponent<T> implements OnChanges, AfterViewInit, OnDestroy, TableCore<T> {
|
|
184
184
|
viewColumns: QueryList<ColumnProvider<T>>;
|
|
185
185
|
rowDetailTemplate: TemplateRef<{
|
|
186
186
|
$implicit: T;
|
|
@@ -218,6 +218,7 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
218
218
|
download: EventEmitter<RowModel<T>[]>;
|
|
219
219
|
delete: EventEmitter<RowModel<T>[]>;
|
|
220
220
|
save: EventEmitter<RowModel<T>[]>;
|
|
221
|
+
tableRef: ElementRef<HTMLTableElement>;
|
|
221
222
|
private readonly cdRef;
|
|
222
223
|
private readonly router;
|
|
223
224
|
private readonly route;
|
|
@@ -230,13 +231,18 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
230
231
|
}[];
|
|
231
232
|
allSelected: boolean;
|
|
232
233
|
icons: _verisoft_ui_core.CommonIcons;
|
|
234
|
+
focusedIndex: number;
|
|
235
|
+
private isMouseDown;
|
|
236
|
+
private dragActive;
|
|
237
|
+
private dragStartIndex;
|
|
238
|
+
private initialSelectionSet;
|
|
233
239
|
get govPageSize(): string;
|
|
234
240
|
get tableRowView(): RowModel<T>[];
|
|
235
241
|
get selected(): RowModel<T>[];
|
|
236
242
|
get selectedCount(): number;
|
|
237
|
-
constructor();
|
|
238
243
|
ngOnChanges(changes: SimpleChanges): void;
|
|
239
244
|
ngAfterViewInit(): void;
|
|
245
|
+
ngOnDestroy(): void;
|
|
240
246
|
protected sortColumn(column: ColumnModel<T>): void;
|
|
241
247
|
protected changePage(event: {
|
|
242
248
|
detail: {
|
|
@@ -246,7 +252,12 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
246
252
|
};
|
|
247
253
|
}): void;
|
|
248
254
|
protected changePageSize(event: CustomEvent<FormSelectEvent>): void;
|
|
249
|
-
|
|
255
|
+
private performClickSelect;
|
|
256
|
+
onRowMouseDown(row: RowModel<T>, index: number, event: MouseEvent): void;
|
|
257
|
+
onRowMouseEnter(index: number): void;
|
|
258
|
+
onRowMouseUp(row: RowModel<T>, index: number, event: MouseEvent): void;
|
|
259
|
+
private updateDragSelection;
|
|
260
|
+
private stopDrag;
|
|
250
261
|
protected navigate(row: RowModel<T>, event: MouseEvent): void;
|
|
251
262
|
protected navigateNewWindow(row: RowModel<T>, event: MouseEvent): void;
|
|
252
263
|
protected toggleAll(event: CustomEvent<FormCheckboxEvent>): void;
|
|
@@ -254,6 +265,10 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
254
265
|
protected selectRowCheckbox(row: RowModel<T>, event: CustomEvent<FormCheckboxEvent>): void;
|
|
255
266
|
protected truncate(text: string): string;
|
|
256
267
|
protected deselectAll(): void;
|
|
268
|
+
setFocusedIndex(index: number): void;
|
|
269
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
270
|
+
private toggleSelection;
|
|
271
|
+
private scrollRowIntoView;
|
|
257
272
|
private createUrl;
|
|
258
273
|
private reactToSignals;
|
|
259
274
|
private updateColumnModels;
|
|
@@ -263,6 +278,9 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
263
278
|
private fireLazyLoad;
|
|
264
279
|
private updateFilter;
|
|
265
280
|
private getSorts;
|
|
281
|
+
protected getQueryParams(column: ColumnModel<T>, row: T): {
|
|
282
|
+
[key: string]: unknown;
|
|
283
|
+
} | null;
|
|
266
284
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
267
285
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "v-table", never, { "sorters": { "alias": "sorters"; "required": false; }; "data": { "alias": "data"; "required": false; }; "total": { "alias": "total"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "extraFilter": { "alias": "extraFilter"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "userTableWrapper": { "alias": "userTableWrapper"; "required": false; }; "sortMultiple": { "alias": "sortMultiple"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "showPageSizePicker": { "alias": "showPageSizePicker"; "required": false; }; "entityKey": { "alias": "entityKey"; "required": false; }; "customRoute": { "alias": "customRoute"; "required": false; }; "disableCustomClicks": { "alias": "disableCustomClicks"; "required": false; }; "tableName": { "alias": "tableName"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "maximumColumnLength": { "alias": "maximumColumnLength"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, { "selectionChange": "selectionChange"; "lazyLoad": "lazyLoad"; "download": "download"; "delete": "delete"; "save": "save"; }, ["rowDetailTemplate", "rowDetailButtonTemplate", "viewColumns"], never, true, never>;
|
|
268
286
|
}
|
|
@@ -699,6 +717,35 @@ declare class ActionButtonGroupComponent extends UnsubscribeComponent implements
|
|
|
699
717
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonGroupComponent, "v-action-button-group", never, { "maxItems": { "alias": "maxItems"; "required": false; }; "maxItemsMobile": { "alias": "maxItemsMobile"; "required": false; }; "items": { "alias": "items"; "required": false; }; "menuIconPos": { "alias": "menuIconPos"; "required": false; }; "menuIcon": { "alias": "menuIcon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, ["actions"], never, true, never>;
|
|
700
718
|
}
|
|
701
719
|
|
|
720
|
+
declare class DynamicComponentFactoryService implements OnDestroy {
|
|
721
|
+
private componentFactoryResolver;
|
|
722
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver);
|
|
723
|
+
ngOnDestroy(): void;
|
|
724
|
+
createDynamicComponent<TComponent>(componentType: Type<TComponent>, viewContainerRef: ViewContainerRef, inputs: ExtendedComponent<TComponent>, injector?: Injector | undefined): Promise<ComponentRef<TComponent>>;
|
|
725
|
+
setComponentData<TComponent>(component: ComponentRef<TComponent>, inputs: Partial<TComponent>): void;
|
|
726
|
+
private unsubscribeComponentEvents;
|
|
727
|
+
private fireComponentEvents;
|
|
728
|
+
private setComponentDataInt;
|
|
729
|
+
private fireInputComponentEvents;
|
|
730
|
+
private fireOutputComponentEvents;
|
|
731
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentFactoryService, never>;
|
|
732
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentFactoryService>;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
declare class DynamicComponent<TComponent> implements AfterViewInit, OnChanges {
|
|
736
|
+
componentType: Type<TComponent>;
|
|
737
|
+
data: ExtendedComponent<TComponent>;
|
|
738
|
+
container: ViewContainerRef;
|
|
739
|
+
private factoryServices;
|
|
740
|
+
private changeDetectorRef;
|
|
741
|
+
private injector;
|
|
742
|
+
ngOnChanges(): void;
|
|
743
|
+
ngAfterViewInit(): void;
|
|
744
|
+
private createComponent;
|
|
745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponent<any>, never>;
|
|
746
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicComponent<any>, "v-dynamic-component", never, { "componentType": { "alias": "componentType"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
747
|
+
}
|
|
748
|
+
|
|
702
749
|
declare class GenericFieldComponent<T> extends BaseFormInputComponent implements GenericFieldCore<T> {
|
|
703
750
|
type?: GenericFieldTypeType;
|
|
704
751
|
floatLabel?: boolean;
|
|
@@ -739,35 +786,6 @@ declare class GenericFormComponent implements OnChanges {
|
|
|
739
786
|
declare function generateFormGroup(fields: GenericFieldDefinition[] | undefined, lastGroupValue: UntypedFormGroup | undefined, inputGroup: UntypedFormGroup | undefined, inputGroupChanged?: boolean): UntypedFormGroup;
|
|
740
787
|
declare function getColumnClass(value?: number): string | undefined;
|
|
741
788
|
|
|
742
|
-
declare class DynamicComponentFactoryService implements OnDestroy {
|
|
743
|
-
private componentFactoryResolver;
|
|
744
|
-
constructor(componentFactoryResolver: ComponentFactoryResolver);
|
|
745
|
-
ngOnDestroy(): void;
|
|
746
|
-
createDynamicComponent<TComponent>(componentType: Type<TComponent>, viewContainerRef: ViewContainerRef, inputs: ExtendedComponent<TComponent>, injector?: Injector | undefined): Promise<ComponentRef<TComponent>>;
|
|
747
|
-
setComponentData<TComponent>(component: ComponentRef<TComponent>, inputs: Partial<TComponent>): void;
|
|
748
|
-
private unsubscribeComponentEvents;
|
|
749
|
-
private fireComponentEvents;
|
|
750
|
-
private setComponentDataInt;
|
|
751
|
-
private fireInputComponentEvents;
|
|
752
|
-
private fireOutputComponentEvents;
|
|
753
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentFactoryService, never>;
|
|
754
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentFactoryService>;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
declare class DynamicComponent<TComponent> implements AfterViewInit, OnChanges {
|
|
758
|
-
componentType: Type<TComponent>;
|
|
759
|
-
data: ExtendedComponent<TComponent>;
|
|
760
|
-
container: ViewContainerRef;
|
|
761
|
-
private factoryServices;
|
|
762
|
-
private changeDetectorRef;
|
|
763
|
-
private injector;
|
|
764
|
-
ngOnChanges(): void;
|
|
765
|
-
ngAfterViewInit(): void;
|
|
766
|
-
private createComponent;
|
|
767
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponent<any>, never>;
|
|
768
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicComponent<any>, "v-dynamic-component", never, { "componentType": { "alias": "componentType"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
789
|
declare class SideMenuComponent implements SideMenuCore {
|
|
772
790
|
menuService: SideMenuService;
|
|
773
791
|
items: MenuItem[];
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verisoft/ui-govcz",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@verisoft/security-core": "~20.
|
|
6
|
-
"@verisoft/core": "~20.
|
|
7
|
-
"@verisoft/ui-core": "~20.
|
|
5
|
+
"@verisoft/security-core": "~20.2.0",
|
|
6
|
+
"@verisoft/core": "~20.2.0",
|
|
7
|
+
"@verisoft/ui-core": "~20.2.0",
|
|
8
8
|
"@angular/core": "~20.2.0",
|
|
9
9
|
"@angular/common": "~20.2.0",
|
|
10
10
|
"@angular/forms": "~20.2.0",
|