aeb-ui-kit 2.2.0-preview.521 → 2.2.0-preview.539

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.
Files changed (38) hide show
  1. package/assets/images/responses/401-dark.svg +27 -0
  2. package/assets/images/responses/401-light.svg +27 -0
  3. package/assets/images/responses/403-dark.svg +39 -0
  4. package/assets/images/responses/403-light.svg +38 -0
  5. package/assets/images/responses/404-dark.svg +47 -0
  6. package/assets/images/responses/404-light.svg +40 -0
  7. package/assets/images/responses/429-dark.svg +33 -0
  8. package/assets/images/responses/429-light.svg +33 -0
  9. package/assets/images/responses/500-dark.svg +43 -0
  10. package/assets/images/responses/500-light.svg +43 -0
  11. package/assets/images/responses/503-dark.svg +43 -0
  12. package/assets/images/responses/503-light.svg +43 -0
  13. package/esm2020/lib/aeb-ui-kit.module.mjs +21 -14
  14. package/esm2020/lib/response/response.component.mjs +20 -0
  15. package/esm2020/lib/response/response.module.mjs +17 -0
  16. package/esm2020/lib/stepper/stepper-step.component.mjs +40 -0
  17. package/esm2020/lib/stepper/stepper.component.mjs +83 -0
  18. package/esm2020/lib/stepper/stepper.module.mjs +19 -0
  19. package/esm2020/public-api.mjs +6 -4
  20. package/fesm2015/aeb-ui-kit.mjs +179 -143
  21. package/fesm2015/aeb-ui-kit.mjs.map +1 -1
  22. package/fesm2020/aeb-ui-kit.mjs +179 -143
  23. package/fesm2020/aeb-ui-kit.mjs.map +1 -1
  24. package/lib/aeb-ui-kit.module.d.ts +3 -2
  25. package/lib/response/response.component.d.ts +10 -0
  26. package/lib/response/response.module.d.ts +8 -0
  27. package/lib/stepper/stepper-step.component.d.ts +15 -0
  28. package/lib/stepper/stepper.component.d.ts +22 -0
  29. package/lib/stepper/stepper.module.d.ts +9 -0
  30. package/package.json +1 -1
  31. package/public-api.d.ts +5 -3
  32. package/styles.css +4 -0
  33. package/esm2020/lib/wizard/wizard-step.component.mjs +0 -40
  34. package/esm2020/lib/wizard/wizard.component.mjs +0 -83
  35. package/esm2020/lib/wizard/wizard.module.mjs +0 -19
  36. package/lib/wizard/wizard-step.component.d.ts +0 -15
  37. package/lib/wizard/wizard.component.d.ts +0 -22
  38. package/lib/wizard/wizard.module.d.ts +0 -9
@@ -3835,6 +3835,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3835
3835
  }]
3836
3836
  }] });
3837
3837
 
3838
+ class ResponseComponent {
3839
+ constructor() {
3840
+ this.mode = 'light';
3841
+ }
3842
+ ngOnInit() { }
3843
+ }
3844
+ ResponseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3845
+ 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"] }] });
3846
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, decorators: [{
3847
+ type: Component,
3848
+ args: [{ selector: 'aeb-response', template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n" }]
3849
+ }], ctorParameters: function () { return []; }, propDecorators: { code: [{
3850
+ type: Input
3851
+ }], mode: [{
3852
+ type: Input
3853
+ }] } });
3854
+
3855
+ class ResponseModule {
3856
+ }
3857
+ ResponseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3858
+ ResponseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, declarations: [ResponseComponent], imports: [CommonModule] });
3859
+ ResponseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, imports: [CommonModule] });
3860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, decorators: [{
3861
+ type: NgModule,
3862
+ args: [{
3863
+ declarations: [ResponseComponent],
3864
+ imports: [CommonModule]
3865
+ }]
3866
+ }] });
3867
+
3838
3868
  class HighlightPipe {
3839
3869
  transform(value, ...args) {
3840
3870
  return `${value.replace(RegExp(args[0]), `<b>${args[0]}</b>`)}`;
@@ -4316,6 +4346,136 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4316
4346
  }]
4317
4347
  }] });
4318
4348
 
