@spartan-ng/brain 0.0.1-alpha.488 → 0.0.1-alpha.490

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.
Files changed (80) hide show
  1. package/avatar/lib/brn-avatar.component.d.ts +2 -2
  2. package/calendar/lib/brn-calendar-cell-button.directive.d.ts +2 -2
  3. package/calendar/lib/brn-calendar-grid.directive.d.ts +1 -1
  4. package/calendar/lib/brn-calendar-next-button.directive.d.ts +1 -1
  5. package/calendar/lib/brn-calendar-previous-button.directive.d.ts +1 -1
  6. package/calendar/lib/brn-calendar-week.directive.d.ts +1 -1
  7. package/calendar/lib/brn-calendar-weekday.directive.d.ts +1 -1
  8. package/calendar/lib/brn-calendar.directive.d.ts +3 -3
  9. package/calendar/lib/mode/brn-calendar-multiple.directive.d.ts +3 -3
  10. package/checkbox/lib/brn-checkbox.component.d.ts +3 -3
  11. package/collapsible/lib/brn-collapsible-content.component.d.ts +3 -3
  12. package/collapsible/lib/brn-collapsible-trigger.directive.d.ts +1 -1
  13. package/command/lib/brn-command-group.directive.d.ts +1 -1
  14. package/command/lib/brn-command-item.directive.d.ts +1 -1
  15. package/dialog/lib/brn-dialog-description.directive.d.ts +1 -1
  16. package/dialog/lib/brn-dialog-title.directive.d.ts +1 -1
  17. package/dialog/lib/brn-dialog.component.d.ts +1 -1
  18. package/fesm2022/spartan-ng-brain-avatar.mjs +4 -4
  19. package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -1
  20. package/fesm2022/spartan-ng-brain-calendar.mjs +80 -80
  21. package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -1
  22. package/fesm2022/spartan-ng-brain-checkbox.mjs +30 -30
  23. package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
  24. package/fesm2022/spartan-ng-brain-collapsible.mjs +22 -22
  25. package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -1
  26. package/fesm2022/spartan-ng-brain-command.mjs +10 -9
  27. package/fesm2022/spartan-ng-brain-command.mjs.map +1 -1
  28. package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -1
  29. package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -1
  30. package/fesm2022/spartan-ng-brain-input-otp.mjs +18 -18
  31. package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -1
  32. package/fesm2022/spartan-ng-brain-menu.mjs.map +1 -1
  33. package/fesm2022/spartan-ng-brain-progress.mjs +8 -8
  34. package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -1
  35. package/fesm2022/spartan-ng-brain-radio-group.mjs +36 -33
  36. package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -1
  37. package/fesm2022/spartan-ng-brain-select.mjs +44 -43
  38. package/fesm2022/spartan-ng-brain-select.mjs.map +1 -1
  39. package/fesm2022/spartan-ng-brain-separator.mjs +5 -5
  40. package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -1
  41. package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -1
  42. package/fesm2022/spartan-ng-brain-slider.mjs +34 -35
  43. package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -1
  44. package/fesm2022/spartan-ng-brain-switch.mjs +28 -28
  45. package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -1
  46. package/fesm2022/spartan-ng-brain-tabs.mjs +51 -50
  47. package/fesm2022/spartan-ng-brain-tabs.mjs.map +1 -1
  48. package/fesm2022/spartan-ng-brain-toggle-group.mjs +13 -13
  49. package/fesm2022/spartan-ng-brain-toggle-group.mjs.map +1 -1
  50. package/fesm2022/spartan-ng-brain-toggle.mjs +4 -4
  51. package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -1
  52. package/fesm2022/spartan-ng-brain-tooltip.mjs +31 -31
  53. package/fesm2022/spartan-ng-brain-tooltip.mjs.map +1 -1
  54. package/hover-card/lib/brn-hover-card-content.service.d.ts +5 -5
  55. package/input-otp/lib/brn-input-otp-slot.component.d.ts +2 -2
  56. package/input-otp/lib/brn-input-otp.component.d.ts +2 -2
  57. package/menu/lib/brn-context-menu-trigger.directive.d.ts +2 -2
  58. package/package.json +1 -1
  59. package/progress/lib/brn-progress-indicator.component.d.ts +1 -1
  60. package/progress/lib/brn-progress.component.d.ts +2 -2
  61. package/radio-group/lib/brn-radio-group.directive.d.ts +1 -1
  62. package/radio-group/lib/brn-radio.component.d.ts +6 -6
  63. package/select/lib/brn-select-content.component.d.ts +6 -6
  64. package/select/lib/brn-select-value.component.d.ts +4 -4
  65. package/select/lib/brn-select.component.d.ts +4 -4
  66. package/separator/lib/brn-separator.component.d.ts +2 -2
  67. package/sheet/lib/brn-sheet-trigger.directive.d.ts +1 -1
  68. package/slider/lib/brn-slider-range.directive.d.ts +1 -1
  69. package/slider/lib/brn-slider-thumb.directive.d.ts +2 -2
  70. package/slider/lib/brn-slider-track.directive.d.ts +1 -1
  71. package/slider/lib/brn-slider.directive.d.ts +3 -3
  72. package/switch/lib/brn-switch.component.d.ts +6 -5
  73. package/tabs/lib/brn-tabs-content.directive.d.ts +2 -2
  74. package/tabs/lib/brn-tabs-paginated-list.directive.d.ts +12 -12
  75. package/tabs/lib/brn-tabs-trigger.directive.d.ts +2 -2
  76. package/tabs/lib/brn-tabs.directive.d.ts +2 -2
  77. package/toggle/lib/brn-toggle.directive.d.ts +1 -1
  78. package/toggle-group/lib/brn-toggle-item.directive.d.ts +2 -2
  79. package/tooltip/lib/brn-tooltip-content.component.d.ts +5 -5
  80. package/tooltip/lib/brn-tooltip-trigger.directive.d.ts +5 -5
