@verisoft/ui-primeng 21.0.10 → 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, InjectionToken } 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 } 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, TableColumnDirective, TAG_COMPONENT_TOKEN, IconsComponent } 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, 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';
@@ -106,6 +106,12 @@ const Icons = {
106
106
  check: 'pi pi-check',
107
107
  envelope: 'pi pi-envelope',
108
108
  loader: 'pi pi-loader',
109
+ file: 'pi pi-file',
110
+ map: 'pi pi-map',
111
+ arrowCounterclockwise: 'pi pi-arrow-counterclockwise',
112
+ folder: 'pi pi-folder',
113
+ eye: 'pi pi-eye',
114
+ box: 'pi pi-box',
109
115
  };
110
116
 
111
117
  class FormFieldComponent extends BaseFormInputComponent {
@@ -1167,6 +1173,9 @@ class TableFilterPipe {
1167
1173
  if (key === 'searchField') {
1168
1174
  key = 'global';
1169
1175
  }
1176
+ else {
1177
+ key = `row.${key}`;
1178
+ }
1170
1179
  currentFilter[key] = filterValue;
1171
1180
  }
1172
1181
  return currentFilter;
@@ -1208,11 +1217,14 @@ function convertToFilter(value) {
1208
1217
  const filter = {};
1209
1218
  Object.keys(value).map((key) => {
1210
1219
  const filterValue = value[key];
1220
+ const originalFilterKey = key?.startsWith('row.')
1221
+ ? key.slice(4)
1222
+ : key;
1211
1223
  if (filterValue != undefined && typeof filterValue === 'object') {
1212
- filter[key] = filterValue.value;
1224
+ filter[originalFilterKey] = filterValue.value;
1213
1225
  }
1214
1226
  else {
1215
- filter[key] = filterValue;
1227
+ filter[originalFilterKey] = filterValue;
1216
1228
  }
1217
1229
  });
1218
1230
  return filter;
@@ -2609,91 +2621,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
2609
2621
  type: Input
2610
2622
  }] } });
2611
2623
 
2612
- class FeatureListFilterFieldDirective extends FilterFieldDirective {
2613
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterFieldDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
2614
- 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 }); }
2615
- }
2616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterFieldDirective, decorators: [{
2617
- type: Directive,
2618
- args: [{
2619
- // eslint-disable-next-line @angular-eslint/directive-selector
2620
- selector: 'v-feature-list-filter-field',
2621
- standalone: true,
2622
- }]
2623
- }] });
2624
-
2625
- class FeatureListFilterPipe {
2626
- transform(value) {
2627
- if (!value) {
2628
- return undefined;
2629
- }
2630
- return value.filter(x => x.filter).map((x, index) => ({
2631
- name: x.id,
2632
- label: typeof x.headerName === 'function' ? x.headerName(x.id, index) : x.headerName ?? '',
2633
- type: x.type,
2634
- }));
2635
- }
2636
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2637
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterPipe, isStandalone: true, name: "featureListColumn" }); }
2638
- }
2639
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListFilterPipe, decorators: [{
2640
- type: Pipe,
2641
- args: [{
2642
- name: 'featureListColumn',
2643
- standalone: true,
2644
- }]
2645
- }] });
2646
-
2647
- class FeatureListPageComponent {
2648
- constructor() {
2649
- this.activatedRoute = inject(ActivatedRoute);
2650
- this.config =
2651
- this.activatedRoute.snapshot.data[FEATURE_LIST_PAGE_CONFIG_PROPERTY];
2652
- }
2653
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2654
- 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: `
2655
- <v-feature-list
2656
- [title]="config.title"
2657
- [tableName]="config.tableName"
2658
- [showAdd]="config.showAdd ?? true"
2659
- [showDownload]="config.showDownload ?? true"
2660
- [showDelete]="config.showDelete ?? true"
2661
- >
2662
- </v-feature-list>
2663
- `, 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"] }] }); }
2664
- }
2665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, decorators: [{
2666
- type: Component,
2667
- args: [{
2668
- selector: 'v-feature-list-page',
2669
- imports: [FeatureListComponent],
2670
- template: `
2671
- <v-feature-list
2672
- [title]="config.title"
2673
- [tableName]="config.tableName"
2674
- [showAdd]="config.showAdd ?? true"
2675
- [showDownload]="config.showDownload ?? true"
2676
- [showDelete]="config.showDelete ?? true"
2677
- >
2678
- </v-feature-list>
2679
- `
2680
- }]
2681
- }], ctorParameters: () => [] });
2682
-
2683
- const FEATURE_LIST_PAGE_CONFIG_PROPERTY = 'feature_list_config';
2684
- function addFeatureListPage(value) {
2685
- const { config, ...route } = value;
2686
- return {
2687
- component: FeatureListPageComponent,
2688
- ...route,
2689
- data: {
2690
- [FEATURE_LIST_PAGE_CONFIG_PROPERTY]: config,
2691
- ...(route.data ?? {}),
2692
- },
2693
- };
2694
- }
2695
- const FEATURE_LIST_COLUMN_PROVIDER = new InjectionToken('FEATURE_LIST_COLUMN_PROVIDER');
2696
-
2697
2624
  class FeatureListComponent {
2698
2625
  constructor() {
2699
2626
  this.autoBind = true;
@@ -2965,47 +2892,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
2965
2892
  type: Input
2966
2893
  }] } });
