@po-ui/ng-components 18.20.0 → 18.21.0

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 (27) hide show
  1. package/esm2022/lib/components/po-field/po-input/po-input-base.component.mjs +38 -4
  2. package/esm2022/lib/components/po-field/validators.mjs +21 -8
  3. package/esm2022/lib/components/po-stepper/po-stepper-base.component.mjs +15 -2
  4. package/esm2022/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.mjs +8 -4
  5. package/esm2022/lib/components/po-stepper/po-stepper-step/po-stepper-step.component.mjs +13 -8
  6. package/esm2022/lib/components/po-stepper/po-stepper.component.mjs +5 -5
  7. package/fesm2022/po-ui-ng-components.mjs +94 -25
  8. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  9. package/lib/components/po-field/po-input/po-input-base.component.d.ts +27 -1
  10. package/lib/components/po-field/validators.d.ts +3 -2
  11. package/lib/components/po-stepper/po-stepper-base.component.d.ts +11 -1
  12. package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +2 -1
  13. package/lib/components/po-stepper/po-stepper-step/po-stepper-step.component.d.ts +2 -1
  14. package/package.json +4 -4
  15. package/po-ui-ng-components-18.21.0.tgz +0 -0
  16. package/schematics/ng-add/index.js +1 -1
  17. package/schematics/ng-update/v14/index.js +1 -1
  18. package/schematics/ng-update/v15/index.js +1 -1
  19. package/schematics/ng-update/v16/index.js +1 -1
  20. package/schematics/ng-update/v17/index.js +1 -1
  21. package/schematics/ng-update/v18/index.js +2 -2
  22. package/schematics/ng-update/v2/index.js +1 -1
  23. package/schematics/ng-update/v3/index.js +1 -1
  24. package/schematics/ng-update/v4/index.js +1 -1
  25. package/schematics/ng-update/v5/index.js +1 -1
  26. package/schematics/ng-update/v6/index.js +1 -1
  27. package/po-ui-ng-components-18.20.0.tgz +0 -0
@@ -14427,15 +14427,28 @@ function requiredFailed(required, disabled, value) {
14427
14427
  (typeof value === 'boolean' && value);
14428
14428
  return required && !disabled && !valid;
14429
14429
  }
