ngx-wapp-components 1.6.3 → 1.7.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/esm2020/lib/misc/w-filter-panel/w-filter-panel.component.mjs +10 -9
- package/esm2020/lib/shared/pipes/w-summary.pipe.mjs +16 -0
- package/esm2020/lib/wapp-components.module.mjs +6 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-wapp-components.mjs +28 -9
- package/fesm2015/ngx-wapp-components.mjs.map +1 -1
- package/fesm2020/ngx-wapp-components.mjs +28 -9
- package/fesm2020/ngx-wapp-components.mjs.map +1 -1
- package/lib/shared/pipes/w-summary.pipe.d.ts +7 -0
- package/lib/wapp-components.module.d.ts +96 -95
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2887,10 +2887,6 @@ class WFilterPanelComponent {
|
|
|
2887
2887
|
code: 'Code',
|
|
2888
2888
|
delete: 'Deleted',
|
|
2889
2889
|
country: 'Country'
|
|
2890
|
-
},
|
|
2891
|
-
entities: {
|
|
2892
|
-
customerdata: "Customer data",
|
|
2893
|
-
products: "Products"
|
|
2894
2890
|
}
|
|
2895
2891
|
};
|
|
2896
2892
|
this.searchClicked = new EventEmitter();
|
|
@@ -3068,10 +3064,15 @@ class WFilterPanelComponent {
|
|
|
3068
3064
|
for (const entity of entitiesArray) {
|
|
3069
3065
|
const keys = Object.keys(entity);
|
|
3070
3066
|
keys.forEach(key => {
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3067
|
+
if (this.translationsObject.entities) {
|
|
3068
|
+
let entitiesTranslationsKeys = Object.keys(this.translationsObject.entities);
|
|
3069
|
+
let translation = entitiesTranslationsKeys.find(translationKey => translationKey == key);
|
|
3070
|
+
if (translation) {
|
|
3071
|
+
entitiesMap[key] = { name: this.translationsObject.entities[key] };
|
|
3072
|
+
}
|
|
3073
|
+
else {
|
|
3074
|
+
entitiesMap[key] = entity[key];
|
|
3075
|
+
}
|
|
3075
3076
|
}
|
|
3076
3077
|
else {
|
|
3077
3078
|
entitiesMap[key] = entity[key];
|
|
@@ -5394,6 +5395,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
5394
5395
|
args: [{ selector: 'w-skeleton-user-profile-info-sidebar', template: "<div class=\"flex mb-3\">\r\n <div class=\"mb-2 justify-content-center\">\r\n <div class=\"inline-block w-2rem h-8rem p-4 mx-5\">\r\n <p-skeleton shape=\"circle\" size=\"4rem\" styleClass=\"mr-2\"></p-skeleton>\r\n </div>\r\n <div class=\"inline-block w-25rem h-8rem p-4 ml-3\">\r\n <p-skeleton width=\"20rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"15rem\" styleClass=\"mb-4\"></p-skeleton>\r\n <p-skeleton width=\"10rem\"></p-skeleton>\r\n </div>\r\n <div class=\"px-5 pb-2\">\r\n <div class=\"grid\">\r\n <div class=\"col-4\">\r\n <p-skeleton width=\"8rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-8\">\r\n <p-skeleton width=\"16rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-4\">\r\n <p-skeleton width=\"8rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-8\">\r\n <p-skeleton width=\"16rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-4\">\r\n <p-skeleton width=\"8rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-8\">\r\n <p-skeleton width=\"16rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-4\">\r\n <p-skeleton width=\"8rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-8\">\r\n <p-skeleton width=\"16rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-4\">\r\n <p-skeleton width=\"8rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-8\">\r\n <p-skeleton width=\"16rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-4\">\r\n <p-skeleton width=\"8rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n <div class=\"col-8\">\r\n <p-skeleton width=\"16rem\" styleClass=\"mb-3\"></p-skeleton>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div>\r\n </div>\r\n </div>\r\n " }]
|
|
5395
5396
|
}] });
|
|
5396
5397
|
|
|
5398
|
+
class WSummaryPipe {
|
|
5399
|
+
transform(value, maxLength) {
|
|
5400
|
+
return !value || value.length < maxLength ? null : value.substring(0, maxLength) + ' ... ';
|
|
5401
|
+
}
|
|
5402
|
+
}
|
|
5403
|
+
WSummaryPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WSummaryPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5404
|
+
WSummaryPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: WSummaryPipe, name: "wappSummary" });
|
|
5405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WSummaryPipe, decorators: [{
|
|
5406
|
+
type: Pipe,
|
|
5407
|
+
args: [{
|
|
5408
|
+
name: 'wappSummary'
|
|
5409
|
+
}]
|
|
5410
|
+
}] });
|
|
5411
|
+
|
|
5397
5412
|
class WChipComponent {
|
|
5398
5413
|
constructor(elementRef) {
|
|
5399
5414
|
this.elementRef = elementRef;
|
|
@@ -5550,6 +5565,7 @@ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
|
|
|
5550
5565
|
WFooterComponent,
|
|
5551
5566
|
ColorTextPipe,
|
|
5552
5567
|
WDatePipe,
|
|
5568
|
+
WSummaryPipe,
|
|
5553
5569
|
WEditTreeselectComponent,
|
|
5554
5570
|
WPanelComponent,
|
|
5555
5571
|
WBodyContainerComponent,
|
|
@@ -5664,6 +5680,7 @@ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
|
|
|
5664
5680
|
WFooterComponent,
|
|
5665
5681
|
ColorTextPipe,
|
|
5666
5682
|
WDatePipe,
|
|
5683
|
+
WSummaryPipe,
|
|
5667
5684
|
WEditTreeselectComponent,
|
|
5668
5685
|
WPanelComponent,
|
|
5669
5686
|
WBodyContainerComponent,
|
|
@@ -5813,6 +5830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
5813
5830
|
WFooterComponent,
|
|
5814
5831
|
ColorTextPipe,
|
|
5815
5832
|
WDatePipe,
|
|
5833
|
+
WSummaryPipe,
|
|
5816
5834
|
WEditTreeselectComponent,
|
|
5817
5835
|
WPanelComponent,
|
|
5818
5836
|
WBodyContainerComponent,
|
|
@@ -5933,6 +5951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
5933
5951
|
WFooterComponent,
|
|
5934
5952
|
ColorTextPipe,
|
|
5935
5953
|
WDatePipe,
|
|
5954
|
+
WSummaryPipe,
|
|
5936
5955
|
WEditTreeselectComponent,
|
|
5937
5956
|
WPanelComponent,
|
|
5938
5957
|
WBodyContainerComponent,
|
|
@@ -6057,5 +6076,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
6057
6076
|
* Generated bundle index. Do not edit.
|
|
6058
6077
|
*/
|
|
6059
6078
|
|
|
6060
|
-
export { AddressEnum, ColorTextPipe, DataTypeEnum, FormControlService, ModalService, OperatorEnum, QBDataTypeEnum, QueryResultType, SessionStorageService, TableColumnFilterTypes, TableColumnTypes, TreeService, WAddressFieldComponent, WAutocompleteSearchComponent, WBadgeComponent, WBodyComponent, WBodyContainerComponent, WBodyGridComponent, WButtonComponent, WButtonsFooterComponent, WChipComponent, WClipboardComponent, WContainerComponent, WDatePipe, WDatePipeFormatType, WEditCalendarComponent, WEditCheckboxComponent, WEditInputNumberComponent, WEditInputTextComponent, WEditInputTextareaComponent, WEditMultiselectComponent, WEditSelectComponent, WEditToggleComponent, WEditTreeselectComponent, WFilterPanelComponent, WFooterComponent, WHeaderPanelComponent, WIconsComponent, WImageCropperComponent, WImageFileUploaderComponent, WInputSearchComponent, WLogosComponent, WMapsComponent, WNavbarComponent, WPanelComponent, WPanelGridComponent, WPanelSubtitleComponent, WPanelTitleComponent, WPowerbiReportComponent, WPreviewImageComponent, WRadioButtonComponent, WSelectButtonComponent, WSidebarComponent, WSkeletonEditComponent, WSkeletonEditProductComponent, WSkeletonFormComponent, WSkeletonIframeComponent, WSkeletonInputGenericComponent, WSkeletonListComponent, WSkeletonPowerbiReportComponent, WSkeletonProfileSidebarComponent, WSkeletonQueryBuilderComponent, WSkeletonSidebarComponent, WSkeletonTimelineComponent, WSkeletonTreeComponent, WSkeletonUserProfileInfoSidebarComponent, WTableComponent, WTableLazyComponent, WTabviewComponent, WTimelineComponent, WToggleButtonComponent, WTreeComponent, WTreeTableComponent, WViewBooleanComponent, WViewTextComponent, WWizardComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService, WappTableColumnAlignTypes };
|
|
6079
|
+
export { AddressEnum, ColorTextPipe, DataTypeEnum, FormControlService, ModalService, OperatorEnum, QBDataTypeEnum, QueryResultType, SessionStorageService, TableColumnFilterTypes, TableColumnTypes, TreeService, WAddressFieldComponent, WAutocompleteSearchComponent, WBadgeComponent, WBodyComponent, WBodyContainerComponent, WBodyGridComponent, WButtonComponent, WButtonsFooterComponent, WChipComponent, WClipboardComponent, WContainerComponent, WDatePipe, WDatePipeFormatType, WEditCalendarComponent, WEditCheckboxComponent, WEditInputNumberComponent, WEditInputTextComponent, WEditInputTextareaComponent, WEditMultiselectComponent, WEditSelectComponent, WEditToggleComponent, WEditTreeselectComponent, WFilterPanelComponent, WFooterComponent, WHeaderPanelComponent, WIconsComponent, WImageCropperComponent, WImageFileUploaderComponent, WInputSearchComponent, WLogosComponent, WMapsComponent, WNavbarComponent, WPanelComponent, WPanelGridComponent, WPanelSubtitleComponent, WPanelTitleComponent, WPowerbiReportComponent, WPreviewImageComponent, WRadioButtonComponent, WSelectButtonComponent, WSidebarComponent, WSkeletonEditComponent, WSkeletonEditProductComponent, WSkeletonFormComponent, WSkeletonIframeComponent, WSkeletonInputGenericComponent, WSkeletonListComponent, WSkeletonPowerbiReportComponent, WSkeletonProfileSidebarComponent, WSkeletonQueryBuilderComponent, WSkeletonSidebarComponent, WSkeletonTimelineComponent, WSkeletonTreeComponent, WSkeletonUserProfileInfoSidebarComponent, WSummaryPipe, WTableComponent, WTableLazyComponent, WTabviewComponent, WTimelineComponent, WToggleButtonComponent, WTreeComponent, WTreeTableComponent, WViewBooleanComponent, WViewTextComponent, WWizardComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService, WappTableColumnAlignTypes };
|
|
6061
6080
|
//# sourceMappingURL=ngx-wapp-components.mjs.map
|