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
@@ -3837,6 +3837,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3837
3837
  }]
3838
3838
  }] });
3839
3839
 
3840
+ class ResponseComponent {
3841
+ constructor() {
3842
+ this.mode = 'light';
3843
+ }
3844
+ ngOnInit() { }
3845
+ }
3846
+ ResponseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3847
+ 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"] }] });
3848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, decorators: [{
3849
+ type: Component,
3850
+ args: [{ selector: 'aeb-response', template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n" }]
3851
+ }], ctorParameters: function () { return []; }, propDecorators: { code: [{
3852
+ type: Input
3853
+ }], mode: [{
3854
+ type: Input
3855
+ }] } });
3856
+
3857
+ class ResponseModule {
3858
+ }
3859
+ ResponseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3860
+ ResponseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, declarations: [ResponseComponent], imports: [CommonModule] });
3861
+ ResponseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, imports: [CommonModule] });
3862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, decorators: [{
3863
+ type: NgModule,
3864
+ args: [{
3865
+ declarations: [ResponseComponent],
3866
+ imports: [CommonModule]
3867
+ }]
3868
+ }] });
3869
+
3840
3870
  class HighlightPipe {
3841
3871
  transform(value, ...args) {
3842
3872
  return `${value.replace(RegExp(args[0]), `<b>${args[0]}</b>`)}`;
@@ -4318,6 +4348,136 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4318
4348
  }]
4319
4349
  }] });
4320
4350
 
4351
+ class StepperStepComponent {
4352
+ constructor() {
4353
+ this.isValid = false;
4354
+ this.isActive = false;
4355
+ this.isCompleted = false;
4356
+ this.showPrev = false;
4357
+ this.showNext = false;
4358
+ this.nextClicked = new EventEmitter();
4359
+ this.prevClicked = new EventEmitter();
4360
+ this.completeClicked = new EventEmitter();
4361
+ }
4362
+ }
4363
+ StepperStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4364
+ 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"] }] });
4365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperStepComponent, decorators: [{
4366
+ type: Component,
4367
+ args: [{ selector: 'aeb-stepper-step', template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n" }]
4368
+ }], propDecorators: { title: [{
4369
+ type: Input
4370
+ }], isValid: [{
4371
+ type: Input
4372
+ }], isActive: [{
4373
+ type: Input
4374
+ }], isCompleted: [{
4375
+ type: Input
4376
+ }], showPrev: [{
4377
+ type: Input
4378
+ }], showNext: [{
4379
+ type: Input
4380
+ }], nextClicked: [{
4381
+ type: Output
4382
+ }], prevClicked: [{
4383
+ type: Output
4384
+ }], completeClicked: [{
4385
+ type: Output
4386
+ }] } });
4387
+
4388
+ class StepperComponent {
4389
+ constructor() {
4390
+ this.stepChanged = new EventEmitter();
4391
+ this.isDisabled = false;
4392
+ this.steps = [];
4393
+ }
4394
+ get activeStepIndex() {
4395
+ return this.steps.indexOf(this.activeStep);
4396
+ }
4397
+ get completedSteps() {
4398
+ return this.steps.filter((step) => step.isCompleted);
4399
+ }
4400
+ get hasNextStep() {
4401
+ return this.activeStepIndex < this.steps.length - 1;
4402
+ }
4403
+ get hasPrevStep() {
4404
+ return this.activeStepIndex > 0;
4405
+ }
4406
+ get activeStep() {
4407
+ return this.steps.find((step) => step.isActive);
4408
+ }
4409
+ set activeStep(step) {
4410
+ if (step !== this.activeStep) {
4411
+ this.activeStep.isActive = false;
4412
+ step.isActive = true;
4413
+ this.stepChanged.emit(step);
4414
+ }
4415
+ }
4416
+ ngAfterContentInit() {
4417
+ this.steps = [...this.stepperSteps];
4418
+ }
4419
+ goToNextStep() {
4420
+ if (!this.hasNextStep) {
4421
+ return;
4422
+ }
4423
+ const nextStep = this.steps[this.activeStepIndex + 1];
4424
+ this.activeStep.nextClicked.emit();
4425
+ this.activeStep = nextStep;
4426
+ }
4427
+ goToPrevStep() {
4428
+ if (!this.hasPrevStep) {
4429
+ return;
4430
+ }
4431
+ if (!this.hasNextStep && this.activeStep.isCompleted) {
4432
+ this.activeStep.isCompleted = false;
4433
+ return;
4434
+ }
4435
+ const nextStep = this.steps[this.activeStepIndex - 1];
4436
+ nextStep.isCompleted = false;
4437
+ this.activeStep.prevClicked.emit();
4438
+ this.activeStep = nextStep;
4439
+ }
4440
+ goToFirstStep() {
4441
+ if (!this.hasPrevStep) {
4442
+ return;
4443
+ }
4444
+ const nextStep = this.steps[0];
4445
+ this.activeStep = nextStep;
4446
+ }
4447
+ onCompleteStep() {
4448
+ this.activeStep.completeClicked.emit();
4449
+ this.activeStep.isCompleted = true;
4450
+ this.goToNextStep();
4451
+ }
4452
+ }
4453
+ StepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4454
+ 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"] }] });
4455
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperComponent, decorators: [{
4456
+ type: Component,
4457
+ 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"] }]
4458
+ }], propDecorators: { stepperSteps: [{
4459
+ type: ContentChildren,
4460
+ args: [StepperStepComponent]
4461
+ }], stepChanged: [{
4462
+ type: Output
4463
+ }], isDisabled: [{
4464
+ type: Input
4465
+ }] } });
4466
+
4467
+ class StepperModule {
4468
+ }
4469
+ StepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4470
+ StepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, declarations: [StepperComponent, StepperStepComponent], imports: [CommonModule], exports: [StepperComponent, StepperStepComponent] });
4471
+ StepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, imports: [CommonModule] });
4472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StepperModule, decorators: [{
4473
+ type: NgModule,
4474
+ args: [{
4475
+ declarations: [StepperComponent, StepperStepComponent],
4476
+ imports: [CommonModule],
4477
+ exports: [StepperComponent, StepperStepComponent]
4478
+ }]
4479
+ }] });
4480
+
4321
4481
  class FormatTablePipe {
4322
4482
  transform(value, type, format, locale = 'ru') {
4323
4483
  if (type === 'date') {
@@ -4595,136 +4755,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4595
4755
  }]
4596
4756
  }] });
