@open-rlb/ng-bootstrap 3.1.29 → 3.1.31

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.
@@ -1672,7 +1672,7 @@ class BuilderComponent {
1672
1672
  if (component.name) {
1673
1673
  const componentType = this.registryService.get(component.name);
1674
1674
  const componentRef = this.component.viewContainerRef.createComponent(componentType);
1675
- componentRef.setInput('data', component.data);
1675
+ componentRef.instance.data = component.data;
1676
1676
  if (creationOptions?.setInstance === true) {
1677
1677
  componentRef.setInput(creationOptions?.instanceInputName || 'data-instance', componentRef.instance);
1678
1678
  }
@@ -1769,7 +1769,7 @@ class InnerModalService extends AbstractRegistryService {
1769
1769
  this.builders.push(builder);
1770
1770
  }
1771
1771
  removeBuilder(builderId) {
1772
- this.builders = this.builders.filter((_) => false);
1772
+ this.builders = this.builders.filter(_ => false);
1773
1773
  }
1774
1774
  getBuilder() {
1775
1775
  if (this.builders.length === 0) {
@@ -1786,15 +1786,15 @@ class InnerModalService extends AbstractRegistryService {
1786
1786
  if (Array.isArray(options)) {
1787
1787
  const modals = options
1788
1788
  .reverse()
1789
- .map((o) => o.modals)
1789
+ .map(o => o.modals)
1790
1790
  .flat();
1791
1791
  for (const modal of modals) {
1792
- Object.keys(modal).forEach((k) => this.add(k, modal[k]));
1792
+ Object.keys(modal).forEach(k => this.add(k, modal[k]));
1793
1793
  }
1794
1794
  }
1795
1795
  else {
1796
1796
  if (options && options.modals) {
1797
- Object.keys(options.modals).forEach((k) => this.add(k, options.modals[k]));
1797
+ Object.keys(options.modals).forEach(k => this.add(k, options.modals[k]));
1798
1798
  }
1799
1799
  }
1800
1800
  }
@@ -1802,13 +1802,17 @@ class InnerModalService extends AbstractRegistryService {
1802
1802
  const modalId = `rlb-modal${this.uniqueIdService.id}`;
1803
1803
  const modal = this.getBuilder().buildComponent({
1804
1804
  name,
1805
- data,
1805
+ data: signal(data),
1806
1806
  }, {
1807
1807
  inputs: { id: modalId },
1808
1808
  setInstance: true,
1809
1809
  }, options);
1810
- this.allModals.push({ id: modalId, modal: modal, subject: new Subject() });
1811
- const subject = this.allModals.find((d) => d.id === modalId)?.subject;
1810
+ this.allModals.push({
1811
+ id: modalId,
1812
+ modal: modal,
1813
+ subject: new Subject(),
1814
+ });
1815
+ const subject = this.allModals.find(d => d.id === modalId)?.subject;
1812
1816
  if (!subject) {
1813
1817
  return of({ reason: 'cancel', result: undefined });
1814
1818
  }
@@ -1816,10 +1820,10 @@ class InnerModalService extends AbstractRegistryService {
1816
1820
  }
1817
1821
  eventModal(event, reason, id, result) {
1818
1822
  if (event === 'hidden') {
1819
- const modal = this.allModals.find((d) => d.id === id);
1823
+ const modal = this.allModals.find(d => d.id === id);
1820
1824
  if (modal) {
1821
1825
  modal.modal.destroy();
1822
- this.allModals = this.allModals.filter((d) => d.id !== id);
1826
+ this.allModals = this.allModals.filter(d => d.id !== id);
1823
1827
  }
1824
1828
  modal?.subject.next({ reason, result });
1825
1829
  modal?.subject.complete();
@@ -2503,7 +2507,7 @@ class InnerToastService extends AbstractRegistryService {
2503
2507
  const toastId = `rlb-toast${this.uniqueIdService.id}`;
2504
2508
  const toast = this.getBuilder(builderId).buildComponent({
2505
2509
  name: componentName,
2506
- data,
2510
+ data: signal(data),
2507
2511
  }, {
2508
2512
  inputs: { id: toastId },
2509
2513
  setInstance: true,
@@ -4608,6 +4612,8 @@ class NavbarComponent {
4608
4612
  }
4609
4613
 
4610
4614
  <ng-content select="[rlb-navbar-brand], [rlb-button][toggle], rlb-navbar-separator" />
4615
+ <!-- FOR CUSTOM ELEMENTS -->
4616
+ <ng-content select="[rlb-custom-navbar-items]" />
4611
4617
  @if (enableDropdownToggler()) {
4612
4618
  <button
4613
4619
  class="navbar-toggler"
@@ -4629,8 +4635,6 @@ class NavbarComponent {
4629
4635
  <ng-content
4630
4636
  select="rlb-navbar-items, rlb-navbar-form, rlb-navbar-text, rlb-navbar-separator"
4631
4637
  />
4632
- <!-- FOR CUSTOM ELEMENTS -->
4633
- <ng-content select="[rlb-custom-navbar-items]" />
4634
4638
  </div>
4635
4639
  </div>
4636
4640
  </div>
@@ -4662,6 +4666,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
4662
4666
  }
4663
4667
 
4664
4668
  <ng-content select="[rlb-navbar-brand], [rlb-button][toggle], rlb-navbar-separator" />
4669
+ <!-- FOR CUSTOM ELEMENTS -->
4670
+ <ng-content select="[rlb-custom-navbar-items]" />
4665
4671
  @if (enableDropdownToggler()) {
4666
4672
  <button
4667
4673
  class="navbar-toggler"
@@ -4683,8 +4689,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
4683
4689
  <ng-content
4684
4690
  select="rlb-navbar-items, rlb-navbar-form, rlb-navbar-text, rlb-navbar-separator"
4685
4691
  />
4686
- <!-- FOR CUSTOM ELEMENTS -->
4687
- <ng-content select="[rlb-custom-navbar-items]" />
4688
4692
  </div>
4689
4693
  </div>
4690
4694
  </div>
@@ -11435,34 +11439,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
11435
11439
 
11436
11440
  class CalendarToastComponent {
11437
11441
  constructor() {
11438
- this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
11439
11442
  this.valid = signal(true, ...(ngDevMode ? [{ debugName: "valid" }] : /* istanbul ignore next */ []));
11440
11443
  }
11441
11444
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CalendarToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11442
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CalendarToastComponent, isStandalone: true, selector: "ng-component", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, hostDirectives: [{ directive: ToastDirective, inputs: ["id", "id", "data-instance", "data-instance", "data-options", "data-options"] }], ngImport: i0, template: `
11445
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: CalendarToastComponent, isStandalone: true, selector: "ng-component", hostDirectives: [{ directive: ToastDirective, inputs: ["id", "id", "data-instance", "data-instance", "data-options", "data-options"] }], ngImport: i0, template: `
11443
11446
  <div class="toast-header">
11444
- <strong class="me-auto">{{data().title}}</strong>
11447
+ <strong class="me-auto">{{ data().title }}</strong>
11445
11448
  @if (data().subtitle) {
11446
- <small> {{data().subtitle }}</small>
11449
+ <small>{{ data().subtitle }}</small>
11447
11450
  }
11448
- <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
11451
+ <button
11452
+ type="button"
11453
+ class="btn-close"
11454
+ data-bs-dismiss="toast"
11455
+ aria-label="Close"
11456
+ ></button>
11449
11457
  </div>
11450
- <div class="toast-body">{{data().content}}</div>
11451
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: RlbBootstrapModule }] }); }
11458
+ <div class="toast-body">{{ data().content }}</div>
11459
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: RlbBootstrapModule }] }); }
11452
11460
  }
11453
11461
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CalendarToastComponent, decorators: [{
11454
11462
  type: Component,
11455
11463
  args: [{
11456
11464
  template: `
11457
11465
  <div class="toast-header">
11458
- <strong class="me-auto">{{data().title}}</strong>
11466
+ <strong class="me-auto">{{ data().title }}</strong>
11459
11467
  @if (data().subtitle) {
11460
- <small> {{data().subtitle }}</small>
11468
+ <small>{{ data().subtitle }}</small>
11461
11469
  }
11462
- <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
11470
+ <button
11471
+ type="button"
11472
+ class="btn-close"
11473
+ data-bs-dismiss="toast"
11474
+ aria-label="Close"
11475
+ ></button>
11463
11476
  </div>
11464
- <div class="toast-body">{{data().content}}</div>
11465
- `,
11477
+ <div class="toast-body">{{ data().content }}</div>
11478
+ `,
11466
11479
  hostDirectives: [
11467
11480
  {
11468
11481
  directive: ToastDirective,
@@ -11470,9 +11483,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
11470
11483
  },
11471
11484
  ],
11472
11485
  standalone: true,
11473
- imports: [RlbBootstrapModule]
11486
+ imports: [RlbBootstrapModule],
11474
11487
  }]
11475
- }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }] } });
11488
+ }] });
11476
11489
 
11477
11490
  /*
11478
11491
  * Public API Surface of ng-bootstrap