@basis-ng/primitives 0.0.1-alpha.131 → 0.0.1-alpha.132

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.
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, output, Component, inject, ElementRef, signal, model, computed, viewChildren, booleanAttribute, ChangeDetectionStrategy, contentChildren, effect, Injectable, contentChild, ViewEncapsulation, HostListener, Directive, linkedSignal, TemplateRef, ChangeDetectorRef, Pipe, afterRenderEffect, RendererFactory2, PLATFORM_ID } from '@angular/core';
3
3
  import { NgIcon, provideIcons } from '@ng-icons/core';
4
- import { lucideX, lucideLoaderCircle, lucideLoader, lucideGripVertical } from '@ng-icons/lucide';
4
+ import { lucideX, lucideChevronRight, lucideChevronLeft, lucideLoaderCircle, lucideLoader, lucideGripVertical } from '@ng-icons/lucide';
5
5
  import { GridCellWidget, Grid, GridRow, GridCell } from '@angular/aria/grid';
6
6
  import { ActiveDescendantKeyManager, CdkTrapFocus } from '@angular/cdk/a11y';
7
7
  import * as i1 from '@angular/cdk/listbox';
@@ -463,9 +463,11 @@ class Calendar {
463
463
  v.getDate() === date.getDate());
464
464
  }
465
465
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: Calendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
466
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: Calendar, isStandalone: true, selector: "b-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, weekdays: { classPropertyName: "weekdays", publicName: "weekdays", isSignal: true, isRequired: false, transformFunction: null }, weekStart: { classPropertyName: "weekStart", publicName: "weekStart", isSignal: true, isRequired: false, transformFunction: null }, months: { classPropertyName: "months", publicName: "months", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange", dateSelected: "dateSelected" }, viewQueries: [{ propertyName: "_cellWidgets", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
466
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: Calendar, isStandalone: true, selector: "b-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, weekdays: { classPropertyName: "weekdays", publicName: "weekdays", isSignal: true, isRequired: false, transformFunction: null }, weekStart: { classPropertyName: "weekStart", publicName: "weekStart", isSignal: true, isRequired: false, transformFunction: null }, months: { classPropertyName: "months", publicName: "months", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange", dateSelected: "dateSelected" }, providers: [provideIcons({ lucideChevronLeft, lucideChevronRight })], viewQueries: [{ propertyName: "_cellWidgets", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
467
467
  <header class="b-calendar-header">
468
- <button type="button" class="b-calendar-nav" (click)="prevMonth()">‹</button>
468
+ <button type="button" class="b-calendar-nav" (click)="prevMonth()">
469
+ <ng-icon name="lucideChevronLeft" size="20" />
470
+ </button>
469
471
  <button
470
472
  type="button"
471
473
  class="b-calendar-title"
@@ -480,7 +482,9 @@ class Calendar {
480
482
  {{ yearsGrid()[0] }} - {{ yearsGrid()[yearsGrid().length - 1] }}
481
483
  }
482
484
  </button>
483
- <button type="button" class="b-calendar-nav" (click)="nextMonth()">›</button>
485
+ <button type="button" class="b-calendar-nav" (click)="nextMonth()">
486
+ <ng-icon name="lucideChevronRight" size="20" />
487
+ </button>
484
488
  </header>
485
489
 
486
490
  @switch (viewMode()) {
@@ -568,16 +572,18 @@ class Calendar {
568
572
  </table>
569
573
  }
570
574
  }
571
- `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["onActivate", "onDeactivate"], exportAs: ["ngGridCellWidget"] }] });
575
+ `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["onActivate", "onDeactivate"], exportAs: ["ngGridCellWidget"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }] });
572
576
  }
573
577
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: Calendar, decorators: [{
574
578
  type: Component,
575
579
  args: [{
576
580
  selector: 'b-calendar',
577
- imports: [Grid, GridRow, GridCell, GridCellWidget],
581
+ imports: [Grid, GridRow, GridCell, GridCellWidget, NgIcon],
578
582
  template: `
579
583
  <header class="b-calendar-header">
580
- <button type="button" class="b-calendar-nav" (click)="prevMonth()">‹</button>
584
+ <button type="button" class="b-calendar-nav" (click)="prevMonth()">
585
+ <ng-icon name="lucideChevronLeft" size="20" />
586
+ </button>
581
587
  <button
582
588
  type="button"
583
589
  class="b-calendar-title"
@@ -592,7 +598,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
592
598
  {{ yearsGrid()[0] }} - {{ yearsGrid()[yearsGrid().length - 1] }}
593
599
  }
594
600
  </button>
595
- <button type="button" class="b-calendar-nav" (click)="nextMonth()">›</button>
601
+ <button type="button" class="b-calendar-nav" (click)="nextMonth()">
602
+ <ng-icon name="lucideChevronRight" size="20" />
603
+ </button>
596
604
  </header>
597
605
 
598
606
  @switch (viewMode()) {
@@ -681,6 +689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
681
689
  }
682
690
  }
683
691
  `,
692
+ providers: [provideIcons({ lucideChevronLeft, lucideChevronRight })],
684
693
  }]
685
694
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], dateSelected: [{ type: i0.Output, args: ["dateSelected"] }], weekdays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekdays", required: false }] }], weekStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStart", required: false }] }], months: [{ type: i0.Input, args: [{ isSignal: true, alias: "months", required: false }] }], _cellWidgets: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => GridCellWidget), { isSignal: true }] }] } });
686
695