@open-rlb/ng-bootstrap 3.1.0 → 3.1.1

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.
@@ -5934,16 +5934,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
5934
5934
 
5935
5935
  class AbstractComponent {
5936
5936
  get id() {
5937
- const userDefinedIdValue = typeof this.userDefinedId === 'function'
5938
- ? this.userDefinedId()
5939
- : this.userDefinedId;
5937
+ const userDefinedIdValue = typeof this.userDefinedId === 'function' ? this.userDefinedId() : this.userDefinedId;
5940
5938
  return userDefinedIdValue || this._id;
5941
5939
  }
5942
5940
  constructor(idService, control) {
5943
5941
  this.control = control;
5944
5942
  this.onTouched = () => { };
5945
- this.onChanged = (v) => {
5946
- };
5943
+ this.onChanged = (v) => { };
5947
5944
  this.cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "cvaDisabled" }] : []));
5948
5945
  this.invalid = computed(() => {
5949
5946
  return this.control?.invalid || false;
@@ -5983,7 +5980,6 @@ class AbstractComponent {
5983
5980
  this.cvaDisabled.set(isDisabled);
5984
5981
  }
5985
5982
  onWrite(data) { }
5986
- ;
5987
5983
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: AbstractComponent, deps: [{ token: UniqueIdService }, { token: i2$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
5988
5984
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: AbstractComponent }); }
5989
5985
  }
@@ -9405,9 +9401,7 @@ class InputComponent extends AbstractComponent {
9405
9401
  super(idService, control);
9406
9402
  this.viewContainerRef = viewContainerRef;
9407
9403
  this.control = control;
9408
- this.disabled = input(false, {
9409
- transform: booleanAttribute,
9410
- });
9404
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
9411
9405
  this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: booleanAttribute });
9412
9406
  this.beforeText = input(false, { ...(ngDevMode ? { debugName: "beforeText" } : {}), alias: 'before-text',
9413
9407
  transform: booleanAttribute });
@@ -9563,101 +9557,89 @@ class InputComponent extends AbstractComponent {
9563
9557
  ?.join('') || '';
9564
9558
  const standardized = filtered.replace(/,/g, '.');
9565
9559
  const [integerPart, ...fractionalParts] = standardized.split('.');
9566
- const result = fractionalParts.length > 0
9567
- ? `${integerPart}.${fractionalParts.join('')}`
9568
- : integerPart;
9560
+ const result = fractionalParts.length > 0 ? `${integerPart}.${fractionalParts.join('')}` : integerPart;
9569
9561
  return result;
9570
9562
  }
9571
9563
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: InputComponent, deps: [{ token: i0.ViewContainerRef }, { token: UniqueIdService }, { token: i2$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
9572
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: InputComponent, isStandalone: false, selector: "rlb-input", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, beforeText: { classPropertyName: "beforeText", publicName: "before-text", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, dateType: { classPropertyName: "dateType", publicName: "date-type", isSignal: true, isRequired: false, transformFunction: null }, timezone: { classPropertyName: "timezone", publicName: "timezone", isSignal: true, isRequired: false, transformFunction: null }, userDefinedId: { classPropertyName: "userDefinedId", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, extValidation: { classPropertyName: "extValidation", publicName: "extValidation", isSignal: true, isRequired: false, transformFunction: null }, enableValidation: { classPropertyName: "enableValidation", publicName: "enable-validation", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "el", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "template", first: true, predicate: ["template"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: ` <ng-template #template>
9573
- <ng-content select="[before]"></ng-content>
9574
- <input
9575
- #field
9576
- [id]="id"
9577
- class="form-control"
9578
- [type]="_type()"
9579
- [name]="name()"
9580
- [attr.max]="
9581
- type() === 'number' && max() !== null && max() !== undefined
9582
- ? max()
9583
- : undefined
9584
- "
9585
- [attr.min]="
9586
- type() === 'number' && min() !== null && min() !== undefined
9587
- ? min()
9588
- : undefined
9589
- "
9590
- [attr.step]="
9591
- type() === 'number' && step() !== null && step() !== undefined
9592
- ? step()
9593
- : undefined
9594
- "
9595
- [attr.disabled]="isDisabled() ? true : undefined"
9596
- [attr.readonly]="readonly() ? true : undefined"
9597
- [attr.placeholder]="placeholder()"
9598
- [class.form-control-lg]="size() === 'large'"
9599
- [class.form-control-sm]="size() === 'small'"
9600
- [value]="value || ''"
9601
- (blur)="touch()"
9602
- [ngClass]="{
9603
- 'is-invalid':
9604
- control?.touched && control?.invalid && enableValidation(),
9605
- 'is-valid': control?.touched && control?.valid && enableValidation(),
9606
- }"
9607
- (input)="update($event.target)"
9608
- />
9609
- @if (!_extValidation() && showError()) {
9610
- <rlb-input-validation [errors]="errors()" />
9611
- }
9612
- <ng-content select="[after]"></ng-content>
9613
- </ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InputValidationComponent, selector: "rlb-input-validation", inputs: ["errors"], outputs: ["errorsChange"] }] }); }
9564
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: InputComponent, isStandalone: false, selector: "rlb-input", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, beforeText: { classPropertyName: "beforeText", publicName: "before-text", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, dateType: { classPropertyName: "dateType", publicName: "date-type", isSignal: true, isRequired: false, transformFunction: null }, timezone: { classPropertyName: "timezone", publicName: "timezone", isSignal: true, isRequired: false, transformFunction: null }, userDefinedId: { classPropertyName: "userDefinedId", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, extValidation: { classPropertyName: "extValidation", publicName: "extValidation", isSignal: true, isRequired: false, transformFunction: null }, enableValidation: { classPropertyName: "enableValidation", publicName: "enable-validation", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "el", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "template", first: true, predicate: ["template"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
9565
+ <ng-template #template>
9566
+ <ng-content select="[before]"></ng-content>
9567
+ <input
9568
+ #field
9569
+ [id]="id"
9570
+ class="form-control"
9571
+ [type]="_type()"
9572
+ [name]="name()"
9573
+ [attr.max]="
9574
+ type() === 'number' && max() !== null && max() !== undefined ? max() : undefined
9575
+ "
9576
+ [attr.min]="
9577
+ type() === 'number' && min() !== null && min() !== undefined ? min() : undefined
9578
+ "
9579
+ [attr.step]="
9580
+ type() === 'number' && step() !== null && step() !== undefined ? step() : undefined
9581
+ "
9582
+ [attr.disabled]="isDisabled() ? true : undefined"
9583
+ [attr.readonly]="readonly() ? true : undefined"
9584
+ [attr.placeholder]="placeholder()"
9585
+ [class.form-control-lg]="size() === 'large'"
9586
+ [class.form-control-sm]="size() === 'small'"
9587
+ [value]="value || ''"
9588
+ (blur)="touch()"
9589
+ [ngClass]="{
9590
+ 'is-invalid': control?.touched && control?.invalid && enableValidation(),
9591
+ 'is-valid': control?.touched && control?.valid && enableValidation(),
9592
+ }"
9593
+ (input)="update($event.target)"
9594
+ />
9595
+ @if (!_extValidation() && showError()) {
9596
+ <rlb-input-validation [errors]="errors()" />
9597
+ }
9598
+ <ng-content select="[after]"></ng-content>
9599
+ </ng-template>
9600
+ `, isInline: true, dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InputValidationComponent, selector: "rlb-input-validation", inputs: ["errors"], outputs: ["errorsChange"] }] }); }
9614
9601
  }
