@open-rlb/ng-bootstrap 2.4.2 → 2.4.4

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.
@@ -6522,8 +6522,12 @@ class DataTableComponent {
6522
6522
  this.pagination = new EventEmitter();
6523
6523
  }
6524
6524
  ngOnInit() {
6525
- this.currentPage = 1;
6526
- this.pageSize = 20;
6525
+ if (this.currentPage == null) {
6526
+ this.currentPage = 1;
6527
+ }
6528
+ if (this.pageSize == null) {
6529
+ this.pageSize = 20;
6530
+ }
6527
6531
  }
6528
6532
  get pages() {
6529
6533
  return Math.ceil((this.totalItems || 0) / (this.pageSize || 1));
@@ -8905,6 +8909,7 @@ class AutocompleteComponent extends AbstractComponent {
8905
8909
  this.menuMaxWidth = 400;
8906
8910
  this.userDefinedId = '';
8907
8911
  this.enableValidation = false;
8912
+ this.inputAutocomplete = 'one-time-code';
8908
8913
  this.selected = new EventEmitter();
8909
8914
  }
8910
8915
  update(ev) {
@@ -9039,7 +9044,7 @@ class AutocompleteComponent extends AbstractComponent {
9039
9044
  }
9040
9045
  }
9041
9046
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AutocompleteComponent, deps: [{ token: UniqueIdService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
9042
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.16", type: AutocompleteComponent, isStandalone: false, selector: "rlb-autocomplete", inputs: { disabled: ["disabled", "disabled", booleanAttribute], readonly: ["readonly", "readonly", booleanAttribute], loading: ["loading", "loading", booleanAttribute], maxHeight: ["max-height", "maxHeight", numberAttribute], placeholder: "placeholder", autocomplete: "autocomplete", type: "type", size: "size", charsToSearch: ["chars-to-search", "charsToSearch", numberAttribute], menuMaxWidth: ["menu-max-width", "menuMaxWidth", numberAttribute], userDefinedId: ["id", "userDefinedId", (v) => v || ''], enableValidation: ["enable-validation", "enableValidation", booleanAttribute] }, outputs: { selected: "selected" }, host: { listeners: { "document:pointerdown": "onDocumentPointerDown($event)", "document:keydown.escape": "onEscape($event)" }, styleAttribute: "position: relative;" }, viewQueries: [{ propertyName: "el", first: true, predicate: ["field"], descendants: true }, { propertyName: "dropdown", first: true, predicate: ["autocomplete"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
9047
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.16", type: AutocompleteComponent, isStandalone: false, selector: "rlb-autocomplete", inputs: { disabled: ["disabled", "disabled", booleanAttribute], readonly: ["readonly", "readonly", booleanAttribute], loading: ["loading", "loading", booleanAttribute], maxHeight: ["max-height", "maxHeight", numberAttribute], placeholder: "placeholder", autocomplete: "autocomplete", type: "type", size: "size", charsToSearch: ["chars-to-search", "charsToSearch", numberAttribute], menuMaxWidth: ["menu-max-width", "menuMaxWidth", numberAttribute], userDefinedId: ["id", "userDefinedId", (v) => v || ''], enableValidation: ["enable-validation", "enableValidation", booleanAttribute], inputAutocomplete: "inputAutocomplete" }, outputs: { selected: "selected" }, host: { listeners: { "document:pointerdown": "onDocumentPointerDown($event)", "document:keydown.escape": "onEscape($event)" }, styleAttribute: "position: relative;" }, viewQueries: [{ propertyName: "el", first: true, predicate: ["field"], descendants: true }, { propertyName: "dropdown", first: true, predicate: ["autocomplete"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
9043
9048
  <ng-content select="[before]"></ng-content>
9044
9049
  <div class="input-group has-validation">
9045
9050
  <input
@@ -9047,6 +9052,7 @@ class AutocompleteComponent extends AbstractComponent {
9047
9052
  [id]="id"
9048
9053
  class="form-control"
9049
9054
  [type]="type"
9055
+ [attr.autocomplete]="inputAutocomplete"
9050
9056
  [attr.disabled]="disabled ? true : undefined"
9051
9057
  [attr.readonly]="readonly ? true : undefined"
9052
9058
  [attr.placeholder]="placeholder"
@@ -9093,6 +9099,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9093
9099
  [id]="id"
9094
9100
  class="form-control"
9095
9101
  [type]="type"
9102
+ [attr.autocomplete]="inputAutocomplete"
9096
9103
  [attr.disabled]="disabled ? true : undefined"
9097
9104
  [attr.readonly]="readonly ? true : undefined"
9098
9105
  [attr.placeholder]="placeholder"
@@ -9170,6 +9177,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9170
9177
  }], enableValidation: [{
9171
9178
  type: Input,
9172
9179
  args: [{ transform: booleanAttribute, alias: 'enable-validation' }]
9180
+ }], inputAutocomplete: [{
9181
+ type: Input
9173
9182
  }], el: [{
9174
9183
  type: ViewChild,
9175
9184
  args: ['field']