@verisoft/ui-govcz 21.0.1 → 21.0.2
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 +259 -121
- package/fesm2022/verisoft-ui-govcz.mjs.map +1 -1
- package/package.json +4 -4
- package/types/verisoft-ui-govcz.d.ts +45 -24
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verisoft/ui-govcz",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@verisoft/security-core": "
|
|
6
|
-
"@verisoft/core": "
|
|
7
|
-
"@verisoft/ui-core": "
|
|
5
|
+
"@verisoft/security-core": "^21.0.0",
|
|
6
|
+
"@verisoft/core": "^21.0.0",
|
|
7
|
+
"@verisoft/ui-core": "^21.0.0",
|
|
8
8
|
"@angular/core": "~21.0.6",
|
|
9
9
|
"@angular/common": "~21.0.6",
|
|
10
10
|
"@angular/forms": "~21.0.6",
|
|
@@ -1,8 +1,8 @@
|
|
|
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, FormFieldCore, FieldTypeType, HeaderCore, SideMenuService, IconsComponent, InputGroupCore, InputGroupItem, LoaderCore, MultiselectCore, NumberInputCore, PageHeaderCore, PasswordCore, PasswordStrength, RadiobuttonCore, RadioButtonItem, SectionCore, ActionButton, ActionButtonGroupCore, ScreenSizeService, GenericFieldCore, GenericFieldTypeType, GenericFieldType, GenericFieldDefinition, ExtendedComponent, SideMenuCore, SideMenuProviderService, SideMenuModuleConfig, SnackbarCore, StepperCore, StepperItem, LayoutTypeType, SwitchCore, TabViewItemCore, TableCore, ColumnProvider, ColumnDefinition, RowModel, ColumnModel, TagCore, TagVariant, TextareaCore, TextfieldCore, TooltipCore, FilterCore, FieldSize, DialogService, TableDatasourceDirective, TableSelectionModeType, TableColumnDirective, CommonIcons } from '@verisoft/ui-core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, OnInit,
|
|
5
|
-
import { Params, Route } from '@angular/router';
|
|
4
|
+
import { EventEmitter, OnInit, OnChanges, OnDestroy, ElementRef, ChangeDetectorRef, SimpleChanges, TemplateRef, AfterContentInit, QueryList, ComponentFactoryResolver, Type, ViewContainerRef, Injector, ComponentRef, AfterViewInit, ModuleWithProviders, InjectionToken, PipeTransform } from '@angular/core';
|
|
5
|
+
import { Params, ActivatedRoute, 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, UntypedFormGroup, ValidatorFn, FormGroup } from '@angular/forms';
|
|
8
8
|
import * as _verisoft_core from '@verisoft/core';
|
|
@@ -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>;
|
|
@@ -603,35 +603,38 @@ declare class SwitchComponent extends BaseFormInputComponent implements SwitchCo
|
|
|
603
603
|
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "v-switch", never, { "size": { "alias": "size"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
declare class TabViewItemComponent
|
|
607
|
-
id?: string;
|
|
608
|
-
index?: number;
|
|
609
|
-
disabled: boolean;
|
|
606
|
+
declare class TabViewItemComponent {
|
|
610
607
|
title: string;
|
|
611
|
-
|
|
608
|
+
disabled: boolean;
|
|
612
609
|
url?: string;
|
|
613
|
-
contentTemplate: TemplateRef<
|
|
610
|
+
contentTemplate: TemplateRef<unknown>;
|
|
614
611
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabViewItemComponent, never>;
|
|
615
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabViewItemComponent, "v-tab-view-item", never, { "
|
|
612
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabViewItemComponent, "v-tab-view-item", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "url": { "alias": "url"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
616
613
|
}
|
|
617
614
|
|
|
615
|
+
type TabMode = 'content' | 'router';
|
|
618
616
|
declare class TabViewComponent implements AfterContentInit {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
useRouting: boolean;
|
|
617
|
+
private projectedTabs;
|
|
618
|
+
private readonly _mode;
|
|
622
619
|
items: TabViewItemCore[];
|
|
623
|
-
|
|
620
|
+
set mode(value: TabMode);
|
|
621
|
+
readonly modeSig: i0.Signal<TabMode>;
|
|
622
|
+
private readonly _activeIndex;
|
|
623
|
+
set activeIndex(value: number);
|
|
624
|
+
readonly activeIndexSig: i0.Signal<number>;
|
|
624
625
|
activeIndexChange: EventEmitter<number>;
|
|
625
|
-
|
|
626
|
+
readonly tabs: i0.WritableSignal<TabViewItemComponent[]>;
|
|
627
|
+
private readonly route;
|
|
628
|
+
private readonly router;
|
|
629
|
+
constructor();
|
|
626
630
|
ngAfterContentInit(): void;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
setTabActive(options: TabViewItemComponent[]): void;
|
|
631
|
+
selectTab(index: number): void;
|
|
632
|
+
get relativeRoute(): ActivatedRoute;
|
|
630
633
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabViewComponent, never>;
|
|
631
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabViewComponent, "v-tab-view", never, { "
|
|
634
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabViewComponent, "v-tab-view", never, { "items": { "alias": "items"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "activeIndexChange": "activeIndexChange"; }, ["projectedTabs"], never, true, never>;
|
|
632
635
|
}
|
|
633
636
|
|
|
634
|
-
declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T> {
|
|
637
|
+
declare class TableComponent<T> implements OnChanges, AfterViewInit, OnDestroy, TableCore<T> {
|
|
635
638
|
viewColumns: QueryList<ColumnProvider<T>>;
|
|
636
639
|
rowDetailTemplate: TemplateRef<{
|
|
637
640
|
$implicit: T;
|
|
@@ -669,6 +672,7 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
669
672
|
download: EventEmitter<RowModel<T>[]>;
|
|
670
673
|
delete: EventEmitter<RowModel<T>[]>;
|
|
671
674
|
save: EventEmitter<RowModel<T>[]>;
|
|
675
|
+
tableRef: ElementRef<HTMLTableElement>;
|
|
672
676
|
private readonly cdRef;
|
|
673
677
|
private readonly router;
|
|
674
678
|
private readonly route;
|
|
@@ -681,13 +685,18 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
681
685
|
}[];
|
|
682
686
|
allSelected: boolean;
|
|
683
687
|
icons: _verisoft_ui_core.CommonIcons;
|
|
688
|
+
focusedIndex: number;
|
|
689
|
+
private isMouseDown;
|
|
690
|
+
private dragActive;
|
|
691
|
+
private dragStartIndex;
|
|
692
|
+
private initialSelectionSet;
|
|
684
693
|
get govPageSize(): string;
|
|
685
694
|
get tableRowView(): RowModel<T>[];
|
|
686
695
|
get selected(): RowModel<T>[];
|
|
687
696
|
get selectedCount(): number;
|
|
688
|
-
constructor();
|
|
689
697
|
ngOnChanges(changes: SimpleChanges): void;
|
|
690
698
|
ngAfterViewInit(): void;
|
|
699
|
+
ngOnDestroy(): void;
|
|
691
700
|
protected sortColumn(column: ColumnModel<T>): void;
|
|
692
701
|
protected changePage(event: {
|
|
693
702
|
detail: {
|
|
@@ -697,7 +706,12 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
697
706
|
};
|
|
698
707
|
}): void;
|
|
699
708
|
protected changePageSize(event: CustomEvent<FormSelectEvent>): void;
|
|
700
|
-
|
|
709
|
+
private performClickSelect;
|
|
710
|
+
onRowMouseDown(row: RowModel<T>, index: number, event: MouseEvent): void;
|
|
711
|
+
onRowMouseEnter(index: number): void;
|
|
712
|
+
onRowMouseUp(row: RowModel<T>, index: number, event: MouseEvent): void;
|
|
713
|
+
private updateDragSelection;
|
|
714
|
+
private stopDrag;
|
|
701
715
|
protected navigate(row: RowModel<T>, event: MouseEvent): void;
|
|
702
716
|
protected navigateNewWindow(row: RowModel<T>, event: MouseEvent): void;
|
|
703
717
|
protected toggleAll(event: CustomEvent<FormCheckboxEvent>): void;
|
|
@@ -705,6 +719,10 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
705
719
|
protected selectRowCheckbox(row: RowModel<T>, event: CustomEvent<FormCheckboxEvent>): void;
|
|
706
720
|
protected truncate(text: string): string;
|
|
707
721
|
protected deselectAll(): void;
|
|
722
|
+
setFocusedIndex(index: number): void;
|
|
723
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
724
|
+
private toggleSelection;
|
|
725
|
+
private scrollRowIntoView;
|
|
708
726
|
private createUrl;
|
|
709
727
|
private reactToSignals;
|
|
710
728
|
private updateColumnModels;
|
|
@@ -714,6 +732,9 @@ declare class TableComponent<T> implements OnChanges, AfterViewInit, TableCore<T
|
|
|
714
732
|
private fireLazyLoad;
|
|
715
733
|
private updateFilter;
|
|
716
734
|
private getSorts;
|
|
735
|
+
protected getQueryParams(column: ColumnModel<T>, row: T): {
|
|
736
|
+
[key: string]: unknown;
|
|
737
|
+
} | null;
|
|
717
738
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
718
739
|
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>;
|
|
719
740
|
}
|
|
@@ -1009,4 +1030,4 @@ declare class NotFoundComponent {
|
|
|
1009
1030
|
declare const Icons: CommonIcons;
|
|
1010
1031
|
|
|
1011
1032
|
export { ActionButtonComponent, ActionButtonGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CheckboxComponent, ConfirmDialogComponent, DropdownButtonComponent, DropdownComponent, DynamicComponent, DynamicComponentFactoryService, ErrorComponent, FEATURE_LIST_COLUMN_PROVIDER, FEATURE_LIST_PAGE_CONFIG_PROPERTY, FeatureListColumnDirective, FeatureListComponent, FeatureListFilterFieldDirective, FeatureListFilterPipe, FilterComponent, FilterFieldDirective, FormFieldComponent, GenericFieldComponent, GenericFormComponent, GovColorPipe, GovInitService, GovMultiselectOptionsPipe, GovSizePipe, GovTagType, HeaderComponent, IconComponent, Icons, InputGroupComponent, LoaderComponent, MultiselectComponent, NotAuthenticatedComponent, NotAuthorizedComponent, NotFoundComponent, NumberInputComponent, PageHeaderComponent, PasswordComponent, RadioButtonComponent, SearchComponent, SectionComponent, SideMenuComponent, SideMenuModule, SnackbarComponent, SnackbarService, StepperComponent, SwitchComponent, TabViewComponent, TabViewItemComponent, TableComponent, TagComponent, TextareaComponent, TextfieldComponent, TooltipComponent, addFeatureListPage, generateFormGroup, getColumnClass };
|
|
1012
|
-
export type { FeatureListColumnDefinition, FeatureListColumnProvider, FeatureListPageConfig, GovTagTypeType };
|
|
1033
|
+
export type { FeatureListColumnDefinition, FeatureListColumnProvider, FeatureListPageConfig, GovTagTypeType, TabMode };
|