14430
- function maxlengpoailed(maxlength, value) {
14431
- const validMaxlength = maxlength || maxlength === 0;
14432
- const validValue = (value || value === 0) && value.toString();
14433
- return validMaxlength && validValue && validValue.length > Number(maxlength);
14430
+ function maxlengpoailed(maxlength, value, maskNoLengthValidation = false) {
14431
+ return validateLength(maxlength, value, 'max', maskNoLengthValidation);
14432
+ }
14433
+ function minlengpoailed(minlength, value, maskNoLengthValidation = false) {
14434
+ return validateLength(minlength, value, 'min', maskNoLengthValidation);
14434
14435
  }
14435
- function minlengpoailed(minlength, value) {
14436
- const validMinlength = minlength || minlength === 0;
14436
+ function validateLength(limit, value, comparison, maskNoLengthValidation = false) {
14437
+ if (!limit && limit !== 0) {
14438
+ return false;
14439
+ }
14437
14440
  const validValue = (value || value === 0) && value.toString();
14438
- return validMinlength && validValue && validValue.length < Number(minlength);
14441
+ if (!validValue) {
14442
+ return false;
14443
+ }
14444
+ const processedValue = maskNoLengthValidation ? validValue.replace(/[^\w]/g, '') : validValue;
14445
+ if (comparison === 'max') {
14446
+ return processedValue.length > Number(limit);
14447
+ }
14448
+ else if (comparison === 'min') {
14449
+ return processedValue.length < Number(limit);
14450
+ }
14451
+ return false;
14439
14452
  }
14440
14453
  function patternFailed(pattern, value) {
14441
14454
  let reg;
@@ -31244,6 +31257,37 @@ class PoInputBaseComponent {
31244
31257
  *
31245
31258
  */
31246
31259
  upperCase = false;
31260
+ _maskNoLengthValidation = false;
31261
+ /**
31262
+ * @description
31263
+ *
31264
+ * Define se os caracteres especiais da máscara devem ser ignorados ao validar os comprimentos mínimo (`minLength`) e máximo (`maxLength`) do campo.
31265
+ *
31266
+ * - Quando `true`, apenas os caracteres alfanuméricos serão contabilizados para a validação dos comprimentos.
31267
+ * - Quando `false`, todos os caracteres, incluindo os especiais da máscara, serão considerados na validação.
31268
+ *
31269
+ * > Será ignorado essa propriedade , caso esteja utilizando junto com a propriedade `p-mask-format-model`.
31270
+ *
31271
+ * Exemplo:
31272
+ * ```
31273
+ * <po-input
31274
+ * p-mask="999-999"
31275
+ * p-maxlength="6"
31276
+ * p-minlength="4"
31277
+ * p-mask-no-length-validation="true"
31278
+ * ></po-input>
31279
+ * ```
31280
+ * - Entrada: `123-456` → Validação será aplicada somente aos números, ignorando o caractere especial `-`.
31281
+ *
31282
+ * @default `false`
31283
+ */
31284
+ set maskNoLengthValidation(value) {
31285
+ this._maskNoLengthValidation = convertToBoolean(value);
31286
+ this.validateModel();
31287
+ }
31288
+ get maskNoLengthValidation() {
31289
+ return this._maskNoLengthValidation;
31290
+ }
31247
31291
  /**
31248
31292
  * @optional
31249
31293
  *
@@ -31515,7 +31559,7 @@ class PoInputBaseComponent {
31515
31559
  }
31516
31560
  };
31517
31561
  }
31518
- if (maxlengpoailed(this.maxlength, this.getScreenValue())) {
31562
+ if (maxlengpoailed(this.maxlength, this.getScreenValue(), this.maskFormatModel ? false : this.maskNoLengthValidation)) {
31519
31563
  this.isInvalid = true;
31520
31564
  return {
31521
31565
  maxlength: {
@@ -31523,7 +31567,7 @@ class PoInputBaseComponent {
31523
31567
  }
31524
31568
  };
31525
31569
  }
31526
- if (minlengpoailed(this.minlength, this.getScreenValue())) {
31570
+ if (minlengpoailed(this.minlength, this.getScreenValue(), this.maskFormatModel ? false : this.maskNoLengthValidation)) {
31527
31571
  this.isInvalid = true;
31528
31572
  return {
31529
31573
  minlength: {
@@ -31574,7 +31618,7 @@ class PoInputBaseComponent {
31574
31618
  }
31575
31619
  }
31576
31620
  static ɵfac = function PoInputBaseComponent_Factory(t) { return new (t || PoInputBaseComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
31577
- static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoInputBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], icon: [0, "p-icon", "icon"], emitAllChanges: [2, "p-emit-all-changes", "emitAllChanges", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", errorAsyncProperties: [0, "p-error-async-properties", "errorAsyncProperties"], errorPattern: [0, "p-error-pattern", "errorPattern"], optional: [0, "p-optional", "optional"], showErrorMessageRequired: [0, "p-required-field-error-message", "showErrorMessageRequired"], upperCase: [2, "p-upper-case", "upperCase", convertToBoolean], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], placeholder: [0, "p-placeholder", "placeholder"], setDisabled: [0, "p-disabled", "setDisabled"], setReadonly: [0, "p-readonly", "setReadonly"], setRequired: [0, "p-required", "setRequired"], showRequired: [0, "p-show-required", "showRequired"], setClean: [0, "p-clean", "setClean"], setPattern: [0, "p-pattern", "setPattern"], maxlength: [0, "p-maxlength", "maxlength"], minlength: [0, "p-minlength", "minlength"], setMask: [0, "p-mask", "setMask"], setMaskFormatModel: [0, "p-mask-format-model", "setMaskFormatModel"] }, outputs: { blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
31621
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoInputBaseComponent, inputs: { autoFocus: [2, "p-auto-focus", "autoFocus", convertToBoolean], icon: [0, "p-icon", "icon"], emitAllChanges: [2, "p-emit-all-changes", "emitAllChanges", convertToBoolean], label: [0, "p-label", "label"], help: [0, "p-help", "help"], name: "name", errorAsyncProperties: [0, "p-error-async-properties", "errorAsyncProperties"], errorPattern: [0, "p-error-pattern", "errorPattern"], optional: [0, "p-optional", "optional"], showErrorMessageRequired: [0, "p-required-field-error-message", "showErrorMessageRequired"], upperCase: [2, "p-upper-case", "upperCase", convertToBoolean], maskNoLengthValidation: [0, "p-mask-no-length-validation", "maskNoLengthValidation"], noAutocomplete: [0, "p-no-autocomplete", "noAutocomplete"], placeholder: [0, "p-placeholder", "placeholder"], setDisabled: [0, "p-disabled", "setDisabled"], setReadonly: [0, "p-readonly", "setReadonly"], setRequired: [0, "p-required", "setRequired"], showRequired: [0, "p-show-required", "showRequired"], setClean: [0, "p-clean", "setClean"], setPattern: [0, "p-pattern", "setPattern"], maxlength: [0, "p-maxlength", "maxlength"], minlength: [0, "p-minlength", "minlength"], setMask: [0, "p-mask", "setMask"], setMaskFormatModel: [0, "p-mask-format-model", "setMaskFormatModel"] }, outputs: { blur: "p-blur", enter: "p-enter", change: "p-change", changeModel: "p-change-model" }, features: [i0.ɵɵInputTransformsFeature] });
31578
31622
  }
31579
31623
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoInputBaseComponent, [{
31580
31624
  type: Directive
@@ -31611,6 +31655,9 @@ class PoInputBaseComponent {
31611
31655
  }], upperCase: [{
31612
31656
  type: Input,
31613
31657
  args: [{ alias: 'p-upper-case', transform: convertToBoolean }]
31658
+ }], maskNoLengthValidation: [{
31659
+ type: Input,
31660
+ args: ['p-mask-no-length-validation']
31614
31661
  }], blur: [{
31615
31662
  type: Output,
31616
31663
  args: ['p-blur']
@@ -54990,6 +55037,16 @@ class PoStepperBaseComponent {
54990
55037
  * @default `po-icon-edit`
54991
55038
  */
54992
55039
  iconActive;
55040
+ /**
55041
+ * @optional
55042
+ *
55043
+ * @description
55044
+ *
55045
+ * Desabilita o clique nos steps.
55046
+ *
55047
+ * @default `false`
55048
+ */
55049
+ disabledClick = false;
54993
55050
  initializeSteps() {
54994
55051
  const hasStatus = this._steps.some(step => step.status !== PoStepperStatus.Default);
54995
55052
  if (!hasStatus && this.step === 1) {
@@ -54997,7 +55054,7 @@ class PoStepperBaseComponent {
54997
55054
  }
54998
55055
  }
54999
55056
  static ɵfac = function PoStepperBaseComponent_Factory(t) { return new (t || PoStepperBaseComponent)(); };
55000
- static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoStepperBaseComponent, inputs: { stepIcons: [0, "p-step-icons", "stepIcons"], stepSize: [0, "p-step-size", "stepSize"], alignCenter: [0, "p-align-center", "alignCenter"], orientation: [0, "p-orientation", "orientation"], step: [0, "p-step", "step"], steps: [0, "p-steps", "steps"], sequential: [0, "p-sequential", "sequential"], iconDone: [0, "p-step-icon-done", "iconDone"], iconActive: [0, "p-step-icon-active", "iconActive"] }, outputs: { onChangeStep: "p-change-step" } });
55057
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoStepperBaseComponent, inputs: { stepIcons: [0, "p-step-icons", "stepIcons"], stepSize: [0, "p-step-size", "stepSize"], alignCenter: [0, "p-align-center", "alignCenter"], orientation: [0, "p-orientation", "orientation"], step: [0, "p-step", "step"], steps: [0, "p-steps", "steps"], sequential: [0, "p-sequential", "sequential"], iconDone: [0, "p-step-icon-done", "iconDone"], iconActive: [0, "p-step-icon-active", "iconActive"], disabledClick: [0, "p-disable-click", "disabledClick"] }, outputs: { onChangeStep: "p-change-step" } });
55001
55058
  }
