@wirabyte/ui 1.0.0 → 1.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.
- package/CHANGELOG.md +17 -0
- package/config/options.d.ts +7 -0
- package/config/wu-config.service.d.ts +10 -0
- package/datepicker/datepicker.component.d.ts +2 -1
- package/esm2020/asidemenu/asidemenu.component.mjs +3 -3
- package/esm2020/chat/chat.component.mjs +2 -2
- package/esm2020/config/options.mjs +1 -1
- package/esm2020/config/wu-config.service.mjs +14 -1
- package/esm2020/datepicker/datepicker.component.mjs +4 -3
- package/esm2020/scheduler/scheduler.component.mjs +8 -7
- package/esm2020/sitefooter/sitefooter.component.mjs +2 -2
- package/esm2020/table/table.component.mjs +3 -3
- package/esm2020/textarea/textarea.directive.mjs +19 -5
- package/esm2020/thai/thai.pipes.mjs +2 -2
- package/fesm2015/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-chat.mjs +1 -1
- package/fesm2015/wirabyte-ui-chat.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-config.mjs +13 -0
- package/fesm2015/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-datepicker.mjs +4 -3
- package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-scheduler.mjs +7 -6
- package/fesm2015/wirabyte-ui-scheduler.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-table.mjs +2 -2
- package/fesm2015/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-textarea.mjs +18 -4
- package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-thai.mjs +1 -1
- package/fesm2015/wirabyte-ui-thai.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-chat.mjs +1 -1
- package/fesm2020/wirabyte-ui-chat.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-config.mjs +13 -0
- package/fesm2020/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-datepicker.mjs +4 -3
- package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-scheduler.mjs +7 -6
- package/fesm2020/wirabyte-ui-scheduler.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-table.mjs +2 -2
- package/fesm2020/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-textarea.mjs +18 -4
- package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-thai.mjs +1 -1
- package/fesm2020/wirabyte-ui-thai.mjs.map +1 -1
- package/package.json +1 -1
- package/scheduler/scheduler.component.d.ts +1 -1
- package/textarea/textarea.directive.d.ts +1 -0
- package/themes/arun-blue/theme.css +1 -1
- package/themes/arun-green/theme.css +1 -1
- package/themes/arun-orange/theme.css +1 -1
- package/themes/arun-purple/theme.css +1 -1
- package/themes/md-dark-deeppurple/theme.css +1 -1
- package/themes/md-dark-indigo/theme.css +1 -1
- package/themes/md-light-deeppurple/theme.css +1 -1
- package/themes/md-light-indigo/theme.css +1 -1
- package/themes/ratri-blue/theme.css +1 -1
- package/themes/ratri-green/theme.css +1 -1
- package/themes/ratri-orange/theme.css +1 -1
- package/themes/ratri-purple/theme.css +1 -1
- package/themes/sayan-blue/theme.css +1 -1
- package/themes/sayan-green/theme.css +1 -1
- package/themes/sayan-orange/theme.css +1 -1
- package/themes/sayan-purple/theme.css +1 -1
- package/themes/sila-dark-blue/theme.css +1 -1
- package/themes/sila-dark-indigo/theme.css +1 -1
- package/themes/sila-dark-purple/theme.css +1 -1
- package/themes/sila-dark-teal/theme.css +1 -1
- package/themes/sila-light-blue/theme.css +1 -1
- package/themes/sila-light-indigo/theme.css +1 -1
- package/themes/sila-light-purple/theme.css +1 -1
- package/themes/sila-light-teal/theme.css +1 -1
- package/themes/sila-light-wira/theme.css +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-scheduler.mjs","sources":["../../lib/scheduler/scheduler.component.ts","../../lib/scheduler/scheduler.component.html","../../lib/scheduler/scheduler.module.ts","../../lib/scheduler/wirabyte-ui-scheduler.ts"],"sourcesContent":["import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵWU_SKIP_VERSION_CHECK,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { toDateValue } from '@wirabyte/ui/core';\nimport {\n WuSchedulerDateClickEvent,\n WuSchedulerEvent,\n WuSchedulerEventChangeEvent,\n WuSchedulerEventClickEvent,\n WuSchedulerView,\n ɵWuPlacedEvent,\n} from './scheduler.types';\n\nconst DAY = 86400000;\nconst VIEWS: readonly WuSchedulerView[] = ['day', 'week', 'month'];\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\nconst toInt = (v: unknown, fallback: number, min: number, max: number): number => {\n const n = Math.round(Number(v));\n return Number.isFinite(n) ? Math.min(max, Math.max(min, n)) : fallback;\n};\nconst startOfDay = (d: Date): Date => new Date(d.getFullYear(), d.getMonth(), d.getDate());\nconst addDays = (d: Date, n: number): Date => new Date(d.getFullYear(), d.getMonth(), d.getDate() + n, d.getHours(), d.getMinutes());\nconst sameDay = (a: Date, b: Date): boolean => a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();\nconst pad = (n: number): string => String(n).padStart(2, '0');\n\n/** One day column of the day / week views, or one cell of the month grid. */\ninterface DayCell {\n key: string;\n date: Date;\n today: boolean;\n outside: boolean;\n allDay: ɵWuPlacedEvent[];\n timed: ɵWuPlacedEvent[];\n}\n\n/**\n * Appointments on a calendar: `<wu-scheduler [events]=\"appointments\" [(view)]=\"view\" [(date)]=\"day\" [editable]=\"true\"\n * (onEventChange)=\"move($event)\" (onDateClick)=\"create($event)\">`. A month grid, a week or a day of hours\n * (`startHour`–`endHour`), all-day events in their own row, overlapping events side by side, a line at the current\n * time. Years follow the app's calendar (พ.ศ. in Thai). With `editable`, events are dragged to another day or time\n * (snapped to `slotMinutes`); the scheduler emits the new times and the app updates `events`.\n */\n@Component({\n selector: 'wu-scheduler',\n standalone: true,\n imports: [NgFor, NgIf, NgTemplateOutlet],\n templateUrl: './scheduler.component.html',\n styleUrls: ['./scheduler.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-scheduler-host' },\n})\nexport class WuScheduler implements OnDestroy {\n @Input() set events(v: WuSchedulerEvent[] | null | undefined) {\n this._events = Array.isArray(v) ? v : [];\n this.cache = null;\n }\n get events(): WuSchedulerEvent[] {\n return this._events;\n }\n @Input() set view(v: WuSchedulerView | null | undefined) {\n this._view = VIEWS.includes(v as WuSchedulerView) ? (v as WuSchedulerView) : 'week';\n this.cache = null;\n }\n get view(): WuSchedulerView {\n return this._view;\n }\n /** The day the view shows (week and month views: the period around it). Default: today. */\n @Input() set date(v: Date | string | number | null | undefined) {\n this._date = startOfDay(toDateValue(v) || new Date());\n this.cache = null;\n }\n get date(): Date {\n return this._date;\n }\n /** The view buttons offered. Default all three. */\n @Input() views: WuSchedulerView[] | null | undefined = ['day', 'week', 'month'];\n /** First and last hour of the day and week views. Default 7–20. */\n @Input() set startHour(v: unknown) { this._startHour = toInt(v, 7, 0, 23); this.cache = null; }\n get startHour(): number { return this._startHour; }\n @Input() set endHour(v: unknown) { this._endHour = toInt(v, 20, 1, 24); this.cache = null; }\n get endHour(): number { return this._endHour; }\n /** Rows of the time grid, and where a dragged event snaps to. Default 30 minutes. */\n @Input() set slotMinutes(v: unknown) { this._slot = toInt(v, 30, 5, 60); this.cache = null; }\n get slotMinutes(): number { return this._slot; }\n /** First day of the week, 0 = Sunday. Default: the locale's. */\n @Input() firstDayOfWeek?: number | null;\n /** Events can be dragged to another day or time. */\n @Input() set editable(v: unknown) { this._editable = ɵtoBool(v); }\n get editable(): boolean { return this._editable; }\n /** Events a month cell lists before \"+N more\". Default 3. */\n @Input() set maxEventsPerDay(v: unknown) { this._max = toInt(v, 3, 1, 20); }\n get maxEventsPerDay(): number { return this._max; }\n /** Height of the day and week views' hour grid area. Default: the theme's hour height × the hours shown. */\n @Input() height?: string | number | null;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @Output() readonly viewChange = new EventEmitter<WuSchedulerView>();\n @Output() readonly dateChange = new EventEmitter<Date>();\n @Output() readonly onEventClick = new EventEmitter<WuSchedulerEventClickEvent>();\n @Output() readonly onDateClick = new EventEmitter<WuSchedulerDateClickEvent>();\n @Output() readonly onEventChange = new EventEmitter<WuSchedulerEventChangeEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('event', { descendants: false }) protected eventRef?: unknown;\n\n private _events: WuSchedulerEvent[] = [];\n private _view: WuSchedulerView = 'week';\n private _date = startOfDay(new Date());\n private _startHour = 7;\n private _endHour = 20;\n private _slot = 30;\n private _editable = false;\n private _max = 3;\n private cache: { key: string; days: DayCell[] } | null = null;\n private dragged: WuSchedulerEvent | null = null;\n private now = new Date();\n private readonly timer = typeof window !== 'undefined' ? window.setInterval(() => this.tick(), 60000) : 0;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n private readonly translated = this.config.translationChange.subscribe(() => (this.cache = null));\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n if (this.timer) clearInterval(this.timer);\n this.i18n.unsubscribe();\n this.translated.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get t() {\n return this.config.translation.scheduler;\n }\n get eventTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.eventRef) || ɵfindTemplate(this.templates, 'event');\n }\n get rootClass(): string {\n return ['wu-scheduler', `wu-scheduler-${this._view}`, this._editable ? 'wu-scheduler-editable' : '', this.styleClass || ''].filter(Boolean).join(' ');\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> {\n const own = this.style && typeof this.style === 'object' ? this.style : {};\n const h = this.height;\n const height = h === null || h === undefined || h === '' ? undefined : typeof h === 'number' || /^\\d+(\\.\\d+)?$/.test(String(h)) ? `${h}px` : String(h);\n return { ...own, '--_hours': String(this.hours.length), ...(height ? { '--_grid-height': height } : {}) };\n }\n get viewButtons(): WuSchedulerView[] {\n return (this.views || VIEWS).filter((v) => VIEWS.includes(v));\n }\n viewLabel(v: WuSchedulerView): string {\n return this.t?.[v] ?? v;\n }\n get hours(): number[] {\n const out: number[] = [];\n for (let h = this._startHour; h < Math.max(this._startHour + 1, this._endHour); h++) out.push(h);\n return out;\n }\n get weekdayNames(): string[] {\n const names = this.config.translation.dayNamesShort || [];\n const first = this.weekStart;\n return Array.from({ length: 7 }, (_, i) => names[(first + i) % 7] ?? '');\n }\n get days(): DayCell[] {\n const key = `${this._view}|${this._date.getTime()}|${this.weekStart}|${this._startHour}|${this._endHour}|${startOfDay(this.now).getTime()}`;\n if (!this.cache || this.cache.key !== key) this.cache = { key, days: this.build() };\n return this.cache.days;\n }\n /** Month view: the days in rows of seven. */\n get weeks(): DayCell[][] {\n const d = this.days;\n const out: DayCell[][] = [];\n for (let i = 0; i < d.length; i += 7) out.push(d.slice(i, i + 7));\n return out;\n }\n get title(): string {\n const d = this._date;\n if (this._view === 'month') return `${this.monthName(d)} ${this.year(d)}`;\n if (this._view === 'day') return `${this.dayName(d)} ${d.getDate()} ${this.monthName(d)} ${this.year(d)}`;\n const days = this.days;\n const a = days[0].date;\n const b = days[days.length - 1].date;\n if (a.getMonth() === b.getMonth()) return `${a.getDate()}–${b.getDate()} ${this.monthName(b)} ${this.year(b)}`;\n if (a.getFullYear() === b.getFullYear()) return `${a.getDate()} ${this.monthShort(a)} – ${b.getDate()} ${this.monthShort(b)} ${this.year(b)}`;\n return `${a.getDate()} ${this.monthShort(a)} ${this.year(a)} – ${b.getDate()} ${this.monthShort(b)} ${this.year(b)}`;\n }\n dayHeader(cell: DayCell): string {\n return `${this.weekdayShort(cell.date)} ${cell.date.getDate()}`;\n }\n hourLabel(h: number): string {\n return `${pad(h)}:00`;\n }\n /** The current-time line: % down the visible hours, or `null` outside them. */\n nowTop(cell: DayCell): number | null {\n if (!cell.today) return null;\n const minutes = this.now.getHours() * 60 + this.now.getMinutes() - this._startHour * 60;\n const span = (this.hours.length || 1) * 60;\n return minutes < 0 || minutes > span ? null : (minutes / span) * 100;\n }\n visible(cell: DayCell): ɵWuPlacedEvent[] {\n return [...cell.allDay, ...cell.timed].slice(0, this._max);\n }\n hidden(cell: DayCell): number {\n return Math.max(0, cell.allDay.length + cell.timed.length - this._max);\n }\n moreText(n: number): string {\n return (this.t?.more ?? '+{count} more').replace('{count}', String(n));\n }\n eventStyle(p: ɵWuPlacedEvent): Record<string, string> {\n const style: Record<string, string> = {};\n if (p.event.color) {\n style['--_ev'] = p.event.color;\n style['--_ev-bg'] = `color-mix(in srgb, ${p.event.color} 16%, var(--wu-card-bg))`;\n }\n return style;\n }\n placedStyle(p: ɵWuPlacedEvent): Record<string, string> {\n return { ...this.eventStyle(p), top: p.top + '%', height: p.height + '%', left: p.left + '%', width: p.width + '%' };\n }\n canDrag(p: ɵWuPlacedEvent): boolean {\n return this._editable && p.event.editable !== false;\n }\n trackCell(_: number, c: DayCell): string {\n return c.key;\n }\n trackEvent(_: number, p: ɵWuPlacedEvent): string {\n return p.key;\n }\n\n // ---------- navigation ----------\n\n setView(v: WuSchedulerView): void {\n if (v === this._view) return;\n this.view = v;\n this.viewChange.emit(v);\n }\n move(step: -1 | 1): void {\n const d = this._date;\n const next =\n this._view === 'month'\n ? new Date(d.getFullYear(), d.getMonth() + step, 1)\n : addDays(d, step * (this._view === 'week' ? 7 : 1));\n this.go(next);\n }\n goToday(): void {\n this.go(new Date());\n }\n /** Month view: a day's \"+N more\" opens that day. */\n openDay(date: Date): void {\n this.go(date);\n this.setView('day');\n }\n\n // ---------- clicks and drags ----------\n\n eventClick(event: Event, p: ɵWuPlacedEvent): void {\n event.stopPropagation();\n this.onEventClick.emit({ originalEvent: event, event: p.event });\n }\n /** A click on an empty month cell. */\n cellClick(event: Event, cell: DayCell): void {\n this.onDateClick.emit({ originalEvent: event, date: new Date(cell.date), allDay: true });\n }\n /** A click on the hour grid: the slot under the pointer. */\n slotClick(event: MouseEvent, cell: DayCell): void {\n this.onDateClick.emit({ originalEvent: event, date: this.timeAt(event, cell), allDay: false });\n }\n allDayClick(event: Event, cell: DayCell): void {\n this.onDateClick.emit({ originalEvent: event, date: new Date(cell.date), allDay: true });\n }\n dragStart(event: DragEvent, p: ɵWuPlacedEvent): void {\n if (!this.canDrag(p)) {\n event.preventDefault();\n return;\n }\n this.dragged = p.event;\n event.dataTransfer?.setData('text/plain', p.event.title);\n if (event.dataTransfer) event.dataTransfer.effectAllowed = 'move';\n }\n dragOver(event: DragEvent): void {\n if (!this.dragged) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n }\n dragEnd(): void {\n this.dragged = null;\n }\n /** Dropped on a month cell or an all-day row: same time of day, another date. */\n dropOnDay(event: DragEvent, cell: DayCell): void {\n const ev = this.dragged;\n if (!ev) return;\n event.preventDefault();\n const [start, end] = this.range(ev);\n const shift = startOfDay(cell.date).getTime() - startOfDay(start).getTime();\n this.dragged = null;\n if (shift) this.onEventChange.emit({ event: ev, start: new Date(start.getTime() + shift), end: new Date(end.getTime() + shift) });\n }\n /** Dropped on the hour grid: the slot under the pointer, same length. */\n dropOnTime(event: DragEvent, cell: DayCell): void {\n const ev = this.dragged;\n if (!ev) return;\n event.preventDefault();\n const [start, end] = this.range(ev);\n const at = this.timeAt(event, cell);\n this.dragged = null;\n if (at.getTime() !== start.getTime()) this.onEventChange.emit({ event: ev, start: at, end: new Date(at.getTime() + (end.getTime() - start.getTime())) });\n }\n\n // ---------- internals ----------\n\n private get weekStart(): number {\n const f = this.firstDayOfWeek ?? this.config.translation.firstDayOfWeek ?? 0;\n return toInt(f, 0, 0, 6);\n }\n\n private go(date: Date): void {\n this.date = date;\n this.dateChange.emit(new Date(this._date));\n this.cdr.markForCheck();\n }\n\n private tick(): void {\n this.now = new Date();\n this.cdr.markForCheck();\n }\n\n /** The slot under the pointer on a day column, snapped to `slotMinutes`. */\n private timeAt(event: MouseEvent, cell: DayCell): Date {\n const el = event.currentTarget as HTMLElement;\n const r = el.getBoundingClientRect();\n const span = (this.hours.length || 1) * 60;\n const raw = r.height > 0 ? ((event.clientY - r.top) / r.height) * span : 0;\n const minutes = Math.max(0, Math.min(span - this._slot, Math.floor(raw / this._slot) * this._slot));\n const d = new Date(cell.date);\n d.setHours(this._startHour, minutes, 0, 0);\n return d;\n }\n\n private range(ev: WuSchedulerEvent): [Date, Date] {\n const start = toDateValue(ev.start) || new Date(NaN);\n const end = toDateValue(ev.end ?? null);\n if (end && end.getTime() > start.getTime()) return [start, end];\n return [start, ev.allDay ? addDays(startOfDay(start), 1) : new Date(start.getTime() + 3600000)];\n }\n\n private build(): DayCell[] {\n const today = startOfDay(this.now);\n let first: Date;\n let count: number;\n if (this._view === 'day') {\n first = this._date;\n count = 1;\n } else if (this._view === 'week') {\n first = addDays(this._date, -((this._date.getDay() - this.weekStart + 7) % 7));\n count = 7;\n } else {\n const m = new Date(this._date.getFullYear(), this._date.getMonth(), 1);\n first = addDays(m, -((m.getDay() - this.weekStart + 7) % 7));\n count = 42;\n }\n const cells: DayCell[] = [];\n for (let i = 0; i < count; i++) {\n const date = addDays(first, i);\n cells.push({\n key: `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`,\n date,\n today: sameDay(date, today),\n outside: this._view === 'month' && date.getMonth() !== this._date.getMonth(),\n allDay: [],\n timed: [],\n });\n }\n const span = (this.hours.length || 1) * 60;\n this._events.forEach((ev, index) => {\n const [start, end] = this.range(ev);\n if (Number.isNaN(start.getTime())) return;\n for (const cell of cells) {\n const dayStart = cell.date.getTime();\n const dayEnd = dayStart + DAY;\n if (start.getTime() >= dayEnd || end.getTime() <= dayStart) continue;\n const multi = !sameDay(start, new Date(end.getTime() - 1));\n const placed: ɵWuPlacedEvent = {\n key: `${ev.id ?? index}@${cell.key}`,\n event: ev,\n start,\n end,\n top: 0,\n height: 0,\n left: 0,\n width: 100,\n time: ev.allDay || multi ? '' : `${pad(start.getHours())}:${pad(start.getMinutes())}`,\n };\n if (ev.allDay || multi || this._view === 'month') {\n if (ev.allDay || multi) cell.allDay.push(placed);\n else cell.timed.push(placed);\n continue;\n }\n const from = Math.max(0, start.getHours() * 60 + start.getMinutes() - this._startHour * 60);\n const to = Math.min(span, (end.getTime() - dayStart) / 60000 - this._startHour * 60);\n if (to <= 0 || from >= span) continue;\n placed.top = (from / span) * 100;\n placed.height = Math.max(((to - from) / span) * 100, (this._slot / 2 / span) * 100);\n cell.timed.push(placed);\n }\n });\n for (const cell of cells) {\n cell.timed.sort((a, b) => a.start.getTime() - b.start.getTime() || b.end.getTime() - a.end.getTime());\n if (this._view !== 'month') lanes(cell.timed);\n }\n return cells;\n }\n\n private year(d: Date): number {\n return d.getFullYear() + (this.config.calendarFor() === 'buddhist' ? 543 : 0);\n }\n private monthName(d: Date): string {\n return this.config.translation.monthNames?.[d.getMonth()] ?? String(d.getMonth() + 1);\n }\n private monthShort(d: Date): string {\n return this.config.translation.monthNamesShort?.[d.getMonth()] ?? String(d.getMonth() + 1);\n }\n private dayName(d: Date): string {\n return this.config.translation.dayNames?.[d.getDay()] ?? '';\n }\n private weekdayShort(d: Date): string {\n return this.config.translation.dayNamesShort?.[d.getDay()] ?? '';\n }\n}\n\n/** Overlapping events share the column: each cluster of overlaps is split into as many equal lanes as it needs. */\nfunction lanes(events: ɵWuPlacedEvent[]): void {\n let cluster: ɵWuPlacedEvent[] = [];\n let clusterEnd = -Infinity;\n const flush = () => {\n const laneEnds: number[] = [];\n const laneOf = new Map<ɵWuPlacedEvent, number>();\n for (const e of cluster) {\n let lane = laneEnds.findIndex((t) => t <= e.top);\n if (lane < 0) lane = laneEnds.push(0) - 1;\n laneEnds[lane] = e.top + e.height;\n laneOf.set(e, lane);\n }\n const n = laneEnds.length || 1;\n for (const e of cluster) {\n e.width = 100 / n;\n e.left = (laneOf.get(e) || 0) * e.width;\n }\n cluster = [];\n };\n for (const e of events) {\n if (cluster.length && e.top >= clusterEnd) flush();\n cluster.push(e);\n clusterEnd = Math.max(clusterEnd === -Infinity ? 0 : clusterEnd, e.top + e.height);\n if (cluster.length === 1) clusterEnd = e.top + e.height;\n }\n if (cluster.length) flush();\n}\n","<section [class]=\"rootClass\" [style]=\"rootStyle\">\n <header class=\"wu-scheduler-toolbar\">\n <div class=\"wu-scheduler-nav\">\n <button type=\"button\" class=\"wu-scheduler-button wu-scheduler-icon\" [attr.aria-label]=\"t?.previous || 'Previous'\" [attr.title]=\"t?.previous || 'Previous'\" (click)=\"move(-1)\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M10 3 5 8l5 5\" /></svg>\n </button>\n <button type=\"button\" class=\"wu-scheduler-button wu-scheduler-icon\" [attr.aria-label]=\"t?.next || 'Next'\" [attr.title]=\"t?.next || 'Next'\" (click)=\"move(1)\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"m6 3 5 5-5 5\" /></svg>\n </button>\n <button type=\"button\" class=\"wu-scheduler-button\" (click)=\"goToday()\">{{ t?.today || 'Today' }}</button>\n </div>\n <h3 class=\"wu-scheduler-title\" aria-live=\"polite\">{{ title }}</h3>\n <div *ngIf=\"viewButtons.length > 1\" class=\"wu-scheduler-views\" role=\"group\">\n <button\n *ngFor=\"let v of viewButtons\"\n type=\"button\"\n class=\"wu-scheduler-button\"\n [class.wu-scheduler-button-active]=\"v === view\"\n [attr.aria-pressed]=\"v === view\"\n (click)=\"setView(v)\"\n >\n {{ viewLabel(v) }}\n </button>\n </div>\n </header>\n\n <!-- Month: six rows of seven days. -->\n <div *ngIf=\"view === 'month'\" class=\"wu-scheduler-month\" role=\"grid\">\n <div class=\"wu-scheduler-month-head\" role=\"row\">\n <span *ngFor=\"let name of weekdayNames\" class=\"wu-scheduler-weekday\" role=\"columnheader\">{{ name }}</span>\n </div>\n <div *ngFor=\"let week of weeks\" class=\"wu-scheduler-month-row\" role=\"row\">\n <div\n *ngFor=\"let cell of week; trackBy: trackCell\"\n class=\"wu-scheduler-cell\"\n role=\"gridcell\"\n [class.wu-scheduler-today]=\"cell.today\"\n [class.wu-scheduler-outside]=\"cell.outside\"\n (click)=\"cellClick($event, cell)\"\n (dragover)=\"dragOver($event)\"\n (drop)=\"dropOnDay($event, cell)\"\n >\n <span class=\"wu-scheduler-day-number\">{{ cell.date.getDate() }}</span>\n <button\n *ngFor=\"let p of visible(cell); trackBy: trackEvent\"\n type=\"button\"\n class=\"wu-scheduler-chip\"\n [class.wu-scheduler-chip-allday]=\"!p.time\"\n [style]=\"eventStyle(p)\"\n [attr.draggable]=\"canDrag(p) ? 'true' : null\"\n (click)=\"eventClick($event, p)\"\n (dragstart)=\"dragStart($event, p)\"\n (dragend)=\"dragEnd()\"\n >\n <ng-container *ngIf=\"eventTemplate; else chipText\">\n <ng-container *ngTemplateOutlet=\"eventTemplate; context: { $implicit: p.event, start: p.start, end: p.end, view: view }\"></ng-container>\n </ng-container>\n <ng-template #chipText>\n <span *ngIf=\"p.time\" class=\"wu-scheduler-chip-time\">{{ p.time }}</span>\n <span class=\"wu-scheduler-chip-title\">{{ p.event.title }}</span>\n </ng-template>\n </button>\n <button *ngIf=\"hidden(cell)\" type=\"button\" class=\"wu-scheduler-more\" (click)=\"$event.stopPropagation(); openDay(cell.date)\">\n {{ moreText(hidden(cell)) }}\n </button>\n </div>\n </div>\n </div>\n\n <!-- Day and week: an all-day row, then the hours. -->\n <div *ngIf=\"view !== 'month'\" class=\"wu-scheduler-time\">\n <div class=\"wu-scheduler-time-head\">\n <span class=\"wu-scheduler-gutter\"></span>\n <div *ngFor=\"let cell of days; trackBy: trackCell\" class=\"wu-scheduler-col-head\" [class.wu-scheduler-today]=\"cell.today\">\n <span class=\"wu-scheduler-col-name\">{{ dayHeader(cell) }}</span>\n </div>\n </div>\n <div class=\"wu-scheduler-allday\">\n <span class=\"wu-scheduler-gutter wu-scheduler-allday-label\">{{ t?.allDay || 'All day' }}</span>\n <div\n *ngFor=\"let cell of days; trackBy: trackCell\"\n class=\"wu-scheduler-allday-cell\"\n (click)=\"allDayClick($event, cell)\"\n (dragover)=\"dragOver($event)\"\n (drop)=\"dropOnDay($event, cell)\"\n >\n <button\n *ngFor=\"let p of cell.allDay; trackBy: trackEvent\"\n type=\"button\"\n class=\"wu-scheduler-chip wu-scheduler-chip-allday\"\n [style]=\"eventStyle(p)\"\n [attr.draggable]=\"canDrag(p) ? 'true' : null\"\n (click)=\"eventClick($event, p)\"\n (dragstart)=\"dragStart($event, p)\"\n (dragend)=\"dragEnd()\"\n >\n <ng-container *ngIf=\"eventTemplate; else allDayText\">\n <ng-container *ngTemplateOutlet=\"eventTemplate; context: { $implicit: p.event, start: p.start, end: p.end, view: view }\"></ng-container>\n </ng-container>\n <ng-template #allDayText><span class=\"wu-scheduler-chip-title\">{{ p.event.title }}</span></ng-template>\n </button>\n </div>\n </div>\n <div class=\"wu-scheduler-grid-scroll\">\n <div class=\"wu-scheduler-grid\">\n <div class=\"wu-scheduler-hours\" aria-hidden=\"true\">\n <span *ngFor=\"let h of hours\" class=\"wu-scheduler-hour\">{{ hourLabel(h) }}</span>\n </div>\n <div\n *ngFor=\"let cell of days; trackBy: trackCell\"\n class=\"wu-scheduler-col\"\n [class.wu-scheduler-today]=\"cell.today\"\n (click)=\"slotClick($event, cell)\"\n (dragover)=\"dragOver($event)\"\n (drop)=\"dropOnTime($event, cell)\"\n >\n <span *ngFor=\"let h of hours\" class=\"wu-scheduler-slot\" aria-hidden=\"true\"></span>\n <span *ngIf=\"nowTop(cell) !== null\" class=\"wu-scheduler-now\" [style.top.%]=\"nowTop(cell)\" aria-hidden=\"true\"></span>\n <button\n *ngFor=\"let p of cell.timed; trackBy: trackEvent\"\n type=\"button\"\n class=\"wu-scheduler-event\"\n [style]=\"placedStyle(p)\"\n [attr.draggable]=\"canDrag(p) ? 'true' : null\"\n (click)=\"eventClick($event, p)\"\n (dragstart)=\"dragStart($event, p)\"\n (dragend)=\"dragEnd()\"\n >\n <ng-container *ngIf=\"eventTemplate; else eventText\">\n <ng-container *ngTemplateOutlet=\"eventTemplate; context: { $implicit: p.event, start: p.start, end: p.end, view: view }\"></ng-container>\n </ng-container>\n <ng-template #eventText>\n <span class=\"wu-scheduler-event-time\">{{ p.time }}</span>\n <span class=\"wu-scheduler-event-title\">{{ p.event.title }}</span>\n <span *ngIf=\"p.event.description\" class=\"wu-scheduler-event-description\">{{ p.event.description }}</span>\n </ng-template>\n </button>\n </div>\n </div>\n </div>\n </div>\n</section>\n","import { NgModule } from '@angular/core';\nimport { WuScheduler } from './scheduler.component';\n\n/** For NgModule apps. Standalone apps can import `WuScheduler` directly. */\n@NgModule({\n imports: [WuScheduler],\n exports: [WuScheduler],\n})\nexport class WuSchedulerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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.ts","../../lib/scheduler/scheduler.component.html","../../lib/scheduler/scheduler.module.ts","../../lib/scheduler/wirabyte-ui-scheduler.ts"],"sourcesContent":["import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵWU_SKIP_VERSION_CHECK,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { toDateValue } from '@wirabyte/ui/core';\nimport {\n WuSchedulerDateClickEvent,\n WuSchedulerEvent,\n WuSchedulerEventChangeEvent,\n WuSchedulerEventClickEvent,\n WuSchedulerView,\n ɵWuPlacedEvent,\n} from './scheduler.types';\n\nconst DAY = 86400000;\nconst VIEWS: readonly WuSchedulerView[] = ['day', 'week', 'month'];\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\nconst toInt = (v: unknown, fallback: number, min: number, max: number): number => {\n const n = Math.round(Number(v));\n return Number.isFinite(n) ? Math.min(max, Math.max(min, n)) : fallback;\n};\nconst startOfDay = (d: Date): Date => new Date(d.getFullYear(), d.getMonth(), d.getDate());\nconst addDays = (d: Date, n: number): Date => new Date(d.getFullYear(), d.getMonth(), d.getDate() + n, d.getHours(), d.getMinutes());\nconst sameDay = (a: Date, b: Date): boolean => a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();\nconst pad = (n: number): string => String(n).padStart(2, '0');\n\n/** One day column of the day / week views, or one cell of the month grid. */\ninterface DayCell {\n key: string;\n date: Date;\n today: boolean;\n outside: boolean;\n allDay: ɵWuPlacedEvent[];\n timed: ɵWuPlacedEvent[];\n}\n\n/**\n * Appointments on a calendar: `<wu-scheduler [events]=\"appointments\" [(view)]=\"view\" [(date)]=\"day\" [editable]=\"true\"\n * (onEventChange)=\"move($event)\" (onDateClick)=\"create($event)\">`. A month grid, a week or a day of hours\n * (`startHour`–`endHour`), all-day events in their own row, overlapping events side by side, a line at the current\n * time. Years follow the app's calendar (พ.ศ. in Thai). With `editable`, events are dragged to another day or time\n * (snapped to `slotMinutes`); the scheduler emits the new times and the app updates `events`.\n */\n@Component({\n selector: 'wu-scheduler',\n standalone: true,\n imports: [NgFor, NgIf, NgTemplateOutlet],\n templateUrl: './scheduler.component.html',\n styleUrls: ['./scheduler.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-scheduler-host' },\n})\nexport class WuScheduler implements OnDestroy {\n @Input() set events(v: WuSchedulerEvent[] | null | undefined) {\n this._events = Array.isArray(v) ? v : [];\n this.cache = null;\n }\n get events(): WuSchedulerEvent[] {\n return this._events;\n }\n @Input() set view(v: WuSchedulerView | null | undefined) {\n this._view = VIEWS.includes(v as WuSchedulerView) ? (v as WuSchedulerView) : 'week';\n this.cache = null;\n }\n get view(): WuSchedulerView {\n return this._view;\n }\n /** The day the view shows (week and month views: the period around it). Default: today. */\n @Input() set date(v: Date | string | number | null | undefined) {\n this._date = startOfDay(toDateValue(v) || this.config.now());\n this.cache = null;\n }\n get date(): Date {\n return this._date;\n }\n /** The view buttons offered. Default all three. */\n @Input() views: WuSchedulerView[] | null | undefined = ['day', 'week', 'month'];\n /** First and last hour of the day and week views. Default 7–20. */\n @Input() set startHour(v: unknown) { this._startHour = toInt(v, 7, 0, 23); this.cache = null; }\n get startHour(): number { return this._startHour; }\n @Input() set endHour(v: unknown) { this._endHour = toInt(v, 20, 1, 24); this.cache = null; }\n get endHour(): number { return this._endHour; }\n /** Rows of the time grid, and where a dragged event snaps to. Default 30 minutes. */\n @Input() set slotMinutes(v: unknown) { this._slot = toInt(v, 30, 5, 60); this.cache = null; }\n get slotMinutes(): number { return this._slot; }\n /** First day of the week, 0 = Sunday. Default: the locale's. */\n @Input() firstDayOfWeek?: number | null;\n /** Events can be dragged to another day or time. */\n @Input() set editable(v: unknown) { this._editable = ɵtoBool(v); }\n get editable(): boolean { return this._editable; }\n /** Events a month cell lists before \"+N more\". Default 3. */\n @Input() set maxEventsPerDay(v: unknown) { this._max = toInt(v, 3, 1, 20); }\n get maxEventsPerDay(): number { return this._max; }\n /** Height of the day and week views' hour grid area. Default: the theme's hour height × the hours shown. */\n @Input() height?: string | number | null;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @Output() readonly viewChange = new EventEmitter<WuSchedulerView>();\n @Output() readonly dateChange = new EventEmitter<Date>();\n @Output() readonly onEventClick = new EventEmitter<WuSchedulerEventClickEvent>();\n @Output() readonly onDateClick = new EventEmitter<WuSchedulerDateClickEvent>();\n @Output() readonly onEventChange = new EventEmitter<WuSchedulerEventChangeEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('event', { descendants: false }) protected eventRef?: unknown;\n\n // First: the fields below ask it for \"now\" (provideWiraUI({ now }), WUI-024).\n private readonly config = inject(WuConfig);\n private _events: WuSchedulerEvent[] = [];\n private _view: WuSchedulerView = 'week';\n private _date = startOfDay(this.config.now());\n private _startHour = 7;\n private _endHour = 20;\n private _slot = 30;\n private _editable = false;\n private _max = 3;\n private cache: { key: string; days: DayCell[] } | null = null;\n private dragged: WuSchedulerEvent | null = null;\n private now = this.config.now();\n private readonly timer = typeof window !== 'undefined' ? window.setInterval(() => this.tick(), 60000) : 0;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly i18n = ɵrefreshOnTranslation();\n private readonly translated = this.config.translationChange.subscribe(() => (this.cache = null));\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n if (this.timer) clearInterval(this.timer);\n this.i18n.unsubscribe();\n this.translated.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get t() {\n return this.config.translation.scheduler;\n }\n get eventTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.eventRef) || ɵfindTemplate(this.templates, 'event');\n }\n get rootClass(): string {\n return ['wu-scheduler', `wu-scheduler-${this._view}`, this._editable ? 'wu-scheduler-editable' : '', this.styleClass || ''].filter(Boolean).join(' ');\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> {\n const own = this.style && typeof this.style === 'object' ? this.style : {};\n const h = this.height;\n const height = h === null || h === undefined || h === '' ? undefined : typeof h === 'number' || /^\\d+(\\.\\d+)?$/.test(String(h)) ? `${h}px` : String(h);\n return { ...own, '--_hours': String(this.hours.length), ...(height ? { '--_grid-height': height } : {}) };\n }\n get viewButtons(): WuSchedulerView[] {\n return (this.views || VIEWS).filter((v) => VIEWS.includes(v));\n }\n viewLabel(v: WuSchedulerView): string {\n return this.t?.[v] ?? v;\n }\n get hours(): number[] {\n const out: number[] = [];\n for (let h = this._startHour; h < Math.max(this._startHour + 1, this._endHour); h++) out.push(h);\n return out;\n }\n get weekdayNames(): string[] {\n const names = this.config.translation.dayNamesShort || [];\n const first = this.weekStart;\n return Array.from({ length: 7 }, (_, i) => names[(first + i) % 7] ?? '');\n }\n get days(): DayCell[] {\n const key = `${this._view}|${this._date.getTime()}|${this.weekStart}|${this._startHour}|${this._endHour}|${startOfDay(this.now).getTime()}`;\n if (!this.cache || this.cache.key !== key) this.cache = { key, days: this.build() };\n return this.cache.days;\n }\n /** Month view: the days in rows of seven. */\n get weeks(): DayCell[][] {\n const d = this.days;\n const out: DayCell[][] = [];\n for (let i = 0; i < d.length; i += 7) out.push(d.slice(i, i + 7));\n return out;\n }\n get title(): string {\n const d = this._date;\n if (this._view === 'month') return `${this.monthName(d)} ${this.year(d)}`;\n if (this._view === 'day') return `${this.dayName(d)} ${d.getDate()} ${this.monthName(d)} ${this.year(d)}`;\n const days = this.days;\n const a = days[0].date;\n const b = days[days.length - 1].date;\n if (a.getMonth() === b.getMonth()) return `${a.getDate()}–${b.getDate()} ${this.monthName(b)} ${this.year(b)}`;\n if (a.getFullYear() === b.getFullYear()) return `${a.getDate()} ${this.monthShort(a)} – ${b.getDate()} ${this.monthShort(b)} ${this.year(b)}`;\n return `${a.getDate()} ${this.monthShort(a)} ${this.year(a)} – ${b.getDate()} ${this.monthShort(b)} ${this.year(b)}`;\n }\n dayHeader(cell: DayCell): string {\n return `${this.weekdayShort(cell.date)} ${cell.date.getDate()}`;\n }\n hourLabel(h: number): string {\n return `${pad(h)}:00`;\n }\n /** The current-time line: % down the visible hours, or `null` outside them. */\n nowTop(cell: DayCell): number | null {\n if (!cell.today) return null;\n const minutes = this.now.getHours() * 60 + this.now.getMinutes() - this._startHour * 60;\n const span = (this.hours.length || 1) * 60;\n return minutes < 0 || minutes > span ? null : (minutes / span) * 100;\n }\n visible(cell: DayCell): ɵWuPlacedEvent[] {\n return [...cell.allDay, ...cell.timed].slice(0, this._max);\n }\n hidden(cell: DayCell): number {\n return Math.max(0, cell.allDay.length + cell.timed.length - this._max);\n }\n moreText(n: number): string {\n return (this.t?.more ?? '+{count} more').replace('{count}', String(n));\n }\n eventStyle(p: ɵWuPlacedEvent): Record<string, string> {\n const style: Record<string, string> = {};\n if (p.event.color) {\n style['--_ev'] = p.event.color;\n style['--_ev-bg'] = `color-mix(in srgb, ${p.event.color} 16%, var(--wu-card-bg))`;\n }\n return style;\n }\n placedStyle(p: ɵWuPlacedEvent): Record<string, string> {\n return { ...this.eventStyle(p), top: p.top + '%', height: p.height + '%', left: p.left + '%', width: p.width + '%' };\n }\n canDrag(p: ɵWuPlacedEvent): boolean {\n return this._editable && p.event.editable !== false;\n }\n trackCell(_: number, c: DayCell): string {\n return c.key;\n }\n trackEvent(_: number, p: ɵWuPlacedEvent): string {\n return p.key;\n }\n\n // ---------- navigation ----------\n\n setView(v: WuSchedulerView): void {\n if (v === this._view) return;\n this.view = v;\n this.viewChange.emit(v);\n }\n move(step: -1 | 1): void {\n const d = this._date;\n const next =\n this._view === 'month'\n ? new Date(d.getFullYear(), d.getMonth() + step, 1)\n : addDays(d, step * (this._view === 'week' ? 7 : 1));\n this.go(next);\n }\n goToday(): void {\n this.go(this.config.now());\n }\n /** Month view: a day's \"+N more\" opens that day. */\n openDay(date: Date): void {\n this.go(date);\n this.setView('day');\n }\n\n // ---------- clicks and drags ----------\n\n eventClick(event: Event, p: ɵWuPlacedEvent): void {\n event.stopPropagation();\n this.onEventClick.emit({ originalEvent: event, event: p.event });\n }\n /** A click on an empty month cell. */\n cellClick(event: Event, cell: DayCell): void {\n this.onDateClick.emit({ originalEvent: event, date: new Date(cell.date), allDay: true });\n }\n /** A click on the hour grid: the slot under the pointer. */\n slotClick(event: MouseEvent, cell: DayCell): void {\n this.onDateClick.emit({ originalEvent: event, date: this.timeAt(event, cell), allDay: false });\n }\n allDayClick(event: Event, cell: DayCell): void {\n this.onDateClick.emit({ originalEvent: event, date: new Date(cell.date), allDay: true });\n }\n dragStart(event: DragEvent, p: ɵWuPlacedEvent): void {\n if (!this.canDrag(p)) {\n event.preventDefault();\n return;\n }\n this.dragged = p.event;\n event.dataTransfer?.setData('text/plain', p.event.title);\n if (event.dataTransfer) event.dataTransfer.effectAllowed = 'move';\n }\n dragOver(event: DragEvent): void {\n if (!this.dragged) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';\n }\n dragEnd(): void {\n this.dragged = null;\n }\n /** Dropped on a month cell or an all-day row: same time of day, another date. */\n dropOnDay(event: DragEvent, cell: DayCell): void {\n const ev = this.dragged;\n if (!ev) return;\n event.preventDefault();\n const [start, end] = this.range(ev);\n const shift = startOfDay(cell.date).getTime() - startOfDay(start).getTime();\n this.dragged = null;\n if (shift) this.onEventChange.emit({ event: ev, start: new Date(start.getTime() + shift), end: new Date(end.getTime() + shift) });\n }\n /** Dropped on the hour grid: the slot under the pointer, same length. */\n dropOnTime(event: DragEvent, cell: DayCell): void {\n const ev = this.dragged;\n if (!ev) return;\n event.preventDefault();\n const [start, end] = this.range(ev);\n const at = this.timeAt(event, cell);\n this.dragged = null;\n if (at.getTime() !== start.getTime()) this.onEventChange.emit({ event: ev, start: at, end: new Date(at.getTime() + (end.getTime() - start.getTime())) });\n }\n\n // ---------- internals ----------\n\n private get weekStart(): number {\n const f = this.firstDayOfWeek ?? this.config.translation.firstDayOfWeek ?? 0;\n return toInt(f, 0, 0, 6);\n }\n\n private go(date: Date): void {\n this.date = date;\n this.dateChange.emit(new Date(this._date));\n this.cdr.markForCheck();\n }\n\n private tick(): void {\n this.now = this.config.now();\n this.cdr.markForCheck();\n }\n\n /** The slot under the pointer on a day column, snapped to `slotMinutes`. */\n private timeAt(event: MouseEvent, cell: DayCell): Date {\n const el = event.currentTarget as HTMLElement;\n const r = el.getBoundingClientRect();\n const span = (this.hours.length || 1) * 60;\n const raw = r.height > 0 ? ((event.clientY - r.top) / r.height) * span : 0;\n const minutes = Math.max(0, Math.min(span - this._slot, Math.floor(raw / this._slot) * this._slot));\n const d = new Date(cell.date);\n d.setHours(this._startHour, minutes, 0, 0);\n return d;\n }\n\n private range(ev: WuSchedulerEvent): [Date, Date] {\n const start = toDateValue(ev.start) || new Date(NaN);\n const end = toDateValue(ev.end ?? null);\n if (end && end.getTime() > start.getTime()) return [start, end];\n return [start, ev.allDay ? addDays(startOfDay(start), 1) : new Date(start.getTime() + 3600000)];\n }\n\n private build(): DayCell[] {\n const today = startOfDay(this.now);\n let first: Date;\n let count: number;\n if (this._view === 'day') {\n first = this._date;\n count = 1;\n } else if (this._view === 'week') {\n first = addDays(this._date, -((this._date.getDay() - this.weekStart + 7) % 7));\n count = 7;\n } else {\n const m = new Date(this._date.getFullYear(), this._date.getMonth(), 1);\n first = addDays(m, -((m.getDay() - this.weekStart + 7) % 7));\n count = 42;\n }\n const cells: DayCell[] = [];\n for (let i = 0; i < count; i++) {\n const date = addDays(first, i);\n cells.push({\n key: `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`,\n date,\n today: sameDay(date, today),\n outside: this._view === 'month' && date.getMonth() !== this._date.getMonth(),\n allDay: [],\n timed: [],\n });\n }\n const span = (this.hours.length || 1) * 60;\n this._events.forEach((ev, index) => {\n const [start, end] = this.range(ev);\n if (Number.isNaN(start.getTime())) return;\n for (const cell of cells) {\n const dayStart = cell.date.getTime();\n const dayEnd = dayStart + DAY;\n if (start.getTime() >= dayEnd || end.getTime() <= dayStart) continue;\n const multi = !sameDay(start, new Date(end.getTime() - 1));\n const placed: ɵWuPlacedEvent = {\n key: `${ev.id ?? index}@${cell.key}`,\n event: ev,\n start,\n end,\n top: 0,\n height: 0,\n left: 0,\n width: 100,\n time: ev.allDay || multi ? '' : `${pad(start.getHours())}:${pad(start.getMinutes())}`,\n };\n if (ev.allDay || multi || this._view === 'month') {\n if (ev.allDay || multi) cell.allDay.push(placed);\n else cell.timed.push(placed);\n continue;\n }\n const from = Math.max(0, start.getHours() * 60 + start.getMinutes() - this._startHour * 60);\n const to = Math.min(span, (end.getTime() - dayStart) / 60000 - this._startHour * 60);\n if (to <= 0 || from >= span) continue;\n placed.top = (from / span) * 100;\n placed.height = Math.max(((to - from) / span) * 100, (this._slot / 2 / span) * 100);\n cell.timed.push(placed);\n }\n });\n for (const cell of cells) {\n cell.timed.sort((a, b) => a.start.getTime() - b.start.getTime() || b.end.getTime() - a.end.getTime());\n if (this._view !== 'month') lanes(cell.timed);\n }\n return cells;\n }\n\n private year(d: Date): number {\n return d.getFullYear() + (this.config.calendarFor() === 'buddhist' ? 543 : 0);\n }\n private monthName(d: Date): string {\n return this.config.translation.monthNames?.[d.getMonth()] ?? String(d.getMonth() + 1);\n }\n private monthShort(d: Date): string {\n return this.config.translation.monthNamesShort?.[d.getMonth()] ?? String(d.getMonth() + 1);\n }\n private dayName(d: Date): string {\n return this.config.translation.dayNames?.[d.getDay()] ?? '';\n }\n private weekdayShort(d: Date): string {\n return this.config.translation.dayNamesShort?.[d.getDay()] ?? '';\n }\n}\n\n/** Overlapping events share the column: each cluster of overlaps is split into as many equal lanes as it needs. */\nfunction lanes(events: ɵWuPlacedEvent[]): void {\n let cluster: ɵWuPlacedEvent[] = [];\n let clusterEnd = -Infinity;\n const flush = () => {\n const laneEnds: number[] = [];\n const laneOf = new Map<ɵWuPlacedEvent, number>();\n for (const e of cluster) {\n let lane = laneEnds.findIndex((t) => t <= e.top);\n if (lane < 0) lane = laneEnds.push(0) - 1;\n laneEnds[lane] = e.top + e.height;\n laneOf.set(e, lane);\n }\n const n = laneEnds.length || 1;\n for (const e of cluster) {\n e.width = 100 / n;\n e.left = (laneOf.get(e) || 0) * e.width;\n }\n cluster = [];\n };\n for (const e of events) {\n if (cluster.length && e.top >= clusterEnd) flush();\n cluster.push(e);\n clusterEnd = Math.max(clusterEnd === -Infinity ? 0 : clusterEnd, e.top + e.height);\n if (cluster.length === 1) clusterEnd = e.top + e.height;\n }\n if (cluster.length) flush();\n}\n","<section [class]=\"rootClass\" [style]=\"rootStyle\">\n <header class=\"wu-scheduler-toolbar\">\n <div class=\"wu-scheduler-nav\">\n <button type=\"button\" class=\"wu-scheduler-button wu-scheduler-icon\" [attr.aria-label]=\"t?.previous || 'Previous'\" [attr.title]=\"t?.previous || 'Previous'\" (click)=\"move(-1)\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M10 3 5 8l5 5\" /></svg>\n </button>\n <button type=\"button\" class=\"wu-scheduler-button wu-scheduler-icon\" [attr.aria-label]=\"t?.next || 'Next'\" [attr.title]=\"t?.next || 'Next'\" (click)=\"move(1)\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"m6 3 5 5-5 5\" /></svg>\n </button>\n <button type=\"button\" class=\"wu-scheduler-button\" (click)=\"goToday()\">{{ t?.today || 'Today' }}</button>\n </div>\n <h3 class=\"wu-scheduler-title\" aria-live=\"polite\">{{ title }}</h3>\n <div *ngIf=\"viewButtons.length > 1\" class=\"wu-scheduler-views\" role=\"group\">\n <button\n *ngFor=\"let v of viewButtons\"\n type=\"button\"\n class=\"wu-scheduler-button\"\n [class.wu-scheduler-button-active]=\"v === view\"\n [attr.aria-pressed]=\"v === view\"\n (click)=\"setView(v)\"\n >\n {{ viewLabel(v) }}\n </button>\n </div>\n </header>\n\n <!-- Month: six rows of seven days. -->\n <div *ngIf=\"view === 'month'\" class=\"wu-scheduler-month\" role=\"grid\">\n <div class=\"wu-scheduler-month-head\" role=\"row\">\n <span *ngFor=\"let name of weekdayNames\" class=\"wu-scheduler-weekday\" role=\"columnheader\">{{ name }}</span>\n </div>\n <div *ngFor=\"let week of weeks\" class=\"wu-scheduler-month-row\" role=\"row\">\n <div\n *ngFor=\"let cell of week; trackBy: trackCell\"\n class=\"wu-scheduler-cell\"\n role=\"gridcell\"\n [class.wu-scheduler-today]=\"cell.today\"\n [class.wu-scheduler-outside]=\"cell.outside\"\n (click)=\"cellClick($event, cell)\"\n (dragover)=\"dragOver($event)\"\n (drop)=\"dropOnDay($event, cell)\"\n >\n <span class=\"wu-scheduler-day-number\">{{ cell.date.getDate() }}</span>\n <button\n *ngFor=\"let p of visible(cell); trackBy: trackEvent\"\n type=\"button\"\n class=\"wu-scheduler-chip\"\n [class.wu-scheduler-chip-allday]=\"!p.time\"\n [style]=\"eventStyle(p)\"\n [attr.draggable]=\"canDrag(p) ? 'true' : null\"\n (click)=\"eventClick($event, p)\"\n (dragstart)=\"dragStart($event, p)\"\n (dragend)=\"dragEnd()\"\n >\n <ng-container *ngIf=\"eventTemplate; else chipText\">\n <ng-container *ngTemplateOutlet=\"eventTemplate; context: { $implicit: p.event, start: p.start, end: p.end, view: view }\"></ng-container>\n </ng-container>\n <ng-template #chipText>\n <span *ngIf=\"p.time\" class=\"wu-scheduler-chip-time\">{{ p.time }}</span>\n <span class=\"wu-scheduler-chip-title\">{{ p.event.title }}</span>\n </ng-template>\n </button>\n <button *ngIf=\"hidden(cell)\" type=\"button\" class=\"wu-scheduler-more\" (click)=\"$event.stopPropagation(); openDay(cell.date)\">\n {{ moreText(hidden(cell)) }}\n </button>\n </div>\n </div>\n </div>\n\n <!-- Day and week: an all-day row, then the hours. -->\n <div *ngIf=\"view !== 'month'\" class=\"wu-scheduler-time\">\n <div class=\"wu-scheduler-time-head\">\n <span class=\"wu-scheduler-gutter\"></span>\n <div *ngFor=\"let cell of days; trackBy: trackCell\" class=\"wu-scheduler-col-head\" [class.wu-scheduler-today]=\"cell.today\">\n <span class=\"wu-scheduler-col-name\">{{ dayHeader(cell) }}</span>\n </div>\n </div>\n <div class=\"wu-scheduler-allday\">\n <span class=\"wu-scheduler-gutter wu-scheduler-allday-label\">{{ t?.allDay || 'All day' }}</span>\n <div\n *ngFor=\"let cell of days; trackBy: trackCell\"\n class=\"wu-scheduler-allday-cell\"\n (click)=\"allDayClick($event, cell)\"\n (dragover)=\"dragOver($event)\"\n (drop)=\"dropOnDay($event, cell)\"\n >\n <button\n *ngFor=\"let p of cell.allDay; trackBy: trackEvent\"\n type=\"button\"\n class=\"wu-scheduler-chip wu-scheduler-chip-allday\"\n [style]=\"eventStyle(p)\"\n [attr.draggable]=\"canDrag(p) ? 'true' : null\"\n (click)=\"eventClick($event, p)\"\n (dragstart)=\"dragStart($event, p)\"\n (dragend)=\"dragEnd()\"\n >\n <ng-container *ngIf=\"eventTemplate; else allDayText\">\n <ng-container *ngTemplateOutlet=\"eventTemplate; context: { $implicit: p.event, start: p.start, end: p.end, view: view }\"></ng-container>\n </ng-container>\n <ng-template #allDayText><span class=\"wu-scheduler-chip-title\">{{ p.event.title }}</span></ng-template>\n </button>\n </div>\n </div>\n <div class=\"wu-scheduler-grid-scroll\">\n <div class=\"wu-scheduler-grid\">\n <div class=\"wu-scheduler-hours\" aria-hidden=\"true\">\n <span *ngFor=\"let h of hours\" class=\"wu-scheduler-hour\">{{ hourLabel(h) }}</span>\n </div>\n <div\n *ngFor=\"let cell of days; trackBy: trackCell\"\n class=\"wu-scheduler-col\"\n [class.wu-scheduler-today]=\"cell.today\"\n (click)=\"slotClick($event, cell)\"\n (dragover)=\"dragOver($event)\"\n (drop)=\"dropOnTime($event, cell)\"\n >\n <span *ngFor=\"let h of hours\" class=\"wu-scheduler-slot\" aria-hidden=\"true\"></span>\n <span *ngIf=\"nowTop(cell) !== null\" class=\"wu-scheduler-now\" [style.top.%]=\"nowTop(cell)\" aria-hidden=\"true\"></span>\n <button\n *ngFor=\"let p of cell.timed; trackBy: trackEvent\"\n type=\"button\"\n class=\"wu-scheduler-event\"\n [style]=\"placedStyle(p)\"\n [attr.draggable]=\"canDrag(p) ? 'true' : null\"\n (click)=\"eventClick($event, p)\"\n (dragstart)=\"dragStart($event, p)\"\n (dragend)=\"dragEnd()\"\n >\n <ng-container *ngIf=\"eventTemplate; else eventText\">\n <ng-container *ngTemplateOutlet=\"eventTemplate; context: { $implicit: p.event, start: p.start, end: p.end, view: view }\"></ng-container>\n </ng-container>\n <ng-template #eventText>\n <span class=\"wu-scheduler-event-time\">{{ p.time }}</span>\n <span class=\"wu-scheduler-event-title\">{{ p.event.title }}</span>\n <span *ngIf=\"p.event.description\" class=\"wu-scheduler-event-description\">{{ p.event.description }}</span>\n </ng-template>\n </button>\n </div>\n </div>\n </div>\n </div>\n</section>\n","import { NgModule } from '@angular/core';\nimport { WuScheduler } from './scheduler.component';\n\n/** For NgModule apps. Standalone apps can import `WuScheduler` directly. */\n@NgModule({\n imports: [WuScheduler],\n exports: [WuScheduler],\n})\nexport class WuSchedulerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAmCA,MAAM,GAAG,GAAG,QAAQ,CAAC;AACrB,MAAM,KAAK,GAA+B,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACnE,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACtG,MAAM,KAAK,GAAG,CAAC,CAAU,EA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,CAAC,GAAG,CAAC,UAAU,KAAK,CAAC,QAAQ,GAAG,CAAC,GAAG,UAAU,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AACnF,QAAA,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YAAE,UAAU,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC;AACzD,KAAA;IACD,IAAI,OAAO,CAAC,MAAM;AAAE,QAAA,KAAK,EAAE,CAAC;AAC9B;;AEleA;MAKa,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,OAAA,EAAA,CAHlB,WAAW,CAAA,EAAA,OAAA,EAAA,CACX,WAAW,CAAA,EAAA,CAAA,CAAA;AAEV,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHlB,WAAW,CAAA,EAAA,CAAA,CAAA;4FAGV,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,WAAW,CAAC;oBACtB,OAAO,EAAE,CAAC,WAAW,CAAC;AACvB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -55,7 +55,7 @@ class WuSiteFooter {
|
|
|
55
55
|
get copyrightText() {
|
|
56
56
|
if (this.copyright !== undefined && this.copyright !== null)
|
|
57
57
|
return this.copyright;
|
|
58
|
-
return this.brand ? `© ${
|
|
58
|
+
return this.brand ? `© ${this.config.now().getFullYear()} ${this.brand}` : '';
|
|
59
59
|
}
|
|
60
60
|
get showTop() {
|
|
61
61
|
return this.backToTop === '' || this.backToTop === true || this.backToTop === 'true';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-sitefooter.mjs","sources":["../../lib/sitefooter/sitefooter.component.ts","../../lib/sitefooter/sitefooter.component.html","../../lib/sitefooter/sitefooter.module.ts","../../lib/sitefooter/wirabyte-ui-sitefooter.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig, WuMenuItem, WuTemplate } from '@wirabyte/ui/config';\nimport { TH_LOCALE } from '@wirabyte/ui/core';\n\n/** `'columns'` (default): the brand beside columns of links. `'simple'`: one row. `'centered'`: everything centred. */\nexport type WuSiteFooterLook = 'columns' | 'simple' | 'centered';\n\n/** `(onItemClick)`: a link was clicked. */\nexport interface WuSiteFooterItemClickEvent {\n originalEvent: Event;\n item: WuMenuItem;\n}\n\n/**\n * The foot of a site or app: `<wu-site-footer brand=\"WiraUI\" [model]=\"columns\" [social]=\"social\" [legal]=\"legal\">`.\n * `model` items with `items` are columns of links (a heading each), items without are plain links; `social` are icon\n * links; `legal` sit in the bottom row after the copyright (default `© <year> <brand>`). Links are menu items (`label`,\n * `url`, `routerLink`, `command`, `target`). On narrow widths the columns fold into headings that open (the footer\n * measures its own width, so it works in any box). `backToTop` adds a button that scrolls the page back up. Slots:\n * `brand` (your own brand block), `end` (a newsletter form or app badges) and `bottom` (more in the bottom row).\n */\n@Component({\n selector: 'wu-site-footer',\n standalone: true,\n imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink],\n templateUrl: './sitefooter.component.html',\n styleUrls: ['./sitefooter.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-site-footer-host' },\n})\nexport class WuSiteFooter implements OnDestroy {\n /** Columns (items with `items`) or plain links. */\n @Input() model: WuMenuItem[] | null | undefined;\n /** Icon links: `{ icon: 'wi wi-github', url: '…', label: 'GitHub' }` (the label is read out). */\n @Input() social: WuMenuItem[] | null | undefined;\n /** Links in the bottom row: privacy, terms. */\n @Input() legal: WuMenuItem[] | null | undefined;\n @Input() brand?: string | null;\n /** A logo image beside the brand name. */\n @Input() logo?: string | null;\n @Input() description?: string | null;\n /** Default `© <this year> <brand>`; `''` for none. */\n @Input() copyright?: string | null;\n /** `'columns'` (default), `'simple'` or `'centered'`. */\n @Input() set look(v: WuSiteFooterLook | string | null | undefined) {\n this._look = v === 'simple' || v === 'centered' ? v : 'columns';\n }\n get look(): WuSiteFooterLook {\n return this._look;\n }\n /** A button that scrolls the page back to the top. */\n @Input() backToTop: boolean | string | null | undefined = false;\n @Input() ariaLabel?: string | null;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @Output() readonly onItemClick = new EventEmitter<WuSiteFooterItemClickEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n\n /** Columns opened on narrow widths, by index. */\n readonly open = new Set<number>();\n\n private _look: WuSiteFooterLook = 'columns';\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get words(): (typeof TH_LOCALE)['siteFooter'] {\n return this.config.translation.siteFooter ?? TH_LOCALE.siteFooter;\n }\n get columns(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && Array.isArray(i.items));\n }\n get links(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && !Array.isArray(i.items));\n }\n get socials(): WuMenuItem[] {\n return (this.social || []).filter((i) => i && i.visible !== false);\n }\n get legals(): WuMenuItem[] {\n return (this.legal || []).filter((i) => i && i.visible !== false);\n }\n get copyrightText(): string {\n if (this.copyright !== undefined && this.copyright !== null) return this.copyright;\n return this.brand ? `© ${new Date().getFullYear()} ${this.brand}` : '';\n }\n get showTop(): boolean {\n return this.backToTop === '' || this.backToTop === true || this.backToTop === 'true';\n }\n get brandTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'brand');\n }\n get endTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'end');\n }\n get bottomTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'bottom');\n }\n get classes(): string[] {\n return ['wu-site-footer', `wu-site-footer-${this._look}`, this.styleClass || ''];\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n hasRoute(item: WuMenuItem): boolean {\n return item.routerLink !== undefined && item.routerLink !== null && !item.disabled;\n }\n\n // ---------- events ----------\n\n toggle(index: number): void {\n if (this.open.has(index)) this.open.delete(index);\n else this.open.add(index);\n }\n\n pick(item: WuMenuItem, event: Event): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !this.hasRoute(item)) event.preventDefault();\n item.command?.({ originalEvent: event, item });\n this.onItemClick.emit({ originalEvent: event, item });\n }\n\n top(): void {\n const win = this.doc.defaultView;\n const still = win?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n win?.scrollTo({ top: 0, behavior: still ? 'auto' : 'smooth' });\n }\n}\n","<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuSiteFooter } from './sitefooter.component';\n\n/** For NgModule apps (with `WuTemplate` for the `brand`, `end` and `bottom` slots). Standalone apps can import `WuSiteFooter` directly. */\n@NgModule({\n imports: [WuSiteFooter, WuTemplate],\n exports: [WuSiteFooter, WuTemplate],\n})\nexport class WuSiteFooterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA0BA;;;;;;;AAOG;MAWU,YAAY,CAAA;;IAcvB,IAAa,IAAI,CAAC,CAA+C,EAAA;AAC/D,QAAA,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,UAAU,GAAG,CAAC,GAAG,SAAS,CAAC;KACjE;AACD,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;AAoBD,IAAA,WAAA,GAAA;;QAlBS,IAAS,CAAA,SAAA,GAAwC,KAAK,CAAC;AAM7C,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAA8B,CAAC;;AAKvE,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;QAE1B,IAAK,CAAA,KAAA,GAAqB,SAAS,CAAC;AAC3B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvB,IAAI,CAAA,IAAA,GAAG,qBAAqB,EAAE,CAAC;AAG9C,QAAA,uBAAuB,CAAC,MAAM,CAAC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,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,YAAY,EAAE,UAAU,CACxB,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;AAEvB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA;4FAGX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACpC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-sitefooter.mjs","sources":["../../lib/sitefooter/sitefooter.component.ts","../../lib/sitefooter/sitefooter.component.html","../../lib/sitefooter/sitefooter.module.ts","../../lib/sitefooter/wirabyte-ui-sitefooter.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig, WuMenuItem, WuTemplate } from '@wirabyte/ui/config';\nimport { TH_LOCALE } from '@wirabyte/ui/core';\n\n/** `'columns'` (default): the brand beside columns of links. `'simple'`: one row. `'centered'`: everything centred. */\nexport type WuSiteFooterLook = 'columns' | 'simple' | 'centered';\n\n/** `(onItemClick)`: a link was clicked. */\nexport interface WuSiteFooterItemClickEvent {\n originalEvent: Event;\n item: WuMenuItem;\n}\n\n/**\n * The foot of a site or app: `<wu-site-footer brand=\"WiraUI\" [model]=\"columns\" [social]=\"social\" [legal]=\"legal\">`.\n * `model` items with `items` are columns of links (a heading each), items without are plain links; `social` are icon\n * links; `legal` sit in the bottom row after the copyright (default `© <year> <brand>`). Links are menu items (`label`,\n * `url`, `routerLink`, `command`, `target`). On narrow widths the columns fold into headings that open (the footer\n * measures its own width, so it works in any box). `backToTop` adds a button that scrolls the page back up. Slots:\n * `brand` (your own brand block), `end` (a newsletter form or app badges) and `bottom` (more in the bottom row).\n */\n@Component({\n selector: 'wu-site-footer',\n standalone: true,\n imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink],\n templateUrl: './sitefooter.component.html',\n styleUrls: ['./sitefooter.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-site-footer-host' },\n})\nexport class WuSiteFooter implements OnDestroy {\n /** Columns (items with `items`) or plain links. */\n @Input() model: WuMenuItem[] | null | undefined;\n /** Icon links: `{ icon: 'wi wi-github', url: '…', label: 'GitHub' }` (the label is read out). */\n @Input() social: WuMenuItem[] | null | undefined;\n /** Links in the bottom row: privacy, terms. */\n @Input() legal: WuMenuItem[] | null | undefined;\n @Input() brand?: string | null;\n /** A logo image beside the brand name. */\n @Input() logo?: string | null;\n @Input() description?: string | null;\n /** Default `© <this year> <brand>`; `''` for none. */\n @Input() copyright?: string | null;\n /** `'columns'` (default), `'simple'` or `'centered'`. */\n @Input() set look(v: WuSiteFooterLook | string | null | undefined) {\n this._look = v === 'simple' || v === 'centered' ? v : 'columns';\n }\n get look(): WuSiteFooterLook {\n return this._look;\n }\n /** A button that scrolls the page back to the top. */\n @Input() backToTop: boolean | string | null | undefined = false;\n @Input() ariaLabel?: string | null;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n @Output() readonly onItemClick = new EventEmitter<WuSiteFooterItemClickEvent>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n\n /** Columns opened on narrow widths, by index. */\n readonly open = new Set<number>();\n\n private _look: WuSiteFooterLook = 'columns';\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get words(): (typeof TH_LOCALE)['siteFooter'] {\n return this.config.translation.siteFooter ?? TH_LOCALE.siteFooter;\n }\n get columns(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && Array.isArray(i.items));\n }\n get links(): WuMenuItem[] {\n return (this.model || []).filter((i) => i && i.visible !== false && !Array.isArray(i.items));\n }\n get socials(): WuMenuItem[] {\n return (this.social || []).filter((i) => i && i.visible !== false);\n }\n get legals(): WuMenuItem[] {\n return (this.legal || []).filter((i) => i && i.visible !== false);\n }\n get copyrightText(): string {\n if (this.copyright !== undefined && this.copyright !== null) return this.copyright;\n return this.brand ? `© ${this.config.now().getFullYear()} ${this.brand}` : '';\n }\n get showTop(): boolean {\n return this.backToTop === '' || this.backToTop === true || this.backToTop === 'true';\n }\n get brandTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'brand');\n }\n get endTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'end');\n }\n get bottomTemplate() {\n return ɵfindTemplate(this.templates?.toArray(), 'bottom');\n }\n get classes(): string[] {\n return ['wu-site-footer', `wu-site-footer-${this._look}`, this.styleClass || ''];\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n hasRoute(item: WuMenuItem): boolean {\n return item.routerLink !== undefined && item.routerLink !== null && !item.disabled;\n }\n\n // ---------- events ----------\n\n toggle(index: number): void {\n if (this.open.has(index)) this.open.delete(index);\n else this.open.add(index);\n }\n\n pick(item: WuMenuItem, event: Event): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n if (!item.url && !this.hasRoute(item)) event.preventDefault();\n item.command?.({ originalEvent: event, item });\n this.onItemClick.emit({ originalEvent: event, item });\n }\n\n top(): void {\n const win = this.doc.defaultView;\n const still = win?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n win?.scrollTo({ top: 0, behavior: still ? 'auto' : 'smooth' });\n }\n}\n","<footer [ngClass]=\"classes\" [ngStyle]=\"rootStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-main\">\n <div class=\"wu-site-footer-brand\" *ngIf=\"brandTemplate || brand || logo || description || socials.length\">\n <ng-container *ngIf=\"brandTemplate; else ownBrand\">\n <ng-container *ngTemplateOutlet=\"brandTemplate\"></ng-container>\n </ng-container>\n <ng-template #ownBrand>\n <div class=\"wu-site-footer-name\" *ngIf=\"brand || logo\">\n <img *ngIf=\"logo\" class=\"wu-site-footer-logo\" [src]=\"logo\" alt=\"\" />\n <span *ngIf=\"brand\">{{ brand }}</span>\n </div>\n <p class=\"wu-site-footer-description\" *ngIf=\"description\">{{ description }}</p>\n </ng-template>\n <ul class=\"wu-site-footer-social\" *ngIf=\"socials.length\">\n <li *ngFor=\"let s of socials\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: s, cls: 'wu-site-footer-social-link', icon: true }\"></ng-container>\n </li>\n </ul>\n </div>\n\n <ul class=\"wu-site-footer-links\" *ngIf=\"links.length\">\n <li *ngFor=\"let l of links\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n\n <nav class=\"wu-site-footer-columns\" *ngIf=\"columns.length\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-site-footer-column\" *ngFor=\"let c of columns; let i = index\" [class.wu-site-footer-column-open]=\"open.has(i)\">\n <button type=\"button\" class=\"wu-site-footer-heading\" [attr.aria-expanded]=\"open.has(i)\" (click)=\"toggle(i)\">\n <span>{{ c.label }}</span>\n <svg class=\"wu-site-footer-chevron\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"></path></svg>\n </button>\n <ul class=\"wu-site-footer-list\">\n <li *ngFor=\"let l of c.items\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-link' }\"></ng-container>\n </li>\n </ul>\n </div>\n </nav>\n\n <div class=\"wu-site-footer-end\" *ngIf=\"endTemplate\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n\n <div class=\"wu-site-footer-bottom\" *ngIf=\"copyrightText || legals.length || bottomTemplate || showTop\">\n <span class=\"wu-site-footer-copyright\" *ngIf=\"copyrightText\">{{ copyrightText }} {{ words.rights }}</span>\n <ul class=\"wu-site-footer-legal\" *ngIf=\"legals.length\">\n <li *ngFor=\"let l of legals\">\n <ng-container *ngTemplateOutlet=\"link; context: { $implicit: l, cls: 'wu-site-footer-legal-link' }\"></ng-container>\n </li>\n </ul>\n <ng-container *ngIf=\"bottomTemplate\">\n <ng-container *ngTemplateOutlet=\"bottomTemplate\"></ng-container>\n </ng-container>\n <button *ngIf=\"showTop\" type=\"button\" class=\"wu-site-footer-top\" (click)=\"top()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19V5M6 11l6-6 6 6\"></path></svg>\n <span>{{ words.backToTop }}</span>\n </button>\n </div>\n</footer>\n\n<ng-template #link let-item let-cls=\"cls\" let-icon=\"icon\">\n <a\n *ngIf=\"hasRoute(item); else plain\"\n [ngClass]=\"[cls, item.styleClass || '']\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [attr.target]=\"item.target || null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n (click)=\"pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n <ng-template #plain>\n <a\n [ngClass]=\"[cls, item.styleClass || '']\"\n [attr.href]=\"item.url && !item.disabled ? item.url : null\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.target === '_blank' ? 'noopener' : null\"\n [attr.aria-label]=\"icon ? item.label || item.title || null : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.title]=\"icon ? item.label || item.title || null : item.title || null\"\n [attr.tabindex]=\"!item.url ? 0 : null\"\n [attr.role]=\"!item.url ? 'button' : null\"\n (click)=\"pick(item, $event)\"\n (keydown.enter)=\"!item.url && pick(item, $event)\"\n >\n <span *ngIf=\"item.icon\" class=\"wu-site-footer-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!icon\">{{ item.label }}</span>\n </a>\n </ng-template>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuSiteFooter } from './sitefooter.component';\n\n/** For NgModule apps (with `WuTemplate` for the `brand`, `end` and `bottom` slots). Standalone apps can import `WuSiteFooter` directly. */\n@NgModule({\n imports: [WuSiteFooter, WuTemplate],\n exports: [WuSiteFooter, WuTemplate],\n})\nexport class WuSiteFooterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA0BA;;;;;;;A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CAAA,EAAA,CAAA,CAAA;4FAGX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACpC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1458,10 +1458,10 @@ const ɵWU_TABLE = new InjectionToken('WU_TABLE');
|
|
|
1458
1458
|
class WuTable extends ɵWuTableBase {
|
|
1459
1459
|
}
|
|
1460
1460
|
WuTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTable, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1461
|
-
WuTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuTable, isStandalone: true, selector: "wu-table, wu-datatable", host: { classAttribute: "wu-table-host" }, providers: [{ provide: ɵWU_TABLE, useExisting: forwardRef(() => WuTable) }], exportAs: ["wuTable"], usesInheritance: true, ngImport: i0, template: "<div\n class=\"wu-table p-datatable p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"style || null\"\n [class.wu-table-gridlines]=\"showGridlines\"\n [class.p-datatable-gridlines]=\"showGridlines\"\n [class.wu-table-striped]=\"stripedRows\"\n [class.p-datatable-striped]=\"stripedRows\"\n [class.wu-table-sm]=\"sizeKey === 'sm'\"\n [class.p-datatable-sm]=\"sizeKey === 'sm'\"\n [class.wu-table-lg]=\"sizeKey === 'lg'\"\n [class.p-datatable-lg]=\"sizeKey === 'lg'\"\n [class.wu-table-hoverable]=\"rowHover\"\n [class.p-datatable-hoverable-rows]=\"rowHover\"\n [class.wu-table-scrollable]=\"scrollable\"\n [class.p-datatable-scrollable]=\"scrollable\"\n [class.wu-table-flex]=\"flexScroll\"\n [class.wu-table-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-scroll]=\"responsiveLayout !== 'stack'\"\n [class.wu-table-stacked]=\"stacked\"\n [class.wu-table-loading]=\"loading\"\n [attr.aria-busy]=\"loading || null\"\n>\n <div *ngIf=\"showMask\" class=\"wu-table-mask p-datatable-loading-overlay p-component-overlay\">\n <i *ngIf=\"loadingIcon; else spinner\" [class]=\"'wu-table-loading-icon p-datatable-loading-icon ' + loadingIcon\" aria-hidden=\"true\"></i>\n <ng-template #spinner><span class=\"wu-table-spinner\" role=\"status\" [attr.aria-label]=\"t.loading\"></span></ng-template>\n </div>\n <div *ngIf=\"captionTemplate\" class=\"wu-table-header p-datatable-header\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorTop\"\n class=\"wu-table-paginator p-paginator-top\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div class=\"wu-table-wrapper p-datatable-wrapper\" [style.max-height]=\"wrapperMaxHeight\">\n <table class=\"wu-table-table p-datatable-table\" role=\"table\" [ngClass]=\"tableStyleClass || ''\" [ngStyle]=\"tableStyle || null\">\n <ng-container *ngIf=\"colgroupTemplate\"><ng-container *ngTemplateOutlet=\"colgroupTemplate; context: columnsContext\"></ng-container></ng-container>\n <thead *ngIf=\"headerTemplate\" class=\"wu-table-thead p-datatable-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: columnsContext\"></ng-container>\n </thead>\n <tbody *ngIf=\"frozenValue.length && frozenBodyTemplate\" class=\"wu-table-tbody wu-table-frozen-tbody p-datatable-frozen-tbody\">\n <ng-container *ngFor=\"let row of frozenValue; let i = index\">\n <ng-container *ngTemplateOutlet=\"frozenBodyTemplate; context: frozenContext(row, i)\"></ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"wu-table-tbody p-datatable-tbody\">\n <ng-container *ngIf=\"showLoadingBody; else rowsBody\">\n <ng-container *ngTemplateOutlet=\"loadingBodyTemplate; context: columnsContext\"></ng-container>\n </ng-container>\n <ng-template #rowsBody>\n <ng-container *ngIf=\"bodyTemplate\">\n <ng-container *ngFor=\"let row of pageRows; let i = index; trackBy: trackRow\">\n <ng-container *ngIf=\"groupHeaderTemplate && isGroupStart(i)\">\n <ng-container *ngTemplateOutlet=\"groupHeaderTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: rowContext(row, i)\"></ng-container>\n <ng-container *ngIf=\"rowExpansionTemplate && isRowExpanded(row)\">\n <ng-container *ngTemplateOutlet=\"rowExpansionTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"groupFooterTemplate && isGroupEnd(i)\">\n <ng-container *ngTemplateOutlet=\"groupFooterTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isEmpty && !loading\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"><ng-container *ngTemplateOutlet=\"emptyTemplate; context: columnsContext\"></ng-container></ng-container>\n <ng-template #defaultEmpty><tr class=\"wu-table-empty-row\"><td class=\"wu-table-empty\" colspan=\"100\">{{ t.emptyMessage }}</td></tr></ng-template>\n </ng-container>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"footerTemplate\" class=\"wu-table-tfoot p-datatable-tfoot\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: columnsContext\"></ng-container>\n </tfoot>\n </table>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorBottom\"\n class=\"wu-table-paginator p-paginator-bottom\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div *ngIf=\"summaryTemplate\" class=\"wu-table-footer p-datatable-footer\">\n <ng-container *ngTemplateOutlet=\"summaryTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-table,wu-datatable{display:block;min-width:0}.wu-table{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-table-flex{height:100%}.wu-table-header{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:var(--wu-table-header-border-width);background:var(--wu-table-header-bg);color:var(--wu-text);font-weight:var(--wu-table-header-weight)}.wu-table-footer{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-header-bg);font-weight:var(--wu-table-header-weight)}.wu-table-wrapper{position:relative;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.wu-table-scrollable .wu-table-wrapper{overflow:auto;overscroll-behavior:contain}.wu-table-flex .wu-table-wrapper{flex:1 1 auto;min-height:0}.wu-table-table{width:100%;border-collapse:separate;border-spacing:0}.wu-table-thead>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight);text-align:start;vertical-align:middle;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-table-scrollable .wu-table-thead>tr>th{position:sticky;top:0;z-index:1}.wu-table-tbody>tr{height:var(--wu-table-row-height);background:var(--wu-table-row-bg);color:var(--wu-text);transition:background-color var(--wu-transition)}.wu-table-tbody>tr>td{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;text-align:start;vertical-align:middle}.wu-table-tfoot>tr>td,.wu-table-tfoot>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr:nth-child(even){background:var(--wu-table-stripe-bg, var(--wu-table-row-bg))}.wu-table-striped .wu-table-tbody>tr:nth-child(even){background:var(--wu-table-row-striped-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover{background:var(--wu-table-row-hover-bg)}.wu-table-tbody>tr.wu-row-contextmenu{outline:2px solid var(--wu-field-focus-border);outline-offset:-2px}.wu-table-tbody>tr.wu-row-selected,.wu-table-hoverable .wu-table-tbody>tr.wu-row-selected:hover{background:var(--wu-table-row-selected-bg);color:var(--wu-table-row-selected-color)}.wu-selectable-row{cursor:pointer}.wu-selectable-row:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-table-gridlines .wu-table-header{border-width:1px}.wu-table-gridlines .wu-table-thead>tr>th,.wu-table-gridlines .wu-table-tbody>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>th{border-width:0 1px 1px 0}.wu-table-gridlines .wu-table-thead>tr>th:first-child,.wu-table-gridlines .wu-table-tbody>tr>td:first-child,.wu-table-gridlines .wu-table-tfoot>tr>:first-child{border-left-width:1px}.wu-table-gridlines .wu-table-thead>tr:first-child>th{border-top-width:1px}.wu-table-sm .wu-table-thead>tr>th,.wu-table-sm .wu-table-tbody>tr>td,.wu-table-sm .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * .5) calc(var(--wu-table-cell-padding-x) * .5)}.wu-table-lg .wu-table-thead>tr>th,.wu-table-lg .wu-table-tbody>tr>td,.wu-table-lg .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * 1.25) calc(var(--wu-table-cell-padding-x) * 1.25)}.wu-table-empty{color:var(--wu-text-muted);text-align:center!important}.wu-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.wu-sortable-column:not(.wu-sorted):hover{background:var(--wu-table-head-hover-bg)}.wu-sortable-column.wu-sorted{background:var(--wu-table-sorted-bg);color:var(--wu-table-sorted-color)}.wu-sortable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-sorticon{display:inline-flex;align-items:center;gap:.125rem;margin-left:.375rem;vertical-align:middle;color:var(--wu-text-muted)}.wu-sorticon-svg{width:.875rem;height:.875rem}.wu-sorticon-asc,.wu-sorticon-desc{color:var(--wu-table-sorted-color)}.wu-sorticon-asc .wu-sorticon-down,.wu-sorticon-desc .wu-sorticon-up{opacity:.25}.wu-sorticon-badge{display:inline-grid;place-items:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--wu-table-sorted-color);color:var(--wu-primary-contrast);font-size:.6875rem;font-weight:700;line-height:1}.wu-sorticon-badge[hidden]{display:none}.wu-table-checkbox{display:inline-flex;vertical-align:middle}.wu-table-mask{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:color-mix(in srgb,var(--wu-card-bg) 60%,transparent)}.wu-table-spinner{width:2rem;height:2rem;border:3px solid var(--wu-primary-color);border-right-color:transparent;border-radius:50%;animation:wu-table-spin .8s linear infinite}.wu-table-loading-icon{font-size:2rem;color:var(--wu-primary-color)}@keyframes wu-table-spin{to{transform:rotate(360deg)}}.wu-table-paginator .wu-paginator{border-width:0 0 1px}.wu-table .p-column-title{display:none}.wu-table-stacked .wu-table-thead>tr>th,.wu-table-stacked .wu-table-tfoot>tr>*{display:none}.wu-table-stacked .wu-table-tbody>tr{display:block;height:auto;border-bottom:1px solid var(--wu-table-border-color)}.wu-table-stacked .wu-table-tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:auto!important;border:0!important;text-align:end}.wu-table-stacked .wu-table-tbody>tr>td>.p-column-title{display:inline-block;flex:none;min-width:40%;color:var(--wu-text-muted);font-weight:var(--wu-table-head-weight);text-align:start}.wu-table-stacked .wu-table-tbody>tr.wu-table-empty-row>td{justify-content:center}.wu-table-thead>tr>.wu-frozen-column,.wu-table-tbody>tr>.wu-frozen-column,.wu-table-tfoot>tr>.wu-frozen-column{position:sticky;z-index:1}.wu-table-thead>tr>.wu-frozen-column{z-index:2}.wu-table-tbody>tr>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-stripe-bg),var(--wu-table-stripe-bg)),var(--wu-card-bg)}.wu-table-striped .wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-striped-bg),var(--wu-table-row-striped-bg)),var(--wu-card-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-hover-bg),var(--wu-table-row-hover-bg)),var(--wu-card-bg)}.wu-table-tbody>tr.wu-row-selected>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-selected-bg),var(--wu-table-row-selected-bg)),var(--wu-card-bg)}.wu-table-stacked .wu-frozen-column{position:static}.wu-table-frozen-tbody>tr>td{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-scrollable .wu-table-frozen-tbody>tr>td{position:sticky;top:var(--_table-head-height, 0px);z-index:1}.wu-table-frozen-tbody>tr:last-child>td{border-bottom:2px solid var(--wu-table-border-color)}.wu-reorderable-row-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.wu-reorderable-row-handle:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:2px;border-radius:var(--wu-radius-sm)}.wu-table-tbody>tr.wu-row-dragging{opacity:.5}.wu-table-tbody>tr.wu-row-drop-above>td{box-shadow:inset 0 2px 0 var(--wu-primary-color)}.wu-table-tbody>tr.wu-row-drop-below>td{box-shadow:inset 0 -2px 0 var(--wu-primary-color)}wu-tableradiobutton{display:inline-flex}.wu-resizable-column{position:relative;overflow:hidden;text-overflow:ellipsis}.wu-column-resizer{position:absolute;top:0;right:0;bottom:0;width:.5rem;cursor:col-resize;touch-action:none}.wu-resizable-column:not(.wu-resizable-column-off)>.wu-column-resizer:after{content:\"\";position:absolute;top:25%;right:2px;bottom:25%;width:2px;border-radius:1px;background:transparent;transition:background-color var(--wu-transition)}.wu-resizable-column:hover>.wu-column-resizer:after,.wu-column-resizing>.wu-column-resizer:after{background:var(--wu-primary-color)}th:not(.wu-resizable-column)>.wu-column-resizer{display:none}.wu-reorderable-column{cursor:grab}.wu-column-dragging{opacity:.6}.wu-col-drop-before{box-shadow:inset 2px 0 0 var(--wu-primary-color)}.wu-col-drop-after{box-shadow:inset -2px 0 0 var(--wu-primary-color)}.wu-editable-column{cursor:pointer}.wu-editable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-editable-column.wu-cell-editing{padding-top:.25rem;padding-bottom:.25rem;cursor:default}.wu-cell-editing :is(input,select,textarea,.wu-inputtext),.wu-row-editing :is(input,select,textarea,.wu-inputtext){box-sizing:border-box;width:100%;max-width:100%}wu-celleditor{display:contents}.wu-table-tbody>tr.wu-rowgroup-header{background:var(--wu-table-group-bg);color:var(--wu-table-group-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr.wu-rowgroup-header>:is(td,th):first-child{box-shadow:inset var(--wu-table-group-accent-width) 0 0 var(--wu-primary-color)}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer){background:var(--wu-table-row-bg);color:var(--wu-text-muted);font-size:.9375em}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer)>td{border-bottom-width:2px}.wu-row-toggler[aria-expanded=true] .wu-row-toggler-icon{transform:rotate(90deg)}:is(wu-columnfilter,wu-column-filter){display:block;min-width:0}.wu-column-filter{display:flex;align-items:center;gap:.25rem;min-width:0;font-weight:400}.wu-column-filter>:first-child:not(button){flex:1 1 auto;min-width:0}.wu-column-filter-input.wu-inputtext{box-sizing:border-box;width:100%;min-width:0}.wu-column-filter-clear,.wu-column-filter-bool{display:grid;flex:none;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}.wu-column-filter-clear{width:2rem;height:2rem;border:0;border-radius:50%;background:none;color:var(--wu-text-muted)}.wu-column-filter-clear:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-column-filter-bool{width:1.5rem;height:1.5rem;border:1px solid var(--wu-field-border);border-radius:var(--wu-radius-sm);background:var(--wu-field-bg);color:var(--wu-primary-color)}.wu-column-filter-clear svg,.wu-column-filter-bool svg{width:.875rem;height:.875rem}.wu-column-filter-menu{display:inline-flex;vertical-align:middle}.wu-column-filter-menu-button.wu-column-filter-active{background:var(--wu-primary-soft);color:var(--wu-primary-soft-text)}.wu-column-filter-menu-button svg{width:1rem;height:1rem}.wu-column-filter-overlay{position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;gap:.625rem;box-sizing:border-box;width:min(18rem,calc(100vw - 1rem));margin:0;padding:.75rem;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-card-bg);color:var(--wu-text);box-shadow:var(--wu-shadow-md);font-family:var(--wu-font-family);font-size:var(--wu-font-size);font-weight:400;text-align:start}.wu-column-filter-rule{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.625rem;border-bottom:1px solid var(--wu-border)}.wu-column-filter-select.wu-inputtext,.wu-column-filter-rule .wu-inputtext{box-sizing:border-box;width:100%}.wu-column-filter-remove,.wu-column-filter-add{align-self:flex-start}.wu-column-filter-buttons{display:flex;justify-content:space-between;gap:.5rem}.wu-column-filter-clear:focus-visible,.wu-column-filter-bool:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset)}@media (prefers-reduced-motion: reduce){.wu-table-spinner{animation-duration:2s}}@media (pointer: coarse){.wu-reorderable-row-handle{position:relative}.wu-reorderable-row-handle:after{content:\"\";position:absolute;top:50%;right:-.5rem;left:-.5rem;height:max(100%,24px);translate:0 -50%}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: WuPaginator, selector: "wu-paginator" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1461
|
+
WuTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuTable, isStandalone: true, selector: "wu-table, wu-datatable", host: { classAttribute: "wu-table-host" }, providers: [{ provide: ɵWU_TABLE, useExisting: forwardRef(() => WuTable) }], exportAs: ["wuTable"], usesInheritance: true, ngImport: i0, template: "<div\n class=\"wu-table p-datatable p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"style || null\"\n [class.wu-table-gridlines]=\"showGridlines\"\n [class.p-datatable-gridlines]=\"showGridlines\"\n [class.wu-table-striped]=\"stripedRows\"\n [class.p-datatable-striped]=\"stripedRows\"\n [class.wu-table-sm]=\"sizeKey === 'sm'\"\n [class.p-datatable-sm]=\"sizeKey === 'sm'\"\n [class.wu-table-lg]=\"sizeKey === 'lg'\"\n [class.p-datatable-lg]=\"sizeKey === 'lg'\"\n [class.wu-table-hoverable]=\"rowHover\"\n [class.p-datatable-hoverable-rows]=\"rowHover\"\n [class.wu-table-scrollable]=\"scrollable\"\n [class.p-datatable-scrollable]=\"scrollable\"\n [class.wu-table-flex]=\"flexScroll\"\n [class.wu-table-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-scroll]=\"responsiveLayout !== 'stack'\"\n [class.wu-table-stacked]=\"stacked\"\n [class.wu-table-loading]=\"loading\"\n [attr.aria-busy]=\"loading || null\"\n>\n <div *ngIf=\"showMask\" class=\"wu-table-mask p-datatable-loading-overlay p-component-overlay\">\n <i *ngIf=\"loadingIcon; else spinner\" [class]=\"'wu-table-loading-icon p-datatable-loading-icon ' + loadingIcon\" aria-hidden=\"true\"></i>\n <ng-template #spinner><span class=\"wu-table-spinner\" role=\"status\" [attr.aria-label]=\"t.loading\"></span></ng-template>\n </div>\n <div *ngIf=\"captionTemplate\" class=\"wu-table-header p-datatable-header\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorTop\"\n class=\"wu-table-paginator p-paginator-top\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div class=\"wu-table-wrapper p-datatable-wrapper\" [style.max-height]=\"wrapperMaxHeight\">\n <table class=\"wu-table-table p-datatable-table\" role=\"table\" [ngClass]=\"tableStyleClass || ''\" [ngStyle]=\"tableStyle || null\">\n <ng-container *ngIf=\"colgroupTemplate\"><ng-container *ngTemplateOutlet=\"colgroupTemplate; context: columnsContext\"></ng-container></ng-container>\n <thead *ngIf=\"headerTemplate\" class=\"wu-table-thead p-datatable-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: columnsContext\"></ng-container>\n </thead>\n <tbody *ngIf=\"frozenValue.length && frozenBodyTemplate\" class=\"wu-table-tbody wu-table-frozen-tbody p-datatable-frozen-tbody\">\n <ng-container *ngFor=\"let row of frozenValue; let i = index\">\n <ng-container *ngTemplateOutlet=\"frozenBodyTemplate; context: frozenContext(row, i)\"></ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"wu-table-tbody p-datatable-tbody\">\n <ng-container *ngIf=\"showLoadingBody; else rowsBody\">\n <ng-container *ngTemplateOutlet=\"loadingBodyTemplate; context: columnsContext\"></ng-container>\n </ng-container>\n <ng-template #rowsBody>\n <ng-container *ngIf=\"bodyTemplate\">\n <ng-container *ngFor=\"let row of pageRows; let i = index; trackBy: trackRow\">\n <ng-container *ngIf=\"groupHeaderTemplate && isGroupStart(i)\">\n <ng-container *ngTemplateOutlet=\"groupHeaderTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: rowContext(row, i)\"></ng-container>\n <ng-container *ngIf=\"rowExpansionTemplate && isRowExpanded(row)\">\n <ng-container *ngTemplateOutlet=\"rowExpansionTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"groupFooterTemplate && isGroupEnd(i)\">\n <ng-container *ngTemplateOutlet=\"groupFooterTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isEmpty && !loading\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"><ng-container *ngTemplateOutlet=\"emptyTemplate; context: columnsContext\"></ng-container></ng-container>\n <ng-template #defaultEmpty><tr class=\"wu-table-empty-row\"><td class=\"wu-table-empty\" colspan=\"100\">{{ t.emptyMessage }}</td></tr></ng-template>\n </ng-container>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"footerTemplate\" class=\"wu-table-tfoot p-datatable-tfoot\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: columnsContext\"></ng-container>\n </tfoot>\n </table>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorBottom\"\n class=\"wu-table-paginator p-paginator-bottom\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div *ngIf=\"summaryTemplate\" class=\"wu-table-footer p-datatable-footer\">\n <ng-container *ngTemplateOutlet=\"summaryTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-table,wu-datatable{display:block;min-width:0}.wu-table{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-table-flex{height:100%}.wu-table-header{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:var(--wu-table-header-border-width);background:var(--wu-table-header-bg);color:var(--wu-text);font-weight:var(--wu-table-header-weight)}.wu-table-footer{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-header-bg);font-weight:var(--wu-table-header-weight)}.wu-table-wrapper{position:relative;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.wu-table-scrollable .wu-table-wrapper{overflow:auto;overscroll-behavior-x:contain}.wu-table-flex .wu-table-wrapper{flex:1 1 auto;min-height:0}.wu-table-table{width:100%;border-collapse:separate;border-spacing:0}.wu-table-thead>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight);text-align:start;vertical-align:middle;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-table-scrollable .wu-table-thead>tr>th{position:sticky;top:0;z-index:1}.wu-table-tbody>tr{height:var(--wu-table-row-height);background:var(--wu-table-row-bg);color:var(--wu-text);transition:background-color var(--wu-transition)}.wu-table-tbody>tr>td{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;text-align:start;vertical-align:middle}.wu-table-tfoot>tr>td,.wu-table-tfoot>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr:nth-child(even){background:var(--wu-table-stripe-bg, var(--wu-table-row-bg))}.wu-table-striped .wu-table-tbody>tr:nth-child(even){background:var(--wu-table-row-striped-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover{background:var(--wu-table-row-hover-bg)}.wu-table-tbody>tr.wu-row-contextmenu{outline:2px solid var(--wu-field-focus-border);outline-offset:-2px}.wu-table-tbody>tr.wu-row-selected,.wu-table-hoverable .wu-table-tbody>tr.wu-row-selected:hover{background:var(--wu-table-row-selected-bg);color:var(--wu-table-row-selected-color)}.wu-selectable-row{cursor:pointer}.wu-selectable-row:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-table-gridlines .wu-table-header{border-width:1px}.wu-table-gridlines .wu-table-thead>tr>th,.wu-table-gridlines .wu-table-tbody>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>th{border-width:0 1px 1px 0}.wu-table-gridlines .wu-table-thead>tr>th:first-child,.wu-table-gridlines .wu-table-tbody>tr>td:first-child,.wu-table-gridlines .wu-table-tfoot>tr>:first-child{border-left-width:1px}.wu-table-gridlines .wu-table-thead>tr:first-child>th{border-top-width:1px}.wu-table-sm .wu-table-thead>tr>th,.wu-table-sm .wu-table-tbody>tr>td,.wu-table-sm .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * .5) calc(var(--wu-table-cell-padding-x) * .5)}.wu-table-lg .wu-table-thead>tr>th,.wu-table-lg .wu-table-tbody>tr>td,.wu-table-lg .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * 1.25) calc(var(--wu-table-cell-padding-x) * 1.25)}.wu-table-empty{color:var(--wu-text-muted);text-align:center!important}.wu-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.wu-sortable-column:not(.wu-sorted):hover{background:var(--wu-table-head-hover-bg)}.wu-sortable-column.wu-sorted{background:var(--wu-table-sorted-bg);color:var(--wu-table-sorted-color)}.wu-sortable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-sorticon{display:inline-flex;align-items:center;gap:.125rem;margin-left:.375rem;vertical-align:middle;color:var(--wu-text-muted)}.wu-sorticon-svg{width:.875rem;height:.875rem}.wu-sorticon-asc,.wu-sorticon-desc{color:var(--wu-table-sorted-color)}.wu-sorticon-asc .wu-sorticon-down,.wu-sorticon-desc .wu-sorticon-up{opacity:.25}.wu-sorticon-badge{display:inline-grid;place-items:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--wu-table-sorted-color);color:var(--wu-primary-contrast);font-size:.6875rem;font-weight:700;line-height:1}.wu-sorticon-badge[hidden]{display:none}.wu-table-checkbox{display:inline-flex;vertical-align:middle}.wu-table-mask{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:color-mix(in srgb,var(--wu-card-bg) 60%,transparent)}.wu-table-spinner{width:2rem;height:2rem;border:3px solid var(--wu-primary-color);border-right-color:transparent;border-radius:50%;animation:wu-table-spin .8s linear infinite}.wu-table-loading-icon{font-size:2rem;color:var(--wu-primary-color)}@keyframes wu-table-spin{to{transform:rotate(360deg)}}.wu-table-paginator .wu-paginator{border-width:0 0 1px}.wu-table .p-column-title{display:none}.wu-table-stacked .wu-table-thead>tr>th,.wu-table-stacked .wu-table-tfoot>tr>*{display:none}.wu-table-stacked .wu-table-tbody>tr{display:block;height:auto;border-bottom:1px solid var(--wu-table-border-color)}.wu-table-stacked .wu-table-tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:auto!important;border:0!important;text-align:end}.wu-table-stacked .wu-table-tbody>tr>td>.p-column-title{display:inline-block;flex:none;min-width:40%;color:var(--wu-text-muted);font-weight:var(--wu-table-head-weight);text-align:start}.wu-table-stacked .wu-table-tbody>tr.wu-table-empty-row>td{justify-content:center}.wu-table-thead>tr>.wu-frozen-column,.wu-table-tbody>tr>.wu-frozen-column,.wu-table-tfoot>tr>.wu-frozen-column{position:sticky;z-index:1}.wu-table-thead>tr>.wu-frozen-column{z-index:2}.wu-table-tbody>tr>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-stripe-bg),var(--wu-table-stripe-bg)),var(--wu-card-bg)}.wu-table-striped .wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-striped-bg),var(--wu-table-row-striped-bg)),var(--wu-card-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-hover-bg),var(--wu-table-row-hover-bg)),var(--wu-card-bg)}.wu-table-tbody>tr.wu-row-selected>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-selected-bg),var(--wu-table-row-selected-bg)),var(--wu-card-bg)}.wu-table-stacked .wu-frozen-column{position:static}.wu-table-frozen-tbody>tr>td{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-scrollable .wu-table-frozen-tbody>tr>td{position:sticky;top:var(--_table-head-height, 0px);z-index:1}.wu-table-frozen-tbody>tr:last-child>td{border-bottom:2px solid var(--wu-table-border-color)}.wu-reorderable-row-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.wu-reorderable-row-handle:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:2px;border-radius:var(--wu-radius-sm)}.wu-table-tbody>tr.wu-row-dragging{opacity:.5}.wu-table-tbody>tr.wu-row-drop-above>td{box-shadow:inset 0 2px 0 var(--wu-primary-color)}.wu-table-tbody>tr.wu-row-drop-below>td{box-shadow:inset 0 -2px 0 var(--wu-primary-color)}wu-tableradiobutton{display:inline-flex}.wu-resizable-column{position:relative;overflow:hidden;text-overflow:ellipsis}.wu-column-resizer{position:absolute;top:0;right:0;bottom:0;width:.5rem;cursor:col-resize;touch-action:none}.wu-resizable-column:not(.wu-resizable-column-off)>.wu-column-resizer:after{content:\"\";position:absolute;top:25%;right:2px;bottom:25%;width:2px;border-radius:1px;background:transparent;transition:background-color var(--wu-transition)}.wu-resizable-column:hover>.wu-column-resizer:after,.wu-column-resizing>.wu-column-resizer:after{background:var(--wu-primary-color)}th:not(.wu-resizable-column)>.wu-column-resizer{display:none}.wu-reorderable-column{cursor:grab}.wu-column-dragging{opacity:.6}.wu-col-drop-before{box-shadow:inset 2px 0 0 var(--wu-primary-color)}.wu-col-drop-after{box-shadow:inset -2px 0 0 var(--wu-primary-color)}.wu-editable-column{cursor:pointer}.wu-editable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-editable-column.wu-cell-editing{padding-top:.25rem;padding-bottom:.25rem;cursor:default}.wu-cell-editing :is(input,select,textarea,.wu-inputtext),.wu-row-editing :is(input,select,textarea,.wu-inputtext){box-sizing:border-box;width:100%;max-width:100%}wu-celleditor{display:contents}.wu-table-tbody>tr.wu-rowgroup-header{background:var(--wu-table-group-bg);color:var(--wu-table-group-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr.wu-rowgroup-header>:is(td,th):first-child{box-shadow:inset var(--wu-table-group-accent-width) 0 0 var(--wu-primary-color)}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer){background:var(--wu-table-row-bg);color:var(--wu-text-muted);font-size:.9375em}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer)>td{border-bottom-width:2px}.wu-row-toggler[aria-expanded=true] .wu-row-toggler-icon{transform:rotate(90deg)}:is(wu-columnfilter,wu-column-filter){display:block;min-width:0}.wu-column-filter{display:flex;align-items:center;gap:.25rem;min-width:0;font-weight:400}.wu-column-filter>:first-child:not(button){flex:1 1 auto;min-width:0}.wu-column-filter-input.wu-inputtext{box-sizing:border-box;width:100%;min-width:0}.wu-column-filter-clear,.wu-column-filter-bool{display:grid;flex:none;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}.wu-column-filter-clear{width:2rem;height:2rem;border:0;border-radius:50%;background:none;color:var(--wu-text-muted)}.wu-column-filter-clear:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-column-filter-bool{width:1.5rem;height:1.5rem;border:1px solid var(--wu-field-border);border-radius:var(--wu-radius-sm);background:var(--wu-field-bg);color:var(--wu-primary-color)}.wu-column-filter-clear svg,.wu-column-filter-bool svg{width:.875rem;height:.875rem}.wu-column-filter-menu{display:inline-flex;vertical-align:middle}.wu-column-filter-menu-button.wu-column-filter-active{background:var(--wu-primary-soft);color:var(--wu-primary-soft-text)}.wu-column-filter-menu-button svg{width:1rem;height:1rem}.wu-column-filter-overlay{position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;gap:.625rem;box-sizing:border-box;width:min(18rem,calc(100vw - 1rem));margin:0;padding:.75rem;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-card-bg);color:var(--wu-text);box-shadow:var(--wu-shadow-md);font-family:var(--wu-font-family);font-size:var(--wu-font-size);font-weight:400;text-align:start}.wu-column-filter-rule{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.625rem;border-bottom:1px solid var(--wu-border)}.wu-column-filter-select.wu-inputtext,.wu-column-filter-rule .wu-inputtext{box-sizing:border-box;width:100%}.wu-column-filter-remove,.wu-column-filter-add{align-self:flex-start}.wu-column-filter-buttons{display:flex;justify-content:space-between;gap:.5rem}.wu-column-filter-clear:focus-visible,.wu-column-filter-bool:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset)}@media (prefers-reduced-motion: reduce){.wu-table-spinner{animation-duration:2s}}@media (pointer: coarse){.wu-reorderable-row-handle{position:relative}.wu-reorderable-row-handle:after{content:\"\";position:absolute;top:50%;right:-.5rem;left:-.5rem;height:max(100%,24px);translate:0 -50%}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: WuPaginator, selector: "wu-paginator" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1462
1462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuTable, decorators: [{
|
|
1463
1463
|
type: Component,
|
|
1464
|
-
args: [{ selector: 'wu-table, wu-datatable', standalone: true, exportAs: 'wuTable', imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, WuPaginator], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: ɵWU_TABLE, useExisting: forwardRef(() => WuTable) }], host: { class: 'wu-table-host' }, template: "<div\n class=\"wu-table p-datatable p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"style || null\"\n [class.wu-table-gridlines]=\"showGridlines\"\n [class.p-datatable-gridlines]=\"showGridlines\"\n [class.wu-table-striped]=\"stripedRows\"\n [class.p-datatable-striped]=\"stripedRows\"\n [class.wu-table-sm]=\"sizeKey === 'sm'\"\n [class.p-datatable-sm]=\"sizeKey === 'sm'\"\n [class.wu-table-lg]=\"sizeKey === 'lg'\"\n [class.p-datatable-lg]=\"sizeKey === 'lg'\"\n [class.wu-table-hoverable]=\"rowHover\"\n [class.p-datatable-hoverable-rows]=\"rowHover\"\n [class.wu-table-scrollable]=\"scrollable\"\n [class.p-datatable-scrollable]=\"scrollable\"\n [class.wu-table-flex]=\"flexScroll\"\n [class.wu-table-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-scroll]=\"responsiveLayout !== 'stack'\"\n [class.wu-table-stacked]=\"stacked\"\n [class.wu-table-loading]=\"loading\"\n [attr.aria-busy]=\"loading || null\"\n>\n <div *ngIf=\"showMask\" class=\"wu-table-mask p-datatable-loading-overlay p-component-overlay\">\n <i *ngIf=\"loadingIcon; else spinner\" [class]=\"'wu-table-loading-icon p-datatable-loading-icon ' + loadingIcon\" aria-hidden=\"true\"></i>\n <ng-template #spinner><span class=\"wu-table-spinner\" role=\"status\" [attr.aria-label]=\"t.loading\"></span></ng-template>\n </div>\n <div *ngIf=\"captionTemplate\" class=\"wu-table-header p-datatable-header\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorTop\"\n class=\"wu-table-paginator p-paginator-top\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div class=\"wu-table-wrapper p-datatable-wrapper\" [style.max-height]=\"wrapperMaxHeight\">\n <table class=\"wu-table-table p-datatable-table\" role=\"table\" [ngClass]=\"tableStyleClass || ''\" [ngStyle]=\"tableStyle || null\">\n <ng-container *ngIf=\"colgroupTemplate\"><ng-container *ngTemplateOutlet=\"colgroupTemplate; context: columnsContext\"></ng-container></ng-container>\n <thead *ngIf=\"headerTemplate\" class=\"wu-table-thead p-datatable-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: columnsContext\"></ng-container>\n </thead>\n <tbody *ngIf=\"frozenValue.length && frozenBodyTemplate\" class=\"wu-table-tbody wu-table-frozen-tbody p-datatable-frozen-tbody\">\n <ng-container *ngFor=\"let row of frozenValue; let i = index\">\n <ng-container *ngTemplateOutlet=\"frozenBodyTemplate; context: frozenContext(row, i)\"></ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"wu-table-tbody p-datatable-tbody\">\n <ng-container *ngIf=\"showLoadingBody; else rowsBody\">\n <ng-container *ngTemplateOutlet=\"loadingBodyTemplate; context: columnsContext\"></ng-container>\n </ng-container>\n <ng-template #rowsBody>\n <ng-container *ngIf=\"bodyTemplate\">\n <ng-container *ngFor=\"let row of pageRows; let i = index; trackBy: trackRow\">\n <ng-container *ngIf=\"groupHeaderTemplate && isGroupStart(i)\">\n <ng-container *ngTemplateOutlet=\"groupHeaderTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: rowContext(row, i)\"></ng-container>\n <ng-container *ngIf=\"rowExpansionTemplate && isRowExpanded(row)\">\n <ng-container *ngTemplateOutlet=\"rowExpansionTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"groupFooterTemplate && isGroupEnd(i)\">\n <ng-container *ngTemplateOutlet=\"groupFooterTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isEmpty && !loading\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"><ng-container *ngTemplateOutlet=\"emptyTemplate; context: columnsContext\"></ng-container></ng-container>\n <ng-template #defaultEmpty><tr class=\"wu-table-empty-row\"><td class=\"wu-table-empty\" colspan=\"100\">{{ t.emptyMessage }}</td></tr></ng-template>\n </ng-container>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"footerTemplate\" class=\"wu-table-tfoot p-datatable-tfoot\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: columnsContext\"></ng-container>\n </tfoot>\n </table>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorBottom\"\n class=\"wu-table-paginator p-paginator-bottom\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div *ngIf=\"summaryTemplate\" class=\"wu-table-footer p-datatable-footer\">\n <ng-container *ngTemplateOutlet=\"summaryTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-table,wu-datatable{display:block;min-width:0}.wu-table{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-table-flex{height:100%}.wu-table-header{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:var(--wu-table-header-border-width);background:var(--wu-table-header-bg);color:var(--wu-text);font-weight:var(--wu-table-header-weight)}.wu-table-footer{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-header-bg);font-weight:var(--wu-table-header-weight)}.wu-table-wrapper{position:relative;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.wu-table-scrollable .wu-table-wrapper{overflow:auto;overscroll-behavior:contain}.wu-table-flex .wu-table-wrapper{flex:1 1 auto;min-height:0}.wu-table-table{width:100%;border-collapse:separate;border-spacing:0}.wu-table-thead>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight);text-align:start;vertical-align:middle;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-table-scrollable .wu-table-thead>tr>th{position:sticky;top:0;z-index:1}.wu-table-tbody>tr{height:var(--wu-table-row-height);background:var(--wu-table-row-bg);color:var(--wu-text);transition:background-color var(--wu-transition)}.wu-table-tbody>tr>td{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;text-align:start;vertical-align:middle}.wu-table-tfoot>tr>td,.wu-table-tfoot>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr:nth-child(even){background:var(--wu-table-stripe-bg, var(--wu-table-row-bg))}.wu-table-striped .wu-table-tbody>tr:nth-child(even){background:var(--wu-table-row-striped-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover{background:var(--wu-table-row-hover-bg)}.wu-table-tbody>tr.wu-row-contextmenu{outline:2px solid var(--wu-field-focus-border);outline-offset:-2px}.wu-table-tbody>tr.wu-row-selected,.wu-table-hoverable .wu-table-tbody>tr.wu-row-selected:hover{background:var(--wu-table-row-selected-bg);color:var(--wu-table-row-selected-color)}.wu-selectable-row{cursor:pointer}.wu-selectable-row:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-table-gridlines .wu-table-header{border-width:1px}.wu-table-gridlines .wu-table-thead>tr>th,.wu-table-gridlines .wu-table-tbody>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>th{border-width:0 1px 1px 0}.wu-table-gridlines .wu-table-thead>tr>th:first-child,.wu-table-gridlines .wu-table-tbody>tr>td:first-child,.wu-table-gridlines .wu-table-tfoot>tr>:first-child{border-left-width:1px}.wu-table-gridlines .wu-table-thead>tr:first-child>th{border-top-width:1px}.wu-table-sm .wu-table-thead>tr>th,.wu-table-sm .wu-table-tbody>tr>td,.wu-table-sm .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * .5) calc(var(--wu-table-cell-padding-x) * .5)}.wu-table-lg .wu-table-thead>tr>th,.wu-table-lg .wu-table-tbody>tr>td,.wu-table-lg .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * 1.25) calc(var(--wu-table-cell-padding-x) * 1.25)}.wu-table-empty{color:var(--wu-text-muted);text-align:center!important}.wu-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.wu-sortable-column:not(.wu-sorted):hover{background:var(--wu-table-head-hover-bg)}.wu-sortable-column.wu-sorted{background:var(--wu-table-sorted-bg);color:var(--wu-table-sorted-color)}.wu-sortable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-sorticon{display:inline-flex;align-items:center;gap:.125rem;margin-left:.375rem;vertical-align:middle;color:var(--wu-text-muted)}.wu-sorticon-svg{width:.875rem;height:.875rem}.wu-sorticon-asc,.wu-sorticon-desc{color:var(--wu-table-sorted-color)}.wu-sorticon-asc .wu-sorticon-down,.wu-sorticon-desc .wu-sorticon-up{opacity:.25}.wu-sorticon-badge{display:inline-grid;place-items:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--wu-table-sorted-color);color:var(--wu-primary-contrast);font-size:.6875rem;font-weight:700;line-height:1}.wu-sorticon-badge[hidden]{display:none}.wu-table-checkbox{display:inline-flex;vertical-align:middle}.wu-table-mask{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:color-mix(in srgb,var(--wu-card-bg) 60%,transparent)}.wu-table-spinner{width:2rem;height:2rem;border:3px solid var(--wu-primary-color);border-right-color:transparent;border-radius:50%;animation:wu-table-spin .8s linear infinite}.wu-table-loading-icon{font-size:2rem;color:var(--wu-primary-color)}@keyframes wu-table-spin{to{transform:rotate(360deg)}}.wu-table-paginator .wu-paginator{border-width:0 0 1px}.wu-table .p-column-title{display:none}.wu-table-stacked .wu-table-thead>tr>th,.wu-table-stacked .wu-table-tfoot>tr>*{display:none}.wu-table-stacked .wu-table-tbody>tr{display:block;height:auto;border-bottom:1px solid var(--wu-table-border-color)}.wu-table-stacked .wu-table-tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:auto!important;border:0!important;text-align:end}.wu-table-stacked .wu-table-tbody>tr>td>.p-column-title{display:inline-block;flex:none;min-width:40%;color:var(--wu-text-muted);font-weight:var(--wu-table-head-weight);text-align:start}.wu-table-stacked .wu-table-tbody>tr.wu-table-empty-row>td{justify-content:center}.wu-table-thead>tr>.wu-frozen-column,.wu-table-tbody>tr>.wu-frozen-column,.wu-table-tfoot>tr>.wu-frozen-column{position:sticky;z-index:1}.wu-table-thead>tr>.wu-frozen-column{z-index:2}.wu-table-tbody>tr>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-stripe-bg),var(--wu-table-stripe-bg)),var(--wu-card-bg)}.wu-table-striped .wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-striped-bg),var(--wu-table-row-striped-bg)),var(--wu-card-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-hover-bg),var(--wu-table-row-hover-bg)),var(--wu-card-bg)}.wu-table-tbody>tr.wu-row-selected>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-selected-bg),var(--wu-table-row-selected-bg)),var(--wu-card-bg)}.wu-table-stacked .wu-frozen-column{position:static}.wu-table-frozen-tbody>tr>td{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-scrollable .wu-table-frozen-tbody>tr>td{position:sticky;top:var(--_table-head-height, 0px);z-index:1}.wu-table-frozen-tbody>tr:last-child>td{border-bottom:2px solid var(--wu-table-border-color)}.wu-reorderable-row-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.wu-reorderable-row-handle:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:2px;border-radius:var(--wu-radius-sm)}.wu-table-tbody>tr.wu-row-dragging{opacity:.5}.wu-table-tbody>tr.wu-row-drop-above>td{box-shadow:inset 0 2px 0 var(--wu-primary-color)}.wu-table-tbody>tr.wu-row-drop-below>td{box-shadow:inset 0 -2px 0 var(--wu-primary-color)}wu-tableradiobutton{display:inline-flex}.wu-resizable-column{position:relative;overflow:hidden;text-overflow:ellipsis}.wu-column-resizer{position:absolute;top:0;right:0;bottom:0;width:.5rem;cursor:col-resize;touch-action:none}.wu-resizable-column:not(.wu-resizable-column-off)>.wu-column-resizer:after{content:\"\";position:absolute;top:25%;right:2px;bottom:25%;width:2px;border-radius:1px;background:transparent;transition:background-color var(--wu-transition)}.wu-resizable-column:hover>.wu-column-resizer:after,.wu-column-resizing>.wu-column-resizer:after{background:var(--wu-primary-color)}th:not(.wu-resizable-column)>.wu-column-resizer{display:none}.wu-reorderable-column{cursor:grab}.wu-column-dragging{opacity:.6}.wu-col-drop-before{box-shadow:inset 2px 0 0 var(--wu-primary-color)}.wu-col-drop-after{box-shadow:inset -2px 0 0 var(--wu-primary-color)}.wu-editable-column{cursor:pointer}.wu-editable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-editable-column.wu-cell-editing{padding-top:.25rem;padding-bottom:.25rem;cursor:default}.wu-cell-editing :is(input,select,textarea,.wu-inputtext),.wu-row-editing :is(input,select,textarea,.wu-inputtext){box-sizing:border-box;width:100%;max-width:100%}wu-celleditor{display:contents}.wu-table-tbody>tr.wu-rowgroup-header{background:var(--wu-table-group-bg);color:var(--wu-table-group-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr.wu-rowgroup-header>:is(td,th):first-child{box-shadow:inset var(--wu-table-group-accent-width) 0 0 var(--wu-primary-color)}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer){background:var(--wu-table-row-bg);color:var(--wu-text-muted);font-size:.9375em}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer)>td{border-bottom-width:2px}.wu-row-toggler[aria-expanded=true] .wu-row-toggler-icon{transform:rotate(90deg)}:is(wu-columnfilter,wu-column-filter){display:block;min-width:0}.wu-column-filter{display:flex;align-items:center;gap:.25rem;min-width:0;font-weight:400}.wu-column-filter>:first-child:not(button){flex:1 1 auto;min-width:0}.wu-column-filter-input.wu-inputtext{box-sizing:border-box;width:100%;min-width:0}.wu-column-filter-clear,.wu-column-filter-bool{display:grid;flex:none;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}.wu-column-filter-clear{width:2rem;height:2rem;border:0;border-radius:50%;background:none;color:var(--wu-text-muted)}.wu-column-filter-clear:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-column-filter-bool{width:1.5rem;height:1.5rem;border:1px solid var(--wu-field-border);border-radius:var(--wu-radius-sm);background:var(--wu-field-bg);color:var(--wu-primary-color)}.wu-column-filter-clear svg,.wu-column-filter-bool svg{width:.875rem;height:.875rem}.wu-column-filter-menu{display:inline-flex;vertical-align:middle}.wu-column-filter-menu-button.wu-column-filter-active{background:var(--wu-primary-soft);color:var(--wu-primary-soft-text)}.wu-column-filter-menu-button svg{width:1rem;height:1rem}.wu-column-filter-overlay{position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;gap:.625rem;box-sizing:border-box;width:min(18rem,calc(100vw - 1rem));margin:0;padding:.75rem;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-card-bg);color:var(--wu-text);box-shadow:var(--wu-shadow-md);font-family:var(--wu-font-family);font-size:var(--wu-font-size);font-weight:400;text-align:start}.wu-column-filter-rule{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.625rem;border-bottom:1px solid var(--wu-border)}.wu-column-filter-select.wu-inputtext,.wu-column-filter-rule .wu-inputtext{box-sizing:border-box;width:100%}.wu-column-filter-remove,.wu-column-filter-add{align-self:flex-start}.wu-column-filter-buttons{display:flex;justify-content:space-between;gap:.5rem}.wu-column-filter-clear:focus-visible,.wu-column-filter-bool:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset)}@media (prefers-reduced-motion: reduce){.wu-table-spinner{animation-duration:2s}}@media (pointer: coarse){.wu-reorderable-row-handle{position:relative}.wu-reorderable-row-handle:after{content:\"\";position:absolute;top:50%;right:-.5rem;left:-.5rem;height:max(100%,24px);translate:0 -50%}}}\n"] }]
|
|
1464
|
+
args: [{ selector: 'wu-table, wu-datatable', standalone: true, exportAs: 'wuTable', imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, WuPaginator], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: ɵWU_TABLE, useExisting: forwardRef(() => WuTable) }], host: { class: 'wu-table-host' }, template: "<div\n class=\"wu-table p-datatable p-component\"\n [ngClass]=\"styleClass || ''\"\n [ngStyle]=\"style || null\"\n [class.wu-table-gridlines]=\"showGridlines\"\n [class.p-datatable-gridlines]=\"showGridlines\"\n [class.wu-table-striped]=\"stripedRows\"\n [class.p-datatable-striped]=\"stripedRows\"\n [class.wu-table-sm]=\"sizeKey === 'sm'\"\n [class.p-datatable-sm]=\"sizeKey === 'sm'\"\n [class.wu-table-lg]=\"sizeKey === 'lg'\"\n [class.p-datatable-lg]=\"sizeKey === 'lg'\"\n [class.wu-table-hoverable]=\"rowHover\"\n [class.p-datatable-hoverable-rows]=\"rowHover\"\n [class.wu-table-scrollable]=\"scrollable\"\n [class.p-datatable-scrollable]=\"scrollable\"\n [class.wu-table-flex]=\"flexScroll\"\n [class.wu-table-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-stack]=\"responsiveLayout === 'stack'\"\n [class.p-datatable-responsive-scroll]=\"responsiveLayout !== 'stack'\"\n [class.wu-table-stacked]=\"stacked\"\n [class.wu-table-loading]=\"loading\"\n [attr.aria-busy]=\"loading || null\"\n>\n <div *ngIf=\"showMask\" class=\"wu-table-mask p-datatable-loading-overlay p-component-overlay\">\n <i *ngIf=\"loadingIcon; else spinner\" [class]=\"'wu-table-loading-icon p-datatable-loading-icon ' + loadingIcon\" aria-hidden=\"true\"></i>\n <ng-template #spinner><span class=\"wu-table-spinner\" role=\"status\" [attr.aria-label]=\"t.loading\"></span></ng-template>\n </div>\n <div *ngIf=\"captionTemplate\" class=\"wu-table-header p-datatable-header\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorTop\"\n class=\"wu-table-paginator p-paginator-top\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div class=\"wu-table-wrapper p-datatable-wrapper\" [style.max-height]=\"wrapperMaxHeight\">\n <table class=\"wu-table-table p-datatable-table\" role=\"table\" [ngClass]=\"tableStyleClass || ''\" [ngStyle]=\"tableStyle || null\">\n <ng-container *ngIf=\"colgroupTemplate\"><ng-container *ngTemplateOutlet=\"colgroupTemplate; context: columnsContext\"></ng-container></ng-container>\n <thead *ngIf=\"headerTemplate\" class=\"wu-table-thead p-datatable-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: columnsContext\"></ng-container>\n </thead>\n <tbody *ngIf=\"frozenValue.length && frozenBodyTemplate\" class=\"wu-table-tbody wu-table-frozen-tbody p-datatable-frozen-tbody\">\n <ng-container *ngFor=\"let row of frozenValue; let i = index\">\n <ng-container *ngTemplateOutlet=\"frozenBodyTemplate; context: frozenContext(row, i)\"></ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"wu-table-tbody p-datatable-tbody\">\n <ng-container *ngIf=\"showLoadingBody; else rowsBody\">\n <ng-container *ngTemplateOutlet=\"loadingBodyTemplate; context: columnsContext\"></ng-container>\n </ng-container>\n <ng-template #rowsBody>\n <ng-container *ngIf=\"bodyTemplate\">\n <ng-container *ngFor=\"let row of pageRows; let i = index; trackBy: trackRow\">\n <ng-container *ngIf=\"groupHeaderTemplate && isGroupStart(i)\">\n <ng-container *ngTemplateOutlet=\"groupHeaderTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: rowContext(row, i)\"></ng-container>\n <ng-container *ngIf=\"rowExpansionTemplate && isRowExpanded(row)\">\n <ng-container *ngTemplateOutlet=\"rowExpansionTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"groupFooterTemplate && isGroupEnd(i)\">\n <ng-container *ngTemplateOutlet=\"groupFooterTemplate; context: rowContext(row, i)\"></ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isEmpty && !loading\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"><ng-container *ngTemplateOutlet=\"emptyTemplate; context: columnsContext\"></ng-container></ng-container>\n <ng-template #defaultEmpty><tr class=\"wu-table-empty-row\"><td class=\"wu-table-empty\" colspan=\"100\">{{ t.emptyMessage }}</td></tr></ng-template>\n </ng-container>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"footerTemplate\" class=\"wu-table-tfoot p-datatable-tfoot\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: columnsContext\"></ng-container>\n </tfoot>\n </table>\n </div>\n <wu-paginator\n *ngIf=\"showPaginatorBottom\"\n class=\"wu-table-paginator p-paginator-bottom\"\n [styleClass]=\"paginatorStyleClass\"\n [first]=\"pageFirst\"\n [rows]=\"rows\"\n [totalRecords]=\"total\"\n [rowsPerPageOptions]=\"rowsPerPageOptions\"\n [showCurrentPageReport]=\"showCurrentPageReport\"\n [currentPageReportTemplate]=\"currentPageReportTemplate\"\n [pageLinkSize]=\"pageLinks\"\n [alwaysShow]=\"alwaysShowPaginator\"\n [leftTemplate]=\"paginatorLeftTemplate\"\n [rightTemplate]=\"paginatorRightTemplate\"\n (onPageChange)=\"pageChange($event)\"\n ></wu-paginator>\n <div *ngIf=\"summaryTemplate\" class=\"wu-table-footer p-datatable-footer\">\n <ng-container *ngTemplateOutlet=\"summaryTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-table,wu-datatable{display:block;min-width:0}.wu-table{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--wu-text);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-table-flex{height:100%}.wu-table-header{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:var(--wu-table-header-border-width);background:var(--wu-table-header-bg);color:var(--wu-text);font-weight:var(--wu-table-header-weight)}.wu-table-footer{padding:var(--wu-table-header-padding);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-header-bg);font-weight:var(--wu-table-header-weight)}.wu-table-wrapper{position:relative;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.wu-table-scrollable .wu-table-wrapper{overflow:auto;overscroll-behavior-x:contain}.wu-table-flex .wu-table-wrapper{flex:1 1 auto;min-height:0}.wu-table-table{width:100%;border-collapse:separate;border-spacing:0}.wu-table-thead>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight);text-align:start;vertical-align:middle;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-table-scrollable .wu-table-thead>tr>th{position:sticky;top:0;z-index:1}.wu-table-tbody>tr{height:var(--wu-table-row-height);background:var(--wu-table-row-bg);color:var(--wu-text);transition:background-color var(--wu-transition)}.wu-table-tbody>tr>td{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;text-align:start;vertical-align:middle}.wu-table-tfoot>tr>td,.wu-table-tfoot>tr>th{padding:var(--wu-table-cell-padding-y) var(--wu-table-cell-padding-x);border:1px solid var(--wu-table-border-color);border-width:0 0 1px;background:var(--wu-table-head-bg);color:var(--wu-table-head-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr:nth-child(even){background:var(--wu-table-stripe-bg, var(--wu-table-row-bg))}.wu-table-striped .wu-table-tbody>tr:nth-child(even){background:var(--wu-table-row-striped-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover{background:var(--wu-table-row-hover-bg)}.wu-table-tbody>tr.wu-row-contextmenu{outline:2px solid var(--wu-field-focus-border);outline-offset:-2px}.wu-table-tbody>tr.wu-row-selected,.wu-table-hoverable .wu-table-tbody>tr.wu-row-selected:hover{background:var(--wu-table-row-selected-bg);color:var(--wu-table-row-selected-color)}.wu-selectable-row{cursor:pointer}.wu-selectable-row:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-table-gridlines .wu-table-header{border-width:1px}.wu-table-gridlines .wu-table-thead>tr>th,.wu-table-gridlines .wu-table-tbody>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>td,.wu-table-gridlines .wu-table-tfoot>tr>th{border-width:0 1px 1px 0}.wu-table-gridlines .wu-table-thead>tr>th:first-child,.wu-table-gridlines .wu-table-tbody>tr>td:first-child,.wu-table-gridlines .wu-table-tfoot>tr>:first-child{border-left-width:1px}.wu-table-gridlines .wu-table-thead>tr:first-child>th{border-top-width:1px}.wu-table-sm .wu-table-thead>tr>th,.wu-table-sm .wu-table-tbody>tr>td,.wu-table-sm .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * .5) calc(var(--wu-table-cell-padding-x) * .5)}.wu-table-lg .wu-table-thead>tr>th,.wu-table-lg .wu-table-tbody>tr>td,.wu-table-lg .wu-table-tfoot>tr>*{padding:calc(var(--wu-table-cell-padding-y) * 1.25) calc(var(--wu-table-cell-padding-x) * 1.25)}.wu-table-empty{color:var(--wu-text-muted);text-align:center!important}.wu-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.wu-sortable-column:not(.wu-sorted):hover{background:var(--wu-table-head-hover-bg)}.wu-sortable-column.wu-sorted{background:var(--wu-table-sorted-bg);color:var(--wu-table-sorted-color)}.wu-sortable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-sorticon{display:inline-flex;align-items:center;gap:.125rem;margin-left:.375rem;vertical-align:middle;color:var(--wu-text-muted)}.wu-sorticon-svg{width:.875rem;height:.875rem}.wu-sorticon-asc,.wu-sorticon-desc{color:var(--wu-table-sorted-color)}.wu-sorticon-asc .wu-sorticon-down,.wu-sorticon-desc .wu-sorticon-up{opacity:.25}.wu-sorticon-badge{display:inline-grid;place-items:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:999px;background:var(--wu-table-sorted-color);color:var(--wu-primary-contrast);font-size:.6875rem;font-weight:700;line-height:1}.wu-sorticon-badge[hidden]{display:none}.wu-table-checkbox{display:inline-flex;vertical-align:middle}.wu-table-mask{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:color-mix(in srgb,var(--wu-card-bg) 60%,transparent)}.wu-table-spinner{width:2rem;height:2rem;border:3px solid var(--wu-primary-color);border-right-color:transparent;border-radius:50%;animation:wu-table-spin .8s linear infinite}.wu-table-loading-icon{font-size:2rem;color:var(--wu-primary-color)}@keyframes wu-table-spin{to{transform:rotate(360deg)}}.wu-table-paginator .wu-paginator{border-width:0 0 1px}.wu-table .p-column-title{display:none}.wu-table-stacked .wu-table-thead>tr>th,.wu-table-stacked .wu-table-tfoot>tr>*{display:none}.wu-table-stacked .wu-table-tbody>tr{display:block;height:auto;border-bottom:1px solid var(--wu-table-border-color)}.wu-table-stacked .wu-table-tbody>tr>td{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:auto!important;border:0!important;text-align:end}.wu-table-stacked .wu-table-tbody>tr>td>.p-column-title{display:inline-block;flex:none;min-width:40%;color:var(--wu-text-muted);font-weight:var(--wu-table-head-weight);text-align:start}.wu-table-stacked .wu-table-tbody>tr.wu-table-empty-row>td{justify-content:center}.wu-table-thead>tr>.wu-frozen-column,.wu-table-tbody>tr>.wu-frozen-column,.wu-table-tfoot>tr>.wu-frozen-column{position:sticky;z-index:1}.wu-table-thead>tr>.wu-frozen-column{z-index:2}.wu-table-tbody>tr>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-stripe-bg),var(--wu-table-stripe-bg)),var(--wu-card-bg)}.wu-table-striped .wu-table-tbody>tr:nth-child(even)>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-striped-bg),var(--wu-table-row-striped-bg)),var(--wu-card-bg)}.wu-table-hoverable .wu-table-tbody>tr:not(.wu-table-empty-row):hover>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-hover-bg),var(--wu-table-row-hover-bg)),var(--wu-card-bg)}.wu-table-tbody>tr.wu-row-selected>.wu-frozen-column{background:linear-gradient(var(--wu-table-row-selected-bg),var(--wu-table-row-selected-bg)),var(--wu-card-bg)}.wu-table-stacked .wu-frozen-column{position:static}.wu-table-frozen-tbody>tr>td{background:linear-gradient(var(--wu-table-row-bg),var(--wu-table-row-bg)),var(--wu-card-bg)}.wu-table-scrollable .wu-table-frozen-tbody>tr>td{position:sticky;top:var(--_table-head-height, 0px);z-index:1}.wu-table-frozen-tbody>tr:last-child>td{border-bottom:2px solid var(--wu-table-border-color)}.wu-reorderable-row-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.wu-reorderable-row-handle:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:2px;border-radius:var(--wu-radius-sm)}.wu-table-tbody>tr.wu-row-dragging{opacity:.5}.wu-table-tbody>tr.wu-row-drop-above>td{box-shadow:inset 0 2px 0 var(--wu-primary-color)}.wu-table-tbody>tr.wu-row-drop-below>td{box-shadow:inset 0 -2px 0 var(--wu-primary-color)}wu-tableradiobutton{display:inline-flex}.wu-resizable-column{position:relative;overflow:hidden;text-overflow:ellipsis}.wu-column-resizer{position:absolute;top:0;right:0;bottom:0;width:.5rem;cursor:col-resize;touch-action:none}.wu-resizable-column:not(.wu-resizable-column-off)>.wu-column-resizer:after{content:\"\";position:absolute;top:25%;right:2px;bottom:25%;width:2px;border-radius:1px;background:transparent;transition:background-color var(--wu-transition)}.wu-resizable-column:hover>.wu-column-resizer:after,.wu-column-resizing>.wu-column-resizer:after{background:var(--wu-primary-color)}th:not(.wu-resizable-column)>.wu-column-resizer{display:none}.wu-reorderable-column{cursor:grab}.wu-column-dragging{opacity:.6}.wu-col-drop-before{box-shadow:inset 2px 0 0 var(--wu-primary-color)}.wu-col-drop-after{box-shadow:inset -2px 0 0 var(--wu-primary-color)}.wu-editable-column{cursor:pointer}.wu-editable-column:focus-visible{outline:2px solid var(--wu-primary-color);outline-offset:-2px}.wu-editable-column.wu-cell-editing{padding-top:.25rem;padding-bottom:.25rem;cursor:default}.wu-cell-editing :is(input,select,textarea,.wu-inputtext),.wu-row-editing :is(input,select,textarea,.wu-inputtext){box-sizing:border-box;width:100%;max-width:100%}wu-celleditor{display:contents}.wu-table-tbody>tr.wu-rowgroup-header{background:var(--wu-table-group-bg);color:var(--wu-table-group-color);font-weight:var(--wu-table-head-weight)}.wu-table-tbody>tr.wu-rowgroup-header>:is(td,th):first-child{box-shadow:inset var(--wu-table-group-accent-width) 0 0 var(--wu-primary-color)}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer){background:var(--wu-table-row-bg);color:var(--wu-text-muted);font-size:.9375em}.wu-table-tbody>tr:is(.wu-rowgroup-footer,.p-rowgroup-footer)>td{border-bottom-width:2px}.wu-row-toggler[aria-expanded=true] .wu-row-toggler-icon{transform:rotate(90deg)}:is(wu-columnfilter,wu-column-filter){display:block;min-width:0}.wu-column-filter{display:flex;align-items:center;gap:.25rem;min-width:0;font-weight:400}.wu-column-filter>:first-child:not(button){flex:1 1 auto;min-width:0}.wu-column-filter-input.wu-inputtext{box-sizing:border-box;width:100%;min-width:0}.wu-column-filter-clear,.wu-column-filter-bool{display:grid;flex:none;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}.wu-column-filter-clear{width:2rem;height:2rem;border:0;border-radius:50%;background:none;color:var(--wu-text-muted)}.wu-column-filter-clear:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-column-filter-bool{width:1.5rem;height:1.5rem;border:1px solid var(--wu-field-border);border-radius:var(--wu-radius-sm);background:var(--wu-field-bg);color:var(--wu-primary-color)}.wu-column-filter-clear svg,.wu-column-filter-bool svg{width:.875rem;height:.875rem}.wu-column-filter-menu{display:inline-flex;vertical-align:middle}.wu-column-filter-menu-button.wu-column-filter-active{background:var(--wu-primary-soft);color:var(--wu-primary-soft-text)}.wu-column-filter-menu-button svg{width:1rem;height:1rem}.wu-column-filter-overlay{position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;gap:.625rem;box-sizing:border-box;width:min(18rem,calc(100vw - 1rem));margin:0;padding:.75rem;border:1px solid var(--wu-border);border-radius:var(--wu-radius-md);background:var(--wu-card-bg);color:var(--wu-text);box-shadow:var(--wu-shadow-md);font-family:var(--wu-font-family);font-size:var(--wu-font-size);font-weight:400;text-align:start}.wu-column-filter-rule{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.625rem;border-bottom:1px solid var(--wu-border)}.wu-column-filter-select.wu-inputtext,.wu-column-filter-rule .wu-inputtext{box-sizing:border-box;width:100%}.wu-column-filter-remove,.wu-column-filter-add{align-self:flex-start}.wu-column-filter-buttons{display:flex;justify-content:space-between;gap:.5rem}.wu-column-filter-clear:focus-visible,.wu-column-filter-bool:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset)}@media (prefers-reduced-motion: reduce){.wu-table-spinner{animation-duration:2s}}@media (pointer: coarse){.wu-reorderable-row-handle{position:relative}.wu-reorderable-row-handle:after{content:\"\";position:absolute;top:50%;right:-.5rem;left:-.5rem;height:max(100%,24px);translate:0 -50%}}}\n"] }]
|
|
1465
1465
|
}] });
|
|
1466
1466
|
|
|
1467
1467
|
/** Re-renders a directive's host whenever its table sorts, selects or pages. */
|