@pepperi-addons/ngx-composite-lib 0.4.2-beta.26 → 0.4.2-beta.28

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.
@@ -0,0 +1,76 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@pepperi-addons/ngx-lib/remote-loader";
4
+ import * as i2 from "@angular/common";
5
+ import * as i3 from "@pepperi-addons/ngx-lib/button";
6
+ import * as i4 from "@pepperi-addons/ngx-lib/field-title";
7
+ import * as i5 from "@pepperi-addons/ngx-lib/checkbox";
8
+ import * as i6 from "@ngx-translate/core";
9
+ export class IconPickerComponent {
10
+ constructor(viewContainerRef, addonBlockLoaderService) {
11
+ this.viewContainerRef = viewContainerRef;
12
+ this.addonBlockLoaderService = addonBlockLoaderService;
13
+ this.disabled = false;
14
+ this.header = '';
15
+ this.preview_header = '';
16
+ this.select_btn_header = '';
17
+ this.dir = 'ltr';
18
+ this.iconURL = '';
19
+ this.useCheckBoxHeader = true;
20
+ this.iconChange = new EventEmitter();
21
+ this.iconDisableChange = new EventEmitter();
22
+ }
23
+ ngOnInit() {
24
+ // Do nothing.
25
+ }
26
+ openIconPickerDialog() {
27
+ const dialogRef = this.addonBlockLoaderService.loadAddonBlockInDialog({
28
+ container: this.viewContainerRef,
29
+ name: 'AssetPicker',
30
+ hostObject: {
31
+ selectionType: 'single',
32
+ allowedAssetsTypes: 'images',
33
+ inDialog: true
34
+ },
35
+ size: 'large',
36
+ hostEventsCallback: async (event) => {
37
+ if (event?.action === 'on-save') {
38
+ this.iconChange.emit(event);
39
+ dialogRef?.close();
40
+ }
41
+ else if (event.action === 'on-cancel') {
42
+ dialogRef?.close();
43
+ }
44
+ }
45
+ });
46
+ }
47
+ onUseIconChange(event) {
48
+ this.disabled = !this.disabled;
49
+ this.iconDisableChange.emit(event);
50
+ }
51
+ }
52
+ IconPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IconPickerComponent, deps: [{ token: i0.ViewContainerRef }, { token: i1.PepAddonBlockLoaderService }], target: i0.ɵɵFactoryTarget.Component });
53
+ IconPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: IconPickerComponent, selector: "pep-icon-picker", inputs: { disabled: "disabled", header: "header", preview_header: "preview_header", select_btn_header: "select_btn_header", dir: "dir", iconURL: "iconURL", useCheckBoxHeader: "useCheckBoxHeader" }, outputs: { iconChange: "iconChange", iconDisableChange: "iconDisableChange" }, ngImport: i0, template: "<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>", styles: [":host{width:100%}.main-cont{display:flex;gap:.5rem;width:100%}.main-cont .selected-cont{width:3.5rem;align-self:end;display:flex;flex-direction:column}.main-cont .selected-cont .pep-button{display:flex;align-items:center}.main-cont .selected-cont .pep-button img{max-height:1.5rem;max-width:1.5rem}.main-cont .choose-btn-cont{width:-webkit-fill-available;align-self:end;display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i4.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i5.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IconPickerComponent, decorators: [{
55
+ type: Component,
56
+ args: [{ selector: 'pep-icon-picker', template: "<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>", styles: [":host{width:100%}.main-cont{display:flex;gap:.5rem;width:100%}.main-cont .selected-cont{width:3.5rem;align-self:end;display:flex;flex-direction:column}.main-cont .selected-cont .pep-button{display:flex;align-items:center}.main-cont .selected-cont .pep-button img{max-height:1.5rem;max-width:1.5rem}.main-cont .choose-btn-cont{width:-webkit-fill-available;align-self:end;display:flex;flex-direction:column}\n"] }]
57
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.PepAddonBlockLoaderService }]; }, propDecorators: { disabled: [{
58
+ type: Input
59
+ }], header: [{
60
+ type: Input
61
+ }], preview_header: [{
62
+ type: Input
63
+ }], select_btn_header: [{
64
+ type: Input
65
+ }], dir: [{
66
+ type: Input
67
+ }], iconURL: [{
68
+ type: Input
69
+ }], useCheckBoxHeader: [{
70
+ type: Input
71
+ }], iconChange: [{
72
+ type: Output
73
+ }], iconDisableChange: [{
74
+ type: Output
75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V0KClcbiAgICBpY29uQ2hhbmdlOiBFdmVudEVtaXR0ZXI8YW55PiA9IG5ldyBFdmVudEVtaXR0ZXI8YW55PigpO1xuICAgIFxuICAgIEBPdXRwdXQoKVxuICAgIGljb25EaXNhYmxlQ2hhbmdlOiBFdmVudEVtaXR0ZXI8YW55PiA9IG5ldyBFdmVudEVtaXR0ZXI8YW55PigpO1xuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIHByaXZhdGUgdmlld0NvbnRhaW5lclJlZjogVmlld0NvbnRhaW5lclJlZixcbiAgICAgICAgcHJpdmF0ZSBhZGRvbkJsb2NrTG9hZGVyU2VydmljZTogUGVwQWRkb25CbG9ja0xvYWRlclNlcnZpY2UpIHsgfVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIC8vIERvIG5vdGhpbmcuXG4gICAgfVxuXG4gICBcblxuICAgIG9wZW5JY29uUGlja2VyRGlhbG9nKCkge1xuICAgICAgICBjb25zdCBkaWFsb2dSZWYgPSB0aGlzLmFkZG9uQmxvY2tMb2FkZXJTZXJ2aWNlLmxvYWRBZGRvbkJsb2NrSW5EaWFsb2coe1xuICAgICAgICAgICAgY29udGFpbmVyOiB0aGlzLnZpZXdDb250YWluZXJSZWYsXG4gICAgICAgICAgICBuYW1lOiAnQXNzZXRQaWNrZXInLFxuICAgICAgICAgICAgaG9zdE9iamVjdDoge1xuICAgICAgICAgICAgICAgIHNlbGVjdGlvblR5cGU6ICdzaW5nbGUnLFxuICAgICAgICAgICAgICAgIGFsbG93ZWRBc3NldHNUeXBlczogJ2ltYWdlcycsXG4gICAgICAgICAgICAgICAgaW5EaWFsb2c6IHRydWVcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBzaXplOiAnbGFyZ2UnLFxuICAgICAgICAgICAgaG9zdEV2ZW50c0NhbGxiYWNrOiBhc3luYyAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZXZlbnQ/LmFjdGlvbiA9PT0gJ29uLXNhd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aXNhYmxlZF09XCJkaXNhYmxlZFwiIFxuICAgICAgICAgICAgICAgICAgICAgICAgIFt4QWxpZ25tZW50XT1cImRpciA9PT0gJ3J0bCcgPyAncmlnaHQnIDogJ2xlZnQnXCI+XG4gICAgICAgIDwvcGVwLWZpZWxkLXRpdGxlPlxuICAgICAgICA8cGVwLWJ1dHRvblxuICAgICAgICAgICAgW3ZhbHVlXT1cIidJQ09OX1BJQ0tFUl9CVVRUT04uQ0hPT1NFX0lDT04nIHwgdHJhbnNsYXRlXCIgXG4gICAgICAgICAgICBzdHlsZVR5cGU9XCJyZWd1bGFyXCJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiIChidXR0b25DbGljayk9XCJvcGVuSWNvblBpY2tlckRpYWxvZygpXCI+XG4gICAgICAgIDwvcGVwLWJ1dHRvbj5cbiAgICA8L2Rpdj5cbjwvZGl2PiJdfQ==
@@ -0,0 +1,44 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { PepNgxLibModule } from '@pepperi-addons/ngx-lib';
4
+ import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
5
+ import { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';
6
+ import { PepRemoteLoaderModule } from '@pepperi-addons/ngx-lib/remote-loader';
7
+ import { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';
8
+ import { IconPickerComponent } from './icon-picker.component';
9
+ import { FlowPickerService } from './icon-picker.service';
10
+ import * as i0 from "@angular/core";
11
+ export class PepIconPickerModule {
12
+ }
13
+ PepIconPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
+ PepIconPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, declarations: [IconPickerComponent], imports: [CommonModule,
15
+ PepNgxLibModule,
16
+ PepButtonModule,
17
+ PepFieldTitleModule,
18
+ PepCheckboxModule,
19
+ PepRemoteLoaderModule], exports: [IconPickerComponent] });
20
+ PepIconPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, providers: [FlowPickerService], imports: [CommonModule,
21
+ PepNgxLibModule,
22
+ PepButtonModule,
23
+ PepFieldTitleModule,
24
+ PepCheckboxModule,
25
+ PepRemoteLoaderModule] });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, decorators: [{
27
+ type: NgModule,
28
+ args: [{
29
+ declarations: [
30
+ IconPickerComponent
31
+ ],
32
+ imports: [
33
+ CommonModule,
34
+ PepNgxLibModule,
35
+ PepButtonModule,
36
+ PepFieldTitleModule,
37
+ PepCheckboxModule,
38
+ PepRemoteLoaderModule
39
+ ],
40
+ providers: [FlowPickerService],
41
+ exports: [IconPickerComponent],
42
+ }]
43
+ }] });
44
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1waWNrZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNvbXBvc2l0ZS1saWIvaWNvbi1waWNrZXIvaWNvbi1waWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDakUsT0F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Db21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBQZXBJY29uUGlja2VyTW9kdWxlIHsgfVxuIl19
@@ -0,0 +1,17 @@
1
+ import { Injectable } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@pepperi-addons/ngx-lib";
4
+ export class FlowPickerService {
5
+ constructor(httpService) {
6
+ this.httpService = httpService;
7
+ }
8
+ }
9
+ FlowPickerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, deps: [{ token: i1.PepHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
10
+ FlowPickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, providedIn: 'root' });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, decorators: [{
12
+ type: Injectable,
13
+ args: [{
14
+ providedIn: 'root',
15
+ }]
16
+ }], ctorParameters: function () { return [{ type: i1.PepHttpService }]; } });
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1waWNrZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1jb21wb3NpdGUtbGliL2ljb24tcGlja2VyL2ljb24tcGlja2VyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTzNDLE1BQU0sT0FBTyxpQkFBaUI7SUFFMUIsWUFDWSxXQUEyQjtRQUEzQixnQkFBVyxHQUFYLFdBQVcsQ0FBZ0I7SUFFdkMsQ0FBQzs7OEdBTFEsaUJBQWlCO2tIQUFqQixpQkFBaUIsY0FGZCxNQUFNOzJGQUVULGlCQUFpQjtrQkFIN0IsVUFBVTttQkFBQztvQkFDUixVQUFVLEVBQUUsTUFBTTtpQkFDckIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcbmltcG9ydCB7IFBlcEh0dHBTZXJ2aWNlIH0gZnJvbSAnQHBlcHBlcmktYWRkb25zL25neC1saWInO1xuXG5cbkBJbmplY3RhYmxlKHtcbiAgICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIEZsb3dQaWNrZXJTZXJ2aWNlIHtcbiAgICBcbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcHJpdmF0ZSBodHRwU2VydmljZTogUGVwSHR0cFNlcnZpY2VcbiAgICAgICAgKSB7XG4gICAgfVxufSJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVwcGVyaS1hZGRvbnMtbmd4LWNvbXBvc2l0ZS1saWItaWNvbi1waWNrZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY29tcG9zaXRlLWxpYi9pY29uLXBpY2tlci9wZXBwZXJpLWFkZG9ucy1uZ3gtY29tcG9zaXRlLWxpYi1pY29uLXBpY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of ngx-composite-lib/flow-picker-button
3
+ */
4
+ export * from './icon-picker.module';
5
+ export * from './icon-picker.component';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1jb21wb3NpdGUtbGliL2ljb24tcGlja2VyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1jb21wb3NpdGUtbGliL2Zsb3ctcGlja2VyLWJ1dHRvblxuICovXG5leHBvcnQgKiBmcm9tICcuL2ljb24tcGlja2VyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2ljb24tcGlja2VyLmNvbXBvbmVudCc7XG4iXX0=
@@ -0,0 +1,143 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, Injectable, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1$1 from '@pepperi-addons/ngx-lib';
6
+ import { PepNgxLibModule } from '@pepperi-addons/ngx-lib';
7
+ import * as i3 from '@pepperi-addons/ngx-lib/button';
8
+ import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
9
+ import * as i4 from '@pepperi-addons/ngx-lib/field-title';
10
+ import { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';
11
+ import * as i1 from '@pepperi-addons/ngx-lib/remote-loader';
12
+ import { PepRemoteLoaderModule } from '@pepperi-addons/ngx-lib/remote-loader';
13
+ import * as i5 from '@pepperi-addons/ngx-lib/checkbox';
14
+ import { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';
15
+ import { __awaiter } from 'tslib';
16
+ import * as i6 from '@ngx-translate/core';
17
+
18
+ class IconPickerComponent {
19
+ constructor(viewContainerRef, addonBlockLoaderService) {
20
+ this.viewContainerRef = viewContainerRef;
21
+ this.addonBlockLoaderService = addonBlockLoaderService;
22
+ this.disabled = false;
23
+ this.header = '';
24
+ this.preview_header = '';
25
+ this.select_btn_header = '';
26
+ this.dir = 'ltr';
27
+ this.iconURL = '';
28
+ this.useCheckBoxHeader = true;
29
+ this.iconChange = new EventEmitter();
30
+ this.iconDisableChange = new EventEmitter();
31
+ }
32
+ ngOnInit() {
33
+ // Do nothing.
34
+ }
35
+ openIconPickerDialog() {
36
+ const dialogRef = this.addonBlockLoaderService.loadAddonBlockInDialog({
37
+ container: this.viewContainerRef,
38
+ name: 'AssetPicker',
39
+ hostObject: {
40
+ selectionType: 'single',
41
+ allowedAssetsTypes: 'images',
42
+ inDialog: true
43
+ },
44
+ size: 'large',
45
+ hostEventsCallback: (event) => __awaiter(this, void 0, void 0, function* () {
46
+ if ((event === null || event === void 0 ? void 0 : event.action) === 'on-save') {
47
+ this.iconChange.emit(event);
48
+ dialogRef === null || dialogRef === void 0 ? void 0 : dialogRef.close();
49
+ }
50
+ else if (event.action === 'on-cancel') {
51
+ dialogRef === null || dialogRef === void 0 ? void 0 : dialogRef.close();
52
+ }
53
+ })
54
+ });
55
+ }
56
+ onUseIconChange(event) {
57
+ this.disabled = !this.disabled;
58
+ this.iconDisableChange.emit(event);
59
+ }
60
+ }
61
+ IconPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IconPickerComponent, deps: [{ token: i0.ViewContainerRef }, { token: i1.PepAddonBlockLoaderService }], target: i0.ɵɵFactoryTarget.Component });
62
+ IconPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: IconPickerComponent, selector: "pep-icon-picker", inputs: { disabled: "disabled", header: "header", preview_header: "preview_header", select_btn_header: "select_btn_header", dir: "dir", iconURL: "iconURL", useCheckBoxHeader: "useCheckBoxHeader" }, outputs: { iconChange: "iconChange", iconDisableChange: "iconDisableChange" }, ngImport: i0, template: "<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>", styles: [":host{width:100%}.main-cont{display:flex;gap:.5rem;width:100%}.main-cont .selected-cont{width:3.5rem;align-self:end;display:flex;flex-direction:column}.main-cont .selected-cont .pep-button{display:flex;align-items:center}.main-cont .selected-cont .pep-button img{max-height:1.5rem;max-width:1.5rem}.main-cont .choose-btn-cont{width:-webkit-fill-available;align-self:end;display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i4.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i5.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IconPickerComponent, decorators: [{
64
+ type: Component,
65
+ args: [{ selector: 'pep-icon-picker', template: "<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>", styles: [":host{width:100%}.main-cont{display:flex;gap:.5rem;width:100%}.main-cont .selected-cont{width:3.5rem;align-self:end;display:flex;flex-direction:column}.main-cont .selected-cont .pep-button{display:flex;align-items:center}.main-cont .selected-cont .pep-button img{max-height:1.5rem;max-width:1.5rem}.main-cont .choose-btn-cont{width:-webkit-fill-available;align-self:end;display:flex;flex-direction:column}\n"] }]
66
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.PepAddonBlockLoaderService }]; }, propDecorators: { disabled: [{
67
+ type: Input
68
+ }], header: [{
69
+ type: Input
70
+ }], preview_header: [{
71
+ type: Input
72
+ }], select_btn_header: [{
73
+ type: Input
74
+ }], dir: [{
75
+ type: Input
76
+ }], iconURL: [{
77
+ type: Input
78
+ }], useCheckBoxHeader: [{
79
+ type: Input
80
+ }], iconChange: [{
81
+ type: Output
82
+ }], iconDisableChange: [{
83
+ type: Output
84
+ }] } });
85
+
86
+ class FlowPickerService {
87
+ constructor(httpService) {
88
+ this.httpService = httpService;
89
+ }
90
+ }
91
+ FlowPickerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, deps: [{ token: i1$1.PepHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
92
+ FlowPickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, providedIn: 'root' });
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, decorators: [{
94
+ type: Injectable,
95
+ args: [{
96
+ providedIn: 'root',
97
+ }]
98
+ }], ctorParameters: function () { return [{ type: i1$1.PepHttpService }]; } });
99
+
100
+ class PepIconPickerModule {
101
+ }
102
+ PepIconPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
103
+ PepIconPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, declarations: [IconPickerComponent], imports: [CommonModule,
104
+ PepNgxLibModule,
105
+ PepButtonModule,
106
+ PepFieldTitleModule,
107
+ PepCheckboxModule,
108
+ PepRemoteLoaderModule], exports: [IconPickerComponent] });
109
+ PepIconPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, providers: [FlowPickerService], imports: [CommonModule,
110
+ PepNgxLibModule,
111
+ PepButtonModule,
112
+ PepFieldTitleModule,
113
+ PepCheckboxModule,
114
+ PepRemoteLoaderModule] });
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, decorators: [{
116
+ type: NgModule,
117
+ args: [{
118
+ declarations: [
119
+ IconPickerComponent
120
+ ],
121
+ imports: [
122
+ CommonModule,
123
+ PepNgxLibModule,
124
+ PepButtonModule,
125
+ PepFieldTitleModule,
126
+ PepCheckboxModule,
127
+ PepRemoteLoaderModule
128
+ ],
129
+ providers: [FlowPickerService],
130
+ exports: [IconPickerComponent],
131
+ }]
132
+ }] });
133
+
134
+ /*
135
+ * Public API Surface of ngx-composite-lib/flow-picker-button
136
+ */
137
+
138
+ /**
139
+ * Generated bundle index. Do not edit.
140
+ */
141
+
142
+ export { IconPickerComponent, PepIconPickerModule };
143
+ //# sourceMappingURL=pepperi-addons-ngx-composite-lib-icon-picker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-icon-picker.mjs","sources":["../../../projects/ngx-composite-lib/icon-picker/icon-picker.component.ts","../../../projects/ngx-composite-lib/icon-picker/icon-picker.component.html","../../../projects/ngx-composite-lib/icon-picker/icon-picker.service.ts","../../../projects/ngx-composite-lib/icon-picker/icon-picker.module.ts","../../../projects/ngx-composite-lib/icon-picker/public-api.ts","../../../projects/ngx-composite-lib/icon-picker/pepperi-addons-ngx-composite-lib-icon-picker.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output, ViewContainerRef } from '@angular/core';\nimport { PepAddonBlockLoaderService } from '@pepperi-addons/ngx-lib/remote-loader';\n\n\n@Component({\n selector: 'pep-icon-picker',\n templateUrl: './icon-picker.component.html',\n styleUrls: ['./icon-picker.component.scss']\n})\nexport class IconPickerComponent implements OnInit {\n\n @Input() disabled = false;\n @Input() header = '';\n @Input() preview_header = '';\n @Input() select_btn_header = '';\n @Input() dir: 'rtl' | 'ltr' = 'ltr';\n @Input() iconURL = '';\n @Input() useCheckBoxHeader = true;\n\n @Output()\n iconChange: EventEmitter<any> = new EventEmitter<any>();\n \n @Output()\n iconDisableChange: EventEmitter<any> = new EventEmitter<any>();\n\n constructor(\n private viewContainerRef: ViewContainerRef,\n private addonBlockLoaderService: PepAddonBlockLoaderService) { }\n\n ngOnInit() {\n // Do nothing.\n }\n\n \n\n openIconPickerDialog() {\n const dialogRef = this.addonBlockLoaderService.loadAddonBlockInDialog({\n container: this.viewContainerRef,\n name: 'AssetPicker',\n hostObject: {\n selectionType: 'single',\n allowedAssetsTypes: 'images',\n inDialog: true\n },\n size: 'large',\n hostEventsCallback: async (event) => {\n if (event?.action === 'on-save') {\n this.iconChange.emit(event);\n dialogRef?.close();\n } else if (event.action === 'on-cancel') {\n dialogRef?.close();\n }\n }\n });\n }\n\n onUseIconChange(event: boolean){\n this.disabled = !this.disabled;\n this.iconDisableChange.emit(event);\n }\n}\n","<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>","import { Injectable } from \"@angular/core\";\nimport { PepHttpService } from '@pepperi-addons/ngx-lib';\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FlowPickerService {\n \n constructor(\n private httpService: PepHttpService\n ) {\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';\nimport { PepRemoteLoaderModule } from '@pepperi-addons/ngx-lib/remote-loader';\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\nimport { IconPickerComponent } from './icon-picker.component';\nimport { FlowPickerService } from './icon-picker.service';\n\n@NgModule({\n declarations: [\n IconPickerComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepButtonModule,\n PepFieldTitleModule,\n PepCheckboxModule,\n PepRemoteLoaderModule\n ],\n providers: [FlowPickerService],\n exports: [IconPickerComponent],\n})\nexport class PepIconPickerModule { }\n","/*\n * Public API Surface of ngx-composite-lib/flow-picker-button\n */\nexport * from './icon-picker.module';\nexport * from './icon-picker.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;MASa,mBAAmB,CAAA;IAgB5B,WACY,CAAA,gBAAkC,EAClC,uBAAmD,EAAA;AADnD,QAAA,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;AAClC,QAAA,IAAuB,CAAA,uBAAA,GAAvB,uBAAuB,CAA4B;AAhBtD,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AACjB,QAAA,IAAM,CAAA,MAAA,GAAG,EAAE,CAAC;AACZ,QAAA,IAAc,CAAA,cAAA,GAAG,EAAE,CAAC;AACpB,QAAA,IAAiB,CAAA,iBAAA,GAAG,EAAE,CAAC;AACvB,QAAA,IAAG,CAAA,GAAA,GAAkB,KAAK,CAAC;AAC3B,QAAA,IAAO,CAAA,OAAA,GAAG,EAAE,CAAC;AACb,QAAA,IAAiB,CAAA,iBAAA,GAAG,IAAI,CAAC;AAGlC,QAAA,IAAA,CAAA,UAAU,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-0,0 +1,142 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, Injectable, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1$1 from '@pepperi-addons/ngx-lib';
6
+ import { PepNgxLibModule } from '@pepperi-addons/ngx-lib';
7
+ import * as i3 from '@pepperi-addons/ngx-lib/button';
8
+ import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
9
+ import * as i4 from '@pepperi-addons/ngx-lib/field-title';
10
+ import { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';
11
+ import * as i1 from '@pepperi-addons/ngx-lib/remote-loader';
12
+ import { PepRemoteLoaderModule } from '@pepperi-addons/ngx-lib/remote-loader';
13
+ import * as i5 from '@pepperi-addons/ngx-lib/checkbox';
14
+ import { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';
15
+ import * as i6 from '@ngx-translate/core';
16
+
17
+ class IconPickerComponent {
18
+ constructor(viewContainerRef, addonBlockLoaderService) {
19
+ this.viewContainerRef = viewContainerRef;
20
+ this.addonBlockLoaderService = addonBlockLoaderService;
21
+ this.disabled = false;
22
+ this.header = '';
23
+ this.preview_header = '';
24
+ this.select_btn_header = '';
25
+ this.dir = 'ltr';
26
+ this.iconURL = '';
27
+ this.useCheckBoxHeader = true;
28
+ this.iconChange = new EventEmitter();
29
+ this.iconDisableChange = new EventEmitter();
30
+ }
31
+ ngOnInit() {
32
+ // Do nothing.
33
+ }
34
+ openIconPickerDialog() {
35
+ const dialogRef = this.addonBlockLoaderService.loadAddonBlockInDialog({
36
+ container: this.viewContainerRef,
37
+ name: 'AssetPicker',
38
+ hostObject: {
39
+ selectionType: 'single',
40
+ allowedAssetsTypes: 'images',
41
+ inDialog: true
42
+ },
43
+ size: 'large',
44
+ hostEventsCallback: async (event) => {
45
+ if (event?.action === 'on-save') {
46
+ this.iconChange.emit(event);
47
+ dialogRef?.close();
48
+ }
49
+ else if (event.action === 'on-cancel') {
50
+ dialogRef?.close();
51
+ }
52
+ }
53
+ });
54
+ }
55
+ onUseIconChange(event) {
56
+ this.disabled = !this.disabled;
57
+ this.iconDisableChange.emit(event);
58
+ }
59
+ }
60
+ IconPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IconPickerComponent, deps: [{ token: i0.ViewContainerRef }, { token: i1.PepAddonBlockLoaderService }], target: i0.ɵɵFactoryTarget.Component });
61
+ IconPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: IconPickerComponent, selector: "pep-icon-picker", inputs: { disabled: "disabled", header: "header", preview_header: "preview_header", select_btn_header: "select_btn_header", dir: "dir", iconURL: "iconURL", useCheckBoxHeader: "useCheckBoxHeader" }, outputs: { iconChange: "iconChange", iconDisableChange: "iconDisableChange" }, ngImport: i0, template: "<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>", styles: [":host{width:100%}.main-cont{display:flex;gap:.5rem;width:100%}.main-cont .selected-cont{width:3.5rem;align-self:end;display:flex;flex-direction:column}.main-cont .selected-cont .pep-button{display:flex;align-items:center}.main-cont .selected-cont .pep-button img{max-height:1.5rem;max-width:1.5rem}.main-cont .choose-btn-cont{width:-webkit-fill-available;align-self:end;display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i4.PepFieldTitleComponent, selector: "pep-field-title", inputs: ["label", "mandatory", "disabled", "maxFieldCharacters", "hint", "xAlignment", "showTitle", "inputLength", "fontBodyType"] }, { kind: "component", type: i5.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IconPickerComponent, decorators: [{
63
+ type: Component,
64
+ args: [{ selector: 'pep-icon-picker', template: "<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>", styles: [":host{width:100%}.main-cont{display:flex;gap:.5rem;width:100%}.main-cont .selected-cont{width:3.5rem;align-self:end;display:flex;flex-direction:column}.main-cont .selected-cont .pep-button{display:flex;align-items:center}.main-cont .selected-cont .pep-button img{max-height:1.5rem;max-width:1.5rem}.main-cont .choose-btn-cont{width:-webkit-fill-available;align-self:end;display:flex;flex-direction:column}\n"] }]
65
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.PepAddonBlockLoaderService }]; }, propDecorators: { disabled: [{
66
+ type: Input
67
+ }], header: [{
68
+ type: Input
69
+ }], preview_header: [{
70
+ type: Input
71
+ }], select_btn_header: [{
72
+ type: Input
73
+ }], dir: [{
74
+ type: Input
75
+ }], iconURL: [{
76
+ type: Input
77
+ }], useCheckBoxHeader: [{
78
+ type: Input
79
+ }], iconChange: [{
80
+ type: Output
81
+ }], iconDisableChange: [{
82
+ type: Output
83
+ }] } });
84
+
85
+ class FlowPickerService {
86
+ constructor(httpService) {
87
+ this.httpService = httpService;
88
+ }
89
+ }
90
+ FlowPickerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, deps: [{ token: i1$1.PepHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
91
+ FlowPickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, providedIn: 'root' });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FlowPickerService, decorators: [{
93
+ type: Injectable,
94
+ args: [{
95
+ providedIn: 'root',
96
+ }]
97
+ }], ctorParameters: function () { return [{ type: i1$1.PepHttpService }]; } });
98
+
99
+ class PepIconPickerModule {
100
+ }
101
+ PepIconPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
102
+ PepIconPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, declarations: [IconPickerComponent], imports: [CommonModule,
103
+ PepNgxLibModule,
104
+ PepButtonModule,
105
+ PepFieldTitleModule,
106
+ PepCheckboxModule,
107
+ PepRemoteLoaderModule], exports: [IconPickerComponent] });
108
+ PepIconPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, providers: [FlowPickerService], imports: [CommonModule,
109
+ PepNgxLibModule,
110
+ PepButtonModule,
111
+ PepFieldTitleModule,
112
+ PepCheckboxModule,
113
+ PepRemoteLoaderModule] });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepIconPickerModule, decorators: [{
115
+ type: NgModule,
116
+ args: [{
117
+ declarations: [
118
+ IconPickerComponent
119
+ ],
120
+ imports: [
121
+ CommonModule,
122
+ PepNgxLibModule,
123
+ PepButtonModule,
124
+ PepFieldTitleModule,
125
+ PepCheckboxModule,
126
+ PepRemoteLoaderModule
127
+ ],
128
+ providers: [FlowPickerService],
129
+ exports: [IconPickerComponent],
130
+ }]
131
+ }] });
132
+
133
+ /*
134
+ * Public API Surface of ngx-composite-lib/flow-picker-button
135
+ */
136
+
137
+ /**
138
+ * Generated bundle index. Do not edit.
139
+ */
140
+
141
+ export { IconPickerComponent, PepIconPickerModule };
142
+ //# sourceMappingURL=pepperi-addons-ngx-composite-lib-icon-picker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-icon-picker.mjs","sources":["../../../projects/ngx-composite-lib/icon-picker/icon-picker.component.ts","../../../projects/ngx-composite-lib/icon-picker/icon-picker.component.html","../../../projects/ngx-composite-lib/icon-picker/icon-picker.service.ts","../../../projects/ngx-composite-lib/icon-picker/icon-picker.module.ts","../../../projects/ngx-composite-lib/icon-picker/public-api.ts","../../../projects/ngx-composite-lib/icon-picker/pepperi-addons-ngx-composite-lib-icon-picker.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output, ViewContainerRef } from '@angular/core';\nimport { PepAddonBlockLoaderService } from '@pepperi-addons/ngx-lib/remote-loader';\n\n\n@Component({\n selector: 'pep-icon-picker',\n templateUrl: './icon-picker.component.html',\n styleUrls: ['./icon-picker.component.scss']\n})\nexport class IconPickerComponent implements OnInit {\n\n @Input() disabled = false;\n @Input() header = '';\n @Input() preview_header = '';\n @Input() select_btn_header = '';\n @Input() dir: 'rtl' | 'ltr' = 'ltr';\n @Input() iconURL = '';\n @Input() useCheckBoxHeader = true;\n\n @Output()\n iconChange: EventEmitter<any> = new EventEmitter<any>();\n \n @Output()\n iconDisableChange: EventEmitter<any> = new EventEmitter<any>();\n\n constructor(\n private viewContainerRef: ViewContainerRef,\n private addonBlockLoaderService: PepAddonBlockLoaderService) { }\n\n ngOnInit() {\n // Do nothing.\n }\n\n \n\n openIconPickerDialog() {\n const dialogRef = this.addonBlockLoaderService.loadAddonBlockInDialog({\n container: this.viewContainerRef,\n name: 'AssetPicker',\n hostObject: {\n selectionType: 'single',\n allowedAssetsTypes: 'images',\n inDialog: true\n },\n size: 'large',\n hostEventsCallback: async (event) => {\n if (event?.action === 'on-save') {\n this.iconChange.emit(event);\n dialogRef?.close();\n } else if (event.action === 'on-cancel') {\n dialogRef?.close();\n }\n }\n });\n }\n\n onUseIconChange(event: boolean){\n this.disabled = !this.disabled;\n this.iconDisableChange.emit(event);\n }\n}\n","<label *ngIf=\"!useCheckBoxHeader\" class=\"title-xl ellipsis\">{{header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)}}</label>\n<pep-checkbox *ngIf=\"useCheckBoxHeader\" \n class=\"checkbox-as-title\" \n [value]=\"!disabled\" \n [label]=\"header !== '' ? header : ('ICON_PICKER_BUTTON.MAIN_HEADER' | translate)\" \n [renderTitle]=\"false\" \n (valueChange)=\"onUseIconChange($event)\">\n</pep-checkbox>\n<div class=\"main-cont\">\n <div class=\"selected-cont\">\n <pep-field-title [label]=\"preview_header !== '' ? preview_header : ('ICON_PICKER_BUTTON.SELECTED' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <!-- <pep-button\n iconName=\"system_bolt\"\n [disabled]=\"disabled\">\n \n </pep-button> -->\n <div class=\"pep-button md weak\">\n <img *ngIf=\"iconURL !== ''\" [src]=\"iconURL\"/>\n </div>\n </div>\n <div class=\"choose-btn-cont\">\n <pep-field-title [label]=\"select_btn_header !== '' ? select_btn_header : ('ICON_PICKER_BUTTON.CHOOSE_ICON_HEADER' | translate)\" \n [disabled]=\"disabled\" \n [xAlignment]=\"dir === 'rtl' ? 'right' : 'left'\">\n </pep-field-title>\n <pep-button\n [value]=\"'ICON_PICKER_BUTTON.CHOOSE_ICON' | translate\" \n styleType=\"regular\"\n [disabled]=\"disabled\" (buttonClick)=\"openIconPickerDialog()\">\n </pep-button>\n </div>\n</div>","import { Injectable } from \"@angular/core\";\nimport { PepHttpService } from '@pepperi-addons/ngx-lib';\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FlowPickerService {\n \n constructor(\n private httpService: PepHttpService\n ) {\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepFieldTitleModule } from '@pepperi-addons/ngx-lib/field-title';\nimport { PepRemoteLoaderModule } from '@pepperi-addons/ngx-lib/remote-loader';\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\nimport { IconPickerComponent } from './icon-picker.component';\nimport { FlowPickerService } from './icon-picker.service';\n\n@NgModule({\n declarations: [\n IconPickerComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepButtonModule,\n PepFieldTitleModule,\n PepCheckboxModule,\n PepRemoteLoaderModule\n ],\n providers: [FlowPickerService],\n exports: [IconPickerComponent],\n})\nexport class PepIconPickerModule { }\n","/*\n * Public API Surface of ngx-composite-lib/flow-picker-button\n */\nexport * from './icon-picker.module';\nexport * from './icon-picker.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;MASa,mBAAmB,CAAA;IAgB5B,WACY,CAAA,gBAAkC,EAClC,uBAAmD,EAAA;QADnD,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAuB,CAAA,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B,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACxBD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { PepAddonBlockLoaderService } from '@pepperi-addons/ngx-lib/remote-loader';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IconPickerComponent implements OnInit {
5
+ private viewContainerRef;
6
+ private addonBlockLoaderService;
7
+ disabled: boolean;
8
+ header: string;
9
+ preview_header: string;
10
+ select_btn_header: string;
11
+ dir: 'rtl' | 'ltr';
12
+ iconURL: string;
13
+ useCheckBoxHeader: boolean;
14
+ iconChange: EventEmitter<any>;
15
+ iconDisableChange: EventEmitter<any>;
16
+ constructor(viewContainerRef: ViewContainerRef, addonBlockLoaderService: PepAddonBlockLoaderService);
17
+ ngOnInit(): void;
18
+ openIconPickerDialog(): void;
19
+ onUseIconChange(event: boolean): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconPickerComponent, "pep-icon-picker", never, { "disabled": "disabled"; "header": "header"; "preview_header": "preview_header"; "select_btn_header": "select_btn_header"; "dir": "dir"; "iconURL": "iconURL"; "useCheckBoxHeader": "useCheckBoxHeader"; }, { "iconChange": "iconChange"; "iconDisableChange": "iconDisableChange"; }, never, never, false>;
22
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./icon-picker.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@pepperi-addons/ngx-lib";
5
+ import * as i4 from "@pepperi-addons/ngx-lib/button";
6
+ import * as i5 from "@pepperi-addons/ngx-lib/field-title";
7
+ import * as i6 from "@pepperi-addons/ngx-lib/checkbox";
8
+ import * as i7 from "@pepperi-addons/ngx-lib/remote-loader";
9
+ export declare class PepIconPickerModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PepIconPickerModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PepIconPickerModule, [typeof i1.IconPickerComponent], [typeof i2.CommonModule, typeof i3.PepNgxLibModule, typeof i4.PepButtonModule, typeof i5.PepFieldTitleModule, typeof i6.PepCheckboxModule, typeof i7.PepRemoteLoaderModule], [typeof i1.IconPickerComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<PepIconPickerModule>;
13
+ }
@@ -0,0 +1,8 @@
1
+ import { PepHttpService } from '@pepperi-addons/ngx-lib';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FlowPickerService {
4
+ private httpService;
5
+ constructor(httpService: PepHttpService);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowPickerService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowPickerService>;
8
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@pepperi-addons/ngx-composite-lib/icon-picker" />
5
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './icon-picker.module';
2
+ export * from './icon-picker.component';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperi-addons/ngx-composite-lib",
3
- "version": "0.4.2-beta.26",
3
+ "version": "0.4.2-beta.28",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">= 14.0.2",
6
6
  "@angular/cdk": ">= 14.0.2",
@@ -106,6 +106,14 @@
106
106
  "node": "./fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs",
107
107
  "default": "./fesm2020/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs"
108
108
  },