9615
9602
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: InputComponent, decorators: [{
9616
9603
  type: Component,
9617
9604
  args: [{
9618
9605
  selector: 'rlb-input',
9619
- template: ` <ng-template #template>
9620
- <ng-content select="[before]"></ng-content>
9621
- <input
9622
- #field
9623
- [id]="id"
9624
- class="form-control"
9625
- [type]="_type()"
9626
- [name]="name()"
9627
- [attr.max]="
9628
- type() === 'number' && max() !== null && max() !== undefined
9629
- ? max()
9630
- : undefined
9631
- "
9632
- [attr.min]="
9633
- type() === 'number' && min() !== null && min() !== undefined
9634
- ? min()
9635
- : undefined
9636
- "
9637
- [attr.step]="
9638
- type() === 'number' && step() !== null && step() !== undefined
9639
- ? step()
9640
- : undefined
9641
- "
9642
- [attr.disabled]="isDisabled() ? true : undefined"
9643
- [attr.readonly]="readonly() ? true : undefined"
9644
- [attr.placeholder]="placeholder()"
9645
- [class.form-control-lg]="size() === 'large'"
9646
- [class.form-control-sm]="size() === 'small'"
9647
- [value]="value || ''"
9648
- (blur)="touch()"
9649
- [ngClass]="{
9650
- 'is-invalid':
9651
- control?.touched && control?.invalid && enableValidation(),
9652
- 'is-valid': control?.touched && control?.valid && enableValidation(),
9653
- }"
9654
- (input)="update($event.target)"
9655
- />
9656
- @if (!_extValidation() && showError()) {
9657
- <rlb-input-validation [errors]="errors()" />
9658
- }
9659
- <ng-content select="[after]"></ng-content>
9660
- </ng-template>`,
9606
+ template: `
9607
+ <ng-template #template>
9608
+ <ng-content select="[before]"></ng-content>
9609
+ <input
9610
+ #field
9611
+ [id]="id"
9612
+ class="form-control"
9613
+ [type]="_type()"
9614
+ [name]="name()"
9615
+ [attr.max]="
9616
+ type() === 'number' && max() !== null && max() !== undefined ? max() : undefined
9617
+ "
9618
+ [attr.min]="
9619
+ type() === 'number' && min() !== null && min() !== undefined ? min() : undefined
9620
+ "
9621
+ [attr.step]="
9622
+ type() === 'number' && step() !== null && step() !== undefined ? step() : undefined
9623
+ "
9624
+ [attr.disabled]="isDisabled() ? true : undefined"
9625
+ [attr.readonly]="readonly() ? true : undefined"
9626
+ [attr.placeholder]="placeholder()"
9627
+ [class.form-control-lg]="size() === 'large'"
9628
+ [class.form-control-sm]="size() === 'small'"
9629
+ [value]="value || ''"
9630
+ (blur)="touch()"
9631
+ [ngClass]="{
9632
+ 'is-invalid': control?.touched && control?.invalid && enableValidation(),
9633
+ 'is-valid': control?.touched && control?.valid && enableValidation(),
9634
+ }"
9635
+ (input)="update($event.target)"
9636
+ />
9637
+ @if (!_extValidation() && showError()) {
9638
+ <rlb-input-validation [errors]="errors()" />
9639
+ }
9640
+ <ng-content select="[after]"></ng-content>
9641
+ </ng-template>
9642
+ `,
9661
9643
  standalone: false,
9662
9644
  }]
9663
9645
  }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: UniqueIdService }, { type: i2$2.NgControl, decorators: [{