@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
|
|
@@ -412,7 +412,7 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
412
412
|
this.lastSearchTerm = '';
|
|
413
413
|
this.onBodyScroll = (event) => {
|
|
414
414
|
if (this.closeOnBodyScroll && this.ngSelectComponent?.isOpen) {
|
|
415
|
-
const isScrollingInScrollHost = event.target.className?.
|
|
415
|
+
const isScrollingInScrollHost = event.target.className?.includes('ng-dropdown-panel-items');
|
|
416
416
|
if (isScrollingInScrollHost) {
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
@@ -444,12 +444,16 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
444
444
|
else {
|
|
445
445
|
this.visibleItens = [];
|
|
446
446
|
}
|
|
447
|
-
setTimeout(() =>
|
|
447
|
+
setTimeout(() => {
|
|
448
|
+
this.loading = false;
|
|
449
|
+
}, 300);
|
|
448
450
|
});
|
|
449
451
|
}
|
|
450
|
-
// @ts-
|
|
452
|
+
// @ts-expect-error end has implicity type
|
|
451
453
|
onScroll({ end }) {
|
|
452
|
-
const data = this.lastSearchTerm
|
|
454
|
+
const data = this.lastSearchTerm
|
|
455
|
+
? this.data.filter(item => item[this.bindValue]?.toString().toLowerCase().includes(this.lastSearchTerm.toLowerCase()))
|
|
456
|
+
: this.data;
|
|
453
457
|
if (this.loading || data.length <= this.visibleItens.length) {
|
|
454
458
|
return;
|
|
455
459
|
}
|
|
@@ -466,8 +470,9 @@ class SelectBoxComponent extends ValueAccessorBase {
|
|
|
466
470
|
fetchMore() {
|
|
467
471
|
this.loading = true;
|
|
468
472
|
const len = this.visibleItens.length;
|
|
469
|
-
const more = this.lastSearchTerm
|
|
470
|
-
this.data.filter(item => item[this.bindValue]?.toString().toLowerCase().includes(this.lastSearchTerm.toLowerCase())).slice(len, this.limitItens + len)
|
|
473
|
+
const more = this.lastSearchTerm
|
|
474
|
+
? this.data.filter(item => item[this.bindValue]?.toString().toLowerCase().includes(this.lastSearchTerm.toLowerCase())).slice(len, this.limitItens + len)
|
|
475
|
+
: this.data.slice(len, this.limitItens + len);
|
|
471
476
|
this.visibleItens = this.visibleItens.concat(more);
|
|
472
477
|
this.loading = false;
|
|
473
478
|
}
|
|
@@ -644,7 +649,7 @@ class MatSelectInfiniteScrollDirective {
|
|
|
644
649
|
const threshold = this.thrPc !== 0 ? (infiniteScrollDistance * this.thrPc) : this.thrPx;
|
|
645
650
|
const scrolledDistance = this.panel.clientHeight + event.target.scrollTop;
|
|
646
651
|
if ((scrolledDistance + threshold) >= infiniteScrollDistance) {
|
|
647
|
-
this.ngZone.run(() => this.infiniteScroll.emit());
|
|
652
|
+
this.ngZone.run(() => { this.infiniteScroll.emit(); });
|
|
648
653
|
}
|
|
649
654
|
});
|
|
650
655
|
}
|
|
@@ -714,7 +719,7 @@ class CustomSelectComponent {
|
|
|
714
719
|
this.onSelect.next(undefined);
|
|
715
720
|
}
|
|
716
721
|
}
|
|
717
|
-
if (target
|
|
722
|
+
if (target?.relatedTarget?.classList.contains('search-input-item')) {
|
|
718
723
|
return;
|
|
719
724
|
}
|
|
720
725
|
this.setTriggerRect();
|
|
@@ -772,7 +777,7 @@ class CustomSelectComponent {
|
|
|
772
777
|
}
|
|
773
778
|
writeValue(value) {
|
|
774
779
|
if (value !== this.innerValue) {
|
|
775
|
-
if (!this.selectedItem
|
|
780
|
+
if (!this.selectedItem?.text || !value) {
|
|
776
781
|
this.selectedItem = new CustomSelectItem(null, value);
|
|
777
782
|
}
|
|
778
783
|
this.innerValue = value;
|
|
@@ -946,24 +951,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
946
951
|
type: Output
|
|
947
952
|
}] } });
|
|
948
953
|
|
|
949
|
-
/* tslint:disable */
|
|
950
954
|
class AceEditorComponent {
|
|
951
955
|
constructor(elementRef, zone) {
|
|
952
956
|
this.zone = zone;
|
|
953
957
|
this.textChanged = new EventEmitter();
|
|
954
958
|
this.textChange = new EventEmitter();
|
|
955
959
|
this.style = {};
|
|
956
|
-
// @ts-ignore
|
|
957
960
|
this._options = {};
|
|
958
|
-
|
|
961
|
+
this._readOnly = false;
|
|
959
962
|
this._theme = 'monokai';
|
|
960
|
-
// @ts-ignore
|
|
961
963
|
this._mode = 'html';
|
|
962
|
-
// @ts-ignore
|
|
963
964
|
this._autoUpdateContent = true;
|
|
964
|
-
// @ts-ignore
|
|
965
965
|
this._durationBeforeCallback = 0;
|
|
966
|
-
// @ts-ignore
|
|
967
966
|
this._text = '';
|
|
968
967
|
this._onChange = (_) => {
|
|
969
968
|
};
|
|
@@ -971,7 +970,7 @@ class AceEditorComponent {
|
|
|
971
970
|
};
|
|
972
971
|
const el = elementRef.nativeElement;
|
|
973
972
|
this.zone.runOutsideAngular(() => {
|
|
974
|
-
this._editor = ace
|
|
973
|
+
this._editor = ace.edit(el);
|
|
975
974
|
});
|
|
976
975
|
this._editor.$blockScrolling = Infinity;
|
|
977
976
|
}
|
|
@@ -989,8 +988,12 @@ class AceEditorComponent {
|
|
|
989
988
|
this.setReadOnly(this._readOnly);
|
|
990
989
|
}
|
|
991
990
|
initEvents() {
|
|
992
|
-
this._editor.on('change', () =>
|
|
993
|
-
|
|
991
|
+
this._editor.on('change', () => {
|
|
992
|
+
this.updateText();
|
|
993
|
+
});
|
|
994
|
+
this._editor.on('paste', () => {
|
|
995
|
+
this.updateText();
|
|
996
|
+
});
|
|
994
997
|
}
|
|
995
998
|
updateText() {
|
|
996
999
|
const newVal = this._editor.getValue();
|
|
@@ -1053,11 +1056,9 @@ class AceEditorComponent {
|
|
|
1053
1056
|
this._editor.getSession().setMode(`ace/mode/${this._mode}`);
|
|
1054
1057
|
}
|
|
1055
1058
|
}
|
|
1056
|
-
// @ts-ignore
|
|
1057
1059
|
get value() {
|
|
1058
1060
|
return this.text;
|
|
1059
1061
|
}
|
|
1060
|
-
// @ts-ignore
|
|
1061
1062
|
set value(value) {
|
|
1062
1063
|
this.setText(value);
|
|
1063
1064
|
}
|
|
@@ -1140,7 +1141,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
1140
1141
|
type: Input
|
|
1141
1142
|
}] } });
|
|
1142
1143
|
|
|
1143
|
-
/* tslint:disable */
|
|
1144
1144
|
class AceEditorDirective {
|
|
1145
1145
|
constructor(elementRef, zone) {
|
|
1146
1146
|
this.zone = zone;
|
|
@@ -1155,7 +1155,7 @@ class AceEditorDirective {
|
|
|
1155
1155
|
this._text = '';
|
|
1156
1156
|
const el = elementRef.nativeElement;
|
|
1157
1157
|
this.zone.runOutsideAngular(() => {
|
|
1158
|
-
this.editor = ace
|
|
1158
|
+
this.editor = ace.edit(el);
|
|
1159
1159
|
});
|
|
1160
1160
|
this.editor.$blockScrolling = Infinity;
|
|
1161
1161
|
}
|
|
@@ -1173,8 +1173,8 @@ class AceEditorDirective {
|
|
|
1173
1173
|
this.editor.setReadOnly(this._readOnly);
|
|
1174
1174
|
}
|
|
1175
1175
|
initEvents() {
|
|
1176
|
-
this.editor.on('change', () => this.updateText());
|
|
1177
|
-
this.editor.on('paste', () => this.updateText());
|
|
1176
|
+
this.editor.on('change', () => { this.updateText(); });
|
|
1177
|
+
this.editor.on('paste', () => { this.updateText(); });
|
|
1178
1178
|
}
|
|
1179
1179
|
updateText() {
|
|
1180
1180
|
const newVal = this.editor.getValue();
|
|
@@ -1227,7 +1227,6 @@ class AceEditorDirective {
|
|
|
1227
1227
|
this.editor.getSession().setMode(`ace/mode/${this._mode}`);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
// @ts-ignore
|
|
1231
1230
|
get text() {
|
|
1232
1231
|
return this._text;
|
|
1233
1232
|
}
|
|
@@ -1395,7 +1394,7 @@ class DebouceInputDirective {
|
|
|
1395
1394
|
this.ngModel = ngModel;
|
|
1396
1395
|
this.debounceTime = 500;
|
|
1397
1396
|
this.onDebounceTriggered = new EventEmitter();
|
|
1398
|
-
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), distinctUntilChanged(), debounceTime(this.debounceTime)).subscribe((value) => this.onDebounceTriggered.emit(value));
|
|
1397
|
+
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), distinctUntilChanged(), debounceTime(this.debounceTime)).subscribe((value) => { this.onDebounceTriggered.emit(value); });
|
|
1399
1398
|
}
|
|
1400
1399
|
ngOnDestroy() {
|
|
1401
1400
|
if (this.subscription) {
|
|
@@ -1408,7 +1407,7 @@ DebouceInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0",
|
|
|
1408
1407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: DebouceInputDirective, decorators: [{
|
|
1409
1408
|
type: Directive,
|
|
1410
1409
|
args: [{
|
|
1411
|
-
selector: '[debounceInput]'
|
|
1410
|
+
selector: '[debounceInput]'
|
|
1412
1411
|
}]
|
|
1413
1412
|
}], ctorParameters: function () { return [{ type: i2.NgModel }]; }, propDecorators: { debounceTime: [{
|
|
1414
1413
|
type: Input
|
|
@@ -1447,7 +1446,7 @@ class SelectInterpolationComponent {
|
|
|
1447
1446
|
this.writeValue(undefined);
|
|
1448
1447
|
this.onSelect.next(undefined);
|
|
1449
1448
|
}
|
|
1450
|
-
if (target
|
|
1449
|
+
if (target?.relatedTarget?.classList.contains('search-input-item')) {
|
|
1451
1450
|
return;
|
|
1452
1451
|
}
|
|
1453
1452
|
this.setTriggerRect();
|
|
@@ -1650,7 +1649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
1650
1649
|
MatTooltipModule,
|
|
1651
1650
|
DndModule,
|
|
1652
1651
|
ButtonsModule,
|
|
1653
|
-
OverlayModule
|
|
1652
|
+
OverlayModule
|
|
1654
1653
|
],
|
|
1655
1654
|
declarations: [
|
|
1656
1655
|
MatSelectInfiniteScrollDirective,
|
|
@@ -1685,7 +1684,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
1685
1684
|
AceEditorDirective,
|
|
1686
1685
|
DebouceInputDirective
|
|
1687
1686
|
],
|
|
1688
|
-
providers: []
|
|
1687
|
+
providers: []
|
|
1689
1688
|
}]
|
|
1690
1689
|
}] });
|
|
1691
1690
|
|