ngx-core-components 0.3.16 → 0.3.18

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 (48) hide show
  1. package/README.md +1 -0
  2. package/ai/ai-audio-wave/ai-audio-wave.component.d.ts +18 -4
  3. package/ai/ai-chat/ai-chat.component.d.ts +35 -2
  4. package/ai/ai-chat/models.d.ts +6 -0
  5. package/ai/ai-code-editor/ai-code-editor.component.d.ts +15 -1
  6. package/ai/ai-rag-inspector/ai-rag-inspector.component.d.ts +22 -0
  7. package/ai/ai-rag-inspector/models.d.ts +15 -0
  8. package/ai/public-api.d.ts +2 -0
  9. package/buttons/button/button.component.d.ts +15 -1
  10. package/buttons/split-button/split-button.component.d.ts +4 -0
  11. package/charts/bubble-chart/bubble-chart.component.d.ts +75 -0
  12. package/charts/public-api.d.ts +4 -0
  13. package/charts/sunburst-chart/sunburst-chart.component.d.ts +63 -0
  14. package/fesm2022/ngx-core-components-ai.mjs +910 -48
  15. package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
  16. package/fesm2022/ngx-core-components-buttons.mjs +231 -30
  17. package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
  18. package/fesm2022/ngx-core-components-charts.mjs +940 -1
  19. package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
  20. package/fesm2022/ngx-core-components-inputs.mjs +858 -237
  21. package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
  22. package/fesm2022/ngx-core-components-layout.mjs +172 -25
  23. package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
  24. package/fesm2022/ngx-core-components-views.mjs +422 -2
  25. package/fesm2022/ngx-core-components-views.mjs.map +1 -1
  26. package/fesm2022/ngx-core-components.mjs +2 -2
  27. package/fesm2022/ngx-core-components.mjs.map +1 -1
  28. package/inputs/checkbox/checkbox.component.d.ts +6 -2
  29. package/inputs/date-range-picker/date-range-picker.component.d.ts +1 -1
  30. package/inputs/dropdown/dropdown.component.d.ts +1 -0
  31. package/inputs/file-preview/file-preview.component.d.ts +1 -1
  32. package/inputs/file-upload/file-upload.component.d.ts +1 -0
  33. package/inputs/numeric-textbox/numeric-textbox.component.d.ts +5 -1
  34. package/inputs/radio/radio-group.component.d.ts +12 -2
  35. package/inputs/rating/rating.component.d.ts +17 -4
  36. package/inputs/segmented-control/segmented-control.component.d.ts +2 -2
  37. package/inputs/switch/switch.component.d.ts +14 -4
  38. package/inputs/textarea/textarea.component.d.ts +3 -1
  39. package/inputs/textbox/textbox.component.d.ts +4 -1
  40. package/layout/accordion/accordion.component.d.ts +2 -0
  41. package/layout/tab-strip/tab-strip.component.d.ts +5 -1
  42. package/package.json +2 -1
  43. package/public-api.d.ts +6 -2
  44. package/schematics/collection.json +9 -0
  45. package/schematics/ng-add/index.js +64 -0
  46. package/themes/theme.css +34 -0
  47. package/views/calendar/calendar.component.d.ts +54 -0
  48. package/views/public-api.d.ts +2 -0
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChildren, Directive, contentChild, inject, TemplateRef, HostListener, ViewChild } from '@angular/core';
2
+ import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChildren, Directive, contentChild, inject, TemplateRef, HostListener, ViewChild, model } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { NgTemplateOutlet, CommonModule } from '@angular/common';
5
5
  import * as i1$1 from '@angular/forms';