@@ -15,25 +15,25 @@ function injectBrnCalendar() {
15
15
 
16
16
  class BrnCalendarCellButtonDirective {
17
17
  /** Access the date adapter */
18
- dateAdapter = injectDateAdapter();
18
+ _dateAdapter = injectDateAdapter();
19
19
  /** Access the calendar component */
20
- calendar = injectBrnCalendar();
20
+ _calendar = injectBrnCalendar();
21
21
  /** Access the element ref */
22
22
  _elementRef = inject(ElementRef);
23
23
  /** The date this cell represents */
24
24
  date = input.required();
25
25
  /** Whether this date is currently selected */
26
- selected = computed(() => this.calendar.isSelected(this.date()));
26
+ selected = computed(() => this._calendar.isSelected(this.date()));
27
27
  /** Whether this date is focusable */
28
- focusable = computed(() => this.dateAdapter.isSameDay(this.calendar.focusedDate(), this.date()));
28
+ focusable = computed(() => this._dateAdapter.isSameDay(this._calendar.focusedDate(), this.date()));
29
29
  outside = computed(() => {
30
- const focusedDate = this.calendar.focusedDate();
31
- return !this.dateAdapter.isSameMonth(this.date(), focusedDate);
30
+ const focusedDate = this._calendar.focusedDate();
31
+ return !this._dateAdapter.isSameMonth(this.date(), focusedDate);
32
32
  });
33
33
  /** Whether this date is today */
34
- today = computed(() => this.dateAdapter.isSameDay(this.date(), this.dateAdapter.now()));
34
+ today = computed(() => this._dateAdapter.isSameDay(this.date(), this._dateAdapter.now()));
35
35
  /** Whether this date is disabled */
36
- disabled = computed(() => this.calendar.isDateDisabled(this.date()) || this.calendar.disabled());
36
+ disabled = computed(() => this._calendar.isDateDisabled(this.date()) || this._calendar.disabled());
37
37
  /**
38
38
  * Focus the previous cell.
39
39
  */
@@ -41,10 +41,10 @@ class BrnCalendarCellButtonDirective {
41
41
  event.preventDefault();
42
42
  event.stopPropagation();
43
43
  // in rtl, the arrow keys are reversed.
44
- const targetDate = this.dateAdapter.add(this.calendar.focusedDate(), {
44
+ const targetDate = this._dateAdapter.add(this._calendar.focusedDate(), {
45
45
  days: this.getDirection() === 'rtl' ? 1 : -1,
46
46
  });
47
- this.calendar.setFocusedDate(targetDate);
47
+ this._calendar.setFocusedDate(targetDate);
48
48
  }
49
49
  /**
50
50
  * Focus the next cell.
@@ -52,10 +52,10 @@ class BrnCalendarCellButtonDirective {
52
52
  focusNext(event) {
53
53
  event.preventDefault();
54
54
  event.stopPropagation();
55
- const targetDate = this.dateAdapter.add(this.calendar.focusedDate(), {
55
+ const targetDate = this._dateAdapter.add(this._calendar.focusedDate(), {
56
56
  days: this.getDirection() === 'rtl' ? -1 : 1,
57
57
  });
58
- this.calendar.setFocusedDate(targetDate);
58
+ this._calendar.setFocusedDate(targetDate);
59
59
  }
60
60
  /**
61
61
  * Focus the above cell.
@@ -63,7 +63,7 @@ class BrnCalendarCellButtonDirective {
63
63
  focusAbove(event) {
64
64
  event.preventDefault();
65
65
  event.stopPropagation();
66
- this.calendar.setFocusedDate(this.dateAdapter.subtract(this.calendar.focusedDate(), { days: 7 }));
66
+ this._calendar.setFocusedDate(this._dateAdapter.subtract(this._calendar.focusedDate(), { days: 7 }));
67
67
  }
68
68
  /**
69
69
  * Focus the below cell.
@@ -71,7 +71,7 @@ class BrnCalendarCellButtonDirective {
71
71
  focusBelow(event) {
72
72
  event.preventDefault();
73
73
  event.stopPropagation();
74
- this.calendar.setFocusedDate(this.dateAdapter.add(this.calendar.focusedDate(), { days: 7 }));
74
+ this._calendar.setFocusedDate(this._dateAdapter.add(this._calendar.focusedDate(), { days: 7 }));
75
75
  }
76
76
  /**
77
77
  * Focus the first date of the month.
@@ -79,7 +79,7 @@ class BrnCalendarCellButtonDirective {
79
79
  focusFirst(event) {
80
80
  event.preventDefault();
81
81
  event.stopPropagation();
82
- this.calendar.setFocusedDate(this.dateAdapter.startOfMonth(this.calendar.focusedDate()));
82
+ this._calendar.setFocusedDate(this._dateAdapter.startOfMonth(this._calendar.focusedDate()));
83
83
  }
84
84
  /**
85
85
  * Focus the last date of the month.
@@ -87,7 +87,7 @@ class BrnCalendarCellButtonDirective {
87
87
  focusLast(event) {
88
88
  event.preventDefault();
89
89
  event.stopPropagation();
90
- this.calendar.setFocusedDate(this.dateAdapter.endOfMonth(this.calendar.focusedDate()));
90
+ this._calendar.setFocusedDate(this._dateAdapter.endOfMonth(this._calendar.focusedDate()));
91
91
  }
92
92
  /**
93
93
  * Focus the same date in the previous month.
@@ -95,16 +95,16 @@ class BrnCalendarCellButtonDirective {
95
95
  focusPreviousMonth(event) {
96
96
  event.preventDefault();
97
97
  event.stopPropagation();
98
- const date = this.dateAdapter.getDate(this.calendar.focusedDate());
99
- let previousMonthTarget = this.dateAdapter.startOfMonth(this.calendar.focusedDate());
100
- previousMonthTarget = this.dateAdapter.subtract(previousMonthTarget, { months: 1 });
101
- const lastDay = this.dateAdapter.endOfMonth(previousMonthTarget);
98
+ const date = this._dateAdapter.getDate(this._calendar.focusedDate());
99
+ let previousMonthTarget = this._dateAdapter.startOfMonth(this._calendar.focusedDate());
100
+ previousMonthTarget = this._dateAdapter.subtract(previousMonthTarget, { months: 1 });
101
+ const lastDay = this._dateAdapter.endOfMonth(previousMonthTarget);
102
102
  // if we are on a date that does not exist in the previous month, we should focus the last day of the month.
103
- if (date > this.dateAdapter.getDate(lastDay)) {
104
- this.calendar.setFocusedDate(lastDay);
103
+ if (date > this._dateAdapter.getDate(lastDay)) {
104
+ this._calendar.setFocusedDate(lastDay);
105
105
  }
106
106
  else {
107
- this.calendar.setFocusedDate(this.dateAdapter.set(previousMonthTarget, { day: date }));
107
+ this._calendar.setFocusedDate(this._dateAdapter.set(previousMonthTarget, { day: date }));
108
108
  }
109
109
  }
110
110
  /**
@@ -113,16 +113,16 @@ class BrnCalendarCellButtonDirective {
113
113
  focusNextMonth(event) {
114
114
  event.preventDefault();
115
115
  event.stopPropagation();
116
- const date = this.dateAdapter.getDate(this.calendar.focusedDate());
117
- let nextMonthTarget = this.dateAdapter.startOfMonth(this.calendar.focusedDate());
118
- nextMonthTarget = this.dateAdapter.add(nextMonthTarget, { months: 1 });
119
- const lastDay = this.dateAdapter.endOfMonth(nextMonthTarget);
116
+ const date = this._dateAdapter.getDate(this._calendar.focusedDate());
117
+ let nextMonthTarget = this._dateAdapter.startOfMonth(this._calendar.focusedDate());
118
+ nextMonthTarget = this._dateAdapter.add(nextMonthTarget, { months: 1 });
119
+ const lastDay = this._dateAdapter.endOfMonth(nextMonthTarget);
120
120
  // if we are on a date that does not exist in the next month, we should focus the last day of the month.
121
- if (date > this.dateAdapter.getDate(lastDay)) {
122
- this.calendar.setFocusedDate(lastDay);
121
+ if (date > this._dateAdapter.getDate(lastDay)) {
122
+ this._calendar.setFocusedDate(lastDay);
123
123
  }
124
124
  else {
125
- this.calendar.setFocusedDate(this.dateAdapter.set(nextMonthTarget, { day: date }));
125
+ this._calendar.setFocusedDate(this._dateAdapter.set(nextMonthTarget, { day: date }));
126
126
  }
127
127
  }
128
128
  /**
@@ -135,7 +135,7 @@ class BrnCalendarCellButtonDirective {
135
135
  this._elementRef.nativeElement.focus();
136
136
  }
137
137
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarCellButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
138
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.8", type: BrnCalendarCellButtonDirective, isStandalone: true, selector: "button[brnCalendarCellButton]", inputs: { date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "role": "gridcell", "type": "button" }, listeners: { "click": "calendar.selectDate(date())", "keydown.arrowLeft": "focusPrevious($event)", "keydown.arrowRight": "focusNext($event)", "keydown.arrowUp": "focusAbove($event)", "keydown.arrowDown": "focusBelow($event)", "keydown.home": "focusFirst($event)", "keydown.end": "focusLast($event)", "keydown.pageUp": "focusPreviousMonth($event)", "keydown.pageDown": "focusNextMonth($event)" }, properties: { "tabindex": "focusable() ? 0 : -1", "attr.data-outside": "outside() ? '' : null", "attr.data-today": "today() && !selected() ? '' : null", "attr.data-selected": "selected() ? '' : null", "attr.data-disabled": "disabled() ? '' : null", "attr.aria-selected": "selected() ? 'true' : null", "attr.aria-disabled": "disabled() ? 'true' : null", "disabled": "disabled()" } }, ngImport: i0 });
138
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.8", type: BrnCalendarCellButtonDirective, isStandalone: true, selector: "button[brnCalendarCellButton]", inputs: { date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "role": "gridcell", "type": "button" }, listeners: { "click": "_calendar.selectDate(date())", "keydown.arrowLeft": "focusPrevious($event)", "keydown.arrowRight": "focusNext($event)", "keydown.arrowUp": "focusAbove($event)", "keydown.arrowDown": "focusBelow($event)", "keydown.home": "focusFirst($event)", "keydown.end": "focusLast($event)", "keydown.pageUp": "focusPreviousMonth($event)", "keydown.pageDown": "focusNextMonth($event)" }, properties: { "tabindex": "focusable() ? 0 : -1", "attr.data-outside": "outside() ? '' : null", "attr.data-today": "today() && !selected() ? '' : null", "attr.data-selected": "selected() ? '' : null", "attr.data-disabled": "disabled() ? '' : null", "attr.aria-selected": "selected() ? 'true' : null", "attr.aria-disabled": "disabled() ? 'true' : null", "disabled": "disabled()" } }, ngImport: i0 });
139
139
  }
140
140
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarCellButtonDirective, decorators: [{
141
141
  type: Directive,
@@ -152,7 +152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
152
152
  '[attr.aria-selected]': "selected() ? 'true' : null",
153
153
  '[attr.aria-disabled]': "disabled() ? 'true' : null",
154
154
  '[disabled]': 'disabled()',
155
- '(click)': 'calendar.selectDate(date())',
155
+ '(click)': '_calendar.selectDate(date())',
156
156
  '(keydown.arrowLeft)': 'focusPrevious($event)',
157
157
  '(keydown.arrowRight)': 'focusNext($event)',
158
158
  '(keydown.arrowUp)': 'focusAbove($event)',
@@ -181,9 +181,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
181
181
 
182
182
  class BrnCalendarGridDirective {
183
183
  /** Access the calendar component */
184
- calendar = injectBrnCalendar();
184
+ _calendar = injectBrnCalendar();
185
185
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarGridDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
186
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: BrnCalendarGridDirective, isStandalone: true, selector: "[brnCalendarGrid]", host: { attributes: { "role": "grid" }, properties: { "attr.aria-labelledby": "calendar.header()?.id()" } }, ngImport: i0 });
186
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: BrnCalendarGridDirective, isStandalone: true, selector: "[brnCalendarGrid]", host: { attributes: { "role": "grid" }, properties: { "attr.aria-labelledby": "_calendar.header()?.id()" } }, ngImport: i0 });
187
187
  }