2967
2894
 
2968
- class FeatureListColumnDirective extends TableColumnDirective {
2895
+ class FeatureListPageComponent {
2969
2896
  constructor() {
2970
- super(...arguments);
2971
- this.filter = false;
2972
- this.type = GenericFieldType.text;
2973
- }
2974
- getDefinition() {
2975
- const definition = super.getDefinition();
2976
- definition.filter = this.filter;
2977
- definition.type = this.type;
2978
- definition.format = this.format;
2979
- return definition;
2897
+ this.activatedRoute = inject(ActivatedRoute);
2898
+ this.config =
2899
+ this.activatedRoute.snapshot.data[FEATURE_LIST_PAGE_CONFIG_PROPERTY];
2980
2900
  }
2981
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListColumnDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
2982
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: FeatureListColumnDirective, isStandalone: true, selector: "v-feature-list-column", inputs: { filter: "filter", type: "type" }, providers: [
2983
- {
2984
- provide: FEATURE_LIST_COLUMN_PROVIDER,
2985
- useExisting: FeatureListColumnDirective,
2986
- multi: true,
2987
- },
2988
- ], usesInheritance: true, ngImport: i0 }); }
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"] }] }); }
2989
2912
  }
2990
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListColumnDirective, decorators: [{
2991
- type: Directive,
2913
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FeatureListPageComponent, decorators: [{
2914
+ type: Component,
2992
2915
  args: [{
2993
- // eslint-disable-next-line @angular-eslint/directive-selector
2994
- selector: 'v-feature-list-column',
2995
- standalone: true,
2996
- providers: [
2997
- {
2998
- provide: FEATURE_LIST_COLUMN_PROVIDER,
2999
- useExisting: FeatureListColumnDirective,
3000
- multi: true,
3001
- },
3002
- ],
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
+ `
3003
2928
  }]
3004
- }], propDecorators: { filter: [{
3005
- type: Input
3006
- }], type: [{
3007
- type: Input
3008
- }] } });
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
+ }
3009
2942
 
3010
2943
  class TooltipComponent {
3011
2944
  constructor() {
@@ -3184,5 +3117,5 @@ const VerisoftTheme = definePreset(Aura, {
3184
3117
  * Generated bundle index. Do not edit.
3185
3118
  */
3186
3119
 
3187
- export { ActionButtonComponent, ActionButtonGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CheckboxComponent, ConfirmDialogComponent, DropdownButtonComponent, DropdownComponent, DynamicComponent, DynamicComponentFactoryService, FEATURE_LIST_COLUMN_PROVIDER, FEATURE_LIST_PAGE_CONFIG_PROPERTY, FeatureListColumnDirective, FeatureListComponent, FeatureListFilterFieldDirective, FeatureListFilterPipe, 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 };
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 };
3188
3121
  //# sourceMappingURL=verisoft-ui-primeng.mjs.map