55002
55059
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoStepperBaseComponent, [{
55003
55060
  type: Directive
@@ -55031,6 +55088,9 @@ class PoStepperBaseComponent {
55031
55088
  }], iconActive: [{
55032
55089
  type: Input,
55033
55090
  args: ['p-step-icon-active']
55091
+ }], disabledClick: [{
55092
+ type: Input,
55093
+ args: ['p-disable-click']
55034
55094
  }] }); })();
55035
55095
 
55036
55096
  const _c0$9 = ["labelElement"];
@@ -55053,6 +55113,7 @@ class PoStepperLabelComponent {
55053
55113
  // Informa se a orientação do stepper é vertical.
55054
55114
  isVerticalOrientation;
55055
55115
  labelElement;
55116
+ disabledClick = false;
55056
55117
  displayedContent;
55057
55118
  tooltipContent;
55058
55119
  maxLabelLength = 100;
@@ -55104,14 +55165,14 @@ class PoStepperLabelComponent {
55104
55165
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelElement = _t.first);
55105
55166
  } }, hostBindings: function PoStepperLabelComponent_HostBindings(rf, ctx) { if (rf & 1) {
55106
55167
  i0.ɵɵlistener("mouseover", function PoStepperLabelComponent_mouseover_HostBindingHandler() { return ctx.onMouseOver(); })("mouseout", function PoStepperLabelComponent_mouseout_HostBindingHandler() { return ctx.onMouseOut(); });
55107
- } }, inputs: { alignCenter: [0, "p-align-center", "alignCenter"], content: [0, "p-content", "content"], status: [0, "p-status", "status"], isVerticalOrientation: [0, "p-vertical-orientation", "isVerticalOrientation"] }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 12, consts: [["labelElement", ""], ["aria-hidden", "true", 1, "po-stepper-label", 3, "mouseover", "mouseout", "p-tooltip"]], template: function PoStepperLabelComponent_Template(rf, ctx) { if (rf & 1) {
55168
+ } }, inputs: { alignCenter: [0, "p-align-center", "alignCenter"], content: [0, "p-content", "content"], status: [0, "p-status", "status"], isVerticalOrientation: [0, "p-vertical-orientation", "isVerticalOrientation"], disabledClick: [0, "p-disable-click", "disabledClick"] }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 14, consts: [["labelElement", ""], ["aria-hidden", "true", 1, "po-stepper-label", 3, "mouseover", "mouseout", "p-tooltip"]], template: function PoStepperLabelComponent_Template(rf, ctx) { if (rf & 1) {
55108
55169
  const _r1 = i0.ɵɵgetCurrentView();
55109
55170
  i0.ɵɵelementStart(0, "div", 1, 0);
55110
55171
  i0.ɵɵlistener("mouseover", function PoStepperLabelComponent_Template_div_mouseover_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMouseOver()); })("mouseout", function PoStepperLabelComponent_Template_div_mouseout_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMouseOut()); });
55111
55172
  i0.ɵɵtext(2);
55112
55173
  i0.ɵɵelementEnd();
