ngx-wapp-components 1.0.77 → 1.0.78

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.
@@ -72,6 +72,8 @@ import { TabViewModule } from 'primeng/tabview';
72
72
  import * as i3$e from 'primeng/timeline';
73
73
  import { TimelineModule } from 'primeng/timeline';
74
74
  import { CardModule } from 'primeng/card';
75
+ import * as i3$f from 'primeng/chip';
76
+ import { ChipModule } from 'primeng/chip';
75
77
  import * as i10 from 'angular2-query-builder';
76
78
  import { QueryBuilderModule, QueryBuilderComponent } from 'angular2-query-builder';
77
79
  import * as i7$1 from 'ngx-image-cropper';
@@ -4692,6 +4694,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
4692
4694
  args: ['buttonClick']
4693
4695
  }] } });
4694
4696
 
4697
+ class WChipComponent {
4698
+ constructor(elementRef) {
4699
+ this.elementRef = elementRef;
4700
+ this.iconColor = "#1e293b";
4701
+ this.backgroundColor = "#e2e8f0";
4702
+ this.labelColor = "#1e293b";
4703
+ this.tooltipPosition = 'bottom';
4704
+ this.click = new EventEmitter();
4705
+ }
4706
+ ngOnInit() {
4707
+ this.elementRef.nativeElement.style.setProperty("--bgcolor", this.backgroundColor);
4708
+ }
4709
+ chipClick() {
4710
+ this.click.emit(true);
4711
+ }
4712
+ }
4713
+ WChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WChipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
4714
+ WChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WChipComponent, selector: "w-chip", inputs: { image: "image", icon: "icon", iconColor: "iconColor", backgroundColor: "backgroundColor", labelColor: "labelColor", wappIcon: "wappIcon", label: "label", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { click: "click" }, ngImport: i0, template: "<p-chip *ngIf=\"icon || image; else wappIconChip\" \r\n class=\"w-chip\"\r\n [pTooltip]=\"tooltip\" \r\n [tooltipPosition]=\"tooltipPosition\" \r\n (click)=\"chipClick()\">\r\n <i *ngIf=\"icon; else imageChip\" class=\"p-chip-icon\" [class]=\"'pi ' + icon\" [style]=\"'color: '+iconColor\"></i>\r\n <ng-template #imageChip> <img [src]=\"image\"> </ng-template>\r\n <span class=\"p-chip-text\" [style]=\"'color:'+ labelColor\"> {{label}} </span>\r\n</p-chip>\r\n\r\n<ng-template #wappIconChip>\r\n <p-chip class=\"w-chip\"\r\n [pTooltip]=\"tooltip\" \r\n [tooltipPosition]=\"tooltipPosition\" \r\n (click)=\"chipClick()\">\r\n <w-icons *ngIf=\"wappIcon\" \r\n [name]=\"wappIcon\" \r\n [color]=\"iconColor\" \r\n [height]=\"18\" \r\n [width]=\"18\" \r\n class=\"wapp-chip-icon\">\r\n </w-icons>\r\n <span class=\"p-chip-text\" [style]=\"'color:'+ labelColor\"> {{label}} </span>\r\n </p-chip>\r\n</ng-template>\r\n\r\n\r\n", styles: [".heading1{font-size:3.1428571429rem;line-height:3.4285714286rem;font-weight:700}.heading2{font-size:2.8571428571rem;line-height:3.1428571429rem;font-weight:700}.heading3{font-size:2.5714285714rem;line-height:2.8571428571rem;font-weight:700}.heading4{font-size:2.2857142857rem;line-height:2.5714285714rem;font-weight:700}.heading5{font-size:2rem;line-height:2.2857142857rem;font-weight:700}.heading6{font-size:1.7142857143rem;line-height:2rem;font-weight:700}.subtitle1{font-size:1.4285714286rem;line-height:1.7142857143rem;font-weight:700}.subtitle2{font-size:1.1428571429rem;line-height:1.4285714286rem;font-weight:700}.body,.input-generic-placeholder-small,.input-generic-small{font-size:1rem;line-height:1.1428571429rem;font-weight:600}.caption,::ng-deep .w-chip .p-chip-text{font-size:.8571428571rem;line-height:1.1428571429rem;font-weight:600}.select-option-text{font-size:16;line-height:24px;font-weight:600}.icon-small-size{font-size:8px}.icon-small-x-size{font-size:12px}.icon-medium-size{font-size:16px}.icon-large-size{font-size:24px}.spacingXXS{padding:4px}.spacingXSM{padding:6px}.spacingXS{padding:8px}.spacingS{padding:12px}.spacingM{padding:16px}.spacingL{padding:20px}.spacingXL{padding:24px}.spacingXXL{padding:28px}.spacingXXXL{padding:32px}.focus{box-shadow:0 0 8px #00a6e980}.hover{border-radius:8px;border:1px solid #00b2eb}.button-large-typography{font-size:20px;line-height:24px;font-weight:700}.button-medium-typography{font-size:16px;line-height:16px;font-weight:700}.button-small-typography{font-size:12px;line-height:16px;font-weight:700}.button-text-typography,.input-generic-label{font-size:14px;line-height:16px;font-weight:700}.input-generic-placeholder{font-size:16px;line-height:24px;font-weight:600;color:#9aa0a6!important;opacity:unset!important}.input-generic{font-size:16px;line-height:24px;font-weight:600}.input-generic-placeholder-small{padding:8px 12px 12px;color:#9aa0a6!important}.input-generic-valid{border-radius:8px;border:1px solid #B3FFD3}.input-generic-valid-focus{border-radius:8px;border:1px solid #B3FFD3!important;box-shadow:0 0 8px #46ff9b80!important;padding-left:16px}.input-generic-warning{border-radius:8px;border:1px solid #FFECB8!important}.input-generic-warning-focus{border-radius:8px;border:1px solid #FFECB8!important;box-shadow:0 0 8px #ffcd4680!important;padding-left:16px}.input-generic-error-focus{border-radius:8px;border:1px solid #FFBDBD!important;box-shadow:0 0 8px #ff555580!important;padding-left:16px}.input-generic-error{border-radius:8px;border:1px solid #FFBDBD}.tag-generic{font-size:14px;line-height:16px;font-weight:700}.tag-generic-small{font-size:12px;line-height:16px;font-weight:700}.toggle-small-typography{font-size:12px;line-height:16px;font-weight:600}.w-generic-input-no-label-height{height:36px}:host ::ng-deep .p-chip{background-color:var(--bgcolor)}.w-chip{cursor:pointer}::ng-deep .w-chip .p-chip-text{line-height:1.5;margin-top:.375rem;margin-bottom:.375rem}::ng-deep .w-chip .p-chip-icon{margin-right:.5rem;line-height:1.5}.wapp-chip-icon{margin-right:.5rem;line-height:.5}.w-chip img{width:2.25rem;height:2.25rem;margin-left:-.75rem;margin-right:.5rem}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i3$f.Chip, selector: "p-chip", inputs: ["label", "icon", "image", "style", "styleClass", "removable", "removeIcon"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: WIconsComponent, selector: "w-icons", inputs: ["name", "width", "height", "color"] }] });
4715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WChipComponent, decorators: [{
4716
+ type: Component,
4717
+ args: [{ selector: 'w-chip', template: "<p-chip *ngIf=\"icon || image; else wappIconChip\" \r\n class=\"w-chip\"\r\n [pTooltip]=\"tooltip\" \r\n [tooltipPosition]=\"tooltipPosition\" \r\n (click)=\"chipClick()\">\r\n <i *ngIf=\"icon; else imageChip\" class=\"p-chip-icon\" [class]=\"'pi ' + icon\" [style]=\"'color: '+iconColor\"></i>\r\n <ng-template #imageChip> <img [src]=\"image\"> </ng-template>\r\n <span class=\"p-chip-text\" [style]=\"'color:'+ labelColor\"> {{label}} </span>\r\n</p-chip>\r\n\r\n<ng-template #wappIconChip>\r\n <p-chip class=\"w-chip\"\r\n [pTooltip]=\"tooltip\" \r\n [tooltipPosition]=\"tooltipPosition\" \r\n (click)=\"chipClick()\">\r\n <w-icons *ngIf=\"wappIcon\" \r\n [name]=\"wappIcon\" \r\n [color]=\"iconColor\" \r\n [height]=\"18\" \r\n [width]=\"18\" \r\n class=\"wapp-chip-icon\">\r\n </w-icons>\r\n <span class=\"p-chip-text\" [style]=\"'color:'+ labelColor\"> {{label}} </span>\r\n </p-chip>\r\n</ng-template>\r\n\r\n\r\n", styles: [".heading1{font-size:3.1428571429rem;line-height:3.4285714286rem;font-weight:700}.heading2{font-size:2.8571428571rem;line-height:3.1428571429rem;font-weight:700}.heading3{font-size:2.5714285714rem;line-height:2.8571428571rem;font-weight:700}.heading4{font-size:2.2857142857rem;line-height:2.5714285714rem;font-weight:700}.heading5{font-size:2rem;line-height:2.2857142857rem;font-weight:700}.heading6{font-size:1.7142857143rem;line-height:2rem;font-weight:700}.subtitle1{font-size:1.4285714286rem;line-height:1.7142857143rem;font-weight:700}.subtitle2{font-size:1.1428571429rem;line-height:1.4285714286rem;font-weight:700}.body,.input-generic-placeholder-small,.input-generic-small{font-size:1rem;line-height:1.1428571429rem;font-weight:600}.caption,::ng-deep .w-chip .p-chip-text{font-size:.8571428571rem;line-height:1.1428571429rem;font-weight:600}.select-option-text{font-size:16;line-height:24px;font-weight:600}.icon-small-size{font-size:8px}.icon-small-x-size{font-size:12px}.icon-medium-size{font-size:16px}.icon-large-size{font-size:24px}.spacingXXS{padding:4px}.spacingXSM{padding:6px}.spacingXS{padding:8px}.spacingS{padding:12px}.spacingM{padding:16px}.spacingL{padding:20px}.spacingXL{padding:24px}.spacingXXL{padding:28px}.spacingXXXL{padding:32px}.focus{box-shadow:0 0 8px #00a6e980}.hover{border-radius:8px;border:1px solid #00b2eb}.button-large-typography{font-size:20px;line-height:24px;font-weight:700}.button-medium-typography{font-size:16px;line-height:16px;font-weight:700}.button-small-typography{font-size:12px;line-height:16px;font-weight:700}.button-text-typography,.input-generic-label{font-size:14px;line-height:16px;font-weight:700}.input-generic-placeholder{font-size:16px;line-height:24px;font-weight:600;color:#9aa0a6!important;opacity:unset!important}.input-generic{font-size:16px;line-height:24px;font-weight:600}.input-generic-placeholder-small{padding:8px 12px 12px;color:#9aa0a6!important}.input-generic-valid{border-radius:8px;border:1px solid #B3FFD3}.input-generic-valid-focus{border-radius:8px;border:1px solid #B3FFD3!important;box-shadow:0 0 8px #46ff9b80!important;padding-left:16px}.input-generic-warning{border-radius:8px;border:1px solid #FFECB8!important}.input-generic-warning-focus{border-radius:8px;border:1px solid #FFECB8!important;box-shadow:0 0 8px #ffcd4680!important;padding-left:16px}.input-generic-error-focus{border-radius:8px;border:1px solid #FFBDBD!important;box-shadow:0 0 8px #ff555580!important;padding-left:16px}.input-generic-error{border-radius:8px;border:1px solid #FFBDBD}.tag-generic{font-size:14px;line-height:16px;font-weight:700}.tag-generic-small{font-size:12px;line-height:16px;font-weight:700}.toggle-small-typography{font-size:12px;line-height:16px;font-weight:600}.w-generic-input-no-label-height{height:36px}:host ::ng-deep .p-chip{background-color:var(--bgcolor)}.w-chip{cursor:pointer}::ng-deep .w-chip .p-chip-text{line-height:1.5;margin-top:.375rem;margin-bottom:.375rem}::ng-deep .w-chip .p-chip-icon{margin-right:.5rem;line-height:1.5}.wapp-chip-icon{margin-right:.5rem;line-height:.5}.w-chip img{width:2.25rem;height:2.25rem;margin-left:-.75rem;margin-right:.5rem}\n"] }]
4718
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { image: [{
4719
+ type: Input,
4720
+ args: ['image']
4721
+ }], icon: [{
4722
+ type: Input,
4723
+ args: ['icon']
4724
+ }], iconColor: [{
4725
+ type: Input,
4726
+ args: ['iconColor']
4727
+ }], backgroundColor: [{
4728
+ type: Input,
4729
+ args: ['backgroundColor']
4730
+ }], labelColor: [{
4731
+ type: Input,
4732
+ args: ['labelColor']
4733
+ }], wappIcon: [{
4734
+ type: Input,
4735
+ args: ['wappIcon']
4736
+ }], label: [{
4737
+ type: Input,
4738
+ args: ['label']
4739
+ }], tooltip: [{
4740
+ type: Input,
4741
+ args: ['tooltip']
4742
+ }], tooltipPosition: [{
4743
+ type: Input,
4744
+ args: ['tooltipPosition']
4745
+ }], click: [{
4746
+ type: Output,
4747
+ args: ['click']
4748
+ }] } });
4749
+
4695
4750
  class WappComponentsModule {
4696
4751
  }
4697
4752
  WappComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -4746,7 +4801,8 @@ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
4746
4801
  WBadgeComponent,
4747
4802
  WTimelineComponent,
4748
4803
  WPanelSubtitleComponent,
4749
- WViewTextComponent], imports: [InputTextModule,
4804
+ WViewTextComponent,
4805
+ WChipComponent], imports: [InputTextModule,
4750
4806
  FormsModule,
4751
4807
  ReactiveFormsModule,
4752
4808
  CommonModule,
@@ -4790,7 +4846,8 @@ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
4790
4846
  StepsModule,
4791
4847
  TabViewModule,
4792
4848
  TimelineModule,
4793
- CardModule], exports: [WappComponentsComponent,
4849
+ CardModule,
4850
+ ChipModule], exports: [WappComponentsComponent,
4794
4851
  WEditInputTextComponent,
4795
4852
  WClipboardComponent,
4796
4853
  HighlightModule,
@@ -4849,7 +4906,9 @@ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
4849
4906
  WTimelineComponent,
4850
4907
  TimelineModule,
4851
4908
  CardModule,
4852
- WViewTextComponent] });
4909
+ WViewTextComponent,
4910
+ ChipModule,
4911
+ WChipComponent] });
4853
4912
  WappComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, providers: [
4854
4913
  {
4855
4914
  provide: HIGHLIGHT_OPTIONS,
@@ -4901,7 +4960,8 @@ WappComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
4901
4960
  StepsModule,
4902
4961
  TabViewModule,
4903
4962
  TimelineModule,
4904
- CardModule, HighlightModule,
4963
+ CardModule,
4964
+ ChipModule, HighlightModule,
4905
4965
  QueryBuilderModule,
4906
4966
  ImageModule,
4907
4967
  FileUploadModule,
@@ -4912,7 +4972,8 @@ WappComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
4912
4972
  TabViewModule,
4913
4973
  TabViewModule,
4914
4974
  TimelineModule,
4915
- CardModule] });
4975
+ CardModule,
4976
+ ChipModule] });
4916
4977
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, decorators: [{
4917
4978
  type: NgModule,
4918
4979
  args: [{
@@ -4969,6 +5030,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
4969
5030
  WTimelineComponent,
4970
5031
  WPanelSubtitleComponent,
4971
5032
  WViewTextComponent,
5033
+ WChipComponent,
4972
5034
  ],
4973
5035
  imports: [
4974
5036
  InputTextModule,
@@ -5015,7 +5077,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
5015
5077
  StepsModule,
5016
5078
  TabViewModule,
5017
5079
  TimelineModule,
5018
- CardModule
5080
+ CardModule,
5081
+ ChipModule
5019
5082
  ],
5020
5083
  exports: [
5021
5084
  WappComponentsComponent,
@@ -5077,7 +5140,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
5077
5140
  WTimelineComponent,
5078
5141
  TimelineModule,
5079
5142
  CardModule,
5080
- WViewTextComponent
5143
+ WViewTextComponent,
5144
+ ChipModule,
5145
+ WChipComponent
5081
5146
  ],
5082
5147
  providers: [
5083
5148
  {
@@ -5142,5 +5207,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
5142
5207
  * Generated bundle index. Do not edit.
5143
5208
  */
5144
5209
 
5145
- export { ColorTextPipe, DataTypeEnum, FormControlService, ModalService, OperatorEnum, QBDataTypeEnum, TableColumnFilterTypes, TableColumnTypes, TreeService, WAutocompleteSearchComponent, WBadgeComponent, WBodyComponent, WBodyContainerComponent, WBodyGridComponent, WButtonComponent, WButtonsFooterComponent, WClipboardComponent, WContainerComponent, WDatePipe, WEditCalendarComponent, WEditCheckboxComponent, WEditInputNumberComponent, WEditInputTextComponent, WEditInputTextareaComponent, WEditMultiselectComponent, WEditSelectComponent, WEditToggleComponent, WEditTreeselectComponent, WFilterPanelComponent, WFooterComponent, WHeaderPanelComponent, WIconsComponent, WImageCropperComponent, WImageFileUploaderComponent, WInputSearchComponent, WLogosComponent, WMapsComponent, WNavbarComponent, WPanelComponent, WPanelGridComponent, WPanelTitleComponent, WPowerbiReportComponent, WPreviewImageComponent, WRadioButtonComponent, WSelectButtonComponent, WSidebarComponent, WTableComponent, WTableLazyComponent, WTabviewComponent, WTimelineComponent, WToggleButtonComponent, WTreeComponent, WTreeTableComponent, WViewTextComponent, WWizardComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService, WappTableColumnAlignTypes };
5210
+ export { ColorTextPipe, DataTypeEnum, FormControlService, ModalService, OperatorEnum, QBDataTypeEnum, TableColumnFilterTypes, TableColumnTypes, TreeService, WAutocompleteSearchComponent, WBadgeComponent, WBodyComponent, WBodyContainerComponent, WBodyGridComponent, WButtonComponent, WButtonsFooterComponent, WChipComponent, WClipboardComponent, WContainerComponent, WDatePipe, WEditCalendarComponent, WEditCheckboxComponent, WEditInputNumberComponent, WEditInputTextComponent, WEditInputTextareaComponent, WEditMultiselectComponent, WEditSelectComponent, WEditToggleComponent, WEditTreeselectComponent, WFilterPanelComponent, WFooterComponent, WHeaderPanelComponent, WIconsComponent, WImageCropperComponent, WImageFileUploaderComponent, WInputSearchComponent, WLogosComponent, WMapsComponent, WNavbarComponent, WPanelComponent, WPanelGridComponent, WPanelTitleComponent, WPowerbiReportComponent, WPreviewImageComponent, WRadioButtonComponent, WSelectButtonComponent, WSidebarComponent, WTableComponent, WTableLazyComponent, WTabviewComponent, WTimelineComponent, WToggleButtonComponent, WTreeComponent, WTreeTableComponent, WViewTextComponent, WWizardComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService, WappTableColumnAlignTypes };
5146
5211
  //# sourceMappingURL=ngx-wapp-components.mjs.map