ps-toolkit-ui 1.12.80 → 1.12.82

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.
@@ -2584,9 +2584,7 @@
2584
2584
  function StepsComponent() {
2585
2585
  }
2586
2586
  StepsComponent.prototype.changeStep = function (s) {
2587
- if (this.steps.updateAccess) {
2588
- this.steps.loadStep(s);
2589
- }
2587
+ this.steps.loadStep(s);
2590
2588
  };
2591
2589
  StepsComponent.prototype.onDelete = function (s) {
2592
2590
  var a = this.steps.items.findIndex(function (x) { return x.name === s.name; });
@@ -2613,7 +2611,9 @@
2613
2611
  var activeStepIndex = _this.steps.items.findIndex(function (x) { return x.active; });
2614
2612
  var previousStepIndex = activeStepIndex - 1;
2615
2613
  var previous = _this.steps.items[previousStepIndex];
2616
- _this.changeStep(previous);
2614
+ if (_this.steps.updateAccess) {
2615
+ _this.changeStep(previous);
2616
+ }
2617
2617
  };
2618
2618
  this.saveDone = new InputClass(this.steps.environment, this.steps.l, 'SaveDone', 'fa-duotone fa-check', exports.InputType.Button, 'f-l w-25 h-25 green left-icon');
2619
2619
  this.saveDone.onClick = function () {
@@ -2641,12 +2641,11 @@
2641
2641
  else {
2642
2642
  var nextStepIndex = activeStepIndex + 1;
2643
2643
  var next = _this.steps.items[nextStepIndex];
2644
- activeStep.active = false;
2645
- next.active = true;
2646
2644
  if (currentStepIndex === activeStepIndex) {
2647
2645
  currentStep.current = false;
2648
2646
  next.current = true;
2649
2647
  }
2648
+ _this.changeStep(next);
2650
2649
  }
2651
2650
  });
2652
2651
  };
