ui-core-abv 0.4.5 → 0.4.7
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/fesm2022/ui-core-abv.mjs
CHANGED
|
@@ -120,8 +120,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
120
120
|
type: Input
|
|
121
121
|
}] } });
|
|
122
122
|
|
|
123
|
-
const base$
|
|
124
|
-
class UicCheckboxComponent extends base$
|
|
123
|
+
const base$c = createValueAccessor();
|
|
124
|
+
class UicCheckboxComponent extends base$c {
|
|
125
125
|
icon = ''; // Icono externo
|
|
126
126
|
iconColor = 'black';
|
|
127
127
|
label = '';
|
|
@@ -204,8 +204,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
204
204
|
type: Input
|
|
205
205
|
}] } });
|
|
206
206
|
|
|
207
|
-
const base$
|
|
208
|
-
class UicSelectComponent extends base$
|
|
207
|
+
const base$b = createValueAccessor();
|
|
208
|
+
class UicSelectComponent extends base$b {
|
|
209
209
|
icon = ''; // Icono externo
|
|
210
210
|
iconColor = 'black';
|
|
211
211
|
internalIcon = ''; //Icono interno
|
|
@@ -388,8 +388,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
388
388
|
type: Output
|
|
389
389
|
}] } });
|
|
390
390
|
|
|
391
|
-
const base$
|
|
392
|
-
class UicRadioComponent extends base$
|
|
391
|
+
const base$a = createValueAccessor();
|
|
392
|
+
class UicRadioComponent extends base$a {
|
|
393
393
|
icon = '';
|
|
394
394
|
iconColor = 'black';
|
|
395
395
|
label = '';
|
|
@@ -457,8 +457,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
457
457
|
type: Input
|
|
458
458
|
}] } });
|
|
459
459
|
|
|
460
|
-
const base$
|
|
461
|
-
class UicSliderComponent extends base$
|
|
460
|
+
const base$9 = createValueAccessor();
|
|
461
|
+
class UicSliderComponent extends base$9 {
|
|
462
462
|
icon = ''; // Icono externo
|
|
463
463
|
iconColor = 'black';
|
|
464
464
|
label = '';
|
|
@@ -558,8 +558,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
558
558
|
args: ['document:mouseup']
|
|
559
559
|
}] } });
|
|
560
560
|
|
|
561
|
-
const base$
|
|
562
|
-
class UicDatePickerComponent extends base$
|
|
561
|
+
const base$8 = createValueAccessor();
|
|
562
|
+
class UicDatePickerComponent extends base$8 {
|
|
563
563
|
icon = ''; // Icono externo
|
|
564
564
|
iconColor = 'black';
|
|
565
565
|
internalIcon = ''; //Icono interno
|
|
@@ -1024,8 +1024,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
1024
1024
|
args: ['calendarTemplate']
|
|
1025
1025
|
}] } });
|
|
1026
1026
|
|
|
1027
|
-
const base$
|
|
1028
|
-
class UicPoolOptionsComponent extends base$
|
|
1027
|
+
const base$7 = createValueAccessor();
|
|
1028
|
+
class UicPoolOptionsComponent extends base$7 {
|
|
1029
1029
|
icon = ''; // Icono externo
|
|
1030
1030
|
iconColor = 'primary'; //color de ícono externo
|
|
1031
1031
|
size = 'm'; // tamaño general del input
|
|
@@ -1148,8 +1148,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
1148
1148
|
type: Input
|
|
1149
1149
|
}] } });
|
|
1150
1150
|
|
|
1151
|
-
const base$
|
|
1152
|
-
class UicSearcherComponent extends base$
|
|
1151
|
+
const base$6 = createValueAccessor();
|
|
1152
|
+
class UicSearcherComponent extends base$6 {
|
|
1153
1153
|
icon = ''; // Icono externo
|
|
1154
1154
|
iconColor = 'primary'; //color de ícono externo
|
|
1155
1155
|
internalIcon = 'ri-search-2-line'; //Icono interno
|
|
@@ -1342,8 +1342,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
1342
1342
|
args: ['dropdownTemplate']
|
|
1343
1343
|
}] } });
|
|
1344
1344
|
|
|
1345
|
-
const base$
|
|
1346
|
-
class UicMultySelectComponent extends base$
|
|
1345
|
+
const base$5 = createValueAccessor();
|
|
1346
|
+
class UicMultySelectComponent extends base$5 {
|
|
1347
1347
|
icon = ''; // Icono externo
|
|
1348
1348
|
iconColor = 'primary'; //color de ícono externo
|
|
1349
1349
|
internalIcon = ''; //Icono interno
|
|
@@ -1487,8 +1487,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
1487
1487
|
args: ['dropdownTemplate']
|
|
1488
1488
|
}] } });
|
|
1489
1489
|
|
|
1490
|
-
const base$
|
|
1491
|
-
class UicTimePickerComponent extends base$
|
|
1490
|
+
const base$4 = createValueAccessor();
|
|
1491
|
+
class UicTimePickerComponent extends base$4 {
|
|
1492
1492
|
// Iconos y estado
|
|
1493
1493
|
icon = '';
|
|
1494
1494
|
iconColor = 'primary';
|
|
@@ -1819,8 +1819,8 @@ const PHONE_COUNTRIES = [
|
|
|
1819
1819
|
{ name: 'Venezuela', iso2: 've', dialCode: '58' }
|
|
1820
1820
|
];
|
|
1821
1821
|
|
|
1822
|
-
const base$
|
|
1823
|
-
class UicPhoneInputComponent extends base$
|
|
1822
|
+
const base$3 = createValueAccessor();
|
|
1823
|
+
class UicPhoneInputComponent extends base$3 {
|
|
1824
1824
|
icon = '';
|
|
1825
1825
|
iconColor = 'black';
|
|
1826
1826
|
internalIcon = '';
|
|
@@ -2114,8 +2114,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2114
2114
|
args: ['dropdownTemplate']
|
|
2115
2115
|
}] } });
|
|
2116
2116
|
|
|
2117
|
-
const base$
|
|
2118
|
-
class UicFileInputComponent extends base$
|
|
2117
|
+
const base$2 = createValueAccessor();
|
|
2118
|
+
class UicFileInputComponent extends base$2 {
|
|
2119
2119
|
icon = ''; // Icono externo
|
|
2120
2120
|
iconColor = 'black';
|
|
2121
2121
|
internalIcon = ''; //Icono interno
|
|
@@ -3792,11 +3792,11 @@ class TinyAlertComponent {
|
|
|
3792
3792
|
this.modalRef.closeFloating(value ? this.response : null);
|
|
3793
3793
|
}
|
|
3794
3794
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TinyAlertComponent, deps: [{ token: MODAL_DATA }, { token: UiModalRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3795
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: TinyAlertComponent, isStandalone: true, selector: "ui-tiny-alert", ngImport: i0, template: "<div class=\"alert-wrapper\">\r\n @if (data.iconPath) {\r\n <img [src]=\"data.iconPath\" alt=\"\"> \r\n }@else{\r\n <i [class]=\"'alert-main-icon icon-'+data.type + ' ' + data.iconChar\" ></i>\r\n }\r\n <h3 [class]=\"'icon-'+data.type\"> {{data.title}} </
|
|
3795
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: TinyAlertComponent, isStandalone: true, selector: "ui-tiny-alert", ngImport: i0, template: "<div class=\"alert-wrapper\">\r\n @if (data.iconPath) {\r\n <img [src]=\"data.iconPath\" alt=\"\"> \r\n }@else{\r\n <i [class]=\"'alert-main-icon icon-'+data.type + ' ' + data.iconChar\" ></i>\r\n }\r\n <div class=\"h3-alert\" [class]=\"'icon-'+data.type\"> {{data.title}} </div>\r\n <div class=\"alert-body\" [innerHTML]=\"data.body\"> </div>\r\n <div class=\"tinyalert-buttons\">\r\n @if (data.showCancelButton) {\r\n <ui-button (click)=\"close(false)\" type=\"bordered\" [color]=\"data.cancelButtonColor??'black'\" size=\"l\"> {{data.cancelButtonText??'Cancelar'}} </ui-button>\r\n }\r\n <ui-button (click)=\"close(true)\" [color]=\"data.okButtonColor??'primary'\" size=\"l\"> {{data.okButtonText??'Continuar'}} </ui-button>\r\n </div>\r\n <button class=\"floating-close\" (click)=\"close(false)\" >\r\n <i class=\"ri-close-line\"></i>\r\n </button>\r\n</div>\r\n", styles: [".alert-wrapper{position:relative;display:flex;flex-direction:column;align-items:center;padding:20px 20px 5px;width:400px;max-width:100%;-webkit-user-select:none;user-select:none}.alert-wrapper img{height:88px;margin-bottom:20px}.tinyalert-buttons{padding-top:20px;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}.h3-alert{font-size:24px;font-weight:800;margin-bottom:10px}.alert-body{font-size:18px;font-weight:500;line-height:24px;text-align:center;color:var(--grey-700)}.floating-close{position:absolute;top:-10px;right:-20px;background-color:transparent;font-size:28px;border:none;cursor:pointer;transition:ease .3s}.floating-close:hover{color:var(--red-500)}@media (max-width: 479px){.floating-close{top:0;right:-5px}}.alert-main-icon{font-size:80px;margin-bottom:10px}.icon-error{color:var(--red-500)}.icon-delete{color:var(--red-800)}.icon-warning{color:var(--yellow-500)}.icon-info{color:var(--blue-800)}.icon-success{color:var(--green-500)}\n"], dependencies: [{ kind: "component", type: UicButtonComponent, selector: "ui-button", inputs: ["text", "icon", "rightIcon", "iconOnly", "disabled", "loading", "size", "type", "color"] }] });
|
|
3796
3796
|
}
|
|
3797
3797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TinyAlertComponent, decorators: [{
|
|
3798
3798
|
type: Component,
|
|
3799
|
-
args: [{ selector: 'ui-tiny-alert', imports: [UicButtonComponent], template: "<div class=\"alert-wrapper\">\r\n @if (data.iconPath) {\r\n <img [src]=\"data.iconPath\" alt=\"\"> \r\n }@else{\r\n <i [class]=\"'alert-main-icon icon-'+data.type + ' ' + data.iconChar\" ></i>\r\n }\r\n <h3 [class]=\"'icon-'+data.type\"> {{data.title}} </
|
|
3799
|
+
args: [{ selector: 'ui-tiny-alert', imports: [UicButtonComponent], template: "<div class=\"alert-wrapper\">\r\n @if (data.iconPath) {\r\n <img [src]=\"data.iconPath\" alt=\"\"> \r\n }@else{\r\n <i [class]=\"'alert-main-icon icon-'+data.type + ' ' + data.iconChar\" ></i>\r\n }\r\n <div class=\"h3-alert\" [class]=\"'icon-'+data.type\"> {{data.title}} </div>\r\n <div class=\"alert-body\" [innerHTML]=\"data.body\"> </div>\r\n <div class=\"tinyalert-buttons\">\r\n @if (data.showCancelButton) {\r\n <ui-button (click)=\"close(false)\" type=\"bordered\" [color]=\"data.cancelButtonColor??'black'\" size=\"l\"> {{data.cancelButtonText??'Cancelar'}} </ui-button>\r\n }\r\n <ui-button (click)=\"close(true)\" [color]=\"data.okButtonColor??'primary'\" size=\"l\"> {{data.okButtonText??'Continuar'}} </ui-button>\r\n </div>\r\n <button class=\"floating-close\" (click)=\"close(false)\" >\r\n <i class=\"ri-close-line\"></i>\r\n </button>\r\n</div>\r\n", styles: [".alert-wrapper{position:relative;display:flex;flex-direction:column;align-items:center;padding:20px 20px 5px;width:400px;max-width:100%;-webkit-user-select:none;user-select:none}.alert-wrapper img{height:88px;margin-bottom:20px}.tinyalert-buttons{padding-top:20px;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}.h3-alert{font-size:24px;font-weight:800;margin-bottom:10px}.alert-body{font-size:18px;font-weight:500;line-height:24px;text-align:center;color:var(--grey-700)}.floating-close{position:absolute;top:-10px;right:-20px;background-color:transparent;font-size:28px;border:none;cursor:pointer;transition:ease .3s}.floating-close:hover{color:var(--red-500)}@media (max-width: 479px){.floating-close{top:0;right:-5px}}.alert-main-icon{font-size:80px;margin-bottom:10px}.icon-error{color:var(--red-500)}.icon-delete{color:var(--red-800)}.icon-warning{color:var(--yellow-500)}.icon-info{color:var(--blue-800)}.icon-success{color:var(--green-500)}\n"] }]
|
|
3800
3800
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
3801
3801
|
type: Inject,
|
|
3802
3802
|
args: [MODAL_DATA]
|
|
@@ -4666,8 +4666,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
4666
4666
|
args: [{ selector: 'ui-alert-container', imports: [UiAlertComponent], template: "<div class=\"alert-container\">\r\n @for (alert of alerts; track alert.id){\r\n <ui-alert\r\n (closeAlert)=\"dismis($event)\"\r\n [alert]=\"alert\">\r\n </ui-alert>\r\n } \r\n</div>\r\n", styles: [".alert-container{position:fixed;top:1rem;right:1rem;display:flex;flex-direction:column;gap:.5rem;z-index:9999}\n"] }]
|
|
4667
4667
|
}], ctorParameters: () => [{ type: UicPushAlertService }] });
|
|
4668
4668
|
|
|
4669
|
-
const base = createValueAccessor();
|
|
4670
|
-
class UicSignaturePadComponent extends base {
|
|
4669
|
+
const base$1 = createValueAccessor();
|
|
4670
|
+
class UicSignaturePadComponent extends base$1 {
|
|
4671
4671
|
width = 400;
|
|
4672
4672
|
height = 200;
|
|
4673
4673
|
strokeColor = '#111827';
|
|
@@ -5128,6 +5128,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
5128
5128
|
type: Output
|
|
5129
5129
|
}] } });
|
|
5130
5130
|
|
|
5131
|
+
const base = createValueAccessor();
|
|
5132
|
+
class UicTagSelectorComponent extends base {
|
|
5133
|
+
icon = ''; // Icono externo
|
|
5134
|
+
iconColor = 'black';
|
|
5135
|
+
// TEXTO
|
|
5136
|
+
label = '';
|
|
5137
|
+
error = '';
|
|
5138
|
+
tip = '';
|
|
5139
|
+
disabled = false;
|
|
5140
|
+
loading = false;
|
|
5141
|
+
placeholder = 'Buscar...';
|
|
5142
|
+
buttonText = 'Agregar tag';
|
|
5143
|
+
predefinedTitle = 'Tags predefinidos';
|
|
5144
|
+
newTagTitle = 'Nuevo tag';
|
|
5145
|
+
predefinedLabels = [];
|
|
5146
|
+
selectedTags = [];
|
|
5147
|
+
filterText = '';
|
|
5148
|
+
newTagLabel = '';
|
|
5149
|
+
filterArray = [...this.predefinedLabels];
|
|
5150
|
+
filter() {
|
|
5151
|
+
this.filterArray = this.predefinedLabels.filter(f => f.name.toLocaleLowerCase().includes(this.filterText.toLocaleLowerCase()));
|
|
5152
|
+
}
|
|
5153
|
+
select(tag) {
|
|
5154
|
+
const idx = this.selectedTags.findIndex(f => f.name == tag.name);
|
|
5155
|
+
if (idx != -1) {
|
|
5156
|
+
this.selectedTags.splice(idx, 1);
|
|
5157
|
+
}
|
|
5158
|
+
else {
|
|
5159
|
+
this.selectedTags.push(tag);
|
|
5160
|
+
}
|
|
5161
|
+
this.notifyChange(this.selectedTags);
|
|
5162
|
+
}
|
|
5163
|
+
removeTag(tag) {
|
|
5164
|
+
this.select(tag);
|
|
5165
|
+
}
|
|
5166
|
+
createTag() {
|
|
5167
|
+
const newTag = {
|
|
5168
|
+
id: 0,
|
|
5169
|
+
color: 'blue',
|
|
5170
|
+
name: this.newTagLabel
|
|
5171
|
+
};
|
|
5172
|
+
this.predefinedLabels.push(newTag);
|
|
5173
|
+
this.filterText = '';
|
|
5174
|
+
this.filter();
|
|
5175
|
+
this.select(newTag);
|
|
5176
|
+
this.newTagLabel = '';
|
|
5177
|
+
}
|
|
5178
|
+
isSelected(name) {
|
|
5179
|
+
return this.selectedTags.some(t => t.name === name);
|
|
5180
|
+
}
|
|
5181
|
+
writeValue(value) {
|
|
5182
|
+
const safeValue = Array.isArray(value) ? value : [];
|
|
5183
|
+
super.writeValue(safeValue);
|
|
5184
|
+
this.selectedTags = [...safeValue];
|
|
5185
|
+
}
|
|
5186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UicTagSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5187
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: UicTagSelectorComponent, isStandalone: true, selector: "ui-tag-selector", inputs: { icon: "icon", iconColor: "iconColor", label: "label", error: "error", tip: "tip", disabled: "disabled", loading: "loading", placeholder: "placeholder", buttonText: "buttonText", predefinedTitle: "predefinedTitle", newTagTitle: "newTagTitle", predefinedLabels: "predefinedLabels" }, providers: [
|
|
5188
|
+
{
|
|
5189
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5190
|
+
useExisting: forwardRef(() => UicTagSelectorComponent),
|
|
5191
|
+
multi: true
|
|
5192
|
+
}
|
|
5193
|
+
], usesInheritance: true, ngImport: i0, template: "\r\n<ui-input-wrapper\r\n [icon]=\"icon\"\r\n [iconColor]=\"iconColor\"\r\n [label]=\"label\"\r\n [error]=\"error\"\r\n [tip]=\"tip\"\r\n [disabled]=\"disabled\">\r\n<div class=\"tags-reel\">\r\n @for (item of selectedTags; track $index) {\r\n <div [class]=\"'selected-tag lc-'\" ><i class=\"ri-map-pin-3-fill\"></i>{{item.name}} <i (click)=\"removeTag(item)\" class=\"ri-close-line close-icon\"></i> </div>\r\n }\r\n <ui-overlay-card>\r\n <ui-button button type=\"bordered\" color=\"black\" icon=\"ri-add-line\" size=\"s\">{{buttonText}}</ui-button>\r\n <ng-container content >\r\n\r\n <ui-input internalIcon=\"ri-search-line\" internalIconColor=\"blue\">\r\n <input [placeholder]=\"placeholder\" [(ngModel)]=\"filterText\" (ngModelChange)=\"filter()\" >\r\n </ui-input>\r\n <div class=\"tags-overflow\">\r\n <div class=\"tags-title\">{{predefinedTitle}}</div>\r\n @for(item of filterArray; track $index){\r\n <div (click)=\"select(item)\" class=\"tag-option\"> \r\n <i class=\"ri-circle-fill f-grey\"></i> \r\n <div style=\"flex: 1 1;\">{{item.name}}</div> \r\n @if ( isSelected(item.name) ) {\r\n <i class=\"ri-check-line\"></i> \r\n }\r\n </div>\r\n }\r\n <div class=\"new-tag\"> \r\n <div class=\"new-tag-label\">{{newTagTitle}}:</div>\r\n <div class=\"input-tag\">\r\n <input [(ngModel)]=\"newTagLabel\" type=\"text\">\r\n <ui-button (click)=\"createTag()\" size=\"s\" [iconOnly]=\"true\" icon=\"ri-add-line\"></ui-button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ui-overlay-card>\r\n</div> \r\n</ui-input-wrapper>", styles: [".tags-reel{display:flex;gap:10px;flex-wrap:wrap}.selected-tag{display:flex;gap:5px;align-items:center;font-size:12px;line-height:28px;padding:0 12px;border:solid 1px var(--grey-200);border-radius:20px}.tags-title{font-size:13px;padding:4px;font-weight:600;margin-bottom:5px;color:var(--grey-500)}.tag-option{font-size:14px;padding:5px 10px;border-radius:5px;transition:ease;display:flex;gap:10px;color:var(--grey-600);cursor:pointer}.tag-option:hover{background-color:var(--grey-200)}.tags-overflow{display:flex;flex-direction:column;gap:2px;padding:3px;max-height:250px;overflow:auto}.new-tag{padding:5px;border-top:solid 1px var(--grey-200)}.new-tag-label{font-size:13px;line-height:25px;color:var(--grey-500)}.input-tag{display:flex;gap:5px}.input-tag input{border:solid 1px var(--grey-300);border-radius:8px;padding:0 10px}.f-grey{color:var(--grey-200)}\n"], dependencies: [{ kind: "component", type: UicOverlayCardComponent, selector: "ui-overlay-card" }, { kind: "component", type: UicInputComponent, selector: "ui-input", inputs: ["icon", "iconColor", "internalIcon", "internalIconColor", "size", "label", "error", "tip", "disabled", "loading"], outputs: ["clickButton"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputWrapperComponent, selector: "ui-input-wrapper", inputs: ["icon", "iconColor", "label", "error", "tip", "disabled"] }, { kind: "component", type: UicButtonComponent, selector: "ui-button", inputs: ["text", "icon", "rightIcon", "iconOnly", "disabled", "loading", "size", "type", "color"] }] });
|
|
5194
|
+
}
|
|
5195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UicTagSelectorComponent, decorators: [{
|
|
5196
|
+
type: Component,
|
|
5197
|
+
args: [{ selector: 'ui-tag-selector', imports: [
|
|
5198
|
+
UicOverlayCardComponent,
|
|
5199
|
+
UicInputComponent,
|
|
5200
|
+
FormsModule,
|
|
5201
|
+
InputWrapperComponent,
|
|
5202
|
+
UicButtonComponent
|
|
5203
|
+
], providers: [
|
|
5204
|
+
{
|
|
5205
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5206
|
+
useExisting: forwardRef(() => UicTagSelectorComponent),
|
|
5207
|
+
multi: true
|
|
5208
|
+
}
|
|
5209
|
+
], template: "\r\n<ui-input-wrapper\r\n [icon]=\"icon\"\r\n [iconColor]=\"iconColor\"\r\n [label]=\"label\"\r\n [error]=\"error\"\r\n [tip]=\"tip\"\r\n [disabled]=\"disabled\">\r\n<div class=\"tags-reel\">\r\n @for (item of selectedTags; track $index) {\r\n <div [class]=\"'selected-tag lc-'\" ><i class=\"ri-map-pin-3-fill\"></i>{{item.name}} <i (click)=\"removeTag(item)\" class=\"ri-close-line close-icon\"></i> </div>\r\n }\r\n <ui-overlay-card>\r\n <ui-button button type=\"bordered\" color=\"black\" icon=\"ri-add-line\" size=\"s\">{{buttonText}}</ui-button>\r\n <ng-container content >\r\n\r\n <ui-input internalIcon=\"ri-search-line\" internalIconColor=\"blue\">\r\n <input [placeholder]=\"placeholder\" [(ngModel)]=\"filterText\" (ngModelChange)=\"filter()\" >\r\n </ui-input>\r\n <div class=\"tags-overflow\">\r\n <div class=\"tags-title\">{{predefinedTitle}}</div>\r\n @for(item of filterArray; track $index){\r\n <div (click)=\"select(item)\" class=\"tag-option\"> \r\n <i class=\"ri-circle-fill f-grey\"></i> \r\n <div style=\"flex: 1 1;\">{{item.name}}</div> \r\n @if ( isSelected(item.name) ) {\r\n <i class=\"ri-check-line\"></i> \r\n }\r\n </div>\r\n }\r\n <div class=\"new-tag\"> \r\n <div class=\"new-tag-label\">{{newTagTitle}}:</div>\r\n <div class=\"input-tag\">\r\n <input [(ngModel)]=\"newTagLabel\" type=\"text\">\r\n <ui-button (click)=\"createTag()\" size=\"s\" [iconOnly]=\"true\" icon=\"ri-add-line\"></ui-button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ui-overlay-card>\r\n</div> \r\n</ui-input-wrapper>", styles: [".tags-reel{display:flex;gap:10px;flex-wrap:wrap}.selected-tag{display:flex;gap:5px;align-items:center;font-size:12px;line-height:28px;padding:0 12px;border:solid 1px var(--grey-200);border-radius:20px}.tags-title{font-size:13px;padding:4px;font-weight:600;margin-bottom:5px;color:var(--grey-500)}.tag-option{font-size:14px;padding:5px 10px;border-radius:5px;transition:ease;display:flex;gap:10px;color:var(--grey-600);cursor:pointer}.tag-option:hover{background-color:var(--grey-200)}.tags-overflow{display:flex;flex-direction:column;gap:2px;padding:3px;max-height:250px;overflow:auto}.new-tag{padding:5px;border-top:solid 1px var(--grey-200)}.new-tag-label{font-size:13px;line-height:25px;color:var(--grey-500)}.input-tag{display:flex;gap:5px}.input-tag input{border:solid 1px var(--grey-300);border-radius:8px;padding:0 10px}.f-grey{color:var(--grey-200)}\n"] }]
|
|
5210
|
+
}], propDecorators: { icon: [{
|
|
5211
|
+
type: Input
|
|
5212
|
+
}], iconColor: [{
|
|
5213
|
+
type: Input
|
|
5214
|
+
}], label: [{
|
|
5215
|
+
type: Input
|
|
5216
|
+
}], error: [{
|
|
5217
|
+
type: Input
|
|
5218
|
+
}], tip: [{
|
|
5219
|
+
type: Input
|
|
5220
|
+
}], disabled: [{
|
|
5221
|
+
type: Input
|
|
5222
|
+
}], loading: [{
|
|
5223
|
+
type: Input
|
|
5224
|
+
}], placeholder: [{
|
|
5225
|
+
type: Input
|
|
5226
|
+
}], buttonText: [{
|
|
5227
|
+
type: Input
|
|
5228
|
+
}], predefinedTitle: [{
|
|
5229
|
+
type: Input
|
|
5230
|
+
}], newTagTitle: [{
|
|
5231
|
+
type: Input
|
|
5232
|
+
}], predefinedLabels: [{
|
|
5233
|
+
type: Input
|
|
5234
|
+
}] } });
|
|
5235
|
+
|
|
5131
5236
|
const simpleFade = trigger('simpleFade', [
|
|
5132
5237
|
transition(':enter', [style({ opacity: 0 }), animate('.3s ease', style({ opacity: 1 }))]),
|
|
5133
5238
|
transition(':leave', [animate('.3s ease', style({ opacity: 0 }))])
|
|
@@ -5166,5 +5271,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
5166
5271
|
* Generated bundle index. Do not edit.
|
|
5167
5272
|
*/
|
|
5168
5273
|
|
|
5169
|
-
export { DROPDOWN_OVERLAY_CONTROLS, FirstCapitalPipe, MODAL_CLOSE_EVENT, MODAL_CLOSE_REQUEST, MODAL_COMPONENT, MODAL_CONFIG, MODAL_DATA, UiDropdownCloseDirective, UiModalRef, UicAccordionComponent, UicActionButtonComponent, UicAlertContainerComponent, UicButtonComponent, UicCheckboxComponent, UicDatePickerComponent, UicDropdownContainerComponent, UicFileInputComponent, UicFormWrapperComponent, UicInputComponent, UicKpiCardComponent, UicModalService, UicMultySearcherComponent, UicMultySelectComponent, UicNameInitsPipe, UicOverlayCardComponent, UicPhoneInputComponent, UicPoolOptionsComponent, UicPortletCardComponent, UicPushAlertService, UicRadioComponent, UicSearcherComponent, UicSelectComponent, UicShortTableComponent, UicSignaturePadComponent, UicSkeletonLoaderComponent, UicSliderComponent, UicStepTabsComponent, UicStepsFormComponent, UicSwichComponent, UicTableComponent, UicTabsButtonComponent, UicTimePickerComponent, UicTinyAlertService, UicToolTipDirective, UicWorkPanelComponent, animatedRow, fadeAndRise, fadeBackdrop, helperFormMapFormdataToObject, helperTableMapDatoToColums, highlightRow, isMobile, pushTop, sideModal, simpleFade };
|
|
5274
|
+
export { DROPDOWN_OVERLAY_CONTROLS, FirstCapitalPipe, MODAL_CLOSE_EVENT, MODAL_CLOSE_REQUEST, MODAL_COMPONENT, MODAL_CONFIG, MODAL_DATA, UiDropdownCloseDirective, UiModalRef, UicAccordionComponent, UicActionButtonComponent, UicAlertContainerComponent, UicButtonComponent, UicCheckboxComponent, UicDatePickerComponent, UicDropdownContainerComponent, UicFileInputComponent, UicFormWrapperComponent, UicInputComponent, UicKpiCardComponent, UicModalService, UicMultySearcherComponent, UicMultySelectComponent, UicNameInitsPipe, UicOverlayCardComponent, UicPhoneInputComponent, UicPoolOptionsComponent, UicPortletCardComponent, UicPushAlertService, UicRadioComponent, UicSearcherComponent, UicSelectComponent, UicShortTableComponent, UicSignaturePadComponent, UicSkeletonLoaderComponent, UicSliderComponent, UicStepTabsComponent, UicStepsFormComponent, UicSwichComponent, UicTableComponent, UicTabsButtonComponent, UicTagSelectorComponent, UicTimePickerComponent, UicTinyAlertService, UicToolTipDirective, UicWorkPanelComponent, animatedRow, fadeAndRise, fadeBackdrop, helperFormMapFormdataToObject, helperTableMapDatoToColums, highlightRow, isMobile, pushTop, sideModal, simpleFade };
|
|
5170
5275
|
//# sourceMappingURL=ui-core-abv.mjs.map
|