@@ -3724,6 +3724,426 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
3724
3724
  `, styles: [":host{display:block}.ngx-json-viewer{padding:10px;border:1px solid var(--border-color, #dbe3ee);border-radius:8px;background:var(--bg-secondary, #ffffff);color:var(--text-primary, #0f172a);font-family:var(--ngx-monospace-font-family, \"Cascadia Code\", Consolas, monospace);font-size:12px;overflow:auto}.json-row{display:flex;align-items:center;min-height:24px;gap:5px;white-space:nowrap}.toggle,.toggle-spacer{width:18px;height:18px;flex:0 0 18px}.toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color, #dbe3ee);border-radius:4px;background:var(--border-light, #f8fafc);color:var(--text-secondary, #475569);cursor:pointer;font:inherit;line-height:1}.toggle:hover,.toggle:focus-visible{border-color:var(--primary-color, #4f46e5);outline:none}.json-key{color:var(--ngx-json-key, #7c3aed);font-weight:700}.colon,.json-summary{color:var(--text-secondary, #64748b)}.json-value{color:var(--ngx-json-number, #0f766e)}.json-value.string{color:var(--ngx-json-string, #b45309)}.json-value.nullish{color:var(--ngx-json-null, #64748b);font-style:italic}\n"] }]
3725
3725
  }] });
3726
3726
 
3727
+ class CalendarComponent {
3728
+ value = model(null);
3729
+ events = input([]);
3730
+ readonly = input(false);
3731
+ // Content Projection for custom cell
3732
+ dayTemplateSignal;
3733
+ dayTemplate = computed(() => this.dayTemplateSignal);
3734
+ activeMonthDate = signal(new Date());
3735
+ focusedDate = signal(new Date());
3736
+ dateSelect = output();
3737
+ monthChange = output();
3738
+ weekDays = signal([
3739
+ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
3740
+ ]);
3741
+ cellElements;
3742
+ monthLabel = computed(() => {
3743
+ return this.activeMonthDate().toLocaleDateString('en-US', {
3744
+ month: 'long',
3745
+ year: 'numeric'
3746
+ });
3747
+ });
3748
+ // Flat 42 cell list computed signal
3749
+ gridCells = computed(() => {
3750
+ const activeDate = this.activeMonthDate();
3751
+ const year = activeDate.getFullYear();
3752
+ const month = activeDate.getMonth();
3753
+ const firstDay = new Date(year, month, 1);
3754
+ const startDayOfWeek = firstDay.getDay();
3755
+ const totalDays = new Date(year, month + 1, 0).getDate();
3756
+ const prevMonthTotalDays = new Date(year, month, 0).getDate();
3757
+ const cells = [];
3758
+ const selectedVal = this.value();
3759
+ const focusedVal = this.focusedDate();
3760
+ // Previous month cells
3761
+ for (let i = startDayOfWeek - 1; i >= 0; i--) {
3762
+ const day = prevMonthTotalDays - i;
3763
+ const date = new Date(year, month - 1, day);
3764
+ cells.push(this.createCellObj(date, day, false, selectedVal, focusedVal));
3765
+ }
3766
+ // Current month cells
3767
+ for (let day = 1; day <= totalDays; day++) {
3768
+ const date = new Date(year, month, day);
3769
+ cells.push(this.createCellObj(date, day, true, selectedVal, focusedVal));
3770
+ }
3771
+ // Next month cells
3772
+ const remainingCells = 42 - cells.length;
3773
+ for (let day = 1; day <= remainingCells; day++) {
3774
+ const date = new Date(year, month + 1, day);
3775
+ cells.push(this.createCellObj(date, day, false, selectedVal, focusedVal));
3776
+ }
3777
+ return cells;
3778
+ });
3779
+ // Group cells by 7 for visual rows
3780
+ gridRows = computed(() => {
3781
+ const cells = this.gridCells();
3782
+ const rows = [];
3783
+ for (let i = 0; i < cells.length; i += 7) {
3784
+ rows.push(cells.slice(i, i + 7));
3785
+ }
3786
+ return rows;
3787
+ });
3788
+ createCellObj(date, dayNumber, isCurrentMonth, selectedVal, focusedVal) {
3789
+ return {
3790
+ date,
3791
+ dayNumber,
3792
+ isCurrentMonth,
3793
+ isToday: this.isSameDay(date, new Date()),
3794
+ isSelected: selectedVal ? this.isSameDay(date, selectedVal) : false,
3795
+ isFocused: this.isSameDay(date, focusedVal),
3796
+ events: this.getEventsForDate(date)
3797
+ };
3798
+ }
3799
+ isSameDay(d1, d2) {
3800
+ return (d1.getFullYear() === d2.getFullYear() &&
3801
+ d1.getMonth() === d2.getMonth() &&
3802
+ d1.getDate() === d2.getDate());
3803
+ }
3804
+ getEventsForDate(date) {
3805
+ return this.events().filter(e => {
3806
+ const eDate = typeof e.date === 'string' ? new Date(e.date) : e.date;
3807
+ return this.isSameDay(date, eDate);
3808
+ });
3809
+ }
3810
+ prevMonth() {
3811
+ const current = this.activeMonthDate();
3812
+ const prev = new Date(current.getFullYear(), current.getMonth() - 1, 1);
3813
+ this.activeMonthDate.set(prev);
3814
+ // Align focus with 1st of the new active month
3815
+ this.focusedDate.set(prev);
3816
+ this.emitMonthChange();
3817
+ }
3818
+ nextMonth() {
3819
+ const current = this.activeMonthDate();
3820
+ const next = new Date(current.getFullYear(), current.getMonth() + 1, 1);
3821
+ this.activeMonthDate.set(next);
3822
+ // Align focus with 1st of the new active month
3823
+ this.focusedDate.set(next);
3824
+ this.emitMonthChange();
3825
+ }
3826
+ goToToday() {
3827
+ const today = new Date();
3828
+ this.activeMonthDate.set(new Date(today.getFullYear(), today.getMonth(), 1));
3829
+ this.focusedDate.set(today);
3830
+ this.emitMonthChange();
3831
+ }
3832
+ selectCell(cell) {
3833
+ if (this.readonly())
3834
+ return;
3835
+ this.value.set(cell.date);
3836
+ this.focusedDate.set(cell.date);
3837
+ this.dateSelect.emit(cell.date);
3838
+ // If clicked other month day, snap page view
3839
+ if (!cell.isCurrentMonth) {
3840
+ this.activeMonthDate.set(new Date(cell.date.getFullYear(), cell.date.getMonth(), 1));
3841
+ this.emitMonthChange();
3842
+ }
3843
+ }
3844
+ emitMonthChange() {
3845
+ const active = this.activeMonthDate();
3846
+ this.monthChange.emit({
3847
+ year: active.getFullYear(),
3848
+ month: active.getMonth()
3849
+ });
3850
+ }
3851
+ // Keyboard navigation
3852
+ onCellKeyDown(event, cell) {
3853
+ if (this.readonly())
3854
+ return;
3855
+ let handled = false;
3856
+ const currentFocus = new Date(this.focusedDate());
3857
+ switch (event.key) {
3858
+ case 'ArrowLeft':
3859
+ currentFocus.setDate(currentFocus.getDate() - 1);
3860
+ handled = true;
3861
+ break;
3862
+ case 'ArrowRight':
3863
+ currentFocus.setDate(currentFocus.getDate() + 1);
3864
+ handled = true;
3865
+ break;
3866
+ case 'ArrowUp':
3867
+ currentFocus.setDate(currentFocus.getDate() - 7);
3868
+ handled = true;
3869
+ break;
3870
+ case 'ArrowDown':
3871
+ currentFocus.setDate(currentFocus.getDate() + 7);
3872
+ handled = true;
3873
+ break;
3874
+ case 'Enter':
3875
+ case ' ':
3876
+ this.selectCell(cell);
3877
+ handled = true;
3878
+ break;
3879
+ }
3880
+ if (handled) {
3881
+ event.preventDefault();
3882
+ this.focusedDate.set(currentFocus);
3883
+ // Check if we navigated to a date outside the current active month, and auto-snap activeMonth
3884
+ const active = this.activeMonthDate();
3885
+ if (currentFocus.getFullYear() !== active.getFullYear() ||
3886
+ currentFocus.getMonth() !== active.getMonth()) {
3887
+ this.activeMonthDate.set(new Date(currentFocus.getFullYear(), currentFocus.getMonth(), 1));
3888
+ this.emitMonthChange();
3889
+ }
3890
+ // Delay focus slightly so angular updates DOM tab-indices
3891
+ setTimeout(() => {
3892
+ const activeCellEl = this.cellElements.find(el => el.nativeElement.getAttribute('tabindex') === '0');
3893
+ if (activeCellEl) {
3894
+ activeCellEl.nativeElement.focus();
3895
+ }
3896
+ }, 0);
3897
+ }
3898
+ }
3899
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3900
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: CalendarComponent, isStandalone: true, selector: "ngx-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", dateSelect: "dateSelect", monthChange: "monthChange" }, queries: [{ propertyName: "dayTemplateSignal", first: true, predicate: ["dayTemplate"], descendants: true }], viewQueries: [{ propertyName: "cellElements", predicate: ["cellEl"], descendants: true }], ngImport: i0, template: `
3901
+ <div
3902
+ class="ngx-calendar-container"
3903
+ role="application"
3904
+ aria-label="Interactive Calendar"
3905
+ >
3906
+ <!-- HEADER -->
3907
+ <div class="ngx-calendar-header">
3908
+ <h2 class="ngx-calendar-title" aria-live="polite">
3909
+ {{ monthLabel() }}
3910
+ </h2>
3911
+ <div class="ngx-calendar-actions">
3912
+ <button
3913
+ class="ngx-cal-btn prev-btn"
3914
+ (click)="prevMonth()"
3915
+ type="button"
3916
+ aria-label="Previous Month"
3917
+ >
3918
+ ‹
3919
+ </button>
3920
+ <button
3921
+ class="ngx-cal-btn today-btn"
3922
+ (click)="goToToday()"
3923
+ type="button"
3924
+ aria-label="Go to Today"
3925
+ >
3926
+ Today
3927
+ </button>
3928
+ <button
3929
+ class="ngx-cal-btn next-btn"
3930
+ (click)="nextMonth()"
3931
+ type="button"
3932
+ aria-label="Next Month"
3933
+ >
3934
+ ›
3935
+ </button>
3936
+ </div>
3937
+ </div>
3938
+
3939
+ <!-- GRID -->
3940
+ <div
3941
+ class="ngx-calendar-grid"
3942
+ role="grid"
3943
+ [attr.aria-label]="monthLabel()"
3944
+ >
3945
+ <!-- WEEKDAYS HEADER -->
3946
+ <div class="ngx-calendar-row weekdays-row" role="row">
3947
+ @for (day of weekDays(); track day) {
3948
+ <div
3949
+ class="ngx-calendar-weekday"
3950
+ role="columnheader"
3951
+ [attr.aria-label]="day"
3952
+ >
3953
+ {{ day.slice(0, 3) }}
3954
+ </div>
3955
+ }
3956
+ </div>
3957
+
3958
+ <!-- DAYS GRID -->
3959
+ <div class="ngx-calendar-body">
3960
+ @for (row of gridRows(); track $index) {
3961
+ <div class="ngx-calendar-row" role="row">
3962
+ @for (cell of row; track cell.date.getTime()) {
3963
+ <div
3964
+ #cellEl
3965
+ class="ngx-calendar-cell"
3966
+ [class.current-month]="cell.isCurrentMonth"
3967
+ [class.other-month]="!cell.isCurrentMonth"
3968
+ [class.today]="cell.isToday"
3969
+ [class.selected]="cell.isSelected"
3970
+ [class.focused]="cell.isFocused"
3971
+ [class.has-events]="cell.events.length > 0"
3972
+ role="gridcell"
3973
+ [attr.aria-selected]="cell.isSelected"
3974
+ [attr.aria-label]="cell.date | date:'longDate'"
3975
+ [attr.tabindex]="cell.isFocused && !readonly() ? '0' : '-1'"
3976
+ (click)="selectCell(cell)"
3977
+ (keydown)="onCellKeyDown($event, cell)"
3978
+ >
3979
+ <!-- Cell Header (Day Number) -->
3980
+ <div class="cell-header">
3981
+ <span class="day-number">{{ cell.dayNumber }}</span>
3982
+ @if (cell.isToday) {
3983
+ <span class="today-indicator" aria-hidden="true"></span>
3984
+ }
3985
+ </div>
3986
+
3987
+ <!-- Events List or Custom Day Template -->
3988
+ <div class="cell-content">
3989
+ @if (dayTemplate()) {
3990
+ <ng-container
3991
+ *ngTemplateOutlet="dayTemplate()!; context: { $implicit: cell.date, events: cell.events }"
3992
+ ></ng-container>
3993
+ } @else {
3994
+ @for (event of cell.events.slice(0, 3); track event.title) {
3995
+ <div
3996
+ class="calendar-event-pill"
3997
+ [style.border-left-color]="event.color || '#4f46e5'"
3998
+ [attr.title]="event.title + (event.description ? ': ' + event.description : '')"
3999
+ >
4000
+ {{ event.title }}
4001
+ </div>
4002
+ }
4003
+ @if (cell.events.length > 3) {
4004
+ <div class="events-overflow-indicator">
4005
+ +{{ cell.events.length - 3 }} more
4006
+ </div>
4007
+ }
4008
+ }
4009
+ </div>
4010
+ </div>
4011
+ }
4012
+ </div>
4013
+ }
4014
+ </div>
4015
+ </div>
4016
+ </div>
4017
+ `, isInline: true, styles: [":host{display:block;width:100%;--ngx-calendar-border: #cbd5e1;--ngx-calendar-bg: #ffffff;--ngx-calendar-header-bg: #f8fafc;--ngx-calendar-text: #0f172a;--ngx-calendar-text-muted: #64748b;--ngx-calendar-cell-other-bg: #f8fafc;--ngx-calendar-hover-bg: #f1f5f9;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(79, 70, 229, .2);--ngx-calendar-active-color: #4f46e5;--ngx-calendar-selected-bg: rgba(79, 70, 229, .05);--ngx-calendar-selected-border: #4f46e5;--event-pill-bg: #f1f5f9;--event-pill-text: #334155}:host-context(body.dark),:host-context(.dark),:host-context(.dark-theme){--ngx-calendar-border: #334155;--ngx-calendar-bg: #0f172a;--ngx-calendar-header-bg: #1e293b;--ngx-calendar-text: #f8fafc;--ngx-calendar-text-muted: #94a3b8;--ngx-calendar-cell-other-bg: #0b0f19;--ngx-calendar-hover-bg: #1e293b;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(129, 140, 248, .25);--ngx-calendar-active-color: #818cf8;--ngx-calendar-selected-bg: rgba(129, 140, 248, .08);--ngx-calendar-selected-border: #818cf8;--event-pill-bg: #1e293b;--event-pill-text: #cbd5e1}.ngx-calendar-container{display:flex;flex-direction:column;border:1px solid var(--ngx-calendar-border);border-radius:12px;background:var(--ngx-calendar-bg);color:var(--ngx-calendar-text);font-family:inherit;overflow:hidden;box-shadow:0 4px 20px -2px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1)}.ngx-calendar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--ngx-calendar-header-bg);border-bottom:1px solid var(--ngx-calendar-border)}.ngx-calendar-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}.ngx-calendar-actions{display:flex;align-items:center;gap:6px}.ngx-cal-btn{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.ngx-cal-btn:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color)}.prev-btn,.next-btn{font-size:16px;width:32px;height:32px;padding:0}.ngx-calendar-grid{display:flex;flex-direction:column;width:100%}.ngx-calendar-row{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.weekdays-row{border-bottom:1px solid var(--ngx-calendar-border);background:var(--ngx-calendar-header-bg)}.ngx-calendar-weekday{padding:12px 6px;text-align:center;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ngx-calendar-text-muted)}.ngx-calendar-body{display:flex;flex-direction:column}.ngx-calendar-cell{min-height:100px;border-right:1px solid var(--ngx-calendar-border);border-bottom:1px solid var(--ngx-calendar-border);padding:8px;display:flex;flex-direction:column;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;outline:none;background:var(--ngx-calendar-bg)}.ngx-calendar-row .ngx-calendar-cell:last-child{border-right:none}.ngx-calendar-body .ngx-calendar-row:last-child .ngx-calendar-cell{border-bottom:none}.ngx-calendar-cell.other-month{background:var(--ngx-calendar-cell-other-bg)}.ngx-calendar-cell.other-month .day-number{color:var(--ngx-calendar-text-muted);opacity:.6}.ngx-calendar-cell:not(.selected):hover{background:var(--ngx-calendar-hover-bg);cursor:pointer}.ngx-calendar-cell.selected{background:var(--ngx-calendar-selected-bg)}.ngx-calendar-cell.selected:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:4px;pointer-events:none;animation:select-pulse .25s ease-out}.ngx-calendar-cell.focused{z-index:2}.ngx-calendar-cell.focused:focus-visible{box-shadow:var(--ngx-calendar-focus-shadow);border-color:var(--ngx-calendar-active-color)}.cell-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.day-number{font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;transition:all .2s ease}.today .day-number{background:var(--ngx-calendar-active-color);color:#fff!important;box-shadow:0 2px 8px #4f46e54d}.today-indicator{width:5px;height:5px;border-radius:50%;background:var(--ngx-calendar-active-color);margin-right:4px}.cell-content{flex:1;display:flex;flex-direction:column;gap:3px;overflow:hidden}.calendar-event-pill{font-size:11px;font-weight:550;padding:3px 6px;border-radius:4px;border-left:3px solid #4f46e5;background:var(--event-pill-bg);color:var(--event-pill-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:transform .15s ease,background-color .15s ease}.calendar-event-pill:hover{transform:translate(2px);background:var(--ngx-calendar-hover-bg)}.events-overflow-indicator{font-size:10px;font-weight:700;color:var(--ngx-calendar-active-color);padding-left:6px;margin-top:2px}@keyframes select-pulse{0%{transform:scale(.98);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.ngx-calendar-cell{min-height:70px;padding:4px}.calendar-event-pill{display:none}.ngx-calendar-cell.has-events:after{content:\"\\2022\";position:absolute;bottom:2px;left:50%;transform:translate(-50%);color:var(--ngx-calendar-active-color);font-size:16px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4018
+ }
4019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CalendarComponent, decorators: [{
4020
+ type: Component,
4021
+ args: [{ selector: 'ngx-calendar', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
4022
+ <div
4023
+ class="ngx-calendar-container"
4024
+ role="application"
4025
+ aria-label="Interactive Calendar"
4026
+ >
4027
+ <!-- HEADER -->
4028
+ <div class="ngx-calendar-header">
4029
+ <h2 class="ngx-calendar-title" aria-live="polite">
4030
+ {{ monthLabel() }}
4031
+ </h2>
4032
+ <div class="ngx-calendar-actions">
4033
+ <button
4034
+ class="ngx-cal-btn prev-btn"
4035
+ (click)="prevMonth()"
4036
+ type="button"
4037
+ aria-label="Previous Month"
4038
+ >
4039
+ ‹
4040
+ </button>
4041
+ <button
4042
+ class="ngx-cal-btn today-btn"
4043
+ (click)="goToToday()"
4044
+ type="button"
4045
+ aria-label="Go to Today"
4046
+ >
4047
+ Today
4048
+ </button>
4049
+ <button
4050
+ class="ngx-cal-btn next-btn"
4051
+ (click)="nextMonth()"
4052
+ type="button"
4053
+ aria-label="Next Month"
4054
+ >
4055
+ ›
4056
+ </button>
4057
+ </div>
4058
+ </div>
4059
+
4060
+ <!-- GRID -->
4061
+ <div
4062
+ class="ngx-calendar-grid"
4063
+ role="grid"
4064
+ [attr.aria-label]="monthLabel()"
4065
+ >
4066
+ <!-- WEEKDAYS HEADER -->
4067
+ <div class="ngx-calendar-row weekdays-row" role="row">
4068
+ @for (day of weekDays(); track day) {
4069
+ <div
4070
+ class="ngx-calendar-weekday"
4071
+ role="columnheader"
4072
+ [attr.aria-label]="day"
4073
+ >
4074
+ {{ day.slice(0, 3) }}
4075
+ </div>
4076
+ }
4077
+ </div>
4078
+
4079
+ <!-- DAYS GRID -->
4080
+ <div class="ngx-calendar-body">
4081
+ @for (row of gridRows(); track $index) {
4082
+ <div class="ngx-calendar-row" role="row">
4083
+ @for (cell of row; track cell.date.getTime()) {
4084
+ <div
4085
+ #cellEl
4086
+ class="ngx-calendar-cell"
4087
+ [class.current-month]="cell.isCurrentMonth"
4088
+ [class.other-month]="!cell.isCurrentMonth"
4089
+ [class.today]="cell.isToday"
4090
+ [class.selected]="cell.isSelected"
4091
+ [class.focused]="cell.isFocused"
4092
+ [class.has-events]="cell.events.length > 0"
4093
+ role="gridcell"
4094
+ [attr.aria-selected]="cell.isSelected"
4095
+ [attr.aria-label]="cell.date | date:'longDate'"
4096
+ [attr.tabindex]="cell.isFocused && !readonly() ? '0' : '-1'"
4097
+ (click)="selectCell(cell)"
4098
+ (keydown)="onCellKeyDown($event, cell)"
4099
+ >
4100
+ <!-- Cell Header (Day Number) -->
4101
+ <div class="cell-header">
4102
+ <span class="day-number">{{ cell.dayNumber }}</span>
4103
+ @if (cell.isToday) {
4104
+ <span class="today-indicator" aria-hidden="true"></span>
4105
+ }
4106
+ </div>
4107
+
4108
+ <!-- Events List or Custom Day Template -->
4109
+ <div class="cell-content">
4110
+ @if (dayTemplate()) {
4111
+ <ng-container
4112
+ *ngTemplateOutlet="dayTemplate()!; context: { $implicit: cell.date, events: cell.events }"
4113
+ ></ng-container>
4114
+ } @else {
4115
+ @for (event of cell.events.slice(0, 3); track event.title) {
4116
+ <div
4117
+ class="calendar-event-pill"
4118
+ [style.border-left-color]="event.color || '#4f46e5'"
4119
+ [attr.title]="event.title + (event.description ? ': ' + event.description : '')"
4120
+ >
4121
+ {{ event.title }}
4122
+ </div>
4123
+ }
4124
+ @if (cell.events.length > 3) {
4125
+ <div class="events-overflow-indicator">
4126
+ +{{ cell.events.length - 3 }} more
4127
+ </div>
4128
+ }
4129
+ }
4130
+ </div>
4131
+ </div>
4132
+ }
4133
+ </div>
4134
+ }
4135
+ </div>
4136
+ </div>
4137
+ </div>
4138
+ `, styles: [":host{display:block;width:100%;--ngx-calendar-border: #cbd5e1;--ngx-calendar-bg: #ffffff;--ngx-calendar-header-bg: #f8fafc;--ngx-calendar-text: #0f172a;--ngx-calendar-text-muted: #64748b;--ngx-calendar-cell-other-bg: #f8fafc;--ngx-calendar-hover-bg: #f1f5f9;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(79, 70, 229, .2);--ngx-calendar-active-color: #4f46e5;--ngx-calendar-selected-bg: rgba(79, 70, 229, .05);--ngx-calendar-selected-border: #4f46e5;--event-pill-bg: #f1f5f9;--event-pill-text: #334155}:host-context(body.dark),:host-context(.dark),:host-context(.dark-theme){--ngx-calendar-border: #334155;--ngx-calendar-bg: #0f172a;--ngx-calendar-header-bg: #1e293b;--ngx-calendar-text: #f8fafc;--ngx-calendar-text-muted: #94a3b8;--ngx-calendar-cell-other-bg: #0b0f19;--ngx-calendar-hover-bg: #1e293b;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(129, 140, 248, .25);--ngx-calendar-active-color: #818cf8;--ngx-calendar-selected-bg: rgba(129, 140, 248, .08);--ngx-calendar-selected-border: #818cf8;--event-pill-bg: #1e293b;--event-pill-text: #cbd5e1}.ngx-calendar-container{display:flex;flex-direction:column;border:1px solid var(--ngx-calendar-border);border-radius:12px;background:var(--ngx-calendar-bg);color:var(--ngx-calendar-text);font-family:inherit;overflow:hidden;box-shadow:0 4px 20px -2px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1)}.ngx-calendar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--ngx-calendar-header-bg);border-bottom:1px solid var(--ngx-calendar-border)}.ngx-calendar-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}.ngx-calendar-actions{display:flex;align-items:center;gap:6px}.ngx-cal-btn{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.ngx-cal-btn:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color)}.prev-btn,.next-btn{font-size:16px;width:32px;height:32px;padding:0}.ngx-calendar-grid{display:flex;flex-direction:column;width:100%}.ngx-calendar-row{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.weekdays-row{border-bottom:1px solid var(--ngx-calendar-border);background:var(--ngx-calendar-header-bg)}.ngx-calendar-weekday{padding:12px 6px;text-align:center;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ngx-calendar-text-muted)}.ngx-calendar-body{display:flex;flex-direction:column}.ngx-calendar-cell{min-height:100px;border-right:1px solid var(--ngx-calendar-border);border-bottom:1px solid var(--ngx-calendar-border);padding:8px;display:flex;flex-direction:column;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;outline:none;background:var(--ngx-calendar-bg)}.ngx-calendar-row .ngx-calendar-cell:last-child{border-right:none}.ngx-calendar-body .ngx-calendar-row:last-child .ngx-calendar-cell{border-bottom:none}.ngx-calendar-cell.other-month{background:var(--ngx-calendar-cell-other-bg)}.ngx-calendar-cell.other-month .day-number{color:var(--ngx-calendar-text-muted);opacity:.6}.ngx-calendar-cell:not(.selected):hover{background:var(--ngx-calendar-hover-bg);cursor:pointer}.ngx-calendar-cell.selected{background:var(--ngx-calendar-selected-bg)}.ngx-calendar-cell.selected:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:4px;pointer-events:none;animation:select-pulse .25s ease-out}.ngx-calendar-cell.focused{z-index:2}.ngx-calendar-cell.focused:focus-visible{box-shadow:var(--ngx-calendar-focus-shadow);border-color:var(--ngx-calendar-active-color)}.cell-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.day-number{font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;transition:all .2s ease}.today .day-number{background:var(--ngx-calendar-active-color);color:#fff!important;box-shadow:0 2px 8px #4f46e54d}.today-indicator{width:5px;height:5px;border-radius:50%;background:var(--ngx-calendar-active-color);margin-right:4px}.cell-content{flex:1;display:flex;flex-direction:column;gap:3px;overflow:hidden}.calendar-event-pill{font-size:11px;font-weight:550;padding:3px 6px;border-radius:4px;border-left:3px solid #4f46e5;background:var(--event-pill-bg);color:var(--event-pill-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:transform .15s ease,background-color .15s ease}.calendar-event-pill:hover{transform:translate(2px);background:var(--ngx-calendar-hover-bg)}.events-overflow-indicator{font-size:10px;font-weight:700;color:var(--ngx-calendar-active-color);padding-left:6px;margin-top:2px}@keyframes select-pulse{0%{transform:scale(.98);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.ngx-calendar-cell{min-height:70px;padding:4px}.calendar-event-pill{display:none}.ngx-calendar-cell.has-events:after{content:\"\\2022\";position:absolute;bottom:2px;left:50%;transform:translate(-50%);color:var(--ngx-calendar-active-color);font-size:16px}}\n"] }]
4139
+ }], propDecorators: { dayTemplateSignal: [{
4140
+ type: ContentChild,
4141
+ args: ['dayTemplate']
4142
+ }], cellElements: [{
4143
+ type: ViewChildren,
4144
+ args: ['cellEl']
4145
+ }] } });
4146
+
3727
4147
  /*
3728
4148
  * Public API Surface — secondary entry point: ngx-core-components/views
3729
4149
  */
@@ -3733,5 +4153,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
3733
4153
  * Generated bundle index. Do not edit.
3734
4154
  */
3735
4155
 
3736
- export { ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxSchedulerEventTemplateDirective, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective, OrgChartComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent };
4156
+ export { CalendarComponent, ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxSchedulerEventTemplateDirective, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective, OrgChartComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent };
3737
4157
  //# sourceMappingURL=ngx-core-components-views.mjs.map