4597
4757
 
4598
- class WizardStepComponent {
4599
- constructor() {
4600
- this.isValid = false;
4601
- this.isActive = false;
4602
- this.isCompleted = false;
4603
- this.showPrev = false;
4604
- this.showNext = false;
4605
- this.nextClicked = new EventEmitter();
4606
- this.prevClicked = new EventEmitter();
4607
- this.completeClicked = new EventEmitter();
4608
- }
4609
- }
4610
- WizardStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4611
- 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"] }] });
4612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardStepComponent, decorators: [{
4613
- type: Component,
4614
- args: [{ selector: 'aeb-wizard-step', template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n" }]
4615
- }], propDecorators: { title: [{
4616
- type: Input
4617
- }], isValid: [{
4618
- type: Input
4619
- }], isActive: [{
4620
- type: Input
4621
- }], isCompleted: [{
4622
- type: Input
4623
- }], showPrev: [{
4624
- type: Input
4625
- }], showNext: [{
4626
- type: Input
4627
- }], nextClicked: [{
4628
- type: Output
4629
- }], prevClicked: [{
4630
- type: Output
4631
- }], completeClicked: [{
4632
- type: Output
4633
- }] } });
4634
-
4635
- class WizardComponent {
4636
- constructor() {
4637
- this.stepChanged = new EventEmitter();
4638
- this.isDisabled = false;
4639
- this.steps = [];
4640
- }
4641
- get activeStepIndex() {
4642
- return this.steps.indexOf(this.activeStep);
4643
- }
4644
- get completedSteps() {
4645
- return this.steps.filter((step) => step.isCompleted);
4646
- }
4647
- get hasNextStep() {
4648
- return this.activeStepIndex < this.steps.length - 1;
4649
- }
4650
- get hasPrevStep() {
4651
- return this.activeStepIndex > 0;
4652
- }
4653
- get activeStep() {
4654
- return this.steps.find((step) => step.isActive);
4655
- }
4656
- set activeStep(step) {
4657
- if (step !== this.activeStep) {
4658
- this.activeStep.isActive = false;
4659
- step.isActive = true;
4660
- this.stepChanged.emit(step);
4661
- }
4662
- }
4663
- ngAfterContentInit() {
4664
- this.steps = [...this.wizardSteps];
4665
- }
4666
- goToNextStep() {
4667
- if (!this.hasNextStep) {
4668
- return;
4669
- }
4670
- const nextStep = this.steps[this.activeStepIndex + 1];
4671
- this.activeStep.nextClicked.emit();
4672
- this.activeStep = nextStep;
4673
- }
4674
- goToPrevStep() {
4675
- if (!this.hasPrevStep) {
4676
- return;
4677
- }
4678
- if (!this.hasNextStep && this.activeStep.isCompleted) {
4679
- this.activeStep.isCompleted = false;
4680
- return;
4681
- }
4682
- const nextStep = this.steps[this.activeStepIndex - 1];
4683
- nextStep.isCompleted = false;
4684
- this.activeStep.prevClicked.emit();
4685
- this.activeStep = nextStep;
4686
- }
4687
- goToFirstStep() {
4688
- if (!this.hasPrevStep) {
4689
- return;
4690
- }
4691
- const nextStep = this.steps[0];
4692
- this.activeStep = nextStep;
4693
- }
4694
- onCompleteStep() {
4695
- this.activeStep.completeClicked.emit();
4696
- this.activeStep.isCompleted = true;
4697
- this.goToNextStep();
4698
- }
4699
- }
4700
- WizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4701
- 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"] }] });
4702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardComponent, decorators: [{
4703
- type: Component,
4704
- 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"] }]
4705
- }], propDecorators: { wizardSteps: [{
4706
- type: ContentChildren,
4707
- args: [WizardStepComponent]
4708
- }], stepChanged: [{
4709
- type: Output
4710
- }], isDisabled: [{
4711
- type: Input
4712
- }] } });
4713
-
4714
- class WizardModule {
4715
- }
4716
- WizardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4717
- WizardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, declarations: [WizardComponent, WizardStepComponent], imports: [CommonModule], exports: [WizardComponent, WizardStepComponent] });
4718
- WizardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, imports: [CommonModule] });
4719
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: WizardModule, decorators: [{
4720
- type: NgModule,
4721
- args: [{
4722
- declarations: [WizardComponent, WizardStepComponent],
4723
- imports: [CommonModule],
4724
- exports: [WizardComponent, WizardStepComponent]
4725
- }]
4726
- }] });
4727
-
4728
4758
  class AebUiKitModule {
4729
4759
  }