188
188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarGridDirective, decorators: [{
189
189
  type: Directive,
@@ -191,7 +191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
191
191
  selector: '[brnCalendarGrid]',
192
192
  host: {
193
193
  role: 'grid',
194
- '[attr.aria-labelledby]': 'calendar.header()?.id()',
194
+ '[attr.aria-labelledby]': '_calendar.header()?.id()',
195
195
  },
196
196
  }]
197
197
  }] });
@@ -253,7 +253,7 @@ class BrnCalendarNextButtonDirective {
253
253
  /** Access the date adapter */
254
254
  _dateAdapter = injectDateAdapter();
255
255
  /** Access the calendar i18n */
256
- i18n = injectBrnCalendarI18n();
256
+ _i18n = injectBrnCalendarI18n();
257
257
  /** Focus the previous month */
258
258
  focusPreviousMonth() {
259
259
  const targetDate = this._dateAdapter.add(this._calendar.state().focusedDate(), { months: 1 });
@@ -267,7 +267,7 @@ class BrnCalendarNextButtonDirective {
267
267
  this._calendar.state().focusedDate.set(targetDate);
268
268
  }
269
269
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarNextButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
270
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: BrnCalendarNextButtonDirective, isStandalone: true, selector: "[brnCalendarNextButton]", host: { attributes: { "type": "button" }, listeners: { "click": "focusPreviousMonth()" }, properties: { "attr.aria-label": "i18n.labelNext()" } }, ngImport: i0 });
270
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: BrnCalendarNextButtonDirective, isStandalone: true, selector: "[brnCalendarNextButton]", host: { attributes: { "type": "button" }, listeners: { "click": "focusPreviousMonth()" }, properties: { "attr.aria-label": "_i18n.labelNext()" } }, ngImport: i0 });
271
271
  }
