@verisoft/ui-primeng 21.0.11 → 21.0.12
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Input, Optional, Self, Component, forwardRef, ChangeDetectionStrategy, Pipe, input, computed, ViewEncapsulation, Inject, Injectable, EventEmitter, ViewChild, Output, NgModule, ChangeDetectorRef, ContentChild, ContentChildren, reflectComponentType, Injector, ViewContainerRef, Directive
|
|
2
|
+
import { inject, Input, Optional, Self, Component, forwardRef, ChangeDetectionStrategy, Pipe, input, computed, ViewEncapsulation, Inject, Injectable, EventEmitter, ViewChild, Output, NgModule, ChangeDetectorRef, ContentChild, ContentChildren, reflectComponentType, Injector, ViewContainerRef, Directive } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule, UntypedFormGroup, UntypedFormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
5
|
import * as i1$6 from '@verisoft/ui-core';
|
|
6
|
-
import { BaseFormInputComponent, WarningPipe, BaseInputControls, INPUT_GROUP_COMPONENT_TOKEN, ControlSeverity, SlotPosition, FieldSize, FieldType, TEXTFIELD_COMPONENT_TOKEN, BreadcrumbCoreComponent, BREADCRUMB_COMPONENT_TOKEN, CHECKBOX_COMPONENT_TOKEN, CALENDAR_COMPONENT_TOKEN, PASSWORD_COMPONENT_TOKEN, IconPosition, BUTTON_COMPONENT_TOKEN, SECTION_COMPONENT_TOKEN, DROPDOWN_BUTTON_COMPONENT_TOKEN, RADIOBUTTON_COMPONENT_TOKEN, NUMBER_INPUT_COMPONENT_TOKEN, SETTINGS_MENU, UnsubscribeComponent, HEADER_COMPONENT_TOKEN, TEXTAREA_COMPONENT_TOKEN, LOADER_COMPONENT_TOKEN, SNACKBAR_COMPONENT_TOKEN, SideMenuService, ScreenSizeService, MENU_TOKEN, SideMenuProviderService, SIDE_MENU_COMPONENT_TOKEN, SIDE_MENU_STATE_TOKEN, ColumnModel, RowModel, TABLE_COLUMN_PROVIDER, TABLE_COMPONENT_TOKEN, ACTION_BUTTON_GROUP_COMPONENT_TOKEN, queryListChanged, DROPDOWN_COMPONENT_TOKEN, MULTISELECT_COMPONENT_TOKEN, GenericFieldType, DatasourceDirective, GENERIC_FIELD_COMPONENT_TOKEN, PageHeaderCoreComponent, PAGE_HEADER_COMPONENT_TOKEN, LayoutType, STEPPER_COMPONENT_TOKEN, SLIDER_COMPONENT_TOKEN, CONFIRM_DIALOG_COMPONENT_TOKEN, SWITCH_COMPONENT_TOKEN, TAB_VIEW_COMPONENT_TOKEN, DEFAULT_DEBOUNCE_TIME, DialogService, isFilterEmpty, ButtonShortCutDirective, FILTER_COMPONENT_TOKEN, MAX_COLUMN_CHAR_COUNT, TableSelectionMode, downloadFile, TableDatasourceDirective, TableFilterDirective,
|
|
6
|
+
import { BaseFormInputComponent, WarningPipe, BaseInputControls, INPUT_GROUP_COMPONENT_TOKEN, ControlSeverity, SlotPosition, FieldSize, FieldType, TEXTFIELD_COMPONENT_TOKEN, BreadcrumbCoreComponent, BREADCRUMB_COMPONENT_TOKEN, CHECKBOX_COMPONENT_TOKEN, CALENDAR_COMPONENT_TOKEN, PASSWORD_COMPONENT_TOKEN, IconPosition, BUTTON_COMPONENT_TOKEN, SECTION_COMPONENT_TOKEN, DROPDOWN_BUTTON_COMPONENT_TOKEN, RADIOBUTTON_COMPONENT_TOKEN, NUMBER_INPUT_COMPONENT_TOKEN, SETTINGS_MENU, UnsubscribeComponent, HEADER_COMPONENT_TOKEN, TEXTAREA_COMPONENT_TOKEN, LOADER_COMPONENT_TOKEN, SNACKBAR_COMPONENT_TOKEN, SideMenuService, ScreenSizeService, MENU_TOKEN, SideMenuProviderService, SIDE_MENU_COMPONENT_TOKEN, SIDE_MENU_STATE_TOKEN, ColumnModel, RowModel, TABLE_COLUMN_PROVIDER, TABLE_COMPONENT_TOKEN, ACTION_BUTTON_GROUP_COMPONENT_TOKEN, queryListChanged, DROPDOWN_COMPONENT_TOKEN, MULTISELECT_COMPONENT_TOKEN, GenericFieldType, DatasourceDirective, GENERIC_FIELD_COMPONENT_TOKEN, PageHeaderCoreComponent, PAGE_HEADER_COMPONENT_TOKEN, LayoutType, STEPPER_COMPONENT_TOKEN, SLIDER_COMPONENT_TOKEN, CONFIRM_DIALOG_COMPONENT_TOKEN, SWITCH_COMPONENT_TOKEN, TAB_VIEW_COMPONENT_TOKEN, DEFAULT_DEBOUNCE_TIME, DialogService, isFilterEmpty, ButtonShortCutDirective, FILTER_COMPONENT_TOKEN, MAX_COLUMN_CHAR_COUNT, TableSelectionMode, downloadFile, TableDatasourceDirective, TableFilterDirective, FeatureListFilterPipe, FEATURE_LIST_COLUMN_PROVIDER, FeatureListFilterFieldDirective, FEATURE_LIST_PAGE_CONFIG_PROPERTY, TAG_COMPONENT_TOKEN, IconsComponent } from '@verisoft/ui-core';
|
|
7
7
|
import * as i3$1 from 'primeng/inputgroup';
|
|
8
8
|
import { InputGroupModule } from 'primeng/inputgroup';
|
|
9
9
|
import * as i2$1 from 'primeng/inputgroupaddon';
|
|
@@ -1173,6 +1173,9 @@ class TableFilterPipe {
|
|
|
1173
1173
|
if (key === 'searchField') {
|
|
1174
1174
|
key = 'global';
|
|
1175
1175
|
}
|
|
1176
|
+
else {
|
|
1177
|
+
key = `row.${key}`;
|
|
1178
|
+
}
|
|
1176
1179
|
currentFilter[key] = filterValue;
|
|
1177
1180
|
}
|
|
1178
1181
|
return currentFilter;
|
|
@@ -1214,11 +1217,14 @@ function convertToFilter(value) {
|
|
|
1214
1217
|
const filter = {};
|
|
1215
1218
|
Object.keys(value).map((key) => {
|
|
1216
1219
|
const filterValue = value[key];
|
|
1220
|
+
const originalFilterKey = key?.startsWith('row.')
|
|
1221
|
+
? key.slice(4)
|
|
1222
|
+
: key;
|
|
1217
1223
|
if (filterValue != undefined && typeof filterValue === 'object') {
|
|
1218
|
-
filter[
|
|
1224
|
+
filter[originalFilterKey] = filterValue.value;
|
|
1219
1225
|
}
|
|
1220
1226
|
else {
|
|
1221
|
-
filter[
|
|
1227
|
+
filter[originalFilterKey] = filterValue;
|
|
1222
1228
|
}
|
|
1223
1229
|
});
|
|
1224
1230
|
return filter;
|
|
@@ -2615,91 +2621,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
2615
2621
|
type: Input
|
|
2616
2622
|
}] } });
|
|
2617
2623
|
|
|
2618
|
-
class FeatureListFilterFieldDirective extends FilterFieldDirective {
|
|
2619
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterFieldDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2620
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: FeatureListFilterFieldDirective, isStandalone: true, selector: "v-feature-list-filter-field", usesInheritance: true, ngImport: i0 }); }
|
|
2621
|
-
}
|
|
2622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterFieldDirective, decorators: [{
|
|
2623
|
-
type: Directive,
|
|
2624
|
-
args: [{
|
|
2625
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2626
|
-
selector: 'v-feature-list-filter-field',
|
|
2627
|
-
standalone: true,
|
|
2628
|
-
}]
|
|
2629
|
-
}] });
|
|
2630
|
-
|
|
2631
|
-
class FeatureListFilterPipe {
|
|
2632
|
-
transform(value) {
|
|
2633
|
-
if (!value) {
|
|
2634
|
-
return undefined;
|
|
2635
|
-
}
|
|
2636
|
-
return value.filter(x => x.filter).map((x, index) => ({
|
|
2637
|
-
name: x.id,
|
|
2638
|
-
label: typeof x.headerName === 'function' ? x.headerName(x.id, index) : x.headerName ?? '',
|
|
2639
|
-
type: x.type,
|
|
2640
|
-
}));
|
|
2641
|
-
}
|
|
2642
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2643
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterPipe, isStandalone: true, name: "featureListColumn" }); }
|
|
2644
|
-
}
|
|
2645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterPipe, decorators: [{
|
|
2646
|
-
type: Pipe,
|
|
2647
|
-
args: [{
|
|
2648
|
-
name: 'featureListColumn',
|
|
2649
|
-
standalone: true,
|
|
2650
|
-
}]
|
|
2651
|
-
}] });
|
|
2652
|
-
|
|
2653
|
-
class FeatureListPageComponent {
|
|
2654
|
-
constructor() {
|
|
2655
|
-
this.activatedRoute = inject(ActivatedRoute);
|
|
2656
|
-
this.config =
|
|
2657
|
-
this.activatedRoute.snapshot.data[FEATURE_LIST_PAGE_CONFIG_PROPERTY];
|
|
2658
|
-
}
|
|
2659
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2660
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: FeatureListPageComponent, isStandalone: true, selector: "v-feature-list-page", ngImport: i0, template: `
|
|
2661
|
-
<v-feature-list
|
|
2662
|
-
[title]="config.title"
|
|
2663
|
-
[tableName]="config.tableName"
|
|
2664
|
-
[showAdd]="config.showAdd ?? true"
|
|
2665
|
-
[showDownload]="config.showDownload ?? true"
|
|
2666
|
-
[showDelete]="config.showDelete ?? true"
|
|
2667
|
-
>
|
|
2668
|
-
</v-feature-list>
|
|
2669
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FeatureListComponent, selector: "v-feature-list", inputs: ["autoBind", "title", "columns", "filters", "maxVisibleActions", "tableName", "ngrxFeatureKey", "maxVisibleMobileActions", "showExtendedFilter", "showDownload", "showDelete", "showAdd", "canDownload", "canDelete", "canAdd", "useRouterFilter", "fulltextFieldName", "showFulltext", "deleteConfirmMessage", "autoDeleteEnabled", "autoDownloadEnabled", "downloadFileName", "datasource", "extraFilter", "disableCustomClicks", "maximumColumnLength", "filterDetailTitle", "applyButtonLabel", "clearButtonLabel", "selectionMode"], outputs: ["addClick", "downloadClick", "deleteClick", "selectionChange"] }] }); }
|
|
2670
|
-
}
|
|
2671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, decorators: [{
|
|
2672
|
-
type: Component,
|
|
2673
|
-
args: [{
|
|
2674
|
-
selector: 'v-feature-list-page',
|
|
2675
|
-
imports: [FeatureListComponent],
|
|
2676
|
-
template: `
|
|
2677
|
-
<v-feature-list
|
|
2678
|
-
[title]="config.title"
|
|
2679
|
-
[tableName]="config.tableName"
|
|
2680
|
-
[showAdd]="config.showAdd ?? true"
|
|
2681
|
-
[showDownload]="config.showDownload ?? true"
|
|
2682
|
-
[showDelete]="config.showDelete ?? true"
|
|
2683
|
-
>
|
|
2684
|
-
</v-feature-list>
|
|
2685
|
-
`
|
|
2686
|
-
}]
|
|
2687
|
-
}], ctorParameters: () => [] });
|
|
2688
|
-
|
|
2689
|
-
const FEATURE_LIST_PAGE_CONFIG_PROPERTY = 'feature_list_config';
|
|
2690
|
-
function addFeatureListPage(value) {
|
|
2691
|
-
const { config, ...route } = value;
|
|
2692
|
-
return {
|
|
2693
|
-
component: FeatureListPageComponent,
|
|
2694
|
-
...route,
|
|
2695
|
-
data: {
|
|
2696
|
-
[FEATURE_LIST_PAGE_CONFIG_PROPERTY]: config,
|
|
2697
|
-
...(route.data ?? {}),
|
|
2698
|
-
},
|
|
2699
|
-
};
|
|
2700
|
-
}
|
|
2701
|
-
const FEATURE_LIST_COLUMN_PROVIDER = new InjectionToken('FEATURE_LIST_COLUMN_PROVIDER');
|
|
2702
|
-
|
|
2703
2624
|
class FeatureListComponent {
|
|
2704
2625
|
constructor() {
|
|
2705
2626
|
this.autoBind = true;
|
|
@@ -2971,47 +2892,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
2971
2892
|
type: Input
|
|
2972
2893
|
}] } });
|
|
2973
2894
|
|
|
2974
|
-
class
|
|
2895
|
+
class FeatureListPageComponent {
|
|
2975
2896
|
constructor() {
|
|
2976
|
-
|
|
2977
|
-
this.
|
|
2978
|
-
|
|
2979
|
-
}
|
|
2980
|
-
getDefinition() {
|
|
2981
|
-
const definition = super.getDefinition();
|
|
2982
|
-
definition.filter = this.filter;
|
|
2983
|
-
definition.type = this.type;
|
|
2984
|
-
definition.format = this.format;
|
|
2985
|
-
return definition;
|
|
2897
|
+
this.activatedRoute = inject(ActivatedRoute);
|
|
2898
|
+
this.config =
|
|
2899
|
+
this.activatedRoute.snapshot.data[FEATURE_LIST_PAGE_CONFIG_PROPERTY];
|
|
2986
2900
|
}
|
|
2987
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type:
|
|
2988
|
-
static { this.ɵ
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2901
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2902
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: FeatureListPageComponent, isStandalone: true, selector: "v-feature-list-page", ngImport: i0, template: `
|
|
2903
|
+
<v-feature-list
|
|
2904
|
+
[title]="config.title"
|
|
2905
|
+
[tableName]="config.tableName"
|
|
2906
|
+
[showAdd]="config.showAdd ?? true"
|
|
2907
|
+
[showDownload]="config.showDownload ?? true"
|
|
2908
|
+
[showDelete]="config.showDelete ?? true"
|
|
2909
|
+
>
|
|
2910
|
+
</v-feature-list>
|
|
2911
|
+
`, isInline: true, dependencies: [{ kind: "component", type: FeatureListComponent, selector: "v-feature-list", inputs: ["autoBind", "title", "columns", "filters", "maxVisibleActions", "tableName", "ngrxFeatureKey", "maxVisibleMobileActions", "showExtendedFilter", "showDownload", "showDelete", "showAdd", "canDownload", "canDelete", "canAdd", "useRouterFilter", "fulltextFieldName", "showFulltext", "deleteConfirmMessage", "autoDeleteEnabled", "autoDownloadEnabled", "downloadFileName", "datasource", "extraFilter", "disableCustomClicks", "maximumColumnLength", "filterDetailTitle", "applyButtonLabel", "clearButtonLabel", "selectionMode"], outputs: ["addClick", "downloadClick", "deleteClick", "selectionChange"] }] }); }
|
|
2995
2912
|
}
|
|
2996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type:
|
|
2997
|
-
type:
|
|
2913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, decorators: [{
|
|
2914
|
+
type: Component,
|
|
2998
2915
|
args: [{
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
2916
|
+
selector: 'v-feature-list-page',
|
|
2917
|
+
imports: [FeatureListComponent],
|
|
2918
|
+
template: `
|
|
2919
|
+
<v-feature-list
|
|
2920
|
+
[title]="config.title"
|
|
2921
|
+
[tableName]="config.tableName"
|
|
2922
|
+
[showAdd]="config.showAdd ?? true"
|
|
2923
|
+
[showDownload]="config.showDownload ?? true"
|
|
2924
|
+
[showDelete]="config.showDelete ?? true"
|
|
2925
|
+
>
|
|
2926
|
+
</v-feature-list>
|
|
2927
|
+
`
|
|
3009
2928
|
}]
|
|
3010
|
-
}],
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
2929
|
+
}], ctorParameters: () => [] });
|
|
2930
|
+
|
|
2931
|
+
function addFeatureListPage(value) {
|
|
2932
|
+
const { config, ...route } = value;
|
|
2933
|
+
return {
|
|
2934
|
+
component: FeatureListPageComponent,
|
|
2935
|
+
...route,
|
|
2936
|
+
data: {
|
|
2937
|
+
[FEATURE_LIST_PAGE_CONFIG_PROPERTY]: config,
|
|
2938
|
+
...(route.data ?? {}),
|
|
2939
|
+
},
|
|
2940
|
+
};
|
|
2941
|
+
}
|
|
3015
2942
|
|
|
3016
2943
|
class TooltipComponent {
|
|
3017
2944
|
constructor() {
|
|
@@ -3190,5 +3117,5 @@ const VerisoftTheme = definePreset(Aura, {
|
|
|
3190
3117
|
* Generated bundle index. Do not edit.
|
|
3191
3118
|
*/
|
|
3192
3119
|
|
|
3193
|
-
export { ActionButtonComponent, ActionButtonGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CheckboxComponent, ConfirmDialogComponent, DropdownButtonComponent, DropdownComponent, DynamicComponent, DynamicComponentFactoryService,
|
|
3120
|
+
export { ActionButtonComponent, ActionButtonGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CheckboxComponent, ConfirmDialogComponent, DropdownButtonComponent, DropdownComponent, DynamicComponent, DynamicComponentFactoryService, FeatureListComponent, FilterComponent, FilterFieldDirective, FormFieldComponent, GenericFieldComponent, GenericFormComponent, HeaderComponent, HeaderProviderService, HttpErrorMessageInterceptor, IconComponent, Icons, InputGroupComponent, LoaderComponent, MultiselectComponent, NumberInputComponent, PageHeaderComponent, PasswordComponent, RadioButtonComponent, SectionComponent, SideMenuComponent, SideMenuModule, SliderComponent, SnackbarComponent, SnackbarService, StepperComponent, SwitchComponent, TabViewComponent, TabViewItemComponent, TableComponent, TagComponent, TextareaComponent, TextfieldComponent, TooltipComponent, VerisoftTheme, addFeatureListPage, generateFormGroup, getColumnClass };
|
|
3194
3121
|
//# sourceMappingURL=verisoft-ui-primeng.mjs.map
|