55113
55174
  } if (rf & 2) {
55114
- i0.ɵɵclassProp("po-link", ctx.status !== "disabled")("po-stepper-label-active", ctx.status === "active" || ctx.status === "error")("po-stepper-label-done", ctx.status === "done")("po-stepper-label-vertical", ctx.isVerticalOrientation)("po-stepper-label-center", ctx.alignCenter);
55175
+ i0.ɵɵclassProp("po-link", ctx.status !== "disabled" && !ctx.disabledClick)("po-stepper-disabled-click", ctx.disabledClick)("po-stepper-label-active", ctx.status === "active" || ctx.status === "error")("po-stepper-label-done", ctx.status === "done")("po-stepper-label-vertical", ctx.isVerticalOrientation)("po-stepper-label-center", ctx.alignCenter);
55115
55176
  i0.ɵɵproperty("p-tooltip", ctx.tooltipContent);
55116
55177
  i0.ɵɵadvance(2);
55117
55178
  i0.ɵɵtextInterpolate1(" ", ctx.displayedContent, "\n");
@@ -55119,7 +55180,7 @@ class PoStepperLabelComponent {
55119
55180
  }
55120
55181
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoStepperLabelComponent, [{
55121
55182
  type: Component,
55122
- args: [{ selector: 'po-stepper-label', template: "<div\n #labelElement\n class=\"po-stepper-label\"\n [class.po-link]=\"status !== 'disabled'\"\n [class.po-stepper-label-active]=\"status === 'active' || status === 'error'\"\n [class.po-stepper-label-done]=\"status === 'done'\"\n [class.po-stepper-label-vertical]=\"isVerticalOrientation\"\n [class.po-stepper-label-center]=\"alignCenter\"\n [p-tooltip]=\"tooltipContent\"\n aria-hidden=\"true\"\n (mouseover)=\"onMouseOver()\"\n (mouseout)=\"onMouseOut()\"\n>\n {{ displayedContent }}\n</div>\n" }]
55183
+ args: [{ selector: 'po-stepper-label', template: "<div\n #labelElement\n class=\"po-stepper-label\"\n [class.po-link]=\"status !== 'disabled' && !this.disabledClick\"\n [class.po-stepper-disabled-click]=\"this.disabledClick\"\n [class.po-stepper-label-active]=\"status === 'active' || status === 'error'\"\n [class.po-stepper-label-done]=\"status === 'done'\"\n [class.po-stepper-label-vertical]=\"isVerticalOrientation\"\n [class.po-stepper-label-center]=\"alignCenter\"\n [p-tooltip]=\"tooltipContent\"\n aria-hidden=\"true\"\n (mouseover)=\"onMouseOver()\"\n (mouseout)=\"onMouseOut()\"\n>\n {{ displayedContent }}\n</div>\n" }]
55123
55184
  }], () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], { alignCenter: [{
55124
55185
  type: Input,
55125
55186
  args: ['p-align-center']
@@ -55135,6 +55196,9 @@ class PoStepperLabelComponent {
55135
55196
  }], labelElement: [{
55136
55197
  type: ViewChild,
55137
55198
  args: ['labelElement']
55199
+ }], disabledClick: [{
55200
+ type: Input,
55201
+ args: ['p-disable-click']
55138
55202
  }], onMouseOver: [{
55139
55203
  type: HostListener,
55140
55204
  args: ['mouseover']
@@ -55148,7 +55212,7 @@ function PoStepperStepComponent_po_stepper_label_3_Template(rf, ctx) { if (rf &
55148
55212
  i0.ɵɵelement(0, "po-stepper-label", 4);
55149
55213
  } if (rf & 2) {
55150
55214
  const ctx_r0 = i0.ɵɵnextContext();
55151
- i0.ɵɵproperty("p-align-center", ctx_r0.alignCenter)("p-content", ctx_r0.label)("p-status", ctx_r0.status)("p-vertical-orientation", ctx_r0.isVerticalOrientation);
55215
+ i0.ɵɵproperty("p-align-center", ctx_r0.alignCenter)("p-content", ctx_r0.label)("p-status", ctx_r0.status)("p-vertical-orientation", ctx_r0.isVerticalOrientation)("p-disable-click", ctx_r0.disabledClick);
55152
55216
  i0.ɵɵattribute("aria-label", ctx_r0.label);
55153
55217
  } }
55154
55218
  const poStepperStepSizeDefault = 24;
@@ -55232,6 +55296,7 @@ class PoStepperStepComponent {
55232
55296
  click = new EventEmitter();
55233
55297
  // Evento que será emitido ao focar no *step* e pressionar a tecla *enter*.
55234
55298
  enter = new EventEmitter();
55299
+ disabledClick = false;
55235
55300
  literals = {
55236
55301
  ...poStepLiteralsDefault[poLocaleDefault],
55237
55302
  ...poStepLiteralsDefault[getShortBrowserLanguage()]
@@ -55279,12 +55344,12 @@ class PoStepperStepComponent {
55279
55344
  }
55280
55345
  }
55281
55346
  onClick() {
55282
- if (this.status !== PoStepperStatus.Disabled) {
55347
+ if (this.status !== PoStepperStatus.Disabled && !this.disabledClick) {
55283
55348
  this.click.emit();
55284
55349
  }
55285
55350
  }
55286
55351
  onEnter() {
55287
- if (this.status !== PoStepperStatus.Disabled) {
55352
+ if (this.status !== PoStepperStatus.Disabled && !this.disabledClick) {
55288
55353
  this.enter.emit();
55289
55354
  }
55290
55355
  }
@@ -55301,15 +55366,16 @@ class PoStepperStepComponent {
55301
55366
  }
55302
55367
  }
55303
55368
  static ɵfac = function PoStepperStepComponent_Factory(t) { return new (t || PoStepperStepComponent)(); };
55304
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoStepperStepComponent, selectors: [["po-stepper-step"]], inputs: { alignCenter: [0, "p-align-center", "alignCenter"], circleContent: [0, "p-circle-content", "circleContent"], nextStatus: [0, "p-next-status", "nextStatus"], orientation: [0, "p-orientation", "orientation"], label: [0, "p-label", "label"], status: [0, "p-status", "status"], stepIcons: [0, "p-step-icons", "stepIcons"], stepSize: [0, "p-step-size", "stepSize"], iconDefault: [0, "p-icon-default", "iconDefault"], iconDone: [0, "p-step-icon-done", "iconDone"], iconActive: [0, "p-step-icon-active", "iconActive"], isVerticalOrientation: [0, "p-vertical-orientation", "isVerticalOrientation"] }, outputs: { activated: "p-activated", click: "p-click", enter: "p-enter" }, features: [i0.ɵɵNgOnChangesFeature], decls: 4, vars: 24, consts: [["role", "tab", 1, "po-stepper-step", 3, "click", "keydown.enter", "ngClass", "tabindex"], [1, "po-stepper-step-container"], [3, "p-align-center", "p-content", "p-icons", "p-size", "p-status", "p-icon-default", "p-step-icon-done", "p-step-icon-active"], ["class", "po-stepper-step-label-position", 3, "p-align-center", "p-content", "p-status", "p-vertical-orientation", 4, "ngIf"], [1, "po-stepper-step-label-position", 3, "p-align-center", "p-content", "p-status", "p-vertical-orientation"]], template: function PoStepperStepComponent_Template(rf, ctx) { if (rf & 1) {
55369
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoStepperStepComponent, selectors: [["po-stepper-step"]], inputs: { alignCenter: [0, "p-align-center", "alignCenter"], circleContent: [0, "p-circle-content", "circleContent"], nextStatus: [0, "p-next-status", "nextStatus"], orientation: [0, "p-orientation", "orientation"], label: [0, "p-label", "label"], status: [0, "p-status", "status"], stepIcons: [0, "p-step-icons", "stepIcons"], stepSize: [0, "p-step-size", "stepSize"], iconDefault: [0, "p-icon-default", "iconDefault"], iconDone: [0, "p-step-icon-done", "iconDone"], iconActive: [0, "p-step-icon-active", "iconActive"], isVerticalOrientation: [0, "p-vertical-orientation", "isVerticalOrientation"], disabledClick: [0, "p-disable-click", "disabledClick"] }, outputs: { activated: "p-activated", click: "p-click", enter: "p-enter" }, features: [i0.ɵɵNgOnChangesFeature], decls: 4, vars: 26, consts: [["role", "tab", 1, "po-stepper-step", 3, "click", "keydown.enter", "ngClass", "tabindex"], [1, "po-stepper-step-container"], [3, "p-align-center", "p-content", "p-icons", "p-size", "p-status", "p-icon-default", "p-step-icon-done", "p-step-icon-active"], ["class", "po-stepper-step-label-position", 3, "p-align-center", "p-content", "p-status", "p-vertical-orientation", "p-disable-click", 4, "ngIf"], [1, "po-stepper-step-label-position", 3, "p-align-center", "p-content", "p-status", "p-vertical-orientation", "p-disable-click"]], template: function PoStepperStepComponent_Template(rf, ctx) { if (rf & 1) {
55305
55370
  i0.ɵɵelementStart(0, "div", 0);
55306
55371
  i0.ɵɵlistener("click", function PoStepperStepComponent_Template_div_click_0_listener() { return ctx.onClick(); })("keydown.enter", function PoStepperStepComponent_Template_div_keydown_enter_0_listener() { return ctx.onEnter(); });
55307
55372
  i0.ɵɵelementStart(1, "div", 1);
55308
55373
  i0.ɵɵelement(2, "po-stepper-circle", 2);
55309
- i0.ɵɵtemplate(3, PoStepperStepComponent_po_stepper_label_3_Template, 1, 5, "po-stepper-label", 3);
55374
+ i0.ɵɵtemplate(3, PoStepperStepComponent_po_stepper_label_3_Template, 1, 6, "po-stepper-label", 3);
55310
55375
  i0.ɵɵelementEnd()();
55311
55376
  } if (rf & 2) {
55312
- i0.ɵɵproperty("ngClass", ctx.getStatusClass(ctx.status))("tabindex", ctx.status === "disabled" ? -1 : 0);
55377
+ i0.ɵɵclassProp("po-stepper-disabled-click", ctx.disabledClick);
55378
+ i0.ɵɵproperty("ngClass", ctx.getStatusClass(ctx.status))("tabindex", ctx.status === "disabled" || ctx.disabledClick ? -1 : 0);
55313
55379
  i0.ɵɵattribute("aria-selected", ctx.status === "active")("aria-disabled", ctx.status === "disabled")("aria-required", ctx.status === "error");
55314
55380
  i0.ɵɵadvance(2);
55315
55381
  i0.ɵɵstyleProp("min-width", ctx.minWidthCircle, "px")("min-height", ctx.minHeightCircle, "px");
@@ -55321,7 +55387,7 @@ class PoStepperStepComponent {
55321
55387
  }
55322
55388
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoStepperStepComponent, [{
55323
55389
  type: Component,
55324
- args: [{ selector: 'po-stepper-step', template: "<div\n class=\"po-stepper-step\"\n [ngClass]=\"getStatusClass(status)\"\n role=\"tab\"\n [tabindex]=\"status === 'disabled' ? -1 : 0\"\n [attr.aria-selected]=\"status === 'active'\"\n [attr.aria-disabled]=\"status === 'disabled'\"\n [attr.aria-required]=\"status === 'error'\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onEnter()\"\n>\n <div class=\"po-stepper-step-container\">\n <po-stepper-circle\n [p-align-center]=\"alignCenter\"\n [p-content]=\"circleContent\"\n [p-icons]=\"stepIcons\"\n [p-size]=\"stepSize\"\n [p-status]=\"status\"\n [p-icon-default]=\"iconDefault\"\n [p-step-icon-done]=\"iconDone\"\n [p-step-icon-active]=\"iconActive\"\n [class.po-stepper-circle-vertical]=\"isVerticalOrientation\"\n [class.po-stepper-circle-vertical-center]=\"alignCenter\"\n [class.po-stepper-circle-horizontal]=\"!isVerticalOrientation\"\n [style.minWidth.px]=\"minWidthCircle\"\n [style.minHeight.px]=\"minHeightCircle\"\n >\n </po-stepper-circle>\n\n <po-stepper-label\n *ngIf=\"label\"\n class=\"po-stepper-step-label-position\"\n [p-align-center]=\"alignCenter\"\n [p-content]=\"label\"\n [p-status]=\"status\"\n [p-vertical-orientation]=\"isVerticalOrientation\"\n [attr.aria-label]=\"label\"\n >\n </po-stepper-label>\n </div>\n</div>\n" }]
55390
+ args: [{ selector: 'po-stepper-step', template: "<div\n class=\"po-stepper-step\"\n [ngClass]=\"getStatusClass(status)\"\n role=\"tab\"\n [tabindex]=\"status === 'disabled' || disabledClick ? -1 : 0\"\n [attr.aria-selected]=\"status === 'active'\"\n [attr.aria-disabled]=\"status === 'disabled'\"\n [attr.aria-required]=\"status === 'error'\"\n [class.po-stepper-disabled-click]=\"disabledClick\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onEnter()\"\n>\n <div class=\"po-stepper-step-container\">\n <po-stepper-circle\n [p-align-center]=\"alignCenter\"\n [p-content]=\"circleContent\"\n [p-icons]=\"stepIcons\"\n [p-size]=\"stepSize\"\n [p-status]=\"status\"\n [p-icon-default]=\"iconDefault\"\n [p-step-icon-done]=\"iconDone\"\n [p-step-icon-active]=\"iconActive\"\n [class.po-stepper-circle-vertical]=\"isVerticalOrientation\"\n [class.po-stepper-circle-vertical-center]=\"alignCenter\"\n [class.po-stepper-circle-horizontal]=\"!isVerticalOrientation\"\n [style.minWidth.px]=\"minWidthCircle\"\n [style.minHeight.px]=\"minHeightCircle\"\n >\n </po-stepper-circle>\n\n <po-stepper-label\n *ngIf=\"label\"\n class=\"po-stepper-step-label-position\"\n [p-align-center]=\"alignCenter\"\n [p-content]=\"label\"\n [p-status]=\"status\"\n [p-vertical-orientation]=\"isVerticalOrientation\"\n [attr.aria-label]=\"label\"\n [p-disable-click]=\"disabledClick\"\n >\n </po-stepper-label>\n </div>\n</div>\n" }]
55325
55391
  }], null, { alignCenter: [{
55326
55392
  type: Input,
55327
55393
  args: ['p-align-center']
@@ -55367,6 +55433,9 @@ class PoStepperStepComponent {
55367
55433
  }], enter: [{
55368
55434
  type: Output,
55369
55435
  args: ['p-enter']
55436
+ }], disabledClick: [{
55437
+ type: Input,
55438
+ args: ['p-disable-click']
55370
55439
  }] }); })();
55371
55440
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PoStepperStepComponent, { className: "PoStepperStepComponent", filePath: "lib/components/po-stepper/po-stepper-step/po-stepper-step.component.ts", lineNumber: 27 }); })();
55372
55441
 
@@ -55411,7 +55480,7 @@ function PoStepperComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
55411
55480
  i0.ɵɵproperty("ngIf", index_r4 > 0);
55412
55481
  i0.ɵɵadvance();
55413
55482
  i0.ɵɵclassProp("po-stepper-step-position-center", ctx_r4.alignCenter);
55414
- i0.ɵɵproperty("p-align-center", ctx_r4.alignCenter)("p-circle-content", index_r4 + 1)("p-label", step_r3.label)("p-orientation", ctx_r4.orientation)("p-status", step_r3.status)("p-step-icons", ctx_r4.stepIcons)("p-step-size", ctx_r4.stepSize)("p-next-status", (tmp_12_0 = ctx_r4.poSteps.get(index_r4 + 1)) == null ? null : tmp_12_0.status)("p-icon-default", step_r3.iconDefault)("p-step-icon-active", ctx_r4.iconActive)("p-step-icon-done", ctx_r4.iconDone)("p-vertical-orientation", ctx_r4.isVerticalOrientation);
55483
+ i0.ɵɵproperty("p-align-center", ctx_r4.alignCenter)("p-circle-content", index_r4 + 1)("p-label", step_r3.label)("p-orientation", ctx_r4.orientation)("p-status", step_r3.status)("p-step-icons", ctx_r4.stepIcons)("p-step-size", ctx_r4.stepSize)("p-next-status", (tmp_12_0 = ctx_r4.poSteps.get(index_r4 + 1)) == null ? null : tmp_12_0.status)("p-icon-default", step_r3.iconDefault)("p-step-icon-active", ctx_r4.iconActive)("p-step-icon-done", ctx_r4.iconDone)("p-vertical-orientation", ctx_r4.isVerticalOrientation)("p-disable-click", ctx_r4.disabledClick);
55415
55484
  i0.ɵɵadvance();
55416
55485
  i0.ɵɵproperty("ngIf", index_r4 < ctx_r4.stepList.length - 1);
55417
55486
  } }
@@ -55747,10 +55816,10 @@ class PoStepperComponent extends PoStepperBaseComponent {
55747
55816
  } if (rf & 2) {
55748
55817
  let _t;
55749
55818
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poSteps = _t);
55750
- } }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 4, vars: 9, consts: [["role", "tablist"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-stepper-content", 4, "ngIf"], [1, "po-stepper-step-wrapper"], [3, "po-stepper-step-bar-top", "po-stepper-step-dashed-border-vertical", "left", 4, "ngIf"], [3, "p-activated", "p-click", "p-enter", "p-align-center", "p-circle-content", "p-label", "p-orientation", "p-status", "p-step-icons", "p-step-size", "p-next-status", "p-icon-default", "p-step-icon-active", "p-step-icon-done", "p-vertical-orientation"], [3, "po-stepper-step-bar-bottom", "po-stepper-step-bar-bottom-center", "po-stepper-step-bar-right", "po-stepper-step-bar-center", "po-stepper-step-dashed-border", "po-stepper-step-dashed-border-vertical", "top", "left", 4, "ngIf"], [1, "po-stepper-content"]], template: function PoStepperComponent_Template(rf, ctx) { if (rf & 1) {
55819
+ } }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 4, vars: 9, consts: [["role", "tablist"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-stepper-content", 4, "ngIf"], [1, "po-stepper-step-wrapper"], [3, "po-stepper-step-bar-top", "po-stepper-step-dashed-border-vertical", "left", 4, "ngIf"], [3, "p-activated", "p-click", "p-enter", "p-align-center", "p-circle-content", "p-label", "p-orientation", "p-status", "p-step-icons", "p-step-size", "p-next-status", "p-icon-default", "p-step-icon-active", "p-step-icon-done", "p-vertical-orientation", "p-disable-click"], [3, "po-stepper-step-bar-bottom", "po-stepper-step-bar-bottom-center", "po-stepper-step-bar-right", "po-stepper-step-bar-center", "po-stepper-step-dashed-border", "po-stepper-step-dashed-border-vertical", "top", "left", 4, "ngIf"], [1, "po-stepper-content"]], template: function PoStepperComponent_Template(rf, ctx) { if (rf & 1) {
55751
55820
  i0.ɵɵprojectionDef();
55752
55821
  i0.ɵɵelementStart(0, "div")(1, "div", 0);
55753
- i0.ɵɵtemplate(2, PoStepperComponent_ng_container_2_Template, 5, 16, "ng-container", 1);
55822
+ i0.ɵɵtemplate(2, PoStepperComponent_ng_container_2_Template, 5, 17, "ng-container", 1);
55754
55823
  i0.ɵɵelementEnd();
55755
55824
  i0.ɵɵtemplate(3, PoStepperComponent_div_3_Template, 2, 0, "div", 2);
55756
55825
  i0.ɵɵelementEnd();
@@ -55766,7 +55835,7 @@ class PoStepperComponent extends PoStepperBaseComponent {
55766
55835
  }
55767
55836
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoStepperComponent, [{
55768
55837
  type: Component,
55769
- args: [{ selector: 'po-stepper', template: "<div class=\"po-stepper-{{ orientation }}\">\n <div role=\"tablist\" class=\"po-stepper-container-{{ orientation }}\">\n <ng-container *ngFor=\"let step of stepList; let index = index; trackBy: trackByFn\">\n <div class=\"po-stepper-step-wrapper\">\n <div\n *ngIf=\"index > 0\"\n [class.po-stepper-step-bar-top]=\"alignCenter && isVerticalOrientation\"\n [class.po-stepper-step-dashed-border-vertical]=\"\n alignCenter && isVerticalOrientation && isDashedBorderTop(step, index)\n \"\n [style.left.px]=\"\n isVerticalOrientation ? (!stepSizeCircle || stepSizeCircle === 24 ? 16 : stepSizeCircle / 2) : null\n \"\n ></div>\n\n <po-stepper-step\n [class.po-stepper-step-position-center]=\"alignCenter\"\n [p-align-center]=\"alignCenter\"\n [p-circle-content]=\"index + 1\"\n [p-label]=\"step.label\"\n [p-orientation]=\"orientation\"\n [p-status]=\"step.status\"\n [p-step-icons]=\"stepIcons\"\n [p-step-size]=\"stepSize\"\n [p-next-status]=\"poSteps.get(index + 1)?.status\"\n [p-icon-default]=\"step.iconDefault\"\n [p-step-icon-active]=\"iconActive\"\n [p-step-icon-done]=\"iconDone\"\n [p-vertical-orientation]=\"isVerticalOrientation\"\n (p-activated)=\"onStepActive(step)\"\n (p-click)=\"changeStep(index, step)\"\n (p-enter)=\"changeStep(index, step)\"\n >\n </po-stepper-step>\n\n <div\n *ngIf=\"index < stepList.length - 1\"\n [class.po-stepper-step-bar-bottom]=\"isVerticalOrientation\"\n [class.po-stepper-step-bar-bottom-center]=\"alignCenter && isVerticalOrientation\"\n [class.po-stepper-step-bar-right]=\"!isVerticalOrientation\"\n [class.po-stepper-step-bar-center]=\"alignCenter && !isVerticalOrientation\"\n [class.po-stepper-step-dashed-border]=\"!isVerticalOrientation && isDashedBorder(step, index)\"\n [class.po-stepper-step-dashed-border-vertical]=\"isVerticalOrientation && isDashedBorder(step, index)\"\n [style.top.px]=\"!isVerticalOrientation ? (stepSizeCircle === 24 ? 16 : stepSizeCircle / 2) : null\"\n [style.left.px]=\"\n isVerticalOrientation ? (!stepSizeCircle || stepSizeCircle === 24 ? 16 : stepSizeCircle / 2) : null\n \"\n ></div>\n </div>\n </ng-container>\n </div>\n\n <div *ngIf=\"usePoSteps\" class=\"po-stepper-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
55838
+ args: [{ selector: 'po-stepper', template: "<div class=\"po-stepper-{{ orientation }}\">\n <div role=\"tablist\" class=\"po-stepper-container-{{ orientation }}\">\n <ng-container *ngFor=\"let step of stepList; let index = index; trackBy: trackByFn\">\n <div class=\"po-stepper-step-wrapper\">\n <div\n *ngIf=\"index > 0\"\n [class.po-stepper-step-bar-top]=\"alignCenter && isVerticalOrientation\"\n [class.po-stepper-step-dashed-border-vertical]=\"\n alignCenter && isVerticalOrientation && isDashedBorderTop(step, index)\n \"\n [style.left.px]=\"\n isVerticalOrientation ? (!stepSizeCircle || stepSizeCircle === 24 ? 16 : stepSizeCircle / 2) : null\n \"\n ></div>\n\n <po-stepper-step\n [class.po-stepper-step-position-center]=\"alignCenter\"\n [p-align-center]=\"alignCenter\"\n [p-circle-content]=\"index + 1\"\n [p-label]=\"step.label\"\n [p-orientation]=\"orientation\"\n [p-status]=\"step.status\"\n [p-step-icons]=\"stepIcons\"\n [p-step-size]=\"stepSize\"\n [p-next-status]=\"poSteps.get(index + 1)?.status\"\n [p-icon-default]=\"step.iconDefault\"\n [p-step-icon-active]=\"iconActive\"\n [p-step-icon-done]=\"iconDone\"\n [p-vertical-orientation]=\"isVerticalOrientation\"\n [p-disable-click]=\"disabledClick\"\n (p-activated)=\"onStepActive(step)\"\n (p-click)=\"changeStep(index, step)\"\n (p-enter)=\"changeStep(index, step)\"\n >\n </po-stepper-step>\n\n <div\n *ngIf=\"index < stepList.length - 1\"\n [class.po-stepper-step-bar-bottom]=\"isVerticalOrientation\"\n [class.po-stepper-step-bar-bottom-center]=\"alignCenter && isVerticalOrientation\"\n [class.po-stepper-step-bar-right]=\"!isVerticalOrientation\"\n [class.po-stepper-step-bar-center]=\"alignCenter && !isVerticalOrientation\"\n [class.po-stepper-step-dashed-border]=\"!isVerticalOrientation && isDashedBorder(step, index)\"\n [class.po-stepper-step-dashed-border-vertical]=\"isVerticalOrientation && isDashedBorder(step, index)\"\n [style.top.px]=\"!isVerticalOrientation ? (stepSizeCircle === 24 ? 16 : stepSizeCircle / 2) : null\"\n [style.left.px]=\"\n isVerticalOrientation ? (!stepSizeCircle || stepSizeCircle === 24 ? 16 : stepSizeCircle / 2) : null\n \"\n ></div>\n </div>\n </ng-container>\n </div>\n\n <div *ngIf=\"usePoSteps\" class=\"po-stepper-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
55770
55839
  }], () => [{ type: i0.ChangeDetectorRef }], { poSteps: [{
55771
55840
  type: ContentChildren,
55772
55841
  args: [PoStepComponent]