4349
+ class StepperStepComponent {
4350
+ constructor() {
4351
+ this.isValid = false;
4352
+ this.isActive = false;
4353
+ this.isCompleted = false;
4354
+ this.showPrev = false;
4355
+ this.showNext = false;
4356
+ this.nextClicked = new EventEmitter();
4357
+ this.prevClicked = new EventEmitter();
4358
+ this.completeClicked = new EventEmitter();
4359
+ }
4360
+ }
4361
+ StepperStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4362
+ StepperStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: StepperStepComponent, selector: "aeb-stepper-step", inputs: { title: "title", isValid: "isValid", isActive: "isActive", isCompleted: "isCompleted", showPrev: "showPrev", showNext: "showNext" }, outputs: { nextClicked: "nextClicked", prevClicked: "prevClicked", completeClicked: "completeClicked" }, ngImport: i0, template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperStepComponent, decorators: [{
4364
+ type: Component,
4365
+ args: [{ selector: 'aeb-stepper-step', template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n" }]
4366
+ }], propDecorators: { title: [{
4367
+ type: Input
4368
+ }], isValid: [{
4369
+ type: Input
4370
+ }], isActive: [{
4371
+ type: Input
4372
+ }], isCompleted: [{
4373
+ type: Input
4374
+ }], showPrev: [{
4375
+ type: Input
4376
+ }], showNext: [{
4377
+ type: Input
4378
+ }], nextClicked: [{
4379
+ type: Output
4380
+ }], prevClicked: [{
4381
+ type: Output
4382
+ }], completeClicked: [{
4383
+ type: Output
4384
+ }] } });
4385
+
4386
+ class StepperComponent {
4387
+ constructor() {
4388
+ this.stepChanged = new EventEmitter();
4389
+ this.isDisabled = false;
4390
+ this.steps = [];
4391
+ }
4392
+ get activeStepIndex() {
4393
+ return this.steps.indexOf(this.activeStep);
4394
+ }
4395
+ get completedSteps() {
4396
+ return this.steps.filter((step) => step.isCompleted);
4397
+ }
4398
+ get hasNextStep() {
4399
+ return this.activeStepIndex < this.steps.length - 1;
4400
+ }
4401
+ get hasPrevStep() {
4402
+ return this.activeStepIndex > 0;
4403
+ }
4404
+ get activeStep() {
4405
+ return this.steps.find((step) => step.isActive);
4406
+ }
4407
+ set activeStep(step) {
4408
+ if (step !== this.activeStep) {
4409
+ this.activeStep.isActive = false;
4410
+ step.isActive = true;
4411
+ this.stepChanged.emit(step);
4412
+ }
4413
+ }
4414
+ ngAfterContentInit() {
4415
+ this.steps = [...this.stepperSteps];
4416
+ }
4417
+ goToNextStep() {
4418
+ if (!this.hasNextStep) {
4419
+ return;
4420
+ }
4421
+ const nextStep = this.steps[this.activeStepIndex + 1];
4422
+ this.activeStep.nextClicked.emit();
4423
+ this.activeStep = nextStep;
4424
+ }
4425
+ goToPrevStep() {
4426
+ if (!this.hasPrevStep) {
4427
+ return;
4428
+ }
4429
+ if (!this.hasNextStep && this.activeStep.isCompleted) {
4430
+ this.activeStep.isCompleted = false;
4431
+ return;
4432
+ }
4433
+ const nextStep = this.steps[this.activeStepIndex - 1];
4434
+ nextStep.isCompleted = false;
4435
+ this.activeStep.prevClicked.emit();
4436
+ this.activeStep = nextStep;
4437
+ }
4438
+ goToFirstStep() {
4439
+ if (!this.hasPrevStep) {
4440
+ return;
4441
+ }
4442
+ const nextStep = this.steps[0];
4443
+ this.activeStep = nextStep;
4444
+ }
4445
+ onCompleteStep() {
4446
+ this.activeStep.completeClicked.emit();
4447
+ this.activeStep.isCompleted = true;
4448
+ this.goToNextStep();
4449
+ }
4450
+ }
4451
+ StepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4452
+ StepperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: StepperComponent, selector: "aeb-stepper", inputs: { isDisabled: "isDisabled" }, outputs: { stepChanged: "stepChanged" }, queries: [{ propertyName: "stepperSteps", predicate: StepperStepComponent }], ngImport: i0, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\">\u0438\u0437 {{ steps.length }}</span>\n </ng-template>\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"stepper-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: (100 / (steps.length - 1)) * completedSteps.length + '%'\n }\"\n ></div>\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--lightgray)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--blue);transition:width,.4s}.stepper-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:32px;font-weight:500;color:var(--white-primary);background-color:var(--lightgray);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:16px;font-style:normal;font-weight:400;line-height:20px;color:var(--gray);text-align:center}.stepper-step-title.disabled{color:var(--lightgray)}.stepper-step.active .stepper-step-index{background-color:var(--blue)}.stepper-step.active .stepper-step-title{color:var(--blue)}.stepper-step.completed .stepper-step-index{background-color:var(--blue)}.stepper-step.disabled .stepper-step-index{background-color:var(--lightgray)}.stepper-step.disabled .stepper-step-title{color:var(--lightgray)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{background-color:var(--mono-medium);border-radius:3px;top:unset;bottom:0;width:100%}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{font-size:16px;color:var(--blue);font-weight:400;line-height:22.4px;background-color:unset;width:auto;height:auto;margin-bottom:0}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;text-align:left;font-weight:500;color:var(--darkblue);margin-top:8px}}\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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
4453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperComponent, decorators: [{
4454
+ type: Component,
4455
+ args: [{ selector: 'aeb-stepper', template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\">\u0438\u0437 {{ steps.length }}</span>\n </ng-template>\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"stepper-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: (100 / (steps.length - 1)) * completedSteps.length + '%'\n }\"\n ></div>\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--lightgray)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--blue);transition:width,.4s}.stepper-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:32px;font-weight:500;color:var(--white-primary);background-color:var(--lightgray);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:16px;font-style:normal;font-weight:400;line-height:20px;color:var(--gray);text-align:center}.stepper-step-title.disabled{color:var(--lightgray)}.stepper-step.active .stepper-step-index{background-color:var(--blue)}.stepper-step.active .stepper-step-title{color:var(--blue)}.stepper-step.completed .stepper-step-index{background-color:var(--blue)}.stepper-step.disabled .stepper-step-index{background-color:var(--lightgray)}.stepper-step.disabled .stepper-step-title{color:var(--lightgray)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{background-color:var(--mono-medium);border-radius:3px;top:unset;bottom:0;width:100%}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{font-size:16px;color:var(--blue);font-weight:400;line-height:22.4px;background-color:unset;width:auto;height:auto;margin-bottom:0}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;text-align:left;font-weight:500;color:var(--darkblue);margin-top:8px}}\n"] }]
4456
+ }], propDecorators: { stepperSteps: [{
4457
+ type: ContentChildren,
4458
+ args: [StepperStepComponent]
4459
+ }], stepChanged: [{
4460
+ type: Output
4461
+ }], isDisabled: [{
4462
+ type: Input
4463
+ }] } });
4464
+
4465
+ class StepperModule {
4466
+ }
4467
+ StepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4468
+ StepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, declarations: [StepperComponent, StepperStepComponent], imports: [CommonModule], exports: [StepperComponent, StepperStepComponent] });
4469
+ StepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, imports: [CommonModule] });
4470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, decorators: [{
4471
+ type: NgModule,
4472
+ args: [{
4473
+ declarations: [StepperComponent, StepperStepComponent],
4474
+ imports: [CommonModule],
4475
+ exports: [StepperComponent, StepperStepComponent]
4476
+ }]
4477
+ }] });
4478
+
4319
4479
  class FormatTablePipe {
4320
4480
  transform(value, type, format, locale = 'ru') {
4321
4481
  if (type === 'date') {
@@ -4593,136 +4753,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4593
4753
  }]
4594
4754
  }] });
