aeb-ui-kit 2.2.0 → 2.3.0-preview.544
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/assets/images/responses/401-dark.svg +27 -0
- package/assets/images/responses/401-light.svg +27 -0
- package/assets/images/responses/403-dark.svg +39 -0
- package/assets/images/responses/403-light.svg +38 -0
- package/assets/images/responses/404-dark.svg +47 -0
- package/assets/images/responses/404-light.svg +40 -0
- package/assets/images/responses/429-dark.svg +33 -0
- package/assets/images/responses/429-light.svg +33 -0
- package/assets/images/responses/500-dark.svg +43 -0
- package/assets/images/responses/500-light.svg +43 -0
- package/assets/images/responses/503-dark.svg +43 -0
- package/assets/images/responses/503-light.svg +43 -0
- package/esm2020/lib/aeb-ui-kit.module.mjs +14 -7
- package/esm2020/lib/code-input/code-input.component.mjs +60 -19
- package/esm2020/lib/code-input/code-input.module.mjs +5 -5
- package/esm2020/lib/new-button/new-button.component.mjs +2 -2
- package/esm2020/lib/response/response.component.mjs +20 -0
- package/esm2020/lib/response/response.module.mjs +17 -0
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/aeb-ui-kit.mjs +109 -30
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +106 -30
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/aeb-ui-kit.module.d.ts +2 -1
- package/lib/code-input/code-input.component.d.ts +13 -9
- package/lib/code-input/code-input.module.d.ts +1 -1
- package/lib/response/response.component.d.ts +10 -0
- package/lib/response/response.module.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
package/fesm2020/aeb-ui-kit.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter,
|
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
|
-
import { NG_VALUE_ACCESSOR, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import { NG_VALUE_ACCESSOR, FormControl, Validators, FormsModule, ReactiveFormsModule, FormGroup, FormArray } from '@angular/forms';
|
|
7
7
|
import * as i2 from '@angular/platform-browser';
|
|
8
8
|
import * as i1$2 from 'ngx-mask';
|
|
9
9
|
import { NgxMaskModule } from 'ngx-mask';
|
|
@@ -254,18 +254,44 @@ class CodeInputComponent {
|
|
|
254
254
|
this.codeSet = new EventEmitter();
|
|
255
255
|
this.timeOut = new EventEmitter();
|
|
256
256
|
this.resendClick = new EventEmitter();
|
|
257
|
-
this.inputs = ['', '', '', '', '', ''];
|
|
258
|
-
this.isPaste = false;
|
|
259
257
|
this.sendAgain = false;
|
|
260
|
-
this.showLoader = false;
|
|
261
|
-
this.wrongCode = false;
|
|
262
258
|
this.showTimer = false;
|
|
263
|
-
this.isDisabled = true;
|
|
264
259
|
}
|
|
265
260
|
get classes() {
|
|
266
261
|
const mode = this.wrongCode ? 'input-wrong' : '';
|
|
267
262
|
return `code-input__${mode}`;
|
|
268
263
|
}
|
|
264
|
+
get inputs() {
|
|
265
|
+
return this.form.get('inputs');
|
|
266
|
+
}
|
|
267
|
+
ngOnInit() {
|
|
268
|
+
this.form = new FormGroup({
|
|
269
|
+
inputs: new FormArray([
|
|
270
|
+
new FormControl(),
|
|
271
|
+
new FormControl(),
|
|
272
|
+
new FormControl(),
|
|
273
|
+
new FormControl(),
|
|
274
|
+
new FormControl(),
|
|
275
|
+
new FormControl()
|
|
276
|
+
])
|
|
277
|
+
});
|
|
278
|
+
for (let i = 0; i < this.inputs.length; i++) {
|
|
279
|
+
if (i > 0) {
|
|
280
|
+
this.inputs.get(`${i}`)?.disable();
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
writeValue(value) {
|
|
285
|
+
if (value) {
|
|
286
|
+
this.form.setValue(value, { emitEvent: false });
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
registerOnChange(fn) {
|
|
290
|
+
this.form.valueChanges.subscribe(fn);
|
|
291
|
+
}
|
|
292
|
+
registerOnTouched(fn) {
|
|
293
|
+
this.onTouch = fn;
|
|
294
|
+
}
|
|
269
295
|
startTimer() {
|
|
270
296
|
clearInterval(this.interval);
|
|
271
297
|
this.time = this.secondsUntilRetry;
|
|
@@ -281,17 +307,14 @@ class CodeInputComponent {
|
|
|
281
307
|
}
|
|
282
308
|
}, 1000);
|
|
283
309
|
}
|
|
284
|
-
trackByInput(index) {
|
|
285
|
-
return index;
|
|
286
|
-
}
|
|
287
310
|
onMove(e, i) {
|
|
288
|
-
|
|
289
|
-
const value = this.inputs[i];
|
|
311
|
+
const value = this.inputs.controls[i].value;
|
|
290
312
|
if (value.length > 0) {
|
|
291
313
|
const nextIndex = i < 5 ? i + 1 : 5;
|
|
292
314
|
const nextInput = document.getElementById(`${nextIndex}`);
|
|
293
315
|
if (nextIndex <= 5) {
|
|
294
316
|
nextInput.disabled = false;
|
|
317
|
+
this.inputs.get(`${i}`)?.enable();
|
|
295
318
|
nextInput.focus();
|
|
296
319
|
}
|
|
297
320
|
}
|
|
@@ -309,10 +332,14 @@ class CodeInputComponent {
|
|
|
309
332
|
}
|
|
310
333
|
}
|
|
311
334
|
onPaste(e) {
|
|
335
|
+
for (let i = 0; i < this.inputs.length; i++) {
|
|
336
|
+
this.inputs.get(`${i}`)?.enable();
|
|
337
|
+
}
|
|
312
338
|
const data = e.clipboardData.getData('text');
|
|
313
339
|
const slicedData = data.split('');
|
|
314
|
-
for (
|
|
315
|
-
this.inputs[i]
|
|
340
|
+
for (let i = 0; i < slicedData.length; i++) {
|
|
341
|
+
const input = this.inputs.controls[i];
|
|
342
|
+
input.setValue(slicedData[i]);
|
|
316
343
|
}
|
|
317
344
|
if (!isFinite(Number(data))) {
|
|
318
345
|
this.clear();
|
|
@@ -323,14 +350,13 @@ class CodeInputComponent {
|
|
|
323
350
|
}
|
|
324
351
|
}
|
|
325
352
|
onSubmit() {
|
|
326
|
-
this.wrongCode = true;
|
|
327
353
|
this.showTimer = true;
|
|
328
354
|
this.startTimer();
|
|
329
355
|
this.codeSet.emit();
|
|
330
356
|
}
|
|
331
357
|
clear() {
|
|
332
|
-
for (const
|
|
333
|
-
|
|
358
|
+
for (const control of this.inputs.controls) {
|
|
359
|
+
control.setValue('');
|
|
334
360
|
}
|
|
335
361
|
}
|
|
336
362
|
resend() {
|
|
@@ -350,16 +376,30 @@ class CodeInputComponent {
|
|
|
350
376
|
}
|
|
351
377
|
}
|
|
352
378
|
CodeInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
353
|
-
CodeInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CodeInputComponent, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip" }, outputs: { codeSet: "codeSet", timeOut: "timeOut", resendClick: "resendClick" },
|
|
379
|
+
CodeInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CodeInputComponent, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip", wrongCode: "wrongCode" }, outputs: { codeSet: "codeSet", timeOut: "timeOut", resendClick: "resendClick" }, providers: [
|
|
380
|
+
{
|
|
381
|
+
provide: NG_VALUE_ACCESSOR,
|
|
382
|
+
useExisting: forwardRef(() => CodeInputComponent),
|
|
383
|
+
multi: true
|
|
384
|
+
}
|
|
385
|
+
], ngImport: i0, template: "<div class=\"code-input\">\n <h1>{{ title }}</h1>\n <span class=\"code-input__tip\">{{ tip }}</span>\n <div class=\"code-input__inputs\"[ngClass]=\"classes\">\n <form [formGroup]=\"form\">\n <ng-container formArrayName=\"inputs\">\n <ng-container *ngFor=\"let input of inputs.controls; let i = index\">\n <input\n [formControlName]=\"i\"\n autocomplete=\"off\"\n (keypress)=\"numberOnly($event)\"\n (keyup)=\"onMove($event, i)\"\n (paste)=\"onPaste($event)\"\n [maxLength]=\"1\"\n id=\"{{ i }}\"\n />\n </ng-container>\n </ng-container>\n </form>\n </div>\n <div class=\"code-input__text\">\n <span *ngIf=\"wrongCode\" class=\"code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n <div *ngIf=\"showTimer\">\n <span class=\"code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"code-input__text-time\">{{ time }}</span>\n </div>\n <span *ngIf=\"sendAgain\" class=\"code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n </div>\n</div>\n", styles: [".code-input{display:flex;flex-direction:column;align-items:center;width:632px;padding:48px;color:var(--darkblue);background-color:#fff}.code-input h1{width:-moz-fit-content;width:fit-content;margin:0 0 40px;font-size:24px}.code-input span{text-align:center}.code-input__tip{margin-bottom:40px}.code-input__inputs form{display:flex;gap:16px}.code-input__inputs input{width:51px;height:56px;font-size:32px;text-align:center;border:solid 2px var(--gray);border-radius:10px;outline:none}.code-input__inputs input:focus{border:solid 2px var(--blue)}.code-input__inputs input:disabled{background-color:inherit}.code-input__input-wrong input{border:solid 2px var(--red)}.code-input__input-wrong input:focus{border:solid 2px var(--red)}.code-input__text{display:flex;flex-direction:column;margin-top:24px;font-size:16px;line-height:20px}.code-input__text-info{color:var(--gray)}.code-input__text-time{color:var(--blue)}.code-input__text-again{color:var(--blue);text-decoration:underline;cursor:pointer}.code-input__text-wrong{margin-bottom:8px;color:var(--red)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }] });
|
|
354
386
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputComponent, decorators: [{
|
|
355
387
|
type: Component,
|
|
356
|
-
args: [{ selector: 'aeb-code-input',
|
|
388
|
+
args: [{ selector: 'aeb-code-input', providers: [
|
|
389
|
+
{
|
|
390
|
+
provide: NG_VALUE_ACCESSOR,
|
|
391
|
+
useExisting: forwardRef(() => CodeInputComponent),
|
|
392
|
+
multi: true
|
|
393
|
+
}
|
|
394
|
+
], template: "<div class=\"code-input\">\n <h1>{{ title }}</h1>\n <span class=\"code-input__tip\">{{ tip }}</span>\n <div class=\"code-input__inputs\"[ngClass]=\"classes\">\n <form [formGroup]=\"form\">\n <ng-container formArrayName=\"inputs\">\n <ng-container *ngFor=\"let input of inputs.controls; let i = index\">\n <input\n [formControlName]=\"i\"\n autocomplete=\"off\"\n (keypress)=\"numberOnly($event)\"\n (keyup)=\"onMove($event, i)\"\n (paste)=\"onPaste($event)\"\n [maxLength]=\"1\"\n id=\"{{ i }}\"\n />\n </ng-container>\n </ng-container>\n </form>\n </div>\n <div class=\"code-input__text\">\n <span *ngIf=\"wrongCode\" class=\"code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n <div *ngIf=\"showTimer\">\n <span class=\"code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"code-input__text-time\">{{ time }}</span>\n </div>\n <span *ngIf=\"sendAgain\" class=\"code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n </div>\n</div>\n", styles: [".code-input{display:flex;flex-direction:column;align-items:center;width:632px;padding:48px;color:var(--darkblue);background-color:#fff}.code-input h1{width:-moz-fit-content;width:fit-content;margin:0 0 40px;font-size:24px}.code-input span{text-align:center}.code-input__tip{margin-bottom:40px}.code-input__inputs form{display:flex;gap:16px}.code-input__inputs input{width:51px;height:56px;font-size:32px;text-align:center;border:solid 2px var(--gray);border-radius:10px;outline:none}.code-input__inputs input:focus{border:solid 2px var(--blue)}.code-input__inputs input:disabled{background-color:inherit}.code-input__input-wrong input{border:solid 2px var(--red)}.code-input__input-wrong input:focus{border:solid 2px var(--red)}.code-input__text{display:flex;flex-direction:column;margin-top:24px;font-size:16px;line-height:20px}.code-input__text-info{color:var(--gray)}.code-input__text-time{color:var(--blue)}.code-input__text-again{color:var(--blue);text-decoration:underline;cursor:pointer}.code-input__text-wrong{margin-bottom:8px;color:var(--red)}\n"] }]
|
|
357
395
|
}], propDecorators: { title: [{
|
|
358
396
|
type: Input
|
|
359
397
|
}], secondsUntilRetry: [{
|
|
360
398
|
type: Input
|
|
361
399
|
}], tip: [{
|
|
362
400
|
type: Input
|
|
401
|
+
}], wrongCode: [{
|
|
402
|
+
type: Input
|
|
363
403
|
}], codeSet: [{
|
|
364
404
|
type: Output
|
|
365
405
|
}], timeOut: [{
|
|
@@ -371,13 +411,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
371
411
|
class CodeInputModule {
|
|
372
412
|
}
|
|
373
413
|
CodeInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
374
|
-
CodeInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule], exports: [CodeInputComponent] });
|
|
375
|
-
CodeInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule] });
|
|
414
|
+
CodeInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CodeInputComponent] });
|
|
415
|
+
CodeInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] });
|
|
376
416
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, decorators: [{
|
|
377
417
|
type: NgModule,
|
|
378
418
|
args: [{
|
|
379
419
|
declarations: [CodeInputComponent],
|
|
380
|
-
imports: [CommonModule, FormsModule],
|
|
420
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule],
|
|
381
421
|
exports: [CodeInputComponent]
|
|
382
422
|
}]
|
|
383
423
|
}] });
|
|
@@ -766,10 +806,10 @@ class NewButtonComponent {
|
|
|
766
806
|
}
|
|
767
807
|
}
|
|
768
808
|
NewButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
769
|
-
NewButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NewButtonComponent, selector: "aeb-new-button", inputs: { label: "label", fill: "fill", showIcon: "showIcon", iconSource: "iconSource", disabledIconSource: "disabledIconSource", hoveredIconSource: "hoveredIconSource", disabled: "disabled", leftIcon: "leftIcon", rightIcon: "rightIcon", size: "size", tabIndex: "tabIndex", solid: "solid" }, host: { listeners: { "mouseover": "onOver()", "mouseleave": "onLeave()" }, properties: { "tabIndex": "this.tabIndex", "class.aeb-button": "this.isButton", "class.aeb-button-primary": "this.isPrimary", "class.aeb-button-solid": "this.isSolid", "class.aeb-button--fill": "this.isFill", "class.aeb-button-solid--disabled": "this.isSolidDisabled", "class.aeb-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
809
|
+
NewButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NewButtonComponent, selector: "aeb-new-button", inputs: { label: "label", fill: "fill", showIcon: "showIcon", iconSource: "iconSource", disabledIconSource: "disabledIconSource", hoveredIconSource: "hoveredIconSource", disabled: "disabled", leftIcon: "leftIcon", rightIcon: "rightIcon", size: "size", tabIndex: "tabIndex", solid: "solid" }, host: { listeners: { "mouseover": "onOver()", "mouseleave": "onLeave()" }, properties: { "tabIndex": "this.tabIndex", "class.aeb-button": "this.isButton", "class.aeb-button-primary": "this.isPrimary", "class.aeb-button-solid": "this.isSolid", "class.aeb-button--fill": "this.isFill", "class.aeb-button-solid--disabled": "this.isSolidDisabled", "class.aeb-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;-webkit-tap-highlight-color:transparent}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}@media (hover: hover){.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}@media (hover: hover){.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
770
810
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, decorators: [{
|
|
771
811
|
type: Component,
|
|
772
|
-
args: [{ selector: 'aeb-new-button', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"] }]
|
|
812
|
+
args: [{ selector: 'aeb-new-button', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;-webkit-tap-highlight-color:transparent}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}@media (hover: hover){.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}@media (hover: hover){.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"] }]
|
|
773
813
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { label: [{
|
|
774
814
|
type: Input
|
|
775
815
|
}], fill: [{
|
|
@@ -3835,6 +3875,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
3835
3875
|
}]
|
|
3836
3876
|
}] });
|
|
3837
3877
|
|
|
3878
|
+
class ResponseComponent {
|
|
3879
|
+
constructor() {
|
|
3880
|
+
this.mode = 'light';
|
|
3881
|
+
}
|
|
3882
|
+
ngOnInit() { }
|
|
3883
|
+
}
|
|
3884
|
+
ResponseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3885
|
+
ResponseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ResponseComponent, selector: "aeb-response", inputs: { code: "code", mode: "mode" }, ngImport: i0, template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, decorators: [{
|
|
3887
|
+
type: Component,
|
|
3888
|
+
args: [{ selector: 'aeb-response', template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n" }]
|
|
3889
|
+
}], ctorParameters: function () { return []; }, propDecorators: { code: [{
|
|
3890
|
+
type: Input
|
|
3891
|
+
}], mode: [{
|
|
3892
|
+
type: Input
|
|
3893
|
+
}] } });
|
|
3894
|
+
|
|
3895
|
+
class ResponseModule {
|
|
3896
|
+
}
|
|
3897
|
+
ResponseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3898
|
+
ResponseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, declarations: [ResponseComponent], imports: [CommonModule] });
|
|
3899
|
+
ResponseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, imports: [CommonModule] });
|
|
3900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, decorators: [{
|
|
3901
|
+
type: NgModule,
|
|
3902
|
+
args: [{
|
|
3903
|
+
declarations: [ResponseComponent],
|
|
3904
|
+
imports: [CommonModule]
|
|
3905
|
+
}]
|
|
3906
|
+
}] });
|
|
3907
|
+
|
|
3838
3908
|
class HighlightPipe {
|
|
3839
3909
|
transform(value, ...args) {
|
|
3840
3910
|
return `${value.replace(RegExp(args[0]), `<b>${args[0]}</b>`)}`;
|
|
@@ -4759,7 +4829,8 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
4759
4829
|
NewsCardModule,
|
|
4760
4830
|
DropdownModule,
|
|
4761
4831
|
TableModule,
|
|
4762
|
-
ModalModule
|
|
4832
|
+
ModalModule,
|
|
4833
|
+
ResponseModule], exports: [NewButtonModule,
|
|
4763
4834
|
CheckboxModule,
|
|
4764
4835
|
HeaderModule,
|
|
4765
4836
|
SidebarModule,
|
|
@@ -4791,7 +4862,8 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
4791
4862
|
NewsCardModule,
|
|
4792
4863
|
DropdownModule,
|
|
4793
4864
|
TableModule,
|
|
4794
|
-
ModalModule
|
|
4865
|
+
ModalModule,
|
|
4866
|
+
ResponseModule] });
|
|
4795
4867
|
AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
|
|
4796
4868
|
NewButtonModule,
|
|
4797
4869
|
CheckboxModule,
|
|
@@ -4825,7 +4897,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
4825
4897
|
NewsCardModule,
|
|
4826
4898
|
DropdownModule,
|
|
4827
4899
|
TableModule,
|
|
4828
|
-
ModalModule,
|
|
4900
|
+
ModalModule,
|
|
4901
|
+
ResponseModule, NewButtonModule,
|
|
4829
4902
|
CheckboxModule,
|
|
4830
4903
|
HeaderModule,
|
|
4831
4904
|
SidebarModule,
|
|
@@ -4857,7 +4930,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
4857
4930
|
NewsCardModule,
|
|
4858
4931
|
DropdownModule,
|
|
4859
4932
|
TableModule,
|
|
4860
|
-
ModalModule
|
|
4933
|
+
ModalModule,
|
|
4934
|
+
ResponseModule] });
|
|
4861
4935
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, decorators: [{
|
|
4862
4936
|
type: NgModule,
|
|
4863
4937
|
args: [{
|
|
@@ -4896,7 +4970,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4896
4970
|
NewsCardModule,
|
|
4897
4971
|
DropdownModule,
|
|
4898
4972
|
TableModule,
|
|
4899
|
-
ModalModule
|
|
4973
|
+
ModalModule,
|
|
4974
|
+
ResponseModule
|
|
4900
4975
|
],
|
|
4901
4976
|
exports: [
|
|
4902
4977
|
NewButtonModule,
|
|
@@ -4931,7 +5006,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4931
5006
|
NewsCardModule,
|
|
4932
5007
|
DropdownModule,
|
|
4933
5008
|
TableModule,
|
|
4934
|
-
ModalModule
|
|
5009
|
+
ModalModule,
|
|
5010
|
+
ResponseModule
|
|
4935
5011
|
]
|
|
4936
5012
|
}]
|
|
4937
5013
|
}] });
|
|
@@ -5178,5 +5254,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5178
5254
|
* Generated bundle index. Do not edit.
|
|
5179
5255
|
*/
|
|
5180
5256
|
|
|
5181
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, InputDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TextareaDirective, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
|
|
5257
|
+
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, InputDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TextareaDirective, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
|
|
5182
5258
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|