zek 14.2.53 → 14.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/zek.mjs CHANGED
@@ -4861,6 +4861,7 @@ class ZekProgress {
4861
4861
  constructor() {
4862
4862
  this._value = 0;
4863
4863
  this._showValue = false;
4864
+ this._showTitle = true;
4864
4865
  this._striped = false;
4865
4866
  this._animated = false;
4866
4867
  this._label = null;
@@ -4871,7 +4872,10 @@ class ZekProgress {
4871
4872
  return this._value;
4872
4873
  }
4873
4874
  set value(v) {
4874
- this._value = clamp(Convert.toNumber(v) || 0);
4875
+ let tmp = clamp(Convert.toNumber(v) || 0);
4876
+ if (this._value !== tmp) {
4877
+ this._value = tmp;
4878
+ }
4875
4879
  }
4876
4880
  get showValue() {
4877
4881
  return this._showValue;
@@ -4879,6 +4883,15 @@ class ZekProgress {
4879
4883
  set showValue(v) {
4880
4884
  this._showValue = Convert.toBoolean(v);
4881
4885
  }
4886
+ get showTitle() {
4887
+ return this._showTitle;
4888
+ }
4889
+ set showTitle(v) {
4890
+ this._showTitle = Convert.toBoolean(v);
4891
+ }
4892
+ get _title() {
4893
+ return this._showTitle ? `${this._value} %` : null;
4894
+ }
4882
4895
  get striped() {
4883
4896
  return this._striped;
4884
4897
  }
@@ -4912,14 +4925,16 @@ class ZekProgress {
4912
4925
  }
4913
4926
  }
4914
4927
  ZekProgress.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
4915
- ZekProgress.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ZekProgress, selector: "zek-progress", inputs: { value: "value", showValue: "showValue", striped: "striped", animated: "animated", label: "label", height: "height", background: "background" }, ngImport: i0, template: "<div class=\"progress\" [style.height.px]=\"height\">\r\n <div class=\"progress-bar bg-{{background}}\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.width.%]=\"value\"\r\n [attr.aria-valuenow]=\"value\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\">\r\n <ng-container *ngIf=\"showValue\">{{value}}%</ng-container>\r\n <ng-content></ng-content>>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4928
+ ZekProgress.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ZekProgress, selector: "zek-progress", inputs: { value: "value", showValue: "showValue", showTitle: "showTitle", striped: "striped", animated: "animated", label: "label", height: "height", background: "background" }, ngImport: i0, template: "<div class=\"progress\" [style.height.px]=\"height\" [title]=\"_title\" >\r\n <div class=\"progress-bar bg-{{background}}\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.width.%]=\"value\"\r\n [attr.aria-valuenow]=\"value\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\">\r\n <ng-container *ngIf=\"showValue\">{{value}}%</ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4916
4929
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekProgress, decorators: [{
4917
4930
  type: Component,
4918
- args: [{ selector: 'zek-progress', template: "<div class=\"progress\" [style.height.px]=\"height\">\r\n <div class=\"progress-bar bg-{{background}}\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.width.%]=\"value\"\r\n [attr.aria-valuenow]=\"value\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\">\r\n <ng-container *ngIf=\"showValue\">{{value}}%</ng-container>\r\n <ng-content></ng-content>>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"] }]
4931
+ args: [{ selector: 'zek-progress', template: "<div class=\"progress\" [style.height.px]=\"height\" [title]=\"_title\" >\r\n <div class=\"progress-bar bg-{{background}}\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.width.%]=\"value\"\r\n [attr.aria-valuenow]=\"value\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\">\r\n <ng-container *ngIf=\"showValue\">{{value}}%</ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"] }]
4919
4932
  }], propDecorators: { value: [{
4920
4933
  type: Input
4921
4934
  }], showValue: [{
4922
4935
  type: Input
4936
+ }], showTitle: [{
4937
+ type: Input
4923
4938
  }], striped: [{
4924
4939
  type: Input
4925
4940
  }], animated: [{
@@ -5098,13 +5113,13 @@ class ReadOnlyDirective {
5098
5113
  }
5099
5114
  }
5100
5115
  ReadOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5101
- ReadOnlyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: ReadOnlyDirective, selector: "[readonly],[readOnly]", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "_isReadonly ? \"\" : null" } }, ngImport: i0 });
5116
+ ReadOnlyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: ReadOnlyDirective, selector: "[readonly],[readOnly]", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "_readonly ? \"\" : null" } }, ngImport: i0 });
5102
5117
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ReadOnlyDirective, decorators: [{
5103
5118
  type: Directive,
5104
5119
  args: [{
5105
5120
  selector: '[readonly],[readOnly]',
5106
5121
  host: {
5107
- '[attr.readonly]': '_isReadonly ? "" : null'
5122
+ '[attr.readonly]': '_readonly ? "" : null'
5108
5123
  }
5109
5124
  }]
5110
5125
  }], propDecorators: { readonly: [{