@apipass/inputs 0.2.1-alpha.5 → 0.2.1-alpha.9
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 +663 -13
- 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/fesm2015/apipass-inputs.js +559 -11
- 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
|
@@ -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';
|
|
@@ -18,6 +18,9 @@ import { NgSelectComponent, ɵh, ɵj, ɵf, NgSelectModule } from '@ng-select/ng-
|
|
|
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,
|
|
@@ -1398,6 +1401,532 @@ InputFileComponent.ɵcmp = ɵɵdefineComponent({ type: InputFileComponent, selec
|
|
|
1398
1401
|
type: Output
|
|
1399
1402
|
}] }); })();
|
|
1400
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
|
+
|
|
1401
1930
|
class InputsModule {
|
|
1402
1931
|
}
|
|
1403
1932
|
InputsModule.ɵmod = ɵɵdefineNgModule({ type: InputsModule });
|
|
@@ -1417,16 +1946,21 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1417
1946
|
IconsModule,
|
|
1418
1947
|
MatTooltipModule,
|
|
1419
1948
|
DndModule,
|
|
1949
|
+
ButtonsModule,
|
|
1420
1950
|
]] });
|
|
1421
1951
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(InputsModule, { declarations: [MatSelectInfiniteScrollDirective,
|
|
1422
1952
|
SelectBoxComponent,
|
|
1423
1953
|
SelectEnumComponent,
|
|
1424
1954
|
InputTextComponent,
|
|
1955
|
+
InputNumberComponent,
|
|
1956
|
+
InputBooleanComponent,
|
|
1425
1957
|
InputPasswordComponent,
|
|
1426
1958
|
InputAvatarComponent,
|
|
1427
1959
|
InputFileComponent,
|
|
1428
1960
|
CustomSelectComponent,
|
|
1429
|
-
FieldComponent
|
|
1961
|
+
FieldComponent,
|
|
1962
|
+
AceEditorComponent,
|
|
1963
|
+
AceEditorDirective], imports: [RouterModule, CommonModule,
|
|
1430
1964
|
FormsModule,
|
|
1431
1965
|
MatFormFieldModule,
|
|
1432
1966
|
MatInputModule,
|
|
@@ -1439,14 +1973,19 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1439
1973
|
TranslateModule,
|
|
1440
1974
|
IconsModule,
|
|
1441
1975
|
MatTooltipModule,
|
|
1442
|
-
DndModule
|
|
1976
|
+
DndModule,
|
|
1977
|
+
ButtonsModule], exports: [SelectBoxComponent,
|
|
1443
1978
|
SelectEnumComponent,
|
|
1444
1979
|
InputTextComponent,
|
|
1980
|
+
InputNumberComponent,
|
|
1981
|
+
InputBooleanComponent,
|
|
1445
1982
|
InputPasswordComponent,
|
|
1446
1983
|
InputAvatarComponent,
|
|
1447
1984
|
InputFileComponent,
|
|
1448
1985
|
CustomSelectComponent,
|
|
1449
|
-
FieldComponent
|
|
1986
|
+
FieldComponent,
|
|
1987
|
+
AceEditorComponent,
|
|
1988
|
+
AceEditorDirective] }); })();
|
|
1450
1989
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputsModule, [{
|
|
1451
1990
|
type: NgModule,
|
|
1452
1991
|
args: [{
|
|
@@ -1466,27 +2005,36 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1466
2005
|
IconsModule,
|
|
1467
2006
|
MatTooltipModule,
|
|
1468
2007
|
DndModule,
|
|
2008
|
+
ButtonsModule,
|
|
1469
2009
|
],
|
|
1470
2010
|
declarations: [
|
|
1471
2011
|
MatSelectInfiniteScrollDirective,
|
|
1472
2012
|
SelectBoxComponent,
|
|
1473
2013
|
SelectEnumComponent,
|
|
1474
2014
|
InputTextComponent,
|
|
2015
|
+
InputNumberComponent,
|
|
2016
|
+
InputBooleanComponent,
|
|
1475
2017
|
InputPasswordComponent,
|
|
1476
2018
|
InputAvatarComponent,
|
|
1477
2019
|
InputFileComponent,
|
|
1478
2020
|
CustomSelectComponent,
|
|
1479
|
-
FieldComponent
|
|
2021
|
+
FieldComponent,
|
|
2022
|
+
AceEditorComponent,
|
|
2023
|
+
AceEditorDirective
|
|
1480
2024
|
],
|
|
1481
2025
|
exports: [
|
|
1482
2026
|
SelectBoxComponent,
|
|
1483
2027
|
SelectEnumComponent,
|
|
1484
2028
|
InputTextComponent,
|
|
2029
|
+
InputNumberComponent,
|
|
2030
|
+
InputBooleanComponent,
|
|
1485
2031
|
InputPasswordComponent,
|
|
1486
2032
|
InputAvatarComponent,
|
|
1487
2033
|
InputFileComponent,
|
|
1488
2034
|
CustomSelectComponent,
|
|
1489
|
-
FieldComponent
|
|
2035
|
+
FieldComponent,
|
|
2036
|
+
AceEditorComponent,
|
|
2037
|
+
AceEditorDirective
|
|
1490
2038
|
],
|
|
1491
2039
|
providers: [],
|
|
1492
2040
|
}]
|
|
@@ -1496,5 +2044,5 @@ InputsModule.ɵinj = ɵɵdefineInjector({ factory: function InputsModule_Factory
|
|
|
1496
2044
|
* Generated bundle index. Do not edit.
|
|
1497
2045
|
*/
|
|
1498
2046
|
|
|
1499
|
-
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 };
|
|
1500
2048
|
//# sourceMappingURL=apipass-inputs.js.map
|