4730
4760
  AebUiKitModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -4734,7 +4764,7 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4734
4764
  HeaderModule,
4735
4765
  SidebarModule,
4736
4766
  SliderModule,
4737
- WizardModule,
4767
+ StepperModule,
4738
4768
  FormFieldModule,
4739
4769
  LabelModule,
4740
4770
  VisaModule,
@@ -4761,12 +4791,13 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4761
4791
  NewsCardModule,
4762
4792
  DropdownModule,
4763
4793
  TableModule,
4764
- ModalModule], exports: [NewButtonModule,
4794
+ ModalModule,
4795
+ ResponseModule], exports: [NewButtonModule,
4765
4796
  CheckboxModule,
4766
4797
  HeaderModule,
4767
4798
  SidebarModule,
4768
4799
  SliderModule,
4769
- WizardModule,
4800
+ StepperModule,
4770
4801
  FormFieldModule,
4771
4802
  LabelModule,
4772
4803
  VisaModule,
@@ -4793,14 +4824,15 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4793
4824
  NewsCardModule,
4794
4825
  DropdownModule,
4795
4826
  TableModule,
4796
- ModalModule] });
4827
+ ModalModule,
4828
+ ResponseModule] });
4797
4829
  AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
4798
4830
  NewButtonModule,
4799
4831
  CheckboxModule,
4800
4832
  HeaderModule,
4801
4833
  SidebarModule,
4802
4834
  SliderModule,
4803
- WizardModule,
4835
+ StepperModule,
4804
4836
  FormFieldModule,
4805
4837
  LabelModule,
4806
4838
  VisaModule,
@@ -4827,12 +4859,13 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4827
4859
  NewsCardModule,
4828
4860
  DropdownModule,
4829
4861
  TableModule,
4830
- ModalModule, NewButtonModule,
4862
+ ModalModule,
4863
+ ResponseModule, NewButtonModule,
4831
4864
  CheckboxModule,
4832
4865
  HeaderModule,
4833
4866
  SidebarModule,
4834
4867
  SliderModule,
4835
- WizardModule,
4868
+ StepperModule,
4836
4869
  FormFieldModule,
4837
4870
  LabelModule,
4838
4871
  VisaModule,
@@ -4859,7 +4892,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4859
4892
  NewsCardModule,
4860
4893
  DropdownModule,
4861
4894
  TableModule,
4862
- ModalModule] });
4895
+ ModalModule,
4896
+ ResponseModule] });
4863
4897
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, decorators: [{
4864
4898
  type: NgModule,
4865
4899
  args: [{
@@ -4871,7 +4905,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4871
4905
  HeaderModule,
4872
4906
  SidebarModule,
4873
4907
  SliderModule,
4874
- WizardModule,
4908
+ StepperModule,
4875
4909
  FormFieldModule,
4876
4910
  LabelModule,
4877
4911
  VisaModule,
@@ -4898,7 +4932,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4898
4932
  NewsCardModule,
4899
4933
  DropdownModule,
4900
4934
  TableModule,
4901
- ModalModule
4935
+ ModalModule,
4936
+ ResponseModule
4902
4937
  ],
4903
4938
  exports: [
4904
4939
  NewButtonModule,
@@ -4906,7 +4941,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4906
4941
  HeaderModule,
4907
4942
  SidebarModule,
4908
4943
  SliderModule,
4909
- WizardModule,
4944
+ StepperModule,
4910
4945
  FormFieldModule,
4911
4946
  LabelModule,
4912
4947
  VisaModule,
@@ -4933,7 +4968,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4933
4968
  NewsCardModule,
4934
4969
  DropdownModule,
4935
4970
  TableModule,
4936
- ModalModule
4971
+ ModalModule,
4972
+ ResponseModule
4937
4973
  ]
4938
4974
  }]
4939
4975
  }] });
@@ -5180,5 +5216,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5180
5216
  * Generated bundle index. Do not edit.
5181
5217
  */
5182
5218
 
5183
- 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 };
5219
+ 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 };
5184
5220
  //# sourceMappingURL=aeb-ui-kit.mjs.map