@apipass/inputs 1.0.1 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ace-editor/component.d.ts +1 -1
- package/ace-editor/directive.d.ts +1 -1
- package/debounce-model-directive/debouceInput.directive.d.ts +1 -1
- package/esm2020/ace-editor/component.mjs +9 -13
- package/esm2020/ace-editor/directive.mjs +4 -6
- package/esm2020/custom-select/custom-select-item.mjs +1 -1
- package/esm2020/custom-select/custom-select.component.mjs +3 -3
- package/esm2020/debounce-model-directive/debouceInput.directive.mjs +3 -3
- package/esm2020/field/field.component.mjs +1 -1
- package/esm2020/input-avatar/input-avatar.component.mjs +1 -1
- package/esm2020/input-boolean/input-boolean.component.mjs +1 -1
- package/esm2020/input-file/input-file.component.mjs +1 -1
- package/esm2020/input-number/input-number.component.mjs +1 -1
- package/esm2020/input-password/input-password.component.mjs +4 -4
- package/esm2020/input-text/input-text.component.mjs +1 -1
- package/esm2020/inputs.module.mjs +3 -3
- package/esm2020/public-api.mjs +1 -1
- package/esm2020/select-box/mat-select-infinite-scroll.directive.mjs +2 -2
- package/esm2020/select-box/select-box.component.mjs +12 -7
- package/esm2020/select-enum/select-enum.component.mjs +1 -1
- package/esm2020/select-interpolation/select-interpolation.component.mjs +2 -2
- package/esm2020/value-acessor-base.mjs +1 -1
- package/fesm2015/apipass-inputs.mjs +36 -34
- package/fesm2015/apipass-inputs.mjs.map +1 -1
- package/fesm2020/apipass-inputs.mjs +33 -34
- package/fesm2020/apipass-inputs.mjs.map +1 -1
- package/input-file/input-file.component.d.ts +2 -2
- package/input-password/input-password.component.d.ts +0 -1
- package/package.json +4 -4
- package/select-box/mat-select-infinite-scroll.directive.d.ts +3 -3
- package/select-box/select-box.component.d.ts +4 -4
- package/select-interpolation/select-interpolation.component.d.ts +1 -1
|
@@ -108,7 +108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
108
108
|
|
|
109
109
|
class InputPasswordComponent extends ValueAccessorBase {
|
|
110
110
|
constructor() {
|
|
111
|
-
super();
|
|
111
|
+
super(...arguments);
|
|
112
112
|
this.label = '';
|
|
113
113
|
this.disabled = false;
|
|
114
114
|
this.showPasswordRuleDetails = false;
|
|
@@ -141,7 +141,7 @@ class InputPasswordComponent extends ValueAccessorBase {
|
|
|
141
141
|
return lodash.inRange(this.strengthToValid, 0, 100) ? this.strengthToValid : 100;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: InputPasswordComponent, deps:
|
|
144
|
+
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: InputPasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
145
145
|
InputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: InputPasswordComponent, selector: "input-password", inputs: { label: "label", disabled: "disabled", showPasswordRuleDetails: "showPasswordRuleDetails", showPasswordLengthDetails: "showPasswordLengthDetails", enableLengthRule: "enableLengthRule", enableLowerCaseLetterRule: "enableLowerCaseLetterRule", enableUpperCaseLetterRule: "enableUpperCaseLetterRule", enableDigitRule: "enableDigitRule", enableSpecialCharRule: "enableSpecialCharRule", minLength: "minLength", maxLength: "maxLength", strengthToValid: "strengthToValid", lowerCaseCriteriaMsg: "lowerCaseCriteriaMsg", upperCaseCriteriaMsg: "upperCaseCriteriaMsg", digitsCriteriaMsg: "digitsCriteriaMsg", specialCharsCriteriaMsg: "specialCharsCriteriaMsg", minCharsCriteriaMsg: "minCharsCriteriaMsg" }, outputs: { onValidPassword: "onValidPassword" }, providers: [{
|
|
146
146
|
provide: NG_VALUE_ACCESSOR,
|
|
147
147
|
useExisting: forwardRef(() => InputPasswordComponent),
|
|
@@ -154,7 +154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
154
154
|
useExisting: forwardRef(() => InputPasswordComponent),
|
|
155
155
|
multi: true
|
|
156
156
|
}], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field\r\n class=\"apipass-input-password apipass-input-text\"\r\n [color]=\"passwordComponent.color\"\r\n [ngClass]=\"{'label-input': label}\"\r\n appearance=\"fill\">\r\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\r\n <input matInput #password\r\n [type]=\"toggle.type\"\r\n [disabled]=\"disabled\"\r\n [maxLength]=\"maxLength\"\r\n [minlength]=\"minLength\"\r\n class=\"apipass-input\"\r\n required\r\n [(ngModel)]=\"value\" />\r\n <mat-pass-toggle-visibility #toggle matSuffix></mat-pass-toggle-visibility>\r\n <mat-hint align=\"end\" aria-live=\"polite\" *ngIf=\"showPasswordLengthDetails\">\r\n {{password.value.length}} / {{passwordComponent.max}}\r\n </mat-hint>\r\n</mat-form-field>\r\n\r\n<mat-password-strength\r\n class=\"green\"\r\n #passwordComponent\r\n (onStrengthChanged)=\"onStrengthChanged($event)\"\r\n [enableLengthRule]=\"enableLengthRule\"\r\n [min]=\"minLength\" [max]=\"maxLength\"\r\n [enableLowerCaseLetterRule]=\"enableLowerCaseLetterRule\"\r\n [enableUpperCaseLetterRule]=\"enableUpperCaseLetterRule\"\r\n [enableDigitRule]=\"enableDigitRule\"\r\n [enableSpecialCharRule]=\"enableSpecialCharRule\"\r\n [password]=\"password.value\">\r\n</mat-password-strength>\r\n\r\n<mat-password-strength-info\r\n *ngIf=\"showPasswordRuleDetails\"\r\n [lowerCaseCriteriaMsg]=\"lowerCaseCriteriaMsg\"\r\n [upperCaseCriteriaMsg]=\"upperCaseCriteriaMsg\"\r\n [digitsCriteriaMsg]=\"digitsCriteriaMsg\"\r\n [specialCharsCriteriaMsg]=\"specialCharsCriteriaMsg\"\r\n [minCharsCriteriaMsg]=\"minCharsCriteriaMsg\"\r\n [passwordComponent]=\"passwordComponent\">\r\n</mat-password-strength-info>\r\n", styles: [":root{--color-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;font-display:swap;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-family:PT Sans;font-style:italic;font-weight:400;font-display:swap;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-family:PT Sans;font-style:italic;font-weight:400;font-display:swap;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+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:PT Sans;font-style:italic;font-weight:400;font-display:swap;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+0000-00FF,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-family:PT Sans;font-style:italic;font-weight:700;font-display:swap;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-family:PT Sans;font-style:italic;font-weight:700;font-display:swap;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-family:PT Sans;font-style:italic;font-weight:700;font-display:swap;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+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:PT Sans;font-style:italic;font-weight:700;font-display:swap;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+0000-00FF,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-family:PT Sans;font-style:normal;font-weight:400;font-display:swap;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-family:PT Sans;font-style:normal;font-weight:400;font-display:swap;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-family:PT Sans;font-style:normal;font-weight:400;font-display:swap;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+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:PT Sans;font-style:normal;font-weight:400;font-display:swap;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+0000-00FF,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-family:PT Sans;font-style:normal;font-weight:700;font-display:swap;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-family:PT Sans;font-style:normal;font-weight:700;font-display:swap;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-family:PT Sans;font-style:normal;font-weight:700;font-display:swap;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+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:PT Sans;font-style:normal;font-weight:700;font-display:swap;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+0000-00FF,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-mdc-form-field-subscript-wrapper{display:none}.mat-form-field-appearance-fill .mdc-text-field{display:flex!important;align-items:center!important;border:1px solid var(--color-inputs-border)!important;background:var(--color-inputs-background)!important;border-radius:6px!important}.mat-form-field-infix{padding:0!important;display:flex!important;align-items:center!important;border-top:none!important}.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mdc-text-field{border:none!important}.no-border .mdc-text-field 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-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label{color:var(--color-primary)!important}.placeholder-primary ::ng-deep .mat-form-field-placeholder,.placeholder-primary .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-focused .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label{font-weight:700!important}.placeholder-bold ::ng-deep .mat-form-field-placeholder,.placeholder-bold .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-focused .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%;height:51px}.apipass-input-text.search-input-item{height:40px!important}.apipass-input-text.search-input-item .search-input-item{margin-top:5px}.apipass-input-text .mat-mdc-form-field-flex{padding:0!important;height:auto}.apipass-input-text .mdc-line-ripple:before,.apipass-search-input-text .mdc-line-ripple:before,.custom-select-component .mdc-line-ripple:before,.apipass-select .mdc-line-ripple:before,.apipass-date-filter .mdc-line-ripple:before{border-bottom-color:transparent!important}.apipass-input-text .mdc-line-ripple:after,.apipass-search-input-text .mdc-line-ripple:after,.custom-select-component .mdc-line-ripple:after,.apipass-select .mdc-line-ripple:after,.apipass-date-filter .mdc-line-ripple:after{border-bottom-color:var(--color-primary-active)}.apipass-input-text .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label,.apipass-search-input-text .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label,.custom-select-component .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label,.apipass-select .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label,.apipass-date-filter .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--color-primary-active)}.apipass-input-text .mat-mdc-form-field-infix,.apipass-search-input-text .mat-mdc-form-field-infix,.custom-select-component .mat-mdc-form-field-infix,.apipass-select .mat-mdc-form-field-infix,.apipass-date-filter .mat-mdc-form-field-infix{padding-top:12px!important;padding-bottom:0!important;font-size:14px!important}.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.custom-select-component .mat-icon-button,.apipass-select .mat-icon-button,.apipass-date-filter .mat-icon-button{width:auto!important;height:auto!important}.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.apipass-date-filter.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.custom-select-component.label-input input,.apipass-select.label-input input,.apipass-date-filter.label-input input{padding-top:10px!important;padding-bottom:5px!important}.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,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper{padding-top:0!important;margin-top:-10px!important}.apipass-input-text .mat-mdc-form-field-focus-overlay,.apipass-search-input-text .mat-mdc-form-field-focus-overlay,.custom-select-component .mat-mdc-form-field-focus-overlay,.apipass-select .mat-mdc-form-field-focus-overlay,.apipass-date-filter .mat-mdc-form-field-focus-overlay{opacity:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-mdc-form-field-flex{padding:0!important;height:auto;border-top:none!important;border-left:none!important;border-right:none!important;border-radius:0!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%;height:51px}.custom-select-component .mat-mdc-form-field-flex{padding:0!important;height:auto}.custom-select-component .mat-mdc-form-field-infix{padding-top:0!important;padding-bottom:0!important;font-size:14px!important;width:100%;display:flex;align-items:center;justify-content:center}.custom-select-component mat-form-field{height:20px!important}.apipass-select{width:100%}.apipass-select .mat-mdc-form-field-flex{padding:0!important;height:auto}.apipass-select.label-input .mat-form-field-infix{padding-top:7px!important;padding-bottom:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-mdc-form-field-flex{padding:0!important;height:auto}.apipass-date-filter .mat-form-field-suffix span{cursor:pointer;color:#777}.apipass-date-filter .mat-mdc-form-field-infix{padding-top:12px!important;padding-bottom:0!important;height:51px!important;max-height:51px!important;min-height:51px!important}.apipass-input-password mat-pass-toggle-visibility{color:var(--color-primary);cursor:pointer}\n"] }]
|
|
157
|
-
}],
|
|
157
|
+
}], propDecorators: { label: [{
|
|
158
158
|
type: Input
|
|
159
159
|
}], disabled: [{
|
|
160
160
|
type: Input
|
|
@@ -413,7 +413,7 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
413
413
|
this.onBodyScroll = (event) => {
|
|
414
414
|
var _a, _b;
|
|
415
415
|
if (this.closeOnBodyScroll && ((_a = this.ngSelectComponent) === null || _a === void 0 ? void 0 : _a.isOpen)) {
|
|
416
|
-
const isScrollingInScrollHost = (
|
|
416
|
+
const isScrollingInScrollHost = (_b = event.target.className) === null || _b === void 0 ? void 0 : _b.includes('ng-dropdown-panel-items');
|
|
417
417
|
if (isScrollingInScrollHost) {
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
@@ -445,12 +445,16 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
445
445
|
else {
|
|
446
446
|
this.visibleItens = [];
|
|
447
447
|
}
|
|
448
|
-
setTimeout(() =>
|
|
448
|
+
setTimeout(() => {
|
|
449
|
+
this.loading = false;
|
|
450
|
+
}, 300);
|
|
449
451
|
});
|
|
450
452
|
}
|
|
451
|
-
// @ts-
|
|
453
|
+
// @ts-expect-error end has implicity type
|
|
452
454
|
onScroll({ end }) {
|
|
453
|
-
const data = this.lastSearchTerm
|
|
455
|
+
const data = this.lastSearchTerm
|
|
456
|
+
? this.data.filter(item => { var _a; return (_a = item[this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(this.lastSearchTerm.toLowerCase()); })
|
|
457
|
+
: this.data;
|
|
454
458
|
if (this.loading || data.length <= this.visibleItens.length) {
|
|
455
459
|
return;
|
|
456
460
|
}
|
|
@@ -467,8 +471,9 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
467
471
|
fetchMore() {
|
|
468
472
|
this.loading = true;
|
|
469
473
|
const len = this.visibleItens.length;
|
|
470
|
-
const more = this.lastSearchTerm
|
|
471
|
-
this.data.filter(item => { var _a; return (_a = item[this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len)
|
|
474
|
+
const more = this.lastSearchTerm
|
|
475
|
+
? this.data.filter(item => { var _a; return (_a = item[this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len)
|
|
476
|
+
: this.data.slice(len, this.limitItens + len);
|
|
472
477
|
this.visibleItens = this.visibleItens.concat(more);
|
|
473
478
|
this.loading = false;
|
|
474
479
|
}
|
|
@@ -647,7 +652,7 @@ class MatSelectInfiniteScrollDirective {
|
|
|
647
652
|
const threshold = this.thrPc !== 0 ? (infiniteScrollDistance * this.thrPc) : this.thrPx;
|
|
648
653
|
const scrolledDistance = this.panel.clientHeight + event.target.scrollTop;
|
|
649
654
|
if ((scrolledDistance + threshold) >= infiniteScrollDistance) {
|
|
650
|
-
this.ngZone.run(() => this.infiniteScroll.emit());
|
|
655
|
+
this.ngZone.run(() => { this.infiniteScroll.emit(); });
|
|
651
656
|
}
|
|
652
657
|
});
|
|
653
658
|
}
|
|
@@ -704,6 +709,7 @@ class CustomSelectComponent {
|
|
|
704
709
|
this.scrollStrategy = this.sso.block();
|
|
705
710
|
}
|
|
706
711
|
onBlur(target) {
|
|
712
|
+
var _a;
|
|
707
713
|
if (this.allowTyping) {
|
|
708
714
|
if (this.value) {
|
|
709
715
|
if (this.edited) {
|
|
@@ -717,7 +723,7 @@ class CustomSelectComponent {
|
|
|
717
723
|
this.onSelect.next(undefined);
|
|
718
724
|
}
|
|
719
725
|
}
|
|
720
|
-
if (target
|
|
726
|
+
if ((_a = target === null || target === void 0 ? void 0 : target.relatedTarget) === null || _a === void 0 ? void 0 : _a.classList.contains('search-input-item')) {
|
|
721
727
|
return;
|
|
722
728
|
}
|
|
723
729
|
this.setTriggerRect();
|
|
@@ -775,8 +781,9 @@ class CustomSelectComponent {
|
|
|
775
781
|
this.onSelect.next(value);
|
|
776
782
|
}
|
|
777
783
|
writeValue(value) {
|
|
784
|
+
var _a;
|
|
778
785
|
if (value !== this.innerValue) {
|
|
779
|
-
if (!this.selectedItem ||
|
|
786
|
+
if (!((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.text) || !value) {
|
|
780
787
|
this.selectedItem = new CustomSelectItem(null, value);
|
|
781
788
|
}
|
|
782
789
|
this.innerValue = value;
|
|
@@ -951,24 +958,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
951
958
|
type: Output
|
|
952
959
|
}] } });
|
|
953
960
|
|
|
954
|
-
/* tslint:disable */
|
|
955
961
|
class AceEditorComponent {
|
|
956
962
|
constructor(elementRef, zone) {
|
|
957
963
|
this.zone = zone;
|
|
958
964
|
this.textChanged = new EventEmitter();
|
|
959
965
|
this.textChange = new EventEmitter();
|
|
960
966
|
this.style = {};
|
|
961
|
-
// @ts-ignore
|
|
962
967
|
this._options = {};
|
|
963
|
-
|
|
968
|
+
this._readOnly = false;
|
|
964
969
|
this._theme = 'monokai';
|
|
965
|
-
// @ts-ignore
|
|
966
970
|
this._mode = 'html';
|
|
967
|
-
// @ts-ignore
|
|
968
971
|
this._autoUpdateContent = true;
|
|
969
|
-
// @ts-ignore
|
|
970
972
|
this._durationBeforeCallback = 0;
|
|
971
|
-
// @ts-ignore
|
|
972
973
|
this._text = '';
|
|
973
974
|
this._onChange = (_) => {
|
|
974
975
|
};
|
|
@@ -976,7 +977,7 @@ class AceEditorComponent {
|
|
|
976
977
|
};
|
|
977
978
|
const el = elementRef.nativeElement;
|
|
978
979
|
this.zone.runOutsideAngular(() => {
|
|
979
|
-
this._editor = ace
|
|
980
|
+
this._editor = ace.edit(el);
|
|
980
981
|
});
|
|
981
982
|
this._editor.$blockScrolling = Infinity;
|
|
982
983
|
}
|
|
@@ -994,8 +995,12 @@ class AceEditorComponent {
|
|
|
994
995
|
this.setReadOnly(this._readOnly);
|
|
995
996
|
}
|
|
996
997
|
initEvents() {
|
|
997
|
-
this._editor.on('change', () =>
|
|
998
|
-
|
|
998
|
+
this._editor.on('change', () => {
|
|
999
|
+
this.updateText();
|
|
1000
|
+
});
|
|
1001
|
+
this._editor.on('paste', () => {
|
|
1002
|
+
this.updateText();
|
|
1003
|
+
});
|
|
999
1004
|
}
|
|
1000
1005
|
updateText() {
|
|
1001
1006
|
const newVal = this._editor.getValue();
|
|
@@ -1058,11 +1063,9 @@ class AceEditorComponent {
|
|
|
1058
1063
|
this._editor.getSession().setMode(`ace/mode/${this._mode}`);
|
|
1059
1064
|
}
|
|
1060
1065
|
}
|
|
1061
|
-
// @ts-ignore
|
|
1062
1066
|
get value() {
|
|
1063
1067
|
return this.text;
|
|
1064
1068
|
}
|
|
1065
|
-
// @ts-ignore
|
|
1066
1069
|
set value(value) {
|
|
1067
1070
|
this.setText(value);
|
|
1068
1071
|
}
|
|
@@ -1145,7 +1148,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
1145
1148
|
type: Input
|
|
1146
1149
|
}] } });
|
|
1147
1150
|
|
|
1148
|
-
/* tslint:disable */
|
|
1149
1151
|
class AceEditorDirective {
|
|
1150
1152
|
constructor(elementRef, zone) {
|
|
1151
1153
|
this.zone = zone;
|
|
@@ -1160,7 +1162,7 @@ class AceEditorDirective {
|
|
|
1160
1162
|
this._text = '';
|
|
1161
1163
|
const el = elementRef.nativeElement;
|
|
1162
1164
|
this.zone.runOutsideAngular(() => {
|
|
1163
|
-
this.editor = ace
|
|
1165
|
+
this.editor = ace.edit(el);
|
|
1164
1166
|
});
|
|
1165
1167
|
this.editor.$blockScrolling = Infinity;
|
|
1166
1168
|
}
|
|
@@ -1178,8 +1180,8 @@ class AceEditorDirective {
|
|
|
1178
1180
|
this.editor.setReadOnly(this._readOnly);
|
|
1179
1181
|
}
|
|
1180
1182
|
initEvents() {
|
|
1181
|
-
this.editor.on('change', () => this.updateText());
|
|
1182
|
-
this.editor.on('paste', () => this.updateText());
|
|
1183
|
+
this.editor.on('change', () => { this.updateText(); });
|
|
1184
|
+
this.editor.on('paste', () => { this.updateText(); });
|
|
1183
1185
|
}
|
|
1184
1186
|
updateText() {
|
|
1185
1187
|
const newVal = this.editor.getValue();
|
|
@@ -1232,7 +1234,6 @@ class AceEditorDirective {
|
|
|
1232
1234
|
this.editor.getSession().setMode(`ace/mode/${this._mode}`);
|
|
1233
1235
|
}
|
|
1234
1236
|
}
|
|
1235
|
-
// @ts-ignore
|
|
1236
1237
|
get text() {
|
|
1237
1238
|
return this._text;
|
|
1238
1239
|
}
|
|
@@ -1400,7 +1401,7 @@ class DebouceInputDirective {
|
|
|
1400
1401
|
this.ngModel = ngModel;
|
|
1401
1402
|
this.debounceTime = 500;
|
|
1402
1403
|
this.onDebounceTriggered = new EventEmitter();
|
|
1403
|
-
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), distinctUntilChanged(), debounceTime(this.debounceTime)).subscribe((value) => this.onDebounceTriggered.emit(value));
|
|
1404
|
+
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), distinctUntilChanged(), debounceTime(this.debounceTime)).subscribe((value) => { this.onDebounceTriggered.emit(value); });
|
|
1404
1405
|
}
|
|
1405
1406
|
ngOnDestroy() {
|
|
1406
1407
|
if (this.subscription) {
|
|
@@ -1413,7 +1414,7 @@ DebouceInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0",
|
|
|
1413
1414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DebouceInputDirective, decorators: [{
|
|
1414
1415
|
type: Directive,
|
|
1415
1416
|
args: [{
|
|
1416
|
-
selector: '[debounceInput]'
|
|
1417
|
+
selector: '[debounceInput]'
|
|
1417
1418
|
}]
|
|
1418
1419
|
}], ctorParameters: function () { return [{ type: i2.NgModel }]; }, propDecorators: { debounceTime: [{
|
|
1419
1420
|
type: Input
|
|
@@ -1441,6 +1442,7 @@ class SelectInterpolationComponent {
|
|
|
1441
1442
|
this.scrollStrategy = this.sso.block();
|
|
1442
1443
|
}
|
|
1443
1444
|
onBlur(target) {
|
|
1445
|
+
var _a;
|
|
1444
1446
|
if (this.selectedItemLabel) {
|
|
1445
1447
|
if (this.edited) {
|
|
1446
1448
|
this.writeValue(this.selectedItemLabel);
|
|
@@ -1452,7 +1454,7 @@ class SelectInterpolationComponent {
|
|
|
1452
1454
|
this.writeValue(undefined);
|
|
1453
1455
|
this.onSelect.next(undefined);
|
|
1454
1456
|
}
|
|
1455
|
-
if (target
|
|
1457
|
+
if ((_a = target === null || target === void 0 ? void 0 : target.relatedTarget) === null || _a === void 0 ? void 0 : _a.classList.contains('search-input-item')) {
|
|
1456
1458
|
return;
|
|
1457
1459
|
}
|
|
1458
1460
|
this.setTriggerRect();
|
|
@@ -1657,7 +1659,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
1657
1659
|
MatTooltipModule,
|
|
1658
1660
|
DndModule,
|
|
1659
1661
|
ButtonsModule,
|
|
1660
|
-
OverlayModule
|
|
1662
|
+
OverlayModule
|
|
1661
1663
|
],
|
|
1662
1664
|
declarations: [
|
|
1663
1665
|
MatSelectInfiniteScrollDirective,
|
|
@@ -1692,7 +1694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
1692
1694
|
AceEditorDirective,
|
|
1693
1695
|
DebouceInputDirective
|
|
1694
1696
|
],
|
|
1695
|
-
providers: []
|
|
1697
|
+
providers: []
|
|
1696
1698
|
}]
|
|
1697
1699
|
}] });
|
|
1698
1700
|
|