4595
4755
 
4596
- class WizardStepComponent {
4597
- constructor() {
4598
- this.isValid = false;
4599
- this.isActive = false;
4600
- this.isCompleted = false;
4601
- this.showPrev = false;
4602
- this.showNext = false;
4603
- this.nextClicked = new EventEmitter();
4604
- this.prevClicked = new EventEmitter();
4605
- this.completeClicked = new EventEmitter();
4606
- }
4607
- }
4608
- WizardStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4609
- WizardStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: WizardStepComponent, selector: "aeb-wizard-step", inputs: { title: "title", isValid: "isValid", isActive: "isActive", isCompleted: "isCompleted", showPrev: "showPrev", showNext: "showNext" }, outputs: { nextClicked: "nextClicked", prevClicked: "prevClicked", completeClicked: "completeClicked" }, ngImport: i0, template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4610
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardStepComponent, decorators: [{
4611
- type: Component,
4612
- args: [{ selector: 'aeb-wizard-step', template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n" }]
4613
- }], propDecorators: { title: [{
4614
- type: Input
4615
- }], isValid: [{
4616
- type: Input
4617
- }], isActive: [{
4618
- type: Input
4619
- }], isCompleted: [{
4620
- type: Input
4621
- }], showPrev: [{
4622
- type: Input
4623
- }], showNext: [{
4624
- type: Input
4625
- }], nextClicked: [{
4626
- type: Output
4627
- }], prevClicked: [{
4628
- type: Output
4629
- }], completeClicked: [{
4630
- type: Output
4631
- }] } });
4632
-
4633
- class WizardComponent {
4634
- constructor() {
4635
- this.stepChanged = new EventEmitter();
4636
- this.isDisabled = false;
4637
- this.steps = [];
4638
- }
4639
- get activeStepIndex() {
4640
- return this.steps.indexOf(this.activeStep);
4641
- }
4642
- get completedSteps() {
4643
- return this.steps.filter((step) => step.isCompleted);
4644
- }
4645
- get hasNextStep() {
4646
- return this.activeStepIndex < this.steps.length - 1;
4647
- }
4648
- get hasPrevStep() {
4649
- return this.activeStepIndex > 0;
4650
- }
4651
- get activeStep() {
4652
- return this.steps.find((step) => step.isActive);
4653
- }
4654
- set activeStep(step) {
4655
- if (step !== this.activeStep) {
4656
- this.activeStep.isActive = false;
4657
- step.isActive = true;
4658
- this.stepChanged.emit(step);
4659
- }
4660
- }
4661
- ngAfterContentInit() {
4662
- this.steps = [...this.wizardSteps];
4663
- }
4664
- goToNextStep() {
4665
- if (!this.hasNextStep) {
4666
- return;
4667
- }
4668
- const nextStep = this.steps[this.activeStepIndex + 1];
4669
- this.activeStep.nextClicked.emit();
4670
- this.activeStep = nextStep;
4671
- }
4672
- goToPrevStep() {
4673
- if (!this.hasPrevStep) {
4674
- return;
4675
- }
4676
- if (!this.hasNextStep && this.activeStep.isCompleted) {
4677
- this.activeStep.isCompleted = false;
4678
- return;
4679
- }
4680
- const nextStep = this.steps[this.activeStepIndex - 1];
4681
- nextStep.isCompleted = false;
4682
- this.activeStep.prevClicked.emit();
4683
- this.activeStep = nextStep;
4684
- }
4685
- goToFirstStep() {
4686
- if (!this.hasPrevStep) {
4687
- return;
4688
- }
4689
- const nextStep = this.steps[0];
4690
- this.activeStep = nextStep;
4691
- }
4692
- onCompleteStep() {
4693
- this.activeStep.completeClicked.emit();
4694
- this.activeStep.isCompleted = true;
4695
- this.goToNextStep();
4696
- }
4697
- }
4698
- WizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4699
- WizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: WizardComponent, selector: "aeb-wizard", inputs: { isDisabled: "isDisabled" }, outputs: { stepChanged: "stepChanged" }, queries: [{ propertyName: "wizardSteps", predicate: WizardStepComponent }], ngImport: i0, template: "<div class=\"wizard\">\n <div class=\"wizard-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"wizard-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"wizard-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span>{{ i + 1 }}</span>\n </ng-template>\n </div>\n <div\n class=\"wizard-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"wizard-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"wizard-steps-line-active\"\n [ngStyle]=\"{\n width: (100 / (steps.length - 1)) * completedSteps.length + '%'\n }\"\n ></div>\n </div>\n </div>\n <div class=\"wizard-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".wizard{-webkit-user-select:none;user-select:none}.wizard-steps{position:relative;display:flex}.wizard-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--lightgray)}.wizard-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--blue);transition:width,.4s}.wizard-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.wizard-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:32px;font-weight:500;color:var(--white-primary);background-color:var(--lightgray);border-radius:30px}.wizard-step-index>*{display:flex;align-items:center}.wizard-step-title{font-size:16px;font-style:normal;font-weight:400;line-height:20px;color:var(--gray);text-align:center}.wizard-step-title.disabled{color:var(--lightgray)}.wizard-step.active .wizard-step-index{background-color:var(--blue)}.wizard-step.active .wizard-step-title{color:var(--blue)}.wizard-step.completed .wizard-step-index{background-color:var(--blue)}.wizard-step.disabled .wizard-step-index{background-color:var(--lightgray)}.wizard-step.disabled .wizard-step-title{color:var(--lightgray)}@media (max-width: 767px){.wizard-step-title{font-size:14px}.wizard-steps-line{display:none}.wizard-step{display:none;flex-direction:row;align-items:center;justify-content:flex-start}.wizard-step-index{width:50px;height:50px;margin-bottom:0;font-size:30px}.wizard-step-title{margin-left:14px;font-size:18px;text-align:left}.wizard-step.active{display:flex;width:100%!important}}\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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
4700
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardComponent, decorators: [{
4701
- type: Component,
4702
- args: [{ selector: 'aeb-wizard', template: "<div class=\"wizard\">\n <div class=\"wizard-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"wizard-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"wizard-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span>{{ i + 1 }}</span>\n </ng-template>\n </div>\n <div\n class=\"wizard-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"wizard-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"wizard-steps-line-active\"\n [ngStyle]=\"{\n width: (100 / (steps.length - 1)) * completedSteps.length + '%'\n }\"\n ></div>\n </div>\n </div>\n <div class=\"wizard-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".wizard{-webkit-user-select:none;user-select:none}.wizard-steps{position:relative;display:flex}.wizard-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--lightgray)}.wizard-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--blue);transition:width,.4s}.wizard-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.wizard-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:32px;font-weight:500;color:var(--white-primary);background-color:var(--lightgray);border-radius:30px}.wizard-step-index>*{display:flex;align-items:center}.wizard-step-title{font-size:16px;font-style:normal;font-weight:400;line-height:20px;color:var(--gray);text-align:center}.wizard-step-title.disabled{color:var(--lightgray)}.wizard-step.active .wizard-step-index{background-color:var(--blue)}.wizard-step.active .wizard-step-title{color:var(--blue)}.wizard-step.completed .wizard-step-index{background-color:var(--blue)}.wizard-step.disabled .wizard-step-index{background-color:var(--lightgray)}.wizard-step.disabled .wizard-step-title{color:var(--lightgray)}@media (max-width: 767px){.wizard-step-title{font-size:14px}.wizard-steps-line{display:none}.wizard-step{display:none;flex-direction:row;align-items:center;justify-content:flex-start}.wizard-step-index{width:50px;height:50px;margin-bottom:0;font-size:30px}.wizard-step-title{margin-left:14px;font-size:18px;text-align:left}.wizard-step.active{display:flex;width:100%!important}}\n"] }]
4703
- }], propDecorators: { wizardSteps: [{
4704
- type: ContentChildren,
4705
- args: [WizardStepComponent]
4706
- }], stepChanged: [{
4707
- type: Output
4708
- }], isDisabled: [{
4709
- type: Input
4710
- }] } });
4711
-
4712
- class WizardModule {
4713
- }
4714
- WizardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4715
- WizardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, declarations: [WizardComponent, WizardStepComponent], imports: [CommonModule], exports: [WizardComponent, WizardStepComponent] });
4716
- WizardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, imports: [CommonModule] });
4717
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, decorators: [{
4718
- type: NgModule,
4719
- args: [{
4720
- declarations: [WizardComponent, WizardStepComponent],
4721
- imports: [CommonModule],
4722
- exports: [WizardComponent, WizardStepComponent]
4723
- }]
4724
- }] });
4725
-
4726
4756
  class AebUiKitModule {
4727
4757
  }
