@apipass/inputs 0.2.5-alpha.2 → 0.2.5-alpha.3
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/bundles/apipass-inputs.umd.js +129 -84
- package/bundles/apipass-inputs.umd.js.map +1 -1
- package/bundles/apipass-inputs.umd.min.js +2 -2
- package/bundles/apipass-inputs.umd.min.js.map +1 -1
- package/custom-select/custom-select.component.d.ts +9 -4
- package/esm2015/custom-select/custom-select.component.js +102 -61
- package/esm2015/inputs.module.js +6 -2
- package/fesm2015/apipass-inputs.js +100 -56
- package/fesm2015/apipass-inputs.js.map +1 -1
- package/inputs.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelementEnd, ɵɵadvance, ɵɵproperty, ɵɵtext, ɵɵtextInterpolate, ɵɵdefineComponent, ɵɵProvidersFeature, forwardRef, ɵɵInheritDefinitionFeature, ɵɵtemplate, ɵɵpipe, ɵɵpipeBind2, ɵɵpipeBind1, ɵɵgetInheritedFactory, ɵsetClassMetadata, Component, ViewEncapsulation, Input, ɵɵreference, ɵɵtextInterpolate2, ɵɵelement, EventEmitter, ɵɵpureFunction1, ChangeDetectionStrategy, Output, ɵɵpureFunction3, ɵɵpureFunction2, ɵɵsanitizeUrl, ɵɵprojectionDef, ɵɵprojection, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ViewChild, ɵɵdirectiveInject, NgZone, ɵɵdefineDirective, Directive, ɵɵ
|
|
1
|
+
import { ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelementEnd, ɵɵadvance, ɵɵproperty, ɵɵtext, ɵɵtextInterpolate, ɵɵdefineComponent, ɵɵProvidersFeature, forwardRef, ɵɵInheritDefinitionFeature, ɵɵtemplate, ɵɵpipe, ɵɵpipeBind2, ɵɵpipeBind1, ɵɵgetInheritedFactory, ɵsetClassMetadata, Component, ViewEncapsulation, Input, ɵɵreference, ɵɵtextInterpolate2, ɵɵelement, EventEmitter, ɵɵpureFunction1, ChangeDetectionStrategy, Output, ɵɵpureFunction3, ɵɵpureFunction2, ɵɵsanitizeUrl, ɵɵprojectionDef, ɵɵprojection, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ViewChild, ɵɵdirectiveInject, NgZone, ɵɵdefineDirective, Directive, ɵɵpipeBind3, ElementRef, ɵɵattribute, ɵɵpureFunction0, HostBinding, HostListener, ɵɵtextInterpolate1, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
2
2
|
import { NG_VALUE_ACCESSOR, NgControlStatus, NgModel, DefaultValueAccessor, RequiredValidator, MinLengthValidator, NumberValueAccessor, FormsModule } from '@angular/forms';
|
|
3
3
|
import { NgIf, NgForOf, NgClass, NgStyle, CommonModule } from '@angular/common';
|
|
4
4
|
import { MatFormField, MatSuffix, MatLabel, MatHint, MatPrefix, MatFormFieldModule } from '@angular/material/form-field';
|
|
@@ -15,6 +15,7 @@ import { Subject, fromEvent } from 'rxjs';
|
|
|
15
15
|
import { debounceTime, distinctUntilChanged, takeUntil, tap, skip } from 'rxjs/operators';
|
|
16
16
|
import { NgSelectComponent, ɵj, ɵf, ɵh, NgSelectModule } from '@ng-select/ng-select';
|
|
17
17
|
import { MatSelectFilterModule } from 'mat-select-filter';
|
|
18
|
+
import { CdkOverlayOrigin, CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
|
|
18
19
|
import { DndDropzoneDirective, DndModule } from 'ngx-drag-drop';
|
|
19
20
|
import { RouterModule } from '@angular/router';
|
|
20
21
|
import 'brace';
|
|
@@ -1078,62 +1079,68 @@ class CustomSelectItem {
|
|
|
1078
1079
|
}
|
|
1079
1080
|
}
|
|
1080
1081
|
|
|
1081
|
-
const _c0$4 = ["
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1082
|
+
const _c0$4 = ["trigger"];
|
|
1083
|
+
const _c1$3 = ["input"];
|
|
1084
|
+
function CustomSelectComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
1085
|
+
const _r6 = ɵɵgetCurrentView();
|
|
1086
|
+
ɵɵelementStart(0, "span", 11);
|
|
1087
|
+
ɵɵlistener("click", function CustomSelectComponent_span_6_Template_span_click_0_listener($event) { ɵɵrestoreView(_r6); const ctx_r5 = ɵɵnextContext(); return ctx_r5.removeClick($event); });
|
|
1088
|
+
ɵɵelement(1, "i", 12);
|
|
1087
1089
|
ɵɵelementEnd();
|
|
1088
1090
|
} }
|
|
1089
|
-
function
|
|
1090
|
-
const
|
|
1091
|
-
ɵɵelementStart(0, "li",
|
|
1092
|
-
ɵɵlistener("click", function
|
|
1091
|
+
function CustomSelectComponent_ng_template_10_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
1092
|
+
const _r10 = ɵɵgetCurrentView();
|
|
1093
|
+
ɵɵelementStart(0, "li", 20);
|
|
1094
|
+
ɵɵlistener("click", function CustomSelectComponent_ng_template_10_li_4_Template_li_click_0_listener() { ɵɵrestoreView(_r10); const i_r8 = ctx.$implicit; const ctx_r9 = ɵɵnextContext(2); return ctx_r9.selectItem(i_r8); })("mousedown", function CustomSelectComponent_ng_template_10_li_4_Template_li_mousedown_0_listener() { ɵɵrestoreView(_r10); const i_r8 = ctx.$implicit; const ctx_r11 = ɵɵnextContext(2); return ctx_r11.selectItem(i_r8); });
|
|
1093
1095
|
ɵɵtext(1);
|
|
1094
1096
|
ɵɵelementEnd();
|
|
1095
1097
|
} if (rf & 2) {
|
|
1096
|
-
const
|
|
1098
|
+
const i_r8 = ctx.$implicit;
|
|
1099
|
+
const ctx_r7 = ɵɵnextContext(2);
|
|
1097
1100
|
ɵɵadvance(1);
|
|
1098
|
-
ɵɵ
|
|
1101
|
+
ɵɵtextInterpolate2(" ", i_r8.text, " - ", ctx_r7._triggerRect == null ? null : ctx_r7._triggerRect.width, " ");
|
|
1099
1102
|
} }
|
|
1100
|
-
function
|
|
1101
|
-
const
|
|
1102
|
-
ɵɵelementStart(0, "ul",
|
|
1103
|
-
ɵɵelementStart(1, "li",
|
|
1104
|
-
ɵɵelementStart(2, "mat-form-field",
|
|
1105
|
-
ɵɵelementStart(3, "input",
|
|
1106
|
-
ɵɵlistener("ngModelChange", function
|
|
1103
|
+
function CustomSelectComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
1104
|
+
const _r13 = ɵɵgetCurrentView();
|
|
1105
|
+
ɵɵelementStart(0, "ul", 13);
|
|
1106
|
+
ɵɵelementStart(1, "li", 14);
|
|
1107
|
+
ɵɵelementStart(2, "mat-form-field", 15);
|
|
1108
|
+
ɵɵelementStart(3, "input", 16);
|
|
1109
|
+
ɵɵlistener("ngModelChange", function CustomSelectComponent_ng_template_10_Template_input_ngModelChange_3_listener($event) { ɵɵrestoreView(_r13); const ctx_r12 = ɵɵnextContext(); return ctx_r12.searchText = $event; })("blur", function CustomSelectComponent_ng_template_10_Template_input_blur_3_listener($event) { ɵɵrestoreView(_r13); const ctx_r14 = ɵɵnextContext(); return ctx_r14.onBlur($event); });
|
|
1107
1110
|
ɵɵelementEnd();
|
|
1108
1111
|
ɵɵelementEnd();
|
|
1109
1112
|
ɵɵelementEnd();
|
|
1110
|
-
ɵɵtemplate(4,
|
|
1113
|
+
ɵɵtemplate(4, CustomSelectComponent_ng_template_10_li_4_Template, 2, 2, "li", 17);
|
|
1111
1114
|
ɵɵpipe(5, "selectFilter");
|
|
1112
|
-
ɵɵelementStart(6, "li",
|
|
1113
|
-
ɵɵlistener("mousedown", function
|
|
1114
|
-
ɵɵelement(7, "span",
|
|
1115
|
+
ɵɵelementStart(6, "li", 18);
|
|
1116
|
+
ɵɵlistener("mousedown", function CustomSelectComponent_ng_template_10_Template_li_mousedown_6_listener() { ɵɵrestoreView(_r13); const ctx_r15 = ɵɵnextContext(); return ctx_r15.addItem(); })("click", function CustomSelectComponent_ng_template_10_Template_li_click_6_listener() { ɵɵrestoreView(_r13); const ctx_r16 = ɵɵnextContext(); return ctx_r16.addItem(); });
|
|
1117
|
+
ɵɵelement(7, "span", 19);
|
|
1115
1118
|
ɵɵelementStart(8, "span");
|
|
1116
|
-
ɵɵtext(9
|
|
1119
|
+
ɵɵtext(9);
|
|
1117
1120
|
ɵɵelementEnd();
|
|
1118
1121
|
ɵɵelementEnd();
|
|
1119
1122
|
ɵɵelementEnd();
|
|
1120
1123
|
} if (rf & 2) {
|
|
1121
|
-
const
|
|
1124
|
+
const ctx_r4 = ɵɵnextContext();
|
|
1122
1125
|
ɵɵadvance(3);
|
|
1123
|
-
ɵɵproperty("placeholder",
|
|
1126
|
+
ɵɵproperty("placeholder", ctx_r4.findPlaceHolder)("ngModel", ctx_r4.searchText);
|
|
1124
1127
|
ɵɵadvance(1);
|
|
1125
|
-
ɵɵproperty("ngForOf", ɵɵpipeBind3(5,
|
|
1128
|
+
ɵɵproperty("ngForOf", ɵɵpipeBind3(5, 4, ctx_r4.items, ctx_r4.searchText, "text"));
|
|
1129
|
+
ɵɵadvance(5);
|
|
1130
|
+
ɵɵtextInterpolate(ctx_r4.addItemLabel);
|
|
1126
1131
|
} }
|
|
1127
|
-
const
|
|
1128
|
-
const
|
|
1132
|
+
const _c2$1 = function (a0) { return { "select-open": a0 }; };
|
|
1133
|
+
const _c3$1 = function () { return { standalone: true }; };
|
|
1134
|
+
const _c4 = function (a0, a1) { return { "fa-caret-down": a0, "fa-caret-up": a1 }; };
|
|
1129
1135
|
class CustomSelectComponent {
|
|
1130
1136
|
constructor() {
|
|
1131
1137
|
this.disabled = false;
|
|
1132
1138
|
this.items = [];
|
|
1133
1139
|
this.allowTyping = false;
|
|
1134
1140
|
this.allowRemove = false;
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1141
|
+
this.addItemLabel = 'Add New Item';
|
|
1142
|
+
this.placeHolder = 'Select';
|
|
1143
|
+
this.findPlaceHolder = 'Find item';
|
|
1137
1144
|
this.searchText = '';
|
|
1138
1145
|
this.onSelect = new EventEmitter();
|
|
1139
1146
|
this.onUnSelect = new EventEmitter();
|
|
@@ -1163,8 +1170,20 @@ class CustomSelectComponent {
|
|
|
1163
1170
|
if (target && target.relatedTarget && target.relatedTarget.classList.contains('search-input-item')) {
|
|
1164
1171
|
return;
|
|
1165
1172
|
}
|
|
1173
|
+
this.setTriggerRect();
|
|
1166
1174
|
this.opened = false;
|
|
1167
1175
|
}
|
|
1176
|
+
ngAfterViewInit() {
|
|
1177
|
+
setTimeout(() => {
|
|
1178
|
+
this.setTriggerRect();
|
|
1179
|
+
}, 300);
|
|
1180
|
+
}
|
|
1181
|
+
setTriggerRect() {
|
|
1182
|
+
setTimeout(() => {
|
|
1183
|
+
var _a;
|
|
1184
|
+
this._triggerRect = (_a = this.trigger) === null || _a === void 0 ? void 0 : _a.nativeElement.getBoundingClientRect();
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1168
1187
|
selectItem(item) {
|
|
1169
1188
|
this.opened = false;
|
|
1170
1189
|
this.selectedItem = item;
|
|
@@ -1180,6 +1199,7 @@ class CustomSelectComponent {
|
|
|
1180
1199
|
this.onAddItem.next();
|
|
1181
1200
|
}
|
|
1182
1201
|
keyPress() {
|
|
1202
|
+
this.setTriggerRect();
|
|
1183
1203
|
if (this.allowTyping) {
|
|
1184
1204
|
this.opened = false;
|
|
1185
1205
|
this.edited = true;
|
|
@@ -1192,6 +1212,7 @@ class CustomSelectComponent {
|
|
|
1192
1212
|
}
|
|
1193
1213
|
}
|
|
1194
1214
|
clicked() {
|
|
1215
|
+
this.setTriggerRect();
|
|
1195
1216
|
this.opened = true;
|
|
1196
1217
|
this.searchText = '';
|
|
1197
1218
|
}
|
|
@@ -1221,11 +1242,18 @@ class CustomSelectComponent {
|
|
|
1221
1242
|
setDisabledState(isDisabled) {
|
|
1222
1243
|
this.disabled = isDisabled;
|
|
1223
1244
|
}
|
|
1224
|
-
arrowClick() {
|
|
1245
|
+
arrowClick(event) {
|
|
1225
1246
|
var _a;
|
|
1226
|
-
|
|
1227
|
-
this.
|
|
1228
|
-
(
|
|
1247
|
+
event.stopPropagation();
|
|
1248
|
+
this.setTriggerRect();
|
|
1249
|
+
if (this.opened) {
|
|
1250
|
+
this.opened = false;
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
this.opened = true;
|
|
1254
|
+
this.searchText = '';
|
|
1255
|
+
(_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
1256
|
+
}
|
|
1229
1257
|
}
|
|
1230
1258
|
removeClick(event) {
|
|
1231
1259
|
event.stopPropagation();
|
|
@@ -1246,41 +1274,49 @@ class CustomSelectComponent {
|
|
|
1246
1274
|
}
|
|
1247
1275
|
CustomSelectComponent.ɵfac = function CustomSelectComponent_Factory(t) { return new (t || CustomSelectComponent)(); };
|
|
1248
1276
|
CustomSelectComponent.ɵcmp = ɵɵdefineComponent({ type: CustomSelectComponent, selectors: [["custom-select"]], viewQuery: function CustomSelectComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1249
|
-
|
|
1277
|
+
ɵɵviewQuery(_c0$4, true);
|
|
1278
|
+
ɵɵviewQuery(_c1$3, true, ElementRef);
|
|
1250
1279
|
} if (rf & 2) {
|
|
1251
1280
|
var _t;
|
|
1281
|
+
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.trigger = _t.first);
|
|
1252
1282
|
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.input = _t.first);
|
|
1253
1283
|
} }, hostVars: 1, hostBindings: function CustomSelectComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1254
1284
|
ɵɵlistener("blur", function CustomSelectComponent_blur_HostBindingHandler($event) { return ctx.onBlur($event.target); });
|
|
1255
1285
|
} if (rf & 2) {
|
|
1256
1286
|
ɵɵattribute("tabindex", ctx.tabindex);
|
|
1257
|
-
} }, inputs: { disabled: "disabled", items: "items", allowTyping: "allowTyping", allowRemove: "allowRemove", placeHolder: "placeHolder", findPlaceHolder: "findPlaceHolder", searchText: "searchText" }, outputs: { onSelect: "onSelect", onUnSelect: "onUnSelect", onAddItem: "onAddItem" }, features: [ɵɵProvidersFeature([{
|
|
1287
|
+
} }, inputs: { disabled: "disabled", items: "items", allowTyping: "allowTyping", allowRemove: "allowRemove", addItemLabel: "addItemLabel", placeHolder: "placeHolder", findPlaceHolder: "findPlaceHolder", searchText: "searchText" }, outputs: { onSelect: "onSelect", onUnSelect: "onUnSelect", onAddItem: "onAddItem" }, features: [ɵɵProvidersFeature([{
|
|
1258
1288
|
provide: NG_VALUE_ACCESSOR,
|
|
1259
1289
|
useExisting: forwardRef(() => CustomSelectComponent),
|
|
1260
1290
|
multi: true
|
|
1261
|
-
}])], decls:
|
|
1262
|
-
ɵɵelementStart(0, "
|
|
1263
|
-
ɵɵelementStart(
|
|
1264
|
-
|
|
1291
|
+
}])], decls: 11, vars: 16, consts: [[1, "custom-select-input"], ["trigger", ""], ["cdkOverlayOrigin", "", "appearance", "fill", "autocomplete", "off", 1, "custom-select-component", 3, "ngClass"], ["origin", "cdkOverlayOrigin"], ["matInput", "", "dndDropzone", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelOptions", "disabled", "focus", "blur", "ngModelChange", "keyup", "click", "dndDrop"], ["input", ""], ["title", "Remover", "class", "remove-icon", 3, "click", 4, "ngIf"], [1, "open-icon", 3, "click"], [1, "fas", 3, "ngClass"], [1, "custom-select-component"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayMinWidth"], ["title", "Remover", 1, "remove-icon", 3, "click"], [1, "fa", "fa-times"], [1, "ul-ac"], [1, "li-search", "search-input-item"], ["appearance", "fill", 1, "apipass-input-text", "search-input-item"], ["matInput", "", "aria-autocomplete", "none", "autocomplete", "off", 1, "search-input-item", 3, "placeholder", "ngModel", "ngModelChange", "blur"], ["class", "clickable", 3, "click", "mousedown", 4, "ngFor", "ngForOf"], [1, "li-add", 3, "mousedown", "click"], [1, "fa", "fa-plus-circle"], [1, "clickable", 3, "click", "mousedown"]], template: function CustomSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1292
|
+
ɵɵelementStart(0, "div", 0, 1);
|
|
1293
|
+
ɵɵelementStart(2, "mat-form-field", 2, 3);
|
|
1294
|
+
ɵɵelementStart(4, "input", 4, 5);
|
|
1295
|
+
ɵɵlistener("focus", function CustomSelectComponent_Template_input_focus_4_listener() { return ctx.opened = true; })("blur", function CustomSelectComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); })("ngModelChange", function CustomSelectComponent_Template_input_ngModelChange_4_listener($event) { return ctx.value = $event; })("keyup", function CustomSelectComponent_Template_input_keyup_4_listener() { return ctx.keyPress(); })("click", function CustomSelectComponent_Template_input_click_4_listener() { return ctx.clicked(); })("dndDrop", function CustomSelectComponent_Template_input_dndDrop_4_listener($event) { return ctx.onDrop($event); });
|
|
1265
1296
|
ɵɵelementEnd();
|
|
1266
|
-
ɵɵtemplate(
|
|
1267
|
-
ɵɵelementStart(
|
|
1268
|
-
ɵɵlistener("click", function
|
|
1269
|
-
ɵɵelement(
|
|
1297
|
+
ɵɵtemplate(6, CustomSelectComponent_span_6_Template, 2, 0, "span", 6);
|
|
1298
|
+
ɵɵelementStart(7, "span", 7);
|
|
1299
|
+
ɵɵlistener("click", function CustomSelectComponent_Template_span_click_7_listener($event) { return ctx.arrowClick($event); });
|
|
1300
|
+
ɵɵelement(8, "i", 8);
|
|
1270
1301
|
ɵɵelementEnd();
|
|
1271
1302
|
ɵɵelementEnd();
|
|
1272
|
-
|
|
1273
|
-
|
|
1303
|
+
ɵɵelementEnd();
|
|
1304
|
+
ɵɵelementStart(9, "div", 9);
|
|
1305
|
+
ɵɵtemplate(10, CustomSelectComponent_ng_template_10_Template, 10, 8, "ng-template", 10);
|
|
1274
1306
|
ɵɵelementEnd();
|
|
1275
1307
|
} if (rf & 2) {
|
|
1276
|
-
|
|
1277
|
-
ɵɵadvance(
|
|
1278
|
-
ɵɵproperty("
|
|
1308
|
+
const _r1 = ɵɵreference(3);
|
|
1309
|
+
ɵɵadvance(2);
|
|
1310
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(10, _c2$1, ctx.opened));
|
|
1311
|
+
ɵɵadvance(2);
|
|
1312
|
+
ɵɵproperty("placeholder", ctx.placeHolder)("ngModel", ctx.value)("ngModelOptions", ɵɵpureFunction0(12, _c3$1))("disabled", ctx.disabled);
|
|
1279
1313
|
ɵɵadvance(2);
|
|
1280
1314
|
ɵɵproperty("ngIf", ctx.allowRemove);
|
|
1281
|
-
ɵɵadvance(
|
|
1282
|
-
ɵɵproperty("
|
|
1283
|
-
} }, directives: [MatFormField, NgClass, MatInput, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel, NgIf, NgForOf], pipes: [SelectFilterPipe], styles: ["[_ngcontent-%COMP%]:root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.text-primary[_ngcontent-%COMP%]{color:var(--color-primary)!important}.text-secondary[_ngcontent-%COMP%]{color:var(--color-secondary)!important}.text-tertiary[_ngcontent-%COMP%]{color:var(--color-fonts-tertiary)!important}.text-weight-bold[_ngcontent-%COMP%]{font-weight:700!important}.text-weight-normal[_ngcontent-%COMP%]{font-weight:400!important}.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-underline[_ngcontent-%COMP%]{display:none}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix[_ngcontent-%COMP%]{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix[_ngcontent-%COMP%], .mat-select-arrow-wrapper[_ngcontent-%COMP%]{display:flex!important}.mat-icon-button[_ngcontent-%COMP%]{width:auto!important}.no-border[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border:none!important}.no-border[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:1px}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-10px}.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%]{font-size:14px}.placeholder-primary[_ngcontent-%COMP%] .mat-focused[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-focused .mat-form-field-placeholder, .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary[_ngcontent-%COMP%] input[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:var(--color-primary)!important}.placeholder-bold[_ngcontent-%COMP%] .mat-focused[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-focused .mat-form-field-placeholder, .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold[_ngcontent-%COMP%] input[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{font-weight:700!important}.apipass-input-text[_ngcontent-%COMP%]{width:100%}.apipass-input-text[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:10px!important}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .apipass-input-text[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .apipass-search-input-text[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .apipass-select[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .custom-select-component[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding:0!important}.apipass-date-filter[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .apipass-input-text[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .apipass-search-input-text[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .apipass-select[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .custom-select-component[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:auto!important;width:auto!important}.apipass-date-filter.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-input-text.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-search-input-text.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-select.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .custom-select-component.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%]{padding-top:0;top:auto!important}.apipass-date-filter.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .apipass-input-text.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .apipass-search-input-text.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .apipass-select.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-component.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-input-text.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-search-input-text.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-select.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .custom-select-component.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%]{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text[_ngcontent-%COMP%]{width:100%}.apipass-search-input-text.small-text[_ngcontent-%COMP%]{font-size:12px}.apipass-search-input-text[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{margin-top:-5px!important}.custom-select-component[_ngcontent-%COMP%]{width:100%}.custom-select-component[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:1px 10px!important}.apipass-select[_ngcontent-%COMP%]{width:100%}.apipass-select[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:10px 5px 10px 10px!important}.apipass-select.label-input[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter[_ngcontent-%COMP%]{width:100%}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:7px 10px!important}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-suffix[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#777;cursor:pointer}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0!important}.custom-select-component[_ngcontent-%COMP%]{cursor:pointer}.custom-select-component[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:#fff!important;height:37px}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;box-sizing:border-box;list-style:none;margin-top:-1px;padding:0;position:absolute;width:calc(100% - 30px);z-index:7!important}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{cursor:pointer;font-size:12px;overflow:hidden;padding:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background:#bbbcbc}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%]{border-top:1px solid #d3d3d3}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#ff8f17;padding-right:5px}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background-color:#898a8a!important}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#fff!important}.custom-select-component[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:red;margin-right:10px}.custom-select-component[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:rgba(0,0,0,.54)}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]{border-bottom:1px solid #ccc!important;cursor:default!important}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]:hover{background:#fff!important}.select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-radius:6px 6px 0 0!important}"] });
|
|
1315
|
+
ɵɵadvance(2);
|
|
1316
|
+
ɵɵproperty("ngClass", ɵɵpureFunction2(13, _c4, !ctx.opened, ctx.opened));
|
|
1317
|
+
ɵɵadvance(2);
|
|
1318
|
+
ɵɵproperty("cdkConnectedOverlayOrigin", _r1)("cdkConnectedOverlayOpen", ctx.opened && (ctx.value && ctx.value.length !== 0 || (ctx.items == null ? null : ctx.items.length) > 0))("cdkConnectedOverlayMinWidth", ctx._triggerRect == null ? null : ctx._triggerRect.width);
|
|
1319
|
+
} }, directives: [MatFormField, CdkOverlayOrigin, NgClass, MatInput, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel, NgIf, CdkConnectedOverlay, NgForOf], pipes: [SelectFilterPipe], styles: ["{cursor:pointer} input{background:#fff!important;height:37px} .ul-ac{background:#fff;border:1px solid #ccc;box-sizing:border-box;list-style:none;margin-top:-1px;padding:0;position:relative;width:100%} .ul-ac li{cursor:pointer;font-size:12px;overflow:hidden;padding:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap} .ul-ac li:hover{background:#bbbcbc} .ul-ac li .mat-form-field-flex{height:37px!important} .ul-ac li .mat-form-field-flex input{height:auto} .ul-ac .li-add{border-top:1px solid #d3d3d3} .ul-ac .li-add .fa{color:#ff8f17;padding-right:5px} .selected{background-color:#898a8a!important} .selected .fa{color:#fff!important} .remove-icon i{color:red;margin-right:10px} .open-icon{cursor:pointer} .open-icon i{color:rgba(0,0,0,.54)} .li-search{border-bottom:1px solid #ccc!important;cursor:default!important} .li-search:hover{background:#fff!important}.select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-radius:6px 6px 0 0!important}"] });
|
|
1284
1320
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(CustomSelectComponent, [{
|
|
1285
1321
|
type: Component,
|
|
1286
1322
|
args: [{
|
|
@@ -1301,6 +1337,8 @@ CustomSelectComponent.ɵcmp = ɵɵdefineComponent({ type: CustomSelectComponent,
|
|
|
1301
1337
|
type: Input
|
|
1302
1338
|
}], allowRemove: [{
|
|
1303
1339
|
type: Input
|
|
1340
|
+
}], addItemLabel: [{
|
|
1341
|
+
type: Input
|
|
1304
1342
|
}], placeHolder: [{
|
|
1305
1343
|
type: Input
|
|
1306
1344
|
}], findPlaceHolder: [{
|
|
@@ -1313,9 +1351,12 @@ CustomSelectComponent.ɵcmp = ɵɵdefineComponent({ type: CustomSelectComponent,
|
|
|
1313
1351
|
type: Output
|
|
1314
1352
|
}], onAddItem: [{
|
|
1315
1353
|
type: Output
|
|
1354
|
+
}], trigger: [{
|
|
1355
|
+
type: ViewChild,
|
|
1356
|
+
args: ['trigger']
|
|
1316
1357
|
}], input: [{
|
|
1317
1358
|
type: ViewChild,
|
|
1318
|
-
args: ['input', {
|
|
1359
|
+
args: ['input', { read: ElementRef }]
|
|
1319
1360
|
}], tabindex: [{
|
|
1320
1361
|
type: HostBinding,
|
|
1321
1362
|
args: ['attr.tabindex']
|
|
@@ -2024,6 +2065,7 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
2024
2065
|
MatTooltipModule,
|
|
2025
2066
|
DndModule,
|
|
2026
2067
|
ButtonsModule,
|
|
2068
|
+
OverlayModule,
|
|
2027
2069
|
]] });
|
|
2028
2070
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(InputsModule, { declarations: [MatSelectInfiniteScrollDirective,
|
|
2029
2071
|
SelectBoxComponent,
|
|
@@ -2051,7 +2093,8 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
2051
2093
|
IconsModule,
|
|
2052
2094
|
MatTooltipModule,
|
|
2053
2095
|
DndModule,
|
|
2054
|
-
ButtonsModule
|
|
2096
|
+
ButtonsModule,
|
|
2097
|
+
OverlayModule], exports: [SelectBoxComponent,
|
|
2055
2098
|
SelectEnumComponent,
|
|
2056
2099
|
InputTextComponent,
|
|
2057
2100
|
InputNumberComponent,
|
|
@@ -2083,6 +2126,7 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
2083
2126
|
MatTooltipModule,
|
|
2084
2127
|
DndModule,
|
|
2085
2128
|
ButtonsModule,
|
|
2129
|
+
OverlayModule,
|
|
2086
2130
|
],
|
|
2087
2131
|
declarations: [
|
|
2088
2132
|
MatSelectInfiniteScrollDirective,
|