109
+ "./icon-picker": {
110
+ "types": "./icon-picker/index.d.ts",
111
+ "esm2020": "./esm2020/icon-picker/pepperi-addons-ngx-composite-lib-icon-picker.mjs",
112
+ "es2020": "./fesm2020/pepperi-addons-ngx-composite-lib-icon-picker.mjs",
113
+ "es2015": "./fesm2015/pepperi-addons-ngx-composite-lib-icon-picker.mjs",
114
+ "node": "./fesm2015/pepperi-addons-ngx-composite-lib-icon-picker.mjs",
115
+ "default": "./fesm2020/pepperi-addons-ngx-composite-lib-icon-picker.mjs"
116
+ },
109
117
  "./manage-parameters": {
110
118
  "types": "./manage-parameters/index.d.ts",
111
119
  "esm2020": "./esm2020/manage-parameters/pepperi-addons-ngx-composite-lib-manage-parameters.mjs",
@@ -94,6 +94,12 @@
94
94
  },
95
95
  "FLOW_PICKER_BUTTON": {
96
96
  "CHOOSE_FLOW": "Choose flow"
97
+ },
98
+ "ICON_PICKER_BUTTON": {
99
+ "CHOOSE_ICON": "Open icon selector",
100
+ "MAIN_HEADER": "Icon",
101
+ "SELECTED": "Selected",
102
+ "CHOOSE_ICON_HEADER": "Choose icon"
97
103
  }
98
104
 
99
105
  }