4728
4758
  AebUiKitModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -4732,7 +4762,7 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4732
4762
  HeaderModule,
4733
4763
  SidebarModule,
4734
4764
  SliderModule,
4735
- WizardModule,
4765
+ StepperModule,
4736
4766
  FormFieldModule,
4737
4767
  LabelModule,
4738
4768
  VisaModule,
@@ -4759,12 +4789,13 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4759
4789
  NewsCardModule,
4760
4790
  DropdownModule,
4761
4791
  TableModule,
4762
- ModalModule], exports: [NewButtonModule,
4792
+ ModalModule,
4793
+ ResponseModule], exports: [NewButtonModule,
4763
4794
  CheckboxModule,
4764
4795
  HeaderModule,
4765
4796
  SidebarModule,
4766
4797
  SliderModule,
4767
- WizardModule,
4798
+ StepperModule,
4768
4799
  FormFieldModule,
4769
4800
  LabelModule,
4770
4801
  VisaModule,
@@ -4791,14 +4822,15 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4791
4822
  NewsCardModule,
4792
4823
  DropdownModule,
4793
4824
  TableModule,
4794
- ModalModule] });
4825
+ ModalModule,
4826
+ ResponseModule] });
4795
4827
  AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
4796
4828
  NewButtonModule,
4797
4829
  CheckboxModule,