@@ -2655,7 +2654,7 @@
2655
2654
  StepsComponent.decorators = [
2656
2655
  { type: core.Component, args: [{
2657
2656
  selector: 'lib-steps',
2658
- template: "<div class=\"steps\">\r\n <div class=\"header\">\r\n <div *ngFor=\"let s of steps.items; let i = index\" [className]=\"(steps.getCurrent() > i || steps.isDone ? 'done ' : steps.getCurrent() === i ? 'process ' : steps.activeAll ? 'next ' : '') + (steps.getActive() === i ? 'active ' : '') + 'step-con'\">\r\n <div [className]=\"(s.description ? 'with-description ' : '') + (steps.updateAccess ? '' : 'disable ') + 'step'\" (click)=\"changeStep(s)\">\r\n <div *ngIf=\"s.icon != null\" [className]=\"s.icon + ' icon fa svg'\"></div>\r\n <div class=\"title\">{{s.title}}</div>\r\n <div *ngIf=\"s.description\" class=\"description o-h-d\">({{s.description}})</div>\r\n <i *ngIf=\"s.onDelete\" (click)=\"onDelete(s)\" class=\"delete fas fa-times\"></i>\r\n <i class=\"dot fa-duotone fa-dot-circle\"></i>\r\n <i class=\"dot dot-done fa-duotone fa-circle-check green\"></i>\r\n <i class=\"dot dot-process fa-duotone fa-circle-ellipsis\"></i>\r\n <div class=\"line-r\"></div>\r\n <div class=\"line-l\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"body\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.children.length\">\r\n <div *ngFor=\"let s of steps.items; let i = index\" class=\"step-con\">\r\n <span *ngIf=\"steps.getActive() === i\">\r\n <lib-form *ngIf=\"s.form != null\" [form]=\"s.form\"></lib-form>\r\n </span>\r\n </div>\r\n </span>\r\n </div>\r\n <div class=\"footer topline p-t-20 m-t-20\" *ngIf=\"steps.viewAccess\">\r\n <lib-form-button [inp]=\"saveNext\" *ngIf=\"steps.getActive() !== steps.items.length - 1 && steps.getCurrent() === steps.getActive()\"></lib-form-button>\r\n <lib-form-button [inp]=\"editNext\" *ngIf=\"steps.getActive() !== steps.items.length - 1 && steps.getCurrent() !== steps.getActive()\"></lib-form-button>\r\n <lib-form-button [inp]=\"previous\" *ngIf=\"steps.getActive() !== 0 && steps.updateAccess\"></lib-form-button>\r\n <lib-form-button [inp]=\"saveDone\" *ngIf=\"steps.getActive() === steps.items.length - 1 && !steps.isDone\"></lib-form-button>\r\n <lib-form-button [inp]=\"editDone\" *ngIf=\"steps.getActive() === steps.items.length - 1 && steps.isDone\"></lib-form-button>\r\n </div>\r\n</div>\r\n",
2657
+ template: "<div class=\"steps\">\r\n <div class=\"header\">\r\n <div *ngFor=\"let s of steps.items; let i = index\" [className]=\"(steps.getCurrent() > i || steps.isDone ? 'done ' : steps.getCurrent() === i ? 'process ' : steps.activeAll ? 'next ' : '') + (steps.getActive() === i ? 'active ' : '') + 'step-con'\">\r\n <div [className]=\"(s.description ? 'with-description ' : '') + (steps.updateAccess ? '' : 'disable ') + 'step'\" (click)=\"steps.updateAccess && changeStep(s)\">\r\n <div *ngIf=\"s.icon != null\" [className]=\"s.icon + ' icon fa svg'\"></div>\r\n <div class=\"title\">{{s.title}}</div>\r\n <div *ngIf=\"s.description\" class=\"description o-h-d\">({{s.description}})</div>\r\n <i *ngIf=\"s.onDelete\" (click)=\"onDelete(s)\" class=\"delete fas fa-times\"></i>\r\n <i class=\"dot fa-duotone fa-dot-circle\"></i>\r\n <i class=\"dot dot-done fa-duotone fa-circle-check green\"></i>\r\n <i class=\"dot dot-process fa-duotone fa-circle-ellipsis\"></i>\r\n <div class=\"line-r\"></div>\r\n <div class=\"line-l\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"body\">\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.children.length\">\r\n <div *ngFor=\"let s of steps.items; let i = index\" class=\"step-con\">\r\n <span *ngIf=\"steps.getActive() === i\">\r\n <lib-form *ngIf=\"s.form != null\" [form]=\"s.form\"></lib-form>\r\n </span>\r\n </div>\r\n </span>\r\n </div>\r\n <div class=\"footer topline p-t-20 m-t-20\" *ngIf=\"steps.viewAccess\">\r\n <lib-form-button [inp]=\"saveNext\" *ngIf=\"steps.getActive() !== steps.items.length - 1 && steps.getCurrent() === steps.getActive()\"></lib-form-button>\r\n <lib-form-button [inp]=\"editNext\" *ngIf=\"steps.getActive() !== steps.items.length - 1 && steps.getCurrent() !== steps.getActive()\"></lib-form-button>\r\n <lib-form-button [inp]=\"previous\" *ngIf=\"steps.getActive() !== 0 && steps.updateAccess\"></lib-form-button>\r\n <lib-form-button [inp]=\"saveDone\" *ngIf=\"steps.getActive() === steps.items.length - 1 && !steps.isDone\"></lib-form-button>\r\n <lib-form-button [inp]=\"editDone\" *ngIf=\"steps.getActive() === steps.items.length - 1 && steps.isDone\"></lib-form-button>\r\n </div>\r\n</div>\r\n",
2659
2658
  styles: [".steps{background-color:#fff;border-radius:var(--border-radius-base);padding:20px}.steps,.steps>.header{float:right;width:100%}.steps>.header{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;display:flex;justify-content:center}.steps>.header>.step-con{display:flex;float:right;padding:5px;position:relative;width:160px}.steps>.header>.step-con .step{align-items:center;border-radius:var(--border-radius-base);cursor:default;display:flex;flex-direction:column;float:right;justify-content:center;padding:10px 5px;pointer-events:none;position:relative;text-align:center;width:100%}.steps>.header>.step-con.done .step:not(.disable),.steps>.header>.step-con.next .step:not(.disable),.steps>.header>.step-con.process .step:not(.disable){cursor:pointer;pointer-events:unset}.steps>.header>.step-con.active .step,.steps>.header>.step-con.done .step:not(.disable):hover,.steps>.header>.step-con.next .step:not(.disable):hover,.steps>.header>.step-con.process .step:not(.disable):hover{background-color:var(--base-white)}.steps>.header>.step-con .step .icon{float:right;font-size:25px;height:40px;line-height:40px;margin-right:calc(50% - 20px);text-align:center;width:40px}.steps>.header>.step-con .step .icon i{line-height:35px}.steps>.header>.step-con .step .title{align-items:center;display:flex;float:right;font-size:10px;height:100%;justify-content:center;line-height:15px;margin-bottom:15px;text-align:center;width:100%}.steps>.header>.step-con .step.with-description .title{float:right;font-size:13px;height:25px;line-height:32px;text-align:center;width:100%}.steps>.header>.step-con .step .description{float:right;font-size:11px;height:25px;line-height:20px;text-align:center;width:100%}.steps>.header>.step-con .step .dot{border-radius:50%;float:right;font-size:20px;height:25px;line-height:25px;width:25px}.steps>.header>.step-con .step .delete{color:var(--red);cursor:pointer;display:none;font-size:25px;height:20px;line-height:20px;position:absolute;right:-10px;text-align:center;top:-10px;width:20px}.steps>.header>.step-con .step .delete:hover{color:var(--red-dark)}.steps>.header>.step-con.process .step .delete{display:block}.steps>.header>.step-con .step .dot.dot-done{color:var(--green);display:none}.steps>.header>.step-con .step .dot.dot-process{color:var(--primary);display:none}.steps>.header>.step-con.done .step .dot,.steps>.header>.step-con.process .step .dot{display:none}.steps>.header>.step-con.done .step .dot.dot-done,.steps>.header>.step-con.process .step .dot.dot-process{display:block}.steps>.header>.step-con .step .line-r{background-image:linear-gradient(90deg,rgba(51,51,51,0),rgba(51,51,51,.3));bottom:21px;height:2px;position:absolute;right:-5px;width:calc(50% + 5px)}.steps>.header>.step-con .step .line-l{background-image:linear-gradient(270deg,rgba(51,51,51,0),rgba(51,51,51,.3));bottom:21px;height:2px;left:-5px;position:absolute;width:calc(50% + 5px)}.steps>.header>.step-con:first-of-type .step .line-r,.steps>.header>.step-con:last-of-type .step .line-l{display:none}.steps>.body{float:right;min-height:calc(100vh - 400px);width:100%}.steps>.footer{float:right;position:relative;width:100%}@media (max-width:399.99px){.steps{margin:20px 2%;margin:0;padding:10px;width:96%;width:100%}.steps .steps{margin-right:0;width:100%}.steps>.header>.step-con .step .icon{font-size:18px;height:30px;margin-right:calc(50% - 15px);width:30px}.steps>.header>.step-con .step .icon i{line-height:25px}.steps>.header>.step-con .step .title{align-items:center;display:flex;font-size:10px;justify-content:center;line-height:13px}}@media (min-width:400px) and (max-width:499.99px){.steps{margin:20px 2%;margin:0;padding:10px;width:96%;width:100%}.steps .steps{margin-right:0;width:100%}.steps>.header>.step-con .step .icon{font-size:18px;height:30px;margin-right:calc(50% - 15px);width:30px}.steps>.header>.step-con .step .icon i{line-height:25px}.steps>.header>.step-con .step .title{align-items:center;display:flex;font-size:10px;justify-content:center;line-height:13px}}@media (min-width:500px) and (max-width:599.99px){.steps{margin:20px 2%;margin:0;width:96%;width:100%}.steps .steps{margin-right:0;width:100%}.steps>.header>.step-con .step .icon{font-size:20px;height:35px;margin-right:calc(50% - 17.5px);width:35px}.steps>.header>.step-con .step .icon i{line-height:30px}.steps>.header>.step-con .step .title{align-items:center;display:flex;font-size:11px;justify-content:center;line-height:13px}}@media (min-width:600px) and (max-width:699.99px){.steps{margin:20px 2%;margin:0;width:96%;width:100%}.steps .steps{margin-right:0;width:100%}.steps>.header>.step-con .step .icon{font-size:20px;height:35px;margin-right:calc(50% - 17.5px);width:35px}.steps>.header>.step-con .step .icon i{line-height:30px}.steps>.header>.step-con .step .title{font-size:11px}}@media (min-width:700px) and (max-width:799.99px){.steps{margin:20px 2%;margin:0;width:96%;width:100%}}@media (min-width:800px) and (max-width:899.99px){.steps{margin:0;width:100%}}@media (min-width:900px) and (max-width:999.99px){.steps{margin:0 5%;width:90%}}@media (min-width:1000px) and (max-width:1099.99px){.steps{margin:0 10%;width:80%}}@media (min-width:1100px) and (max-width:1199.99px){.steps{margin:0 15%;width:70%}}@media (min-width:1200px) and (max-width:1299.99px){.steps{margin:0 15%;width:70%}}"]
2660
2659
  },] }
2661
2660
  ];