@apipass/inputs 0.2.1-alpha.1 → 0.2.1-alpha.12
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/ace-editor/component.d.ts +52 -0
- package/ace-editor/directive.d.ts +39 -0
- package/assets/css/buttons.scss +6 -0
- package/bundles/apipass-inputs.umd.js +774 -40
- 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/esm2015/ace-editor/component.js +204 -0
- package/esm2015/ace-editor/directive.js +150 -0
- package/esm2015/input-boolean/input-boolean.component.js +77 -0
- package/esm2015/input-number/input-number.component.js +118 -0
- package/esm2015/input-password/input-password.component.js +1 -1
- package/esm2015/input-text/input-text.component.js +3 -3
- package/esm2015/inputs.module.js +30 -6
- package/esm2015/public-api.js +5 -1
- package/esm2015/select-box/select-box.component.js +102 -26
- package/fesm2015/apipass-inputs.js +660 -37
- package/fesm2015/apipass-inputs.js.map +1 -1
- package/input-boolean/input-boolean.component.d.ts +15 -0
- package/input-number/input-number.component.d.ts +17 -0
- package/inputs.module.d.ts +26 -21
- package/package.json +4 -1
- package/public-api.d.ts +4 -0
- package/select-box/select-box.component.d.ts +13 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelementEnd, ɵɵadvance, ɵɵproperty, ɵɵtext, ɵɵpipe, ɵɵtextInterpolate, ɵɵpipeBind1, ɵɵdefineComponent, ɵɵProvidersFeature, forwardRef, ɵɵInheritDefinitionFeature, ɵɵtemplate, ɵɵpipeBind2, ɵɵ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, ɵɵtextInterpolate1, ɵɵpipeBind3, ɵɵstaticViewQuery, ɵɵattribute, ɵɵpureFunction0, HostBinding, HostListener, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR, NgControlStatus, NgModel, DefaultValueAccessor, RequiredValidator, MinLengthValidator, FormsModule } from '@angular/forms';
|
|
1
|
+
import { ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelementEnd, ɵɵadvance, ɵɵproperty, ɵɵtext, ɵɵpipe, ɵɵtextInterpolate, ɵɵpipeBind1, ɵɵdefineComponent, ɵɵProvidersFeature, forwardRef, ɵɵInheritDefinitionFeature, ɵɵtemplate, ɵɵpipeBind2, ɵɵ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, ɵɵtextInterpolate1, ɵɵpipeBind3, ɵɵstaticViewQuery, ɵɵattribute, ɵɵpureFunction0, HostBinding, HostListener, ElementRef, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
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
|
-
import { MatFormField, MatSuffix, MatLabel, MatHint, MatFormFieldModule } from '@angular/material/form-field';
|
|
4
|
+
import { MatFormField, MatSuffix, MatLabel, MatHint, MatPrefix, MatFormFieldModule } from '@angular/material/form-field';
|
|
5
5
|
import { MatSelect, MatSelectModule } from '@angular/material/select';
|
|
6
6
|
import { MatOption } from '@angular/material/core';
|
|
7
7
|
import { SelectEnumFilterPipe, EnumPipe, SelectFilterPipe, PipeModule } from '@apipass/pipes';
|
|
@@ -14,10 +14,13 @@ import { MatPassToggleVisibilityComponent, MatPasswordStrengthComponent, MatPass
|
|
|
14
14
|
import { IconComponent, IconsModule } from '@apipass/icons';
|
|
15
15
|
import { Subject, fromEvent } from 'rxjs';
|
|
16
16
|
import { debounceTime, distinctUntilChanged, takeUntil, tap } from 'rxjs/operators';
|
|
17
|
-
import { NgSelectComponent, ɵh, ɵf, NgSelectModule } from '@ng-select/ng-select';
|
|
17
|
+
import { NgSelectComponent, ɵh, ɵj, ɵf, NgSelectModule } from '@ng-select/ng-select';
|
|
18
18
|
import { MatSelectFilterModule } from 'mat-select-filter';
|
|
19
19
|
import { DndDropzoneDirective, DndModule } from 'ngx-drag-drop';
|
|
20
20
|
import { RouterModule } from '@angular/router';
|
|
21
|
+
import 'brace';
|
|
22
|
+
import 'brace/theme/monokai';
|
|
23
|
+
import { PrimaryButtonComponent, ButtonsModule } from '@apipass/buttons';
|
|
21
24
|
|
|
22
25
|
class ValueAccessorBase {
|
|
23
26
|
constructor() {
|
|
@@ -345,7 +348,7 @@ InputTextComponent.ɵcmp = ɵɵdefineComponent({ type: InputTextComponent, selec
|
|
|
345
348
|
provide: NG_VALUE_ACCESSOR,
|
|
346
349
|
useExisting: forwardRef(() => InputTextComponent),
|
|
347
350
|
multi: true
|
|
348
|
-
}]), ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["appearance", "fill", 1, "apipass-input-text", "label-input"], [4, "ngIf"], ["class", "mat-icon-prefix", "
|
|
351
|
+
}]), ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["appearance", "fill", 1, "apipass-input-text", "label-input"], [4, "ngIf"], ["class", "mat-icon-prefix", "matPrefix", "", 3, "click", 4, "ngIf"], ["matInput", "", "type", "text", 1, "input-text", 3, "ngModel", "disabled", "autocomplete", "ngModelChange"], ["class", "mat-icon-suffix", "matSuffix", "", 3, "click", 4, "ngIf"], ["matPrefix", "", 1, "mat-icon-prefix", 3, "click"], ["matSuffix", "", 1, "mat-icon-suffix", 3, "click"]], template: function InputTextComponent_Template(rf, ctx) { if (rf & 1) {
|
|
349
352
|
ɵɵelementStart(0, "mat-form-field", 0);
|
|
350
353
|
ɵɵtemplate(1, InputTextComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
|
|
351
354
|
ɵɵtemplate(2, InputTextComponent_mat_icon_2_Template, 2, 1, "mat-icon", 2);
|
|
@@ -363,7 +366,7 @@ InputTextComponent.ɵcmp = ɵɵdefineComponent({ type: InputTextComponent, selec
|
|
|
363
366
|
ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("autocomplete", ctx.autoComplete);
|
|
364
367
|
ɵɵadvance(1);
|
|
365
368
|
ɵɵproperty("ngIf", ctx.iconSuffix);
|
|
366
|
-
} }, directives: [MatFormField, NgIf, MatInput, DefaultValueAccessor, NgControlStatus, NgModel, MatLabel, MatIcon, MatSuffix], styles: [":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{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{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{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{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 .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-text .mat-icon-suffix{margin-right:-8px}"], encapsulation: 2 });
|
|
369
|
+
} }, directives: [MatFormField, NgIf, MatInput, DefaultValueAccessor, NgControlStatus, NgModel, MatLabel, MatIcon, MatPrefix, MatSuffix], styles: [":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{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{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{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{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 .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-text .mat-icon-suffix{margin-right:0}"], encapsulation: 2 });
|
|
367
370
|
const ɵInputTextComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(InputTextComponent);
|
|
368
371
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputTextComponent, [{
|
|
369
372
|
type: Component,
|
|
@@ -648,53 +651,82 @@ FieldComponent.ɵcmp = ɵɵdefineComponent({ type: FieldComponent, selectors: [[
|
|
|
648
651
|
|
|
649
652
|
const _c0$3 = ["ngSelectComponent"];
|
|
650
653
|
function SelectBoxComponent_ng_template_2_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
651
|
-
ɵɵelementStart(0, "div",
|
|
652
|
-
ɵɵelement(1, "img",
|
|
654
|
+
ɵɵelementStart(0, "div", 7);
|
|
655
|
+
ɵɵelement(1, "img", 8);
|
|
653
656
|
ɵɵelementEnd();
|
|
654
657
|
} if (rf & 2) {
|
|
655
|
-
const
|
|
658
|
+
const ctx_r5 = ɵɵnextContext(2);
|
|
656
659
|
ɵɵadvance(1);
|
|
657
|
-
ɵɵproperty("src",
|
|
660
|
+
ɵɵproperty("src", ctx_r5.value[ctx_r5.bindImageUrl] || "./assets/images/no-image.png", ɵɵsanitizeUrl)("alt", ctx_r5.value[ctx_r5.bindValue])("matTooltip", ctx_r5.value[ctx_r5.bindValue]);
|
|
658
661
|
} }
|
|
659
662
|
function SelectBoxComponent_ng_template_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
660
|
-
ɵɵelementStart(0, "span",
|
|
663
|
+
ɵɵelementStart(0, "span", 9);
|
|
661
664
|
ɵɵtext(1);
|
|
662
665
|
ɵɵelementEnd();
|
|
663
666
|
} if (rf & 2) {
|
|
664
|
-
const
|
|
667
|
+
const ctx_r6 = ɵɵnextContext(2);
|
|
665
668
|
ɵɵadvance(1);
|
|
666
|
-
ɵɵtextInterpolate(
|
|
669
|
+
ɵɵtextInterpolate(ctx_r6.value[ctx_r6.bindValue]);
|
|
667
670
|
} }
|
|
668
671
|
function SelectBoxComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
669
|
-
ɵɵtemplate(0, SelectBoxComponent_ng_template_2_div_0_Template, 2, 3, "div",
|
|
670
|
-
ɵɵtemplate(1, SelectBoxComponent_ng_template_2_span_1_Template, 2, 1, "span",
|
|
672
|
+
ɵɵtemplate(0, SelectBoxComponent_ng_template_2_div_0_Template, 2, 3, "div", 5);
|
|
673
|
+
ɵɵtemplate(1, SelectBoxComponent_ng_template_2_span_1_Template, 2, 1, "span", 6);
|
|
671
674
|
} if (rf & 2) {
|
|
672
675
|
const ctx_r1 = ɵɵnextContext();
|
|
673
676
|
ɵɵproperty("ngIf", ctx_r1.value && ctx_r1.value[ctx_r1.bindKey] && ctx_r1.value[ctx_r1.bindValue] && ctx_r1.bindImageUrl);
|
|
674
677
|
ɵɵadvance(1);
|
|
675
678
|
ɵɵproperty("ngIf", ctx_r1.value && ctx_r1.value[ctx_r1.bindKey] && ctx_r1.value[ctx_r1.bindValue]);
|
|
676
679
|
} }
|
|
677
|
-
function
|
|
678
|
-
|
|
679
|
-
|
|
680
|
+
function SelectBoxComponent_ng_template_3_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
681
|
+
ɵɵelement(0, "icon", 13);
|
|
682
|
+
} if (rf & 2) {
|
|
683
|
+
const ctx_r7 = ɵɵnextContext(2);
|
|
684
|
+
ɵɵproperty("title", ctx_r7.addNewItemText)("name", ctx_r7.addNewItemIcon)("size", 20);
|
|
685
|
+
} }
|
|
686
|
+
function SelectBoxComponent_ng_template_3_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
687
|
+
ɵɵelementStart(0, "span", 14);
|
|
688
|
+
ɵɵtext(1);
|
|
680
689
|
ɵɵelementEnd();
|
|
681
690
|
} if (rf & 2) {
|
|
682
|
-
const
|
|
683
|
-
const ctx_r8 = ɵɵnextContext();
|
|
691
|
+
const ctx_r8 = ɵɵnextContext(2);
|
|
684
692
|
ɵɵadvance(1);
|
|
685
|
-
|
|
693
|
+
ɵɵtextInterpolate(ctx_r8.addNewItemText);
|
|
686
694
|
} }
|
|
687
695
|
function SelectBoxComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
688
|
-
|
|
689
|
-
ɵɵelementStart(
|
|
690
|
-
|
|
696
|
+
const _r10 = ɵɵgetCurrentView();
|
|
697
|
+
ɵɵelementStart(0, "div", 10);
|
|
698
|
+
ɵɵlistener("click", function SelectBoxComponent_ng_template_3_Template_div_click_0_listener() { ɵɵrestoreView(_r10); const ctx_r9 = ɵɵnextContext(); return ctx_r9.onAddNewItem(); });
|
|
699
|
+
ɵɵtemplate(1, SelectBoxComponent_ng_template_3_icon_1_Template, 1, 3, "icon", 11);
|
|
700
|
+
ɵɵtemplate(2, SelectBoxComponent_ng_template_3_span_2_Template, 2, 1, "span", 12);
|
|
691
701
|
ɵɵelementEnd();
|
|
692
702
|
} if (rf & 2) {
|
|
693
|
-
const item_r6 = ctx.item;
|
|
694
703
|
const ctx_r2 = ɵɵnextContext();
|
|
695
|
-
|
|
704
|
+
ɵɵadvance(1);
|
|
705
|
+
ɵɵproperty("ngIf", ctx_r2.addNewItemIcon);
|
|
706
|
+
ɵɵadvance(1);
|
|
707
|
+
ɵɵproperty("ngIf", ctx_r2.addNewItemText);
|
|
708
|
+
} }
|
|
709
|
+
function SelectBoxComponent_ng_template_4_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
710
|
+
ɵɵelementStart(0, "div", 7);
|
|
711
|
+
ɵɵelement(1, "img", 8);
|
|
712
|
+
ɵɵelementEnd();
|
|
713
|
+
} if (rf & 2) {
|
|
714
|
+
const item_r11 = ɵɵnextContext().item;
|
|
715
|
+
const ctx_r13 = ɵɵnextContext();
|
|
716
|
+
ɵɵadvance(1);
|
|
717
|
+
ɵɵproperty("src", item_r11[ctx_r13.bindImageUrl] || "./assets/images/no-image.png", ɵɵsanitizeUrl)("alt", item_r11[ctx_r13.bindValue])("matTooltip", item_r11[ctx_r13.bindValue]);
|
|
718
|
+
} }
|
|
719
|
+
function SelectBoxComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
720
|
+
ɵɵtemplate(0, SelectBoxComponent_ng_template_4_div_0_Template, 2, 3, "div", 5);
|
|
721
|
+
ɵɵelementStart(1, "span", 15);
|
|
722
|
+
ɵɵtext(2);
|
|
723
|
+
ɵɵelementEnd();
|
|
724
|
+
} if (rf & 2) {
|
|
725
|
+
const item_r11 = ctx.item;
|
|
726
|
+
const ctx_r3 = ɵɵnextContext();
|
|
727
|
+
ɵɵproperty("ngIf", ctx_r3.bindImageUrl);
|
|
696
728
|
ɵɵadvance(2);
|
|
697
|
-
ɵɵtextInterpolate(
|
|
729
|
+
ɵɵtextInterpolate(item_r11[ctx_r3.bindValue]);
|
|
698
730
|
} }
|
|
699
731
|
const _c1$2 = function (a0, a1) { return { "apipass-select-image": a0, "apipass-select": a1 }; };
|
|
700
732
|
class SelectBoxComponent extends ValueAccessorBase {
|
|
@@ -711,17 +743,41 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
711
743
|
this.bindKey = '';
|
|
712
744
|
this.bindValue = '';
|
|
713
745
|
this.limitItens = 30;
|
|
746
|
+
this.showAddNewItem = false;
|
|
747
|
+
this.addNewItemText = '';
|
|
748
|
+
this.addNewItemIcon = '';
|
|
749
|
+
this.addNewItemClickCloseSelect = false;
|
|
750
|
+
this.closeOnBodyScroll = false;
|
|
714
751
|
this.onOpenSelectBox = new EventEmitter();
|
|
715
752
|
this.onCloseSelectBox = new EventEmitter();
|
|
716
753
|
this.onSelectChange = new EventEmitter();
|
|
717
754
|
this.onSelectClear = new EventEmitter();
|
|
755
|
+
this.onAddNewItemClick = new EventEmitter();
|
|
718
756
|
this.visibleItens = [];
|
|
719
757
|
this.loading = false;
|
|
720
758
|
this.inputFilter = new Subject();
|
|
721
759
|
this.lastSearchTerm = '';
|
|
760
|
+
this.onBodyScroll = (event) => {
|
|
761
|
+
var _a, _b;
|
|
762
|
+
if (this.closeOnBodyScroll && ((_a = this.ngSelectComponent) === null || _a === void 0 ? void 0 : _a.isOpen)) {
|
|
763
|
+
const isScrollingInScrollHost = ((_b = event.target.className) === null || _b === void 0 ? void 0 : _b.indexOf('ng-dropdown-panel-items')) > -1;
|
|
764
|
+
if (isScrollingInScrollHost) {
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
this.ngSelectComponent.close();
|
|
768
|
+
}
|
|
769
|
+
};
|
|
722
770
|
}
|
|
723
771
|
ngOnInit() {
|
|
724
772
|
this.onSearch();
|
|
773
|
+
if (this.closeOnBodyScroll) {
|
|
774
|
+
window.addEventListener('scroll', this.onBodyScroll, true);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
ngOnDestroy() {
|
|
778
|
+
if (this.closeOnBodyScroll) {
|
|
779
|
+
window.removeEventListener('scroll', this.onBodyScroll, true);
|
|
780
|
+
}
|
|
725
781
|
}
|
|
726
782
|
onSearch() {
|
|
727
783
|
this.inputFilter.pipe(debounceTime(200), distinctUntilChanged()).subscribe(searchString => {
|
|
@@ -790,6 +846,13 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
790
846
|
onClose($event) {
|
|
791
847
|
this.onCloseSelectBox.next();
|
|
792
848
|
}
|
|
849
|
+
onAddNewItem() {
|
|
850
|
+
var _a;
|
|
851
|
+
if (this.addNewItemClickCloseSelect) {
|
|
852
|
+
(_a = this.ngSelectComponent) === null || _a === void 0 ? void 0 : _a.close();
|
|
853
|
+
}
|
|
854
|
+
this.onAddNewItemClick.next();
|
|
855
|
+
}
|
|
793
856
|
}
|
|
794
857
|
SelectBoxComponent.ɵfac = function SelectBoxComponent_Factory(t) { return ɵSelectBoxComponent_BaseFactory(t || SelectBoxComponent); };
|
|
795
858
|
SelectBoxComponent.ɵcmp = ɵɵdefineComponent({ type: SelectBoxComponent, selectors: [["select-box"]], viewQuery: function SelectBoxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -797,21 +860,24 @@ SelectBoxComponent.ɵcmp = ɵɵdefineComponent({ type: SelectBoxComponent, selec
|
|
|
797
860
|
} if (rf & 2) {
|
|
798
861
|
var _t;
|
|
799
862
|
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.ngSelectComponent = _t.first);
|
|
800
|
-
} }, inputs: { placeholder: "placeholder", searchPlaceHolder: "searchPlaceHolder", clearText: "clearText", notFoundText: "notFoundText", enabledSearch: "enabledSearch", data: "data", disabled: "disabled", selectedItem: "selectedItem", bindImageUrl: "bindImageUrl", bindKey: "bindKey", bindValue: "bindValue", limitItens: "limitItens" }, outputs: { onOpenSelectBox: "onOpenSelectBox", onCloseSelectBox: "onCloseSelectBox", onSelectChange: "onSelectChange", onSelectClear: "onSelectClear" }, features: [ɵɵProvidersFeature([{
|
|
863
|
+
} }, inputs: { placeholder: "placeholder", searchPlaceHolder: "searchPlaceHolder", clearText: "clearText", notFoundText: "notFoundText", enabledSearch: "enabledSearch", data: "data", disabled: "disabled", selectedItem: "selectedItem", bindImageUrl: "bindImageUrl", bindKey: "bindKey", bindValue: "bindValue", limitItens: "limitItens", showAddNewItem: "showAddNewItem", addNewItemText: "addNewItemText", addNewItemIcon: "addNewItemIcon", addNewItemClickCloseSelect: "addNewItemClickCloseSelect", closeOnBodyScroll: "closeOnBodyScroll" }, outputs: { onOpenSelectBox: "onOpenSelectBox", onCloseSelectBox: "onCloseSelectBox", onSelectChange: "onSelectChange", onSelectClear: "onSelectClear", onAddNewItemClick: "onAddNewItemClick" }, features: [ɵɵProvidersFeature([{
|
|
801
864
|
provide: NG_VALUE_ACCESSOR,
|
|
802
865
|
useExisting: forwardRef(() => SelectBoxComponent),
|
|
803
866
|
multi: true
|
|
804
|
-
}]), ɵɵInheritDefinitionFeature], decls:
|
|
867
|
+
}]), ɵɵInheritDefinitionFeature], decls: 5, vars: 18, consts: [["appendTo", "body", 3, "ngModel", "items", "virtualScroll", "loading", "placeholder", "clearAllText", "searchable", "typeToSearchText", "notFoundText", "disabled", "typeahead", "ngClass", "compareWith", "ngModelChange", "open", "close", "clear", "scroll", "scrollToEnd", "change"], ["ngSelectComponent", ""], ["ng-label-tmp", "", 3, "ngIf"], ["ng-header-tmp", "", 3, "ngIf"], ["ng-option-tmp", ""], ["class", "image", "style", "width: 40px;height: 40px; margin-right: 10px;", 4, "ngIf"], ["class", "select-text-element", 4, "ngIf"], [1, "image", 2, "width", "40px", "height", "40px", "margin-right", "10px"], ["loading", "lazy", 2, "width", "auto", "max-width", "40px", "height", "40px", 3, "src", "alt", "matTooltip"], [1, "select-text-element"], [1, "add-new-item-option", 2, "display", "flex", "align-items", "center", "cursor", "pointer", 3, "click"], ["style", "margin-right: 5px", 3, "title", "name", "size", 4, "ngIf"], ["class", "add-new-item-text", "style", "white-space: nowrap;overflow: hidden;text-overflow: ellipsis;", 4, "ngIf"], [2, "margin-right", "5px", 3, "title", "name", "size"], [1, "add-new-item-text", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"], [1, "select-text-element", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"]], template: function SelectBoxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
805
868
|
ɵɵelementStart(0, "ng-select", 0, 1);
|
|
806
869
|
ɵɵlistener("ngModelChange", function SelectBoxComponent_Template_ng_select_ngModelChange_0_listener($event) { return ctx.value = $event; })("open", function SelectBoxComponent_Template_ng_select_open_0_listener($event) { return ctx.openSelectBox($event); })("close", function SelectBoxComponent_Template_ng_select_close_0_listener($event) { return ctx.onClose($event); })("clear", function SelectBoxComponent_Template_ng_select_clear_0_listener() { return ctx.onClear(); })("scroll", function SelectBoxComponent_Template_ng_select_scroll_0_listener($event) { return ctx.onScroll($event); })("scrollToEnd", function SelectBoxComponent_Template_ng_select_scrollToEnd_0_listener() { return ctx.onScrollToEnd(); })("change", function SelectBoxComponent_Template_ng_select_change_0_listener($event) { return ctx.onSelectionChange($event); });
|
|
807
870
|
ɵɵtemplate(2, SelectBoxComponent_ng_template_2_Template, 2, 2, "ng-template", 2);
|
|
808
871
|
ɵɵtemplate(3, SelectBoxComponent_ng_template_3_Template, 3, 2, "ng-template", 3);
|
|
872
|
+
ɵɵtemplate(4, SelectBoxComponent_ng_template_4_Template, 3, 2, "ng-template", 4);
|
|
809
873
|
ɵɵelementEnd();
|
|
810
874
|
} if (rf & 2) {
|
|
811
|
-
ɵɵproperty("ngModel", ctx.value)("items", ctx.visibleItens)("virtualScroll", true)("loading", ctx.loading)("placeholder", ctx.placeholder)("clearAllText", ctx.clearText)("searchable", ctx.enabledSearch)("typeToSearchText", ctx.searchPlaceHolder)("notFoundText", ctx.notFoundText)("disabled", ctx.disabled)("typeahead", ctx.inputFilter)("ngClass", ɵɵpureFunction2(
|
|
875
|
+
ɵɵproperty("ngModel", ctx.value)("items", ctx.visibleItens)("virtualScroll", true)("loading", ctx.loading)("placeholder", ctx.placeholder)("clearAllText", ctx.clearText)("searchable", ctx.enabledSearch)("typeToSearchText", ctx.searchPlaceHolder)("notFoundText", ctx.notFoundText)("disabled", ctx.disabled)("typeahead", ctx.inputFilter)("ngClass", ɵɵpureFunction2(15, _c1$2, ctx.bindImageUrl, !ctx.bindImageUrl))("compareWith", ctx.compareFn);
|
|
812
876
|
ɵɵadvance(2);
|
|
813
877
|
ɵɵproperty("ngIf", ctx.value && ctx.value[ctx.bindKey] && ctx.value[ctx.bindValue]);
|
|
814
|
-
} }, directives: [NgSelectComponent, NgControlStatus, NgModel, NgClass, ɵh, NgIf, ɵf, MatTooltip], styles: [":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}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{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{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{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 .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}@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{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.apipass-select-image.ng-select.ng-select-opened>.ng-select-container,.apipass-select.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9;height:51px}.apipass-select-image.ng-select-disabled .ng-select-container,.apipass-select.ng-select-disabled .ng-select-container{background-color:#ccc!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow,.apipass-select.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow{border-color:#777 transparent transparent!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value-container,.apipass-select.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select.ng-select-disabled .ng-select-container .ng-value,.apipass-select.ng-select-disabled .ng-select-container .ng-value-container{cursor:no-drop!important}.apipass-select-image .select-text-element,.apipass-select .select-text-element{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{border-color:transparent transparent #ddd;border-width:0 5px 5px;top:-2px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-left-radius:0;border-top-right-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{align-items:center!important;background-color:#fff;border:1px solid #ccc;border-radius:4px;color:#333}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{min-height:51px}.ng-select .ng-select-container:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container,.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select-image .ng-select-container .ng-value-container .ng-value,.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input,.apipass-select .ng-select-container .ng-value-container .ng-input{padding-top:0!important;top:auto!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input input,.apipass-select .ng-select-container .ng-value-container .ng-input input{margin-top:-5px!important;padding-bottom:17px!important;padding-top:17px!important}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-left:0;padding-right:10px}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:rgba(0,0,0,.6);font-size:14px}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{height:51px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;padding-left:10px;padding-right:50px;top:5px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-left:50px;padding-right:10px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#f9f9f9;border:1px solid #e6e6e6;display:flex!important}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:7px;padding-top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:0;padding-right:7px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#ebf5ff;border-radius:2px;color:#333;display:flex!important;font-size:.9em;margin-bottom:5px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important;margin-left:5px;margin-right:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-bottom:5px;padding-left:3px;top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:0;padding-right:3px}.ng-select .ng-clear-wrapper{color:rgba(0,0,0,.6)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{padding-right:5px;width:25px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#ddd transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ddd;box-shadow:0 1px 0 rgba(0,0,0,.06);left:0}.ng-dropdown-panel.ng-select-bottom{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-color:#e6e6e6;margin-top:-1px;top:100%}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ng-dropdown-panel.ng-select-top{border-bottom-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px;bottom:100%;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;color:rgba(0,0,0,.54);cursor:pointer;font-weight:500;padding:8px 10px;user-select:none}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{align-items:center!important;background-color:#fff;color:rgba(0,0,0,.87);display:flex!important;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background-color:#ebf5ff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:0;padding-right:22px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}"], encapsulation: 2 });
|
|
878
|
+
ɵɵadvance(1);
|
|
879
|
+
ɵɵproperty("ngIf", ctx.showAddNewItem);
|
|
880
|
+
} }, directives: [NgSelectComponent, NgControlStatus, NgModel, NgClass, ɵh, NgIf, ɵj, ɵf, MatTooltip, IconComponent], styles: [":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}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{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{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{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 .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}@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{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.apipass-select-image.ng-select.ng-select-opened>.ng-select-container,.apipass-select.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9;height:51px}.apipass-select-image.ng-select-disabled .ng-select-container,.apipass-select.ng-select-disabled .ng-select-container{background-color:#ccc!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow,.apipass-select.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow{border-color:#777 transparent transparent!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value-container,.apipass-select.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select.ng-select-disabled .ng-select-container .ng-value,.apipass-select.ng-select-disabled .ng-select-container .ng-value-container{cursor:no-drop!important}.apipass-select-image .select-text-element,.apipass-select .select-text-element{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{border-color:transparent transparent #ddd;border-width:0 5px 5px;top:-2px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-left-radius:0;border-top-right-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{align-items:center!important;background-color:#fff;border:1px solid #ccc;border-radius:4px;color:#333}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{min-height:51px}.ng-select .ng-select-container:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container,.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select-image .ng-select-container .ng-value-container .ng-value,.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input,.apipass-select .ng-select-container .ng-value-container .ng-input{padding-top:0!important;top:auto!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input input,.apipass-select .ng-select-container .ng-value-container .ng-input input{margin-top:-5px!important;padding-bottom:17px!important;padding-top:17px!important}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-left:0;padding-right:10px}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:rgba(0,0,0,.6);font-size:14px}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{height:51px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;padding-left:10px;padding-right:50px;top:5px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-left:50px;padding-right:10px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#f9f9f9;border:1px solid #e6e6e6;display:flex!important}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:7px;padding-top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:0;padding-right:7px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#ebf5ff;border-radius:2px;color:#333;display:flex!important;font-size:.9em;margin-bottom:5px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important;margin-left:5px;margin-right:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-bottom:5px;padding-left:3px;top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:0;padding-right:3px}.ng-select .ng-clear-wrapper{color:rgba(0,0,0,.6)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{padding-right:5px;width:25px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#ddd transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ddd;box-shadow:0 1px 0 rgba(0,0,0,.06);left:0}.ng-dropdown-panel.ng-select-bottom{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-color:#e6e6e6;margin-top:-1px;top:100%}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ng-dropdown-panel.ng-select-top{border-bottom-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px;bottom:100%;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;color:rgba(0,0,0,.54);cursor:pointer;font-weight:500;padding:8px 10px;user-select:none}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{align-items:center!important;background-color:#fff;color:rgba(0,0,0,.87);display:flex!important;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background-color:#ebf5ff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:0;padding-right:22px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}"], encapsulation: 2 });
|
|
815
881
|
const ɵSelectBoxComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SelectBoxComponent);
|
|
816
882
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SelectBoxComponent, [{
|
|
817
883
|
type: Component,
|
|
@@ -850,6 +916,16 @@ const ɵSelectBoxComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(S
|
|
|
850
916
|
type: Input
|
|
851
917
|
}], limitItens: [{
|
|
852
918
|
type: Input
|
|
919
|
+
}], showAddNewItem: [{
|
|
920
|
+
type: Input
|
|
921
|
+
}], addNewItemText: [{
|
|
922
|
+
type: Input
|
|
923
|
+
}], addNewItemIcon: [{
|
|
924
|
+
type: Input
|
|
925
|
+
}], addNewItemClickCloseSelect: [{
|
|
926
|
+
type: Input
|
|
927
|
+
}], closeOnBodyScroll: [{
|
|
928
|
+
type: Input
|
|
853
929
|
}], onOpenSelectBox: [{
|
|
854
930
|
type: Output
|
|
855
931
|
}], onCloseSelectBox: [{
|
|
@@ -858,6 +934,8 @@ const ɵSelectBoxComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(S
|
|
|
858
934
|
type: Output
|
|
859
935
|
}], onSelectClear: [{
|
|
860
936
|
type: Output
|
|
937
|
+
}], onAddNewItemClick: [{
|
|
938
|
+
type: Output
|
|
861
939
|
}], ngSelectComponent: [{
|
|
862
940
|
type: ViewChild,
|
|
863
941
|
args: ['ngSelectComponent']
|
|
@@ -1323,6 +1401,532 @@ InputFileComponent.ɵcmp = ɵɵdefineComponent({ type: InputFileComponent, selec
|
|
|
1323
1401
|
type: Output
|
|
1324
1402
|
}] }); })();
|
|
1325
1403
|
|
|
1404
|
+
/* tslint:disable */
|
|
1405
|
+
class AceEditorComponent {
|
|
1406
|
+
constructor(elementRef, zone) {
|
|
1407
|
+
this.zone = zone;
|
|
1408
|
+
this.textChanged = new EventEmitter();
|
|
1409
|
+
this.textChange = new EventEmitter();
|
|
1410
|
+
this.style = {};
|
|
1411
|
+
// @ts-ignore
|
|
1412
|
+
this._options = {};
|
|
1413
|
+
// @ts-ignore
|
|
1414
|
+
this._theme = 'monokai';
|
|
1415
|
+
// @ts-ignore
|
|
1416
|
+
this._mode = 'html';
|
|
1417
|
+
// @ts-ignore
|
|
1418
|
+
this._autoUpdateContent = true;
|
|
1419
|
+
// @ts-ignore
|
|
1420
|
+
this._durationBeforeCallback = 0;
|
|
1421
|
+
// @ts-ignore
|
|
1422
|
+
this._text = '';
|
|
1423
|
+
this._onChange = (_) => {
|
|
1424
|
+
};
|
|
1425
|
+
this._onTouched = () => {
|
|
1426
|
+
};
|
|
1427
|
+
const el = elementRef.nativeElement;
|
|
1428
|
+
this.zone.runOutsideAngular(() => {
|
|
1429
|
+
this._editor = ace['edit'](el);
|
|
1430
|
+
});
|
|
1431
|
+
this._editor.$blockScrolling = Infinity;
|
|
1432
|
+
}
|
|
1433
|
+
ngOnInit() {
|
|
1434
|
+
this.init();
|
|
1435
|
+
this.initEvents();
|
|
1436
|
+
}
|
|
1437
|
+
ngOnDestroy() {
|
|
1438
|
+
this._editor.destroy();
|
|
1439
|
+
}
|
|
1440
|
+
init() {
|
|
1441
|
+
this.setOptions(this._options || {});
|
|
1442
|
+
this.setTheme(this._theme);
|
|
1443
|
+
this.setMode(this._mode);
|
|
1444
|
+
this.setReadOnly(this._readOnly);
|
|
1445
|
+
}
|
|
1446
|
+
initEvents() {
|
|
1447
|
+
this._editor.on('change', () => this.updateText());
|
|
1448
|
+
this._editor.on('paste', () => this.updateText());
|
|
1449
|
+
}
|
|
1450
|
+
updateText() {
|
|
1451
|
+
const newVal = this._editor.getValue();
|
|
1452
|
+
if (newVal === this.oldText) {
|
|
1453
|
+
return;
|
|
1454
|
+
}
|
|
1455
|
+
if (!this._durationBeforeCallback) {
|
|
1456
|
+
this._text = newVal;
|
|
1457
|
+
this.zone.run(() => {
|
|
1458
|
+
this.textChange.emit(newVal);
|
|
1459
|
+
this.textChanged.emit(newVal);
|
|
1460
|
+
});
|
|
1461
|
+
this._onChange(newVal);
|
|
1462
|
+
}
|
|
1463
|
+
else {
|
|
1464
|
+
if (this.timeoutSaving) {
|
|
1465
|
+
clearTimeout(this.timeoutSaving);
|
|
1466
|
+
}
|
|
1467
|
+
this.timeoutSaving = setTimeout(() => {
|
|
1468
|
+
this._text = newVal;
|
|
1469
|
+
this.zone.run(() => {
|
|
1470
|
+
this.textChange.emit(newVal);
|
|
1471
|
+
this.textChanged.emit(newVal);
|
|
1472
|
+
});
|
|
1473
|
+
this.timeoutSaving = null;
|
|
1474
|
+
}, this._durationBeforeCallback);
|
|
1475
|
+
}
|
|
1476
|
+
this.oldText = newVal;
|
|
1477
|
+
}
|
|
1478
|
+
set options(options) {
|
|
1479
|
+
this.setOptions(options);
|
|
1480
|
+
}
|
|
1481
|
+
setOptions(options) {
|
|
1482
|
+
this._options = options;
|
|
1483
|
+
this._editor.setOptions(options || {});
|
|
1484
|
+
}
|
|
1485
|
+
set readOnly(readOnly) {
|
|
1486
|
+
this.setReadOnly(readOnly);
|
|
1487
|
+
}
|
|
1488
|
+
setReadOnly(readOnly) {
|
|
1489
|
+
this._readOnly = readOnly;
|
|
1490
|
+
this._editor.setReadOnly(readOnly);
|
|
1491
|
+
}
|
|
1492
|
+
set theme(theme) {
|
|
1493
|
+
this.setTheme(theme);
|
|
1494
|
+
}
|
|
1495
|
+
setTheme(theme) {
|
|
1496
|
+
this._theme = theme;
|
|
1497
|
+
this._editor.setTheme(`ace/theme/${theme}`);
|
|
1498
|
+
}
|
|
1499
|
+
set mode(mode) {
|
|
1500
|
+
this.setMode(mode);
|
|
1501
|
+
}
|
|
1502
|
+
setMode(mode) {
|
|
1503
|
+
this._mode = mode;
|
|
1504
|
+
if (typeof this._mode === 'object') {
|
|
1505
|
+
this._editor.getSession().setMode(this._mode);
|
|
1506
|
+
}
|
|
1507
|
+
else {
|
|
1508
|
+
this._editor.getSession().setMode(`ace/mode/${this._mode}`);
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
// @ts-ignore
|
|
1512
|
+
get value() {
|
|
1513
|
+
return this.text;
|
|
1514
|
+
}
|
|
1515
|
+
// @ts-ignore
|
|
1516
|
+
set value(value) {
|
|
1517
|
+
this.setText(value);
|
|
1518
|
+
}
|
|
1519
|
+
writeValue(value) {
|
|
1520
|
+
this.setText(value);
|
|
1521
|
+
}
|
|
1522
|
+
registerOnChange(fn) {
|
|
1523
|
+
this._onChange = fn;
|
|
1524
|
+
}
|
|
1525
|
+
registerOnTouched(fn) {
|
|
1526
|
+
this._onTouched = fn;
|
|
1527
|
+
}
|
|
1528
|
+
get text() {
|
|
1529
|
+
return this._text;
|
|
1530
|
+
}
|
|
1531
|
+
set text(text) {
|
|
1532
|
+
this.setText(text);
|
|
1533
|
+
}
|
|
1534
|
+
setText(text) {
|
|
1535
|
+
if (text === null || text === undefined) {
|
|
1536
|
+
text = '';
|
|
1537
|
+
}
|
|
1538
|
+
if (this._text !== text && this._autoUpdateContent) {
|
|
1539
|
+
this._text = text;
|
|
1540
|
+
this._editor.setValue(text);
|
|
1541
|
+
this._onChange(text);
|
|
1542
|
+
this._editor.clearSelection();
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
set autoUpdateContent(status) {
|
|
1546
|
+
this.setAutoUpdateContent(status);
|
|
1547
|
+
}
|
|
1548
|
+
setAutoUpdateContent(status) {
|
|
1549
|
+
this._autoUpdateContent = status;
|
|
1550
|
+
}
|
|
1551
|
+
set durationBeforeCallback(num) {
|
|
1552
|
+
this.setDurationBeforeCallback(num);
|
|
1553
|
+
}
|
|
1554
|
+
setDurationBeforeCallback(num) {
|
|
1555
|
+
this._durationBeforeCallback = num;
|
|
1556
|
+
}
|
|
1557
|
+
getEditor() {
|
|
1558
|
+
return this._editor;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
AceEditorComponent.ɵfac = function AceEditorComponent_Factory(t) { return new (t || AceEditorComponent)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(NgZone)); };
|
|
1562
|
+
AceEditorComponent.ɵcmp = ɵɵdefineComponent({ type: AceEditorComponent, selectors: [["ace-editor"]], inputs: { style: "style", options: "options", readOnly: "readOnly", theme: "theme", mode: "mode", value: "value", text: "text", autoUpdateContent: "autoUpdateContent", durationBeforeCallback: "durationBeforeCallback" }, outputs: { textChanged: "textChanged", textChange: "textChange" }, features: [ɵɵProvidersFeature([{
|
|
1563
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1564
|
+
useExisting: forwardRef(() => AceEditorComponent),
|
|
1565
|
+
multi: true
|
|
1566
|
+
}])], decls: 0, vars: 0, template: function AceEditorComponent_Template(rf, ctx) { }, styles: ["[_nghost-%COMP%] { display:block;width:100%; }"] });
|
|
1567
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(AceEditorComponent, [{
|
|
1568
|
+
type: Component,
|
|
1569
|
+
args: [{
|
|
1570
|
+
selector: 'ace-editor',
|
|
1571
|
+
template: '',
|
|
1572
|
+
styles: [':host { display:block;width:100%; }'],
|
|
1573
|
+
providers: [{
|
|
1574
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1575
|
+
useExisting: forwardRef(() => AceEditorComponent),
|
|
1576
|
+
multi: true
|
|
1577
|
+
}]
|
|
1578
|
+
}]
|
|
1579
|
+
}], function () { return [{ type: ElementRef }, { type: NgZone }]; }, { textChanged: [{
|
|
1580
|
+
type: Output
|
|
1581
|
+
}], textChange: [{
|
|
1582
|
+
type: Output
|
|
1583
|
+
}], style: [{
|
|
1584
|
+
type: Input
|
|
1585
|
+
}], options: [{
|
|
1586
|
+
type: Input
|
|
1587
|
+
}], readOnly: [{
|
|
1588
|
+
type: Input
|
|
1589
|
+
}], theme: [{
|
|
1590
|
+
type: Input
|
|
1591
|
+
}], mode: [{
|
|
1592
|
+
type: Input
|
|
1593
|
+
}], value: [{
|
|
1594
|
+
type: Input
|
|
1595
|
+
}], text: [{
|
|
1596
|
+
type: Input
|
|
1597
|
+
}], autoUpdateContent: [{
|
|
1598
|
+
type: Input
|
|
1599
|
+
}], durationBeforeCallback: [{
|
|
1600
|
+
type: Input
|
|
1601
|
+
}] }); })();
|
|
1602
|
+
|
|
1603
|
+
/* tslint:disable */
|
|
1604
|
+
class AceEditorDirective {
|
|
1605
|
+
constructor(elementRef, zone) {
|
|
1606
|
+
this.zone = zone;
|
|
1607
|
+
this.textChanged = new EventEmitter();
|
|
1608
|
+
this.textChange = new EventEmitter();
|
|
1609
|
+
this._options = {};
|
|
1610
|
+
this._readOnly = false;
|
|
1611
|
+
this._theme = 'monokai';
|
|
1612
|
+
this._mode = 'html';
|
|
1613
|
+
this._autoUpdateContent = true;
|
|
1614
|
+
this._durationBeforeCallback = 0;
|
|
1615
|
+
this._text = '';
|
|
1616
|
+
const el = elementRef.nativeElement;
|
|
1617
|
+
this.zone.runOutsideAngular(() => {
|
|
1618
|
+
this.editor = ace['edit'](el);
|
|
1619
|
+
});
|
|
1620
|
+
this.editor.$blockScrolling = Infinity;
|
|
1621
|
+
}
|
|
1622
|
+
ngOnInit() {
|
|
1623
|
+
this.init();
|
|
1624
|
+
this.initEvents();
|
|
1625
|
+
}
|
|
1626
|
+
ngOnDestroy() {
|
|
1627
|
+
this.editor.destroy();
|
|
1628
|
+
}
|
|
1629
|
+
init() {
|
|
1630
|
+
this.editor.setOptions(this._options || {});
|
|
1631
|
+
this.editor.setTheme(`ace/theme/${this._theme}`);
|
|
1632
|
+
this.setMode(this._mode);
|
|
1633
|
+
this.editor.setReadOnly(this._readOnly);
|
|
1634
|
+
}
|
|
1635
|
+
initEvents() {
|
|
1636
|
+
this.editor.on('change', () => this.updateText());
|
|
1637
|
+
this.editor.on('paste', () => this.updateText());
|
|
1638
|
+
}
|
|
1639
|
+
updateText() {
|
|
1640
|
+
const newVal = this.editor.getValue();
|
|
1641
|
+
if (newVal === this.oldText) {
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1644
|
+
if (!this._durationBeforeCallback) {
|
|
1645
|
+
this._text = newVal;
|
|
1646
|
+
this.zone.run(() => {
|
|
1647
|
+
this.textChange.emit(newVal);
|
|
1648
|
+
this.textChanged.emit(newVal);
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
else {
|
|
1652
|
+
if (this.timeoutSaving != null) {
|
|
1653
|
+
clearTimeout(this.timeoutSaving);
|
|
1654
|
+
}
|
|
1655
|
+
this.timeoutSaving = setTimeout(() => {
|
|
1656
|
+
this._text = newVal;
|
|
1657
|
+
this.zone.run(() => {
|
|
1658
|
+
this.textChange.emit(newVal);
|
|
1659
|
+
this.textChanged.emit(newVal);
|
|
1660
|
+
});
|
|
1661
|
+
this.timeoutSaving = null;
|
|
1662
|
+
}, this._durationBeforeCallback);
|
|
1663
|
+
}
|
|
1664
|
+
this.oldText = newVal;
|
|
1665
|
+
}
|
|
1666
|
+
set options(options) {
|
|
1667
|
+
this._options = options;
|
|
1668
|
+
this.editor.setOptions(options || {});
|
|
1669
|
+
}
|
|
1670
|
+
set readOnly(readOnly) {
|
|
1671
|
+
this._readOnly = readOnly;
|
|
1672
|
+
this.editor.setReadOnly(readOnly);
|
|
1673
|
+
}
|
|
1674
|
+
set theme(theme) {
|
|
1675
|
+
this._theme = theme;
|
|
1676
|
+
this.editor.setTheme(`ace/theme/${theme}`);
|
|
1677
|
+
}
|
|
1678
|
+
set mode(mode) {
|
|
1679
|
+
this.setMode(mode);
|
|
1680
|
+
}
|
|
1681
|
+
setMode(mode) {
|
|
1682
|
+
this._mode = mode;
|
|
1683
|
+
if (typeof this._mode === 'object') {
|
|
1684
|
+
this.editor.getSession().setMode(this._mode);
|
|
1685
|
+
}
|
|
1686
|
+
else {
|
|
1687
|
+
this.editor.getSession().setMode(`ace/mode/${this._mode}`);
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
// @ts-ignore
|
|
1691
|
+
get text() {
|
|
1692
|
+
return this._text;
|
|
1693
|
+
}
|
|
1694
|
+
set text(text) {
|
|
1695
|
+
this.setText(text);
|
|
1696
|
+
}
|
|
1697
|
+
setText(text) {
|
|
1698
|
+
if (this._text !== text) {
|
|
1699
|
+
if (text === null || text === undefined) {
|
|
1700
|
+
text = '';
|
|
1701
|
+
}
|
|
1702
|
+
if (this._autoUpdateContent) {
|
|
1703
|
+
this._text = text;
|
|
1704
|
+
this.editor.setValue(text);
|
|
1705
|
+
this.editor.clearSelection();
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
set autoUpdateContent(status) {
|
|
1710
|
+
this._autoUpdateContent = status;
|
|
1711
|
+
}
|
|
1712
|
+
set durationBeforeCallback(num) {
|
|
1713
|
+
this.setDurationBeforeCallback(num);
|
|
1714
|
+
}
|
|
1715
|
+
setDurationBeforeCallback(num) {
|
|
1716
|
+
this._durationBeforeCallback = num;
|
|
1717
|
+
}
|
|
1718
|
+
get aceEditor() {
|
|
1719
|
+
return this.editor;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
AceEditorDirective.ɵfac = function AceEditorDirective_Factory(t) { return new (t || AceEditorDirective)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(NgZone)); };
|
|
1723
|
+
AceEditorDirective.ɵdir = ɵɵdefineDirective({ type: AceEditorDirective, selectors: [["", "ace-editor", ""]], inputs: { options: "options", readOnly: "readOnly", theme: "theme", mode: "mode", text: "text", autoUpdateContent: "autoUpdateContent", durationBeforeCallback: "durationBeforeCallback" }, outputs: { textChanged: "textChanged", textChange: "textChange" } });
|
|
1724
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(AceEditorDirective, [{
|
|
1725
|
+
type: Directive,
|
|
1726
|
+
args: [{
|
|
1727
|
+
selector: '[ace-editor]'
|
|
1728
|
+
}]
|
|
1729
|
+
}], function () { return [{ type: ElementRef }, { type: NgZone }]; }, { textChanged: [{
|
|
1730
|
+
type: Output
|
|
1731
|
+
}], textChange: [{
|
|
1732
|
+
type: Output
|
|
1733
|
+
}], options: [{
|
|
1734
|
+
type: Input
|
|
1735
|
+
}], readOnly: [{
|
|
1736
|
+
type: Input
|
|
1737
|
+
}], theme: [{
|
|
1738
|
+
type: Input
|
|
1739
|
+
}], mode: [{
|
|
1740
|
+
type: Input
|
|
1741
|
+
}], text: [{
|
|
1742
|
+
type: Input
|
|
1743
|
+
}], autoUpdateContent: [{
|
|
1744
|
+
type: Input
|
|
1745
|
+
}], durationBeforeCallback: [{
|
|
1746
|
+
type: Input
|
|
1747
|
+
}] }); })();
|
|
1748
|
+
|
|
1749
|
+
function InputNumberComponent_mat_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
1750
|
+
ɵɵelementStart(0, "mat-label");
|
|
1751
|
+
ɵɵtext(1);
|
|
1752
|
+
ɵɵelementEnd();
|
|
1753
|
+
} if (rf & 2) {
|
|
1754
|
+
const ctx_r0 = ɵɵnextContext();
|
|
1755
|
+
ɵɵadvance(1);
|
|
1756
|
+
ɵɵtextInterpolate(ctx_r0.label);
|
|
1757
|
+
} }
|
|
1758
|
+
function InputNumberComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
1759
|
+
const _r4 = ɵɵgetCurrentView();
|
|
1760
|
+
ɵɵelementStart(0, "mat-icon", 5);
|
|
1761
|
+
ɵɵlistener("click", function InputNumberComponent_mat_icon_2_Template_mat_icon_click_0_listener() { ɵɵrestoreView(_r4); const ctx_r3 = ɵɵnextContext(); return ctx_r3.prefixClick(); });
|
|
1762
|
+
ɵɵtext(1);
|
|
1763
|
+
ɵɵelementEnd();
|
|
1764
|
+
} if (rf & 2) {
|
|
1765
|
+
const ctx_r1 = ɵɵnextContext();
|
|
1766
|
+
ɵɵadvance(1);
|
|
1767
|
+
ɵɵtextInterpolate(ctx_r1.iconPrefix);
|
|
1768
|
+
} }
|
|
1769
|
+
function InputNumberComponent_mat_icon_4_Template(rf, ctx) { if (rf & 1) {
|
|
1770
|
+
const _r6 = ɵɵgetCurrentView();
|
|
1771
|
+
ɵɵelementStart(0, "mat-icon", 6);
|
|
1772
|
+
ɵɵlistener("click", function InputNumberComponent_mat_icon_4_Template_mat_icon_click_0_listener() { ɵɵrestoreView(_r6); const ctx_r5 = ɵɵnextContext(); return ctx_r5.suffixClick(); });
|
|
1773
|
+
ɵɵtext(1);
|
|
1774
|
+
ɵɵelementEnd();
|
|
1775
|
+
} if (rf & 2) {
|
|
1776
|
+
const ctx_r2 = ɵɵnextContext();
|
|
1777
|
+
ɵɵadvance(1);
|
|
1778
|
+
ɵɵtextInterpolate(ctx_r2.iconSuffix);
|
|
1779
|
+
} }
|
|
1780
|
+
class InputNumberComponent extends ValueAccessorBase {
|
|
1781
|
+
constructor() {
|
|
1782
|
+
super(...arguments);
|
|
1783
|
+
this.label = '';
|
|
1784
|
+
this.disabled = false;
|
|
1785
|
+
this.iconSuffix = '';
|
|
1786
|
+
this.iconPrefix = '';
|
|
1787
|
+
this.autoComplete = 'on';
|
|
1788
|
+
this.suffixIconClick = new EventEmitter();
|
|
1789
|
+
this.prefixIconClick = new EventEmitter();
|
|
1790
|
+
}
|
|
1791
|
+
onKeyDown(event) {
|
|
1792
|
+
if (event.which === 32) {
|
|
1793
|
+
event.target.value += ' ';
|
|
1794
|
+
}
|
|
1795
|
+
event.stopPropagation();
|
|
1796
|
+
}
|
|
1797
|
+
prefixClick() {
|
|
1798
|
+
this.prefixIconClick.emit(true);
|
|
1799
|
+
}
|
|
1800
|
+
suffixClick() {
|
|
1801
|
+
this.suffixIconClick.emit(true);
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
InputNumberComponent.ɵfac = function InputNumberComponent_Factory(t) { return ɵInputNumberComponent_BaseFactory(t || InputNumberComponent); };
|
|
1805
|
+
InputNumberComponent.ɵcmp = ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["input-number"]], inputs: { label: "label", disabled: "disabled", iconSuffix: "iconSuffix", iconPrefix: "iconPrefix", autoComplete: "autoComplete" }, outputs: { suffixIconClick: "suffixIconClick", prefixIconClick: "prefixIconClick" }, features: [ɵɵProvidersFeature([{
|
|
1806
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1807
|
+
useExisting: forwardRef(() => InputNumberComponent),
|
|
1808
|
+
multi: true
|
|
1809
|
+
}]), ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["appearance", "fill", 1, "apipass-input-text", "label-input"], [4, "ngIf"], ["class", "mat-icon-prefix", "matPrefix", "", 3, "click", 4, "ngIf"], ["matInput", "", "type", "number", 1, "input-text", 3, "ngModel", "disabled", "autocomplete", "ngModelChange"], ["class", "mat-icon-suffix", "matSuffix", "", 3, "click", 4, "ngIf"], ["matPrefix", "", 1, "mat-icon-prefix", 3, "click"], ["matSuffix", "", 1, "mat-icon-suffix", 3, "click"]], template: function InputNumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1810
|
+
ɵɵelementStart(0, "mat-form-field", 0);
|
|
1811
|
+
ɵɵtemplate(1, InputNumberComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
|
|
1812
|
+
ɵɵtemplate(2, InputNumberComponent_mat_icon_2_Template, 2, 1, "mat-icon", 2);
|
|
1813
|
+
ɵɵelementStart(3, "input", 3);
|
|
1814
|
+
ɵɵlistener("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_3_listener($event) { return ctx.value = $event; });
|
|
1815
|
+
ɵɵelementEnd();
|
|
1816
|
+
ɵɵtemplate(4, InputNumberComponent_mat_icon_4_Template, 2, 1, "mat-icon", 4);
|
|
1817
|
+
ɵɵelementEnd();
|
|
1818
|
+
} if (rf & 2) {
|
|
1819
|
+
ɵɵadvance(1);
|
|
1820
|
+
ɵɵproperty("ngIf", ctx.label);
|
|
1821
|
+
ɵɵadvance(1);
|
|
1822
|
+
ɵɵproperty("ngIf", ctx.iconPrefix);
|
|
1823
|
+
ɵɵadvance(1);
|
|
1824
|
+
ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("autocomplete", ctx.autoComplete);
|
|
1825
|
+
ɵɵadvance(1);
|
|
1826
|
+
ɵɵproperty("ngIf", ctx.iconSuffix);
|
|
1827
|
+
} }, directives: [MatFormField, NgIf, MatInput, NumberValueAccessor, DefaultValueAccessor, NgControlStatus, NgModel, MatLabel, MatIcon, MatPrefix, MatSuffix], styles: [":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{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{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{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{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 .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-text .mat-icon-suffix{margin-left:5px}.apipass-input-text .mat-icon-prefix{margin-right:5px}"], encapsulation: 2 });
|
|
1828
|
+
const ɵInputNumberComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(InputNumberComponent);
|
|
1829
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputNumberComponent, [{
|
|
1830
|
+
type: Component,
|
|
1831
|
+
args: [{
|
|
1832
|
+
selector: 'input-number',
|
|
1833
|
+
templateUrl: 'input-number.component.html',
|
|
1834
|
+
styleUrls: ['input-number.component.scss'],
|
|
1835
|
+
providers: [{
|
|
1836
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1837
|
+
useExisting: forwardRef(() => InputNumberComponent),
|
|
1838
|
+
multi: true
|
|
1839
|
+
}],
|
|
1840
|
+
encapsulation: ViewEncapsulation.None
|
|
1841
|
+
}]
|
|
1842
|
+
}], null, { label: [{
|
|
1843
|
+
type: Input
|
|
1844
|
+
}], disabled: [{
|
|
1845
|
+
type: Input
|
|
1846
|
+
}], iconSuffix: [{
|
|
1847
|
+
type: Input
|
|
1848
|
+
}], iconPrefix: [{
|
|
1849
|
+
type: Input
|
|
1850
|
+
}], autoComplete: [{
|
|
1851
|
+
type: Input
|
|
1852
|
+
}], suffixIconClick: [{
|
|
1853
|
+
type: Output
|
|
1854
|
+
}], prefixIconClick: [{
|
|
1855
|
+
type: Output
|
|
1856
|
+
}] }); })();
|
|
1857
|
+
|
|
1858
|
+
class InputBooleanComponent extends ValueAccessorBase {
|
|
1859
|
+
constructor() {
|
|
1860
|
+
super(...arguments);
|
|
1861
|
+
this.trueLabel = '';
|
|
1862
|
+
this.trueIconPrefix = '';
|
|
1863
|
+
this.trueIconSuffix = '';
|
|
1864
|
+
this.falseLabel = '';
|
|
1865
|
+
this.falseIconPrefix = '';
|
|
1866
|
+
this.falseIconSuffix = '';
|
|
1867
|
+
this.disabled = false;
|
|
1868
|
+
}
|
|
1869
|
+
trueClick() {
|
|
1870
|
+
if (!this.disabled && !this.value) {
|
|
1871
|
+
this.value = true;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
falseClick() {
|
|
1875
|
+
if (!this.disabled && this.value) {
|
|
1876
|
+
this.value = false;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
InputBooleanComponent.ɵfac = function InputBooleanComponent_Factory(t) { return ɵInputBooleanComponent_BaseFactory(t || InputBooleanComponent); };
|
|
1881
|
+
InputBooleanComponent.ɵcmp = ɵɵdefineComponent({ type: InputBooleanComponent, selectors: [["input-boolean"]], inputs: { trueLabel: "trueLabel", trueIconPrefix: "trueIconPrefix", trueIconSuffix: "trueIconSuffix", falseLabel: "falseLabel", falseIconPrefix: "falseIconPrefix", falseIconSuffix: "falseIconSuffix", disabled: "disabled" }, features: [ɵɵProvidersFeature([{
|
|
1882
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1883
|
+
useExisting: forwardRef(() => InputBooleanComponent),
|
|
1884
|
+
multi: true
|
|
1885
|
+
}]), ɵɵInheritDefinitionFeature], decls: 3, vars: 10, consts: [[1, "input-boolean"], [1, "btn-true", 3, "selected", "label", "icon", "suffixIcon", "btnDisabled", "onClick"], [1, "btn-false", 3, "selected", "label", "icon", "suffixIcon", "btnDisabled", "onClick"]], template: function InputBooleanComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1886
|
+
ɵɵelementStart(0, "div", 0);
|
|
1887
|
+
ɵɵelementStart(1, "primary-button", 1);
|
|
1888
|
+
ɵɵlistener("onClick", function InputBooleanComponent_Template_primary_button_onClick_1_listener() { return ctx.trueClick(); });
|
|
1889
|
+
ɵɵelementEnd();
|
|
1890
|
+
ɵɵelementStart(2, "primary-button", 2);
|
|
1891
|
+
ɵɵlistener("onClick", function InputBooleanComponent_Template_primary_button_onClick_2_listener() { return ctx.falseClick(); });
|
|
1892
|
+
ɵɵelementEnd();
|
|
1893
|
+
ɵɵelementEnd();
|
|
1894
|
+
} if (rf & 2) {
|
|
1895
|
+
ɵɵadvance(1);
|
|
1896
|
+
ɵɵproperty("selected", ctx.value === true)("label", ctx.trueLabel)("icon", ctx.trueIconPrefix)("suffixIcon", ctx.trueIconSuffix)("btnDisabled", ctx.disabled);
|
|
1897
|
+
ɵɵadvance(1);
|
|
1898
|
+
ɵɵproperty("selected", ctx.value === false || ctx.value === undefined)("label", ctx.falseLabel)("icon", ctx.falseIconPrefix)("suffixIcon", ctx.falseIconSuffix)("btnDisabled", ctx.disabled);
|
|
1899
|
+
} }, directives: [PrimaryButtonComponent], styles: [".input-boolean{display:flex;flex-wrap:wrap;width:100%}.input-boolean primary-button:first-child{margin-right:5px}.input-boolean primary-button button:not(.selected){background:#fff;border:1px solid var(--color-fonts-tertiary);color:var(--color-fonts-tertiary);cursor:pointer}.input-boolean primary-button button:not(.selected):hover{color:#fff}.input-boolean primary-button button:not(.selected).mat-button-disabled{color:var(--color-fonts-tertiary)!important;cursor:default!important;pointer-events:none!important}.input-boolean primary-button button.selected{cursor:default;pointer-events:none}.input-boolean primary-button button.selected,.input-boolean primary-button button.selected:hover{background:#fff;border:1px solid var(--color-primary);color:var(--color-primary)}.input-boolean primary-button button.selected.mat-button-disabled{background:var(--color-fonts-tertiary);color:#fff!important;cursor:default!important;pointer-events:none!important}"], encapsulation: 2 });
|
|
1900
|
+
const ɵInputBooleanComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(InputBooleanComponent);
|
|
1901
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputBooleanComponent, [{
|
|
1902
|
+
type: Component,
|
|
1903
|
+
args: [{
|
|
1904
|
+
selector: 'input-boolean',
|
|
1905
|
+
templateUrl: 'input-boolean.component.html',
|
|
1906
|
+
styleUrls: ['input-boolean.component.scss'],
|
|
1907
|
+
providers: [{
|
|
1908
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1909
|
+
useExisting: forwardRef(() => InputBooleanComponent),
|
|
1910
|
+
multi: true
|
|
1911
|
+
}],
|
|
1912
|
+
encapsulation: ViewEncapsulation.None
|
|
1913
|
+
}]
|
|
1914
|
+
}], null, { trueLabel: [{
|
|
1915
|
+
type: Input
|
|
1916
|
+
}], trueIconPrefix: [{
|
|
1917
|
+
type: Input
|
|
1918
|
+
}], trueIconSuffix: [{
|
|
1919
|
+
type: Input
|
|
1920
|
+
}], falseLabel: [{
|
|
1921
|
+
type: Input
|
|
1922
|
+
}], falseIconPrefix: [{
|
|
1923
|
+
type: Input
|
|
1924
|
+
}], falseIconSuffix: [{
|
|
1925
|
+
type: Input
|
|
1926
|
+
}], disabled: [{
|
|
1927
|
+
type: Input
|
|
1928
|
+
}] }); })();
|
|
1929
|
+
|
|
1326
1930
|
class InputsModule {
|
|
1327
1931
|
}
|
|
1328
1932
|
InputsModule.ɵmod = ɵɵdefineNgModule({ type: InputsModule });
|
|
@@ -1342,16 +1946,21 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1342
1946
|
IconsModule,
|
|
1343
1947
|
MatTooltipModule,
|
|
1344
1948
|
DndModule,
|
|
1949
|
+
ButtonsModule,
|
|
1345
1950
|
]] });
|
|
1346
1951
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(InputsModule, { declarations: [MatSelectInfiniteScrollDirective,
|
|
1347
1952
|
SelectBoxComponent,
|
|
1348
1953
|
SelectEnumComponent,
|
|
1349
1954
|
InputTextComponent,
|
|
1955
|
+
InputNumberComponent,
|
|
1956
|
+
InputBooleanComponent,
|
|
1350
1957
|
InputPasswordComponent,
|
|
1351
1958
|
InputAvatarComponent,
|
|
1352
1959
|
InputFileComponent,
|
|
1353
1960
|
CustomSelectComponent,
|
|
1354
|
-
FieldComponent
|
|
1961
|
+
FieldComponent,
|
|
1962
|
+
AceEditorComponent,
|
|
1963
|
+
AceEditorDirective], imports: [RouterModule, CommonModule,
|
|
1355
1964
|
FormsModule,
|
|
1356
1965
|
MatFormFieldModule,
|
|
1357
1966
|
MatInputModule,
|
|
@@ -1364,14 +1973,19 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1364
1973
|
TranslateModule,
|
|
1365
1974
|
IconsModule,
|
|
1366
1975
|
MatTooltipModule,
|
|
1367
|
-
DndModule
|
|
1976
|
+
DndModule,
|
|
1977
|
+
ButtonsModule], exports: [SelectBoxComponent,
|
|
1368
1978
|
SelectEnumComponent,
|
|
1369
1979
|
InputTextComponent,
|
|
1980
|
+
InputNumberComponent,
|
|
1981
|
+
InputBooleanComponent,
|
|
1370
1982
|
InputPasswordComponent,
|
|
1371
1983
|
InputAvatarComponent,
|
|
1372
1984
|
InputFileComponent,
|
|
1373
1985
|
CustomSelectComponent,
|
|
1374
|
-
FieldComponent
|
|
1986
|
+
FieldComponent,
|
|
1987
|
+
AceEditorComponent,
|
|
1988
|
+
AceEditorDirective] }); })();
|
|
1375
1989
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputsModule, [{
|
|
1376
1990
|
type: NgModule,
|
|
1377
1991
|
args: [{
|
|
@@ -1391,27 +2005,36 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1391
2005
|
IconsModule,
|
|
1392
2006
|
MatTooltipModule,
|
|
1393
2007
|
DndModule,
|
|
2008
|
+
ButtonsModule,
|
|
1394
2009
|
],
|
|
1395
2010
|
declarations: [
|
|
1396
2011
|
MatSelectInfiniteScrollDirective,
|
|
1397
2012
|
SelectBoxComponent,
|
|
1398
2013
|
SelectEnumComponent,
|
|
1399
2014
|
InputTextComponent,
|
|
2015
|
+
InputNumberComponent,
|
|
2016
|
+
InputBooleanComponent,
|
|
1400
2017
|
InputPasswordComponent,
|
|
1401
2018
|
InputAvatarComponent,
|
|
1402
2019
|
InputFileComponent,
|
|
1403
2020
|
CustomSelectComponent,
|
|
1404
|
-
FieldComponent
|
|
2021
|
+
FieldComponent,
|
|
2022
|
+
AceEditorComponent,
|
|
2023
|
+
AceEditorDirective
|
|
1405
2024
|
],
|
|
1406
2025
|
exports: [
|
|
1407
2026
|
SelectBoxComponent,
|
|
1408
2027
|
SelectEnumComponent,
|
|
1409
2028
|
InputTextComponent,
|
|
2029
|
+
InputNumberComponent,
|
|
2030
|
+
InputBooleanComponent,
|
|
1410
2031
|
InputPasswordComponent,
|
|
1411
2032
|
InputAvatarComponent,
|
|
1412
2033
|
InputFileComponent,
|
|
1413
2034
|
CustomSelectComponent,
|
|
1414
|
-
FieldComponent
|
|
2035
|
+
FieldComponent,
|
|
2036
|
+
AceEditorComponent,
|
|
2037
|
+
AceEditorDirective
|
|
1415
2038
|
],
|
|
1416
2039
|
providers: [],
|
|
1417
2040
|
}]
|
|
@@ -1421,5 +2044,5 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1421
2044
|
* Generated bundle index. Do not edit.
|
|
1422
2045
|
*/
|
|
1423
2046
|
|
|
1424
|
-
export { CustomSelectComponent, CustomSelectItem, FieldComponent, InputAvatarComponent, InputFileComponent, InputPasswordComponent, InputTextComponent, InputsModule, SelectBoxComponent, SelectEnumComponent };
|
|
2047
|
+
export { AceEditorComponent, AceEditorDirective, CustomSelectComponent, CustomSelectItem, FieldComponent, InputAvatarComponent, InputBooleanComponent, InputFileComponent, InputNumberComponent, InputPasswordComponent, InputTextComponent, InputsModule, SelectBoxComponent, SelectEnumComponent };
|
|
1425
2048
|
//# sourceMappingURL=apipass-inputs.js.map
|