4798
4830
  HeaderModule,
4799
4831
  SidebarModule,
4800
4832
  SliderModule,
4801
- WizardModule,
4833
+ StepperModule,
4802
4834
  FormFieldModule,
4803
4835
  LabelModule,
4804
4836
  VisaModule,
@@ -4825,12 +4857,13 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4825
4857
  NewsCardModule,
4826
4858
  DropdownModule,
4827
4859
  TableModule,
4828
- ModalModule, NewButtonModule,
4860
+ ModalModule,
4861
+ ResponseModule, NewButtonModule,
4829
4862
  CheckboxModule,
4830
4863
  HeaderModule,
4831
4864
  SidebarModule,
4832
4865
  SliderModule,
4833
- WizardModule,
4866
+ StepperModule,
4834
4867
  FormFieldModule,
4835
4868
  LabelModule,
4836
4869
  VisaModule,
@@ -4857,7 +4890,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4857
4890
  NewsCardModule,
4858
4891
  DropdownModule,
4859
4892
  TableModule,
4860
- ModalModule] });
4893
+ ModalModule,
4894
+ ResponseModule] });
4861
4895
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, decorators: [{
4862
4896
  type: NgModule,
4863
4897
  args: [{
@@ -4869,7 +4903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4869
4903
  HeaderModule,
4870
4904
  SidebarModule,
4871
4905
  SliderModule,
4872
- WizardModule,
4906
+ StepperModule,
4873
4907
  FormFieldModule,
4874
4908
  LabelModule,
4875
4909
  VisaModule,
@@ -4896,7 +4930,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4896
4930
  NewsCardModule,
4897
4931
  DropdownModule,
4898
4932
  TableModule,
4899
- ModalModule
4933
+ ModalModule,
4934
+ ResponseModule
4900
4935
  ],
4901
4936
  exports: [
4902
4937
  NewButtonModule,
@@ -4904,7 +4939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4904
4939
  HeaderModule,
4905
4940
  SidebarModule,
4906
4941
  SliderModule,
4907
- WizardModule,
4942
+ StepperModule,
4908
4943
  FormFieldModule,
4909
4944
  LabelModule,
4910
4945
  VisaModule,
@@ -4931,7 +4966,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4931
4966
  NewsCardModule,
4932
4967
  DropdownModule,
4933
4968
  TableModule,
4934
- ModalModule
4969
+ ModalModule,
4970
+ ResponseModule
4935
4971
  ]
4936
4972
  }]
4937
4973
  }] });
@@ -5178,5 +5214,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5178
5214
  * Generated bundle index. Do not edit.
5179
5215
  */
5180
5216
 
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, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TextareaDirective, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule, WizardComponent, WizardModule, WizardStepComponent };
5217
+ 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, 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
5218
  //# sourceMappingURL=aeb-ui-kit.mjs.map