272
272
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarNextButtonDirective, decorators: [{
273
273
  type: Directive,
@@ -275,7 +275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
275
275
  selector: '[brnCalendarNextButton]',
276
276
  host: {
277
277
  type: 'button',
278
- '[attr.aria-label]': 'i18n.labelNext()',
278
+ '[attr.aria-label]': '_i18n.labelNext()',
279
279
  },
280
280
  }]
281
281
  }], propDecorators: { focusPreviousMonth: [{
@@ -289,7 +289,7 @@ class BrnCalendarPreviousButtonDirective {
289
289
  /** Access the date adapter */
290
290
  _dateAdapter = injectDateAdapter();
291
291
  /** Access the calendar i18n */
292
- i18n = injectBrnCalendarI18n();
292
+ _i18n = injectBrnCalendarI18n();
293
293
  /** Focus the previous month */
294
294
  focusPreviousMonth() {
295
295
  const targetDate = this._dateAdapter.subtract(this._calendar.state().focusedDate(), { months: 1 });
@@ -303,7 +303,7 @@ class BrnCalendarPreviousButtonDirective {
303
303
  this._calendar.state().focusedDate.set(targetDate);
304
304
  }
305
305
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarPreviousButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
306
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: BrnCalendarPreviousButtonDirective, isStandalone: true, selector: "[brnCalendarPreviousButton]", host: { attributes: { "type": "button" }, listeners: { "click": "focusPreviousMonth()" }, properties: { "attr.aria-label": "i18n.labelPrevious()" } }, ngImport: i0 });
306
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.8", type: BrnCalendarPreviousButtonDirective, isStandalone: true, selector: "[brnCalendarPreviousButton]", host: { attributes: { "type": "button" }, listeners: { "click": "focusPreviousMonth()" }, properties: { "attr.aria-label": "_i18n.labelPrevious()" } }, ngImport: i0 });
307
307
  }
308
308
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarPreviousButtonDirective, decorators: [{
309
309
  type: Directive,
@@ -311,7 +311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
311
311
  selector: '[brnCalendarPreviousButton]',
312
312
  host: {
313
313
  type: 'button',
314
- '[attr.aria-label]': 'i18n.labelPrevious()',
314
+ '[attr.aria-label]': '_i18n.labelPrevious()',
315
315
  },
316
316
  }]
317
317
  }], propDecorators: { focusPreviousMonth: [{
@@ -329,7 +329,7 @@ class BrnCalendarWeekDirective {
329
329
  /** Access the template ref */
330
330
  _templateRef = inject(TemplateRef);
331
331
  // get the weeks to display.
332
- weeks = computed(() => {
332
+ _weeks = computed(() => {
333
333
  const days = this._calendar.days();
334
334
  const weeks = [];
335
335
  for (let i = 0; i < days.length; i += 7) {
@@ -347,7 +347,7 @@ class BrnCalendarWeekDirective {
347
347
  constructor() {
348
348
  // this should use `afterRenderEffect` but it's not available in the current version
349
349
  effect(() => {
350
- const weeks = this.weeks();
350
+ const weeks = this._weeks();
351
351
  untracked(() => this._renderWeeks(weeks));
352
352
  });
353
353
  }
@@ -394,7 +394,7 @@ class BrnCalendarWeekdayDirective {
394
394
  /** Access the template ref */
395
395
  _templateRef = inject(TemplateRef);
396
396
  /** Get the days of the week to display in the header. */
397
- weekdays = computed(() => this._calendar.days().slice(0, 7));
397
+ _weekdays = computed(() => this._calendar.days().slice(0, 7));
398
398
  /** Store the view refs */
399
399
  _viewRefs = [];
400
400
  // Make sure the template checker knows the type of the context with which the
@@ -406,7 +406,7 @@ class BrnCalendarWeekdayDirective {
406
406
  // Create a new view for each day
407
407
  effect(() => {
408
408
  // Get the weekdays to display
409
- const weekdays = this.weekdays();
409
+ const weekdays = this._weekdays();
410
410
  // Render the weekdays
411
411
  untracked(() => this._renderWeekdays(weekdays));
412
412
  });
@@ -444,7 +444,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
444
444
 
445
445
  class BrnCalendarDirective {
446
446
  /** Access the date adapter */
447
- dateAdapter = injectDateAdapter();
447
+ _dateAdapter = injectDateAdapter();
448
448
  /** Access the change detector */
449
449
  _changeDetector = inject(ChangeDetectorRef);
450
450
  /** Access the injector */
@@ -470,7 +470,7 @@ class BrnCalendarDirective {
470
470
  /** @internal Access the header */
471
471
  header = contentChild(BrnCalendarHeaderDirective);
472
472
  /** Store the cells */
473
- cells = contentChildren(BrnCalendarCellButtonDirective, {
473
+ _cells = contentChildren(BrnCalendarCellButtonDirective, {
474
474
  descendants: true,
475
475
  });
476
476
  /**
@@ -478,7 +478,7 @@ class BrnCalendarDirective {
478
478
  * The internal state of the component.
479
479
  */
480
480
  state = computed(() => ({
481
- focusedDate: signal(this.constrainDate(this.defaultFocusedDate() ?? this.date() ?? this.dateAdapter.now())),
481
+ focusedDate: signal(this.constrainDate(this.defaultFocusedDate() ?? this.date() ?? this._dateAdapter.now())),
482
482
  }));
483
483
  /**
484
484
  * The focused date.
@@ -493,21 +493,21 @@ class BrnCalendarDirective {
493
493
  const month = this.state().focusedDate();
494
494
  const days = [];
495
495
  // Get the first and last day of the month.
496
- let firstDay = this.dateAdapter.startOfMonth(month);
497
- let lastDay = this.dateAdapter.endOfMonth(month);
496
+ let firstDay = this._dateAdapter.startOfMonth(month);
497
+ let lastDay = this._dateAdapter.endOfMonth(month);
498
498
  // we need to subtract until we get the to starting day before or on the start of the month.
499
- while (this.dateAdapter.getDay(firstDay) !== weekStartsOn) {
500
- firstDay = this.dateAdapter.subtract(firstDay, { days: 1 });
499
+ while (this._dateAdapter.getDay(firstDay) !== weekStartsOn) {
500
+ firstDay = this._dateAdapter.subtract(firstDay, { days: 1 });
501
501
  }
502
502
  const weekEndsOn = (weekStartsOn + 6) % 7;
503
503
  // we need to add until we get to the ending day after or on the end of the month.
504
- while (this.dateAdapter.getDay(lastDay) !== weekEndsOn) {
505
- lastDay = this.dateAdapter.add(lastDay, { days: 1 });
504
+ while (this._dateAdapter.getDay(lastDay) !== weekEndsOn) {
505
+ lastDay = this._dateAdapter.add(lastDay, { days: 1 });
506
506
  }
507
507
  // collect all the days to display.
508
508
  while (firstDay <= lastDay) {
509
509
  days.push(firstDay);
510
- firstDay = this.dateAdapter.add(firstDay, { days: 1 });
510
+ firstDay = this._dateAdapter.add(firstDay, { days: 1 });
511
511
  }
512
512
  return days;
513
513
  });
@@ -520,11 +520,11 @@ class BrnCalendarDirective {
520
520
  return date;
521
521
  }
522
522
  // If there is a min and the date is before the min, return the min.
523
- if (min && this.dateAdapter.isBefore(date, this.dateAdapter.startOfDay(min))) {
523
+ if (min && this._dateAdapter.isBefore(date, this._dateAdapter.startOfDay(min))) {
524
524
  return min;
525
525
  }
526
526
  // If there is a max and the date is after the max, return the max.
527
- if (max && this.dateAdapter.isAfter(date, this.dateAdapter.endOfDay(max))) {
527
+ if (max && this._dateAdapter.isAfter(date, this._dateAdapter.endOfDay(max))) {
528
528
  return max;
529
529
  }
530
530
  // Return the date.
@@ -539,10 +539,10 @@ class BrnCalendarDirective {
539
539
  // if the date is outside the min and max range
540
540
  const min = this.min();
541
541
  const max = this.max();
542
- if (min && this.dateAdapter.isBefore(date, this.dateAdapter.startOfDay(min))) {
542
+ if (min && this._dateAdapter.isBefore(date, this._dateAdapter.startOfDay(min))) {
543
543
  return true;
544
544
  }
545
- if (max && this.dateAdapter.isAfter(date, this.dateAdapter.endOfDay(max))) {
545
+ if (max && this._dateAdapter.isAfter(date, this._dateAdapter.endOfDay(max))) {
546
546
  return true;
547
547
  }
548
548
  // if this specific date is disabled
@@ -554,7 +554,7 @@ class BrnCalendarDirective {
554
554
  }
555
555
  isSelected(date) {
556
556
  const selected = this.date();
557
- return selected !== undefined && this.dateAdapter.isSameDay(date, selected);
557
+ return selected !== undefined && this._dateAdapter.isSameDay(date, selected);
558
558
  }
559
559
  selectDate(date) {
560
560
  if (this.isSelected(date)) {
@@ -576,7 +576,7 @@ class BrnCalendarDirective {
576
576
  afterNextRender({
577
577
  write: () => {
578
578
  // focus the cell with the target date.
579
- const cell = this.cells().find((c) => this.dateAdapter.isSameDay(c.date(), date));
579
+ const cell = this._cells().find((c) => this._dateAdapter.isSameDay(c.date(), date));
580
580
  if (cell) {
581
581
  cell.focus();
582
582
  }
@@ -588,7 +588,7 @@ class BrnCalendarDirective {
588
588
  this._changeDetector.detectChanges();
589
589
  }
590
590
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
591
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.8", type: BrnCalendarDirective, isStandalone: true, selector: "[brnCalendar]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "dateDisabled", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedDate: { classPropertyName: "defaultFocusedDate", publicName: "defaultFocusedDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { date: "dateChange" }, providers: [provideBrnCalendar(BrnCalendarDirective)], queries: [{ propertyName: "header", first: true, predicate: BrnCalendarHeaderDirective, descendants: true, isSignal: true }, { propertyName: "cells", predicate: BrnCalendarCellButtonDirective, descendants: true, isSignal: true }], ngImport: i0 });
591
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.8", type: BrnCalendarDirective, isStandalone: true, selector: "[brnCalendar]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "dateDisabled", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedDate: { classPropertyName: "defaultFocusedDate", publicName: "defaultFocusedDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { date: "dateChange" }, providers: [provideBrnCalendar(BrnCalendarDirective)], queries: [{ propertyName: "header", first: true, predicate: BrnCalendarHeaderDirective, descendants: true, isSignal: true }, { propertyName: "_cells", predicate: BrnCalendarCellButtonDirective, descendants: true, isSignal: true }], ngImport: i0 });
592
592
  }
593
593
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarDirective, decorators: [{
594
594
  type: Directive,
@@ -600,7 +600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
600
600
 
601
601
  class BrnCalendarMultiDirective {
602
602
  // /** Access the date adapter */
603
- dateAdapter = injectDateAdapter();
603
+ _dateAdapter = injectDateAdapter();
604
604
  /** Access the change detector */
605
605
  _changeDetector = inject(ChangeDetectorRef);
606
606
  /** Access the injector */
@@ -634,7 +634,7 @@ class BrnCalendarMultiDirective {
634
634
  /** @internal Access the header */
635
635
  header = contentChild(BrnCalendarHeaderDirective);
636
636
  /** Store the cells */
637
- cells = contentChildren(BrnCalendarCellButtonDirective, {
637
+ _cells = contentChildren(BrnCalendarCellButtonDirective, {
638
638
  descendants: true,
639
639
  });
640
640
  /**
@@ -642,7 +642,7 @@ class BrnCalendarMultiDirective {
642
642
  * The internal state of the component.
643
643
  */
644
644
  state = computed(() => ({
645
- focusedDate: signal(this.constrainDate(this.defaultFocusedDate() ?? this.dateAdapter.now())),
645
+ focusedDate: signal(this.constrainDate(this.defaultFocusedDate() ?? this._dateAdapter.now())),
646
646
  }));
647
647
  /**
648
648
  * The focused date.
@@ -657,26 +657,26 @@ class BrnCalendarMultiDirective {
657
657
  const month = this.state().focusedDate();
658
658
  const days = [];
659
659
  // Get the first and last day of the month.
660
- let firstDay = this.dateAdapter.startOfMonth(month);
661
- let lastDay = this.dateAdapter.endOfMonth(month);
660
+ let firstDay = this._dateAdapter.startOfMonth(month);
661
+ let lastDay = this._dateAdapter.endOfMonth(month);
662
662
  // we need to subtract until we get the to starting day before or on the start of the month.
663
- while (this.dateAdapter.getDay(firstDay) !== weekStartsOn) {
664
- firstDay = this.dateAdapter.subtract(firstDay, { days: 1 });
663
+ while (this._dateAdapter.getDay(firstDay) !== weekStartsOn) {
664
+ firstDay = this._dateAdapter.subtract(firstDay, { days: 1 });
665
665
  }
666
666
  const weekEndsOn = (weekStartsOn + 6) % 7;
667
667
  // we need to add until we get to the ending day after or on the end of the month.
668
- while (this.dateAdapter.getDay(lastDay) !== weekEndsOn) {
669
- lastDay = this.dateAdapter.add(lastDay, { days: 1 });
668
+ while (this._dateAdapter.getDay(lastDay) !== weekEndsOn) {
669
+ lastDay = this._dateAdapter.add(lastDay, { days: 1 });
670
670
  }
671
671
  // collect all the days to display.
672
672
  while (firstDay <= lastDay) {
673
673
  days.push(firstDay);
674
- firstDay = this.dateAdapter.add(firstDay, { days: 1 });
674
+ firstDay = this._dateAdapter.add(firstDay, { days: 1 });
675
675
  }
676
676
  return days;
677
677
  });
678
678
  isSelected(date) {
679
- return this.date()?.some((d) => this.dateAdapter.isSameDay(d, date)) ?? false;
679
+ return this.date()?.some((d) => this._dateAdapter.isSameDay(d, date)) ?? false;
680
680
  }
681
681
  selectDate(date) {
682
682
  const selected = this.date();
@@ -686,7 +686,7 @@ class BrnCalendarMultiDirective {
686
686
  // min selection reached, do not allow to deselect
687
687
  return;
688
688
  }
689
- this.date.set(selected?.filter((d) => !this.dateAdapter.isSameDay(d, date)));
689
+ this.date.set(selected?.filter((d) => !this._dateAdapter.isSameDay(d, date)));
690
690
  }
691
691
  else {
692
692
  const maxSelection = this.maxSelection();
@@ -710,11 +710,11 @@ class BrnCalendarMultiDirective {
710
710
  return date;
711
711
  }
712
712
  // If there is a min and the date is before the min, return the min.
713
- if (min && this.dateAdapter.isBefore(date, this.dateAdapter.startOfDay(min))) {
713
+ if (min && this._dateAdapter.isBefore(date, this._dateAdapter.startOfDay(min))) {
714
714
  return min;
715
715
  }
716
716
  // If there is a max and the date is after the max, return the max.
717
- if (max && this.dateAdapter.isAfter(date, this.dateAdapter.endOfDay(max))) {
717
+ if (max && this._dateAdapter.isAfter(date, this._dateAdapter.endOfDay(max))) {
718
718
  return max;
719
719
  }
720
720
  // Return the date.
@@ -729,10 +729,10 @@ class BrnCalendarMultiDirective {
729
729
  // if the date is outside the min and max range
730
730
  const min = this.min();
731
731
  const max = this.max();
732
- if (min && this.dateAdapter.isBefore(date, this.dateAdapter.startOfDay(min))) {
732
+ if (min && this._dateAdapter.isBefore(date, this._dateAdapter.startOfDay(min))) {
733
733
  return true;
734
734
  }
735
- if (max && this.dateAdapter.isAfter(date, this.dateAdapter.endOfDay(max))) {
735
+ if (max && this._dateAdapter.isAfter(date, this._dateAdapter.endOfDay(max))) {
736
736
  return true;
737
737
  }
738
738
  // if this specific date is disabled
@@ -753,7 +753,7 @@ class BrnCalendarMultiDirective {
753
753
  afterNextRender({
754
754
  write: () => {
755
755
  // focus the cell with the target date.
756
- const cell = this.cells().find((c) => this.dateAdapter.isSameDay(c.date(), date));
756
+ const cell = this._cells().find((c) => this._dateAdapter.isSameDay(c.date(), date));
757
757
  if (cell) {
758
758
  cell.focus();
759
759
  }
@@ -765,7 +765,7 @@ class BrnCalendarMultiDirective {
765
765
  this._changeDetector.detectChanges();
766
766
  }
767
767
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarMultiDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
768
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.8", type: BrnCalendarMultiDirective, isStandalone: true, selector: "[brnCalendarMulti]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, minSelection: { classPropertyName: "minSelection", publicName: "minSelection", isSignal: true, isRequired: false, transformFunction: null }, maxSelection: { classPropertyName: "maxSelection", publicName: "maxSelection", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "dateDisabled", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedDate: { classPropertyName: "defaultFocusedDate", publicName: "defaultFocusedDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { date: "dateChange" }, providers: [provideBrnCalendar(BrnCalendarMultiDirective)], queries: [{ propertyName: "header", first: true, predicate: BrnCalendarHeaderDirective, descendants: true, isSignal: true }, { propertyName: "cells", predicate: BrnCalendarCellButtonDirective, descendants: true, isSignal: true }], ngImport: i0 });
768
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.8", type: BrnCalendarMultiDirective, isStandalone: true, selector: "[brnCalendarMulti]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, minSelection: { classPropertyName: "minSelection", publicName: "minSelection", isSignal: true, isRequired: false, transformFunction: null }, maxSelection: { classPropertyName: "maxSelection", publicName: "maxSelection", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateDisabled: { classPropertyName: "dateDisabled", publicName: "dateDisabled", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedDate: { classPropertyName: "defaultFocusedDate", publicName: "defaultFocusedDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { date: "dateChange" }, providers: [provideBrnCalendar(BrnCalendarMultiDirective)], queries: [{ propertyName: "header", first: true, predicate: BrnCalendarHeaderDirective, descendants: true, isSignal: true }, { propertyName: "_cells", predicate: BrnCalendarCellButtonDirective, descendants: true, isSignal: true }], ngImport: i0 });
769
769
  }
770
770
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: BrnCalendarMultiDirective, decorators: [{
771
771
  type: Directive,